@datocms/cma-client 3.3.11 → 3.3.15

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.
@@ -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.11', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
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.15', 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: '/item-types/reorder-fields-and-fieldsets',
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;;IAoSA,CAAC;IAjSC;;;;;;;OAOG;IACH,yBA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C,sBAAY,GAoSjD;kBApSoB,QAAQ"}
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;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAyC;YACjE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,aAAa;YAClB,IAAI,MAAA;YACJ,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,yBAAM,GAAN,UACE,UAAmD,EACnD,IAA4C;QAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EACtB,KAAK,CAAC,oBAAoB,C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,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.11', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
108
+ return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.15', 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
@@ -6629,7 +6629,7 @@ export type ItemRelationships = {
6629
6629
  data: ItemTypeData;
6630
6630
  };
6631
6631
  /**
6632
- * 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.
6632
+ * The entity (account/collaborator/access token/sso user) who created the record
6633
6633
  */
6634
6634
  creator?: {
6635
6635
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6723,7 +6723,7 @@ export type ItemValidateExistingSchema = {
6723
6723
  data: ItemTypeData;
6724
6724
  };
6725
6725
  /**
6726
- * 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.
6726
+ * The entity (account/collaborator/access token/sso user) who created the record
6727
6727
  */
6728
6728
  creator?: {
6729
6729
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6752,7 +6752,7 @@ export type ItemValidateNewSchema = {
6752
6752
  data: ItemTypeData;
6753
6753
  };
6754
6754
  /**
6755
- * 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.
6755
+ * The entity (account/collaborator/access token/sso user) who created the record
6756
6756
  */
6757
6757
  creator?: {
6758
6758
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6827,7 +6827,7 @@ export type ItemCreateSchema = {
6827
6827
  data: ItemTypeData;
6828
6828
  };
6829
6829
  /**
6830
- * 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.
6830
+ * The entity (account/collaborator/access token/sso user) who created the record
6831
6831
  */
6832
6832
  creator?: {
6833
6833
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6933,7 +6933,7 @@ export type ItemUpdateSchema = {
6933
6933
  data: ItemTypeData;
6934
6934
  };
6935
6935
  /**
6936
- * 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.
6936
+ * The entity (account/collaborator/access token/sso user) who created the record
6937
6937
  */
6938
6938
  creator?: {
6939
6939
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7281,7 +7281,7 @@ export type ItemVersionRelationships = {
7281
7281
  data: ItemData;
7282
7282
  };
7283
7283
  /**
7284
- * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7284
+ * The entity (account/collaborator/access token/sso user) who made this change to the record
7285
7285
  */
7286
7286
  editor: {
7287
7287
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7771,7 +7771,7 @@ export type UploadRelationships = {
7771
7771
  data: UploadCollectionData | null;
7772
7772
  };
7773
7773
  /**
7774
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7774
+ * The entity (account/collaborator/access token) who created the asset
7775
7775
  */
7776
7776
  creator: {
7777
7777
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7979,7 +7979,7 @@ export type UploadUpdateSchema = {
7979
7979
  };
7980
7980
  relationships?: {
7981
7981
  /**
7982
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7982
+ * The entity (account/collaborator/access token) who created the asset
7983
7983
  */
7984
7984
  creator?: {
7985
7985
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -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: '/item-types/reorder-fields-and-fieldsets',
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,KAA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AM;YACd,GAAG,EAAE,0CAA0C;YAC/C,IAAI,MAAA;SACL,CACF,CAAC;IACJ,CAAC;IAlSe,aAAI,GAAG,WAAoB,CAAC;IAmS9C,eAAC;CAAA,AApSD,CAAsC,YAAY,GAoSjD;eApSoB,QAAQ"}
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,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;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAyC;YACjE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,aAAa;YAClB,IAAI,MAAA;YACJ,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAED;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mD;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,YAAY,GAqSjD;eArSoB,QAAQ"}
@@ -6629,7 +6629,7 @@ export type ItemRelationships = {
6629
6629
  data: ItemTypeData;
6630
6630
  };
6631
6631
  /**
6632
- * 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.
6632
+ * The entity (account/collaborator/access token/sso user) who created the record
6633
6633
  */
6634
6634
  creator?: {
6635
6635
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6723,7 +6723,7 @@ export type ItemValidateExistingSchema = {
6723
6723
  data: ItemTypeData;
6724
6724
  };
6725
6725
  /**
6726
- * 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.
6726
+ * The entity (account/collaborator/access token/sso user) who created the record
6727
6727
  */
6728
6728
  creator?: {
6729
6729
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6752,7 +6752,7 @@ export type ItemValidateNewSchema = {
6752
6752
  data: ItemTypeData;
6753
6753
  };
6754
6754
  /**
6755
- * 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.
6755
+ * The entity (account/collaborator/access token/sso user) who created the record
6756
6756
  */
6757
6757
  creator?: {
6758
6758
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6827,7 +6827,7 @@ export type ItemCreateSchema = {
6827
6827
  data: ItemTypeData;
6828
6828
  };
6829
6829
  /**
6830
- * 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.
6830
+ * The entity (account/collaborator/access token/sso user) who created the record
6831
6831
  */
6832
6832
  creator?: {
6833
6833
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6933,7 +6933,7 @@ export type ItemUpdateSchema = {
6933
6933
  data: ItemTypeData;
6934
6934
  };
6935
6935
  /**
6936
- * 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.
6936
+ * The entity (account/collaborator/access token/sso user) who created the record
6937
6937
  */
6938
6938
  creator?: {
6939
6939
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7281,7 +7281,7 @@ export type ItemVersionRelationships = {
7281
7281
  data: ItemData;
7282
7282
  };
7283
7283
  /**
7284
- * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7284
+ * The entity (account/collaborator/access token/sso user) who made this change to the record
7285
7285
  */
7286
7286
  editor: {
7287
7287
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7771,7 +7771,7 @@ export type UploadRelationships = {
7771
7771
  data: UploadCollectionData | null;
7772
7772
  };
7773
7773
  /**
7774
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7774
+ * The entity (account/collaborator/access token) who created the asset
7775
7775
  */
7776
7776
  creator: {
7777
7777
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7979,7 +7979,7 @@ export type UploadUpdateSchema = {
7979
7979
  };
7980
7980
  relationships?: {
7981
7981
  /**
7982
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7982
+ * The entity (account/collaborator/access token) who created the asset
7983
7983
  */
7984
7984
  creator?: {
7985
7985
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -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.11",
3
+ "version": "3.3.15",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -37,12 +37,12 @@
37
37
  "url": "https://github.com/datocms/js-rest-api-clients/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@datocms/rest-client-utils": "^3.3.10",
40
+ "@datocms/rest-client-utils": "^3.3.15",
41
41
  "uuid": "^9.0.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@datocms/dashboard-client": "^3.3.11",
44
+ "@datocms/dashboard-client": "^3.3.15",
45
45
  "@types/uuid": "^9.0.7"
46
46
  },
47
- "gitHead": "d6814df6db5de375d1f0a1fa9082d3c681c5b79a"
47
+ "gitHead": "eb1ec37186876ac65ca0b21a23be00513b42b087"
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": {
@@ -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.11',
150
+ userAgent: '@datocms/cma-client v3.3.15',
151
151
  baseUrl: this.baseUrl,
152
152
  preCallStack: new Error().stack,
153
153
  extraHeaders: {
@@ -7150,7 +7150,7 @@ export type ItemRelationships = {
7150
7150
  data: ItemTypeData;
7151
7151
  };
7152
7152
  /**
7153
- * 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.
7153
+ * The entity (account/collaborator/access token/sso user) who created the record
7154
7154
  */
7155
7155
  creator?: {
7156
7156
  data:
@@ -7252,7 +7252,7 @@ export type ItemValidateExistingSchema = {
7252
7252
  data: ItemTypeData;
7253
7253
  };
7254
7254
  /**
7255
- * 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.
7255
+ * The entity (account/collaborator/access token/sso user) who created the record
7256
7256
  */
7257
7257
  creator?: {
7258
7258
  data:
@@ -7287,7 +7287,7 @@ export type ItemValidateNewSchema = {
7287
7287
  data: ItemTypeData;
7288
7288
  };
7289
7289
  /**
7290
- * 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.
7290
+ * The entity (account/collaborator/access token/sso user) who created the record
7291
7291
  */
7292
7292
  creator?: {
7293
7293
  data:
@@ -7368,7 +7368,7 @@ export type ItemCreateSchema = {
7368
7368
  data: ItemTypeData;
7369
7369
  };
7370
7370
  /**
7371
- * 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.
7371
+ * The entity (account/collaborator/access token/sso user) who created the record
7372
7372
  */
7373
7373
  creator?: {
7374
7374
  data:
@@ -7483,7 +7483,7 @@ export type ItemUpdateSchema = {
7483
7483
  data: ItemTypeData;
7484
7484
  };
7485
7485
  /**
7486
- * 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.
7486
+ * The entity (account/collaborator/access token/sso user) who created the record
7487
7487
  */
7488
7488
  creator?: {
7489
7489
  data:
@@ -7862,7 +7862,7 @@ export type ItemVersionRelationships = {
7862
7862
  data: ItemData;
7863
7863
  };
7864
7864
  /**
7865
- * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7865
+ * The entity (account/collaborator/access token/sso user) who made this change to the record
7866
7866
  */
7867
7867
  editor: {
7868
7868
  data:
@@ -8387,7 +8387,7 @@ export type UploadRelationships = {
8387
8387
  data: UploadCollectionData | null;
8388
8388
  };
8389
8389
  /**
8390
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
8390
+ * The entity (account/collaborator/access token) who created the asset
8391
8391
  */
8392
8392
  creator: {
8393
8393
  data:
@@ -8608,7 +8608,7 @@ export type UploadUpdateSchema = {
8608
8608
  };
8609
8609
  relationships?: {
8610
8610
  /**
8611
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
8611
+ * The entity (account/collaborator/access token) who created the asset
8612
8612
  */
8613
8613
  creator?: {
8614
8614
  data:
@@ -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: '/item-types/reorder-fields-and-fieldsets',
294
+ url: `/item-types/${itemTypeId}/reorder-fields-and-fieldsets`,
294
295
  body,
295
296
  },
296
297
  );