From 09fb769cc9fa5e12e0b609f06dd78a337ec24c4a Mon Sep 17 00:00:00 2001 From: rot1024 Date: Sat, 31 Jul 2021 04:32:37 +0900 Subject: [PATCH] chore: add gql sclar types --- codegen.yml | 3 +++ src/gql/graphql-client-api.tsx | 7 +++++-- src/gql/graphql.schema.json | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/codegen.yml b/codegen.yml index 840a23751..1440d5668 100644 --- a/codegen.yml +++ b/codegen.yml @@ -18,10 +18,13 @@ generates: ID: string Cursor: string URL: string + Lang: string + TranslatedString: '{ [lang in string]?: string } | null' PluginID: string PluginExtensionID: string PropertySchemaID: string PropertySchemaFieldID: string + DatasetSchemaFieldID: string ./src/gql/graphql.schema.json: plugins: - introspection diff --git a/src/gql/graphql-client-api.tsx b/src/gql/graphql-client-api.tsx index 2981c35d3..113ba7f1e 100644 --- a/src/gql/graphql-client-api.tsx +++ b/src/gql/graphql-client-api.tsx @@ -13,14 +13,15 @@ export type Scalars = { Float: number; Any: any; Cursor: string; + DatasetSchemaFieldID: string; DateTime: Date; FileSize: number; - Lang: any; + Lang: string; PluginExtensionID: string; PluginID: string; PropertySchemaFieldID: string; PropertySchemaID: string; - TranslatedString: any; + TranslatedString: { [lang in string]?: string } | null; URL: string; Upload: any; }; @@ -82,6 +83,7 @@ export type AddLayerGroupInput = { index?: Maybe; linkedDatasetSchemaID?: Maybe; name?: Maybe; + representativeFieldId?: Maybe; }; export type AddLayerGroupPayload = { @@ -316,6 +318,7 @@ export type DatasetSchemaField = Node & { }; + export type DeleteMeInput = { userId: Scalars['ID']; }; diff --git a/src/gql/graphql.schema.json b/src/gql/graphql.schema.json index 6a4c71b17..d3afce806 100644 --- a/src/gql/graphql.schema.json +++ b/src/gql/graphql.schema.json @@ -501,6 +501,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "representativeFieldId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "DatasetSchemaFieldID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -2628,6 +2640,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "DatasetSchemaFieldID", + "description": "", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "SCALAR", "name": "DateTime",