@datocms/cma-client 5.1.23 → 5.1.24
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/esm/fieldTypes/appearance/seo.d.ts +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +22 -26
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +22 -25
- package/dist/esm/generated/resources/Field.d.ts +0 -200
- package/dist/types/fieldTypes/appearance/seo.d.ts +1 -1
- package/dist/types/generated/ApiTypes.d.ts +22 -26
- package/dist/types/generated/RawApiTypes.d.ts +22 -25
- package/dist/types/generated/resources/Field.d.ts +0 -200
- package/package.json +2 -2
- package/src/fieldTypes/appearance/seo.ts +1 -1
- package/src/generated/ApiTypes.ts +22 -26
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +22 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.24",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@datocms/dashboard-client": "^5.1.13",
|
|
46
46
|
"@types/uuid": "^9.0.7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5594c8b76ed7faba088074c5f8256ca07d6314fa"
|
|
49
49
|
}
|
|
@@ -5251,11 +5251,11 @@ export type ItemTypeUpdateSchema = {
|
|
|
5251
5251
|
* <details>
|
|
5252
5252
|
* <summary>Multi-line text (<code>text</code>)</summary>
|
|
5253
5253
|
*
|
|
5254
|
-
* | Property | Value
|
|
5255
|
-
* | ------------------------------ |
|
|
5256
|
-
* | Code | `text`
|
|
5257
|
-
* | Built-in editors for the field | `markdown`, `wysiwyg`, `textarea`
|
|
5258
|
-
* | Available validators | `required`, `length`, `format`, `
|
|
5254
|
+
* | Property | Value |
|
|
5255
|
+
* | ------------------------------ | ------------------------------------------------ |
|
|
5256
|
+
* | Code | `text` |
|
|
5257
|
+
* | Built-in editors for the field | `markdown`, `wysiwyg`, `textarea` |
|
|
5258
|
+
* | Available validators | `required`, `length`, `format`, `sanitized_html` |
|
|
5259
5259
|
*
|
|
5260
5260
|
* </details>
|
|
5261
5261
|
*
|
|
@@ -5361,11 +5361,11 @@ export type ItemTypeUpdateSchema = {
|
|
|
5361
5361
|
* <details>
|
|
5362
5362
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
5363
5363
|
*
|
|
5364
|
-
* | Property | Value
|
|
5365
|
-
* | ------------------------------ |
|
|
5366
|
-
* | Code | `slug`
|
|
5367
|
-
* | Built-in editors for the field | `slug`
|
|
5368
|
-
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
5364
|
+
* | Property | Value |
|
|
5365
|
+
* | ------------------------------ | ----------------------------------------------------------------- |
|
|
5366
|
+
* | Code | `slug` |
|
|
5367
|
+
* | Built-in editors for the field | `slug` |
|
|
5368
|
+
* | Available validators | `required`, `unique`, `length`, `slug_format`, `slug_title_field` |
|
|
5369
5369
|
*
|
|
5370
5370
|
* </details>
|
|
5371
5371
|
*
|
|
@@ -5455,12 +5455,12 @@ export type ItemTypeUpdateSchema = {
|
|
|
5455
5455
|
* <details>
|
|
5456
5456
|
* <summary>Structured text (<code>structured_text</code>)</summary>
|
|
5457
5457
|
*
|
|
5458
|
-
* | Property | Value
|
|
5459
|
-
* | ------------------------------ |
|
|
5460
|
-
* | Code | `structured_text`
|
|
5461
|
-
* | Built-in editors for the field | `structured_text`
|
|
5462
|
-
* | Required validators | `structured_text_blocks`, `structured_text_links`
|
|
5463
|
-
* | Other validators available | `length`, `structured_text_inline_blocks`
|
|
5458
|
+
* | Property | Value |
|
|
5459
|
+
* | ------------------------------ | ----------------------------------------------------- |
|
|
5460
|
+
* | Code | `structured_text` |
|
|
5461
|
+
* | Built-in editors for the field | `structured_text` |
|
|
5462
|
+
* | Required validators | `structured_text_blocks`, `structured_text_links` |
|
|
5463
|
+
* | Other validators available | `required`, `length`, `structured_text_inline_blocks` |
|
|
5464
5464
|
*
|
|
5465
5465
|
* </details>
|
|
5466
5466
|
*
|
|
@@ -5774,9 +5774,9 @@ export type ItemTypeUpdateSchema = {
|
|
|
5774
5774
|
* </details>
|
|
5775
5775
|
*
|
|
5776
5776
|
* <details>
|
|
5777
|
-
* <summary><code>
|
|
5777
|
+
* <summary><code>sanitized_html</code></summary>
|
|
5778
5778
|
*
|
|
5779
|
-
* Checks for the presence of malicious
|
|
5779
|
+
* Checks for the presence of malicious code in HTML fields: content is valid if no dangerous code is present.
|
|
5780
5780
|
*
|
|
5781
5781
|
* | Parameter | Type | Required | Description |
|
|
5782
5782
|
* | ---------------------------- | --------- | -------- | ------------------------------------------------------------ |
|
|
@@ -6003,10 +6003,10 @@ export type ItemTypeUpdateSchema = {
|
|
|
6003
6003
|
*
|
|
6004
6004
|
* Built-in editor for _seo_ fields.
|
|
6005
6005
|
*
|
|
6006
|
-
* | Parameter | Type | Required | Description
|
|
6007
|
-
* | ---------- | --------------- | -------- |
|
|
6008
|
-
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"`
|
|
6009
|
-
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"
|
|
6006
|
+
* | Parameter | Type | Required | Description |
|
|
6007
|
+
* | ---------- | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
6008
|
+
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"` |
|
|
6009
|
+
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`, `"linkedin"` |
|
|
6010
6010
|
*
|
|
6011
6011
|
* </details>
|
|
6012
6012
|
*
|
|
@@ -6193,7 +6193,6 @@ export type FieldStableShell = {
|
|
|
6193
6193
|
};
|
|
6194
6194
|
[k: string]: unknown;
|
|
6195
6195
|
}[];
|
|
6196
|
-
[k: string]: unknown;
|
|
6197
6196
|
};
|
|
6198
6197
|
/**
|
|
6199
6198
|
* Ordering index
|
|
@@ -6320,7 +6319,6 @@ export type FieldAttributesStableShell = {
|
|
|
6320
6319
|
};
|
|
6321
6320
|
[k: string]: unknown;
|
|
6322
6321
|
}[];
|
|
6323
|
-
[k: string]: unknown;
|
|
6324
6322
|
};
|
|
6325
6323
|
/**
|
|
6326
6324
|
* Ordering index
|
|
@@ -6435,7 +6433,6 @@ export type FieldCreateSchemaStableShell = {
|
|
|
6435
6433
|
};
|
|
6436
6434
|
[k: string]: unknown;
|
|
6437
6435
|
}[];
|
|
6438
|
-
[k: string]: unknown;
|
|
6439
6436
|
};
|
|
6440
6437
|
/**
|
|
6441
6438
|
* Ordering index
|
|
@@ -6543,7 +6540,6 @@ export type FieldUpdateSchemaStableShell = {
|
|
|
6543
6540
|
};
|
|
6544
6541
|
[k: string]: unknown;
|
|
6545
6542
|
}[];
|
|
6546
|
-
[k: string]: unknown;
|
|
6547
6543
|
};
|
|
6548
6544
|
/**
|
|
6549
6545
|
* Ordering index
|
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 v5.1.
|
|
150
|
+
userAgent: '@datocms/cma-client v5.1.24',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
|
@@ -4931,11 +4931,11 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
|
4931
4931
|
* <details>
|
|
4932
4932
|
* <summary>Multi-line text (<code>text</code>)</summary>
|
|
4933
4933
|
*
|
|
4934
|
-
* | Property | Value
|
|
4935
|
-
* | ------------------------------ |
|
|
4936
|
-
* | Code | `text`
|
|
4937
|
-
* | Built-in editors for the field | `markdown`, `wysiwyg`, `textarea`
|
|
4938
|
-
* | Available validators | `required`, `length`, `format`, `
|
|
4934
|
+
* | Property | Value |
|
|
4935
|
+
* | ------------------------------ | ------------------------------------------------ |
|
|
4936
|
+
* | Code | `text` |
|
|
4937
|
+
* | Built-in editors for the field | `markdown`, `wysiwyg`, `textarea` |
|
|
4938
|
+
* | Available validators | `required`, `length`, `format`, `sanitized_html` |
|
|
4939
4939
|
*
|
|
4940
4940
|
* </details>
|
|
4941
4941
|
*
|
|
@@ -5041,11 +5041,11 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
|
5041
5041
|
* <details>
|
|
5042
5042
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
5043
5043
|
*
|
|
5044
|
-
* | Property | Value
|
|
5045
|
-
* | ------------------------------ |
|
|
5046
|
-
* | Code | `slug`
|
|
5047
|
-
* | Built-in editors for the field | `slug`
|
|
5048
|
-
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
5044
|
+
* | Property | Value |
|
|
5045
|
+
* | ------------------------------ | ----------------------------------------------------------------- |
|
|
5046
|
+
* | Code | `slug` |
|
|
5047
|
+
* | Built-in editors for the field | `slug` |
|
|
5048
|
+
* | Available validators | `required`, `unique`, `length`, `slug_format`, `slug_title_field` |
|
|
5049
5049
|
*
|
|
5050
5050
|
* </details>
|
|
5051
5051
|
*
|
|
@@ -5135,12 +5135,12 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
|
5135
5135
|
* <details>
|
|
5136
5136
|
* <summary>Structured text (<code>structured_text</code>)</summary>
|
|
5137
5137
|
*
|
|
5138
|
-
* | Property | Value
|
|
5139
|
-
* | ------------------------------ |
|
|
5140
|
-
* | Code | `structured_text`
|
|
5141
|
-
* | Built-in editors for the field | `structured_text`
|
|
5142
|
-
* | Required validators | `structured_text_blocks`, `structured_text_links`
|
|
5143
|
-
* | Other validators available | `length`, `structured_text_inline_blocks`
|
|
5138
|
+
* | Property | Value |
|
|
5139
|
+
* | ------------------------------ | ----------------------------------------------------- |
|
|
5140
|
+
* | Code | `structured_text` |
|
|
5141
|
+
* | Built-in editors for the field | `structured_text` |
|
|
5142
|
+
* | Required validators | `structured_text_blocks`, `structured_text_links` |
|
|
5143
|
+
* | Other validators available | `required`, `length`, `structured_text_inline_blocks` |
|
|
5144
5144
|
*
|
|
5145
5145
|
* </details>
|
|
5146
5146
|
*
|
|
@@ -5454,9 +5454,9 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
|
5454
5454
|
* </details>
|
|
5455
5455
|
*
|
|
5456
5456
|
* <details>
|
|
5457
|
-
* <summary><code>
|
|
5457
|
+
* <summary><code>sanitized_html</code></summary>
|
|
5458
5458
|
*
|
|
5459
|
-
* Checks for the presence of malicious
|
|
5459
|
+
* Checks for the presence of malicious code in HTML fields: content is valid if no dangerous code is present.
|
|
5460
5460
|
*
|
|
5461
5461
|
* | Parameter | Type | Required | Description |
|
|
5462
5462
|
* | ---------------------------- | --------- | -------- | ------------------------------------------------------------ |
|
|
@@ -5683,10 +5683,10 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
|
5683
5683
|
*
|
|
5684
5684
|
* Built-in editor for _seo_ fields.
|
|
5685
5685
|
*
|
|
5686
|
-
* | Parameter | Type | Required | Description
|
|
5687
|
-
* | ---------- | --------------- | -------- |
|
|
5688
|
-
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"`
|
|
5689
|
-
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"
|
|
5686
|
+
* | Parameter | Type | Required | Description |
|
|
5687
|
+
* | ---------- | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
5688
|
+
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"` |
|
|
5689
|
+
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`, `"linkedin"` |
|
|
5690
5690
|
*
|
|
5691
5691
|
* </details>
|
|
5692
5692
|
*
|
|
@@ -5883,7 +5883,6 @@ export type FieldAttributesStableShell = {
|
|
|
5883
5883
|
};
|
|
5884
5884
|
[k: string]: unknown;
|
|
5885
5885
|
}[];
|
|
5886
|
-
[k: string]: unknown;
|
|
5887
5886
|
};
|
|
5888
5887
|
/**
|
|
5889
5888
|
* Ordering index
|
|
@@ -6013,7 +6012,6 @@ export type FieldCreateSchemaStableShell = {
|
|
|
6013
6012
|
};
|
|
6014
6013
|
[k: string]: unknown;
|
|
6015
6014
|
}[];
|
|
6016
|
-
[k: string]: unknown;
|
|
6017
6015
|
};
|
|
6018
6016
|
/**
|
|
6019
6017
|
* Ordering index
|
|
@@ -6150,7 +6148,6 @@ export type FieldUpdateSchemaStableShell = {
|
|
|
6150
6148
|
};
|
|
6151
6149
|
[k: string]: unknown;
|
|
6152
6150
|
}[];
|
|
6153
|
-
[k: string]: unknown;
|
|
6154
6151
|
};
|
|
6155
6152
|
/**
|
|
6156
6153
|
* Ordering index
|