@datocms/cma-client 4.0.1 → 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
package/src/generated/Client.ts
CHANGED
|
@@ -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
|
|
150
|
+
userAgent: '@datocms/cma-client v5.0.0-alpha.0',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
|
@@ -781,36 +781,6 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
781
781
|
};
|
|
782
782
|
[k: string]: unknown;
|
|
783
783
|
};
|
|
784
|
-
/**
|
|
785
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
786
|
-
* via the `batch_destroy.hrefSchema` link.
|
|
787
|
-
*/
|
|
788
|
-
export type ItemBatchDestroyHrefSchema = {
|
|
789
|
-
/**
|
|
790
|
-
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
791
|
-
*/
|
|
792
|
-
'filter[ids]': string;
|
|
793
|
-
};
|
|
794
|
-
/**
|
|
795
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
796
|
-
* via the `batch_publish.hrefSchema` link.
|
|
797
|
-
*/
|
|
798
|
-
export type ItemBatchPublishHrefSchema = {
|
|
799
|
-
/**
|
|
800
|
-
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
801
|
-
*/
|
|
802
|
-
'filter[ids]': string;
|
|
803
|
-
};
|
|
804
|
-
/**
|
|
805
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
806
|
-
* via the `batch_unpublish.hrefSchema` link.
|
|
807
|
-
*/
|
|
808
|
-
export type ItemBatchUnpublishHrefSchema = {
|
|
809
|
-
/**
|
|
810
|
-
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
811
|
-
*/
|
|
812
|
-
'filter[ids]': string;
|
|
813
|
-
};
|
|
814
784
|
/**
|
|
815
785
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
816
786
|
* via the `publish.schema` link.
|
|
@@ -7346,6 +7316,10 @@ export type ItemMeta = {
|
|
|
7346
7316
|
* Workflow stage in which the item is
|
|
7347
7317
|
*/
|
|
7348
7318
|
stage: null | string;
|
|
7319
|
+
/**
|
|
7320
|
+
* When the records can be organized in a tree, indicates whether the record has children
|
|
7321
|
+
*/
|
|
7322
|
+
has_children: null | boolean;
|
|
7349
7323
|
};
|
|
7350
7324
|
|
|
7351
7325
|
/**
|
|
@@ -7603,6 +7577,10 @@ export type ItemUpdateSchema = {
|
|
|
7603
7577
|
* The new stage to move the record to
|
|
7604
7578
|
*/
|
|
7605
7579
|
stage?: string | null;
|
|
7580
|
+
/**
|
|
7581
|
+
* Whether the record has children or not
|
|
7582
|
+
*/
|
|
7583
|
+
has_children?: null | boolean;
|
|
7606
7584
|
};
|
|
7607
7585
|
relationships?: {
|
|
7608
7586
|
/**
|
|
@@ -7686,6 +7664,8 @@ export type ItemCurrentVsPublishedStateAttributes = {
|
|
|
7686
7664
|
added_locales: string[];
|
|
7687
7665
|
removed_locales: string[];
|
|
7688
7666
|
non_localized_fields_changed: boolean;
|
|
7667
|
+
current_version_invalid_locales: string[];
|
|
7668
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7689
7669
|
};
|
|
7690
7670
|
|
|
7691
7671
|
/**
|
|
@@ -8079,66 +8059,6 @@ export type ItemDestroyJobSchema = {
|
|
|
8079
8059
|
data: Item;
|
|
8080
8060
|
};
|
|
8081
8061
|
|
|
8082
|
-
/**
|
|
8083
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
8084
|
-
* via the `batch_destroy.targetSchema` link.
|
|
8085
|
-
*/
|
|
8086
|
-
export type ItemBatchDestroyTargetSchema = {
|
|
8087
|
-
data: Job;
|
|
8088
|
-
};
|
|
8089
|
-
|
|
8090
|
-
/**
|
|
8091
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
8092
|
-
* via the `batch_destroy.jobSchema` link.
|
|
8093
|
-
*/
|
|
8094
|
-
export type ItemBatchDestroyJobSchema = {
|
|
8095
|
-
data: unknown[];
|
|
8096
|
-
meta: {
|
|
8097
|
-
successful: number;
|
|
8098
|
-
failed: number;
|
|
8099
|
-
};
|
|
8100
|
-
};
|
|
8101
|
-
|
|
8102
|
-
/**
|
|
8103
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
8104
|
-
* via the `batch_publish.targetSchema` link.
|
|
8105
|
-
*/
|
|
8106
|
-
export type ItemBatchPublishTargetSchema = {
|
|
8107
|
-
data: Job;
|
|
8108
|
-
};
|
|
8109
|
-
|
|
8110
|
-
/**
|
|
8111
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
8112
|
-
* via the `batch_publish.jobSchema` link.
|
|
8113
|
-
*/
|
|
8114
|
-
export type ItemBatchPublishJobSchema = {
|
|
8115
|
-
data: unknown[];
|
|
8116
|
-
meta: {
|
|
8117
|
-
successful: number;
|
|
8118
|
-
failed: number;
|
|
8119
|
-
};
|
|
8120
|
-
};
|
|
8121
|
-
|
|
8122
|
-
/**
|
|
8123
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
8124
|
-
* via the `batch_unpublish.targetSchema` link.
|
|
8125
|
-
*/
|
|
8126
|
-
export type ItemBatchUnpublishTargetSchema = {
|
|
8127
|
-
data: Job;
|
|
8128
|
-
};
|
|
8129
|
-
|
|
8130
|
-
/**
|
|
8131
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
8132
|
-
* via the `batch_unpublish.jobSchema` link.
|
|
8133
|
-
*/
|
|
8134
|
-
export type ItemBatchUnpublishJobSchema = {
|
|
8135
|
-
data: unknown[];
|
|
8136
|
-
meta: {
|
|
8137
|
-
successful: number;
|
|
8138
|
-
failed: number;
|
|
8139
|
-
};
|
|
8140
|
-
};
|
|
8141
|
-
|
|
8142
8062
|
/**
|
|
8143
8063
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
8144
8064
|
* via the `publish.targetSchema` link.
|
|
@@ -11866,37 +11786,41 @@ export type SiteMeta = {
|
|
|
11866
11786
|
*/
|
|
11867
11787
|
created_at: string;
|
|
11868
11788
|
/**
|
|
11869
|
-
*
|
|
11789
|
+
* The default value for the draft mode option in all the environment's models
|
|
11790
|
+
*/
|
|
11791
|
+
draft_mode_default: boolean;
|
|
11792
|
+
/**
|
|
11793
|
+
* Whether the site has custom upload storage settings
|
|
11794
|
+
*/
|
|
11795
|
+
custom_upload_storage_settings?: boolean;
|
|
11796
|
+
/**
|
|
11797
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
11870
11798
|
*/
|
|
11871
11799
|
improved_timezone_management: boolean;
|
|
11872
11800
|
/**
|
|
11873
|
-
* Whether the Improved API Hex Management
|
|
11801
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
11874
11802
|
*/
|
|
11875
11803
|
improved_hex_management: boolean;
|
|
11876
11804
|
/**
|
|
11877
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11805
|
+
* 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
|
|
11878
11806
|
*/
|
|
11879
11807
|
improved_gql_multilocale_fields: boolean;
|
|
11880
11808
|
/**
|
|
11881
|
-
* Whether the Improved GraphQL visibility control
|
|
11809
|
+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
|
|
11882
11810
|
*/
|
|
11883
11811
|
improved_gql_visibility_control: boolean;
|
|
11884
11812
|
/**
|
|
11885
|
-
* Whether the Improved boolean fields
|
|
11813
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
11886
11814
|
*/
|
|
11887
11815
|
improved_boolean_fields: boolean;
|
|
11888
11816
|
/**
|
|
11889
|
-
*
|
|
11890
|
-
*/
|
|
11891
|
-
draft_mode_default: boolean;
|
|
11892
|
-
/**
|
|
11893
|
-
* Whether the Improved validation at publishing option is active or not
|
|
11817
|
+
* 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
|
|
11894
11818
|
*/
|
|
11895
11819
|
improved_validation_at_publishing: boolean;
|
|
11896
11820
|
/**
|
|
11897
|
-
* Whether the
|
|
11821
|
+
* 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
|
|
11898
11822
|
*/
|
|
11899
|
-
|
|
11823
|
+
improved_exposure_of_inline_blocks_in_cda: boolean;
|
|
11900
11824
|
};
|
|
11901
11825
|
|
|
11902
11826
|
/**
|
|
@@ -12049,23 +11973,23 @@ export type SiteUpdateSchema = {
|
|
|
12049
11973
|
};
|
|
12050
11974
|
meta?: {
|
|
12051
11975
|
/**
|
|
12052
|
-
* Whether the Improved API Timezone Management
|
|
11976
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
12053
11977
|
*/
|
|
12054
11978
|
improved_timezone_management?: boolean;
|
|
12055
11979
|
/**
|
|
12056
|
-
* Whether the Improved API Hex Management
|
|
11980
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
12057
11981
|
*/
|
|
12058
11982
|
improved_hex_management?: boolean;
|
|
12059
11983
|
/**
|
|
12060
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11984
|
+
* 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
|
|
12061
11985
|
*/
|
|
12062
11986
|
improved_gql_multilocale_fields?: boolean;
|
|
12063
11987
|
/**
|
|
12064
|
-
* Whether the Improved GraphQL visibility control
|
|
11988
|
+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
|
|
12065
11989
|
*/
|
|
12066
11990
|
improved_gql_visibility_control?: boolean;
|
|
12067
11991
|
/**
|
|
12068
|
-
* Whether the Improved boolean fields
|
|
11992
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
12069
11993
|
*/
|
|
12070
11994
|
improved_boolean_fields?: boolean;
|
|
12071
11995
|
/**
|
|
@@ -12073,13 +11997,17 @@ export type SiteUpdateSchema = {
|
|
|
12073
11997
|
*/
|
|
12074
11998
|
draft_mode_default?: boolean;
|
|
12075
11999
|
/**
|
|
12076
|
-
* Whether the Improved validation at publishing
|
|
12000
|
+
* 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
|
|
12077
12001
|
*/
|
|
12078
12002
|
improved_validation_at_publishing?: boolean;
|
|
12079
12003
|
/**
|
|
12080
12004
|
* Whether the site has custom upload storage settings
|
|
12081
12005
|
*/
|
|
12082
12006
|
custom_upload_storage_settings?: boolean;
|
|
12007
|
+
/**
|
|
12008
|
+
* 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
|
|
12009
|
+
*/
|
|
12010
|
+
improved_exposure_of_inline_blocks_in_cda?: boolean;
|
|
12083
12011
|
};
|
|
12084
12012
|
relationships?: {
|
|
12085
12013
|
sso_default_role?: {
|
|
@@ -12169,6 +12097,14 @@ export type SiteActivateImprovedValidationAtPublishingTargetSchema = {
|
|
|
12169
12097
|
data: Site;
|
|
12170
12098
|
};
|
|
12171
12099
|
|
|
12100
|
+
/**
|
|
12101
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
12102
|
+
* via the `activate_improved_exposure_of_inline_blocks_in_cda.targetSchema` link.
|
|
12103
|
+
*/
|
|
12104
|
+
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = {
|
|
12105
|
+
data: Site;
|
|
12106
|
+
};
|
|
12107
|
+
|
|
12172
12108
|
/**
|
|
12173
12109
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
12174
12110
|
* via the `update_assets_cdn_default_settings.schema` link.
|
|
@@ -949,51 +949,6 @@ export type ItemVersionType = 'item_version';
|
|
|
949
949
|
* via the `definition` "id".
|
|
950
950
|
*/
|
|
951
951
|
export type ItemVersionIdentity = string;
|
|
952
|
-
/**
|
|
953
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
954
|
-
* via the `batch_destroy.jobSchema` link.
|
|
955
|
-
*/
|
|
956
|
-
export type ItemBatchDestroyJobSchema = unknown[];
|
|
957
|
-
/**
|
|
958
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
959
|
-
* via the `batch_destroy.hrefSchema` link.
|
|
960
|
-
*/
|
|
961
|
-
export type ItemBatchDestroyHrefSchema = {
|
|
962
|
-
/**
|
|
963
|
-
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
964
|
-
*/
|
|
965
|
-
'filter[ids]': string;
|
|
966
|
-
};
|
|
967
|
-
/**
|
|
968
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
969
|
-
* via the `batch_publish.jobSchema` link.
|
|
970
|
-
*/
|
|
971
|
-
export type ItemBatchPublishJobSchema = unknown[];
|
|
972
|
-
/**
|
|
973
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
974
|
-
* via the `batch_publish.hrefSchema` link.
|
|
975
|
-
*/
|
|
976
|
-
export type ItemBatchPublishHrefSchema = {
|
|
977
|
-
/**
|
|
978
|
-
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
979
|
-
*/
|
|
980
|
-
'filter[ids]': string;
|
|
981
|
-
};
|
|
982
|
-
/**
|
|
983
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
984
|
-
* via the `batch_unpublish.jobSchema` link.
|
|
985
|
-
*/
|
|
986
|
-
export type ItemBatchUnpublishJobSchema = unknown[];
|
|
987
|
-
/**
|
|
988
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
989
|
-
* via the `batch_unpublish.hrefSchema` link.
|
|
990
|
-
*/
|
|
991
|
-
export type ItemBatchUnpublishHrefSchema = {
|
|
992
|
-
/**
|
|
993
|
-
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
994
|
-
*/
|
|
995
|
-
'filter[ids]': string;
|
|
996
|
-
};
|
|
997
952
|
/**
|
|
998
953
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
999
954
|
* via the `publish.schema` link.
|
|
@@ -4526,15 +4481,6 @@ export type MenuItemUpdateSchema = {
|
|
|
4526
4481
|
* via the `destroy.targetSchema` link.
|
|
4527
4482
|
*
|
|
4528
4483
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
4529
|
-
* via the `batch_destroy.targetSchema` link.
|
|
4530
|
-
*
|
|
4531
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4532
|
-
* via the `batch_publish.targetSchema` link.
|
|
4533
|
-
*
|
|
4534
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4535
|
-
* via the `batch_unpublish.targetSchema` link.
|
|
4536
|
-
*
|
|
4537
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4538
4484
|
* via the `bulk_publish.targetSchema` link.
|
|
4539
4485
|
*
|
|
4540
4486
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
@@ -4604,9 +4550,6 @@ export type FieldDestroyTargetSchema = Job;
|
|
|
4604
4550
|
export type FieldDuplicateTargetSchema = Job;
|
|
4605
4551
|
export type ItemDuplicateTargetSchema = Job;
|
|
4606
4552
|
export type ItemDestroyTargetSchema = Job;
|
|
4607
|
-
export type ItemBatchDestroyTargetSchema = Job;
|
|
4608
|
-
export type ItemBatchPublishTargetSchema = Job;
|
|
4609
|
-
export type ItemBatchUnpublishTargetSchema = Job;
|
|
4610
4553
|
export type ItemBulkPublishTargetSchema = Job;
|
|
4611
4554
|
export type ItemBulkUnpublishTargetSchema = Job;
|
|
4612
4555
|
export type ItemBulkDestroyTargetSchema = Job;
|
|
@@ -7550,6 +7493,10 @@ export type ItemMeta = {
|
|
|
7550
7493
|
* Workflow stage in which the item is
|
|
7551
7494
|
*/
|
|
7552
7495
|
stage: null | string;
|
|
7496
|
+
/**
|
|
7497
|
+
* When the records can be organized in a tree, indicates whether the record has children
|
|
7498
|
+
*/
|
|
7499
|
+
has_children: null | boolean;
|
|
7553
7500
|
};
|
|
7554
7501
|
|
|
7555
7502
|
/**
|
|
@@ -7739,6 +7686,10 @@ export type ItemUpdateSchema = {
|
|
|
7739
7686
|
* The new stage to move the record to
|
|
7740
7687
|
*/
|
|
7741
7688
|
stage?: string | null;
|
|
7689
|
+
/**
|
|
7690
|
+
* Whether the record has children or not
|
|
7691
|
+
*/
|
|
7692
|
+
has_children?: null | boolean;
|
|
7742
7693
|
};
|
|
7743
7694
|
[k: string]: unknown;
|
|
7744
7695
|
};
|
|
@@ -7761,6 +7712,8 @@ export type ItemCurrentVsPublishedState = {
|
|
|
7761
7712
|
added_locales: string[];
|
|
7762
7713
|
removed_locales: string[];
|
|
7763
7714
|
non_localized_fields_changed: boolean;
|
|
7715
|
+
current_version_invalid_locales: string[];
|
|
7716
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7764
7717
|
scheduled_publication: ScheduledPublicationData | null;
|
|
7765
7718
|
scheduled_unpublishing: ScheduledUnpublishingData | null;
|
|
7766
7719
|
published_version: ItemVersionData | null;
|
|
@@ -7824,6 +7777,8 @@ export type ItemCurrentVsPublishedStateAttributes = {
|
|
|
7824
7777
|
added_locales: string[];
|
|
7825
7778
|
removed_locales: string[];
|
|
7826
7779
|
non_localized_fields_changed: boolean;
|
|
7780
|
+
current_version_invalid_locales: string[];
|
|
7781
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7827
7782
|
};
|
|
7828
7783
|
|
|
7829
7784
|
/**
|
|
@@ -11264,6 +11219,7 @@ export type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
|
|
|
11264
11219
|
export type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
|
|
11265
11220
|
export type SiteActivateDraftModeAsDefaultTargetSchema = Site;
|
|
11266
11221
|
export type SiteActivateImprovedValidationAtPublishingTargetSchema = Site;
|
|
11222
|
+
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = Site;
|
|
11267
11223
|
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
11268
11224
|
/**
|
|
11269
11225
|
* Meta attributes
|
|
@@ -11277,37 +11233,41 @@ export type SiteMeta = {
|
|
|
11277
11233
|
*/
|
|
11278
11234
|
created_at: string;
|
|
11279
11235
|
/**
|
|
11280
|
-
*
|
|
11236
|
+
* The default value for the draft mode option in all the environment's models
|
|
11237
|
+
*/
|
|
11238
|
+
draft_mode_default: boolean;
|
|
11239
|
+
/**
|
|
11240
|
+
* Whether the site has custom upload storage settings
|
|
11241
|
+
*/
|
|
11242
|
+
custom_upload_storage_settings?: boolean;
|
|
11243
|
+
/**
|
|
11244
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
11281
11245
|
*/
|
|
11282
11246
|
improved_timezone_management: boolean;
|
|
11283
11247
|
/**
|
|
11284
|
-
* Whether the Improved API Hex Management
|
|
11248
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
11285
11249
|
*/
|
|
11286
11250
|
improved_hex_management: boolean;
|
|
11287
11251
|
/**
|
|
11288
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11252
|
+
* 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
|
|
11289
11253
|
*/
|
|
11290
11254
|
improved_gql_multilocale_fields: boolean;
|
|
11291
11255
|
/**
|
|
11292
|
-
* Whether the Improved GraphQL visibility control
|
|
11256
|
+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
|
|
11293
11257
|
*/
|
|
11294
11258
|
improved_gql_visibility_control: boolean;
|
|
11295
11259
|
/**
|
|
11296
|
-
* Whether the Improved boolean fields
|
|
11260
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
11297
11261
|
*/
|
|
11298
11262
|
improved_boolean_fields: boolean;
|
|
11299
11263
|
/**
|
|
11300
|
-
*
|
|
11301
|
-
*/
|
|
11302
|
-
draft_mode_default: boolean;
|
|
11303
|
-
/**
|
|
11304
|
-
* Whether the Improved validation at publishing option is active or not
|
|
11264
|
+
* 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
|
|
11305
11265
|
*/
|
|
11306
11266
|
improved_validation_at_publishing: boolean;
|
|
11307
11267
|
/**
|
|
11308
|
-
* Whether the
|
|
11268
|
+
* 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
|
|
11309
11269
|
*/
|
|
11310
|
-
|
|
11270
|
+
improved_exposure_of_inline_blocks_in_cda: boolean;
|
|
11311
11271
|
};
|
|
11312
11272
|
|
|
11313
11273
|
/**
|
|
@@ -11632,23 +11592,23 @@ export type SiteUpdateSchema = {
|
|
|
11632
11592
|
sso_default_role?: RoleData;
|
|
11633
11593
|
meta?: {
|
|
11634
11594
|
/**
|
|
11635
|
-
* Whether the Improved API Timezone Management
|
|
11595
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
11636
11596
|
*/
|
|
11637
11597
|
improved_timezone_management?: boolean;
|
|
11638
11598
|
/**
|
|
11639
|
-
* Whether the Improved API Hex Management
|
|
11599
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
11640
11600
|
*/
|
|
11641
11601
|
improved_hex_management?: boolean;
|
|
11642
11602
|
/**
|
|
11643
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11603
|
+
* 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
|
|
11644
11604
|
*/
|
|
11645
11605
|
improved_gql_multilocale_fields?: boolean;
|
|
11646
11606
|
/**
|
|
11647
|
-
* Whether the Improved GraphQL visibility control
|
|
11607
|
+
* Whether the [Improved GraphQL visibility control](https://www.datocms.com/product-updates/improved-gql-visibility-control) opt-in product update is active or not
|
|
11648
11608
|
*/
|
|
11649
11609
|
improved_gql_visibility_control?: boolean;
|
|
11650
11610
|
/**
|
|
11651
|
-
* Whether the Improved boolean fields
|
|
11611
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
11652
11612
|
*/
|
|
11653
11613
|
improved_boolean_fields?: boolean;
|
|
11654
11614
|
/**
|
|
@@ -11656,13 +11616,17 @@ export type SiteUpdateSchema = {
|
|
|
11656
11616
|
*/
|
|
11657
11617
|
draft_mode_default?: boolean;
|
|
11658
11618
|
/**
|
|
11659
|
-
* Whether the Improved validation at publishing
|
|
11619
|
+
* 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
|
|
11660
11620
|
*/
|
|
11661
11621
|
improved_validation_at_publishing?: boolean;
|
|
11662
11622
|
/**
|
|
11663
11623
|
* Whether the site has custom upload storage settings
|
|
11664
11624
|
*/
|
|
11665
11625
|
custom_upload_storage_settings?: boolean;
|
|
11626
|
+
/**
|
|
11627
|
+
* 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
|
|
11628
|
+
*/
|
|
11629
|
+
improved_exposure_of_inline_blocks_in_cda?: boolean;
|
|
11666
11630
|
};
|
|
11667
11631
|
};
|
|
11668
11632
|
|
|
@@ -442,120 +442,6 @@ export default class Item extends BaseResource {
|
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
/**
|
|
446
|
-
* Delete multiple records
|
|
447
|
-
*
|
|
448
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_destroy
|
|
449
|
-
*
|
|
450
|
-
* @throws {ApiError}
|
|
451
|
-
* @throws {TimeoutError}
|
|
452
|
-
*
|
|
453
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
454
|
-
*/
|
|
455
|
-
batchDestroy(queryParams: SimpleSchemaTypes.ItemBatchDestroyHrefSchema) {
|
|
456
|
-
return this.rawBatchDestroy(queryParams).then((body) =>
|
|
457
|
-
Utils.deserializeResponseBody<SimpleSchemaTypes.ItemBatchDestroyJobSchema>(
|
|
458
|
-
body,
|
|
459
|
-
),
|
|
460
|
-
);
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Delete multiple records
|
|
465
|
-
*
|
|
466
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_destroy
|
|
467
|
-
*
|
|
468
|
-
* @throws {ApiError}
|
|
469
|
-
* @throws {TimeoutError}
|
|
470
|
-
*
|
|
471
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
472
|
-
*/
|
|
473
|
-
rawBatchDestroy(
|
|
474
|
-
queryParams: SchemaTypes.ItemBatchDestroyHrefSchema,
|
|
475
|
-
): Promise<SchemaTypes.ItemBatchDestroyJobSchema> {
|
|
476
|
-
return this.client.request<SchemaTypes.ItemBatchDestroyJobSchema>({
|
|
477
|
-
method: 'DELETE',
|
|
478
|
-
url: '/items',
|
|
479
|
-
queryParams,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Publish multiple records
|
|
485
|
-
*
|
|
486
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_publish
|
|
487
|
-
*
|
|
488
|
-
* @throws {ApiError}
|
|
489
|
-
* @throws {TimeoutError}
|
|
490
|
-
*
|
|
491
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
492
|
-
*/
|
|
493
|
-
batchPublish(queryParams: SimpleSchemaTypes.ItemBatchPublishHrefSchema) {
|
|
494
|
-
return this.rawBatchPublish(queryParams).then((body) =>
|
|
495
|
-
Utils.deserializeResponseBody<SimpleSchemaTypes.ItemBatchPublishJobSchema>(
|
|
496
|
-
body,
|
|
497
|
-
),
|
|
498
|
-
);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Publish multiple records
|
|
503
|
-
*
|
|
504
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_publish
|
|
505
|
-
*
|
|
506
|
-
* @throws {ApiError}
|
|
507
|
-
* @throws {TimeoutError}
|
|
508
|
-
*
|
|
509
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
510
|
-
*/
|
|
511
|
-
rawBatchPublish(
|
|
512
|
-
queryParams: SchemaTypes.ItemBatchPublishHrefSchema,
|
|
513
|
-
): Promise<SchemaTypes.ItemBatchPublishJobSchema> {
|
|
514
|
-
return this.client.request<SchemaTypes.ItemBatchPublishJobSchema>({
|
|
515
|
-
method: 'PUT',
|
|
516
|
-
url: '/items/publish',
|
|
517
|
-
queryParams,
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Unpublish multiple records
|
|
523
|
-
*
|
|
524
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_unpublish
|
|
525
|
-
*
|
|
526
|
-
* @throws {ApiError}
|
|
527
|
-
* @throws {TimeoutError}
|
|
528
|
-
*
|
|
529
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
530
|
-
*/
|
|
531
|
-
batchUnpublish(queryParams: SimpleSchemaTypes.ItemBatchUnpublishHrefSchema) {
|
|
532
|
-
return this.rawBatchUnpublish(queryParams).then((body) =>
|
|
533
|
-
Utils.deserializeResponseBody<SimpleSchemaTypes.ItemBatchUnpublishJobSchema>(
|
|
534
|
-
body,
|
|
535
|
-
),
|
|
536
|
-
);
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Unpublish multiple records
|
|
541
|
-
*
|
|
542
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/batch_unpublish
|
|
543
|
-
*
|
|
544
|
-
* @throws {ApiError}
|
|
545
|
-
* @throws {TimeoutError}
|
|
546
|
-
*
|
|
547
|
-
* @deprecated This API call is to be considered private and might change without notice
|
|
548
|
-
*/
|
|
549
|
-
rawBatchUnpublish(
|
|
550
|
-
queryParams: SchemaTypes.ItemBatchUnpublishHrefSchema,
|
|
551
|
-
): Promise<SchemaTypes.ItemBatchUnpublishJobSchema> {
|
|
552
|
-
return this.client.request<SchemaTypes.ItemBatchUnpublishJobSchema>({
|
|
553
|
-
method: 'PUT',
|
|
554
|
-
url: '/items/unpublish',
|
|
555
|
-
queryParams,
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
|
|
559
445
|
/**
|
|
560
446
|
* Publish a record
|
|
561
447
|
*
|
|
@@ -350,6 +350,43 @@ export default class Site extends BaseResource {
|
|
|
350
350
|
);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
+
/**
|
|
354
|
+
* Activate having two different GraphQL fields for regular blocks and inline blocks
|
|
355
|
+
*
|
|
356
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda
|
|
357
|
+
*
|
|
358
|
+
* @throws {ApiError}
|
|
359
|
+
* @throws {TimeoutError}
|
|
360
|
+
*
|
|
361
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
362
|
+
*/
|
|
363
|
+
activateImprovedExposureOfInlineBlocksInCda() {
|
|
364
|
+
return this.rawActivateImprovedExposureOfInlineBlocksInCda().then((body) =>
|
|
365
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema>(
|
|
366
|
+
body,
|
|
367
|
+
),
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Activate having two different GraphQL fields for regular blocks and inline blocks
|
|
373
|
+
*
|
|
374
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_exposure_of_inline_blocks_in_cda
|
|
375
|
+
*
|
|
376
|
+
* @throws {ApiError}
|
|
377
|
+
* @throws {TimeoutError}
|
|
378
|
+
*
|
|
379
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
380
|
+
*/
|
|
381
|
+
rawActivateImprovedExposureOfInlineBlocksInCda(): Promise<SchemaTypes.SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema> {
|
|
382
|
+
return this.client.request<SchemaTypes.SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema>(
|
|
383
|
+
{
|
|
384
|
+
method: 'PUT',
|
|
385
|
+
url: '/site/activate-improved-exposure-of-inline-blocks-in-cda',
|
|
386
|
+
},
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
353
390
|
/**
|
|
354
391
|
* Update CDN settings default assets
|
|
355
392
|
*
|