@datocms/cma-client 3.1.1 → 3.1.3
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 +2 -1
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/EmojiSuggestions.js +87 -0
- package/dist/cjs/generated/resources/EmojiSuggestions.js.map +1 -0
- package/dist/cjs/generated/resources/Site.js +36 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/generated/resources/index.js +3 -1
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/esm/generated/Client.d.ts +1 -0
- package/dist/esm/generated/Client.js +2 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +213 -12
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +236 -13
- package/dist/esm/generated/resources/EmojiSuggestions.d.ts +28 -0
- package/dist/esm/generated/resources/EmojiSuggestions.js +59 -0
- package/dist/esm/generated/resources/EmojiSuggestions.js.map +1 -0
- package/dist/esm/generated/resources/Site.d.ts +22 -0
- package/dist/esm/generated/resources/Site.js +36 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/resources/index.d.ts +1 -0
- package/dist/esm/generated/resources/index.js +1 -0
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/types/generated/Client.d.ts +1 -0
- package/dist/types/generated/SchemaTypes.d.ts +213 -12
- package/dist/types/generated/SimpleSchemaTypes.d.ts +236 -13
- package/dist/types/generated/resources/EmojiSuggestions.d.ts +28 -0
- package/dist/types/generated/resources/Site.d.ts +22 -0
- package/dist/types/generated/resources/index.d.ts +1 -0
- package/package.json +3 -3
- package/resources.json +44 -0
- package/src/generated/Client.ts +3 -1
- package/src/generated/SchemaTypes.ts +252 -42
- package/src/generated/SimpleSchemaTypes.ts +283 -53
- package/src/generated/resources/EmojiSuggestions.ts +46 -0
- package/src/generated/resources/Site.ts +51 -0
- package/src/generated/resources/index.ts +1 -0
|
@@ -423,6 +423,14 @@ export declare type ItemTypeCreateHrefSchema = {
|
|
|
423
423
|
* Skip the creation of a menu item linked to the model
|
|
424
424
|
*/
|
|
425
425
|
skip_menu_item_creation?: boolean;
|
|
426
|
+
/**
|
|
427
|
+
* Explicitely specify the ID of the menu item that will be linked to the model
|
|
428
|
+
*/
|
|
429
|
+
menu_item_id?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Explicitely specify the ID of the schema menu item that will be linked to the model
|
|
432
|
+
*/
|
|
433
|
+
schema_menu_item_id?: string;
|
|
426
434
|
[k: string]: unknown;
|
|
427
435
|
};
|
|
428
436
|
/**
|
|
@@ -607,7 +615,7 @@ export declare type ItemInstancesTargetSchema = Item[];
|
|
|
607
615
|
*/
|
|
608
616
|
export declare type ItemInstancesHrefSchema = {
|
|
609
617
|
/**
|
|
610
|
-
* For Modular Content
|
|
618
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
611
619
|
*/
|
|
612
620
|
nested?: boolean;
|
|
613
621
|
/**
|
|
@@ -677,7 +685,7 @@ export declare type ItemReferencesTargetSchema = Item[];
|
|
|
677
685
|
*/
|
|
678
686
|
export declare type ItemReferencesHrefSchema = {
|
|
679
687
|
/**
|
|
680
|
-
* For Modular Content
|
|
688
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
681
689
|
*/
|
|
682
690
|
nested?: boolean;
|
|
683
691
|
/**
|
|
@@ -692,7 +700,7 @@ export declare type ItemReferencesHrefSchema = {
|
|
|
692
700
|
*/
|
|
693
701
|
export declare type ItemSelfHrefSchema = {
|
|
694
702
|
/**
|
|
695
|
-
* For Modular Content
|
|
703
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
696
704
|
*/
|
|
697
705
|
nested?: boolean;
|
|
698
706
|
/**
|
|
@@ -893,7 +901,7 @@ export declare type ItemVersionInstancesTargetSchema = ItemVersion[];
|
|
|
893
901
|
*/
|
|
894
902
|
export declare type ItemVersionInstancesHrefSchema = {
|
|
895
903
|
/**
|
|
896
|
-
* For Modular Content
|
|
904
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
897
905
|
*/
|
|
898
906
|
nested?: boolean;
|
|
899
907
|
/**
|
|
@@ -1024,7 +1032,7 @@ export declare type UploadReferencesTargetSchema = Item[];
|
|
|
1024
1032
|
*/
|
|
1025
1033
|
export declare type UploadReferencesHrefSchema = {
|
|
1026
1034
|
/**
|
|
1027
|
-
* For Modular Content
|
|
1035
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
1028
1036
|
*/
|
|
1029
1037
|
nested?: boolean;
|
|
1030
1038
|
/**
|
|
@@ -1389,6 +1397,32 @@ export declare type SsoSettingsIdentity = string;
|
|
|
1389
1397
|
* via the `definition` "type".
|
|
1390
1398
|
*/
|
|
1391
1399
|
export declare type SsoSettingsType = 'sso_settings';
|
|
1400
|
+
/**
|
|
1401
|
+
* ID
|
|
1402
|
+
*
|
|
1403
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1404
|
+
* via the `definition` "identity".
|
|
1405
|
+
*
|
|
1406
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1407
|
+
* via the `definition` "id".
|
|
1408
|
+
*/
|
|
1409
|
+
export declare type EmojiSuggestionsIdentity = string;
|
|
1410
|
+
/**
|
|
1411
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1412
|
+
* via the `definition` "type".
|
|
1413
|
+
*/
|
|
1414
|
+
export declare type EmojiSuggestionsType = 'emoji_suggestions';
|
|
1415
|
+
/**
|
|
1416
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1417
|
+
* via the `self.hrefSchema` link.
|
|
1418
|
+
*/
|
|
1419
|
+
export declare type EmojiSuggestionsSelfHrefSchema = {
|
|
1420
|
+
/**
|
|
1421
|
+
* The term for which we are seeking suggestions for emojis
|
|
1422
|
+
*/
|
|
1423
|
+
term?: string;
|
|
1424
|
+
[k: string]: unknown;
|
|
1425
|
+
};
|
|
1392
1426
|
/**
|
|
1393
1427
|
* ID
|
|
1394
1428
|
*
|
|
@@ -1638,6 +1672,7 @@ export declare type DatoApi = {
|
|
|
1638
1672
|
form_data?: FormData;
|
|
1639
1673
|
sso_group?: SsoGroup;
|
|
1640
1674
|
sso_settings?: SsoSettings;
|
|
1675
|
+
emoji_suggestions?: EmojiSuggestions;
|
|
1641
1676
|
white_label_settings?: WhiteLabelSettings;
|
|
1642
1677
|
public_info?: PublicInfo;
|
|
1643
1678
|
daily_usage?: DailyUsage;
|
|
@@ -3472,6 +3507,10 @@ export declare type SitePlan = {
|
|
|
3472
3507
|
* Maximum size in bytes for a single file upload
|
|
3473
3508
|
*/
|
|
3474
3509
|
maximum_single_upload_bytes: number;
|
|
3510
|
+
/**
|
|
3511
|
+
* Maximum size (in bytes) for a record, including its block records
|
|
3512
|
+
*/
|
|
3513
|
+
item_byte_size: number;
|
|
3475
3514
|
/**
|
|
3476
3515
|
* Available extra packets
|
|
3477
3516
|
*/
|
|
@@ -3704,6 +3743,10 @@ export declare type SitePlanAttributes = {
|
|
|
3704
3743
|
* Maximum size in bytes for a single file upload
|
|
3705
3744
|
*/
|
|
3706
3745
|
maximum_single_upload_bytes: number;
|
|
3746
|
+
/**
|
|
3747
|
+
* Maximum size (in bytes) for a record, including its block records
|
|
3748
|
+
*/
|
|
3749
|
+
item_byte_size: number;
|
|
3707
3750
|
/**
|
|
3708
3751
|
* Available extra packets
|
|
3709
3752
|
*/
|
|
@@ -4817,6 +4860,18 @@ export declare type JobData = {
|
|
|
4817
4860
|
* </details>
|
|
4818
4861
|
*
|
|
4819
4862
|
* <details>
|
|
4863
|
+
* <summary>Single Block (<code>single_block</code>)</summary>
|
|
4864
|
+
*
|
|
4865
|
+
* | Property | Value |
|
|
4866
|
+
* | ------------------------------ | ----------------------------------------------- |
|
|
4867
|
+
* | Code | `single_block` |
|
|
4868
|
+
* | Built-in editors for the field | `framed_single_block`, `frameless_single_block` |
|
|
4869
|
+
* | Required validators | `single_block_blocks` |
|
|
4870
|
+
* | Other validators available | `required` |
|
|
4871
|
+
*
|
|
4872
|
+
* </details>
|
|
4873
|
+
*
|
|
4874
|
+
* <details>
|
|
4820
4875
|
* <summary>Structured text (<code>structured_text</code>)</summary>
|
|
4821
4876
|
*
|
|
4822
4877
|
* | Property | Value |
|
|
@@ -5118,6 +5173,17 @@ export declare type JobData = {
|
|
|
5118
5173
|
*
|
|
5119
5174
|
* Only accept references to block records of the specified block models.
|
|
5120
5175
|
*
|
|
5176
|
+
* | Parameter | Type | Required | Description |
|
|
5177
|
+
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
5178
|
+
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
5179
|
+
*
|
|
5180
|
+
* </details>
|
|
5181
|
+
*
|
|
5182
|
+
* <details>
|
|
5183
|
+
* <summary><code>single_block_blocks</code></summary>
|
|
5184
|
+
*
|
|
5185
|
+
* Only accept references to block records of the specified block models.
|
|
5186
|
+
*
|
|
5121
5187
|
* | Parameter | Type | Required | Description |
|
|
5122
5188
|
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
5123
5189
|
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
@@ -5337,10 +5403,10 @@ export declare type JobData = {
|
|
|
5337
5403
|
*
|
|
5338
5404
|
* Built-in editor for _seo_ fields.
|
|
5339
5405
|
*
|
|
5340
|
-
* | Parameter | Type | Required | Description
|
|
5341
|
-
* | ---------- | --------------- | -------- |
|
|
5342
|
-
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"`
|
|
5343
|
-
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google_search"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`
|
|
5406
|
+
* | Parameter | Type | Required | Description |
|
|
5407
|
+
* | ---------- | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
5408
|
+
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"` |
|
|
5409
|
+
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google_search"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`, `"linkedin"` |
|
|
5344
5410
|
*
|
|
5345
5411
|
* </details>
|
|
5346
5412
|
*
|
|
@@ -5356,6 +5422,17 @@ export declare type JobData = {
|
|
|
5356
5422
|
* </details>
|
|
5357
5423
|
*
|
|
5358
5424
|
* <details>
|
|
5425
|
+
* <summary><code>framed_single_block</code></summary>
|
|
5426
|
+
*
|
|
5427
|
+
* Built-in editor for _Single block_ fields.
|
|
5428
|
+
*
|
|
5429
|
+
* | Parameter | Type | Required | Description |
|
|
5430
|
+
* | ----------------- | --------- | -------- | ---------------------------------------------------------- |
|
|
5431
|
+
* | `start_collapsed` | `Boolean` | | Whether you want block record collapsed by default or not |
|
|
5432
|
+
*
|
|
5433
|
+
* </details>
|
|
5434
|
+
*
|
|
5435
|
+
* <details>
|
|
5359
5436
|
* <summary><code>structured_text</code></summary>
|
|
5360
5437
|
*
|
|
5361
5438
|
* Built-in editor for _Structured text_ fields.
|
|
@@ -5399,7 +5476,7 @@ export declare type Field = {
|
|
|
5399
5476
|
/**
|
|
5400
5477
|
* Type of input
|
|
5401
5478
|
*/
|
|
5402
|
-
field_type: '
|
|
5479
|
+
field_type: 'boolean' | 'color' | 'date' | 'date_time' | 'file' | 'float' | 'gallery' | 'integer' | 'json' | 'lat_lon' | 'link' | 'links' | 'rich_text' | 'seo' | 'single_block' | 'slug' | 'string' | 'structured_text' | 'text' | 'video';
|
|
5403
5480
|
/**
|
|
5404
5481
|
* Whether the field needs to be multilanguage or not
|
|
5405
5482
|
*/
|
|
@@ -5501,7 +5578,7 @@ export declare type FieldAttributes = {
|
|
|
5501
5578
|
/**
|
|
5502
5579
|
* Type of input
|
|
5503
5580
|
*/
|
|
5504
|
-
field_type: '
|
|
5581
|
+
field_type: 'boolean' | 'color' | 'date' | 'date_time' | 'file' | 'float' | 'gallery' | 'integer' | 'json' | 'lat_lon' | 'link' | 'links' | 'rich_text' | 'seo' | 'single_block' | 'slug' | 'string' | 'structured_text' | 'text' | 'video';
|
|
5505
5582
|
/**
|
|
5506
5583
|
* Whether the field needs to be multilanguage or not
|
|
5507
5584
|
*/
|
|
@@ -5606,7 +5683,7 @@ export declare type FieldCreateSchema = {
|
|
|
5606
5683
|
/**
|
|
5607
5684
|
* Type of input
|
|
5608
5685
|
*/
|
|
5609
|
-
field_type: '
|
|
5686
|
+
field_type: 'boolean' | 'color' | 'date' | 'date_time' | 'file' | 'float' | 'gallery' | 'integer' | 'json' | 'lat_lon' | 'link' | 'links' | 'rich_text' | 'seo' | 'single_block' | 'slug' | 'string' | 'structured_text' | 'text' | 'video';
|
|
5610
5687
|
/**
|
|
5611
5688
|
* Field API key
|
|
5612
5689
|
*/
|
|
@@ -5773,7 +5850,7 @@ export declare type FieldUpdateSchema = {
|
|
|
5773
5850
|
/**
|
|
5774
5851
|
* Type of input
|
|
5775
5852
|
*/
|
|
5776
|
-
field_type?: '
|
|
5853
|
+
field_type?: 'boolean' | 'color' | 'date' | 'date_time' | 'file' | 'float' | 'gallery' | 'integer' | 'json' | 'lat_lon' | 'link' | 'links' | 'rich_text' | 'seo' | 'single_block' | 'slug' | 'string' | 'structured_text' | 'text' | 'video';
|
|
5777
5854
|
/**
|
|
5778
5855
|
* Field hint
|
|
5779
5856
|
*/
|
|
@@ -9011,6 +9088,43 @@ export declare type SsoSettingsUpdateSchema = {
|
|
|
9011
9088
|
idp_saml_metadata_xml?: null | string;
|
|
9012
9089
|
default_role?: RoleData;
|
|
9013
9090
|
};
|
|
9091
|
+
/**
|
|
9092
|
+
* The entity suggests several emojis that are connected to a specific term
|
|
9093
|
+
*
|
|
9094
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9095
|
+
* via the `definition` "emoji_suggestions".
|
|
9096
|
+
*/
|
|
9097
|
+
export declare type EmojiSuggestions = {
|
|
9098
|
+
id: EmojiSuggestionsIdentity;
|
|
9099
|
+
type: EmojiSuggestionsType;
|
|
9100
|
+
/**
|
|
9101
|
+
* Emojis connected to a specific term
|
|
9102
|
+
*/
|
|
9103
|
+
emojis: string[];
|
|
9104
|
+
};
|
|
9105
|
+
export declare type EmojiSuggestionsSelfTargetSchema = EmojiSuggestions;
|
|
9106
|
+
/**
|
|
9107
|
+
* JSON API data
|
|
9108
|
+
*
|
|
9109
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
9110
|
+
* via the `definition` "data".
|
|
9111
|
+
*/
|
|
9112
|
+
export declare type EmojiSuggestionsData = {
|
|
9113
|
+
type: EmojiSuggestionsType;
|
|
9114
|
+
id: EmojiSuggestionsIdentity;
|
|
9115
|
+
};
|
|
9116
|
+
/**
|
|
9117
|
+
* JSON API attributes
|
|
9118
|
+
*
|
|
9119
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
9120
|
+
* via the `definition` "attributes".
|
|
9121
|
+
*/
|
|
9122
|
+
export declare type EmojiSuggestionsAttributes = {
|
|
9123
|
+
/**
|
|
9124
|
+
* Emojis connected to a specific term
|
|
9125
|
+
*/
|
|
9126
|
+
emojis: string[];
|
|
9127
|
+
};
|
|
9014
9128
|
/**
|
|
9015
9129
|
* Represents the white-label settings of the current DatoCMS project
|
|
9016
9130
|
*
|
|
@@ -9478,6 +9592,37 @@ export declare type Site = {
|
|
|
9478
9592
|
* If enabled, blocks schema changes of primary environment
|
|
9479
9593
|
*/
|
|
9480
9594
|
force_use_of_sandbox_environments: boolean;
|
|
9595
|
+
/**
|
|
9596
|
+
* Allows setting default parameters for assets served through the CDN
|
|
9597
|
+
*/
|
|
9598
|
+
assets_cdn_default_settings: {
|
|
9599
|
+
/**
|
|
9600
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
9601
|
+
*/
|
|
9602
|
+
image: {
|
|
9603
|
+
/**
|
|
9604
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
9605
|
+
*/
|
|
9606
|
+
q?: number;
|
|
9607
|
+
/**
|
|
9608
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
9609
|
+
*/
|
|
9610
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
9611
|
+
/**
|
|
9612
|
+
* Specifies the color space of the output image
|
|
9613
|
+
*/
|
|
9614
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
9615
|
+
};
|
|
9616
|
+
/**
|
|
9617
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
9618
|
+
*/
|
|
9619
|
+
video: {
|
|
9620
|
+
/**
|
|
9621
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
9622
|
+
*/
|
|
9623
|
+
disable_serving_raw_videos?: boolean;
|
|
9624
|
+
};
|
|
9625
|
+
};
|
|
9481
9626
|
/**
|
|
9482
9627
|
* Specifies the theme to use in administrative area
|
|
9483
9628
|
*/
|
|
@@ -9569,6 +9714,7 @@ export declare type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
|
9569
9714
|
export declare type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
|
|
9570
9715
|
export declare type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
|
|
9571
9716
|
export declare type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
|
|
9717
|
+
export declare type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
9572
9718
|
/**
|
|
9573
9719
|
* Meta attributes
|
|
9574
9720
|
*
|
|
@@ -9596,6 +9742,10 @@ export declare type SiteMeta = {
|
|
|
9596
9742
|
* Whether the Improved boolean fields option is active or not
|
|
9597
9743
|
*/
|
|
9598
9744
|
improved_boolean_fields: boolean;
|
|
9745
|
+
/**
|
|
9746
|
+
* Whether the site has custom upload storage settings
|
|
9747
|
+
*/
|
|
9748
|
+
custom_upload_storage_settings?: boolean;
|
|
9599
9749
|
};
|
|
9600
9750
|
/**
|
|
9601
9751
|
* JSON API data
|
|
@@ -9666,6 +9816,37 @@ export declare type SiteAttributes = {
|
|
|
9666
9816
|
* If enabled, blocks schema changes of primary environment
|
|
9667
9817
|
*/
|
|
9668
9818
|
force_use_of_sandbox_environments: boolean;
|
|
9819
|
+
/**
|
|
9820
|
+
* Allows setting default parameters for assets served through the CDN
|
|
9821
|
+
*/
|
|
9822
|
+
assets_cdn_default_settings: {
|
|
9823
|
+
/**
|
|
9824
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
9825
|
+
*/
|
|
9826
|
+
image: {
|
|
9827
|
+
/**
|
|
9828
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
9829
|
+
*/
|
|
9830
|
+
q?: number;
|
|
9831
|
+
/**
|
|
9832
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
9833
|
+
*/
|
|
9834
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
9835
|
+
/**
|
|
9836
|
+
* Specifies the color space of the output image
|
|
9837
|
+
*/
|
|
9838
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
9839
|
+
};
|
|
9840
|
+
/**
|
|
9841
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
9842
|
+
*/
|
|
9843
|
+
video: {
|
|
9844
|
+
/**
|
|
9845
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
9846
|
+
*/
|
|
9847
|
+
disable_serving_raw_videos?: boolean;
|
|
9848
|
+
};
|
|
9849
|
+
};
|
|
9669
9850
|
/**
|
|
9670
9851
|
* Specifies the theme to use in administrative area
|
|
9671
9852
|
*/
|
|
@@ -9902,6 +10083,48 @@ export declare type SiteUpdateSchema = {
|
|
|
9902
10083
|
* Whether the Improved boolean fields option is active or not
|
|
9903
10084
|
*/
|
|
9904
10085
|
improved_boolean_fields?: boolean;
|
|
10086
|
+
/**
|
|
10087
|
+
* Whether the site has custom upload storage settings
|
|
10088
|
+
*/
|
|
10089
|
+
custom_upload_storage_settings?: boolean;
|
|
10090
|
+
};
|
|
10091
|
+
};
|
|
10092
|
+
/**
|
|
10093
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
10094
|
+
* via the `update_assets_cdn_default_settings.schema` link.
|
|
10095
|
+
*/
|
|
10096
|
+
export declare type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
10097
|
+
type?: string;
|
|
10098
|
+
/**
|
|
10099
|
+
* Allows setting default parameters for assets served through the CDN
|
|
10100
|
+
*/
|
|
10101
|
+
assets_cdn_default_settings: {
|
|
10102
|
+
/**
|
|
10103
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
10104
|
+
*/
|
|
10105
|
+
image: {
|
|
10106
|
+
/**
|
|
10107
|
+
* Controls the output quality of lossy file formats (jpg, pjpg, webp, avif, or jxr). Valid values are in the range 0 – 100 and the default is 75.
|
|
10108
|
+
*/
|
|
10109
|
+
q?: number;
|
|
10110
|
+
/**
|
|
10111
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
10112
|
+
*/
|
|
10113
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
10114
|
+
/**
|
|
10115
|
+
* Specifies the color space of the output image
|
|
10116
|
+
*/
|
|
10117
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10118
|
+
};
|
|
10119
|
+
/**
|
|
10120
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
10121
|
+
*/
|
|
10122
|
+
video: {
|
|
10123
|
+
/**
|
|
10124
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
10125
|
+
*/
|
|
10126
|
+
disable_serving_raw_videos?: boolean;
|
|
10127
|
+
};
|
|
9905
10128
|
};
|
|
9906
10129
|
};
|
|
9907
10130
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as SchemaTypes from '../SchemaTypes';
|
|
2
|
+
import * as SimpleSchemaTypes from '../SimpleSchemaTypes';
|
|
3
|
+
import BaseResource from '../../BaseResource';
|
|
4
|
+
export default class EmojiSuggestions extends BaseResource {
|
|
5
|
+
static readonly TYPE: "emoji_suggestions";
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve emoji suggestions
|
|
8
|
+
*
|
|
9
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/emoji-suggestions/self
|
|
10
|
+
*
|
|
11
|
+
* @throws {ApiError}
|
|
12
|
+
* @throws {TimeoutError}
|
|
13
|
+
*
|
|
14
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
15
|
+
*/
|
|
16
|
+
find(queryParams?: SimpleSchemaTypes.EmojiSuggestionsSelfHrefSchema): Promise<SimpleSchemaTypes.EmojiSuggestions>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve emoji suggestions
|
|
19
|
+
*
|
|
20
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/emoji-suggestions/self
|
|
21
|
+
*
|
|
22
|
+
* @throws {ApiError}
|
|
23
|
+
* @throws {TimeoutError}
|
|
24
|
+
*
|
|
25
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
26
|
+
*/
|
|
27
|
+
rawFind(queryParams?: SchemaTypes.EmojiSuggestionsSelfHrefSchema): Promise<SchemaTypes.EmojiSuggestionsSelfTargetSchema>;
|
|
28
|
+
}
|
|
@@ -149,4 +149,26 @@ export default class Site extends BaseResource {
|
|
|
149
149
|
* @deprecated This API call is to be considered private and might change without notice
|
|
150
150
|
*/
|
|
151
151
|
rawActivateImprovedBooleanFields(): Promise<SchemaTypes.SiteActivateImprovedBooleanFieldsTargetSchema>;
|
|
152
|
+
/**
|
|
153
|
+
* Update CDN settings default assets
|
|
154
|
+
*
|
|
155
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings
|
|
156
|
+
*
|
|
157
|
+
* @throws {ApiError}
|
|
158
|
+
* @throws {TimeoutError}
|
|
159
|
+
*
|
|
160
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
161
|
+
*/
|
|
162
|
+
updateAssetsCdnDefaultSettings(body: SimpleSchemaTypes.SiteUpdateAssetsCdnDefaultSettingsSchema): Promise<SimpleSchemaTypes.Site>;
|
|
163
|
+
/**
|
|
164
|
+
* Update CDN settings default assets
|
|
165
|
+
*
|
|
166
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings
|
|
167
|
+
*
|
|
168
|
+
* @throws {ApiError}
|
|
169
|
+
* @throws {TimeoutError}
|
|
170
|
+
*
|
|
171
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
172
|
+
*/
|
|
173
|
+
rawUpdateAssetsCdnDefaultSettings(body: SchemaTypes.SiteUpdateAssetsCdnDefaultSettingsSchema): Promise<SchemaTypes.SiteUpdateAssetsCdnDefaultSettingsTargetSchema>;
|
|
152
174
|
}
|
|
@@ -32,6 +32,7 @@ export { default as SiteInvitation } from './SiteInvitation';
|
|
|
32
32
|
export { default as EditingSession } from './EditingSession';
|
|
33
33
|
export { default as SsoGroup } from './SsoGroup';
|
|
34
34
|
export { default as SsoSettings } from './SsoSettings';
|
|
35
|
+
export { default as EmojiSuggestions } from './EmojiSuggestions';
|
|
35
36
|
export { default as WhiteLabelSettings } from './WhiteLabelSettings';
|
|
36
37
|
export { default as PublicInfo } from './PublicInfo';
|
|
37
38
|
export { default as DailyUsage } from './DailyUsage';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"uuid": "^9.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@datocms/dashboard-client": "^3.1.
|
|
44
|
+
"@datocms/dashboard-client": "^3.1.3",
|
|
45
45
|
"@types/uuid": "^9.0.7"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d694fed022666f26bc0074bd55ee48aab5bd478a"
|
|
48
48
|
}
|
package/resources.json
CHANGED
|
@@ -3392,6 +3392,28 @@
|
|
|
3392
3392
|
"namespace": "ssoSettings",
|
|
3393
3393
|
"resourceClassName": "SsoSettings"
|
|
3394
3394
|
},
|
|
3395
|
+
{
|
|
3396
|
+
"jsonApiType": "emoji_suggestions",
|
|
3397
|
+
"endpoints": [
|
|
3398
|
+
{
|
|
3399
|
+
"returnsCollection": false,
|
|
3400
|
+
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/emoji-suggestions/self",
|
|
3401
|
+
"rel": "self",
|
|
3402
|
+
"urlTemplate": "/emoji-suggestions",
|
|
3403
|
+
"method": "GET",
|
|
3404
|
+
"comment": "Retrieve emoji suggestions",
|
|
3405
|
+
"optionalRequestBody": false,
|
|
3406
|
+
"queryParamsType": "EmojiSuggestionsSelfHrefSchema",
|
|
3407
|
+
"queryParamsRequired": false,
|
|
3408
|
+
"responseType": "EmojiSuggestionsSelfTargetSchema",
|
|
3409
|
+
"deprecated": "This API call is to be considered private and might change without notice",
|
|
3410
|
+
"name": "find",
|
|
3411
|
+
"rawName": "rawFind"
|
|
3412
|
+
}
|
|
3413
|
+
],
|
|
3414
|
+
"namespace": "emojiSuggestions",
|
|
3415
|
+
"resourceClassName": "EmojiSuggestions"
|
|
3416
|
+
},
|
|
3395
3417
|
{
|
|
3396
3418
|
"jsonApiType": "white_label_settings",
|
|
3397
3419
|
"endpoints": [
|
|
@@ -3688,6 +3710,28 @@
|
|
|
3688
3710
|
"deprecated": "This API call is to be considered private and might change without notice",
|
|
3689
3711
|
"name": "activateImprovedBooleanFields",
|
|
3690
3712
|
"rawName": "rawActivateImprovedBooleanFields"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"returnsCollection": false,
|
|
3716
|
+
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/update_assets_cdn_default_settings",
|
|
3717
|
+
"rel": "update_assets_cdn_default_settings",
|
|
3718
|
+
"urlTemplate": "/site/assets-cdn-default-settings",
|
|
3719
|
+
"method": "PUT",
|
|
3720
|
+
"comment": "Update CDN settings default assets",
|
|
3721
|
+
"requestBodyType": "SiteUpdateAssetsCdnDefaultSettingsSchema",
|
|
3722
|
+
"optionalRequestBody": false,
|
|
3723
|
+
"requestStructure": {
|
|
3724
|
+
"type": "assets-cdn-default-settings",
|
|
3725
|
+
"attributes": [
|
|
3726
|
+
"assets_cdn_default_settings"
|
|
3727
|
+
],
|
|
3728
|
+
"relationships": []
|
|
3729
|
+
},
|
|
3730
|
+
"queryParamsRequired": false,
|
|
3731
|
+
"responseType": "SiteUpdateAssetsCdnDefaultSettingsTargetSchema",
|
|
3732
|
+
"deprecated": "This API call is to be considered private and might change without notice",
|
|
3733
|
+
"name": "updateAssetsCdnDefaultSettings",
|
|
3734
|
+
"rawName": "rawUpdateAssetsCdnDefaultSettings"
|
|
3691
3735
|
}
|
|
3692
3736
|
],
|
|
3693
3737
|
"namespace": "site",
|
package/src/generated/Client.ts
CHANGED
|
@@ -68,6 +68,7 @@ export class Client {
|
|
|
68
68
|
editingSessions: Resources.EditingSession;
|
|
69
69
|
ssoGroups: Resources.SsoGroup;
|
|
70
70
|
ssoSettings: Resources.SsoSettings;
|
|
71
|
+
emojiSuggestions: Resources.EmojiSuggestions;
|
|
71
72
|
whiteLabelSettings: Resources.WhiteLabelSettings;
|
|
72
73
|
publicInfo: Resources.PublicInfo;
|
|
73
74
|
dailyUsages: Resources.DailyUsage;
|
|
@@ -118,6 +119,7 @@ export class Client {
|
|
|
118
119
|
this.editingSessions = new Resources.EditingSession(this);
|
|
119
120
|
this.ssoGroups = new Resources.SsoGroup(this);
|
|
120
121
|
this.ssoSettings = new Resources.SsoSettings(this);
|
|
122
|
+
this.emojiSuggestions = new Resources.EmojiSuggestions(this);
|
|
121
123
|
this.whiteLabelSettings = new Resources.WhiteLabelSettings(this);
|
|
122
124
|
this.publicInfo = new Resources.PublicInfo(this);
|
|
123
125
|
this.dailyUsages = new Resources.DailyUsage(this);
|
|
@@ -137,7 +139,7 @@ export class Client {
|
|
|
137
139
|
...this.config,
|
|
138
140
|
...options,
|
|
139
141
|
logFn: this.config.logFn || console.log,
|
|
140
|
-
userAgent: '@datocms/cma-client v3.1.
|
|
142
|
+
userAgent: '@datocms/cma-client v3.1.3',
|
|
141
143
|
baseUrl: this.baseUrl,
|
|
142
144
|
preCallStack: new Error().stack,
|
|
143
145
|
extraHeaders: {
|