@datocms/cma-client 3.3.15 → 3.3.21

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.15', 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.21', 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
@@ -67,6 +67,7 @@ var ItemType = /** @class */ (function (_super) {
67
67
  'sortable',
68
68
  'modular_block',
69
69
  'draft_mode_active',
70
+ 'draft_saving_active',
70
71
  'tree',
71
72
  'ordering_direction',
72
73
  'ordering_meta',
@@ -124,6 +125,7 @@ var ItemType = /** @class */ (function (_super) {
124
125
  'sortable',
125
126
  'modular_block',
126
127
  'draft_mode_active',
128
+ 'draft_saving_active',
127
129
  'tree',
128
130
  'ordering_direction',
129
131
  'ordering_meta',
@@ -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;;IAqSA,CAAC;IAlSC;;;;;;;OAOG;IACH,yBAAM,GAAN,UACE,IAA4C,EA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AsC,sBAAY,GAqSjD;kBArSoB,QAAQ"}
1
+ {"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AACpD,oEAA8C;AAI9C;IAAsC,4BAAY;IAAlD;;IAuSA,CAAC;IApSC;;;;;;;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,qBAAqB;gBACrB,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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AAW,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;IArSe,aAAI,GAAG,WAAoB,CAAC;IAsS9C,eAAC;CAAA,AAvSD,CAAsC,sBAAY,GAuSjD;kBAvSoB,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.15', 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.21', 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
@@ -4080,6 +4080,10 @@ export type ItemTypeAttributes = {
4080
4080
  * Whether draft/published mode is active or not
4081
4081
  */
4082
4082
  draft_mode_active: boolean;
4083
+ /**
4084
+ * Whether draft records can be saved without satisfying the validations or not
4085
+ */
4086
+ draft_saving_active: boolean;
4083
4087
  /**
4084
4088
  * Whether editors can organize records in a tree or not
4085
4089
  */
@@ -4253,6 +4257,10 @@ export type ItemTypeCreateSchema = {
4253
4257
  * Whether draft/published mode is active or not
4254
4258
  */
4255
4259
  draft_mode_active?: boolean;
4260
+ /**
4261
+ * Whether draft records can be saved without satisfying the validations or not
4262
+ */
4263
+ draft_saving_active?: boolean;
4256
4264
  /**
4257
4265
  * Whether editors can organize records in a tree or not
4258
4266
  */
@@ -4372,6 +4380,10 @@ export type ItemTypeUpdateSchema = {
4372
4380
  * Whether draft/published mode is active or not
4373
4381
  */
4374
4382
  draft_mode_active?: boolean;
4383
+ /**
4384
+ * Whether draft records can be saved without satisfying the validations or not
4385
+ */
4386
+ draft_saving_active?: boolean;
4375
4387
  /**
4376
4388
  * Whether editors can organize records in a tree or not
4377
4389
  */
@@ -4943,14 +4955,16 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
4943
4955
  * <details>
4944
4956
  * <summary><code>format</code></summary>
4945
4957
  *
4946
- * Only accept strings having a specific format.
4958
+ * Accepts only strings that match a specified format.
4947
4959
  *
4948
- * | Parameter | Type | Required | Description |
4949
- * | -------------------- | ------------------------- | -------- | ---------------------------------- |
4950
- * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
4951
- * | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
4960
+ * | Parameter | Type | Required | Description |
4961
+ * | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
4962
+ * | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
4963
+ * | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
4952
4964
  *
4953
- * Only one of the parameters must be specified.
4965
+ * **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
4966
+ *
4967
+ * If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
4954
4968
  *
4955
4969
  * </details>
4956
4970
  *
@@ -4554,6 +4554,10 @@ export type ItemType = {
4554
4554
  * Whether draft/published mode is active or not
4555
4555
  */
4556
4556
  draft_mode_active: boolean;
4557
+ /**
4558
+ * Whether draft records can be saved without satisfying the validations or not
4559
+ */
4560
+ draft_saving_active: boolean;
4557
4561
  /**
4558
4562
  * Whether editors can organize records in a tree or not
4559
4563
  */
@@ -4688,6 +4692,10 @@ export type ItemTypeAttributes = {
4688
4692
  * Whether draft/published mode is active or not
4689
4693
  */
4690
4694
  draft_mode_active: boolean;
4695
+ /**
4696
+ * Whether draft records can be saved without satisfying the validations or not
4697
+ */
4698
+ draft_saving_active: boolean;
4691
4699
  /**
4692
4700
  * Whether editors can organize records in a tree or not
4693
4701
  */
@@ -4764,6 +4772,10 @@ export type ItemTypeCreateSchema = {
4764
4772
  * Whether draft/published mode is active or not
4765
4773
  */
4766
4774
  draft_mode_active?: boolean;
4775
+ /**
4776
+ * Whether draft records can be saved without satisfying the validations or not
4777
+ */
4778
+ draft_saving_active?: boolean;
4767
4779
  /**
4768
4780
  * Whether editors can organize records in a tree or not
4769
4781
  */
@@ -4841,6 +4853,10 @@ export type ItemTypeUpdateSchema = {
4841
4853
  * Whether draft/published mode is active or not
4842
4854
  */
4843
4855
  draft_mode_active?: boolean;
4856
+ /**
4857
+ * Whether draft records can be saved without satisfying the validations or not
4858
+ */
4859
+ draft_saving_active?: boolean;
4844
4860
  /**
4845
4861
  * Whether editors can organize records in a tree or not
4846
4862
  */
@@ -5281,14 +5297,16 @@ export type ItemTypeUpdateSchema = {
5281
5297
  * <details>
5282
5298
  * <summary><code>format</code></summary>
5283
5299
  *
5284
- * Only accept strings having a specific format.
5300
+ * Accepts only strings that match a specified format.
5285
5301
  *
5286
- * | Parameter | Type | Required | Description |
5287
- * | -------------------- | ------------------------- | -------- | ---------------------------------- |
5288
- * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
5289
- * | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
5302
+ * | Parameter | Type | Required | Description |
5303
+ * | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
5304
+ * | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
5305
+ * | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
5290
5306
  *
5291
- * Only one of the parameters must be specified.
5307
+ * **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
5308
+ *
5309
+ * If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
5292
5310
  *
5293
5311
  * </details>
5294
5312
  *
@@ -39,6 +39,7 @@ var ItemType = /** @class */ (function (_super) {
39
39
  'sortable',
40
40
  'modular_block',
41
41
  'draft_mode_active',
42
+ 'draft_saving_active',
42
43
  'tree',
43
44
  'ordering_direction',
44
45
  'ordering_meta',
@@ -96,6 +97,7 @@ var ItemType = /** @class */ (function (_super) {
96
97
  'sortable',
97
98
  'modular_block',
98
99
  'draft_mode_active',
100
+ 'draft_saving_active',
99
101
  'tree',
100
102
  'ordering_direction',
101
103
  'ordering_meta',
@@ -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;;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;gBAC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AM;YACd,GAAG,EAAE,sBAAe,UAAU,eAAY;SAC3C,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,0BAAO,GAAP,UACE,UAAmD,EACnD,WAAyD;QAEzD,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,IAAI,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,YAAY,GAqSjD;eArSoB,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;;IAuSA,CAAC;IApSC;;;;;;;OAOG;IACH,yBAAM,GAAN,UACE,IAA4C,EAC5C,WAAwD;QAExD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAmC,I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6 +4080,10 @@ export type ItemTypeAttributes = {
4080
4080
  * Whether draft/published mode is active or not
4081
4081
  */
4082
4082
  draft_mode_active: boolean;
4083
+ /**
4084
+ * Whether draft records can be saved without satisfying the validations or not
4085
+ */
4086
+ draft_saving_active: boolean;
4083
4087
  /**
4084
4088
  * Whether editors can organize records in a tree or not
4085
4089
  */
@@ -4253,6 +4257,10 @@ export type ItemTypeCreateSchema = {
4253
4257
  * Whether draft/published mode is active or not
4254
4258
  */
4255
4259
  draft_mode_active?: boolean;
4260
+ /**
4261
+ * Whether draft records can be saved without satisfying the validations or not
4262
+ */
4263
+ draft_saving_active?: boolean;
4256
4264
  /**
4257
4265
  * Whether editors can organize records in a tree or not
4258
4266
  */
@@ -4372,6 +4380,10 @@ export type ItemTypeUpdateSchema = {
4372
4380
  * Whether draft/published mode is active or not
4373
4381
  */
4374
4382
  draft_mode_active?: boolean;
4383
+ /**
4384
+ * Whether draft records can be saved without satisfying the validations or not
4385
+ */
4386
+ draft_saving_active?: boolean;
4375
4387
  /**
4376
4388
  * Whether editors can organize records in a tree or not
4377
4389
  */
@@ -4943,14 +4955,16 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
4943
4955
  * <details>
4944
4956
  * <summary><code>format</code></summary>
4945
4957
  *
4946
- * Only accept strings having a specific format.
4958
+ * Accepts only strings that match a specified format.
4947
4959
  *
4948
- * | Parameter | Type | Required | Description |
4949
- * | -------------------- | ------------------------- | -------- | ---------------------------------- |
4950
- * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
4951
- * | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
4960
+ * | Parameter | Type | Required | Description |
4961
+ * | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
4962
+ * | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
4963
+ * | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
4952
4964
  *
4953
- * Only one of the parameters must be specified.
4965
+ * **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
4966
+ *
4967
+ * If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
4954
4968
  *
4955
4969
  * </details>
4956
4970
  *
@@ -4554,6 +4554,10 @@ export type ItemType = {
4554
4554
  * Whether draft/published mode is active or not
4555
4555
  */
4556
4556
  draft_mode_active: boolean;
4557
+ /**
4558
+ * Whether draft records can be saved without satisfying the validations or not
4559
+ */
4560
+ draft_saving_active: boolean;
4557
4561
  /**
4558
4562
  * Whether editors can organize records in a tree or not
4559
4563
  */
@@ -4688,6 +4692,10 @@ export type ItemTypeAttributes = {
4688
4692
  * Whether draft/published mode is active or not
4689
4693
  */
4690
4694
  draft_mode_active: boolean;
4695
+ /**
4696
+ * Whether draft records can be saved without satisfying the validations or not
4697
+ */
4698
+ draft_saving_active: boolean;
4691
4699
  /**
4692
4700
  * Whether editors can organize records in a tree or not
4693
4701
  */
@@ -4764,6 +4772,10 @@ export type ItemTypeCreateSchema = {
4764
4772
  * Whether draft/published mode is active or not
4765
4773
  */
4766
4774
  draft_mode_active?: boolean;
4775
+ /**
4776
+ * Whether draft records can be saved without satisfying the validations or not
4777
+ */
4778
+ draft_saving_active?: boolean;
4767
4779
  /**
4768
4780
  * Whether editors can organize records in a tree or not
4769
4781
  */
@@ -4841,6 +4853,10 @@ export type ItemTypeUpdateSchema = {
4841
4853
  * Whether draft/published mode is active or not
4842
4854
  */
4843
4855
  draft_mode_active?: boolean;
4856
+ /**
4857
+ * Whether draft records can be saved without satisfying the validations or not
4858
+ */
4859
+ draft_saving_active?: boolean;
4844
4860
  /**
4845
4861
  * Whether editors can organize records in a tree or not
4846
4862
  */
@@ -5281,14 +5297,16 @@ export type ItemTypeUpdateSchema = {
5281
5297
  * <details>
5282
5298
  * <summary><code>format</code></summary>
5283
5299
  *
5284
- * Only accept strings having a specific format.
5300
+ * Accepts only strings that match a specified format.
5285
5301
  *
5286
- * | Parameter | Type | Required | Description |
5287
- * | -------------------- | ------------------------- | -------- | ---------------------------------- |
5288
- * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
5289
- * | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
5302
+ * | Parameter | Type | Required | Description |
5303
+ * | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
5304
+ * | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
5305
+ * | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
5290
5306
  *
5291
- * Only one of the parameters must be specified.
5307
+ * **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
5308
+ *
5309
+ * If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
5292
5310
  *
5293
5311
  * </details>
5294
5312
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "3.3.15",
3
+ "version": "3.3.21",
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.15",
40
+ "@datocms/rest-client-utils": "^3.3.21",
41
41
  "uuid": "^9.0.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@datocms/dashboard-client": "^3.3.15",
44
+ "@datocms/dashboard-client": "^3.3.21",
45
45
  "@types/uuid": "^9.0.7"
46
46
  },
47
- "gitHead": "eb1ec37186876ac65ca0b21a23be00513b42b087"
47
+ "gitHead": "713848cc43e9c00294f580f0c80667f992f129e5"
48
48
  }
package/resources.json CHANGED
@@ -870,6 +870,7 @@
870
870
  "sortable",
871
871
  "modular_block",
872
872
  "draft_mode_active",
873
+ "draft_saving_active",
873
874
  "tree",
874
875
  "ordering_direction",
875
876
  "ordering_meta",
@@ -926,6 +927,7 @@
926
927
  "sortable",
927
928
  "modular_block",
928
929
  "draft_mode_active",
930
+ "draft_saving_active",
929
931
  "tree",
930
932
  "ordering_direction",
931
933
  "ordering_meta",
@@ -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.15',
150
+ userAgent: '@datocms/cma-client v3.3.21',
151
151
  baseUrl: this.baseUrl,
152
152
  preCallStack: new Error().stack,
153
153
  extraHeaders: {
@@ -4373,6 +4373,10 @@ export type ItemTypeAttributes = {
4373
4373
  * Whether draft/published mode is active or not
4374
4374
  */
4375
4375
  draft_mode_active: boolean;
4376
+ /**
4377
+ * Whether draft records can be saved without satisfying the validations or not
4378
+ */
4379
+ draft_saving_active: boolean;
4376
4380
  /**
4377
4381
  * Whether editors can organize records in a tree or not
4378
4382
  */
@@ -4558,6 +4562,10 @@ export type ItemTypeCreateSchema = {
4558
4562
  * Whether draft/published mode is active or not
4559
4563
  */
4560
4564
  draft_mode_active?: boolean;
4565
+ /**
4566
+ * Whether draft records can be saved without satisfying the validations or not
4567
+ */
4568
+ draft_saving_active?: boolean;
4561
4569
  /**
4562
4570
  * Whether editors can organize records in a tree or not
4563
4571
  */
@@ -4684,6 +4692,10 @@ export type ItemTypeUpdateSchema = {
4684
4692
  * Whether draft/published mode is active or not
4685
4693
  */
4686
4694
  draft_mode_active?: boolean;
4695
+ /**
4696
+ * Whether draft records can be saved without satisfying the validations or not
4697
+ */
4698
+ draft_saving_active?: boolean;
4687
4699
  /**
4688
4700
  * Whether editors can organize records in a tree or not
4689
4701
  */
@@ -5274,14 +5286,16 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
5274
5286
  * <details>
5275
5287
  * <summary><code>format</code></summary>
5276
5288
  *
5277
- * Only accept strings having a specific format.
5289
+ * Accepts only strings that match a specified format.
5278
5290
  *
5279
- * | Parameter | Type | Required | Description |
5280
- * | -------------------- | ------------------------- | -------- | ---------------------------------- |
5281
- * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
5282
- * | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
5291
+ * | Parameter | Type | Required | Description |
5292
+ * | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
5293
+ * | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
5294
+ * | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
5283
5295
  *
5284
- * Only one of the parameters must be specified.
5296
+ * **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
5297
+ *
5298
+ * If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
5285
5299
  *
5286
5300
  * </details>
5287
5301
  *
@@ -4836,6 +4836,10 @@ export type ItemType = {
4836
4836
  * Whether draft/published mode is active or not
4837
4837
  */
4838
4838
  draft_mode_active: boolean;
4839
+ /**
4840
+ * Whether draft records can be saved without satisfying the validations or not
4841
+ */
4842
+ draft_saving_active: boolean;
4839
4843
  /**
4840
4844
  * Whether editors can organize records in a tree or not
4841
4845
  */
@@ -4980,6 +4984,10 @@ export type ItemTypeAttributes = {
4980
4984
  * Whether draft/published mode is active or not
4981
4985
  */
4982
4986
  draft_mode_active: boolean;
4987
+ /**
4988
+ * Whether draft records can be saved without satisfying the validations or not
4989
+ */
4990
+ draft_saving_active: boolean;
4983
4991
  /**
4984
4992
  * Whether editors can organize records in a tree or not
4985
4993
  */
@@ -5063,6 +5071,10 @@ export type ItemTypeCreateSchema = {
5063
5071
  * Whether draft/published mode is active or not
5064
5072
  */
5065
5073
  draft_mode_active?: boolean;
5074
+ /**
5075
+ * Whether draft records can be saved without satisfying the validations or not
5076
+ */
5077
+ draft_saving_active?: boolean;
5066
5078
  /**
5067
5079
  * Whether editors can organize records in a tree or not
5068
5080
  */
@@ -5146,6 +5158,10 @@ export type ItemTypeUpdateSchema = {
5146
5158
  * Whether draft/published mode is active or not
5147
5159
  */
5148
5160
  draft_mode_active?: boolean;
5161
+ /**
5162
+ * Whether draft records can be saved without satisfying the validations or not
5163
+ */
5164
+ draft_saving_active?: boolean;
5149
5165
  /**
5150
5166
  * Whether editors can organize records in a tree or not
5151
5167
  */
@@ -5592,14 +5608,16 @@ export type ItemTypeUpdateSchema = {
5592
5608
  * <details>
5593
5609
  * <summary><code>format</code></summary>
5594
5610
  *
5595
- * Only accept strings having a specific format.
5611
+ * Accepts only strings that match a specified format.
5596
5612
  *
5597
- * | Parameter | Type | Required | Description |
5598
- * | -------------------- | ------------------------- | -------- | ---------------------------------- |
5599
- * | `custom_pattern` | `Regexp` | | Regular expression to be validated |
5600
- * | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
5613
+ * | Parameter | Type | Required | Description |
5614
+ * | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
5615
+ * | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
5616
+ * | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
5601
5617
  *
5602
- * Only one of the parameters must be specified.
5618
+ * **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
5619
+ *
5620
+ * If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
5603
5621
  *
5604
5622
  * </details>
5605
5623
  *
@@ -29,6 +29,7 @@ export default class ItemType extends BaseResource {
29
29
  'sortable',
30
30
  'modular_block',
31
31
  'draft_mode_active',
32
+ 'draft_saving_active',
32
33
  'tree',
33
34
  'ordering_direction',
34
35
  'ordering_meta',
@@ -100,6 +101,7 @@ export default class ItemType extends BaseResource {
100
101
  'sortable',
101
102
  'modular_block',
102
103
  'draft_mode_active',
104
+ 'draft_saving_active',
103
105
  'tree',
104
106
  'ordering_direction',
105
107
  'ordering_meta',