@datocms/cma-client 1.2.12 → 1.3.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/Client.js.map +1 -1
- package/dist/cjs/generated/resources/Item.js +2 -2
- package/dist/cjs/generated/resources/Item.js.map +1 -1
- package/dist/cjs/generated/resources/Site.js +27 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +64 -14
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +56 -14
- package/dist/esm/generated/resources/Item.js +2 -2
- package/dist/esm/generated/resources/Item.js.map +1 -1
- package/dist/esm/generated/resources/Site.d.ts +18 -0
- package/dist/esm/generated/resources/Site.js +27 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +64 -14
- package/dist/types/generated/SimpleSchemaTypes.d.ts +56 -14
- package/dist/types/generated/resources/Site.d.ts +18 -0
- package/package.json +4 -4
- package/resources.json +16 -2
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +75 -14
- package/src/generated/SimpleSchemaTypes.ts +66 -14
- package/src/generated/resources/Item.ts +2 -2
- package/src/generated/resources/Site.ts +33 -0
|
@@ -382,7 +382,7 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
382
382
|
/**
|
|
383
383
|
* Skip the creation of a menu item linked to the model
|
|
384
384
|
*/
|
|
385
|
-
skip_menu_item_creation?:
|
|
385
|
+
skip_menu_item_creation?: boolean;
|
|
386
386
|
[k: string]: unknown;
|
|
387
387
|
};
|
|
388
388
|
/**
|
|
@@ -410,7 +410,7 @@ export type ItemTypeDestroyHrefSchema = {
|
|
|
410
410
|
/**
|
|
411
411
|
* Skip the deletion of the menu items linked to the model
|
|
412
412
|
*/
|
|
413
|
-
skip_menu_items_deletion?:
|
|
413
|
+
skip_menu_items_deletion?: boolean;
|
|
414
414
|
[k: string]: unknown;
|
|
415
415
|
};
|
|
416
416
|
/**
|
|
@@ -530,7 +530,7 @@ export type ItemInstancesHrefSchema = {
|
|
|
530
530
|
/**
|
|
531
531
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
532
532
|
*/
|
|
533
|
-
nested?:
|
|
533
|
+
nested?: boolean;
|
|
534
534
|
/**
|
|
535
535
|
* Attributes to filter records
|
|
536
536
|
*/
|
|
@@ -553,6 +553,10 @@ export type ItemInstancesHrefSchema = {
|
|
|
553
553
|
fields?: {
|
|
554
554
|
[k: string]: unknown;
|
|
555
555
|
};
|
|
556
|
+
/**
|
|
557
|
+
* When set, only valid records are included in the results.
|
|
558
|
+
*/
|
|
559
|
+
only_valid?: string;
|
|
556
560
|
[k: string]: unknown;
|
|
557
561
|
};
|
|
558
562
|
/**
|
|
@@ -591,7 +595,7 @@ export type ItemReferencesHrefSchema = {
|
|
|
591
595
|
/**
|
|
592
596
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
593
597
|
*/
|
|
594
|
-
nested?:
|
|
598
|
+
nested?: boolean;
|
|
595
599
|
/**
|
|
596
600
|
* Retrieve only the selected type of version that is linked to the record; current, published or both
|
|
597
601
|
*/
|
|
@@ -606,7 +610,7 @@ export type ItemSelfHrefSchema = {
|
|
|
606
610
|
/**
|
|
607
611
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
608
612
|
*/
|
|
609
|
-
nested?:
|
|
613
|
+
nested?: boolean;
|
|
610
614
|
/**
|
|
611
615
|
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
|
|
612
616
|
*/
|
|
@@ -651,7 +655,7 @@ export type ItemPublishHrefSchema = {
|
|
|
651
655
|
/**
|
|
652
656
|
* If the record references other draft records, force a recursive publication
|
|
653
657
|
*/
|
|
654
|
-
recursive?:
|
|
658
|
+
recursive?: boolean;
|
|
655
659
|
[k: string]: unknown;
|
|
656
660
|
};
|
|
657
661
|
/**
|
|
@@ -662,7 +666,7 @@ export type ItemUnpublishHrefSchema = {
|
|
|
662
666
|
/**
|
|
663
667
|
* If the record is referenced by other published records, unpublish them recursively
|
|
664
668
|
*/
|
|
665
|
-
recursive?:
|
|
669
|
+
recursive?: boolean;
|
|
666
670
|
[k: string]: unknown;
|
|
667
671
|
};
|
|
668
672
|
/**
|
|
@@ -690,7 +694,7 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
690
694
|
/**
|
|
691
695
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
692
696
|
*/
|
|
693
|
-
nested?:
|
|
697
|
+
nested?: boolean;
|
|
694
698
|
/**
|
|
695
699
|
* Attributes to manage results pagination
|
|
696
700
|
*/
|
|
@@ -803,7 +807,7 @@ export type UploadReferencesHrefSchema = {
|
|
|
803
807
|
/**
|
|
804
808
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
805
809
|
*/
|
|
806
|
-
nested?:
|
|
810
|
+
nested?: boolean;
|
|
807
811
|
/**
|
|
808
812
|
* Retrieve only the selected type of version that is linked to the upload; current, published or both
|
|
809
813
|
*/
|
|
@@ -904,7 +908,7 @@ export type SearchResultInstancesHrefSchema = {
|
|
|
904
908
|
/**
|
|
905
909
|
* When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
|
|
906
910
|
*/
|
|
907
|
-
fuzzy?:
|
|
911
|
+
fuzzy?: boolean;
|
|
908
912
|
/**
|
|
909
913
|
* Text to search
|
|
910
914
|
*/
|
|
@@ -936,13 +940,13 @@ export type EnvironmentForkHrefSchema = {
|
|
|
936
940
|
/**
|
|
937
941
|
* Whether the call should immediately return a pending environment, or wait for the completion of the fork
|
|
938
942
|
*/
|
|
939
|
-
immediate_return?:
|
|
943
|
+
immediate_return?: boolean;
|
|
940
944
|
/**
|
|
941
945
|
* Performing a fast fork reduces processing time, but it also prevents writing to the source environment during the process
|
|
942
946
|
*/
|
|
943
|
-
fast?:
|
|
947
|
+
fast?: boolean;
|
|
944
948
|
/**
|
|
945
|
-
* Force the fork, even if there are collaborators editing some records
|
|
949
|
+
* Force the start of fast fork, even if there are collaborators editing some records
|
|
946
950
|
*/
|
|
947
951
|
force?: boolean;
|
|
948
952
|
[k: string]: unknown;
|
|
@@ -3274,6 +3278,10 @@ export type SitePlanAttributes = {
|
|
|
3274
3278
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3275
3279
|
*/
|
|
3276
3280
|
concurrent_realtime_connections: number;
|
|
3281
|
+
/**
|
|
3282
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3283
|
+
*/
|
|
3284
|
+
gql_complexity: number;
|
|
3277
3285
|
/**
|
|
3278
3286
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3279
3287
|
*/
|
|
@@ -4135,7 +4143,7 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4135
4143
|
};
|
|
4136
4144
|
|
|
4137
4145
|
/**
|
|
4138
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
4146
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
4139
4147
|
*
|
|
4140
4148
|
* ### Different field types require different settings
|
|
4141
4149
|
*
|
|
@@ -4732,6 +4740,17 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4732
4740
|
* </details>
|
|
4733
4741
|
*
|
|
4734
4742
|
* <details>
|
|
4743
|
+
* <summary><code>sanitization</code></summary>
|
|
4744
|
+
*
|
|
4745
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
4746
|
+
*
|
|
4747
|
+
* | Parameter | Type | Required | Description |
|
|
4748
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
4749
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
4750
|
+
*
|
|
4751
|
+
* </details>
|
|
4752
|
+
*
|
|
4753
|
+
* <details>
|
|
4735
4754
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4736
4755
|
*
|
|
4737
4756
|
* Only accept references to block records of the specified block models.
|
|
@@ -6426,6 +6445,17 @@ export type ItemValidateNewSchema = {
|
|
|
6426
6445
|
item_type: {
|
|
6427
6446
|
data: ItemTypeData;
|
|
6428
6447
|
};
|
|
6448
|
+
/**
|
|
6449
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
6450
|
+
*/
|
|
6451
|
+
creator?: {
|
|
6452
|
+
data:
|
|
6453
|
+
| AccountData
|
|
6454
|
+
| AccessTokenData
|
|
6455
|
+
| UserData
|
|
6456
|
+
| SsoUserData
|
|
6457
|
+
| OrganizationData;
|
|
6458
|
+
};
|
|
6429
6459
|
};
|
|
6430
6460
|
};
|
|
6431
6461
|
};
|
|
@@ -6495,6 +6525,17 @@ export type ItemCreateSchema = {
|
|
|
6495
6525
|
item_type: {
|
|
6496
6526
|
data: ItemTypeData;
|
|
6497
6527
|
};
|
|
6528
|
+
/**
|
|
6529
|
+
* The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
6530
|
+
*/
|
|
6531
|
+
creator?: {
|
|
6532
|
+
data:
|
|
6533
|
+
| AccountData
|
|
6534
|
+
| AccessTokenData
|
|
6535
|
+
| UserData
|
|
6536
|
+
| SsoUserData
|
|
6537
|
+
| OrganizationData;
|
|
6538
|
+
};
|
|
6498
6539
|
};
|
|
6499
6540
|
};
|
|
6500
6541
|
};
|
|
@@ -7114,6 +7155,10 @@ export type UploadAttributes = {
|
|
|
7114
7155
|
* Blurhash for the asset
|
|
7115
7156
|
*/
|
|
7116
7157
|
blurhash: string | null;
|
|
7158
|
+
/**
|
|
7159
|
+
* Base64 encoded ThumbHash for the asset
|
|
7160
|
+
*/
|
|
7161
|
+
thumbhash: string | null;
|
|
7117
7162
|
/**
|
|
7118
7163
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
7119
7164
|
*/
|
|
@@ -10192,6 +10237,10 @@ export type SiteMeta = {
|
|
|
10192
10237
|
* Whether the Improved API Timezone Management option is active or not
|
|
10193
10238
|
*/
|
|
10194
10239
|
improved_timezone_management: boolean;
|
|
10240
|
+
/**
|
|
10241
|
+
* Whether the Improved API Hex Management option is active or not
|
|
10242
|
+
*/
|
|
10243
|
+
improved_hex_management: boolean;
|
|
10195
10244
|
};
|
|
10196
10245
|
|
|
10197
10246
|
/**
|
|
@@ -10330,6 +10379,10 @@ export type SiteUpdateSchema = {
|
|
|
10330
10379
|
* Whether the Improved API Timezone Management option is active or not
|
|
10331
10380
|
*/
|
|
10332
10381
|
improved_timezone_management?: boolean;
|
|
10382
|
+
/**
|
|
10383
|
+
* Whether the Improved API Hex Management option is active or not
|
|
10384
|
+
*/
|
|
10385
|
+
improved_hex_management?: boolean;
|
|
10333
10386
|
};
|
|
10334
10387
|
relationships?: {
|
|
10335
10388
|
sso_default_role?: {
|
|
@@ -10371,6 +10424,14 @@ export type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
|
10371
10424
|
data: Site;
|
|
10372
10425
|
};
|
|
10373
10426
|
|
|
10427
|
+
/**
|
|
10428
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
10429
|
+
* via the `activate_improved_hex_management.targetSchema` link.
|
|
10430
|
+
*/
|
|
10431
|
+
export type SiteActivateImprovedHexManagementTargetSchema = {
|
|
10432
|
+
data: Site;
|
|
10433
|
+
};
|
|
10434
|
+
|
|
10374
10435
|
/**
|
|
10375
10436
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
10376
10437
|
*
|
|
@@ -422,7 +422,7 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
422
422
|
/**
|
|
423
423
|
* Skip the creation of a menu item linked to the model
|
|
424
424
|
*/
|
|
425
|
-
skip_menu_item_creation?:
|
|
425
|
+
skip_menu_item_creation?: boolean;
|
|
426
426
|
[k: string]: unknown;
|
|
427
427
|
};
|
|
428
428
|
/**
|
|
@@ -455,7 +455,7 @@ export type ItemTypeDestroyHrefSchema = {
|
|
|
455
455
|
/**
|
|
456
456
|
* Skip the deletion of the menu items linked to the model
|
|
457
457
|
*/
|
|
458
|
-
skip_menu_items_deletion?:
|
|
458
|
+
skip_menu_items_deletion?: boolean;
|
|
459
459
|
[k: string]: unknown;
|
|
460
460
|
};
|
|
461
461
|
/**
|
|
@@ -625,7 +625,7 @@ export type ItemInstancesHrefSchema = {
|
|
|
625
625
|
/**
|
|
626
626
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
627
627
|
*/
|
|
628
|
-
nested?:
|
|
628
|
+
nested?: boolean;
|
|
629
629
|
/**
|
|
630
630
|
* Attributes to filter records
|
|
631
631
|
*/
|
|
@@ -648,6 +648,10 @@ export type ItemInstancesHrefSchema = {
|
|
|
648
648
|
fields?: {
|
|
649
649
|
[k: string]: unknown;
|
|
650
650
|
};
|
|
651
|
+
/**
|
|
652
|
+
* When set, only valid records are included in the results.
|
|
653
|
+
*/
|
|
654
|
+
only_valid?: string;
|
|
651
655
|
[k: string]: unknown;
|
|
652
656
|
};
|
|
653
657
|
/**
|
|
@@ -691,7 +695,7 @@ export type ItemReferencesHrefSchema = {
|
|
|
691
695
|
/**
|
|
692
696
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
693
697
|
*/
|
|
694
|
-
nested?:
|
|
698
|
+
nested?: boolean;
|
|
695
699
|
/**
|
|
696
700
|
* Retrieve only the selected type of version that is linked to the record; current, published or both
|
|
697
701
|
*/
|
|
@@ -706,7 +710,7 @@ export type ItemSelfHrefSchema = {
|
|
|
706
710
|
/**
|
|
707
711
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
708
712
|
*/
|
|
709
|
-
nested?:
|
|
713
|
+
nested?: boolean;
|
|
710
714
|
/**
|
|
711
715
|
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
|
|
712
716
|
*/
|
|
@@ -766,7 +770,7 @@ export type ItemPublishHrefSchema = {
|
|
|
766
770
|
/**
|
|
767
771
|
* If the record references other draft records, force a recursive publication
|
|
768
772
|
*/
|
|
769
|
-
recursive?:
|
|
773
|
+
recursive?: boolean;
|
|
770
774
|
[k: string]: unknown;
|
|
771
775
|
};
|
|
772
776
|
/**
|
|
@@ -777,7 +781,7 @@ export type ItemUnpublishHrefSchema = {
|
|
|
777
781
|
/**
|
|
778
782
|
* If the record is referenced by other published records, unpublish them recursively
|
|
779
783
|
*/
|
|
780
|
-
recursive?:
|
|
784
|
+
recursive?: boolean;
|
|
781
785
|
[k: string]: unknown;
|
|
782
786
|
};
|
|
783
787
|
/**
|
|
@@ -835,7 +839,7 @@ export type ItemVersionInstancesHrefSchema = {
|
|
|
835
839
|
/**
|
|
836
840
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
837
841
|
*/
|
|
838
|
-
nested?:
|
|
842
|
+
nested?: boolean;
|
|
839
843
|
/**
|
|
840
844
|
* Attributes to manage results pagination
|
|
841
845
|
*/
|
|
@@ -968,7 +972,7 @@ export type UploadReferencesHrefSchema = {
|
|
|
968
972
|
/**
|
|
969
973
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
970
974
|
*/
|
|
971
|
-
nested?:
|
|
975
|
+
nested?: boolean;
|
|
972
976
|
/**
|
|
973
977
|
* Retrieve only the selected type of version that is linked to the upload; current, published or both
|
|
974
978
|
*/
|
|
@@ -1084,7 +1088,7 @@ export type SearchResultInstancesHrefSchema = {
|
|
|
1084
1088
|
/**
|
|
1085
1089
|
* When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
|
|
1086
1090
|
*/
|
|
1087
|
-
fuzzy?:
|
|
1091
|
+
fuzzy?: boolean;
|
|
1088
1092
|
/**
|
|
1089
1093
|
* Text to search
|
|
1090
1094
|
*/
|
|
@@ -1121,13 +1125,13 @@ export type EnvironmentForkHrefSchema = {
|
|
|
1121
1125
|
/**
|
|
1122
1126
|
* Whether the call should immediately return a pending environment, or wait for the completion of the fork
|
|
1123
1127
|
*/
|
|
1124
|
-
immediate_return?:
|
|
1128
|
+
immediate_return?: boolean;
|
|
1125
1129
|
/**
|
|
1126
1130
|
* Performing a fast fork reduces processing time, but it also prevents writing to the source environment during the process
|
|
1127
1131
|
*/
|
|
1128
|
-
fast?:
|
|
1132
|
+
fast?: boolean;
|
|
1129
1133
|
/**
|
|
1130
|
-
* Force the fork, even if there are collaborators editing some records
|
|
1134
|
+
* Force the start of fast fork, even if there are collaborators editing some records
|
|
1131
1135
|
*/
|
|
1132
1136
|
force?: boolean;
|
|
1133
1137
|
[k: string]: unknown;
|
|
@@ -3674,6 +3678,10 @@ export type SitePlan = {
|
|
|
3674
3678
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3675
3679
|
*/
|
|
3676
3680
|
concurrent_realtime_connections: number;
|
|
3681
|
+
/**
|
|
3682
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3683
|
+
*/
|
|
3684
|
+
gql_complexity: number;
|
|
3677
3685
|
/**
|
|
3678
3686
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3679
3687
|
*/
|
|
@@ -3900,6 +3908,10 @@ export type SitePlanAttributes = {
|
|
|
3900
3908
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3901
3909
|
*/
|
|
3902
3910
|
concurrent_realtime_connections: number;
|
|
3911
|
+
/**
|
|
3912
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3913
|
+
*/
|
|
3914
|
+
gql_complexity: number;
|
|
3903
3915
|
/**
|
|
3904
3916
|
* Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
|
|
3905
3917
|
*/
|
|
@@ -4660,7 +4672,7 @@ export type JobData = {
|
|
|
4660
4672
|
};
|
|
4661
4673
|
|
|
4662
4674
|
/**
|
|
4663
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
4675
|
+
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
4664
4676
|
*
|
|
4665
4677
|
* ### Different field types require different settings
|
|
4666
4678
|
*
|
|
@@ -5257,6 +5269,17 @@ export type JobData = {
|
|
|
5257
5269
|
* </details>
|
|
5258
5270
|
*
|
|
5259
5271
|
* <details>
|
|
5272
|
+
* <summary><code>sanitization</code></summary>
|
|
5273
|
+
*
|
|
5274
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
5275
|
+
*
|
|
5276
|
+
* | Parameter | Type | Required | Description |
|
|
5277
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
5278
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
5279
|
+
*
|
|
5280
|
+
* </details>
|
|
5281
|
+
*
|
|
5282
|
+
* <details>
|
|
5260
5283
|
* <summary><code>structured_text_blocks</code></summary>
|
|
5261
5284
|
*
|
|
5262
5285
|
* Only accept references to block records of the specified block models.
|
|
@@ -6844,6 +6867,12 @@ export type ItemValidateExistingSchema = {
|
|
|
6844
6867
|
export type ItemValidateNewSchema = {
|
|
6845
6868
|
type?: ItemType1;
|
|
6846
6869
|
item_type: ItemTypeData;
|
|
6870
|
+
creator?:
|
|
6871
|
+
| AccountData
|
|
6872
|
+
| AccessTokenData
|
|
6873
|
+
| UserData
|
|
6874
|
+
| SsoUserData
|
|
6875
|
+
| OrganizationData;
|
|
6847
6876
|
[k: string]: unknown;
|
|
6848
6877
|
};
|
|
6849
6878
|
|
|
@@ -6854,6 +6883,12 @@ export type ItemValidateNewSchema = {
|
|
|
6854
6883
|
export type ItemCreateSchema = {
|
|
6855
6884
|
type?: ItemType1;
|
|
6856
6885
|
item_type: ItemTypeData;
|
|
6886
|
+
creator?:
|
|
6887
|
+
| AccountData
|
|
6888
|
+
| AccessTokenData
|
|
6889
|
+
| UserData
|
|
6890
|
+
| SsoUserData
|
|
6891
|
+
| OrganizationData;
|
|
6857
6892
|
/**
|
|
6858
6893
|
* Meta information regarding the record
|
|
6859
6894
|
*/
|
|
@@ -7184,6 +7219,10 @@ export type Upload = {
|
|
|
7184
7219
|
* Blurhash for the asset
|
|
7185
7220
|
*/
|
|
7186
7221
|
blurhash: string | null;
|
|
7222
|
+
/**
|
|
7223
|
+
* Base64 encoded ThumbHash for the asset
|
|
7224
|
+
*/
|
|
7225
|
+
thumbhash: string | null;
|
|
7187
7226
|
/**
|
|
7188
7227
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
7189
7228
|
*/
|
|
@@ -7370,6 +7409,10 @@ export type UploadAttributes = {
|
|
|
7370
7409
|
* Blurhash for the asset
|
|
7371
7410
|
*/
|
|
7372
7411
|
blurhash: string | null;
|
|
7412
|
+
/**
|
|
7413
|
+
* Base64 encoded ThumbHash for the asset
|
|
7414
|
+
*/
|
|
7415
|
+
thumbhash: string | null;
|
|
7373
7416
|
/**
|
|
7374
7417
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
7375
7418
|
*/
|
|
@@ -9874,6 +9917,7 @@ export type Site = {
|
|
|
9874
9917
|
export type SiteSelfTargetSchema = Site;
|
|
9875
9918
|
export type SiteUpdateJobSchema = Site;
|
|
9876
9919
|
export type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9920
|
+
export type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9877
9921
|
/**
|
|
9878
9922
|
* Meta attributes
|
|
9879
9923
|
*
|
|
@@ -9885,6 +9929,10 @@ export type SiteMeta = {
|
|
|
9885
9929
|
* Whether the Improved API Timezone Management option is active or not
|
|
9886
9930
|
*/
|
|
9887
9931
|
improved_timezone_management: boolean;
|
|
9932
|
+
/**
|
|
9933
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9934
|
+
*/
|
|
9935
|
+
improved_hex_management: boolean;
|
|
9888
9936
|
};
|
|
9889
9937
|
|
|
9890
9938
|
/**
|
|
@@ -10157,6 +10205,10 @@ export type SiteUpdateSchema = {
|
|
|
10157
10205
|
* Whether the Improved API Timezone Management option is active or not
|
|
10158
10206
|
*/
|
|
10159
10207
|
improved_timezone_management?: boolean;
|
|
10208
|
+
/**
|
|
10209
|
+
* Whether the Improved API Hex Management option is active or not
|
|
10210
|
+
*/
|
|
10211
|
+
improved_hex_management?: boolean;
|
|
10160
10212
|
};
|
|
10161
10213
|
};
|
|
10162
10214
|
|
|
@@ -148,7 +148,7 @@ export default class Item extends BaseResource {
|
|
|
148
148
|
Utils.serializeRequestBody<SchemaTypes.ItemValidateNewSchema>(body, {
|
|
149
149
|
type: 'item',
|
|
150
150
|
attributes: '*',
|
|
151
|
-
relationships: ['item_type'],
|
|
151
|
+
relationships: ['item_type', 'creator'],
|
|
152
152
|
}),
|
|
153
153
|
);
|
|
154
154
|
}
|
|
@@ -184,7 +184,7 @@ export default class Item extends BaseResource {
|
|
|
184
184
|
Utils.serializeRequestBody<SchemaTypes.ItemCreateSchema>(body, {
|
|
185
185
|
type: 'item',
|
|
186
186
|
attributes: '*',
|
|
187
|
-
relationships: ['item_type'],
|
|
187
|
+
relationships: ['item_type', 'creator'],
|
|
188
188
|
}),
|
|
189
189
|
).then((body) =>
|
|
190
190
|
Utils.deserializeResponseBody<SimpleSchemaTypes.ItemCreateTargetSchema>(
|
|
@@ -122,4 +122,37 @@ export default class Site extends BaseResource {
|
|
|
122
122
|
},
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Activate improved hex management
|
|
128
|
+
*
|
|
129
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
130
|
+
*
|
|
131
|
+
* @throws {ApiError}
|
|
132
|
+
* @throws {TimeoutError}
|
|
133
|
+
*/
|
|
134
|
+
activateImprovedHexManagement() {
|
|
135
|
+
return this.rawActivateImprovedHexManagement().then((body) =>
|
|
136
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.SiteActivateImprovedHexManagementTargetSchema>(
|
|
137
|
+
body,
|
|
138
|
+
),
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Activate improved hex management
|
|
144
|
+
*
|
|
145
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
146
|
+
*
|
|
147
|
+
* @throws {ApiError}
|
|
148
|
+
* @throws {TimeoutError}
|
|
149
|
+
*/
|
|
150
|
+
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema> {
|
|
151
|
+
return this.client.request<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>(
|
|
152
|
+
{
|
|
153
|
+
method: 'PUT',
|
|
154
|
+
url: '/site/activate-improved-hex-management',
|
|
155
|
+
},
|
|
156
|
+
);
|
|
157
|
+
}
|
|
125
158
|
}
|