Skip to content

Commit dd5ce41

Browse files
committed
Update to the new schema
1 parent 9892f07 commit dd5ce41

5 files changed

Lines changed: 121 additions & 345 deletions

File tree

packages/cma-client/resources.json

Lines changed: 15 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,54 +2232,6 @@
22322232
"name": "destroy",
22332233
"rawName": "rawDestroy"
22342234
},
2235-
{
2236-
"returnsCollection": false,
2237-
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/item/batch_destroy",
2238-
"rel": "batch_destroy",
2239-
"urlTemplate": "/items",
2240-
"method": "DELETE",
2241-
"comment": "Delete multiple records",
2242-
"urlPlaceholders": [],
2243-
"optionalRequestBody": false,
2244-
"queryParamsType": "ItemBatchDestroyHrefSchema",
2245-
"queryParamsRequired": true,
2246-
"responseType": "ItemBatchDestroyJobSchema",
2247-
"deprecated": "This API call is to be considered private and might change without notice",
2248-
"name": "batchDestroy",
2249-
"rawName": "rawBatchDestroy"
2250-
},
2251-
{
2252-
"returnsCollection": false,
2253-
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/item/batch_publish",
2254-
"rel": "batch_publish",
2255-
"urlTemplate": "/items/publish",
2256-
"method": "PUT",
2257-
"comment": "Publish multiple records",
2258-
"urlPlaceholders": [],
2259-
"optionalRequestBody": false,
2260-
"queryParamsType": "ItemBatchPublishHrefSchema",
2261-
"queryParamsRequired": true,
2262-
"responseType": "ItemBatchPublishJobSchema",
2263-
"deprecated": "This API call is to be considered private and might change without notice",
2264-
"name": "batchPublish",
2265-
"rawName": "rawBatchPublish"
2266-
},
2267-
{
2268-
"returnsCollection": false,
2269-
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/item/batch_unpublish",
2270-
"rel": "batch_unpublish",
2271-
"urlTemplate": "/items/unpublish",
2272-
"method": "PUT",
2273-
"comment": "Unpublish multiple records",
2274-
"urlPlaceholders": [],
2275-
"optionalRequestBody": false,
2276-
"queryParamsType": "ItemBatchUnpublishHrefSchema",
2277-
"queryParamsRequired": true,
2278-
"responseType": "ItemBatchUnpublishJobSchema",
2279-
"deprecated": "This API call is to be considered private and might change without notice",
2280-
"name": "batchUnpublish",
2281-
"rawName": "rawBatchUnpublish"
2282-
},
22832235
{
22842236
"returnsCollection": false,
22852237
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/item/publish",
@@ -4715,6 +4667,21 @@
47154667
"name": "activateImprovedValidationAtPublishing",
47164668
"rawName": "rawActivateImprovedValidationAtPublishing"
47174669
},
4670+
{
4671+
"returnsCollection": false,
4672+
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda",
4673+
"rel": "activate_improved_exposure_of_inline_blocks_in_cda",
4674+
"urlTemplate": "/site/activate-improved-exposure-of-inline-blocks-in-cda",
4675+
"method": "PUT",
4676+
"comment": "Activate having two different GraphQL fields for regular blocks and inline blocks",
4677+
"urlPlaceholders": [],
4678+
"optionalRequestBody": false,
4679+
"queryParamsRequired": false,
4680+
"responseType": "SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema",
4681+
"deprecated": "This API call is to be considered private and might change without notice",
4682+
"name": "activateImprovedExposureOfInlineBlocksInCda",
4683+
"rawName": "rawActivateImprovedExposureOfInlineBlocksInCda"
4684+
},
47184685
{
47194686
"returnsCollection": false,
47204687
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings",

packages/cma-client/src/generated/SchemaTypes.ts

Lines changed: 38 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -781,36 +781,6 @@ export type ItemVersionInstancesHrefSchema = {
781781
};
782782
[k: string]: unknown;
783783
};
784-
/**
785-
* This interface was referenced by `Item`'s JSON-Schema
786-
* via the `batch_destroy.hrefSchema` link.
787-
*/
788-
export type ItemBatchDestroyHrefSchema = {
789-
/**
790-
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
791-
*/
792-
'filter[ids]': string;
793-
};
794-
/**
795-
* This interface was referenced by `Item`'s JSON-Schema
796-
* via the `batch_publish.hrefSchema` link.
797-
*/
798-
export type ItemBatchPublishHrefSchema = {
799-
/**
800-
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
801-
*/
802-
'filter[ids]': string;
803-
};
804-
/**
805-
* This interface was referenced by `Item`'s JSON-Schema
806-
* via the `batch_unpublish.hrefSchema` link.
807-
*/
808-
export type ItemBatchUnpublishHrefSchema = {
809-
/**
810-
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
811-
*/
812-
'filter[ids]': string;
813-
};
814784
/**
815785
* This interface was referenced by `Item`'s JSON-Schema
816786
* via the `publish.schema` link.
@@ -7346,6 +7316,10 @@ export type ItemMeta = {
73467316
* Workflow stage in which the item is
73477317
*/
73487318
stage: null | string;
7319+
/**
7320+
* When the records can be organized in a tree, indicates whether the item has children
7321+
*/
7322+
has_children: null | boolean;
73497323
};
73507324

73517325
/**
@@ -8079,66 +8053,6 @@ export type ItemDestroyJobSchema = {
80798053
data: Item;
80808054
};
80818055

8082-
/**
8083-
* This interface was referenced by `Item`'s JSON-Schema
8084-
* via the `batch_destroy.targetSchema` link.
8085-
*/
8086-
export type ItemBatchDestroyTargetSchema = {
8087-
data: Job;
8088-
};
8089-
8090-
/**
8091-
* This interface was referenced by `Item`'s JSON-Schema
8092-
* via the `batch_destroy.jobSchema` link.
8093-
*/
8094-
export type ItemBatchDestroyJobSchema = {
8095-
data: unknown[];
8096-
meta: {
8097-
successful: number;
8098-
failed: number;
8099-
};
8100-
};
8101-
8102-
/**
8103-
* This interface was referenced by `Item`'s JSON-Schema
8104-
* via the `batch_publish.targetSchema` link.
8105-
*/
8106-
export type ItemBatchPublishTargetSchema = {
8107-
data: Job;
8108-
};
8109-
8110-
/**
8111-
* This interface was referenced by `Item`'s JSON-Schema
8112-
* via the `batch_publish.jobSchema` link.
8113-
*/
8114-
export type ItemBatchPublishJobSchema = {
8115-
data: unknown[];
8116-
meta: {
8117-
successful: number;
8118-
failed: number;
8119-
};
8120-
};
8121-
8122-
/**
8123-
* This interface was referenced by `Item`'s JSON-Schema
8124-
* via the `batch_unpublish.targetSchema` link.
8125-
*/
8126-
export type ItemBatchUnpublishTargetSchema = {
8127-
data: Job;
8128-
};
8129-
8130-
/**
8131-
* This interface was referenced by `Item`'s JSON-Schema
8132-
* via the `batch_unpublish.jobSchema` link.
8133-
*/
8134-
export type ItemBatchUnpublishJobSchema = {
8135-
data: unknown[];
8136-
meta: {
8137-
successful: number;
8138-
failed: number;
8139-
};
8140-
};
8141-
81428056
/**
81438057
* This interface was referenced by `Item`'s JSON-Schema
81448058
* via the `publish.targetSchema` link.
@@ -11866,37 +11780,41 @@ export type SiteMeta = {
1186611780
*/
1186711781
created_at: string;
1186811782
/**
11869-
* Whether the Improved API Timezone Management option is active or not
11783+
* The default value for the draft mode option in all the environment's models
11784+
*/
11785+
draft_mode_default: boolean;
11786+
/**
11787+
* Whether the site has custom upload storage settings
11788+
*/
11789+
custom_upload_storage_settings?: boolean;
11790+
/**
11791+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
1187011792
*/
1187111793
improved_timezone_management: boolean;
1187211794
/**
11873-
* Whether the Improved API Hex Management option is active or not
11795+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
1187411796
*/
1187511797
improved_hex_management: boolean;
1187611798
/**
11877-
* Whether the Improved GraphQL multi-locale fields option is active or not
11799+
* Whether the [Improved GraphQL multi-locale fields](https://www.datocms.com/product-updates/improved-gql-multilocale-fields) opt-in product update is active or not
1187811800
*/
1187911801
improved_gql_multilocale_fields: boolean;
1188011802
/**
11881-
* Whether the Improved GraphQL visibility control option is active or not
11803+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
1188211804
*/
1188311805
improved_gql_visibility_control: boolean;
1188411806
/**
11885-
* Whether the Improved boolean fields option is active or not
11807+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
1188611808
*/
1188711809
improved_boolean_fields: boolean;
1188811810
/**
11889-
* The default value for the draft mode option in all the environment's models
11890-
*/
11891-
draft_mode_default: boolean;
11892-
/**
11893-
* Whether the Improved validation at publishing option is active or not
11811+
* Whether the [Improved validation at publishing](https://www.datocms.com/product-updates/force-validations-on-records-when-publishing) opt-in product update is active or not
1189411812
*/
1189511813
improved_validation_at_publishing: boolean;
1189611814
/**
11897-
* Whether the site has custom upload storage settings
11815+
* Whether the [Improved exposure of inline blocks in the Content Delivery API](https://www.datocms.com/product-updates/improved-exposure-of-inline-blocks-in-cda) opt-in product update is active or not
1189811816
*/
11899-
custom_upload_storage_settings?: boolean;
11817+
improved_exposure_of_inline_blocks_in_cda: boolean;
1190011818
};
1190111819

1190211820
/**
@@ -12049,37 +11967,41 @@ export type SiteUpdateSchema = {
1204911967
};
1205011968
meta?: {
1205111969
/**
12052-
* Whether the Improved API Timezone Management option is active or not
11970+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
1205311971
*/
1205411972
improved_timezone_management?: boolean;
1205511973
/**
12056-
* Whether the Improved API Hex Management option is active or not
11974+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
1205711975
*/
1205811976
improved_hex_management?: boolean;
1205911977
/**
12060-
* Whether the Improved GraphQL multi-locale fields option is active or not
11978+
* Whether the [Improved GraphQL multi-locale fields](https://www.datocms.com/product-updates/improved-gql-multilocale-fields) opt-in product update is active or not
1206111979
*/
1206211980
improved_gql_multilocale_fields?: boolean;
1206311981
/**
12064-
* Whether the Improved GraphQL visibility control option is active or not
11982+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
1206511983
*/
1206611984
improved_gql_visibility_control?: boolean;
1206711985
/**
12068-
* Whether the Improved boolean fields option is active or not
11986+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
1206911987
*/
1207011988
improved_boolean_fields?: boolean;
1207111989
/**
1207211990
* The default value for the draft mode option in all the environment's models
1207311991
*/
1207411992
draft_mode_default?: boolean;
1207511993
/**
12076-
* Whether the Improved validation at publishing option is active or not
11994+
* Whether the [Improved validation at publishing](https://www.datocms.com/product-updates/force-validations-on-records-when-publishing) opt-in product update is active or not
1207711995
*/
1207811996
improved_validation_at_publishing?: boolean;
1207911997
/**
1208011998
* Whether the site has custom upload storage settings
1208111999
*/
1208212000
custom_upload_storage_settings?: boolean;
12001+
/**
12002+
* Whether the [Improved exposure of inline blocks in the Content Delivery API](https://www.datocms.com/product-updates/improved-exposure-of-inline-blocks-in-cda) opt-in product update is active or not
12003+
*/
12004+
improved_exposure_of_inline_blocks_in_cda?: boolean;
1208312005
};
1208412006
relationships?: {
1208512007
sso_default_role?: {
@@ -12169,6 +12091,14 @@ export type SiteActivateImprovedValidationAtPublishingTargetSchema = {
1216912091
data: Site;
1217012092
};
1217112093

12094+
/**
12095+
* This interface was referenced by `Site`'s JSON-Schema
12096+
* via the `activate_improved_exposure_of_inline_blocks_in_cda.targetSchema` link.
12097+
*/
12098+
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = {
12099+
data: Site;
12100+
};
12101+
1217212102
/**
1217312103
* This interface was referenced by `Site`'s JSON-Schema
1217412104
* via the `update_assets_cdn_default_settings.schema` link.

0 commit comments

Comments
 (0)