From d47ebf10aaecb45dcf34ffa711bf083b76c18572 Mon Sep 17 00:00:00 2001 From: Irene Oppo Date: Mon, 9 Oct 2023 11:25:37 +0200 Subject: [PATCH] Updated to 2.2.1 --- packages/cma-client/resources.json | 6 ++---- packages/cma-client/src/generated/Client.ts | 2 +- packages/cma-client/src/generated/SchemaTypes.ts | 12 ------------ .../src/generated/SimpleSchemaTypes.ts | 16 ---------------- .../cma-client/src/generated/resources/Field.ts | 2 -- packages/dashboard-client/resources.json | 1 - .../dashboard-client/src/generated/Client.ts | 2 +- .../src/generated/SchemaTypes.ts | 4 ---- .../src/generated/SimpleSchemaTypes.ts | 4 ---- .../src/generated/resources/Site.ts | 2 +- 10 files changed, 5 insertions(+), 46 deletions(-) diff --git a/packages/cma-client/resources.json b/packages/cma-client/resources.json index c8918d4..0b9c92d 100644 --- a/packages/cma-client/resources.json +++ b/packages/cma-client/resources.json @@ -667,8 +667,7 @@ "appearance", "position", "hint", - "default_value", - "deep_filtering_enabled" + "default_value" ], "relationships": [ "fieldset" @@ -706,8 +705,7 @@ "appearance", "position", "field_type", - "hint", - "deep_filtering_enabled" + "hint" ], "relationships": [ "fieldset" diff --git a/packages/cma-client/src/generated/Client.ts b/packages/cma-client/src/generated/Client.ts index 9d3cf3c..5bf6d5c 100644 --- a/packages/cma-client/src/generated/Client.ts +++ b/packages/cma-client/src/generated/Client.ts @@ -133,7 +133,7 @@ export class Client { ...this.config, ...options, logFn: this.config.logFn || console.log, - userAgent: '@datocms/cma-client', + userAgent: '@datocms/cma-client v2.2.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: { diff --git a/packages/cma-client/src/generated/SchemaTypes.ts b/packages/cma-client/src/generated/SchemaTypes.ts index 37cb3f7..c5fc823 100644 --- a/packages/cma-client/src/generated/SchemaTypes.ts +++ b/packages/cma-client/src/generated/SchemaTypes.ts @@ -5175,10 +5175,6 @@ export type FieldAttributes = { * Ordering index */ position: number; - /** - * Whether deep filtering for block models is enabled in GraphQL or not - */ - deep_filtering_enabled: boolean; }; /** @@ -5320,10 +5316,6 @@ export type FieldCreateSchema = { | { [k: string]: unknown; }; - /** - * Whether deep filtering for block models is enabled in GraphQL or not - */ - deep_filtering_enabled?: boolean; }; /** * JSON API links @@ -5472,10 +5464,6 @@ export type FieldUpdateSchema = { * Field hint */ hint?: string | null; - /** - * Whether deep filtering for block models is enabled in GraphQL or not - */ - deep_filtering_enabled?: boolean; }; /** * JSON API links diff --git a/packages/cma-client/src/generated/SimpleSchemaTypes.ts b/packages/cma-client/src/generated/SimpleSchemaTypes.ts index 686ae75..ec33b1a 100644 --- a/packages/cma-client/src/generated/SimpleSchemaTypes.ts +++ b/packages/cma-client/src/generated/SimpleSchemaTypes.ts @@ -5689,10 +5689,6 @@ export type Field = { * Ordering index */ position: number; - /** - * Whether deep filtering for block models is enabled in GraphQL or not - */ - deep_filtering_enabled: boolean; item_type: ItemTypeData; fieldset: null | FieldsetData; }; @@ -5815,10 +5811,6 @@ export type FieldAttributes = { * Ordering index */ position: number; - /** - * Whether deep filtering for block models is enabled in GraphQL or not - */ - deep_filtering_enabled: boolean; }; /** @@ -5945,10 +5937,6 @@ export type FieldCreateSchema = { | { [k: string]: unknown; }; - /** - * Whether deep filtering for block models is enabled in GraphQL or not - */ - deep_filtering_enabled?: boolean; fieldset?: null | FieldsetData; }; @@ -6066,10 +6054,6 @@ export type FieldUpdateSchema = { * Field hint */ hint?: string | null; - /** - * Whether deep filtering for block models is enabled in GraphQL or not - */ - deep_filtering_enabled?: boolean; fieldset?: null | FieldsetData; }; diff --git a/packages/cma-client/src/generated/resources/Field.ts b/packages/cma-client/src/generated/resources/Field.ts index 4826e5d..e02c824 100644 --- a/packages/cma-client/src/generated/resources/Field.ts +++ b/packages/cma-client/src/generated/resources/Field.ts @@ -33,7 +33,6 @@ export default class Field extends BaseResource { 'position', 'hint', 'default_value', - 'deep_filtering_enabled', ], relationships: ['fieldset'], }), @@ -91,7 +90,6 @@ export default class Field extends BaseResource { 'position', 'field_type', 'hint', - 'deep_filtering_enabled', ], relationships: ['fieldset'], }), diff --git a/packages/dashboard-client/resources.json b/packages/dashboard-client/resources.json index 6c31134..34ed222 100644 --- a/packages/dashboard-client/resources.json +++ b/packages/dashboard-client/resources.json @@ -269,7 +269,6 @@ "attributes": [ "name", "internal_subdomain", - "main_locale", "template" ], "relationships": [] diff --git a/packages/dashboard-client/src/generated/Client.ts b/packages/dashboard-client/src/generated/Client.ts index a8ace76..ec3f926 100644 --- a/packages/dashboard-client/src/generated/Client.ts +++ b/packages/dashboard-client/src/generated/Client.ts @@ -104,7 +104,7 @@ export class Client { ...this.config, ...options, logFn: this.config.logFn || console.log, - userAgent: '@datocms/dashboard-client', + userAgent: '@datocms/dashboard-client v2.2.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: { diff --git a/packages/dashboard-client/src/generated/SchemaTypes.ts b/packages/dashboard-client/src/generated/SchemaTypes.ts index aad48cf..8d438ae 100644 --- a/packages/dashboard-client/src/generated/SchemaTypes.ts +++ b/packages/dashboard-client/src/generated/SchemaTypes.ts @@ -1629,10 +1629,6 @@ export type SiteCreateSchema = { * Internal project subdomain */ internal_subdomain?: string; - /** - * Main locale for the project - */ - main_locale?: string; /** * Site template */ diff --git a/packages/dashboard-client/src/generated/SimpleSchemaTypes.ts b/packages/dashboard-client/src/generated/SimpleSchemaTypes.ts index b732bce..34a1faa 100644 --- a/packages/dashboard-client/src/generated/SimpleSchemaTypes.ts +++ b/packages/dashboard-client/src/generated/SimpleSchemaTypes.ts @@ -1604,10 +1604,6 @@ export type SiteCreateSchema = { * Internal project subdomain */ internal_subdomain?: string; - /** - * Main locale for the project - */ - main_locale?: string; /** * Site template */ diff --git a/packages/dashboard-client/src/generated/resources/Site.ts b/packages/dashboard-client/src/generated/resources/Site.ts index f924d7c..2c92d3f 100644 --- a/packages/dashboard-client/src/generated/resources/Site.ts +++ b/packages/dashboard-client/src/generated/resources/Site.ts @@ -123,7 +123,7 @@ export default class Site extends BaseResource { return this.rawCreate( Utils.serializeRequestBody(body, { type: 'site', - attributes: ['name', 'internal_subdomain', 'main_locale', 'template'], + attributes: ['name', 'internal_subdomain', 'template'], relationships: [], }), ).then((body) =>