Skip to content

Commit

Permalink
chore(web): update gql
Browse files Browse the repository at this point in the history
  • Loading branch information
pyshx committed Mar 21, 2024
1 parent 6acbdde commit d8a1c4b
Show file tree
Hide file tree
Showing 5 changed files with 1,186 additions and 1 deletion.
7 changes: 7 additions & 0 deletions web/src/classic/gql/fragmentMatcher.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"possibleTypes": {
"Geometry": [
"GeometryCollection",
"LineString",
"MultiPolygon",
"Point",
"Polygon"
],
"Layer": [
"LayerGroup",
"LayerItem"
Expand Down
111 changes: 111 additions & 0 deletions web/src/classic/gql/graphql-client-api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export type AddClusterPayload = {
scene: Scene;
};

export type AddCustomPropertySchemaInput = {
layerId: Scalars['ID']['input'];
schema?: InputMaybe<Scalars['JSON']['input']>;
};

export type AddDatasetSchemaInput = {
name: Scalars['String']['input'];
representativefield?: InputMaybe<Scalars['ID']['input']>;
Expand All @@ -49,6 +54,13 @@ export type AddDatasetSchemaPayload = {
datasetSchema?: Maybe<DatasetSchema>;
};

export type AddGeoJsonFeatureInput = {
geometry: Scalars['JSON']['input'];
layerId: Scalars['ID']['input'];
properties?: InputMaybe<Scalars['JSON']['input']>;
type: Scalars['String']['input'];
};

export type AddInfoboxFieldInput = {
extensionId: Scalars['ID']['input'];
index?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -436,6 +448,16 @@ export type DatasetSchemaField = Node & {
type: ValueType;
};

export type DeleteGeoJsonFeatureInput = {
featureId: Scalars['ID']['input'];
layerId: Scalars['ID']['input'];
};

export type DeleteGeoJsonFeaturePayload = {
__typename?: 'DeleteGeoJSONFeaturePayload';
deletedFeatureId: Scalars['ID']['output'];
};

export type DeleteMeInput = {
userId: Scalars['ID']['input'];
};
Expand Down Expand Up @@ -529,6 +551,28 @@ export type DuplicateStylePayload = {
style: Style;
};

export type Feature = {
__typename?: 'Feature';
geometry: Geometry;
id: Scalars['ID']['output'];
properties?: Maybe<Scalars['JSON']['output']>;
type: Scalars['String']['output'];
};

export type FeatureCollection = {
__typename?: 'FeatureCollection';
features: Array<Feature>;
type: Scalars['String']['output'];
};

export type Geometry = GeometryCollection | LineString | MultiPolygon | Point | Polygon;

export type GeometryCollection = {
__typename?: 'GeometryCollection';
geometries: Array<Geometry>;
type: Scalars['String']['output'];
};

export type ImportDatasetFromGoogleSheetInput = {
accessToken: Scalars['String']['input'];
datasetSchemaId?: InputMaybe<Scalars['ID']['input']>;
Expand Down Expand Up @@ -724,6 +768,12 @@ export type LayerTagItem = LayerTag & {
tagId: Scalars['ID']['output'];
};

export type LineString = {
__typename?: 'LineString';
lineStringCoordinates: Array<Array<Scalars['Float']['output']>>;
type: Scalars['String']['output'];
};

export type LinkDatasetToPropertyValueInput = {
datasetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
datasetSchemaFieldIds: Array<Scalars['ID']['input']>;
Expand Down Expand Up @@ -919,10 +969,18 @@ export type MoveStoryPayload = {
storyId: Scalars['ID']['output'];
};

export type MultiPolygon = {
__typename?: 'MultiPolygon';
multiPolygonCoordinates: Array<Array<Array<Array<Scalars['Float']['output']>>>>;
type: Scalars['String']['output'];
};

export type Mutation = {
__typename?: 'Mutation';
addCluster?: Maybe<AddClusterPayload>;
addCustomProperties: UpdateNlsLayerPayload;
addDatasetSchema?: Maybe<AddDatasetSchemaPayload>;
addGeoJSONFeature: Feature;
addInfoboxField?: Maybe<AddInfoboxFieldPayload>;
addLayerGroup?: Maybe<AddLayerGroupPayload>;
addLayerItem?: Maybe<AddLayerItemPayload>;
Expand All @@ -946,6 +1004,7 @@ export type Mutation = {
createTagGroup?: Maybe<CreateTagGroupPayload>;
createTagItem?: Maybe<CreateTagItemPayload>;
createTeam?: Maybe<CreateTeamPayload>;
deleteGeoJSONFeature: DeleteGeoJsonFeaturePayload;
deleteMe?: Maybe<DeleteMePayload>;
deleteProject?: Maybe<DeleteProjectPayload>;
deleteStory: DeleteStoryPayload;
Expand Down Expand Up @@ -994,6 +1053,7 @@ export type Mutation = {
unlinkPropertyValue?: Maybe<PropertyFieldPayload>;
updateCluster?: Maybe<UpdateClusterPayload>;
updateDatasetSchema?: Maybe<UpdateDatasetSchemaPayload>;
updateGeoJSONFeature: Feature;
updateLayer?: Maybe<UpdateLayerPayload>;
updateMe?: Maybe<UpdateMePayload>;
updateMemberOfTeam?: Maybe<UpdateMemberOfTeamPayload>;
Expand All @@ -1019,11 +1079,21 @@ export type MutationAddClusterArgs = {
};


export type MutationAddCustomPropertiesArgs = {
input: AddCustomPropertySchemaInput;
};


export type MutationAddDatasetSchemaArgs = {
input: AddDatasetSchemaInput;
};


export type MutationAddGeoJsonFeatureArgs = {
input: AddGeoJsonFeatureInput;
};


export type MutationAddInfoboxFieldArgs = {
input: AddInfoboxFieldInput;
};
Expand Down Expand Up @@ -1139,6 +1209,11 @@ export type MutationCreateTeamArgs = {
};


export type MutationDeleteGeoJsonFeatureArgs = {
input: DeleteGeoJsonFeatureInput;
};


export type MutationDeleteMeArgs = {
input: DeleteMeInput;
};
Expand Down Expand Up @@ -1379,6 +1454,11 @@ export type MutationUpdateDatasetSchemaArgs = {
};


export type MutationUpdateGeoJsonFeatureArgs = {
input: UpdateGeoJsonFeatureInput;
};


export type MutationUpdateLayerArgs = {
input: UpdateLayerInput;
};
Expand Down Expand Up @@ -1478,8 +1558,10 @@ export type NlsLayer = {
config?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
infobox?: Maybe<NlsInfobox>;
isSketch: Scalars['Boolean']['output'];
layerType: Scalars['String']['output'];
sceneId: Scalars['ID']['output'];
sketch?: Maybe<SketchInfo>;
title: Scalars['String']['output'];
visible: Scalars['Boolean']['output'];
};
Expand All @@ -1491,9 +1573,11 @@ export type NlsLayerGroup = NlsLayer & {
config?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
infobox?: Maybe<NlsInfobox>;
isSketch: Scalars['Boolean']['output'];
layerType: Scalars['String']['output'];
scene?: Maybe<Scene>;
sceneId: Scalars['ID']['output'];
sketch?: Maybe<SketchInfo>;
title: Scalars['String']['output'];
visible: Scalars['Boolean']['output'];
};
Expand All @@ -1503,9 +1587,11 @@ export type NlsLayerSimple = NlsLayer & {
config?: Maybe<Scalars['JSON']['output']>;
id: Scalars['ID']['output'];
infobox?: Maybe<NlsInfobox>;
isSketch: Scalars['Boolean']['output'];
layerType: Scalars['String']['output'];
scene?: Maybe<Scene>;
sceneId: Scalars['ID']['output'];
sketch?: Maybe<SketchInfo>;
title: Scalars['String']['output'];
visible: Scalars['Boolean']['output'];
};
Expand Down Expand Up @@ -1635,6 +1721,12 @@ export enum PluginExtensionType {
Widget = 'WIDGET'
}

export type Point = {
__typename?: 'Point';
pointCoordinates: Array<Scalars['Float']['output']>;
type: Scalars['String']['output'];
};

export type Policy = {
__typename?: 'Policy';
assetStorageSize?: Maybe<Scalars['FileSize']['output']>;
Expand All @@ -1648,6 +1740,12 @@ export type Policy = {
publishedProjectCount?: Maybe<Scalars['Int']['output']>;
};

export type Polygon = {
__typename?: 'Polygon';
polygonCoordinates: Array<Array<Array<Scalars['Float']['output']>>>;
type: Scalars['String']['output'];
};

export enum Position {
Left = 'LEFT',
Right = 'RIGHT'
Expand Down Expand Up @@ -2248,6 +2346,12 @@ export type SignupPayload = {
user: User;
};

export type SketchInfo = {
__typename?: 'SketchInfo';
customPropertySchema?: Maybe<Scalars['JSON']['output']>;
featureCollection?: Maybe<FeatureCollection>;
};

export type Spacing = {
__typename?: 'Spacing';
bottom: Scalars['Float']['output'];
Expand Down Expand Up @@ -2487,6 +2591,13 @@ export type UpdateDatasetSchemaPayload = {
datasetSchema?: Maybe<DatasetSchema>;
};

export type UpdateGeoJsonFeatureInput = {
featureId: Scalars['ID']['input'];
geometry?: InputMaybe<Scalars['JSON']['input']>;
layerId: Scalars['ID']['input'];
properties?: InputMaybe<Scalars['JSON']['input']>;
};

export type UpdateLayerInput = {
layerId: Scalars['ID']['input'];
name?: InputMaybe<Scalars['String']['input']>;
Expand Down
Loading

0 comments on commit d8a1c4b

Please sign in to comment.