@datocms/cma-client 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/cjs/generated/Client.js +1 -1
  2. package/dist/cjs/generated/resources/Item.js +0 -96
  3. package/dist/cjs/generated/resources/Item.js.map +1 -1
  4. package/dist/cjs/generated/resources/Site.js +31 -0
  5. package/dist/cjs/generated/resources/Site.js.map +1 -1
  6. package/dist/cjs/generated/resources/Upload.js +0 -69
  7. package/dist/cjs/generated/resources/Upload.js.map +1 -1
  8. package/dist/esm/generated/Client.js +1 -1
  9. package/dist/esm/generated/SchemaTypes.d.ts +47 -176
  10. package/dist/esm/generated/SimpleSchemaTypes.d.ts +43 -127
  11. package/dist/esm/generated/resources/Item.d.ts +0 -66
  12. package/dist/esm/generated/resources/Item.js +0 -96
  13. package/dist/esm/generated/resources/Item.js.map +1 -1
  14. package/dist/esm/generated/resources/Site.d.ts +22 -0
  15. package/dist/esm/generated/resources/Site.js +31 -0
  16. package/dist/esm/generated/resources/Site.js.map +1 -1
  17. package/dist/esm/generated/resources/Upload.d.ts +0 -44
  18. package/dist/esm/generated/resources/Upload.js +0 -69
  19. package/dist/esm/generated/resources/Upload.js.map +1 -1
  20. package/dist/types/generated/SchemaTypes.d.ts +47 -176
  21. package/dist/types/generated/SimpleSchemaTypes.d.ts +43 -127
  22. package/dist/types/generated/resources/Item.d.ts +0 -66
  23. package/dist/types/generated/resources/Site.d.ts +22 -0
  24. package/dist/types/generated/resources/Upload.d.ts +0 -44
  25. package/package.json +4 -4
  26. package/resources.json +15 -86
  27. package/src/generated/Client.ts +1 -1
  28. package/src/generated/SchemaTypes.ts +48 -187
  29. package/src/generated/SimpleSchemaTypes.ts +43 -128
  30. package/src/generated/resources/Item.ts +0 -114
  31. package/src/generated/resources/Site.ts +37 -0
  32. package/src/generated/resources/Upload.ts +0 -88
@@ -929,51 +929,6 @@ export type ItemVersionType = 'item_version';
929
929
  * via the `definition` "id".
930
930
  */
931
931
  export type ItemVersionIdentity = string;
932
- /**
933
- * This interface was referenced by `Item`'s JSON-Schema
934
- * via the `batch_destroy.jobSchema` link.
935
- */
936
- export type ItemBatchDestroyJobSchema = unknown[];
937
- /**
938
- * This interface was referenced by `Item`'s JSON-Schema
939
- * via the `batch_destroy.hrefSchema` link.
940
- */
941
- export type ItemBatchDestroyHrefSchema = {
942
- /**
943
- * IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
944
- */
945
- 'filter[ids]': string;
946
- };
947
- /**
948
- * This interface was referenced by `Item`'s JSON-Schema
949
- * via the `batch_publish.jobSchema` link.
950
- */
951
- export type ItemBatchPublishJobSchema = unknown[];
952
- /**
953
- * This interface was referenced by `Item`'s JSON-Schema
954
- * via the `batch_publish.hrefSchema` link.
955
- */
956
- export type ItemBatchPublishHrefSchema = {
957
- /**
958
- * IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
959
- */
960
- 'filter[ids]': string;
961
- };
962
- /**
963
- * This interface was referenced by `Item`'s JSON-Schema
964
- * via the `batch_unpublish.jobSchema` link.
965
- */
966
- export type ItemBatchUnpublishJobSchema = unknown[];
967
- /**
968
- * This interface was referenced by `Item`'s JSON-Schema
969
- * via the `batch_unpublish.hrefSchema` link.
970
- */
971
- export type ItemBatchUnpublishHrefSchema = {
972
- /**
973
- * IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
974
- */
975
- 'filter[ids]': string;
976
- };
977
932
  /**
978
933
  * This interface was referenced by `Item`'s JSON-Schema
979
934
  * via the `publish.schema` link.
@@ -1147,38 +1102,6 @@ export type UploadInstancesHrefSchema = {
1147
1102
  };
1148
1103
  [k: string]: unknown;
1149
1104
  };
1150
- /**
1151
- * This interface was referenced by `Upload`'s JSON-Schema
1152
- * via the `batch_add_tags.jobSchema` link.
1153
- */
1154
- export type UploadBatchAddTagsJobSchema = unknown[];
1155
- /**
1156
- * This interface was referenced by `Upload`'s JSON-Schema
1157
- * via the `batch_add_tags.hrefSchema` link.
1158
- */
1159
- export type UploadBatchAddTagsHrefSchema = {
1160
- /**
1161
- * IDs to tag, comma separated
1162
- */
1163
- 'filter[ids]'?: string;
1164
- [k: string]: unknown;
1165
- };
1166
- /**
1167
- * This interface was referenced by `Upload`'s JSON-Schema
1168
- * via the `batch_destroy.jobSchema` link.
1169
- */
1170
- export type UploadBatchDestroyJobSchema = unknown[];
1171
- /**
1172
- * This interface was referenced by `Upload`'s JSON-Schema
1173
- * via the `batch_destroy.hrefSchema` link.
1174
- */
1175
- export type UploadBatchDestroyHrefSchema = {
1176
- /**
1177
- * IDs to destroy, comma separated
1178
- */
1179
- 'filter[ids]'?: string;
1180
- [k: string]: unknown;
1181
- };
1182
1105
  /**
1183
1106
  * This interface was referenced by `Upload`'s JSON-Schema
1184
1107
  * via the `references.targetSchema` link.
@@ -4240,15 +4163,6 @@ export type MenuItemUpdateSchema = {
4240
4163
  * via the `destroy.targetSchema` link.
4241
4164
  *
4242
4165
  * This interface was referenced by `Item`'s JSON-Schema
4243
- * via the `batch_destroy.targetSchema` link.
4244
- *
4245
- * This interface was referenced by `Item`'s JSON-Schema
4246
- * via the `batch_publish.targetSchema` link.
4247
- *
4248
- * This interface was referenced by `Item`'s JSON-Schema
4249
- * via the `batch_unpublish.targetSchema` link.
4250
- *
4251
- * This interface was referenced by `Item`'s JSON-Schema
4252
4166
  * via the `bulk_publish.targetSchema` link.
4253
4167
  *
4254
4168
  * This interface was referenced by `Item`'s JSON-Schema
@@ -4270,12 +4184,6 @@ export type MenuItemUpdateSchema = {
4270
4184
  * via the `update.targetSchema` link.
4271
4185
  *
4272
4186
  * This interface was referenced by `Upload`'s JSON-Schema
4273
- * via the `batch_add_tags.targetSchema` link.
4274
- *
4275
- * This interface was referenced by `Upload`'s JSON-Schema
4276
- * via the `batch_destroy.targetSchema` link.
4277
- *
4278
- * This interface was referenced by `Upload`'s JSON-Schema
4279
4187
  * via the `bulk_tag.targetSchema` link.
4280
4188
  *
4281
4189
  * This interface was referenced by `Upload`'s JSON-Schema
@@ -4318,9 +4226,6 @@ export type FieldDestroyTargetSchema = Job;
4318
4226
  export type FieldDuplicateTargetSchema = Job;
4319
4227
  export type ItemDuplicateTargetSchema = Job;
4320
4228
  export type ItemDestroyTargetSchema = Job;
4321
- export type ItemBatchDestroyTargetSchema = Job;
4322
- export type ItemBatchPublishTargetSchema = Job;
4323
- export type ItemBatchUnpublishTargetSchema = Job;
4324
4229
  export type ItemBulkPublishTargetSchema = Job;
4325
4230
  export type ItemBulkUnpublishTargetSchema = Job;
4326
4231
  export type ItemBulkDestroyTargetSchema = Job;
@@ -4328,8 +4233,6 @@ export type ItemBulkMoveToStageTargetSchema = Job;
4328
4233
  export type ItemVersionRestoreTargetSchema = Job;
4329
4234
  export type UploadCreateTargetSchema = Job;
4330
4235
  export type UploadUpdateTargetSchema = Job;
4331
- export type UploadBatchAddTagsTargetSchema = Job;
4332
- export type UploadBatchDestroyTargetSchema = Job;
4333
4236
  export type UploadBulkTagTargetSchema = Job;
4334
4237
  export type UploadBulkSetUploadCollectionTargetSchema = Job;
4335
4238
  export type UploadBulkDestroyTargetSchema = Job;
@@ -5276,7 +5179,7 @@ export type ItemTypeUpdateSchema = {
5276
5179
  * | Code | `structured_text` |
5277
5180
  * | Built-in editors for the field | `structured_text` |
5278
5181
  * | Required validators | `structured_text_blocks`, `structured_text_links` |
5279
- * | Other validators available | `length` |
5182
+ * | Other validators available | `length`, `structured_text_inline_blocks` |
5280
5183
  *
5281
5184
  * </details>
5282
5185
  *
@@ -5612,6 +5515,17 @@ export type ItemTypeUpdateSchema = {
5612
5515
  * </details>
5613
5516
  *
5614
5517
  * <details>
5518
+ * <summary><code>structured_text_inline_blocks</code></summary>
5519
+ *
5520
+ * Only accept references to block records of the specified block models.
5521
+ *
5522
+ * | Parameter | Type | Required | Description |
5523
+ * | ------------ | ----------------------- | -------- | ------------------------------ |
5524
+ * | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
5525
+ *
5526
+ * </details>
5527
+ *
5528
+ * <details>
5615
5529
  * <summary><code>structured_text_links</code></summary>
5616
5530
  *
5617
5531
  * Only accept `itemLink` to `inlineItem` nodes for records of the specified models.
@@ -7182,6 +7096,8 @@ export type ItemCurrentVsPublishedState = {
7182
7096
  added_locales: string[];
7183
7097
  removed_locales: string[];
7184
7098
  non_localized_fields_changed: boolean;
7099
+ current_version_invalid_locales: string[];
7100
+ current_version_non_localized_fields_invalid: boolean;
7185
7101
  scheduled_publication: ScheduledPublicationData | null;
7186
7102
  scheduled_unpublishing: ScheduledUnpublishingData | null;
7187
7103
  published_version: ItemVersionData | null;
@@ -7240,6 +7156,8 @@ export type ItemCurrentVsPublishedStateAttributes = {
7240
7156
  added_locales: string[];
7241
7157
  removed_locales: string[];
7242
7158
  non_localized_fields_changed: boolean;
7159
+ current_version_invalid_locales: string[];
7160
+ current_version_non_localized_fields_invalid: boolean;
7243
7161
  };
7244
7162
  /**
7245
7163
  * JSON API links
@@ -7857,17 +7775,6 @@ export type UploadUpdateSchema = {
7857
7775
  creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
7858
7776
  upload_collection?: UploadCollectionData | null;
7859
7777
  };
7860
- /**
7861
- * This interface was referenced by `Upload`'s JSON-Schema
7862
- * via the `batch_add_tags.schema` link.
7863
- */
7864
- export type UploadBatchAddTagsSchema = {
7865
- type?: UploadType;
7866
- /**
7867
- * Tags
7868
- */
7869
- tags: string[];
7870
- };
7871
7778
  /**
7872
7779
  * This interface was referenced by `Upload`'s JSON-Schema
7873
7780
  * via the `bulk_tag.schema` link.
@@ -10395,6 +10302,7 @@ export type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
10395
10302
  export type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
10396
10303
  export type SiteActivateDraftModeAsDefaultTargetSchema = Site;
10397
10304
  export type SiteActivateImprovedValidationAtPublishingTargetSchema = Site;
10305
+ export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = Site;
10398
10306
  export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
10399
10307
  /**
10400
10308
  * Meta attributes
@@ -10408,37 +10316,41 @@ export type SiteMeta = {
10408
10316
  */
10409
10317
  created_at: string;
10410
10318
  /**
10411
- * Whether the Improved API Timezone Management option is active or not
10319
+ * The default value for the draft mode option in all the environment's models
10320
+ */
10321
+ draft_mode_default: boolean;
10322
+ /**
10323
+ * Whether the site has custom upload storage settings
10324
+ */
10325
+ custom_upload_storage_settings?: boolean;
10326
+ /**
10327
+ * Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
10412
10328
  */
10413
10329
  improved_timezone_management: boolean;
10414
10330
  /**
10415
- * Whether the Improved API Hex Management option is active or not
10331
+ * Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
10416
10332
  */
10417
10333
  improved_hex_management: boolean;
10418
10334
  /**
10419
- * Whether the Improved GraphQL multi-locale fields option is active or not
10335
+ * 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
10420
10336
  */
10421
10337
  improved_gql_multilocale_fields: boolean;
10422
10338
  /**
10423
- * Whether the Improved GraphQL visibility control option is active or not
10339
+ * Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
10424
10340
  */
10425
10341
  improved_gql_visibility_control: boolean;
10426
10342
  /**
10427
- * Whether the Improved boolean fields option is active or not
10343
+ * Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
10428
10344
  */
10429
10345
  improved_boolean_fields: boolean;
10430
10346
  /**
10431
- * The default value for the draft mode option in all the environment's models
10432
- */
10433
- draft_mode_default: boolean;
10434
- /**
10435
- * Whether the Improved validation at publishing option is active or not
10347
+ * 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
10436
10348
  */
10437
10349
  improved_validation_at_publishing: boolean;
10438
10350
  /**
10439
- * Whether the site has custom upload storage settings
10351
+ * 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
10440
10352
  */
10441
- custom_upload_storage_settings?: boolean;
10353
+ improved_exposure_of_inline_blocks_in_cda: boolean;
10442
10354
  };
10443
10355
  /**
10444
10356
  * JSON API data
@@ -10757,23 +10669,23 @@ export type SiteUpdateSchema = {
10757
10669
  sso_default_role?: RoleData;
10758
10670
  meta?: {
10759
10671
  /**
10760
- * Whether the Improved API Timezone Management option is active or not
10672
+ * Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
10761
10673
  */
10762
10674
  improved_timezone_management?: boolean;
10763
10675
  /**
10764
- * Whether the Improved API Hex Management option is active or not
10676
+ * Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
10765
10677
  */
10766
10678
  improved_hex_management?: boolean;
10767
10679
  /**
10768
- * Whether the Improved GraphQL multi-locale fields option is active or not
10680
+ * 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
10769
10681
  */
10770
10682
  improved_gql_multilocale_fields?: boolean;
10771
10683
  /**
10772
- * Whether the Improved GraphQL visibility control option is active or not
10684
+ * Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
10773
10685
  */
10774
10686
  improved_gql_visibility_control?: boolean;
10775
10687
  /**
10776
- * Whether the Improved boolean fields option is active or not
10688
+ * Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
10777
10689
  */
10778
10690
  improved_boolean_fields?: boolean;
10779
10691
  /**
@@ -10781,13 +10693,17 @@ export type SiteUpdateSchema = {
10781
10693
  */
10782
10694
  draft_mode_default?: boolean;
10783
10695
  /**
10784
- * Whether the Improved validation at publishing option is active or not
10696
+ * 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
10785
10697
  */
10786
10698
  improved_validation_at_publishing?: boolean;
10787
10699
  /**
10788
10700
  * Whether the site has custom upload storage settings
10789
10701
  */
10790
10702
  custom_upload_storage_settings?: boolean;
10703
+ /**
10704
+ * 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
10705
+ */
10706
+ improved_exposure_of_inline_blocks_in_cda?: boolean;
10791
10707
  };
10792
10708
  };
10793
10709
  /**
@@ -214,72 +214,6 @@ export default class Item extends BaseResource {
214
214
  * @throws {TimeoutError}
215
215
  */
216
216
  rawDestroy(itemId: string): Promise<SchemaTypes.ItemDestroyJobSchema>;
217
- /**
218
- * Delete multiple records
219
- *
220
- * Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_destroy
221
- *
222
- * @throws {ApiError}
223
- * @throws {TimeoutError}
224
- *
225
- * @deprecated This API call is to be considered private and might change without notice
226
- */
227
- batchDestroy(queryParams: SimpleSchemaTypes.ItemBatchDestroyHrefSchema): Promise<SimpleSchemaTypes.ItemBatchDestroyJobSchema>;
228
- /**
229
- * Delete multiple records
230
- *
231
- * Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_destroy
232
- *
233
- * @throws {ApiError}
234
- * @throws {TimeoutError}
235
- *
236
- * @deprecated This API call is to be considered private and might change without notice
237
- */
238
- rawBatchDestroy(queryParams: SchemaTypes.ItemBatchDestroyHrefSchema): Promise<SchemaTypes.ItemBatchDestroyJobSchema>;
239
- /**
240
- * Publish multiple records
241
- *
242
- * Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_publish
243
- *
244
- * @throws {ApiError}
245
- * @throws {TimeoutError}
246
- *
247
- * @deprecated This API call is to be considered private and might change without notice
248
- */
249
- batchPublish(queryParams: SimpleSchemaTypes.ItemBatchPublishHrefSchema): Promise<SimpleSchemaTypes.ItemBatchPublishJobSchema>;
250
- /**
251
- * Publish multiple records
252
- *
253
- * Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_publish
254
- *
255
- * @throws {ApiError}
256
- * @throws {TimeoutError}
257
- *
258
- * @deprecated This API call is to be considered private and might change without notice
259
- */
260
- rawBatchPublish(queryParams: SchemaTypes.ItemBatchPublishHrefSchema): Promise<SchemaTypes.ItemBatchPublishJobSchema>;
261
- /**
262
- * Unpublish multiple records
263
- *
264
- * Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_unpublish
265
- *
266
- * @throws {ApiError}
267
- * @throws {TimeoutError}
268
- *
269
- * @deprecated This API call is to be considered private and might change without notice
270
- */
271
- batchUnpublish(queryParams: SimpleSchemaTypes.ItemBatchUnpublishHrefSchema): Promise<SimpleSchemaTypes.ItemBatchUnpublishJobSchema>;
272
- /**
273
- * Unpublish multiple records
274
- *
275
- * Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_unpublish
276
- *
277
- * @throws {ApiError}
278
- * @throws {TimeoutError}
279
- *
280
- * @deprecated This API call is to be considered private and might change without notice
281
- */
282
- rawBatchUnpublish(queryParams: SchemaTypes.ItemBatchUnpublishHrefSchema): Promise<SchemaTypes.ItemBatchUnpublishJobSchema>;
283
217
  /**
284
218
  * Publish a record
285
219
  *
@@ -193,6 +193,28 @@ export default class Site extends BaseResource {
193
193
  * @deprecated This API call is to be considered private and might change without notice
194
194
  */
195
195
  rawActivateImprovedValidationAtPublishing(): Promise<SchemaTypes.SiteActivateImprovedValidationAtPublishingTargetSchema>;
196
+ /**
197
+ * Activate having two different GraphQL fields for regular blocks and inline blocks
198
+ *
199
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda
200
+ *
201
+ * @throws {ApiError}
202
+ * @throws {TimeoutError}
203
+ *
204
+ * @deprecated This API call is to be considered private and might change without notice
205
+ */
206
+ activateImprovedExposureOfInlineBlocksInCda(): Promise<SimpleSchemaTypes.Site>;
207
+ /**
208
+ * Activate having two different GraphQL fields for regular blocks and inline blocks
209
+ *
210
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda
211
+ *
212
+ * @throws {ApiError}
213
+ * @throws {TimeoutError}
214
+ *
215
+ * @deprecated This API call is to be considered private and might change without notice
216
+ */
217
+ rawActivateImprovedExposureOfInlineBlocksInCda(): Promise<SchemaTypes.SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema>;
196
218
  /**
197
219
  * Update CDN settings default assets
198
220
  *
@@ -112,50 +112,6 @@ export default class Upload extends BaseResource {
112
112
  * @throws {TimeoutError}
113
113
  */
114
114
  rawUpdate(uploadId: string, body: SchemaTypes.UploadUpdateSchema): Promise<SchemaTypes.UploadUpdateJobSchema>;
115
- /**
116
- * Batch add tags to uploads
117
- *
118
- * Read more: https://www.datocms.com/docs/content-management-api/resources/upload/batch_add_tags
119
- *
120
- * @throws {ApiError}
121
- * @throws {TimeoutError}
122
- *
123
- * @deprecated This API call is to be considered private and might change without notice
124
- */
125
- batchAddTags(body: SimpleSchemaTypes.UploadBatchAddTagsSchema, queryParams?: SimpleSchemaTypes.UploadBatchAddTagsHrefSchema): Promise<SimpleSchemaTypes.UploadBatchAddTagsJobSchema>;
126
- /**
127
- * Batch add tags to uploads
128
- *
129
- * Read more: https://www.datocms.com/docs/content-management-api/resources/upload/batch_add_tags
130
- *
131
- * @throws {ApiError}
132
- * @throws {TimeoutError}
133
- *
134
- * @deprecated This API call is to be considered private and might change without notice
135
- */
136
- rawBatchAddTags(body: SchemaTypes.UploadBatchAddTagsSchema, queryParams?: SchemaTypes.UploadBatchAddTagsHrefSchema): Promise<SchemaTypes.UploadBatchAddTagsJobSchema>;
137
- /**
138
- * Delete multiple uploads
139
- *
140
- * Read more: https://www.datocms.com/docs/content-management-api/resources/upload/batch_destroy
141
- *
142
- * @throws {ApiError}
143
- * @throws {TimeoutError}
144
- *
145
- * @deprecated This API call is to be considered private and might change without notice
146
- */
147
- batchDestroy(queryParams?: SimpleSchemaTypes.UploadBatchDestroyHrefSchema): Promise<SimpleSchemaTypes.UploadBatchDestroyJobSchema>;
148
- /**
149
- * Delete multiple uploads
150
- *
151
- * Read more: https://www.datocms.com/docs/content-management-api/resources/upload/batch_destroy
152
- *
153
- * @throws {ApiError}
154
- * @throws {TimeoutError}
155
- *
156
- * @deprecated This API call is to be considered private and might change without notice
157
- */
158
- rawBatchDestroy(queryParams?: SchemaTypes.UploadBatchDestroyHrefSchema): Promise<SchemaTypes.UploadBatchDestroyJobSchema>;
159
115
  /**
160
116
  * Referenced records
161
117
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -37,12 +37,12 @@
37
37
  "url": "https://github.com/datocms/js-rest-api-clients/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@datocms/rest-client-utils": "^4.0.0",
40
+ "@datocms/rest-client-utils": "^4.0.2",
41
41
  "uuid": "^9.0.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@datocms/dashboard-client": "^4.0.0",
44
+ "@datocms/dashboard-client": "^4.0.2",
45
45
  "@types/uuid": "^9.0.7"
46
46
  },
47
- "gitHead": "c74fa489d5e1b126a19836232a666093f2f4dd40"
47
+ "gitHead": "54edef70299bae87960f92774b2d76d95c72b480"
48
48
  }
package/resources.json CHANGED
@@ -2232,54 +2232,6 @@
2232
2232
  "name": "destroy",
2233
2233
  "rawName": "rawDestroy"
2234
2234
  },
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
- },
2283
2235
  {
2284
2236
  "returnsCollection": false,
2285
2237
  "docUrl": "https://www.datocms.com/docs/content-management-api/resources/item/publish",
@@ -2649,44 +2601,6 @@
2649
2601
  "name": "update",
2650
2602
  "rawName": "rawUpdate"
2651
2603
  },
2652
- {
2653
- "returnsCollection": false,
2654
- "docUrl": "https://www.datocms.com/docs/content-management-api/resources/upload/batch_add_tags",
2655
- "rel": "batch_add_tags",
2656
- "urlTemplate": "/uploads/batch-add-tags",
2657
- "method": "PUT",
2658
- "comment": "Batch add tags to uploads",
2659
- "urlPlaceholders": [],
2660
- "requestBodyType": "UploadBatchAddTagsSchema",
2661
- "optionalRequestBody": false,
2662
- "requestStructure": {
2663
- "type": "upload",
2664
- "attributes": ["tags"],
2665
- "relationships": []
2666
- },
2667
- "queryParamsType": "UploadBatchAddTagsHrefSchema",
2668
- "queryParamsRequired": false,
2669
- "responseType": "UploadBatchAddTagsJobSchema",
2670
- "deprecated": "This API call is to be considered private and might change without notice",
2671
- "name": "batchAddTags",
2672
- "rawName": "rawBatchAddTags"
2673
- },
2674
- {
2675
- "returnsCollection": false,
2676
- "docUrl": "https://www.datocms.com/docs/content-management-api/resources/upload/batch_destroy",
2677
- "rel": "batch_destroy",
2678
- "urlTemplate": "/uploads/batch-destroy",
2679
- "method": "DELETE",
2680
- "comment": "Delete multiple uploads",
2681
- "urlPlaceholders": [],
2682
- "optionalRequestBody": false,
2683
- "queryParamsType": "UploadBatchDestroyHrefSchema",
2684
- "queryParamsRequired": false,
2685
- "responseType": "UploadBatchDestroyJobSchema",
2686
- "deprecated": "This API call is to be considered private and might change without notice",
2687
- "name": "batchDestroy",
2688
- "rawName": "rawBatchDestroy"
2689
- },
2690
2604
  {
2691
2605
  "returnsCollection": false,
2692
2606
  "docUrl": "https://www.datocms.com/docs/content-management-api/resources/upload/references",
@@ -4715,6 +4629,21 @@
4715
4629
  "name": "activateImprovedValidationAtPublishing",
4716
4630
  "rawName": "rawActivateImprovedValidationAtPublishing"
4717
4631
  },
4632
+ {
4633
+ "returnsCollection": false,
4634
+ "docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda",
4635
+ "rel": "activate_improved_exposure_of_inline_blocks_in_cda",
4636
+ "urlTemplate": "/site/activate-improved-exposure-of-inline-blocks-in-cda",
4637
+ "method": "PUT",
4638
+ "comment": "Activate having two different GraphQL fields for regular blocks and inline blocks",
4639
+ "urlPlaceholders": [],
4640
+ "optionalRequestBody": false,
4641
+ "queryParamsRequired": false,
4642
+ "responseType": "SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema",
4643
+ "deprecated": "This API call is to be considered private and might change without notice",
4644
+ "name": "activateImprovedExposureOfInlineBlocksInCda",
4645
+ "rawName": "rawActivateImprovedExposureOfInlineBlocksInCda"
4646
+ },
4718
4647
  {
4719
4648
  "returnsCollection": false,
4720
4649
  "docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings",
@@ -147,7 +147,7 @@ export class Client {
147
147
  ...this.config,
148
148
  ...options,
149
149
  logFn: this.config.logFn || console.log,
150
- userAgent: '@datocms/cma-client v4.0.1',
150
+ userAgent: '@datocms/cma-client v4.0.2',
151
151
  baseUrl: this.baseUrl,
152
152
  preCallStack: new Error().stack,
153
153
  extraHeaders: {