@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.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/resources/Item.js +0 -96
- package/dist/cjs/generated/resources/Item.js.map +1 -1
- package/dist/cjs/generated/resources/Site.js +31 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/generated/resources/Upload.js +0 -69
- package/dist/cjs/generated/resources/Upload.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +47 -176
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +43 -127
- package/dist/esm/generated/resources/Item.d.ts +0 -66
- package/dist/esm/generated/resources/Item.js +0 -96
- package/dist/esm/generated/resources/Item.js.map +1 -1
- package/dist/esm/generated/resources/Site.d.ts +22 -0
- package/dist/esm/generated/resources/Site.js +31 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/resources/Upload.d.ts +0 -44
- package/dist/esm/generated/resources/Upload.js +0 -69
- package/dist/esm/generated/resources/Upload.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +47 -176
- package/dist/types/generated/SimpleSchemaTypes.d.ts +43 -127
- package/dist/types/generated/resources/Item.d.ts +0 -66
- package/dist/types/generated/resources/Site.d.ts +22 -0
- package/dist/types/generated/resources/Upload.d.ts +0 -44
- package/package.json +4 -4
- package/resources.json +15 -86
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +48 -187
- package/src/generated/SimpleSchemaTypes.ts +43 -128
- package/src/generated/resources/Item.ts +0 -114
- package/src/generated/resources/Site.ts +37 -0
- 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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
*
|
|
@@ -456,102 +456,6 @@ var Item = /** @class */ (function (_super) {
|
|
|
456
456
|
url: "/items/".concat(itemId),
|
|
457
457
|
});
|
|
458
458
|
};
|
|
459
|
-
/**
|
|
460
|
-
* Delete multiple records
|
|
461
|
-
*
|
|
462
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_destroy
|
|
463
|
-
*
|
|
464
|
-
* @throws {ApiError}
|
|
465
|
-
* @throws {TimeoutError}
|
|
466
|
-
*
|
|
467
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
468
|
-
*/
|
|
469
|
-
Item.prototype.batchDestroy = function (queryParams) {
|
|
470
|
-
return this.rawBatchDestroy(queryParams).then(function (body) {
|
|
471
|
-
return Utils.deserializeResponseBody(body);
|
|
472
|
-
});
|
|
473
|
-
};
|
|
474
|
-
/**
|
|
475
|
-
* Delete multiple records
|
|
476
|
-
*
|
|
477
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_destroy
|
|
478
|
-
*
|
|
479
|
-
* @throws {ApiError}
|
|
480
|
-
* @throws {TimeoutError}
|
|
481
|
-
*
|
|
482
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
483
|
-
*/
|
|
484
|
-
Item.prototype.rawBatchDestroy = function (queryParams) {
|
|
485
|
-
return this.client.request({
|
|
486
|
-
method: 'DELETE',
|
|
487
|
-
url: '/items',
|
|
488
|
-
queryParams: queryParams,
|
|
489
|
-
});
|
|
490
|
-
};
|
|
491
|
-
/**
|
|
492
|
-
* Publish multiple records
|
|
493
|
-
*
|
|
494
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_publish
|
|
495
|
-
*
|
|
496
|
-
* @throws {ApiError}
|
|
497
|
-
* @throws {TimeoutError}
|
|
498
|
-
*
|
|
499
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
500
|
-
*/
|
|
501
|
-
Item.prototype.batchPublish = function (queryParams) {
|
|
502
|
-
return this.rawBatchPublish(queryParams).then(function (body) {
|
|
503
|
-
return Utils.deserializeResponseBody(body);
|
|
504
|
-
});
|
|
505
|
-
};
|
|
506
|
-
/**
|
|
507
|
-
* Publish multiple records
|
|
508
|
-
*
|
|
509
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_publish
|
|
510
|
-
*
|
|
511
|
-
* @throws {ApiError}
|
|
512
|
-
* @throws {TimeoutError}
|
|
513
|
-
*
|
|
514
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
515
|
-
*/
|
|
516
|
-
Item.prototype.rawBatchPublish = function (queryParams) {
|
|
517
|
-
return this.client.request({
|
|
518
|
-
method: 'PUT',
|
|
519
|
-
url: '/items/publish',
|
|
520
|
-
queryParams: queryParams,
|
|
521
|
-
});
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* Unpublish multiple records
|
|
525
|
-
*
|
|
526
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_unpublish
|
|
527
|
-
*
|
|
528
|
-
* @throws {ApiError}
|
|
529
|
-
* @throws {TimeoutError}
|
|
530
|
-
*
|
|
531
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
532
|
-
*/
|
|
533
|
-
Item.prototype.batchUnpublish = function (queryParams) {
|
|
534
|
-
return this.rawBatchUnpublish(queryParams).then(function (body) {
|
|
535
|
-
return Utils.deserializeResponseBody(body);
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
/**
|
|
539
|
-
* Unpublish multiple records
|
|
540
|
-
*
|
|
541
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_unpublish
|
|
542
|
-
*
|
|
543
|
-
* @throws {ApiError}
|
|
544
|
-
* @throws {TimeoutError}
|
|
545
|
-
*
|
|
546
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
547
|
-
*/
|
|
548
|
-
Item.prototype.rawBatchUnpublish = function (queryParams) {
|
|
549
|
-
return this.client.request({
|
|
550
|
-
method: 'PUT',
|
|
551
|
-
url: '/items/unpublish',
|
|
552
|
-
queryParams: queryParams,
|
|
553
|
-
});
|
|
554
|
-
};
|
|
555
459
|
/**
|
|
556
460
|
* Publish a record
|
|
557
461
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/generated/resources/Item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAkC,wBAAY;IAA9C;;
|
|
1
|
+
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/generated/resources/Item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAkC,wBAAY;IAA9C;;IA4rBA,CAAC;IAzrBC;;;;;;;OAOG;IACH,mBAAI,GAAJ,UAAK,WAAuD;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACzC,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,sBAAO,GAAP,UACE,WAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwC;YAChE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,QAAQ;YACb,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACI,gCAAiB,GAAxB,UACE,WAGC,EACD,eAAuC;;;;;;;;mCAEX,KAAA,cAAA,IAAI,CAAC,oBAAoB,CACnD,WAAW,EACX,eAAe,CAChB,CAAA;;;;;wBAH2B,cAG3B;wBAH2B,WAG3B;;;;wBAHgB,OAAO,KAAA,CAAA;qDAIhB,KAAK,CAAC,qBAAqB,CAE/B,OAAO,CAAC;4BAFV,gCAEU;;wBAFV,SAEU,CAAC;;;;;;;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AA,AA5rBD,CAAkC,YAAY,GA4rB7C;eA5rBoB,IAAI"}
|
|
@@ -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
|
*
|
|
@@ -308,6 +308,37 @@ var Site = /** @class */ (function (_super) {
|
|
|
308
308
|
url: '/site/activate-improved-validation-at-publishing',
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
|
+
/**
|
|
312
|
+
* Activate having two different GraphQL fields for regular blocks and inline blocks
|
|
313
|
+
*
|
|
314
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda
|
|
315
|
+
*
|
|
316
|
+
* @throws {ApiError}
|
|
317
|
+
* @throws {TimeoutError}
|
|
318
|
+
*
|
|
319
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
320
|
+
*/
|
|
321
|
+
Site.prototype.activateImprovedExposureOfInlineBlocksInCda = function () {
|
|
322
|
+
return this.rawActivateImprovedExposureOfInlineBlocksInCda().then(function (body) {
|
|
323
|
+
return Utils.deserializeResponseBody(body);
|
|
324
|
+
});
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Activate having two different GraphQL fields for regular blocks and inline blocks
|
|
328
|
+
*
|
|
329
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda
|
|
330
|
+
*
|
|
331
|
+
* @throws {ApiError}
|
|
332
|
+
* @throws {TimeoutError}
|
|
333
|
+
*
|
|
334
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
335
|
+
*/
|
|
336
|
+
Site.prototype.rawActivateImprovedExposureOfInlineBlocksInCda = function () {
|
|
337
|
+
return this.client.request({
|
|
338
|
+
method: 'PUT',
|
|
339
|
+
url: '/site/activate-improved-exposure-of-inline-blocks-in-cda',
|
|
340
|
+
});
|
|
341
|
+
};
|
|
311
342
|
/**
|
|
312
343
|
* Update CDN settings default assets
|
|
313
344
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAkC,wBAAY;IAA9C;;
|
|
1
|
+
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAA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;;;;OASG;IACH,0DAA2C,GAA3C;QACE,OAAO,IAAI,CAAC,8CAA8C,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YACrE,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,6DAA8C,GAA9C;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0DAA0D;SAChE,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,6CAA8B,GAA9B,UACE,IAAgE;QAEhE,OAAO,IAAI,CAAC,iCAAiC,CAC3C,KAAK,CAAC,oBAAoB,CACxB,IAAI,EACJ;YACE,IAAI,EAAE,6BAA6B;YACnC,UAAU,EAAE,CAAC,6BAA6B,CAAC;YAC3C,aAAa,EAAE,EAAE;SAClB,CACF,CACF,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,gDAAiC,GAAjC,UACE,IAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,IAAI,MAAA;SACL,CACF,CAAC;IACJ,CAAC;IAhbe,SAAI,GAAG,MAAe,CAAC;IAibzC,WAAC;CAAA,AAlbD,CAAkC,YAAY,GAkb7C;eAlboB,IAAI"}
|
|
@@ -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
|
*
|