@datocms/cma-client 3.1.2 → 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 +167 -0
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +189 -0
- 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 +167 -0
- package/dist/types/generated/SimpleSchemaTypes.d.ts +189 -0
- 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 +173 -0
- package/src/generated/SimpleSchemaTypes.ts +192 -0
- package/src/generated/resources/EmojiSuggestions.ts +46 -0
- package/src/generated/resources/Site.ts +51 -0
- package/src/generated/resources/index.ts +1 -0
|
@@ -378,6 +378,14 @@ export declare type ItemTypeCreateHrefSchema = {
|
|
|
378
378
|
* Skip the creation of a menu item linked to the model
|
|
379
379
|
*/
|
|
380
380
|
skip_menu_item_creation?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Explicitely specify the ID of the menu item that will be linked to the model
|
|
383
|
+
*/
|
|
384
|
+
menu_item_id?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Explicitely specify the ID of the schema menu item that will be linked to the model
|
|
387
|
+
*/
|
|
388
|
+
schema_menu_item_id?: string;
|
|
381
389
|
[k: string]: unknown;
|
|
382
390
|
};
|
|
383
391
|
/**
|
|
@@ -1120,6 +1128,32 @@ export declare type SsoSettingsType = 'sso_settings';
|
|
|
1120
1128
|
* via the `definition` "id".
|
|
1121
1129
|
*/
|
|
1122
1130
|
export declare type SsoSettingsIdentity = string;
|
|
1131
|
+
/**
|
|
1132
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1133
|
+
* via the `definition` "type".
|
|
1134
|
+
*/
|
|
1135
|
+
export declare type EmojiSuggestionsType = 'emoji_suggestions';
|
|
1136
|
+
/**
|
|
1137
|
+
* ID
|
|
1138
|
+
*
|
|
1139
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1140
|
+
* via the `definition` "identity".
|
|
1141
|
+
*
|
|
1142
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1143
|
+
* via the `definition` "id".
|
|
1144
|
+
*/
|
|
1145
|
+
export declare type EmojiSuggestionsIdentity = string;
|
|
1146
|
+
/**
|
|
1147
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
1148
|
+
* via the `self.hrefSchema` link.
|
|
1149
|
+
*/
|
|
1150
|
+
export declare type EmojiSuggestionsSelfHrefSchema = {
|
|
1151
|
+
/**
|
|
1152
|
+
* The term for which we are seeking suggestions for emojis
|
|
1153
|
+
*/
|
|
1154
|
+
term?: string;
|
|
1155
|
+
[k: string]: unknown;
|
|
1156
|
+
};
|
|
1123
1157
|
/**
|
|
1124
1158
|
* This interface was referenced by `WhiteLabelSettings`'s JSON-Schema
|
|
1125
1159
|
* via the `definition` "type".
|
|
@@ -1349,6 +1383,7 @@ export declare type DatoApi = {
|
|
|
1349
1383
|
form_data?: FormData;
|
|
1350
1384
|
sso_group?: SsoGroup;
|
|
1351
1385
|
sso_settings?: SsoSettings;
|
|
1386
|
+
emoji_suggestions?: EmojiSuggestions;
|
|
1352
1387
|
white_label_settings?: WhiteLabelSettings;
|
|
1353
1388
|
public_info?: PublicInfo;
|
|
1354
1389
|
daily_usage?: DailyUsage;
|
|
@@ -3089,6 +3124,10 @@ export declare type SitePlanAttributes = {
|
|
|
3089
3124
|
* Maximum size in bytes for a single file upload
|
|
3090
3125
|
*/
|
|
3091
3126
|
maximum_single_upload_bytes: number;
|
|
3127
|
+
/**
|
|
3128
|
+
* Maximum size (in bytes) for a record, including its block records
|
|
3129
|
+
*/
|
|
3130
|
+
item_byte_size: number;
|
|
3092
3131
|
/**
|
|
3093
3132
|
* Available extra packets
|
|
3094
3133
|
*/
|
|
@@ -9349,6 +9388,46 @@ export declare type SsoSettingsUpdateSchema = {
|
|
|
9349
9388
|
export declare type SsoSettingsUpdateTargetSchema = {
|
|
9350
9389
|
data: SsoSettings;
|
|
9351
9390
|
};
|
|
9391
|
+
/**
|
|
9392
|
+
* The entity suggests several emojis that are connected to a specific term
|
|
9393
|
+
*
|
|
9394
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9395
|
+
* via the `definition` "emoji_suggestions".
|
|
9396
|
+
*/
|
|
9397
|
+
export declare type EmojiSuggestions = {
|
|
9398
|
+
type: EmojiSuggestionsType;
|
|
9399
|
+
id: EmojiSuggestionsIdentity;
|
|
9400
|
+
attributes: EmojiSuggestionsAttributes;
|
|
9401
|
+
};
|
|
9402
|
+
/**
|
|
9403
|
+
* JSON API attributes
|
|
9404
|
+
*
|
|
9405
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
9406
|
+
* via the `definition` "attributes".
|
|
9407
|
+
*/
|
|
9408
|
+
export declare type EmojiSuggestionsAttributes = {
|
|
9409
|
+
/**
|
|
9410
|
+
* Emojis connected to a specific term
|
|
9411
|
+
*/
|
|
9412
|
+
emojis: string[];
|
|
9413
|
+
};
|
|
9414
|
+
/**
|
|
9415
|
+
* JSON API data
|
|
9416
|
+
*
|
|
9417
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
9418
|
+
* via the `definition` "data".
|
|
9419
|
+
*/
|
|
9420
|
+
export declare type EmojiSuggestionsData = {
|
|
9421
|
+
type: EmojiSuggestionsType;
|
|
9422
|
+
id: EmojiSuggestionsIdentity;
|
|
9423
|
+
};
|
|
9424
|
+
/**
|
|
9425
|
+
* This interface was referenced by `EmojiSuggestions`'s JSON-Schema
|
|
9426
|
+
* via the `self.targetSchema` link.
|
|
9427
|
+
*/
|
|
9428
|
+
export declare type EmojiSuggestionsSelfTargetSchema = {
|
|
9429
|
+
data: EmojiSuggestions;
|
|
9430
|
+
};
|
|
9352
9431
|
/**
|
|
9353
9432
|
* Represents the white-label settings of the current DatoCMS project
|
|
9354
9433
|
*
|
|
@@ -9793,6 +9872,37 @@ export declare type SiteAttributes = {
|
|
|
9793
9872
|
* If enabled, blocks schema changes of primary environment
|
|
9794
9873
|
*/
|
|
9795
9874
|
force_use_of_sandbox_environments: boolean;
|
|
9875
|
+
/**
|
|
9876
|
+
* Allows setting default parameters for assets served through the CDN
|
|
9877
|
+
*/
|
|
9878
|
+
assets_cdn_default_settings: {
|
|
9879
|
+
/**
|
|
9880
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
9881
|
+
*/
|
|
9882
|
+
image: {
|
|
9883
|
+
/**
|
|
9884
|
+
* 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.
|
|
9885
|
+
*/
|
|
9886
|
+
q?: number;
|
|
9887
|
+
/**
|
|
9888
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
9889
|
+
*/
|
|
9890
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
9891
|
+
/**
|
|
9892
|
+
* Specifies the color space of the output image
|
|
9893
|
+
*/
|
|
9894
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
9895
|
+
};
|
|
9896
|
+
/**
|
|
9897
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
9898
|
+
*/
|
|
9899
|
+
video: {
|
|
9900
|
+
/**
|
|
9901
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
9902
|
+
*/
|
|
9903
|
+
disable_serving_raw_videos?: boolean;
|
|
9904
|
+
};
|
|
9905
|
+
};
|
|
9796
9906
|
/**
|
|
9797
9907
|
* Specifies the theme to use in administrative area
|
|
9798
9908
|
*/
|
|
@@ -9917,6 +10027,10 @@ export declare type SiteMeta = {
|
|
|
9917
10027
|
* Whether the Improved boolean fields option is active or not
|
|
9918
10028
|
*/
|
|
9919
10029
|
improved_boolean_fields: boolean;
|
|
10030
|
+
/**
|
|
10031
|
+
* Whether the site has custom upload storage settings
|
|
10032
|
+
*/
|
|
10033
|
+
custom_upload_storage_settings?: boolean;
|
|
9920
10034
|
};
|
|
9921
10035
|
/**
|
|
9922
10036
|
* JSON API data
|
|
@@ -10083,6 +10197,10 @@ export declare type SiteUpdateSchema = {
|
|
|
10083
10197
|
* Whether the Improved boolean fields option is active or not
|
|
10084
10198
|
*/
|
|
10085
10199
|
improved_boolean_fields?: boolean;
|
|
10200
|
+
/**
|
|
10201
|
+
* Whether the site has custom upload storage settings
|
|
10202
|
+
*/
|
|
10203
|
+
custom_upload_storage_settings?: boolean;
|
|
10086
10204
|
};
|
|
10087
10205
|
relationships?: {
|
|
10088
10206
|
sso_default_role?: {
|
|
@@ -10147,6 +10265,55 @@ export declare type SiteActivateImprovedGqlVisibilityControlTargetSchema = {
|
|
|
10147
10265
|
export declare type SiteActivateImprovedBooleanFieldsTargetSchema = {
|
|
10148
10266
|
data: Site;
|
|
10149
10267
|
};
|
|
10268
|
+
/**
|
|
10269
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
10270
|
+
* via the `update_assets_cdn_default_settings.schema` link.
|
|
10271
|
+
*/
|
|
10272
|
+
export declare type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
10273
|
+
data: {
|
|
10274
|
+
type: string;
|
|
10275
|
+
attributes: {
|
|
10276
|
+
/**
|
|
10277
|
+
* Allows setting default parameters for assets served through the CDN
|
|
10278
|
+
*/
|
|
10279
|
+
assets_cdn_default_settings: {
|
|
10280
|
+
/**
|
|
10281
|
+
* Allows setting default parameters for optimizing images served by the CDN
|
|
10282
|
+
*/
|
|
10283
|
+
image: {
|
|
10284
|
+
/**
|
|
10285
|
+
* 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.
|
|
10286
|
+
*/
|
|
10287
|
+
q?: number;
|
|
10288
|
+
/**
|
|
10289
|
+
* The auto parameter helps automating a baseline level of optimization. Specify one or more settings
|
|
10290
|
+
*/
|
|
10291
|
+
auto?: ('compress' | 'format' | 'enhance' | 'true' | 'redeye')[];
|
|
10292
|
+
/**
|
|
10293
|
+
* Specifies the color space of the output image
|
|
10294
|
+
*/
|
|
10295
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10296
|
+
};
|
|
10297
|
+
/**
|
|
10298
|
+
* Allows setting default parameters for optimizing videos served by the CDN
|
|
10299
|
+
*/
|
|
10300
|
+
video: {
|
|
10301
|
+
/**
|
|
10302
|
+
* When true, attempting to retrieve raw video files directly instead of their optimized counterparts will result in a HTTP 422 status code
|
|
10303
|
+
*/
|
|
10304
|
+
disable_serving_raw_videos?: boolean;
|
|
10305
|
+
};
|
|
10306
|
+
};
|
|
10307
|
+
};
|
|
10308
|
+
};
|
|
10309
|
+
};
|
|
10310
|
+
/**
|
|
10311
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
10312
|
+
* via the `update_assets_cdn_default_settings.targetSchema` link.
|
|
10313
|
+
*/
|
|
10314
|
+
export declare type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = {
|
|
10315
|
+
data: Site;
|
|
10316
|
+
};
|
|
10150
10317
|
/**
|
|
10151
10318
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
10152
10319
|
*
|
|
@@ -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
|
/**
|
|
@@ -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
|
*/
|
|
@@ -9045,6 +9088,43 @@ export declare type SsoSettingsUpdateSchema = {
|
|
|
9045
9088
|
idp_saml_metadata_xml?: null | string;
|
|
9046
9089
|
default_role?: RoleData;
|
|
9047
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
|
+
};
|
|
9048
9128
|
/**
|
|
9049
9129
|
* Represents the white-label settings of the current DatoCMS project
|
|
9050
9130
|
*
|
|
@@ -9512,6 +9592,37 @@ export declare type Site = {
|
|
|
9512
9592
|
* If enabled, blocks schema changes of primary environment
|
|
9513
9593
|
*/
|
|
9514
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
|
+
};
|
|
9515
9626
|
/**
|
|
9516
9627
|
* Specifies the theme to use in administrative area
|
|
9517
9628
|
*/
|
|
@@ -9603,6 +9714,7 @@ export declare type SiteActivateImprovedHexManagementTargetSchema = Site;
|
|
|
9603
9714
|
export declare type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
|
|
9604
9715
|
export declare type SiteActivateImprovedGqlVisibilityControlTargetSchema = Site;
|
|
9605
9716
|
export declare type SiteActivateImprovedBooleanFieldsTargetSchema = Site;
|
|
9717
|
+
export declare type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
9606
9718
|
/**
|
|
9607
9719
|
* Meta attributes
|
|
9608
9720
|
*
|
|
@@ -9630,6 +9742,10 @@ export declare type SiteMeta = {
|
|
|
9630
9742
|
* Whether the Improved boolean fields option is active or not
|
|
9631
9743
|
*/
|
|
9632
9744
|
improved_boolean_fields: boolean;
|
|
9745
|
+
/**
|
|
9746
|
+
* Whether the site has custom upload storage settings
|
|
9747
|
+
*/
|
|
9748
|
+
custom_upload_storage_settings?: boolean;
|
|
9633
9749
|
};
|
|
9634
9750
|
/**
|
|
9635
9751
|
* JSON API data
|
|
@@ -9700,6 +9816,37 @@ export declare type SiteAttributes = {
|
|
|
9700
9816
|
* If enabled, blocks schema changes of primary environment
|
|
9701
9817
|
*/
|
|
9702
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
|
+
};
|
|
9703
9850
|
/**
|
|
9704
9851
|
* Specifies the theme to use in administrative area
|
|
9705
9852
|
*/
|
|
@@ -9936,6 +10083,48 @@ export declare type SiteUpdateSchema = {
|
|
|
9936
10083
|
* Whether the Improved boolean fields option is active or not
|
|
9937
10084
|
*/
|
|
9938
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
|
+
};
|
|
9939
10128
|
};
|
|
9940
10129
|
};
|
|
9941
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: {
|