@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
|
@@ -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.
|
|
@@ -933,28 +903,6 @@ export type UploadInstancesHrefSchema = {
|
|
|
933
903
|
};
|
|
934
904
|
[k: string]: unknown;
|
|
935
905
|
};
|
|
936
|
-
/**
|
|
937
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
938
|
-
* via the `batch_add_tags.hrefSchema` link.
|
|
939
|
-
*/
|
|
940
|
-
export type UploadBatchAddTagsHrefSchema = {
|
|
941
|
-
/**
|
|
942
|
-
* IDs to tag, comma separated
|
|
943
|
-
*/
|
|
944
|
-
'filter[ids]'?: string;
|
|
945
|
-
[k: string]: unknown;
|
|
946
|
-
};
|
|
947
|
-
/**
|
|
948
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
949
|
-
* via the `batch_destroy.hrefSchema` link.
|
|
950
|
-
*/
|
|
951
|
-
export type UploadBatchDestroyHrefSchema = {
|
|
952
|
-
/**
|
|
953
|
-
* IDs to destroy, comma separated
|
|
954
|
-
*/
|
|
955
|
-
'filter[ids]'?: string;
|
|
956
|
-
[k: string]: unknown;
|
|
957
|
-
};
|
|
958
906
|
/**
|
|
959
907
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
960
908
|
* via the `references.hrefSchema` link.
|
|
@@ -5315,7 +5263,7 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
|
5315
5263
|
* | Code | `structured_text` |
|
|
5316
5264
|
* | Built-in editors for the field | `structured_text` |
|
|
5317
5265
|
* | Required validators | `structured_text_blocks`, `structured_text_links` |
|
|
5318
|
-
* | Other validators available | `length`
|
|
5266
|
+
* | Other validators available | `length`, `structured_text_inline_blocks` |
|
|
5319
5267
|
*
|
|
5320
5268
|
* </details>
|
|
5321
5269
|
*
|
|
@@ -5651,6 +5599,17 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
|
5651
5599
|
* </details>
|
|
5652
5600
|
*
|
|
5653
5601
|
* <details>
|
|
5602
|
+
* <summary><code>structured_text_inline_blocks</code></summary>
|
|
5603
|
+
*
|
|
5604
|
+
* Only accept references to block records of the specified block models.
|
|
5605
|
+
*
|
|
5606
|
+
* | Parameter | Type | Required | Description |
|
|
5607
|
+
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
5608
|
+
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
5609
|
+
*
|
|
5610
|
+
* </details>
|
|
5611
|
+
*
|
|
5612
|
+
* <details>
|
|
5654
5613
|
* <summary><code>structured_text_links</code></summary>
|
|
5655
5614
|
*
|
|
5656
5615
|
* Only accept `itemLink` to `inlineItem` nodes for records of the specified models.
|
|
@@ -7686,6 +7645,8 @@ export type ItemCurrentVsPublishedStateAttributes = {
|
|
|
7686
7645
|
added_locales: string[];
|
|
7687
7646
|
removed_locales: string[];
|
|
7688
7647
|
non_localized_fields_changed: boolean;
|
|
7648
|
+
current_version_invalid_locales: string[];
|
|
7649
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7689
7650
|
};
|
|
7690
7651
|
|
|
7691
7652
|
/**
|
|
@@ -8079,66 +8040,6 @@ export type ItemDestroyJobSchema = {
|
|
|
8079
8040
|
data: Item;
|
|
8080
8041
|
};
|
|
8081
8042
|
|
|
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
8043
|
/**
|
|
8143
8044
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
8144
8045
|
* via the `publish.targetSchema` link.
|
|
@@ -8773,62 +8674,6 @@ export type UploadUpdateJobSchema = {
|
|
|
8773
8674
|
data: Upload;
|
|
8774
8675
|
};
|
|
8775
8676
|
|
|
8776
|
-
/**
|
|
8777
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8778
|
-
* via the `batch_add_tags.schema` link.
|
|
8779
|
-
*/
|
|
8780
|
-
export type UploadBatchAddTagsSchema = {
|
|
8781
|
-
data: {
|
|
8782
|
-
type: UploadType;
|
|
8783
|
-
attributes: {
|
|
8784
|
-
/**
|
|
8785
|
-
* Tags
|
|
8786
|
-
*/
|
|
8787
|
-
tags: string[];
|
|
8788
|
-
};
|
|
8789
|
-
};
|
|
8790
|
-
};
|
|
8791
|
-
|
|
8792
|
-
/**
|
|
8793
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8794
|
-
* via the `batch_add_tags.targetSchema` link.
|
|
8795
|
-
*/
|
|
8796
|
-
export type UploadBatchAddTagsTargetSchema = {
|
|
8797
|
-
data: Job;
|
|
8798
|
-
};
|
|
8799
|
-
|
|
8800
|
-
/**
|
|
8801
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8802
|
-
* via the `batch_add_tags.jobSchema` link.
|
|
8803
|
-
*/
|
|
8804
|
-
export type UploadBatchAddTagsJobSchema = {
|
|
8805
|
-
data: unknown[];
|
|
8806
|
-
meta: {
|
|
8807
|
-
successful: number;
|
|
8808
|
-
failed: number;
|
|
8809
|
-
};
|
|
8810
|
-
};
|
|
8811
|
-
|
|
8812
|
-
/**
|
|
8813
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8814
|
-
* via the `batch_destroy.targetSchema` link.
|
|
8815
|
-
*/
|
|
8816
|
-
export type UploadBatchDestroyTargetSchema = {
|
|
8817
|
-
data: Job;
|
|
8818
|
-
};
|
|
8819
|
-
|
|
8820
|
-
/**
|
|
8821
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8822
|
-
* via the `batch_destroy.jobSchema` link.
|
|
8823
|
-
*/
|
|
8824
|
-
export type UploadBatchDestroyJobSchema = {
|
|
8825
|
-
data: unknown[];
|
|
8826
|
-
meta: {
|
|
8827
|
-
successful: number;
|
|
8828
|
-
failed: number;
|
|
8829
|
-
};
|
|
8830
|
-
};
|
|
8831
|
-
|
|
8832
8677
|
/**
|
|
8833
8678
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8834
8679
|
* via the `references.targetSchema` link.
|
|
@@ -11866,37 +11711,41 @@ export type SiteMeta = {
|
|
|
11866
11711
|
*/
|
|
11867
11712
|
created_at: string;
|
|
11868
11713
|
/**
|
|
11869
|
-
*
|
|
11714
|
+
* The default value for the draft mode option in all the environment's models
|
|
11715
|
+
*/
|
|
11716
|
+
draft_mode_default: boolean;
|
|
11717
|
+
/**
|
|
11718
|
+
* Whether the site has custom upload storage settings
|
|
11719
|
+
*/
|
|
11720
|
+
custom_upload_storage_settings?: boolean;
|
|
11721
|
+
/**
|
|
11722
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
11870
11723
|
*/
|
|
11871
11724
|
improved_timezone_management: boolean;
|
|
11872
11725
|
/**
|
|
11873
|
-
* Whether the Improved API Hex Management
|
|
11726
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
11874
11727
|
*/
|
|
11875
11728
|
improved_hex_management: boolean;
|
|
11876
11729
|
/**
|
|
11877
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11730
|
+
* 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
11731
|
*/
|
|
11879
11732
|
improved_gql_multilocale_fields: boolean;
|
|
11880
11733
|
/**
|
|
11881
|
-
* Whether the Improved GraphQL visibility control
|
|
11734
|
+
* 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
11735
|
*/
|
|
11883
11736
|
improved_gql_visibility_control: boolean;
|
|
11884
11737
|
/**
|
|
11885
|
-
* Whether the Improved boolean fields
|
|
11738
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
11886
11739
|
*/
|
|
11887
11740
|
improved_boolean_fields: boolean;
|
|
11888
11741
|
/**
|
|
11889
|
-
*
|
|
11890
|
-
*/
|
|
11891
|
-
draft_mode_default: boolean;
|
|
11892
|
-
/**
|
|
11893
|
-
* Whether the Improved validation at publishing option is active or not
|
|
11742
|
+
* 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
11743
|
*/
|
|
11895
11744
|
improved_validation_at_publishing: boolean;
|
|
11896
11745
|
/**
|
|
11897
|
-
* Whether the
|
|
11746
|
+
* 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
11747
|
*/
|
|
11899
|
-
|
|
11748
|
+
improved_exposure_of_inline_blocks_in_cda: boolean;
|
|
11900
11749
|
};
|
|
11901
11750
|
|
|
11902
11751
|
/**
|
|
@@ -12049,23 +11898,23 @@ export type SiteUpdateSchema = {
|
|
|
12049
11898
|
};
|
|
12050
11899
|
meta?: {
|
|
12051
11900
|
/**
|
|
12052
|
-
* Whether the Improved API Timezone Management
|
|
11901
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
12053
11902
|
*/
|
|
12054
11903
|
improved_timezone_management?: boolean;
|
|
12055
11904
|
/**
|
|
12056
|
-
* Whether the Improved API Hex Management
|
|
11905
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
12057
11906
|
*/
|
|
12058
11907
|
improved_hex_management?: boolean;
|
|
12059
11908
|
/**
|
|
12060
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11909
|
+
* 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
11910
|
*/
|
|
12062
11911
|
improved_gql_multilocale_fields?: boolean;
|
|
12063
11912
|
/**
|
|
12064
|
-
* Whether the Improved GraphQL visibility control
|
|
11913
|
+
* 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
11914
|
*/
|
|
12066
11915
|
improved_gql_visibility_control?: boolean;
|
|
12067
11916
|
/**
|
|
12068
|
-
* Whether the Improved boolean fields
|
|
11917
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
12069
11918
|
*/
|
|
12070
11919
|
improved_boolean_fields?: boolean;
|
|
12071
11920
|
/**
|
|
@@ -12073,13 +11922,17 @@ export type SiteUpdateSchema = {
|
|
|
12073
11922
|
*/
|
|
12074
11923
|
draft_mode_default?: boolean;
|
|
12075
11924
|
/**
|
|
12076
|
-
* Whether the Improved validation at publishing
|
|
11925
|
+
* 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
11926
|
*/
|
|
12078
11927
|
improved_validation_at_publishing?: boolean;
|
|
12079
11928
|
/**
|
|
12080
11929
|
* Whether the site has custom upload storage settings
|
|
12081
11930
|
*/
|
|
12082
11931
|
custom_upload_storage_settings?: boolean;
|
|
11932
|
+
/**
|
|
11933
|
+
* 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
|
|
11934
|
+
*/
|
|
11935
|
+
improved_exposure_of_inline_blocks_in_cda?: boolean;
|
|
12083
11936
|
};
|
|
12084
11937
|
relationships?: {
|
|
12085
11938
|
sso_default_role?: {
|
|
@@ -12169,6 +12022,14 @@ export type SiteActivateImprovedValidationAtPublishingTargetSchema = {
|
|
|
12169
12022
|
data: Site;
|
|
12170
12023
|
};
|
|
12171
12024
|
|
|
12025
|
+
/**
|
|
12026
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
12027
|
+
* via the `activate_improved_exposure_of_inline_blocks_in_cda.targetSchema` link.
|
|
12028
|
+
*/
|
|
12029
|
+
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = {
|
|
12030
|
+
data: Site;
|
|
12031
|
+
};
|
|
12032
|
+
|
|
12172
12033
|
/**
|
|
12173
12034
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
12174
12035
|
* 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.
|
|
@@ -1167,38 +1122,6 @@ export type UploadInstancesHrefSchema = {
|
|
|
1167
1122
|
};
|
|
1168
1123
|
[k: string]: unknown;
|
|
1169
1124
|
};
|
|
1170
|
-
/**
|
|
1171
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
1172
|
-
* via the `batch_add_tags.jobSchema` link.
|
|
1173
|
-
*/
|
|
1174
|
-
export type UploadBatchAddTagsJobSchema = unknown[];
|
|
1175
|
-
/**
|
|
1176
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
1177
|
-
* via the `batch_add_tags.hrefSchema` link.
|
|
1178
|
-
*/
|
|
1179
|
-
export type UploadBatchAddTagsHrefSchema = {
|
|
1180
|
-
/**
|
|
1181
|
-
* IDs to tag, comma separated
|
|
1182
|
-
*/
|
|
1183
|
-
'filter[ids]'?: string;
|
|
1184
|
-
[k: string]: unknown;
|
|
1185
|
-
};
|
|
1186
|
-
/**
|
|
1187
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
1188
|
-
* via the `batch_destroy.jobSchema` link.
|
|
1189
|
-
*/
|
|
1190
|
-
export type UploadBatchDestroyJobSchema = unknown[];
|
|
1191
|
-
/**
|
|
1192
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
1193
|
-
* via the `batch_destroy.hrefSchema` link.
|
|
1194
|
-
*/
|
|
1195
|
-
export type UploadBatchDestroyHrefSchema = {
|
|
1196
|
-
/**
|
|
1197
|
-
* IDs to destroy, comma separated
|
|
1198
|
-
*/
|
|
1199
|
-
'filter[ids]'?: string;
|
|
1200
|
-
[k: string]: unknown;
|
|
1201
|
-
};
|
|
1202
1125
|
/**
|
|
1203
1126
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
1204
1127
|
* via the `references.targetSchema` link.
|
|
@@ -4526,15 +4449,6 @@ export type MenuItemUpdateSchema = {
|
|
|
4526
4449
|
* via the `destroy.targetSchema` link.
|
|
4527
4450
|
*
|
|
4528
4451
|
* 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
4452
|
* via the `bulk_publish.targetSchema` link.
|
|
4539
4453
|
*
|
|
4540
4454
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
@@ -4556,12 +4470,6 @@ export type MenuItemUpdateSchema = {
|
|
|
4556
4470
|
* via the `update.targetSchema` link.
|
|
4557
4471
|
*
|
|
4558
4472
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4559
|
-
* via the `batch_add_tags.targetSchema` link.
|
|
4560
|
-
*
|
|
4561
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4562
|
-
* via the `batch_destroy.targetSchema` link.
|
|
4563
|
-
*
|
|
4564
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4565
4473
|
* via the `bulk_tag.targetSchema` link.
|
|
4566
4474
|
*
|
|
4567
4475
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
@@ -4604,9 +4512,6 @@ export type FieldDestroyTargetSchema = Job;
|
|
|
4604
4512
|
export type FieldDuplicateTargetSchema = Job;
|
|
4605
4513
|
export type ItemDuplicateTargetSchema = Job;
|
|
4606
4514
|
export type ItemDestroyTargetSchema = Job;
|
|
4607
|
-
export type ItemBatchDestroyTargetSchema = Job;
|
|
4608
|
-
export type ItemBatchPublishTargetSchema = Job;
|
|
4609
|
-
export type ItemBatchUnpublishTargetSchema = Job;
|
|
4610
4515
|
export type ItemBulkPublishTargetSchema = Job;
|
|
4611
4516
|
export type ItemBulkUnpublishTargetSchema = Job;
|
|
4612
4517
|
export type ItemBulkDestroyTargetSchema = Job;
|
|
@@ -4614,8 +4519,6 @@ export type ItemBulkMoveToStageTargetSchema = Job;
|
|
|
4614
4519
|
export type ItemVersionRestoreTargetSchema = Job;
|
|
4615
4520
|
export type UploadCreateTargetSchema = Job;
|
|
4616
4521
|
export type UploadUpdateTargetSchema = Job;
|
|
4617
|
-
export type UploadBatchAddTagsTargetSchema = Job;
|
|
4618
|
-
export type UploadBatchDestroyTargetSchema = Job;
|
|
4619
4522
|
export type UploadBulkTagTargetSchema = Job;
|
|
4620
4523
|
export type UploadBulkSetUploadCollectionTargetSchema = Job;
|
|
4621
4524
|
export type UploadBulkDestroyTargetSchema = Job;
|
|
@@ -5602,7 +5505,7 @@ export type ItemTypeUpdateSchema = {
|
|
|
5602
5505
|
* | Code | `structured_text` |
|
|
5603
5506
|
* | Built-in editors for the field | `structured_text` |
|
|
5604
5507
|
* | Required validators | `structured_text_blocks`, `structured_text_links` |
|
|
5605
|
-
* | Other validators available | `length`
|
|
5508
|
+
* | Other validators available | `length`, `structured_text_inline_blocks` |
|
|
5606
5509
|
*
|
|
5607
5510
|
* </details>
|
|
5608
5511
|
*
|
|
@@ -5938,6 +5841,17 @@ export type ItemTypeUpdateSchema = {
|
|
|
5938
5841
|
* </details>
|
|
5939
5842
|
*
|
|
5940
5843
|
* <details>
|
|
5844
|
+
* <summary><code>structured_text_inline_blocks</code></summary>
|
|
5845
|
+
*
|
|
5846
|
+
* Only accept references to block records of the specified block models.
|
|
5847
|
+
*
|
|
5848
|
+
* | Parameter | Type | Required | Description |
|
|
5849
|
+
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
5850
|
+
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
5851
|
+
*
|
|
5852
|
+
* </details>
|
|
5853
|
+
*
|
|
5854
|
+
* <details>
|
|
5941
5855
|
* <summary><code>structured_text_links</code></summary>
|
|
5942
5856
|
*
|
|
5943
5857
|
* Only accept `itemLink` to `inlineItem` nodes for records of the specified models.
|
|
@@ -7761,6 +7675,8 @@ export type ItemCurrentVsPublishedState = {
|
|
|
7761
7675
|
added_locales: string[];
|
|
7762
7676
|
removed_locales: string[];
|
|
7763
7677
|
non_localized_fields_changed: boolean;
|
|
7678
|
+
current_version_invalid_locales: string[];
|
|
7679
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7764
7680
|
scheduled_publication: ScheduledPublicationData | null;
|
|
7765
7681
|
scheduled_unpublishing: ScheduledUnpublishingData | null;
|
|
7766
7682
|
published_version: ItemVersionData | null;
|
|
@@ -7824,6 +7740,8 @@ export type ItemCurrentVsPublishedStateAttributes = {
|
|
|
7824
7740
|
added_locales: string[];
|
|
7825
7741
|
removed_locales: string[];
|
|
7826
7742
|
non_localized_fields_changed: boolean;
|
|
7743
|
+
current_version_invalid_locales: string[];
|
|
7744
|
+
current_version_non_localized_fields_invalid: boolean;
|
|
7827
7745
|
};
|
|
7828
7746
|
|
|
7829
7747
|
/**
|
|
@@ -8480,18 +8398,6 @@ export type UploadUpdateSchema = {
|
|
|
8480
8398
|
upload_collection?: UploadCollectionData | null;
|
|
8481
8399
|
};
|
|
8482
8400
|
|
|
8483
|
-
/**
|
|
8484
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8485
|
-
* via the `batch_add_tags.schema` link.
|
|
8486
|
-
*/
|
|
8487
|
-
export type UploadBatchAddTagsSchema = {
|
|
8488
|
-
type?: UploadType;
|
|
8489
|
-
/**
|
|
8490
|
-
* Tags
|
|
8491
|
-
*/
|
|
8492
|
-
tags: string[];
|
|
8493
|
-
};
|
|
8494
|
-
|
|
8495
8401
|
/**
|
|
8496
8402
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8497
8403
|
* via the `bulk_tag.schema` link.
|
|
@@ -11264,6 +11170,7 @@ export type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
|
|
|
11264
11170
|
export type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
|
|
11265
11171
|
export type SiteActivateDraftModeAsDefaultTargetSchema = Site;
|
|
11266
11172
|
export type SiteActivateImprovedValidationAtPublishingTargetSchema = Site;
|
|
11173
|
+
export type SiteActivateImprovedExposureOfInlineBlocksInCdaTargetSchema = Site;
|
|
11267
11174
|
export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
11268
11175
|
/**
|
|
11269
11176
|
* Meta attributes
|
|
@@ -11277,37 +11184,41 @@ export type SiteMeta = {
|
|
|
11277
11184
|
*/
|
|
11278
11185
|
created_at: string;
|
|
11279
11186
|
/**
|
|
11280
|
-
*
|
|
11187
|
+
* The default value for the draft mode option in all the environment's models
|
|
11188
|
+
*/
|
|
11189
|
+
draft_mode_default: boolean;
|
|
11190
|
+
/**
|
|
11191
|
+
* Whether the site has custom upload storage settings
|
|
11192
|
+
*/
|
|
11193
|
+
custom_upload_storage_settings?: boolean;
|
|
11194
|
+
/**
|
|
11195
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
11281
11196
|
*/
|
|
11282
11197
|
improved_timezone_management: boolean;
|
|
11283
11198
|
/**
|
|
11284
|
-
* Whether the Improved API Hex Management
|
|
11199
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
11285
11200
|
*/
|
|
11286
11201
|
improved_hex_management: boolean;
|
|
11287
11202
|
/**
|
|
11288
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11203
|
+
* 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
11204
|
*/
|
|
11290
11205
|
improved_gql_multilocale_fields: boolean;
|
|
11291
11206
|
/**
|
|
11292
|
-
* Whether the Improved GraphQL visibility control
|
|
11207
|
+
* 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
11208
|
*/
|
|
11294
11209
|
improved_gql_visibility_control: boolean;
|
|
11295
11210
|
/**
|
|
11296
|
-
* Whether the Improved boolean fields
|
|
11211
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
11297
11212
|
*/
|
|
11298
11213
|
improved_boolean_fields: boolean;
|
|
11299
11214
|
/**
|
|
11300
|
-
*
|
|
11301
|
-
*/
|
|
11302
|
-
draft_mode_default: boolean;
|
|
11303
|
-
/**
|
|
11304
|
-
* Whether the Improved validation at publishing option is active or not
|
|
11215
|
+
* 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
11216
|
*/
|
|
11306
11217
|
improved_validation_at_publishing: boolean;
|
|
11307
11218
|
/**
|
|
11308
|
-
* Whether the
|
|
11219
|
+
* 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
11220
|
*/
|
|
11310
|
-
|
|
11221
|
+
improved_exposure_of_inline_blocks_in_cda: boolean;
|
|
11311
11222
|
};
|
|
11312
11223
|
|
|
11313
11224
|
/**
|
|
@@ -11632,23 +11543,23 @@ export type SiteUpdateSchema = {
|
|
|
11632
11543
|
sso_default_role?: RoleData;
|
|
11633
11544
|
meta?: {
|
|
11634
11545
|
/**
|
|
11635
|
-
* Whether the Improved API Timezone Management
|
|
11546
|
+
* Whether the [Improved API Timezone Management](https://www.datocms.com/product-updates/improved-timezone-management) opt-in product update is active or not
|
|
11636
11547
|
*/
|
|
11637
11548
|
improved_timezone_management?: boolean;
|
|
11638
11549
|
/**
|
|
11639
|
-
* Whether the Improved API Hex Management
|
|
11550
|
+
* Whether the [Improved API Hex Management](https://www.datocms.com/product-updates/improved-hex-management) opt-in product update is active or not
|
|
11640
11551
|
*/
|
|
11641
11552
|
improved_hex_management?: boolean;
|
|
11642
11553
|
/**
|
|
11643
|
-
* Whether the Improved GraphQL multi-locale fields
|
|
11554
|
+
* 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
11555
|
*/
|
|
11645
11556
|
improved_gql_multilocale_fields?: boolean;
|
|
11646
11557
|
/**
|
|
11647
|
-
* Whether the Improved GraphQL visibility control
|
|
11558
|
+
* 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
11559
|
*/
|
|
11649
11560
|
improved_gql_visibility_control?: boolean;
|
|
11650
11561
|
/**
|
|
11651
|
-
* Whether the Improved boolean fields
|
|
11562
|
+
* Whether the [Improved boolean fields](https://www.datocms.com/product-updates/improved-boolean-fields) opt-in product update is active or not
|
|
11652
11563
|
*/
|
|
11653
11564
|
improved_boolean_fields?: boolean;
|
|
11654
11565
|
/**
|
|
@@ -11656,13 +11567,17 @@ export type SiteUpdateSchema = {
|
|
|
11656
11567
|
*/
|
|
11657
11568
|
draft_mode_default?: boolean;
|
|
11658
11569
|
/**
|
|
11659
|
-
* Whether the Improved validation at publishing
|
|
11570
|
+
* 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
11571
|
*/
|
|
11661
11572
|
improved_validation_at_publishing?: boolean;
|
|
11662
11573
|
/**
|
|
11663
11574
|
* Whether the site has custom upload storage settings
|
|
11664
11575
|
*/
|
|
11665
11576
|
custom_upload_storage_settings?: boolean;
|
|
11577
|
+
/**
|
|
11578
|
+
* 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
|
|
11579
|
+
*/
|
|
11580
|
+
improved_exposure_of_inline_blocks_in_cda?: boolean;
|
|
11666
11581
|
};
|
|
11667
11582
|
};
|
|
11668
11583
|
|