@datocms/cma-client 1.3.2 → 1.3.4
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/Site.js +39 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/resources/Role.js +2 -2
- package/dist/cjs/resources/Role.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +22 -7
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +12 -3
- package/dist/esm/generated/resources/Site.d.ts +30 -0
- package/dist/esm/generated/resources/Site.js +39 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/resources/Role.js +2 -2
- package/dist/esm/resources/Role.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +22 -7
- package/dist/types/generated/SimpleSchemaTypes.d.ts +12 -3
- package/dist/types/generated/resources/Site.d.ts +30 -0
- package/package.json +4 -4
- package/resources.json +15 -0
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +23 -7
- package/src/generated/SimpleSchemaTypes.ts +12 -3
- package/src/generated/resources/Site.ts +45 -0
- package/src/resources/Role.ts +2 -2
|
@@ -127,7 +127,7 @@ var Client = /** @class */ (function () {
|
|
|
127
127
|
});
|
|
128
128
|
Client.prototype.request = function (options) {
|
|
129
129
|
var _this = this;
|
|
130
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.
|
|
130
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
131
131
|
? { 'X-Environment': this.config.environment }
|
|
132
132
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
133
133
|
return _this.jobResultsFetcher
|
|
@@ -125,6 +125,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
125
125
|
*
|
|
126
126
|
* @throws {ApiError}
|
|
127
127
|
* @throws {TimeoutError}
|
|
128
|
+
*
|
|
129
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
128
130
|
*/
|
|
129
131
|
Site.prototype.activateImprovedTimezoneManagement = function () {
|
|
130
132
|
return this.rawActivateImprovedTimezoneManagement().then(function (body) {
|
|
@@ -138,6 +140,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
138
140
|
*
|
|
139
141
|
* @throws {ApiError}
|
|
140
142
|
* @throws {TimeoutError}
|
|
143
|
+
*
|
|
144
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
141
145
|
*/
|
|
142
146
|
Site.prototype.rawActivateImprovedTimezoneManagement = function () {
|
|
143
147
|
return this.client.request({
|
|
@@ -152,6 +156,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
152
156
|
*
|
|
153
157
|
* @throws {ApiError}
|
|
154
158
|
* @throws {TimeoutError}
|
|
159
|
+
*
|
|
160
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
155
161
|
*/
|
|
156
162
|
Site.prototype.activateImprovedHexManagement = function () {
|
|
157
163
|
return this.rawActivateImprovedHexManagement().then(function (body) {
|
|
@@ -165,6 +171,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
165
171
|
*
|
|
166
172
|
* @throws {ApiError}
|
|
167
173
|
* @throws {TimeoutError}
|
|
174
|
+
*
|
|
175
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
168
176
|
*/
|
|
169
177
|
Site.prototype.rawActivateImprovedHexManagement = function () {
|
|
170
178
|
return this.client.request({
|
|
@@ -172,6 +180,37 @@ var Site = /** @class */ (function (_super) {
|
|
|
172
180
|
url: '/site/activate-improved-hex-management',
|
|
173
181
|
});
|
|
174
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* Activate improved GraphQL multi-locale fields option
|
|
185
|
+
*
|
|
186
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
187
|
+
*
|
|
188
|
+
* @throws {ApiError}
|
|
189
|
+
* @throws {TimeoutError}
|
|
190
|
+
*
|
|
191
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
192
|
+
*/
|
|
193
|
+
Site.prototype.activateImprovedGqlMultilocaleFields = function () {
|
|
194
|
+
return this.rawActivateImprovedGqlMultilocaleFields().then(function (body) {
|
|
195
|
+
return Utils.deserializeResponseBody(body);
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Activate improved GraphQL multi-locale fields option
|
|
200
|
+
*
|
|
201
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
202
|
+
*
|
|
203
|
+
* @throws {ApiError}
|
|
204
|
+
* @throws {TimeoutError}
|
|
205
|
+
*
|
|
206
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
207
|
+
*/
|
|
208
|
+
Site.prototype.rawActivateImprovedGqlMultilocaleFields = function () {
|
|
209
|
+
return this.client.request({
|
|
210
|
+
method: 'PUT',
|
|
211
|
+
url: '/site/activate-improved-gql-multilocale-fields',
|
|
212
|
+
});
|
|
213
|
+
};
|
|
175
214
|
Site.TYPE = 'site';
|
|
176
215
|
return Site;
|
|
177
216
|
}(BaseResource_1.default));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AAGpD,oEAA8C;AAE9C;IAAkC,wBAAY;IAA9C;;
|
|
1
|
+
{"version":3,"file":"Site.js","sourceRoot":"","sources":["../../../../src/generated/resources/Site.ts"],"names":[],"mappings":";;;;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(var key in
|
|
85
|
+
for (var key in obj1) {
|
|
86
86
|
if (!sameValue(obj1[key], obj2[key]))
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
|
-
for (var key in
|
|
89
|
+
for (var key in obj2) {
|
|
90
90
|
if (!sameValue(obj1[key], obj2[key]))
|
|
91
91
|
return false;
|
|
92
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/resources/Role.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAmD;AAqBnD,SAAS,SAAS,CAAC,CAAU,EAAE,CAAU;IACvC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE;QACtE,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC;AAED,SAAS,QAAQ,CACf,IAA6B,EAC7B,IAA6B;IAE7B,KAAK,IAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/resources/Role.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAmD;AAqBnD,SAAS,SAAS,CAAC,CAAU,EAAE,CAAU;IACvC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE;QACtE,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC;AAED,SAAS,QAAQ,CACf,IAA6B,EAC7B,IAA6B;IAE7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IAAI,CAAC,2BAA2B,EAChC,OAAO,CAAC,2BAA2B,EACnC,oBAAoB,EACpB,6BAA6B,CAC9B;gCACD,2BAA2B,EAAE,YAAY,CACvC,IAAI,CAAC,2BAA2B,EAChC,OAAO,CAAC,2BAA2B,EACnC,oBAAoB,EACpB,6BAA6B,CAC9B;6BACF;4BACH,CAAC,CAAC,EAAE,CAAC,CACR,CAAC;wBAEF,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAC;;;;KAClC;IACH,mBAAC;AAAD,CAAC,AA/DD,CAA0C,cAAQ,GA+DjD"}
|
|
@@ -101,7 +101,7 @@ var Client = /** @class */ (function () {
|
|
|
101
101
|
});
|
|
102
102
|
Client.prototype.request = function (options) {
|
|
103
103
|
var _this = this;
|
|
104
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.
|
|
104
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.3.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
105
105
|
? { 'X-Environment': this.config.environment }
|
|
106
106
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
107
107
|
return _this.jobResultsFetcher
|
|
@@ -621,7 +621,7 @@ export declare type ItemSelfHrefSchema = {
|
|
|
621
621
|
*/
|
|
622
622
|
export declare type ItemBatchDestroyHrefSchema = {
|
|
623
623
|
/**
|
|
624
|
-
* IDs of records to delete, comma separated
|
|
624
|
+
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
625
625
|
*/
|
|
626
626
|
'filter[ids]': string;
|
|
627
627
|
};
|
|
@@ -631,7 +631,7 @@ export declare type ItemBatchDestroyHrefSchema = {
|
|
|
631
631
|
*/
|
|
632
632
|
export declare type ItemBatchPublishHrefSchema = {
|
|
633
633
|
/**
|
|
634
|
-
* IDs of records to publish, comma separated
|
|
634
|
+
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
635
635
|
*/
|
|
636
636
|
'filter[ids]': string;
|
|
637
637
|
};
|
|
@@ -641,7 +641,7 @@ export declare type ItemBatchPublishHrefSchema = {
|
|
|
641
641
|
*/
|
|
642
642
|
export declare type ItemBatchUnpublishHrefSchema = {
|
|
643
643
|
/**
|
|
644
|
-
* IDs of records to unpublish, comma separated
|
|
644
|
+
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
645
645
|
*/
|
|
646
646
|
'filter[ids]': string;
|
|
647
647
|
};
|
|
@@ -6284,7 +6284,7 @@ export declare type ItemBulkPublishSchema = {
|
|
|
6284
6284
|
type: 'item_bulk_publish_operation';
|
|
6285
6285
|
relationships: {
|
|
6286
6286
|
/**
|
|
6287
|
-
* Records to publish
|
|
6287
|
+
* Records to publish (a maximum of 200 records are allowed per request)
|
|
6288
6288
|
*/
|
|
6289
6289
|
items: {
|
|
6290
6290
|
data: ItemData[];
|
|
@@ -6323,7 +6323,7 @@ export declare type ItemBulkUnpublishSchema = {
|
|
|
6323
6323
|
type: 'item_bulk_unpublish_operation';
|
|
6324
6324
|
relationships: {
|
|
6325
6325
|
/**
|
|
6326
|
-
* Records to unpublish
|
|
6326
|
+
* Records to unpublish (a maximum of 200 records are allowed per request)
|
|
6327
6327
|
*/
|
|
6328
6328
|
items: {
|
|
6329
6329
|
data: ItemData[];
|
|
@@ -6362,7 +6362,7 @@ export declare type ItemBulkDestroySchema = {
|
|
|
6362
6362
|
type: 'item_bulk_destroy_operation';
|
|
6363
6363
|
relationships: {
|
|
6364
6364
|
/**
|
|
6365
|
-
* Records to delete
|
|
6365
|
+
* Records to delete (a maximum of 200 records are allowed per request)
|
|
6366
6366
|
*/
|
|
6367
6367
|
items: {
|
|
6368
6368
|
data: ItemData[];
|
|
@@ -6407,7 +6407,7 @@ export declare type ItemBulkMoveToStageSchema = {
|
|
|
6407
6407
|
};
|
|
6408
6408
|
relationships: {
|
|
6409
6409
|
/**
|
|
6410
|
-
* Records to move
|
|
6410
|
+
* Records to move (a maximum of 200 records are allowed per request)
|
|
6411
6411
|
*/
|
|
6412
6412
|
items: {
|
|
6413
6413
|
data: ItemData[];
|
|
@@ -9515,6 +9515,10 @@ export declare type SiteMeta = {
|
|
|
9515
9515
|
* Whether the Improved API Hex Management option is active or not
|
|
9516
9516
|
*/
|
|
9517
9517
|
improved_hex_management: boolean;
|
|
9518
|
+
/**
|
|
9519
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9520
|
+
*/
|
|
9521
|
+
improved_gql_multilocale_fields: boolean;
|
|
9518
9522
|
};
|
|
9519
9523
|
/**
|
|
9520
9524
|
* JSON API data
|
|
@@ -9654,6 +9658,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9654
9658
|
* Whether the Improved API Hex Management option is active or not
|
|
9655
9659
|
*/
|
|
9656
9660
|
improved_hex_management?: boolean;
|
|
9661
|
+
/**
|
|
9662
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9663
|
+
*/
|
|
9664
|
+
improved_gql_multilocale_fields?: boolean;
|
|
9657
9665
|
};
|
|
9658
9666
|
relationships?: {
|
|
9659
9667
|
sso_default_role?: {
|
|
@@ -9697,6 +9705,13 @@ export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
|
9697
9705
|
export declare type SiteActivateImprovedHexManagementTargetSchema = {
|
|
9698
9706
|
data: Site;
|
|
9699
9707
|
};
|
|
9708
|
+
/**
|
|
9709
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9710
|
+
* via the `activate_improved_gql_multilocale_fields.targetSchema` link.
|
|
9711
|
+
*/
|
|
9712
|
+
export declare type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = {
|
|
9713
|
+
data: Site;
|
|
9714
|
+
};
|
|
9700
9715
|
/**
|
|
9701
9716
|
* 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.
|
|
9702
9717
|
*
|
|
@@ -726,7 +726,7 @@ export declare type ItemBatchDestroyJobSchema = unknown[];
|
|
|
726
726
|
*/
|
|
727
727
|
export declare type ItemBatchDestroyHrefSchema = {
|
|
728
728
|
/**
|
|
729
|
-
* IDs of records to delete, comma separated
|
|
729
|
+
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
730
730
|
*/
|
|
731
731
|
'filter[ids]': string;
|
|
732
732
|
};
|
|
@@ -741,7 +741,7 @@ export declare type ItemBatchPublishJobSchema = unknown[];
|
|
|
741
741
|
*/
|
|
742
742
|
export declare type ItemBatchPublishHrefSchema = {
|
|
743
743
|
/**
|
|
744
|
-
* IDs of records to publish, comma separated
|
|
744
|
+
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
745
745
|
*/
|
|
746
746
|
'filter[ids]': string;
|
|
747
747
|
};
|
|
@@ -756,7 +756,7 @@ export declare type ItemBatchUnpublishJobSchema = unknown[];
|
|
|
756
756
|
*/
|
|
757
757
|
export declare type ItemBatchUnpublishHrefSchema = {
|
|
758
758
|
/**
|
|
759
|
-
* IDs of records to unpublish, comma separated
|
|
759
|
+
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
760
760
|
*/
|
|
761
761
|
'filter[ids]': string;
|
|
762
762
|
};
|
|
@@ -9286,6 +9286,7 @@ export declare type SiteSelfTargetSchema = Site;
|
|
|
9286
9286
|
export declare type SiteUpdateJobSchema = Site;
|
|
9287
9287
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9288
9288
|
export declare type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9289
|
+
export declare type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
|
|
9289
9290
|
/**
|
|
9290
9291
|
* Meta attributes
|
|
9291
9292
|
*
|
|
@@ -9301,6 +9302,10 @@ export declare type SiteMeta = {
|
|
|
9301
9302
|
* Whether the Improved API Hex Management option is active or not
|
|
9302
9303
|
*/
|
|
9303
9304
|
improved_hex_management: boolean;
|
|
9305
|
+
/**
|
|
9306
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9307
|
+
*/
|
|
9308
|
+
improved_gql_multilocale_fields: boolean;
|
|
9304
9309
|
};
|
|
9305
9310
|
/**
|
|
9306
9311
|
* JSON API data
|
|
@@ -9573,6 +9578,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9573
9578
|
* Whether the Improved API Hex Management option is active or not
|
|
9574
9579
|
*/
|
|
9575
9580
|
improved_hex_management?: boolean;
|
|
9581
|
+
/**
|
|
9582
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9583
|
+
*/
|
|
9584
|
+
improved_gql_multilocale_fields?: boolean;
|
|
9576
9585
|
};
|
|
9577
9586
|
};
|
|
9578
9587
|
/**
|
|
@@ -46,6 +46,8 @@ export default class Site extends BaseResource {
|
|
|
46
46
|
*
|
|
47
47
|
* @throws {ApiError}
|
|
48
48
|
* @throws {TimeoutError}
|
|
49
|
+
*
|
|
50
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
49
51
|
*/
|
|
50
52
|
activateImprovedTimezoneManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
51
53
|
/**
|
|
@@ -55,6 +57,8 @@ export default class Site extends BaseResource {
|
|
|
55
57
|
*
|
|
56
58
|
* @throws {ApiError}
|
|
57
59
|
* @throws {TimeoutError}
|
|
60
|
+
*
|
|
61
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
58
62
|
*/
|
|
59
63
|
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
60
64
|
/**
|
|
@@ -64,6 +68,8 @@ export default class Site extends BaseResource {
|
|
|
64
68
|
*
|
|
65
69
|
* @throws {ApiError}
|
|
66
70
|
* @throws {TimeoutError}
|
|
71
|
+
*
|
|
72
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
67
73
|
*/
|
|
68
74
|
activateImprovedHexManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
69
75
|
/**
|
|
@@ -73,6 +79,30 @@ export default class Site extends BaseResource {
|
|
|
73
79
|
*
|
|
74
80
|
* @throws {ApiError}
|
|
75
81
|
* @throws {TimeoutError}
|
|
82
|
+
*
|
|
83
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
76
84
|
*/
|
|
77
85
|
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* Activate improved GraphQL multi-locale fields option
|
|
88
|
+
*
|
|
89
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
90
|
+
*
|
|
91
|
+
* @throws {ApiError}
|
|
92
|
+
* @throws {TimeoutError}
|
|
93
|
+
*
|
|
94
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
95
|
+
*/
|
|
96
|
+
activateImprovedGqlMultilocaleFields(): Promise<SimpleSchemaTypes.Site>;
|
|
97
|
+
/**
|
|
98
|
+
* Activate improved GraphQL multi-locale fields option
|
|
99
|
+
*
|
|
100
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
101
|
+
*
|
|
102
|
+
* @throws {ApiError}
|
|
103
|
+
* @throws {TimeoutError}
|
|
104
|
+
*
|
|
105
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
106
|
+
*/
|
|
107
|
+
rawActivateImprovedGqlMultilocaleFields(): Promise<SchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema>;
|
|
78
108
|
}
|
|
@@ -97,6 +97,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
97
97
|
*
|
|
98
98
|
* @throws {ApiError}
|
|
99
99
|
* @throws {TimeoutError}
|
|
100
|
+
*
|
|
101
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
100
102
|
*/
|
|
101
103
|
Site.prototype.activateImprovedTimezoneManagement = function () {
|
|
102
104
|
return this.rawActivateImprovedTimezoneManagement().then(function (body) {
|
|
@@ -110,6 +112,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
110
112
|
*
|
|
111
113
|
* @throws {ApiError}
|
|
112
114
|
* @throws {TimeoutError}
|
|
115
|
+
*
|
|
116
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
113
117
|
*/
|
|
114
118
|
Site.prototype.rawActivateImprovedTimezoneManagement = function () {
|
|
115
119
|
return this.client.request({
|
|
@@ -124,6 +128,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
124
128
|
*
|
|
125
129
|
* @throws {ApiError}
|
|
126
130
|
* @throws {TimeoutError}
|
|
131
|
+
*
|
|
132
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
127
133
|
*/
|
|
128
134
|
Site.prototype.activateImprovedHexManagement = function () {
|
|
129
135
|
return this.rawActivateImprovedHexManagement().then(function (body) {
|
|
@@ -137,6 +143,8 @@ var Site = /** @class */ (function (_super) {
|
|
|
137
143
|
*
|
|
138
144
|
* @throws {ApiError}
|
|
139
145
|
* @throws {TimeoutError}
|
|
146
|
+
*
|
|
147
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
140
148
|
*/
|
|
141
149
|
Site.prototype.rawActivateImprovedHexManagement = function () {
|
|
142
150
|
return this.client.request({
|
|
@@ -144,6 +152,37 @@ var Site = /** @class */ (function (_super) {
|
|
|
144
152
|
url: '/site/activate-improved-hex-management',
|
|
145
153
|
});
|
|
146
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* Activate improved GraphQL multi-locale fields option
|
|
157
|
+
*
|
|
158
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
159
|
+
*
|
|
160
|
+
* @throws {ApiError}
|
|
161
|
+
* @throws {TimeoutError}
|
|
162
|
+
*
|
|
163
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
164
|
+
*/
|
|
165
|
+
Site.prototype.activateImprovedGqlMultilocaleFields = function () {
|
|
166
|
+
return this.rawActivateImprovedGqlMultilocaleFields().then(function (body) {
|
|
167
|
+
return Utils.deserializeResponseBody(body);
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Activate improved GraphQL multi-locale fields option
|
|
172
|
+
*
|
|
173
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
174
|
+
*
|
|
175
|
+
* @throws {ApiError}
|
|
176
|
+
* @throws {TimeoutError}
|
|
177
|
+
*
|
|
178
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
179
|
+
*/
|
|
180
|
+
Site.prototype.rawActivateImprovedGqlMultilocaleFields = function () {
|
|
181
|
+
return this.client.request({
|
|
182
|
+
method: 'PUT',
|
|
183
|
+
url: '/site/activate-improved-gql-multilocale-fields',
|
|
184
|
+
});
|
|
185
|
+
};
|
|
147
186
|
Site.TYPE = 'site';
|
|
148
187
|
return Site;
|
|
149
188
|
}(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":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAkC,wBAAY;IAA9C;;IAqMA,CAAC;IAlMC;;;;;;;OAOG;IACH,mBAAI,GAAJ,UAAK,WAAkD;QACrD,OAAO,IAAI,CAAC,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AC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;SACnD,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;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;;;;;;;;;OASG;IACH,+CAAgC,GAAhC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wCAAwC;SAC9C,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,mDAAoC,GAApC;QACE,OAAO,IAAI,CAAC,uCAAuC,EAAE,CAAC,IAAI,CAAC,UAAC,IAAI;YAC9D,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,sDAAuC,GAAvC;QACE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gDAAgD;SACtD,CACF,CAAC;IACJ,CAAC;IAnMe,SAAI,GAAW,MAAM,CAAC;IAoMxC,WAAC;CAAA,AArMD,CAAkC,YAAY,GAqM7C;eArMoB,IAAI"}
|
|
@@ -77,11 +77,11 @@ function sameValue(a, b) {
|
|
|
77
77
|
return a === b;
|
|
78
78
|
}
|
|
79
79
|
function sameRule(obj1, obj2) {
|
|
80
|
-
for (var key in
|
|
80
|
+
for (var key in obj1) {
|
|
81
81
|
if (!sameValue(obj1[key], obj2[key]))
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
|
-
for (var key in
|
|
84
|
+
for (var key in obj2) {
|
|
85
85
|
if (!sameValue(obj1[key], obj2[key]))
|
|
86
86
|
return false;
|
|
87
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/resources/Role.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AAqBnD,SAAS,SAAS,CAAC,CAAU,EAAE,CAAU;IACvC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE;QACtE,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC;AAED,SAAS,QAAQ,CACf,IAA6B,EAC7B,IAA6B;IAE7B,KAAK,IAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/resources/Role.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AAqBnD,SAAS,SAAS,CAAC,CAAU,EAAE,CAAU;IACvC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE;QACtE,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC;AAED,SAAS,QAAQ,CACf,IAA6B,EAC7B,IAA6B;IAE7B,KAAK,IAAM,GAAG,IAAI,IAAI,EAAE;QACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;KACpD;IA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,EACnC,oBAAoB,EACpB,6BAA6B,CAC9B;6BACF;4BACH,CAAC,CAAC,EAAE,CAAC,CACR,CAAC;wBAEF,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAC;;;;KAClC;IACH,mBAAC;AAAD,CAAC,AA/DD,CAA0C,QAAQ,GA+DjD"}
|
|
@@ -621,7 +621,7 @@ export declare type ItemSelfHrefSchema = {
|
|
|
621
621
|
*/
|
|
622
622
|
export declare type ItemBatchDestroyHrefSchema = {
|
|
623
623
|
/**
|
|
624
|
-
* IDs of records to delete, comma separated
|
|
624
|
+
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
625
625
|
*/
|
|
626
626
|
'filter[ids]': string;
|
|
627
627
|
};
|
|
@@ -631,7 +631,7 @@ export declare type ItemBatchDestroyHrefSchema = {
|
|
|
631
631
|
*/
|
|
632
632
|
export declare type ItemBatchPublishHrefSchema = {
|
|
633
633
|
/**
|
|
634
|
-
* IDs of records to publish, comma separated
|
|
634
|
+
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
635
635
|
*/
|
|
636
636
|
'filter[ids]': string;
|
|
637
637
|
};
|
|
@@ -641,7 +641,7 @@ export declare type ItemBatchPublishHrefSchema = {
|
|
|
641
641
|
*/
|
|
642
642
|
export declare type ItemBatchUnpublishHrefSchema = {
|
|
643
643
|
/**
|
|
644
|
-
* IDs of records to unpublish, comma separated
|
|
644
|
+
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
645
645
|
*/
|
|
646
646
|
'filter[ids]': string;
|
|
647
647
|
};
|
|
@@ -6284,7 +6284,7 @@ export declare type ItemBulkPublishSchema = {
|
|
|
6284
6284
|
type: 'item_bulk_publish_operation';
|
|
6285
6285
|
relationships: {
|
|
6286
6286
|
/**
|
|
6287
|
-
* Records to publish
|
|
6287
|
+
* Records to publish (a maximum of 200 records are allowed per request)
|
|
6288
6288
|
*/
|
|
6289
6289
|
items: {
|
|
6290
6290
|
data: ItemData[];
|
|
@@ -6323,7 +6323,7 @@ export declare type ItemBulkUnpublishSchema = {
|
|
|
6323
6323
|
type: 'item_bulk_unpublish_operation';
|
|
6324
6324
|
relationships: {
|
|
6325
6325
|
/**
|
|
6326
|
-
* Records to unpublish
|
|
6326
|
+
* Records to unpublish (a maximum of 200 records are allowed per request)
|
|
6327
6327
|
*/
|
|
6328
6328
|
items: {
|
|
6329
6329
|
data: ItemData[];
|
|
@@ -6362,7 +6362,7 @@ export declare type ItemBulkDestroySchema = {
|
|
|
6362
6362
|
type: 'item_bulk_destroy_operation';
|
|
6363
6363
|
relationships: {
|
|
6364
6364
|
/**
|
|
6365
|
-
* Records to delete
|
|
6365
|
+
* Records to delete (a maximum of 200 records are allowed per request)
|
|
6366
6366
|
*/
|
|
6367
6367
|
items: {
|
|
6368
6368
|
data: ItemData[];
|
|
@@ -6407,7 +6407,7 @@ export declare type ItemBulkMoveToStageSchema = {
|
|
|
6407
6407
|
};
|
|
6408
6408
|
relationships: {
|
|
6409
6409
|
/**
|
|
6410
|
-
* Records to move
|
|
6410
|
+
* Records to move (a maximum of 200 records are allowed per request)
|
|
6411
6411
|
*/
|
|
6412
6412
|
items: {
|
|
6413
6413
|
data: ItemData[];
|
|
@@ -9515,6 +9515,10 @@ export declare type SiteMeta = {
|
|
|
9515
9515
|
* Whether the Improved API Hex Management option is active or not
|
|
9516
9516
|
*/
|
|
9517
9517
|
improved_hex_management: boolean;
|
|
9518
|
+
/**
|
|
9519
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9520
|
+
*/
|
|
9521
|
+
improved_gql_multilocale_fields: boolean;
|
|
9518
9522
|
};
|
|
9519
9523
|
/**
|
|
9520
9524
|
* JSON API data
|
|
@@ -9654,6 +9658,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9654
9658
|
* Whether the Improved API Hex Management option is active or not
|
|
9655
9659
|
*/
|
|
9656
9660
|
improved_hex_management?: boolean;
|
|
9661
|
+
/**
|
|
9662
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9663
|
+
*/
|
|
9664
|
+
improved_gql_multilocale_fields?: boolean;
|
|
9657
9665
|
};
|
|
9658
9666
|
relationships?: {
|
|
9659
9667
|
sso_default_role?: {
|
|
@@ -9697,6 +9705,13 @@ export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
|
9697
9705
|
export declare type SiteActivateImprovedHexManagementTargetSchema = {
|
|
9698
9706
|
data: Site;
|
|
9699
9707
|
};
|
|
9708
|
+
/**
|
|
9709
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9710
|
+
* via the `activate_improved_gql_multilocale_fields.targetSchema` link.
|
|
9711
|
+
*/
|
|
9712
|
+
export declare type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = {
|
|
9713
|
+
data: Site;
|
|
9714
|
+
};
|
|
9700
9715
|
/**
|
|
9701
9716
|
* 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.
|
|
9702
9717
|
*
|
|
@@ -726,7 +726,7 @@ export declare type ItemBatchDestroyJobSchema = unknown[];
|
|
|
726
726
|
*/
|
|
727
727
|
export declare type ItemBatchDestroyHrefSchema = {
|
|
728
728
|
/**
|
|
729
|
-
* IDs of records to delete, comma separated
|
|
729
|
+
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
730
730
|
*/
|
|
731
731
|
'filter[ids]': string;
|
|
732
732
|
};
|
|
@@ -741,7 +741,7 @@ export declare type ItemBatchPublishJobSchema = unknown[];
|
|
|
741
741
|
*/
|
|
742
742
|
export declare type ItemBatchPublishHrefSchema = {
|
|
743
743
|
/**
|
|
744
|
-
* IDs of records to publish, comma separated
|
|
744
|
+
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
745
745
|
*/
|
|
746
746
|
'filter[ids]': string;
|
|
747
747
|
};
|
|
@@ -756,7 +756,7 @@ export declare type ItemBatchUnpublishJobSchema = unknown[];
|
|
|
756
756
|
*/
|
|
757
757
|
export declare type ItemBatchUnpublishHrefSchema = {
|
|
758
758
|
/**
|
|
759
|
-
* IDs of records to unpublish, comma separated
|
|
759
|
+
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
760
760
|
*/
|
|
761
761
|
'filter[ids]': string;
|
|
762
762
|
};
|
|
@@ -9286,6 +9286,7 @@ export declare type SiteSelfTargetSchema = Site;
|
|
|
9286
9286
|
export declare type SiteUpdateJobSchema = Site;
|
|
9287
9287
|
export declare type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9288
9288
|
export declare type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9289
|
+
export declare type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
|
|
9289
9290
|
/**
|
|
9290
9291
|
* Meta attributes
|
|
9291
9292
|
*
|
|
@@ -9301,6 +9302,10 @@ export declare type SiteMeta = {
|
|
|
9301
9302
|
* Whether the Improved API Hex Management option is active or not
|
|
9302
9303
|
*/
|
|
9303
9304
|
improved_hex_management: boolean;
|
|
9305
|
+
/**
|
|
9306
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9307
|
+
*/
|
|
9308
|
+
improved_gql_multilocale_fields: boolean;
|
|
9304
9309
|
};
|
|
9305
9310
|
/**
|
|
9306
9311
|
* JSON API data
|
|
@@ -9573,6 +9578,10 @@ export declare type SiteUpdateSchema = {
|
|
|
9573
9578
|
* Whether the Improved API Hex Management option is active or not
|
|
9574
9579
|
*/
|
|
9575
9580
|
improved_hex_management?: boolean;
|
|
9581
|
+
/**
|
|
9582
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9583
|
+
*/
|
|
9584
|
+
improved_gql_multilocale_fields?: boolean;
|
|
9576
9585
|
};
|
|
9577
9586
|
};
|
|
9578
9587
|
/**
|
|
@@ -46,6 +46,8 @@ export default class Site extends BaseResource {
|
|
|
46
46
|
*
|
|
47
47
|
* @throws {ApiError}
|
|
48
48
|
* @throws {TimeoutError}
|
|
49
|
+
*
|
|
50
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
49
51
|
*/
|
|
50
52
|
activateImprovedTimezoneManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
51
53
|
/**
|
|
@@ -55,6 +57,8 @@ export default class Site extends BaseResource {
|
|
|
55
57
|
*
|
|
56
58
|
* @throws {ApiError}
|
|
57
59
|
* @throws {TimeoutError}
|
|
60
|
+
*
|
|
61
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
58
62
|
*/
|
|
59
63
|
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>;
|
|
60
64
|
/**
|
|
@@ -64,6 +68,8 @@ export default class Site extends BaseResource {
|
|
|
64
68
|
*
|
|
65
69
|
* @throws {ApiError}
|
|
66
70
|
* @throws {TimeoutError}
|
|
71
|
+
*
|
|
72
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
67
73
|
*/
|
|
68
74
|
activateImprovedHexManagement(): Promise<SimpleSchemaTypes.Site>;
|
|
69
75
|
/**
|
|
@@ -73,6 +79,30 @@ export default class Site extends BaseResource {
|
|
|
73
79
|
*
|
|
74
80
|
* @throws {ApiError}
|
|
75
81
|
* @throws {TimeoutError}
|
|
82
|
+
*
|
|
83
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
76
84
|
*/
|
|
77
85
|
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* Activate improved GraphQL multi-locale fields option
|
|
88
|
+
*
|
|
89
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
90
|
+
*
|
|
91
|
+
* @throws {ApiError}
|
|
92
|
+
* @throws {TimeoutError}
|
|
93
|
+
*
|
|
94
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
95
|
+
*/
|
|
96
|
+
activateImprovedGqlMultilocaleFields(): Promise<SimpleSchemaTypes.Site>;
|
|
97
|
+
/**
|
|
98
|
+
* Activate improved GraphQL multi-locale fields option
|
|
99
|
+
*
|
|
100
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
101
|
+
*
|
|
102
|
+
* @throws {ApiError}
|
|
103
|
+
* @throws {TimeoutError}
|
|
104
|
+
*
|
|
105
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
106
|
+
*/
|
|
107
|
+
rawActivateImprovedGqlMultilocaleFields(): Promise<SchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema>;
|
|
78
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
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.3.
|
|
40
|
+
"@datocms/rest-client-utils": "^1.3.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^1.3.
|
|
43
|
+
"@datocms/dashboard-client": "^1.3.4"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "2acca5bc90e7662af306ab2b50413b6ece7e18fd"
|
|
46
46
|
}
|
package/resources.json
CHANGED
|
@@ -3297,6 +3297,7 @@
|
|
|
3297
3297
|
"comment": "Activate improved timezone management",
|
|
3298
3298
|
"queryParamsRequired": false,
|
|
3299
3299
|
"responseType": "SiteActivateImprovedTimezoneManagementJobSchema",
|
|
3300
|
+
"deprecated": "This API call is to be considered private and might change without notice",
|
|
3300
3301
|
"name": "activateImprovedTimezoneManagement",
|
|
3301
3302
|
"rawName": "rawActivateImprovedTimezoneManagement"
|
|
3302
3303
|
},
|
|
@@ -3309,8 +3310,22 @@
|
|
|
3309
3310
|
"comment": "Activate improved hex management",
|
|
3310
3311
|
"queryParamsRequired": false,
|
|
3311
3312
|
"responseType": "SiteActivateImprovedHexManagementTargetSchema",
|
|
3313
|
+
"deprecated": "This API call is to be considered private and might change without notice",
|
|
3312
3314
|
"name": "activateImprovedHexManagement",
|
|
3313
3315
|
"rawName": "rawActivateImprovedHexManagement"
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
"returnsCollection": false,
|
|
3319
|
+
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields",
|
|
3320
|
+
"rel": "activate_improved_gql_multilocale_fields",
|
|
3321
|
+
"urlTemplate": "/site/activate-improved-gql-multilocale-fields",
|
|
3322
|
+
"method": "PUT",
|
|
3323
|
+
"comment": "Activate improved GraphQL multi-locale fields option",
|
|
3324
|
+
"queryParamsRequired": false,
|
|
3325
|
+
"responseType": "SiteActivateImprovedGqlMultilocaleFieldsTargetSchema",
|
|
3326
|
+
"deprecated": "This API call is to be considered private and might change without notice",
|
|
3327
|
+
"name": "activateImprovedGqlMultilocaleFields",
|
|
3328
|
+
"rawName": "rawActivateImprovedGqlMultilocaleFields"
|
|
3314
3329
|
}
|
|
3315
3330
|
],
|
|
3316
3331
|
"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.3.
|
|
136
|
+
userAgent: '@datocms/cma-client v1.3.4',
|
|
137
137
|
baseUrl: this.baseUrl,
|
|
138
138
|
preCallStack: new Error().stack,
|
|
139
139
|
extraHeaders: {
|
|
@@ -623,7 +623,7 @@ export type ItemSelfHrefSchema = {
|
|
|
623
623
|
*/
|
|
624
624
|
export type ItemBatchDestroyHrefSchema = {
|
|
625
625
|
/**
|
|
626
|
-
* IDs of records to delete, comma separated
|
|
626
|
+
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
627
627
|
*/
|
|
628
628
|
'filter[ids]': string;
|
|
629
629
|
};
|
|
@@ -633,7 +633,7 @@ export type ItemBatchDestroyHrefSchema = {
|
|
|
633
633
|
*/
|
|
634
634
|
export type ItemBatchPublishHrefSchema = {
|
|
635
635
|
/**
|
|
636
|
-
* IDs of records to publish, comma separated
|
|
636
|
+
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
637
637
|
*/
|
|
638
638
|
'filter[ids]': string;
|
|
639
639
|
};
|
|
@@ -643,7 +643,7 @@ export type ItemBatchPublishHrefSchema = {
|
|
|
643
643
|
*/
|
|
644
644
|
export type ItemBatchUnpublishHrefSchema = {
|
|
645
645
|
/**
|
|
646
|
-
* IDs of records to unpublish, comma separated
|
|
646
|
+
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
647
647
|
*/
|
|
648
648
|
'filter[ids]': string;
|
|
649
649
|
};
|
|
@@ -6786,7 +6786,7 @@ export type ItemBulkPublishSchema = {
|
|
|
6786
6786
|
type: 'item_bulk_publish_operation';
|
|
6787
6787
|
relationships: {
|
|
6788
6788
|
/**
|
|
6789
|
-
* Records to publish
|
|
6789
|
+
* Records to publish (a maximum of 200 records are allowed per request)
|
|
6790
6790
|
*/
|
|
6791
6791
|
items: {
|
|
6792
6792
|
data: ItemData[];
|
|
@@ -6828,7 +6828,7 @@ export type ItemBulkUnpublishSchema = {
|
|
|
6828
6828
|
type: 'item_bulk_unpublish_operation';
|
|
6829
6829
|
relationships: {
|
|
6830
6830
|
/**
|
|
6831
|
-
* Records to unpublish
|
|
6831
|
+
* Records to unpublish (a maximum of 200 records are allowed per request)
|
|
6832
6832
|
*/
|
|
6833
6833
|
items: {
|
|
6834
6834
|
data: ItemData[];
|
|
@@ -6870,7 +6870,7 @@ export type ItemBulkDestroySchema = {
|
|
|
6870
6870
|
type: 'item_bulk_destroy_operation';
|
|
6871
6871
|
relationships: {
|
|
6872
6872
|
/**
|
|
6873
|
-
* Records to delete
|
|
6873
|
+
* Records to delete (a maximum of 200 records are allowed per request)
|
|
6874
6874
|
*/
|
|
6875
6875
|
items: {
|
|
6876
6876
|
data: ItemData[];
|
|
@@ -6918,7 +6918,7 @@ export type ItemBulkMoveToStageSchema = {
|
|
|
6918
6918
|
};
|
|
6919
6919
|
relationships: {
|
|
6920
6920
|
/**
|
|
6921
|
-
* Records to move
|
|
6921
|
+
* Records to move (a maximum of 200 records are allowed per request)
|
|
6922
6922
|
*/
|
|
6923
6923
|
items: {
|
|
6924
6924
|
data: ItemData[];
|
|
@@ -10241,6 +10241,10 @@ export type SiteMeta = {
|
|
|
10241
10241
|
* Whether the Improved API Hex Management option is active or not
|
|
10242
10242
|
*/
|
|
10243
10243
|
improved_hex_management: boolean;
|
|
10244
|
+
/**
|
|
10245
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
10246
|
+
*/
|
|
10247
|
+
improved_gql_multilocale_fields: boolean;
|
|
10244
10248
|
};
|
|
10245
10249
|
|
|
10246
10250
|
/**
|
|
@@ -10383,6 +10387,10 @@ export type SiteUpdateSchema = {
|
|
|
10383
10387
|
* Whether the Improved API Hex Management option is active or not
|
|
10384
10388
|
*/
|
|
10385
10389
|
improved_hex_management?: boolean;
|
|
10390
|
+
/**
|
|
10391
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
10392
|
+
*/
|
|
10393
|
+
improved_gql_multilocale_fields?: boolean;
|
|
10386
10394
|
};
|
|
10387
10395
|
relationships?: {
|
|
10388
10396
|
sso_default_role?: {
|
|
@@ -10432,6 +10440,14 @@ export type SiteActivateImprovedHexManagementTargetSchema = {
|
|
|
10432
10440
|
data: Site;
|
|
10433
10441
|
};
|
|
10434
10442
|
|
|
10443
|
+
/**
|
|
10444
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
10445
|
+
* via the `activate_improved_gql_multilocale_fields.targetSchema` link.
|
|
10446
|
+
*/
|
|
10447
|
+
export type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = {
|
|
10448
|
+
data: Site;
|
|
10449
|
+
};
|
|
10450
|
+
|
|
10435
10451
|
/**
|
|
10436
10452
|
* 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.
|
|
10437
10453
|
*
|
|
@@ -728,7 +728,7 @@ export type ItemBatchDestroyJobSchema = unknown[];
|
|
|
728
728
|
*/
|
|
729
729
|
export type ItemBatchDestroyHrefSchema = {
|
|
730
730
|
/**
|
|
731
|
-
* IDs of records to delete, comma separated
|
|
731
|
+
* IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
|
|
732
732
|
*/
|
|
733
733
|
'filter[ids]': string;
|
|
734
734
|
};
|
|
@@ -743,7 +743,7 @@ export type ItemBatchPublishJobSchema = unknown[];
|
|
|
743
743
|
*/
|
|
744
744
|
export type ItemBatchPublishHrefSchema = {
|
|
745
745
|
/**
|
|
746
|
-
* IDs of records to publish, comma separated
|
|
746
|
+
* IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
747
747
|
*/
|
|
748
748
|
'filter[ids]': string;
|
|
749
749
|
};
|
|
@@ -758,7 +758,7 @@ export type ItemBatchUnpublishJobSchema = unknown[];
|
|
|
758
758
|
*/
|
|
759
759
|
export type ItemBatchUnpublishHrefSchema = {
|
|
760
760
|
/**
|
|
761
|
-
* IDs of records to unpublish, comma separated
|
|
761
|
+
* IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
|
|
762
762
|
*/
|
|
763
763
|
'filter[ids]': string;
|
|
764
764
|
};
|
|
@@ -9918,6 +9918,7 @@ export type SiteSelfTargetSchema = Site;
|
|
|
9918
9918
|
export type SiteUpdateJobSchema = Site;
|
|
9919
9919
|
export type SiteActivateImprovedTimezoneManagementJobSchema = Site;
|
|
9920
9920
|
export type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
9921
|
+
export type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
|
|
9921
9922
|
/**
|
|
9922
9923
|
* Meta attributes
|
|
9923
9924
|
*
|
|
@@ -9933,6 +9934,10 @@ export type SiteMeta = {
|
|
|
9933
9934
|
* Whether the Improved API Hex Management option is active or not
|
|
9934
9935
|
*/
|
|
9935
9936
|
improved_hex_management: boolean;
|
|
9937
|
+
/**
|
|
9938
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
9939
|
+
*/
|
|
9940
|
+
improved_gql_multilocale_fields: boolean;
|
|
9936
9941
|
};
|
|
9937
9942
|
|
|
9938
9943
|
/**
|
|
@@ -10209,6 +10214,10 @@ export type SiteUpdateSchema = {
|
|
|
10209
10214
|
* Whether the Improved API Hex Management option is active or not
|
|
10210
10215
|
*/
|
|
10211
10216
|
improved_hex_management?: boolean;
|
|
10217
|
+
/**
|
|
10218
|
+
* Whether the Improved GraphQL multi-locale fields option is active or not
|
|
10219
|
+
*/
|
|
10220
|
+
improved_gql_multilocale_fields?: boolean;
|
|
10212
10221
|
};
|
|
10213
10222
|
};
|
|
10214
10223
|
|
|
@@ -97,6 +97,8 @@ export default class Site extends BaseResource {
|
|
|
97
97
|
*
|
|
98
98
|
* @throws {ApiError}
|
|
99
99
|
* @throws {TimeoutError}
|
|
100
|
+
*
|
|
101
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
100
102
|
*/
|
|
101
103
|
activateImprovedTimezoneManagement() {
|
|
102
104
|
return this.rawActivateImprovedTimezoneManagement().then((body) =>
|
|
@@ -113,6 +115,8 @@ export default class Site extends BaseResource {
|
|
|
113
115
|
*
|
|
114
116
|
* @throws {ApiError}
|
|
115
117
|
* @throws {TimeoutError}
|
|
118
|
+
*
|
|
119
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
116
120
|
*/
|
|
117
121
|
rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema> {
|
|
118
122
|
return this.client.request<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>(
|
|
@@ -130,6 +134,8 @@ export default class Site extends BaseResource {
|
|
|
130
134
|
*
|
|
131
135
|
* @throws {ApiError}
|
|
132
136
|
* @throws {TimeoutError}
|
|
137
|
+
*
|
|
138
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
133
139
|
*/
|
|
134
140
|
activateImprovedHexManagement() {
|
|
135
141
|
return this.rawActivateImprovedHexManagement().then((body) =>
|
|
@@ -146,6 +152,8 @@ export default class Site extends BaseResource {
|
|
|
146
152
|
*
|
|
147
153
|
* @throws {ApiError}
|
|
148
154
|
* @throws {TimeoutError}
|
|
155
|
+
*
|
|
156
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
149
157
|
*/
|
|
150
158
|
rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema> {
|
|
151
159
|
return this.client.request<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>(
|
|
@@ -155,4 +163,41 @@ export default class Site extends BaseResource {
|
|
|
155
163
|
},
|
|
156
164
|
);
|
|
157
165
|
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Activate improved GraphQL multi-locale fields option
|
|
169
|
+
*
|
|
170
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
171
|
+
*
|
|
172
|
+
* @throws {ApiError}
|
|
173
|
+
* @throws {TimeoutError}
|
|
174
|
+
*
|
|
175
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
176
|
+
*/
|
|
177
|
+
activateImprovedGqlMultilocaleFields() {
|
|
178
|
+
return this.rawActivateImprovedGqlMultilocaleFields().then((body) =>
|
|
179
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema>(
|
|
180
|
+
body,
|
|
181
|
+
),
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Activate improved GraphQL multi-locale fields option
|
|
187
|
+
*
|
|
188
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
|
|
189
|
+
*
|
|
190
|
+
* @throws {ApiError}
|
|
191
|
+
* @throws {TimeoutError}
|
|
192
|
+
*
|
|
193
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
194
|
+
*/
|
|
195
|
+
rawActivateImprovedGqlMultilocaleFields(): Promise<SchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema> {
|
|
196
|
+
return this.client.request<SchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema>(
|
|
197
|
+
{
|
|
198
|
+
method: 'PUT',
|
|
199
|
+
url: '/site/activate-improved-gql-multilocale-fields',
|
|
200
|
+
},
|
|
201
|
+
);
|
|
202
|
+
}
|
|
158
203
|
}
|
package/src/resources/Role.ts
CHANGED
|
@@ -30,11 +30,11 @@ function sameRule(
|
|
|
30
30
|
obj1: Record<string, unknown>,
|
|
31
31
|
obj2: Record<string, unknown>,
|
|
32
32
|
): boolean {
|
|
33
|
-
for (const key in
|
|
33
|
+
for (const key in obj1) {
|
|
34
34
|
if (!sameValue(obj1[key], obj2[key])) return false;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
for (const key in
|
|
37
|
+
for (const key in obj2) {
|
|
38
38
|
if (!sameValue(obj1[key], obj2[key])) return false;
|
|
39
39
|
}
|
|
40
40
|
|