Skip to content

Commit

Permalink
Revert "Updated to 2.2.1"
Browse files Browse the repository at this point in the history
This reverts commit d47ebf1.
  • Loading branch information
souljuse committed Oct 9, 2023
1 parent d47ebf1 commit ffe576a
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@
"appearance",
"position",
"hint",
"default_value"
"default_value",
"deep_filtering_enabled"
],
"relationships": [
"fieldset"
Expand Down Expand Up @@ -705,7 +706,8 @@
"appearance",
"position",
"field_type",
"hint"
"hint",
"deep_filtering_enabled"
],
"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 v2.2.1',
userAgent: '@datocms/cma-client',
baseUrl: this.baseUrl,
preCallStack: new Error().stack,
extraHeaders: {
Expand Down
12 changes: 12 additions & 0 deletions packages/cma-client/src/generated/SchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5175,6 +5175,10 @@ 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 @@ -5316,6 +5320,10 @@ 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 @@ -5464,6 +5472,10 @@ 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: 16 additions & 0 deletions packages/cma-client/src/generated/SimpleSchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5689,6 +5689,10 @@ 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 @@ -5811,6 +5815,10 @@ 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 @@ -5937,6 +5945,10 @@ 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 @@ -6054,6 +6066,10 @@ 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: 2 additions & 0 deletions packages/cma-client/src/generated/resources/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default class Field extends BaseResource {
'position',
'hint',
'default_value',
'deep_filtering_enabled',
],
relationships: ['fieldset'],
}),
Expand Down Expand Up @@ -90,6 +91,7 @@ export default class Field extends BaseResource {
'position',
'field_type',
'hint',
'deep_filtering_enabled',
],
relationships: ['fieldset'],
}),
Expand Down
1 change: 1 addition & 0 deletions packages/dashboard-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
"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 v2.2.1',
userAgent: '@datocms/dashboard-client',
baseUrl: this.baseUrl,
preCallStack: new Error().stack,
extraHeaders: {
Expand Down
4 changes: 4 additions & 0 deletions packages/dashboard-client/src/generated/SchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,10 @@ export type SiteCreateSchema = {
* Internal project subdomain
*/
internal_subdomain?: string;
/**
* Main locale for the project
*/
main_locale?: string;
/**
* Site template
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/dashboard-client/src/generated/SimpleSchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,10 @@ 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', 'template'],
attributes: ['name', 'internal_subdomain', 'main_locale', 'template'],
relationships: [],
}),
).then((body) =>
Expand Down

0 comments on commit ffe576a

Please sign in to comment.