@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/generated/resources/Item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAkC,wBAAY;IAA9C;;IAquBA,CAAC;IAluBC;;;;;;;OAOG;IACH,mBAAI,GAAJ,UAAK,WAAuD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AAK,CAAC,oBAAoB,CAAwC,IAAI,EAAE;YACtE,IAAI,EAAE,mCAAmC;YACzC,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,aAAa,EAAE,CAAC,OAAO,CAAC;SACzB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,iCAAkB,GAAlB,UACE,IAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA2C;YACnE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAnuBe,SAAI,GAAW,MAAM,CAAC;IAouBxC,WAAC;CAAA,AAruBD,CAAkC,YAAY,GAquB7C;eAruBoB,IAAI"}
|
|
@@ -57,4 +57,22 @@ export default class Site extends BaseResource {
|
|
|
57
57
|
* @throws {TimeoutError}
|
|
58
58
|
*/
|
|
59
59
|
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* Activate improved hex management
|
|
62
|
+
*
|
|
63
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
64
|
+
*
|
|
65
|
+
* @throws {ApiError}
|
|
66
|
+
* @throws {TimeoutError}
|
|
67
|
+
*/
|
|
68
|
+
activateImprovedHexManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
69
|
+
/**
|
|
70
|
+
* Activate improved hex management
|
|
71
|
+
*
|
|
72
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
73
|
+
*
|
|
74
|
+
* @throws {ApiError}
|
|
75
|
+
* @throws {TimeoutError}
|
|
76
|
+
*/
|
|
77
|
+
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>;
|
|
60
78
|
}
|
|
@@ -117,6 +117,33 @@ var Site = /** @class */ (function (_super) {
|
|
|
117
117
|
url: '/site/activate-improved-timezone-management',
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* Activate improved hex management
|
|
122
|
+
*
|
|
123
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
124
|
+
*
|
|
125
|
+
* @throws {ApiError}
|
|
126
|
+
* @throws {TimeoutError}
|
|
127
|
+
*/
|
|
128
|
+
Site.prototype.activateImprovedHexManagement = function () {
|
|
129
|
+
return this.rawActivateImprovedHexManagement().then(function (body) {
|
|
130
|
+
return Utils.deserializeResponseBody(body);
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Activate improved hex management
|
|
135
|
+
*
|
|
136
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
137
|
+
*
|
|
138
|
+
* @throws {ApiError}
|
|
139
|
+
* @throws {TimeoutError}
|
|
140
|
+
*/
|
|
141
|
+
Site.prototype.rawActivateImprovedHexManagement = function () {
|
|
142
|
+
return this.client.request({
|
|
143
|
+
method: 'PUT',
|
|
144
|
+
url: '/site/activate-improved-hex-management',
|
|
145
|
+
});
|
|
146
|
+
};
|
|
120
147
|
Site.TYPE = 'site';
|
|
121
148
|
return Site;
|
|
122
149
|
}(BaseResource));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAkC,wBAAY;IAA9C;;
|
|
1
|
+
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;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ACE,OAAO,IAAI,CAAC,qCAAqC,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YAC5D,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,oDAAqC,GAArC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;SACnD,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,4CAA6B,GAA7B;QACE,OAAO,IAAI,CAAC,gCAAgC,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YACvD,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,+CAAgC,GAAhC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wCAAwC;SAC9C,CACF,CAAC;IACJ,CAAC;IAtJe,SAAI,GAAW,MAAM,CAAC;IAuJxC,WAAC;CAAA,AAxJD,CAAkC,YAAY,GAwJ7C;eAxJoB,IAAI"}
|
|
@@ -380,7 +380,7 @@ export declare type ItemTypeCreateHrefSchema = {
|
|
|
380
380
|
/**
|
|
381
381
|
* Skip the creation of a menu item linked to the model
|
|
382
382
|
*/
|
|
383
|
-
skip_menu_item_creation?:
|
|
383
|
+
skip_menu_item_creation?: boolean;
|
|
384
384
|
[k: string]: unknown;
|
|
385
385
|
};
|
|
386
386
|
/**
|
|
@@ -408,7 +408,7 @@ export declare type ItemTypeDestroyHrefSchema = {
|
|
|
408
408
|
/**
|
|
409
409
|
* Skip the deletion of the menu items linked to the model
|
|
410
410
|
*/
|
|
411
|
-
skip_menu_items_deletion?:
|
|
411
|
+
skip_menu_items_deletion?: boolean;
|
|
412
412
|
[k: string]: unknown;
|
|
413
413
|
};
|
|
414
414
|
/**
|
|
@@ -528,7 +528,7 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
528
528
|
/**
|
|
529
529
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
530
530
|
*/
|
|
531
|
-
nested?:
|
|
531
|
+
nested?: boolean;
|
|
532
532
|
/**
|
|
533
533
|
* Attributes to filter records
|
|
534
534
|
*/
|
|
@@ -551,6 +551,10 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
551
551
|
fields?: {
|
|
552
552
|
[k: string]: unknown;
|
|
553
553
|
};
|
|
554
|
+
/**
|
|
555
|
+
* When set, only valid records are included in the results.
|
|
556
|
+
*/
|
|
557
|
+
only_valid?: string;
|
|
554
558
|
[k: string]: unknown;
|
|
555
559
|
};
|
|
556
560
|
/**
|
|
@@ -589,7 +593,7 @@ export declare type ItemReferencesHrefSchema = {
|
|
|
589
593
|
/**
|
|
590
594
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
591
595
|
*/
|
|
592
|
-
nested?:
|
|
596
|
+
nested?: boolean;
|
|
593
597
|
/**
|
|
594
598
|
* Retrieve only the selected type of version that is linked to the record; current, published or both
|
|
595
599
|
*/
|
|
@@ -604,7 +608,7 @@ export declare type ItemSelfHrefSchema = {
|
|
|
604
608
|
/**
|
|
605
609
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
606
610
|
*/
|
|
607
|
-
nested?:
|
|
611
|
+
nested?: boolean;
|
|
608
612
|
/**
|
|
609
613
|
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
|
|
610
614
|
*/
|
|
@@ -649,7 +653,7 @@ export declare type ItemPublishHrefSchema = {
|
|
|
649
653
|
/**
|
|
650
654
|
* If the record references other draft records, force a recursive publication
|
|
651
655
|
*/
|
|
652
|
-
recursive?:
|
|
656
|
+
recursive?: boolean;
|
|
653
657
|
[k: string]: unknown;
|
|
654
658
|
};
|
|
655
659
|
/**
|
|
@@ -660,7 +664,7 @@ export declare type ItemUnpublishHrefSchema = {
|
|
|
660
664
|
/**
|
|
661
665
|
* If the record is referenced by other published records, unpublish them recursively
|
|
662
666
|
*/
|
|
663
|
-
recursive?:
|
|
667
|
+
recursive?: boolean;
|
|
664
668
|
[k: string]: unknown;
|
|
665
669
|
};
|
|
666
670
|
/**
|
|
@@ -688,7 +692,7 @@ export declare type ItemVersionInstancesHrefSchema = {
|
|
|
688
692
|
/**
|
|
689
693
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
690
694
|
*/
|
|
691
|
-
nested?:
|
|
695
|
+
nested?: boolean;
|
|
692
696
|
/**
|
|
693
697
|
* Attributes to manage results pagination
|
|
694
698
|
*/
|
|
@@ -801,7 +805,7 @@ export declare type UploadReferencesHrefSchema = {
|
|
|
801
805
|
/**
|
|
802
806
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
803
807
|
*/
|
|
804
|
-
nested?:
|
|
808
|
+
nested?: boolean;
|
|
805
809
|
/**
|
|
806
810
|
* Retrieve only the selected type of version that is linked to the upload; current, published or both
|
|
807
811
|
*/
|
|
@@ -902,7 +906,7 @@ export declare type SearchResultInstancesHrefSchema = {
|
|
|
902
906
|
/**
|
|
903
907
|
* When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
|
|
904
908
|
*/
|
|
905
|
-
fuzzy?:
|
|
909
|
+
fuzzy?: boolean;
|
|
906
910
|
/**
|
|
907
911
|
* Text to search
|
|
908
912
|
*/
|
|
@@ -934,13 +938,13 @@ export declare type EnvironmentForkHrefSchema = {
|
|
|
934
938
|
/**
|
|
935
939
|
* Whether the call should immediately return a pending environment, or wait for the completion of the fork
|
|
936
940
|
*/
|
|
937
|
-
immediate_return?:
|
|
941
|
+
immediate_return?: boolean;
|
|
938
942
|
/**
|
|
939
943
|
* Performing a fast fork reduces processing time, but it also prevents writing to the source environment during the process
|
|
940
944
|
*/
|
|
941
|
-
fast?:
|
|
945
|
+
fast?: boolean;
|
|
942
946
|
/**
|
|
943
|
-
* Force the fork, even if there are collaborators editing some records
|
|
947
|
+
* Force the start of fast fork, even if there are collaborators editing some records
|
|
944
948
|
*/
|
|
945
949
|
force?: boolean;
|
|
946
950
|
[k: string]: unknown;
|
|
@@ -3057,6 +3061,10 @@ export declare type SitePlanAttributes = {
|
|
|
3057
3061
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3058
3062
|
*/
|
|
3059
3063
|
concurrent_realtime_connections: number;
|
|
3064
|
+
/**
|
|
3065
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3066
|
+
*/
|
|
3067
|
+
gql_complexity: number;
|
|
3060
3068
|
/**
|
|
3061
3069
|
* 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
|
|
3062
3070
|
*/
|
|
@@ -3868,7 +3876,7 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
3868
3876
|
data: ItemType;
|
|
3869
3877
|
};
|
|
3870
3878
|
/**
|
|
3871
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
3879
|
+
* 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.
|
|
3872
3880
|
*
|
|
3873
3881
|
* ### Different field types require different settings
|
|
3874
3882
|
*
|
|
@@ -4465,6 +4473,17 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4465
4473
|
* </details>
|
|
4466
4474
|
*
|
|
4467
4475
|
* <details>
|
|
4476
|
+
* <summary><code>sanitization</code></summary>
|
|
4477
|
+
*
|
|
4478
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
4479
|
+
*
|
|
4480
|
+
* | Parameter | Type | Required | Description |
|
|
4481
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
4482
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
4483
|
+
*
|
|
4484
|
+
* </details>
|
|
4485
|
+
*
|
|
4486
|
+
* <details>
|
|
4468
4487
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4469
4488
|
*
|
|
4470
4489
|
* Only accept references to block records of the specified block models.
|
|
@@ -5958,6 +5977,12 @@ export declare type ItemValidateNewSchema = {
|
|
|
5958
5977
|
item_type: {
|
|
5959
5978
|
data: ItemTypeData;
|
|
5960
5979
|
};
|
|
5980
|
+
/**
|
|
5981
|
+
* 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.
|
|
5982
|
+
*/
|
|
5983
|
+
creator?: {
|
|
5984
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
5985
|
+
};
|
|
5961
5986
|
};
|
|
5962
5987
|
};
|
|
5963
5988
|
};
|
|
@@ -6026,6 +6051,12 @@ export declare type ItemCreateSchema = {
|
|
|
6026
6051
|
item_type: {
|
|
6027
6052
|
data: ItemTypeData;
|
|
6028
6053
|
};
|
|
6054
|
+
/**
|
|
6055
|
+
* 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.
|
|
6056
|
+
*/
|
|
6057
|
+
creator?: {
|
|
6058
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6059
|
+
};
|
|
6029
6060
|
};
|
|
6030
6061
|
};
|
|
6031
6062
|
};
|
|
@@ -6595,6 +6626,10 @@ export declare type UploadAttributes = {
|
|
|
6595
6626
|
* Blurhash for the asset
|
|
6596
6627
|
*/
|
|
6597
6628
|
blurhash: string | null;
|
|
6629
|
+
/**
|
|
6630
|
+
* Base64 encoded ThumbHash for the asset
|
|
6631
|
+
*/
|
|
6632
|
+
thumbhash: string | null;
|
|
6598
6633
|
/**
|
|
6599
6634
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6600
6635
|
*/
|
|
@@ -9476,6 +9511,10 @@ export declare type SiteMeta = {
|
|
|
9476
9511
|
* Whether the Improved API Timezone Management option is active or not
|
|
9477
9512
|
*/
|
|
9478
9513
|
improved_timezone_management: boolean;
|
|
9514
|
+
/**
|
|
9515
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9516
|
+
*/
|
|
9517
|
+
improved_hex_management: boolean;
|
|
9479
9518
|
};
|
|
9480
9519
|
/**
|
|
9481
9520
|
* JSON API data
|
|
@@ -9611,6 +9650,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9611
9650
|
* Whether the Improved API Timezone Management option is active or not
|
|
9612
9651
|
*/
|
|
9613
9652
|
improved_timezone_management?: boolean;
|
|
9653
|
+
/**
|
|
9654
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9655
|
+
*/
|
|
9656
|
+
improved_hex_management?: boolean;
|
|
9614
9657
|
};
|
|
9615
9658
|
relationships?: {
|
|
9616
9659
|
sso_default_role?: {
|
|
@@ -9647,6 +9690,13 @@ export declare type SiteActivateImprovedTimezoneManagementTargetSchema = {
|
|
|
9647
9690
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
9648
9691
|
data: Site;
|
|
9649
9692
|
};
|
|
9693
|
+
/**
|
|
9694
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9695
|
+
* via the `activate_improved_hex_management.targetSchema` link.
|
|
9696
|
+
*/
|
|
9697
|
+
export declare type SiteActivateImprovedHexManagementTargetSchema = {
|
|
9698
|
+
data: Site;
|
|
9699
|
+
};
|
|
9650
9700
|
/**
|
|
9651
9701
|
* 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.
|
|
9652
9702
|
*
|
|
@@ -420,7 +420,7 @@ export declare type ItemTypeCreateHrefSchema = {
|
|
|
420
420
|
/**
|
|
421
421
|
* Skip the creation of a menu item linked to the model
|
|
422
422
|
*/
|
|
423
|
-
skip_menu_item_creation?:
|
|
423
|
+
skip_menu_item_creation?: boolean;
|
|
424
424
|
[k: string]: unknown;
|
|
425
425
|
};
|
|
426
426
|
/**
|
|
@@ -453,7 +453,7 @@ export declare type ItemTypeDestroyHrefSchema = {
|
|
|
453
453
|
/**
|
|
454
454
|
* Skip the deletion of the menu items linked to the model
|
|
455
455
|
*/
|
|
456
|
-
skip_menu_items_deletion?:
|
|
456
|
+
skip_menu_items_deletion?: boolean;
|
|
457
457
|
[k: string]: unknown;
|
|
458
458
|
};
|
|
459
459
|
/**
|
|
@@ -623,7 +623,7 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
623
623
|
/**
|
|
624
624
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
625
625
|
*/
|
|
626
|
-
nested?:
|
|
626
|
+
nested?: boolean;
|
|
627
627
|
/**
|
|
628
628
|
* Attributes to filter records
|
|
629
629
|
*/
|
|
@@ -646,6 +646,10 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
646
646
|
fields?: {
|
|
647
647
|
[k: string]: unknown;
|
|
648
648
|
};
|
|
649
|
+
/**
|
|
650
|
+
* When set, only valid records are included in the results.
|
|
651
|
+
*/
|
|
652
|
+
only_valid?: string;
|
|
649
653
|
[k: string]: unknown;
|
|
650
654
|
};
|
|
651
655
|
/**
|
|
@@ -689,7 +693,7 @@ export declare type ItemReferencesHrefSchema = {
|
|
|
689
693
|
/**
|
|
690
694
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
691
695
|
*/
|
|
692
|
-
nested?:
|
|
696
|
+
nested?: boolean;
|
|
693
697
|
/**
|
|
694
698
|
* Retrieve only the selected type of version that is linked to the record; current, published or both
|
|
695
699
|
*/
|
|
@@ -704,7 +708,7 @@ export declare type ItemSelfHrefSchema = {
|
|
|
704
708
|
/**
|
|
705
709
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
706
710
|
*/
|
|
707
|
-
nested?:
|
|
711
|
+
nested?: boolean;
|
|
708
712
|
/**
|
|
709
713
|
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
|
|
710
714
|
*/
|
|
@@ -764,7 +768,7 @@ export declare type ItemPublishHrefSchema = {
|
|
|
764
768
|
/**
|
|
765
769
|
* If the record references other draft records, force a recursive publication
|
|
766
770
|
*/
|
|
767
|
-
recursive?:
|
|
771
|
+
recursive?: boolean;
|
|
768
772
|
[k: string]: unknown;
|
|
769
773
|
};
|
|
770
774
|
/**
|
|
@@ -775,7 +779,7 @@ export declare type ItemUnpublishHrefSchema = {
|
|
|
775
779
|
/**
|
|
776
780
|
* If the record is referenced by other published records, unpublish them recursively
|
|
777
781
|
*/
|
|
778
|
-
recursive?:
|
|
782
|
+
recursive?: boolean;
|
|
779
783
|
[k: string]: unknown;
|
|
780
784
|
};
|
|
781
785
|
/**
|
|
@@ -833,7 +837,7 @@ export declare type ItemVersionInstancesHrefSchema = {
|
|
|
833
837
|
/**
|
|
834
838
|
* For Modular Content fields and Structured Text fields. If set, returns full payload for nested blocks instead of IDs
|
|
835
839
|
*/
|
|
836
|
-
nested?:
|
|
840
|
+
nested?: boolean;
|
|
837
841
|
/**
|
|
838
842
|
* Attributes to manage results pagination
|
|
839
843
|
*/
|
|
@@ -966,7 +970,7 @@ export declare type UploadReferencesHrefSchema = {
|
|
|
966
970
|
/**
|
|
967
971
|
* For Modular Content fields and Structured Text fields, return full payload for nested blocks instead of IDs
|
|
968
972
|
*/
|
|
969
|
-
nested?:
|
|
973
|
+
nested?: boolean;
|
|
970
974
|
/**
|
|
971
975
|
* Retrieve only the selected type of version that is linked to the upload; current, published or both
|
|
972
976
|
*/
|
|
@@ -1082,7 +1086,7 @@ export declare type SearchResultInstancesHrefSchema = {
|
|
|
1082
1086
|
/**
|
|
1083
1087
|
* When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
|
|
1084
1088
|
*/
|
|
1085
|
-
fuzzy?:
|
|
1089
|
+
fuzzy?: boolean;
|
|
1086
1090
|
/**
|
|
1087
1091
|
* Text to search
|
|
1088
1092
|
*/
|
|
@@ -1119,13 +1123,13 @@ export declare type EnvironmentForkHrefSchema = {
|
|
|
1119
1123
|
/**
|
|
1120
1124
|
* Whether the call should immediately return a pending environment, or wait for the completion of the fork
|
|
1121
1125
|
*/
|
|
1122
|
-
immediate_return?:
|
|
1126
|
+
immediate_return?: boolean;
|
|
1123
1127
|
/**
|
|
1124
1128
|
* Performing a fast fork reduces processing time, but it also prevents writing to the source environment during the process
|
|
1125
1129
|
*/
|
|
1126
|
-
fast?:
|
|
1130
|
+
fast?: boolean;
|
|
1127
1131
|
/**
|
|
1128
|
-
* Force the fork, even if there are collaborators editing some records
|
|
1132
|
+
* Force the start of fast fork, even if there are collaborators editing some records
|
|
1129
1133
|
*/
|
|
1130
1134
|
force?: boolean;
|
|
1131
1135
|
[k: string]: unknown;
|
|
@@ -3443,6 +3447,10 @@ export declare type SitePlan = {
|
|
|
3443
3447
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3444
3448
|
*/
|
|
3445
3449
|
concurrent_realtime_connections: number;
|
|
3450
|
+
/**
|
|
3451
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3452
|
+
*/
|
|
3453
|
+
gql_complexity: number;
|
|
3446
3454
|
/**
|
|
3447
3455
|
* 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
|
|
3448
3456
|
*/
|
|
@@ -3667,6 +3675,10 @@ export declare type SitePlanAttributes = {
|
|
|
3667
3675
|
* Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
|
|
3668
3676
|
*/
|
|
3669
3677
|
concurrent_realtime_connections: number;
|
|
3678
|
+
/**
|
|
3679
|
+
* The maximum GraphQL query complexity a client can perform on our CDA.
|
|
3680
|
+
*/
|
|
3681
|
+
gql_complexity: number;
|
|
3670
3682
|
/**
|
|
3671
3683
|
* 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
|
|
3672
3684
|
*/
|
|
@@ -4389,7 +4401,7 @@ export declare type JobData = {
|
|
|
4389
4401
|
id: JobIdentity;
|
|
4390
4402
|
};
|
|
4391
4403
|
/**
|
|
4392
|
-
* DatoCMS offers a number of different fields that you can combine
|
|
4404
|
+
* 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.
|
|
4393
4405
|
*
|
|
4394
4406
|
* ### Different field types require different settings
|
|
4395
4407
|
*
|
|
@@ -4986,6 +4998,17 @@ export declare type JobData = {
|
|
|
4986
4998
|
* </details>
|
|
4987
4999
|
*
|
|
4988
5000
|
* <details>
|
|
5001
|
+
* <summary><code>sanitization</code></summary>
|
|
5002
|
+
*
|
|
5003
|
+
* Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
|
|
5004
|
+
*
|
|
5005
|
+
* | Parameter | Type | Required | Description |
|
|
5006
|
+
* | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
|
|
5007
|
+
* | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
|
|
5008
|
+
*
|
|
5009
|
+
* </details>
|
|
5010
|
+
*
|
|
5011
|
+
* <details>
|
|
4989
5012
|
* <summary><code>structured_text_blocks</code></summary>
|
|
4990
5013
|
*
|
|
4991
5014
|
* Only accept references to block records of the specified block models.
|
|
@@ -6352,6 +6375,7 @@ export declare type ItemValidateExistingSchema = {
|
|
|
6352
6375
|
export declare type ItemValidateNewSchema = {
|
|
6353
6376
|
type?: ItemType1;
|
|
6354
6377
|
item_type: ItemTypeData;
|
|
6378
|
+
creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6355
6379
|
[k: string]: unknown;
|
|
6356
6380
|
};
|
|
6357
6381
|
/**
|
|
@@ -6361,6 +6385,7 @@ export declare type ItemValidateNewSchema = {
|
|
|
6361
6385
|
export declare type ItemCreateSchema = {
|
|
6362
6386
|
type?: ItemType1;
|
|
6363
6387
|
item_type: ItemTypeData;
|
|
6388
|
+
creator?: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6364
6389
|
/**
|
|
6365
6390
|
* Meta information regarding the record
|
|
6366
6391
|
*/
|
|
@@ -6666,6 +6691,10 @@ export declare type Upload = {
|
|
|
6666
6691
|
* Blurhash for the asset
|
|
6667
6692
|
*/
|
|
6668
6693
|
blurhash: string | null;
|
|
6694
|
+
/**
|
|
6695
|
+
* Base64 encoded ThumbHash for the asset
|
|
6696
|
+
*/
|
|
6697
|
+
thumbhash: string | null;
|
|
6669
6698
|
/**
|
|
6670
6699
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6671
6700
|
*/
|
|
@@ -6846,6 +6875,10 @@ export declare type UploadAttributes = {
|
|
|
6846
6875
|
* Blurhash for the asset
|
|
6847
6876
|
*/
|
|
6848
6877
|
blurhash: string | null;
|
|
6878
|
+
/**
|
|
6879
|
+
* Base64 encoded ThumbHash for the asset
|
|
6880
|
+
*/
|
|
6881
|
+
thumbhash: string | null;
|
|
6849
6882
|
/**
|
|
6850
6883
|
* Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
|
|
6851
6884
|
*/
|
|
@@ -9252,6 +9285,7 @@ export declare type Site = {
|
|
|
9252
9285
|
export declare type SiteSelfTargetSchema = Site;
|
|
9253
9286
|
export declare type SiteUpdateJobSchema = Site;
|
|
9254
9287
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9288
|
+
export declare type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9255
9289
|
/**
|
|
9256
9290
|
* Meta attributes
|
|
9257
9291
|
*
|
|
@@ -9263,6 +9297,10 @@ export declare type SiteMeta = {
|
|
|
9263
9297
|
* Whether the Improved API Timezone Management option is active or not
|
|
9264
9298
|
*/
|
|
9265
9299
|
improved_timezone_management: boolean;
|
|
9300
|
+
/**
|
|
9301
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9302
|
+
*/
|
|
9303
|
+
improved_hex_management: boolean;
|
|
9266
9304
|
};
|
|
9267
9305
|
/**
|
|
9268
9306
|
* JSON API data
|
|
@@ -9531,6 +9569,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9531
9569
|
* Whether the Improved API Timezone Management option is active or not
|
|
9532
9570
|
*/
|
|
9533
9571
|
improved_timezone_management?: boolean;
|
|
9572
|
+
/**
|
|
9573
|
+
* Whether the Improved API Hex Management option is active or not
|
|
9574
|
+
*/
|
|
9575
|
+
improved_hex_management?: boolean;
|
|
9534
9576
|
};
|
|
9535
9577
|
};
|
|
9536
9578
|
/**
|
|
@@ -57,4 +57,22 @@ export default class Site extends BaseResource {
|
|
|
57
57
|
* @throws {TimeoutError}
|
|
58
58
|
*/
|
|
59
59
|
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* Activate improved hex management
|
|
62
|
+
*
|
|
63
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
64
|
+
*
|
|
65
|
+
* @throws {ApiError}
|
|
66
|
+
* @throws {TimeoutError}
|
|
67
|
+
*/
|
|
68
|
+
activateImprovedHexManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
69
|
+
/**
|
|
70
|
+
* Activate improved hex management
|
|
71
|
+
*
|
|
72
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
|
|
73
|
+
*
|
|
74
|
+
* @throws {ApiError}
|
|
75
|
+
* @throws {TimeoutError}
|
|
76
|
+
*/
|
|
77
|
+
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>;
|
|
60
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "1.2
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@datocms/rest-client-utils": "^1.
|
|
40
|
+
"@datocms/rest-client-utils": "^1.3.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^1.2
|
|
43
|
+
"@datocms/dashboard-client": "^1.3.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "730ffda4ff97fcec93c0a0842b2eee182a31bf08"
|
|
46
46
|
}
|
package/resources.json
CHANGED
|
@@ -1364,7 +1364,8 @@
|
|
|
1364
1364
|
"type": "item",
|
|
1365
1365
|
"attributes": "*",
|
|
1366
1366
|
"relationships": [
|
|
1367
|
-
"item_type"
|
|
1367
|
+
"item_type",
|
|
1368
|
+
"creator"
|
|
1368
1369
|
]
|
|
1369
1370
|
},
|
|
1370
1371
|
"queryParamsRequired": false,
|
|
@@ -1384,7 +1385,8 @@
|
|
|
1384
1385
|
"type": "item",
|
|
1385
1386
|
"attributes": "*",
|
|
1386
1387
|
"relationships": [
|
|
1387
|
-
"item_type"
|
|
1388
|
+
"item_type",
|
|
1389
|
+
"creator"
|
|
1388
1390
|
]
|
|
1389
1391
|
},
|
|
1390
1392
|
"queryParamsRequired": false,
|
|
@@ -3297,6 +3299,18 @@
|
|
|
3297
3299
|
"responseType": "SiteActivateImprovedTimezoneManagementJobSchema",
|
|
3298
3300
|
"name": "activateImprovedTimezoneManagement",
|
|
3299
3301
|
"rawName": "rawActivateImprovedTimezoneManagement"
|
|
3302
|
+
},
|
|
3303
|
+
{
|
|
3304
|
+
"returnsCollection": false,
|
|
3305
|
+
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management",
|
|
3306
|
+
"rel": "activate_improved_hex_management",
|
|
3307
|
+
"urlTemplate": "/site/activate-improved-hex-management",
|
|
3308
|
+
"method": "PUT",
|
|
3309
|
+
"comment": "Activate improved hex management",
|
|
3310
|
+
"queryParamsRequired": false,
|
|
3311
|
+
"responseType": "SiteActivateImprovedHexManagementTargetSchema",
|
|
3312
|
+
"name": "activateImprovedHexManagement",
|
|
3313
|
+
"rawName": "rawActivateImprovedHexManagement"
|
|
3300
3314
|
}
|
|
3301
3315
|
],
|
|
3302
3316
|
"namespace": "site",
|
package/src/generated/Client.ts
CHANGED
|
@@ -133,7 +133,7 @@ export class Client {
|
|
|
133
133
|
...this.config,
|
|
134
134
|
...options,
|
|
135
135
|
logFn: this.config.logFn || console.log,
|
|
136
|
-
userAgent: '@datocms/cma-client v1.2
|
|
136
|
+
userAgent: '@datocms/cma-client v1.3.2',
|
|
137
137
|
baseUrl: this.baseUrl,
|
|
138
138
|
preCallStack: new Error().stack,
|
|
139
139
|
extraHeaders: {
|