@datocms/cma-client 4.0.0 → 5.0.0-alpha.0
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/Client.js.map +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/esm/buildBlockRecord.d.ts +1 -0
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +43 -102
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +39 -75
- 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/types/buildBlockRecord.d.ts +1 -0
- package/dist/types/generated/SchemaTypes.d.ts +43 -102
- package/dist/types/generated/SimpleSchemaTypes.d.ts +39 -75
- package/dist/types/generated/resources/Item.d.ts +0 -66
- package/dist/types/generated/resources/Site.d.ts +22 -0
- package/package.json +4 -4
- package/resources.json +15 -48
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +44 -108
- package/src/generated/SimpleSchemaTypes.ts +39 -75
- package/src/generated/resources/Item.ts +0 -114
- package/src/generated/resources/Site.ts +37 -0
|
@@ -764,36 +764,6 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
764
764
|
};
|
|
765
765
|
[k: string]: unknown;
|
|
766
766
|
};
|
|
767
|
-
/**
|
|
768
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
769
|
-
* via the `batch_destroy.hrefSchema` link.
|
|
770
|
-
*/
|
|
771
|
-
export type ItemBatchDestroyHrefSchema = {
|
|
772
|
-
/**
|
|
773
|
-
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
774
|
-
*/
|
|
775
|
-
'filter[ids]': string;
|
|
776
|
-
};
|
|
777
|
-
/**
|
|
778
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
779
|
-
* via the `batch_publish.hrefSchema` link.
|
|
780
|
-
*/
|
|
781
|
-
export type ItemBatchPublishHrefSchema = {
|
|
782
|
-
/**
|
|
783
|
-
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
784
|
-
*/
|
|
785
|
-
'filter[ids]': string;
|
|
786
|
-
};
|
|
787
|
-
/**
|
|
788
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
789
|
-
* via the `batch_unpublish.hrefSchema` link.
|
|
790
|
-
*/
|
|
791
|
-
export type ItemBatchUnpublishHrefSchema = {
|
|
792
|
-
/**
|
|
793
|
-
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
794
|
-
*/
|
|
795
|
-
'filter[ids]': string;
|
|
796
|
-
};
|
|
797
767
|
/**
|
|
798
768
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
799
769
|
* via the `publish.schema` link.
|
|
@@ -6798,6 +6768,10 @@ export type ItemMeta = {
|
|
|
6798
6768
|
* Workflow stage in which the item is
|
|
6799
6769
|
*/
|
|
6800
6770
|
stage: null | string;
|
|
6771
|
+
/**
|
|
6772
|
+
* When the records can be organized in a tree, indicates whether the record has children
|
|
6773
|
+
*/
|
|
6774
|
+
has_children: null | boolean;
|
|
6801
6775
|
};
|
|
6802
6776
|
/**
|
|
6803
6777
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
@@ -7032,6 +7006,10 @@ export type ItemUpdateSchema = {
|
|
|
7032
7006
|
* The new stage to move the record to
|
|
7033
7007
|
*/
|
|
7034
7008
|
stage?: string | null;
|
|
7009
|
+
/**
|
|
7010
|
+
* Whether the record has children or not
|
|
7011
|
+
*/
|
|
7012
|
+
has_children?: null | boolean;
|
|
7035
7013
|
};
|
|
7036
7014
|
relationships?: {
|
|
7037
7015
|
/**
|
|
@@ -7104,6 +7082,8 @@ export type ItemCurrentVsPublishedStateAttributes = {
|
|
|
7104
7082
|
added_locales: string[];
|
|
7105
7083
|
removed_locales: string[];
|
|
7106
7084
|
non_localized_fields_changed: boolean;
|
|
7085
|
+
current_version_invalid_locales: string[];
|
|
7086
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7107
7087
|
};
|
|
7108
7088
|
/**
|
|
7109
7089
|
* JSON API links
|
|
@@ -7464,60 +7444,6 @@ export type ItemDestroyTargetSchema = {
|
|
|
7464
7444
|
export type ItemDestroyJobSchema = {
|
|
7465
7445
|
data: Item;
|
|
7466
7446
|
};
|
|
7467
|
-
/**
|
|
7468
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
7469
|
-
* via the `batch_destroy.targetSchema` link.
|
|
7470
|
-
*/
|
|
7471
|
-
export type ItemBatchDestroyTargetSchema = {
|
|
7472
|
-
data: Job;
|
|
7473
|
-
};
|
|
7474
|
-
/**
|
|
7475
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
7476
|
-
* via the `batch_destroy.jobSchema` link.
|
|
7477
|
-
*/
|
|
7478
|
-
export type ItemBatchDestroyJobSchema = {
|
|
7479
|
-
data: unknown[];
|
|
7480
|
-
meta: {
|
|
7481
|
-
successful: number;
|
|
7482
|
-
failed: number;
|
|
7483
|
-
};
|
|
7484
|
-
};
|
|
7485
|
-
/**
|
|
7486
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
7487
|
-
* via the `batch_publish.targetSchema` link.
|
|
7488
|
-
*/
|
|
7489
|
-
export type ItemBatchPublishTargetSchema = {
|
|
7490
|
-
data: Job;
|
|
7491
|
-
};
|
|
7492
|
-
/**
|
|
7493
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
7494
|
-
* via the `batch_publish.jobSchema` link.
|
|
7495
|
-
*/
|
|
7496
|
-
export type ItemBatchPublishJobSchema = {
|
|
7497
|
-
data: unknown[];
|
|
7498
|
-
meta: {
|
|
7499
|
-
successful: number;
|
|
7500
|
-
failed: number;
|
|
7501
|
-
};
|
|
7502
|
-
};
|
|
7503
|
-
/**
|
|
7504
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
7505
|
-
* via the `batch_unpublish.targetSchema` link.
|
|
7506
|
-
*/
|
|
7507
|
-
export type ItemBatchUnpublishTargetSchema = {
|
|
7508
|
-
data: Job;
|
|
7509
|
-
};
|
|
7510
|
-
/**
|
|
7511
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
7512
|
-
* via the `batch_unpublish.jobSchema` link.
|
|
7513
|
-
*/
|
|
7514
|
-
export type ItemBatchUnpublishJobSchema = {
|
|
7515
|
-
data: unknown[];
|
|
7516
|
-
meta: {
|
|
7517
|
-
successful: number;
|
|
7518
|
-
failed: number;
|
|
7519
|
-
};
|
|
7520
|
-
};
|
|
7521
7447
|
/**
|
|
7522
7448
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
7523
7449
|
* via the `publish.targetSchema` link.
|
|
@@ -10906,37 +10832,41 @@ export type SiteMeta = {
|
|
|
10906
10832
|
*/
|
|
10907
10833
|
created_at: string;
|
|
10908
10834
|
/**
|
|
10909
|
-
*
|
|
10835
|
+
* The default value for the draft mode option in all the environment's models
|
|
10836
|
+
*/
|
|
10837
|
+
draft_mode_default: boolean;
|
|
10838
|
+
/**
|
|
10839
|
+
* Whether the site has custom upload storage settings
|
|
10840
|
+
*/
|
|
10841
|
+
custom_upload_storage_settings?: boolean;
|
|
10842
|
+
/**
|
|
10843
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
10910
10844
|
*/
|
|
10911
10845
|
improved_timezone_management: boolean;
|
|
10912
10846
|
/**
|
|
10913
|
-
* Whether the Improved API Hex Management
|
|
10847
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
10914
10848
|
*/
|
|
10915
10849
|
improved_hex_management: boolean;
|
|
10916
10850
|
/**
|
|
10917
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
10851
|
+
* 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
|
|
10918
10852
|
*/
|
|
10919
10853
|
improved_gql_multilocale_fields: boolean;
|
|
10920
10854
|
/**
|
|
10921
|
-
* Whether the Improved GraphQL visibility control
|
|
10855
|
+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
|
|
10922
10856
|
*/
|
|
10923
10857
|
improved_gql_visibility_control: boolean;
|
|
10924
10858
|
/**
|
|
10925
|
-
* Whether the Improved boolean fields
|
|
10859
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
10926
10860
|
*/
|
|
10927
10861
|
improved_boolean_fields: boolean;
|
|
10928
10862
|
/**
|
|
10929
|
-
*
|
|
10930
|
-
*/
|
|
10931
|
-
draft_mode_default: boolean;
|
|
10932
|
-
/**
|
|
10933
|
-
* Whether the Improved validation at publishing option is active or not
|
|
10863
|
+
* 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
|
|
10934
10864
|
*/
|
|
10935
10865
|
improved_validation_at_publishing: boolean;
|
|
10936
10866
|
/**
|
|
10937
|
-
* Whether the
|
|
10867
|
+
* 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
|
|
10938
10868
|
*/
|
|
10939
|
-
|
|
10869
|
+
improved_exposure_of_inline_blocks_in_cda: boolean;
|
|
10940
10870
|
};
|
|
10941
10871
|
/**
|
|
10942
10872
|
* JSON API data
|
|
@@ -11084,23 +11014,23 @@ export type SiteUpdateSchema = {
|
|
|
11084
11014
|
};
|
|
11085
11015
|
meta?: {
|
|
11086
11016
|
/**
|
|
11087
|
-
* Whether the Improved API Timezone Management
|
|
11017
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
11088
11018
|
*/
|
|
11089
11019
|
improved_timezone_management?: boolean;
|
|
11090
11020
|
/**
|
|
11091
|
-
* Whether the Improved API Hex Management
|
|
11021
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
11092
11022
|
*/
|
|
11093
11023
|
improved_hex_management?: boolean;
|
|
11094
11024
|
/**
|
|
11095
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11025
|
+
* 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
|
|
11096
11026
|
*/
|
|
11097
11027
|
improved_gql_multilocale_fields?: boolean;
|
|
11098
11028
|
/**
|
|
11099
|
-
* Whether the Improved GraphQL visibility control
|
|
11029
|
+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
|
|
11100
11030
|
*/
|
|
11101
11031
|
improved_gql_visibility_control?: boolean;
|
|
11102
11032
|
/**
|
|
11103
|
-
* Whether the Improved boolean fields
|
|
11033
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
11104
11034
|
*/
|
|
11105
11035
|
improved_boolean_fields?: boolean;
|
|
11106
11036
|
/**
|
|
@@ -11108,13 +11038,17 @@ export type SiteUpdateSchema = {
|
|
|
11108
11038
|
*/
|
|
11109
11039
|
draft_mode_default?: boolean;
|
|
11110
11040
|
/**
|
|
11111
|
-
* Whether the Improved validation at publishing
|
|
11041
|
+
* 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
|
|
11112
11042
|
*/
|
|
11113
11043
|
improved_validation_at_publishing?: boolean;
|
|
11114
11044
|
/**
|
|
11115
11045
|
* Whether the site has custom upload storage settings
|
|
11116
11046
|
*/
|
|
11117
11047
|
custom_upload_storage_settings?: boolean;
|
|
11048
|
+
/**
|
|
11049
|
+
* 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
|
|
11050
|
+
*/
|
|
11051
|
+
improved_exposure_of_inline_blocks_in_cda?: boolean;
|
|
11118
11052
|
};
|
|
11119
11053
|
relationships?: {
|
|
11120
11054
|
sso_default_role?: {
|
|
@@ -11193,6 +11127,13 @@ export type SiteActivateDraftModeAsDefaultTargetSchema = {
|
|
|
11193
11127
|
export type SiteActivateImprovedValidationAtPublishingTargetSchema = {
|
|
11194
11128
|
data: Site;
|
|
11195
11129
|
};
|
|
11130
|
+
/**
|
|
11131
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
11132
|
+
* via the `activate_improved_exposure_of_inline_blocks_in_cda.targetSchema` link.
|
|
11133
|
+
*/
|
|
11134
|
+
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = {
|
|
11135
|
+
data: Site;
|
|
11136
|
+
};
|
|
11196
11137
|
/**
|
|
11197
11138
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
11198
11139
|
* via the `update_assets_cdn_default_settings.schema` link.
|
|
@@ -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.
|
|
@@ -4240,15 +4195,6 @@ export type MenuItemUpdateSchema = {
|
|
|
4240
4195
|
* via the `destroy.targetSchema` link.
|
|
4241
4196
|
*
|
|
4242
4197
|
* 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
4198
|
* via the `bulk_publish.targetSchema` link.
|
|
4253
4199
|
*
|
|
4254
4200
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
@@ -4318,9 +4264,6 @@ export type FieldDestroyTargetSchema = Job;
|
|
|
4318
4264
|
export type FieldDuplicateTargetSchema = Job;
|
|
4319
4265
|
export type ItemDuplicateTargetSchema = Job;
|
|
4320
4266
|
export type ItemDestroyTargetSchema = Job;
|
|
4321
|
-
export type ItemBatchDestroyTargetSchema = Job;
|
|
4322
|
-
export type ItemBatchPublishTargetSchema = Job;
|
|
4323
|
-
export type ItemBatchUnpublishTargetSchema = Job;
|
|
4324
4267
|
export type ItemBulkPublishTargetSchema = Job;
|
|
4325
4268
|
export type ItemBulkUnpublishTargetSchema = Job;
|
|
4326
4269
|
export type ItemBulkDestroyTargetSchema = Job;
|
|
@@ -7003,6 +6946,10 @@ export type ItemMeta = {
|
|
|
7003
6946
|
* Workflow stage in which the item is
|
|
7004
6947
|
*/
|
|
7005
6948
|
stage: null | string;
|
|
6949
|
+
/**
|
|
6950
|
+
* When the records can be organized in a tree, indicates whether the record has children
|
|
6951
|
+
*/
|
|
6952
|
+
has_children: null | boolean;
|
|
7006
6953
|
};
|
|
7007
6954
|
/**
|
|
7008
6955
|
* The JSON data associated to the record
|
|
@@ -7161,6 +7108,10 @@ export type ItemUpdateSchema = {
|
|
|
7161
7108
|
* The new stage to move the record to
|
|
7162
7109
|
*/
|
|
7163
7110
|
stage?: string | null;
|
|
7111
|
+
/**
|
|
7112
|
+
* Whether the record has children or not
|
|
7113
|
+
*/
|
|
7114
|
+
has_children?: null | boolean;
|
|
7164
7115
|
};
|
|
7165
7116
|
[k: string]: unknown;
|
|
7166
7117
|
};
|
|
@@ -7182,6 +7133,8 @@ export type ItemCurrentVsPublishedState = {
|
|
|
7182
7133
|
added_locales: string[];
|
|
7183
7134
|
removed_locales: string[];
|
|
7184
7135
|
non_localized_fields_changed: boolean;
|
|
7136
|
+
current_version_invalid_locales: string[];
|
|
7137
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7185
7138
|
scheduled_publication: ScheduledPublicationData | null;
|
|
7186
7139
|
scheduled_unpublishing: ScheduledUnpublishingData | null;
|
|
7187
7140
|
published_version: ItemVersionData | null;
|
|
@@ -7240,6 +7193,8 @@ export type ItemCurrentVsPublishedStateAttributes = {
|
|
|
7240
7193
|
added_locales: string[];
|
|
7241
7194
|
removed_locales: string[];
|
|
7242
7195
|
non_localized_fields_changed: boolean;
|
|
7196
|
+
current_version_invalid_locales: string[];
|
|
7197
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7243
7198
|
};
|
|
7244
7199
|
/**
|
|
7245
7200
|
* JSON API links
|
|
@@ -10395,6 +10350,7 @@ export type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
|
|
|
10395
10350
|
export type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
|
|
10396
10351
|
export type SiteActivateDraftModeAsDefaultTargetSchema = Site;
|
|
10397
10352
|
export type SiteActivateImprovedValidationAtPublishingTargetSchema = Site;
|
|
10353
|
+
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = Site;
|
|
10398
10354
|
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
10399
10355
|
/**
|
|
10400
10356
|
* Meta attributes
|
|
@@ -10408,37 +10364,41 @@ export type SiteMeta = {
|
|
|
10408
10364
|
*/
|
|
10409
10365
|
created_at: string;
|
|
10410
10366
|
/**
|
|
10411
|
-
*
|
|
10367
|
+
* The default value for the draft mode option in all the environment's models
|
|
10368
|
+
*/
|
|
10369
|
+
draft_mode_default: boolean;
|
|
10370
|
+
/**
|
|
10371
|
+
* Whether the site has custom upload storage settings
|
|
10372
|
+
*/
|
|
10373
|
+
custom_upload_storage_settings?: boolean;
|
|
10374
|
+
/**
|
|
10375
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
10412
10376
|
*/
|
|
10413
10377
|
improved_timezone_management: boolean;
|
|
10414
10378
|
/**
|
|
10415
|
-
* Whether the Improved API Hex Management
|
|
10379
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
10416
10380
|
*/
|
|
10417
10381
|
improved_hex_management: boolean;
|
|
10418
10382
|
/**
|
|
10419
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
10383
|
+
* 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
10384
|
*/
|
|
10421
10385
|
improved_gql_multilocale_fields: boolean;
|
|
10422
10386
|
/**
|
|
10423
|
-
* Whether the Improved GraphQL visibility control
|
|
10387
|
+
* 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
10388
|
*/
|
|
10425
10389
|
improved_gql_visibility_control: boolean;
|
|
10426
10390
|
/**
|
|
10427
|
-
* Whether the Improved boolean fields
|
|
10391
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
10428
10392
|
*/
|
|
10429
10393
|
improved_boolean_fields: boolean;
|
|
10430
10394
|
/**
|
|
10431
|
-
*
|
|
10432
|
-
*/
|
|
10433
|
-
draft_mode_default: boolean;
|
|
10434
|
-
/**
|
|
10435
|
-
* Whether the Improved validation at publishing option is active or not
|
|
10395
|
+
* 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
10396
|
*/
|
|
10437
10397
|
improved_validation_at_publishing: boolean;
|
|
10438
10398
|
/**
|
|
10439
|
-
* Whether the
|
|
10399
|
+
* 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
10400
|
*/
|
|
10441
|
-
|
|
10401
|
+
improved_exposure_of_inline_blocks_in_cda: boolean;
|
|
10442
10402
|
};
|
|
10443
10403
|
/**
|
|
10444
10404
|
* JSON API data
|
|
@@ -10757,23 +10717,23 @@ export type SiteUpdateSchema = {
|
|
|
10757
10717
|
sso_default_role?: RoleData;
|
|
10758
10718
|
meta?: {
|
|
10759
10719
|
/**
|
|
10760
|
-
* Whether the Improved API Timezone Management
|
|
10720
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
10761
10721
|
*/
|
|
10762
10722
|
improved_timezone_management?: boolean;
|
|
10763
10723
|
/**
|
|
10764
|
-
* Whether the Improved API Hex Management
|
|
10724
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
10765
10725
|
*/
|
|
10766
10726
|
improved_hex_management?: boolean;
|
|
10767
10727
|
/**
|
|
10768
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
10728
|
+
* 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
10729
|
*/
|
|
10770
10730
|
improved_gql_multilocale_fields?: boolean;
|
|
10771
10731
|
/**
|
|
10772
|
-
* Whether the Improved GraphQL visibility control
|
|
10732
|
+
* 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
10733
|
*/
|
|
10774
10734
|
improved_gql_visibility_control?: boolean;
|
|
10775
10735
|
/**
|
|
10776
|
-
* Whether the Improved boolean fields
|
|
10736
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
10777
10737
|
*/
|
|
10778
10738
|
improved_boolean_fields?: boolean;
|
|
10779
10739
|
/**
|
|
@@ -10781,13 +10741,17 @@ export type SiteUpdateSchema = {
|
|
|
10781
10741
|
*/
|
|
10782
10742
|
draft_mode_default?: boolean;
|
|
10783
10743
|
/**
|
|
10784
|
-
* Whether the Improved validation at publishing
|
|
10744
|
+
* 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
10745
|
*/
|
|
10786
10746
|
improved_validation_at_publishing?: boolean;
|
|
10787
10747
|
/**
|
|
10788
10748
|
* Whether the site has custom upload storage settings
|
|
10789
10749
|
*/
|
|
10790
10750
|
custom_upload_storage_settings?: boolean;
|
|
10751
|
+
/**
|
|
10752
|
+
* 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
|
|
10753
|
+
*/
|
|
10754
|
+
improved_exposure_of_inline_blocks_in_cda?: boolean;
|
|
10791
10755
|
};
|
|
10792
10756
|
};
|
|
10793
10757
|
/**
|
|
@@ -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
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.0",
|
|
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": "^
|
|
40
|
+
"@datocms/rest-client-utils": "^5.0.0-alpha.0",
|
|
41
41
|
"uuid": "^9.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@datocms/dashboard-client": "^
|
|
44
|
+
"@datocms/dashboard-client": "^5.0.0-alpha.0",
|
|
45
45
|
"@types/uuid": "^9.0.7"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "2508297afd5ef1f6968198a59a68d5b27a14adc9"
|
|
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",
|
|
@@ -4715,6 +4667,21 @@
|
|
|
4715
4667
|
"name": "activateImprovedValidationAtPublishing",
|
|
4716
4668
|
"rawName": "rawActivateImprovedValidationAtPublishing"
|
|
4717
4669
|
},
|
|
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
|
+
},
|
|
4718
4685
|
{
|
|
4719
4686
|
"returnsCollection": false,
|
|
4720
4687
|
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings",
|