Skip to content

Commit

Permalink
Updated to 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
souljuse committed Oct 9, 2023
1 parent d909b4d commit d47ebf1
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 46 deletions.
6 changes: 2 additions & 4 deletions packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,7 @@
"appearance",
"position",
"hint",
"default_value",
"deep_filtering_enabled"
"default_value"
],
"relationships": [
"fieldset"
Expand Down Expand Up @@ -706,8 +705,7 @@
"appearance",
"position",
"field_type",
"hint",
"deep_filtering_enabled"
"hint"
],
"relationships": [
"fieldset"
Expand Down
2 changes: 1 addition & 1 deletion packages/cma-client/src/generated/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
12 changes: 0 additions & 12 deletions packages/cma-client/src/generated/SchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 0 additions & 16 deletions packages/cma-client/src/generated/SimpleSchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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;
};

/**
Expand Down Expand Up @@ -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;
};

Expand Down Expand Up @@ -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;
};

Expand Down
2 changes: 0 additions & 2 deletions packages/cma-client/src/generated/resources/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default class Field extends BaseResource {
'position',
'hint',
'default_value',
'deep_filtering_enabled',
],
relationships: ['fieldset'],
}),
Expand Down Expand Up @@ -91,7 +90,6 @@ export default class Field extends BaseResource {
'position',
'field_type',
'hint',
'deep_filtering_enabled',
],
relationships: ['fieldset'],
}),
Expand Down
1 change: 0 additions & 1 deletion packages/dashboard-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@
"attributes": [
"name",
"internal_subdomain",
"main_locale",
"template"
],
"relationships": []
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard-client/src/generated/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 0 additions & 4 deletions packages/dashboard-client/src/generated/SchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,10 +1629,6 @@ export type SiteCreateSchema = {
* Internal project subdomain
*/
internal_subdomain?: string;
/**
* Main locale for the project
*/
main_locale?: string;
/**
* Site template
*/
Expand Down
4 changes: 0 additions & 4 deletions packages/dashboard-client/src/generated/SimpleSchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1604,10 +1604,6 @@ export type SiteCreateSchema = {
* Internal project subdomain
*/
internal_subdomain?: string;
/**
* Main locale for the project
*/
main_locale?: string;
/**
* Site template
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard-client/src/generated/resources/Site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class Site extends BaseResource {
return this.rawCreate(
Utils.serializeRequestBody<SchemaTypes.SiteCreateSchema>(body, {
type: 'site',
attributes: ['name', 'internal_subdomain', 'main_locale', 'template'],
attributes: ['name', 'internal_subdomain', 'template'],
relationships: [],
}),
).then((body) =>
Expand Down

0 comments on commit d47ebf1

Please sign in to comment.