From e8b16269cf9ec82449de234f25e3d4769e94c7ce Mon Sep 17 00:00:00 2001 From: Timon Masberg Date: Thu, 15 Feb 2024 17:10:52 +0100 Subject: [PATCH] chore(shared-model): add generated schema model --- libs/shared/model/src/lib/gql.model.ts | 101 +++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 libs/shared/model/src/lib/gql.model.ts diff --git a/libs/shared/model/src/lib/gql.model.ts b/libs/shared/model/src/lib/gql.model.ts new file mode 100644 index 00000000..711df25e --- /dev/null +++ b/libs/shared/model/src/lib/gql.model.ts @@ -0,0 +1,101 @@ +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; +export type MakeEmpty< + T extends { [key: string]: unknown }, + K extends keyof T, +> = { [_ in K]?: never }; +export type Incremental = + | T + | { + [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; + }; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; +}; + +export type AppData = { + __typename?: 'AppData'; + message: Scalars['String']['output']; +}; + +export type BBox = { + __typename?: 'BBox'; + bottomRight: Coordinate; + topLeft: Coordinate; +}; + +export type BBoxInput = { + bottomRight: CoordinateInput; + topLeft: CoordinateInput; +}; + +export type Coordinate = { + __typename?: 'Coordinate'; + lat: Scalars['Float']['output']; + lon: Scalars['Float']['output']; +}; + +export type CoordinateInput = { + lat: Scalars['Float']['input']; + lon: Scalars['Float']['input']; +}; + +export type Mutation = { + __typename?: 'Mutation'; + createOrganization: Organization; + updateOrganizationGeoSettings: Organization; +}; + +export type MutationCreateOrganizationArgs = { + geoSettings: OrganizationGeoSettingsInput; + name: Scalars['String']['input']; +}; + +export type MutationUpdateOrganizationGeoSettingsArgs = { + geoSettings: OrganizationGeoSettingsInput; + id: Scalars['String']['input']; +}; + +export type Organization = { + __typename?: 'Organization'; + createdAt: Scalars['String']['output']; + geoSettings: OrganizationGeoSettings; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + updatedAt: Scalars['String']['output']; +}; + +export type OrganizationGeoSettings = { + __typename?: 'OrganizationGeoSettings'; + bbox: BBox; + centroid: Coordinate; +}; + +export type OrganizationGeoSettingsInput = { + bbox: BBoxInput; + centroid: CoordinateInput; +}; + +export type Query = { + __typename?: 'Query'; + data: AppData; + organization: Organization; +}; + +export type QueryOrganizationArgs = { + id: Scalars['String']['input']; +};