@datocms/cma-client 3.3.11 → 3.3.12
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/ItemType.js +2 -2
- package/dist/cjs/generated/resources/ItemType.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/resources/ItemType.d.ts +1 -1
- package/dist/esm/generated/resources/ItemType.js +2 -2
- package/dist/esm/generated/resources/ItemType.js.map +1 -1
- package/dist/types/generated/resources/ItemType.d.ts +1 -1
- package/package.json +2 -2
- package/resources.json +13 -2
- package/src/generated/Client.ts +1 -1
- package/src/generated/resources/ItemType.ts +2 -1
|
@@ -131,7 +131,7 @@ var Client = /** @class */ (function () {
|
|
|
131
131
|
});
|
|
132
132
|
Client.prototype.request = function (options) {
|
|
133
133
|
var _this = this;
|
|
134
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.
|
|
134
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.12', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
135
135
|
? { 'X-Environment': this.config.environment }
|
|
136
136
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
137
137
|
return _this.jobResultsFetcher
|
|
@@ -276,10 +276,10 @@ var ItemType = /** @class */ (function (_super) {
|
|
|
276
276
|
*
|
|
277
277
|
* @deprecated This API call is to be considered private and might change without notice
|
|
278
278
|
*/
|
|
279
|
-
ItemType.prototype.rawReorderFieldsAndFieldsets = function (body) {
|
|
279
|
+
ItemType.prototype.rawReorderFieldsAndFieldsets = function (itemTypeId, body) {
|
|
280
280
|
return this.client.request({
|
|
281
281
|
method: 'POST',
|
|
282
|
-
url:
|
|
282
|
+
url: "/item-types/".concat(itemTypeId, "/reorder-fields-and-fieldsets"),
|
|
283
283
|
body: body,
|
|
284
284
|
});
|
|
285
285
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AACpD,oEAA8C;AAI9C;IAAsC,4BAAY;IAAlD;;
|
|
1
|
+
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AACpD,oEAA8C;AAI9C;IAAsC,4BAAY;IAAlD;;IAqSA,CAAC;IAlSC;;;;;;;OAOG;IACH,yBAAM,GAAN,UACE,IAA4C,EAC5C,WAAwD;QAExD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAmC,IAAI,EAAE;YACjE,IAAI,EAAE,WAAW;YACjB,UAAU,EAAE;gBACV,MAAM;gBACN,SAAS;gBACT,WAAW;gBACX,sBAAsB;gBACtB,UAAU;gBACV,eAAe;gBACf,mBAAmB;gBACnB,MAAM;gBACN,oBAAoB;gBACpB,eAAe;gBACf,wBAAwB;gBACxB,uBAAuB;gBACvB,MAAM;gBACN,+BAA+B;aAChC;YACD,aAAa,EAAE;gBACb,gBAAgB;gBAChB,aAAa;gBACb,qBAAqB;gBACrB,eAAe;gBACf,UAAU;aACX;SACF,CAAC,EACF,WAAW,CACZ,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,4BAAS,GAAT,UACE,IAAsC,EACtC,WAAkD;QA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I,CAAC,UAAC,IAAI;YACpE,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,6BAAU,GAAV,UACE,UAAkB,EAClB,WAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAuC;YAC/D,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,sBAAe,UAAU,CAAE;YAChC,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,+CAA4B,GAA5B,UACE,UAAkB,EAClB,IAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,sBAAe,UAAU,kCAA+B;YAC7D,IAAI,MAAA;SACL,CACF,CAAC;IACJ,CAAC;IAnSe,aAAI,GAAG,WAAoB,CAAC;IAoS9C,eAAC;CAAA,AArSD,CAAsC,sBAAY,GAqSjD;kBArSoB,QAAQ"}
|
|
@@ -105,7 +105,7 @@ var Client = /** @class */ (function () {
|
|
|
105
105
|
});
|
|
106
106
|
Client.prototype.request = function (options) {
|
|
107
107
|
var _this = this;
|
|
108
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.
|
|
108
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.12', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
109
109
|
? { 'X-Environment': this.config.environment }
|
|
110
110
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
111
111
|
return _this.jobResultsFetcher
|
|
@@ -121,5 +121,5 @@ export default class ItemType extends BaseResource {
|
|
|
121
121
|
*
|
|
122
122
|
* @deprecated This API call is to be considered private and might change without notice
|
|
123
123
|
*/
|
|
124
|
-
rawReorderFieldsAndFieldsets(body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema): Promise<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>;
|
|
124
|
+
rawReorderFieldsAndFieldsets(itemTypeId: string, body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema): Promise<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>;
|
|
125
125
|
}
|
|
@@ -248,10 +248,10 @@ var ItemType = /** @class */ (function (_super) {
|
|
|
248
248
|
*
|
|
249
249
|
* @deprecated This API call is to be considered private and might change without notice
|
|
250
250
|
*/
|
|
251
|
-
ItemType.prototype.rawReorderFieldsAndFieldsets = function (body) {
|
|
251
|
+
ItemType.prototype.rawReorderFieldsAndFieldsets = function (itemTypeId, body) {
|
|
252
252
|
return this.client.request({
|
|
253
253
|
method: 'POST',
|
|
254
|
-
url:
|
|
254
|
+
url: "/item-types/".concat(itemTypeId, "/reorder-fields-and-fieldsets"),
|
|
255
255
|
body: body,
|
|
256
256
|
});
|
|
257
257
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAsC,4BAAY;IAAlD;;
|
|
1
|
+
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAsC,4BAAY;IAAlD;;IAqSA,CAAC;IAlSC;;;;;;;OAOG;IACH,yBAAM,GAAN,UACE,IAA4C,EAC5C,WAAwD;QAExD,OAAO,IAA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AAQ"}
|
|
@@ -121,5 +121,5 @@ export default class ItemType extends BaseResource {
|
|
|
121
121
|
*
|
|
122
122
|
* @deprecated This API call is to be considered private and might change without notice
|
|
123
123
|
*/
|
|
124
|
-
rawReorderFieldsAndFieldsets(body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema): Promise<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>;
|
|
124
|
+
rawReorderFieldsAndFieldsets(itemTypeId: string, body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema): Promise<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>;
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.12",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@datocms/dashboard-client": "^3.3.11",
|
|
45
45
|
"@types/uuid": "^9.0.7"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "e016de74da18c37175fc1e4bb8450c80aff10885"
|
|
48
48
|
}
|
package/resources.json
CHANGED
|
@@ -1040,10 +1040,21 @@
|
|
|
1040
1040
|
"returnsCollection": false,
|
|
1041
1041
|
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/item-type/reorder_fields_and_fieldsets",
|
|
1042
1042
|
"rel": "reorder_fields_and_fieldsets",
|
|
1043
|
-
"urlTemplate": "/item-types/reorder-fields-and-fieldsets",
|
|
1043
|
+
"urlTemplate": "/item-types/${itemTypeId}/reorder-fields-and-fieldsets",
|
|
1044
1044
|
"method": "POST",
|
|
1045
1045
|
"comment": "Reorders a set of fields and fieldsets within the model",
|
|
1046
|
-
"urlPlaceholders": [
|
|
1046
|
+
"urlPlaceholders": [
|
|
1047
|
+
{
|
|
1048
|
+
"variableName": "itemTypeId",
|
|
1049
|
+
"isEntityId": true,
|
|
1050
|
+
"relType": "ItemTypeData"
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"entityIdPlaceholder": {
|
|
1054
|
+
"variableName": "itemTypeId",
|
|
1055
|
+
"isEntityId": true,
|
|
1056
|
+
"relType": "ItemTypeData"
|
|
1057
|
+
},
|
|
1047
1058
|
"requestBodyType": "ItemTypeReorderFieldsAndFieldsetsSchema",
|
|
1048
1059
|
"optionalRequestBody": false,
|
|
1049
1060
|
"requestStructure": {
|
package/src/generated/Client.ts
CHANGED
|
@@ -147,7 +147,7 @@ export class Client {
|
|
|
147
147
|
...this.config,
|
|
148
148
|
...options,
|
|
149
149
|
logFn: this.config.logFn || console.log,
|
|
150
|
-
userAgent: '@datocms/cma-client v3.3.
|
|
150
|
+
userAgent: '@datocms/cma-client v3.3.12',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
|
@@ -285,12 +285,13 @@ export default class ItemType extends BaseResource {
|
|
|
285
285
|
* @deprecated This API call is to be considered private and might change without notice
|
|
286
286
|
*/
|
|
287
287
|
rawReorderFieldsAndFieldsets(
|
|
288
|
+
itemTypeId: string,
|
|
288
289
|
body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema,
|
|
289
290
|
): Promise<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema> {
|
|
290
291
|
return this.client.request<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>(
|
|
291
292
|
{
|
|
292
293
|
method: 'POST',
|
|
293
|
-
url:
|
|
294
|
+
url: `/item-types/${itemTypeId}/reorder-fields-and-fieldsets`,
|
|
294
295
|
body,
|
|
295
296
|
},
|
|
296
297
|
);
|