@datocms/cma-client 3.1.0 → 3.1.2
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/generated/Client.js +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +82 -38
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +96 -53
- package/dist/types/generated/SchemaTypes.d.ts +82 -38
- package/dist/types/generated/SimpleSchemaTypes.d.ts +96 -53
- package/package.json +3 -3
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +143 -94
- package/src/generated/SimpleSchemaTypes.ts +168 -119
|
@@ -509,7 +509,7 @@ export type BuildTriggerType = 'build_trigger';
|
|
|
509
509
|
*/
|
|
510
510
|
export type ItemInstancesHrefSchema = {
|
|
511
511
|
/**
|
|
512
|
-
* For Modular Content
|
|
512
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
513
513
|
*/
|
|
514
514
|
nested?: boolean;
|
|
515
515
|
/**
|
|
@@ -574,7 +574,7 @@ export type ItemInstancesHrefSchema = {
|
|
|
574
574
|
*/
|
|
575
575
|
export type ItemReferencesHrefSchema = {
|
|
576
576
|
/**
|
|
577
|
-
* For Modular Content
|
|
577
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
578
578
|
*/
|
|
579
579
|
nested?: boolean;
|
|
580
580
|
/**
|
|
@@ -589,7 +589,7 @@ export type ItemReferencesHrefSchema = {
|
|
|
589
589
|
*/
|
|
590
590
|
export type ItemSelfHrefSchema = {
|
|
591
591
|
/**
|
|
592
|
-
* For Modular Content
|
|
592
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
593
593
|
*/
|
|
594
594
|
nested?: boolean;
|
|
595
595
|
/**
|
|
@@ -664,7 +664,7 @@ export type ItemVersionIdentity = string;
|
|
|
664
664
|
*/
|
|
665
665
|
export type ItemVersionInstancesHrefSchema = {
|
|
666
666
|
/**
|
|
667
|
-
* For Modular Content
|
|
667
|
+
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
|
|
668
668
|
*/
|
|
669
669
|
nested?: boolean;
|
|
670
670
|
/**
|
|
@@ -864,7 +864,7 @@ export type UploadBatchDestroyHrefSchema = {
|
|
|
864
864
|
*/
|
|
865
865
|
export type UploadReferencesHrefSchema = {
|
|
866
866
|
/**
|
|
867
|
-
* For Modular Content
|
|
867
|
+
* For Modular Content, Structured Text and Single Block fields, return full payload for nested blocks instead of IDs
|
|
868
868
|
*/
|
|
869
869
|
nested?: boolean;
|
|
870
870
|
/**
|
|
@@ -4645,6 +4645,18 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4645
4645
|
* </details>
|
|
4646
4646
|
*
|
|
4647
4647
|
* <details>
|
|
4648
|
+
* <summary>Single Block (<code>single_block</code>)</summary>
|
|
4649
|
+
*
|
|
4650
|
+
* | Property | Value |
|
|
4651
|
+
* | ------------------------------ | ----------------------------------------------- |
|
|
4652
|
+
* | Code | `single_block` |
|
|
4653
|
+
* | Built-in editors for the field | `framed_single_block`, `frameless_single_block` |
|
|
4654
|
+
* | Required validators | `single_block_blocks` |
|
|
4655
|
+
* | Other validators available | `required` |
|
|
4656
|
+
*
|
|
4657
|
+
* </details>
|
|
4658
|
+
*
|
|
4659
|
+
* <details>
|
|
4648
4660
|
* <summary>Structured text (<code>structured_text</code>)</summary>
|
|
4649
4661
|
*
|
|
4650
4662
|
* | Property | Value |
|
|
@@ -4946,6 +4958,17 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4946
4958
|
*
|
|
4947
4959
|
* Only accept references to block records of the specified block models.
|
|
4948
4960
|
*
|
|
4961
|
+
* | Parameter | Type | Required | Description |
|
|
4962
|
+
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
4963
|
+
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
4964
|
+
*
|
|
4965
|
+
* </details>
|
|
4966
|
+
*
|
|
4967
|
+
* <details>
|
|
4968
|
+
* <summary><code>single_block_blocks</code></summary>
|
|
4969
|
+
*
|
|
4970
|
+
* Only accept references to block records of the specified block models.
|
|
4971
|
+
*
|
|
4949
4972
|
* | Parameter | Type | Required | Description |
|
|
4950
4973
|
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
4951
4974
|
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
@@ -5165,10 +5188,10 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
5165
5188
|
*
|
|
5166
5189
|
* Built-in editor for _seo_ fields.
|
|
5167
5190
|
*
|
|
5168
|
-
* | Parameter | Type | Required | Description
|
|
5169
|
-
* | ---------- | --------------- | -------- |
|
|
5170
|
-
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"`
|
|
5171
|
-
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google_search"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`
|
|
5191
|
+
* | Parameter | Type | Required | Description |
|
|
5192
|
+
* | ---------- | --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
5193
|
+
* | `fields` | `Array<String>` | ✅ | Specify which fields of the SEO input should be visible to editors. Valid values: `"title"`, `"description"`, `"image"`, `"no_index"`, `"twitter_card"` |
|
|
5194
|
+
* | `previews` | `Array<String>` | ✅ | Specify which previews should be visible to editors. Valid values: `"google_search"`, `"twitter"`, `"slack"`, `"whatsapp"`, `"telegram"`, `"facebook"`, `"linkedin"` |
|
|
5172
5195
|
*
|
|
5173
5196
|
* </details>
|
|
5174
5197
|
*
|
|
@@ -5184,6 +5207,17 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
5184
5207
|
* </details>
|
|
5185
5208
|
*
|
|
5186
5209
|
* <details>
|
|
5210
|
+
* <summary><code>framed_single_block</code></summary>
|
|
5211
|
+
*
|
|
5212
|
+
* Built-in editor for _Single block_ fields.
|
|
5213
|
+
*
|
|
5214
|
+
* | Parameter | Type | Required | Description |
|
|
5215
|
+
* | ----------------- | --------- | -------- | ---------------------------------------------------------- |
|
|
5216
|
+
* | `start_collapsed` | `Boolean` | | Whether you want block record collapsed by default or not |
|
|
5217
|
+
*
|
|
5218
|
+
* </details>
|
|
5219
|
+
*
|
|
5220
|
+
* <details>
|
|
5187
5221
|
* <summary><code>structured_text</code></summary>
|
|
5188
5222
|
*
|
|
5189
5223
|
* Built-in editor for _Structured text_ fields.
|
|
@@ -5239,25 +5273,26 @@ export type FieldAttributes = {
|
|
|
5239
5273
|
* Type of input
|
|
5240
5274
|
*/
|
|
5241
5275
|
field_type:
|
|
5242
|
-
| 'string'
|
|
5243
|
-
| 'text'
|
|
5244
5276
|
| 'boolean'
|
|
5245
|
-
| '
|
|
5246
|
-
| 'float'
|
|
5277
|
+
| 'color'
|
|
5247
5278
|
| 'date'
|
|
5248
5279
|
| 'date_time'
|
|
5249
|
-
| 'color'
|
|
5250
|
-
| 'json'
|
|
5251
|
-
| 'lat_lon'
|
|
5252
|
-
| 'seo'
|
|
5253
|
-
| 'slug'
|
|
5254
|
-
| 'video'
|
|
5255
5280
|
| 'file'
|
|
5281
|
+
| 'float'
|
|
5256
5282
|
| 'gallery'
|
|
5283
|
+
| 'integer'
|
|
5284
|
+
| 'json'
|
|
5285
|
+
| 'lat_lon'
|
|
5257
5286
|
| 'link'
|
|
5258
5287
|
| 'links'
|
|
5259
5288
|
| 'rich_text'
|
|
5260
|
-
| '
|
|
5289
|
+
| 'seo'
|
|
5290
|
+
| 'single_block'
|
|
5291
|
+
| 'slug'
|
|
5292
|
+
| 'string'
|
|
5293
|
+
| 'structured_text'
|
|
5294
|
+
| 'text'
|
|
5295
|
+
| 'video';
|
|
5261
5296
|
/**
|
|
5262
5297
|
* Whether the field needs to be multilanguage or not
|
|
5263
5298
|
*/
|
|
@@ -5385,25 +5420,26 @@ export type FieldCreateSchema = {
|
|
|
5385
5420
|
* Type of input
|
|
5386
5421
|
*/
|
|
5387
5422
|
field_type:
|
|
5388
|
-
| 'string'
|
|
5389
|
-
| 'text'
|
|
5390
5423
|
| 'boolean'
|
|
5391
|
-
| '
|
|
5392
|
-
| 'float'
|
|
5424
|
+
| 'color'
|
|
5393
5425
|
| 'date'
|
|
5394
5426
|
| 'date_time'
|
|
5395
|
-
| 'color'
|
|
5396
|
-
| 'json'
|
|
5397
|
-
| 'lat_lon'
|
|
5398
|
-
| 'seo'
|
|
5399
|
-
| 'slug'
|
|
5400
|
-
| 'video'
|
|
5401
5427
|
| 'file'
|
|
5428
|
+
| 'float'
|
|
5402
5429
|
| 'gallery'
|
|
5430
|
+
| 'integer'
|
|
5431
|
+
| 'json'
|
|
5432
|
+
| 'lat_lon'
|
|
5403
5433
|
| 'link'
|
|
5404
5434
|
| 'links'
|
|
5405
5435
|
| 'rich_text'
|
|
5406
|
-
| '
|
|
5436
|
+
| 'seo'
|
|
5437
|
+
| 'single_block'
|
|
5438
|
+
| 'slug'
|
|
5439
|
+
| 'string'
|
|
5440
|
+
| 'structured_text'
|
|
5441
|
+
| 'text'
|
|
5442
|
+
| 'video';
|
|
5407
5443
|
/**
|
|
5408
5444
|
* Field API key
|
|
5409
5445
|
*/
|
|
@@ -5613,25 +5649,26 @@ export type FieldUpdateSchema = {
|
|
|
5613
5649
|
* Type of input
|
|
5614
5650
|
*/
|
|
5615
5651
|
field_type?:
|
|
5616
|
-
| 'string'
|
|
5617
|
-
| 'text'
|
|
5618
5652
|
| 'boolean'
|
|
5619
|
-
| '
|
|
5620
|
-
| 'float'
|
|
5653
|
+
| 'color'
|
|
5621
5654
|
| 'date'
|
|
5622
5655
|
| 'date_time'
|
|
5623
|
-
| 'color'
|
|
5624
|
-
| 'json'
|
|
5625
|
-
| 'lat_lon'
|
|
5626
|
-
| 'seo'
|
|
5627
|
-
| 'slug'
|
|
5628
|
-
| 'video'
|
|
5629
5656
|
| 'file'
|
|
5657
|
+
| 'float'
|
|
5630
5658
|
| 'gallery'
|
|
5659
|
+
| 'integer'
|
|
5660
|
+
| 'json'
|
|
5661
|
+
| 'lat_lon'
|
|
5631
5662
|
| 'link'
|
|
5632
5663
|
| 'links'
|
|
5633
5664
|
| 'rich_text'
|
|
5634
|
-
| '
|
|
5665
|
+
| 'seo'
|
|
5666
|
+
| 'single_block'
|
|
5667
|
+
| 'slug'
|
|
5668
|
+
| 'string'
|
|
5669
|
+
| 'structured_text'
|
|
5670
|
+
| 'text'
|
|
5671
|
+
| 'video';
|
|
5635
5672
|
/**
|
|
5636
5673
|
* Field hint
|
|
5637
5674
|
*/
|
|
@@ -10139,35 +10176,31 @@ export type PublicInfoAttributes = {
|
|
|
10139
10176
|
* Specifies the color-scheme for the project
|
|
10140
10177
|
*/
|
|
10141
10178
|
theme: {
|
|
10142
|
-
primary_color
|
|
10179
|
+
primary_color: {
|
|
10143
10180
|
red: number;
|
|
10144
10181
|
green: number;
|
|
10145
10182
|
blue: number;
|
|
10146
10183
|
alpha: number;
|
|
10147
10184
|
[k: string]: unknown;
|
|
10148
10185
|
};
|
|
10149
|
-
light_color
|
|
10186
|
+
light_color: {
|
|
10150
10187
|
red: number;
|
|
10151
10188
|
green: number;
|
|
10152
10189
|
blue: number;
|
|
10153
10190
|
alpha: number;
|
|
10154
|
-
[k: string]: unknown;
|
|
10155
10191
|
};
|
|
10156
|
-
accent_color
|
|
10192
|
+
accent_color: {
|
|
10157
10193
|
red: number;
|
|
10158
10194
|
green: number;
|
|
10159
10195
|
blue: number;
|
|
10160
10196
|
alpha: number;
|
|
10161
|
-
[k: string]: unknown;
|
|
10162
10197
|
};
|
|
10163
|
-
dark_color
|
|
10198
|
+
dark_color: {
|
|
10164
10199
|
red: number;
|
|
10165
10200
|
green: number;
|
|
10166
10201
|
blue: number;
|
|
10167
10202
|
alpha: number;
|
|
10168
|
-
[k: string]: unknown;
|
|
10169
10203
|
};
|
|
10170
|
-
[k: string]: unknown;
|
|
10171
10204
|
};
|
|
10172
10205
|
/**
|
|
10173
10206
|
* Additional information (only returned on authenticated requests)
|
|
@@ -10508,39 +10541,42 @@ export type SiteAttributes = {
|
|
|
10508
10541
|
* Specifies the theme to use in administrative area
|
|
10509
10542
|
*/
|
|
10510
10543
|
theme: {
|
|
10544
|
+
/**
|
|
10545
|
+
* If type is monochromatic, the hue will determine the color palette. Dark color is a legacy property, and it won't be used on the interface
|
|
10546
|
+
*/
|
|
10547
|
+
type: 'custom' | 'monochromatic';
|
|
10548
|
+
/**
|
|
10549
|
+
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
10550
|
+
*/
|
|
10551
|
+
hue: number | null;
|
|
10511
10552
|
primary_color: {
|
|
10512
10553
|
red: number;
|
|
10513
10554
|
green: number;
|
|
10514
10555
|
blue: number;
|
|
10515
10556
|
alpha: number;
|
|
10516
|
-
[k: string]: unknown;
|
|
10517
10557
|
};
|
|
10518
10558
|
light_color: {
|
|
10519
10559
|
red: number;
|
|
10520
10560
|
green: number;
|
|
10521
10561
|
blue: number;
|
|
10522
10562
|
alpha: number;
|
|
10523
|
-
[k: string]: unknown;
|
|
10524
10563
|
};
|
|
10525
10564
|
accent_color: {
|
|
10526
10565
|
red: number;
|
|
10527
10566
|
green: number;
|
|
10528
10567
|
blue: number;
|
|
10529
10568
|
alpha: number;
|
|
10530
|
-
[k: string]: unknown;
|
|
10531
10569
|
};
|
|
10532
10570
|
dark_color: {
|
|
10533
10571
|
red: number;
|
|
10534
10572
|
green: number;
|
|
10535
10573
|
blue: number;
|
|
10536
10574
|
alpha: number;
|
|
10537
|
-
[k: string]: unknown;
|
|
10538
10575
|
};
|
|
10539
10576
|
/**
|
|
10540
|
-
* The
|
|
10577
|
+
* The upload ID that is used as the logo for the project
|
|
10541
10578
|
*/
|
|
10542
10579
|
logo: string | null;
|
|
10543
|
-
[k: string]: unknown;
|
|
10544
10580
|
};
|
|
10545
10581
|
/**
|
|
10546
10582
|
* Specifies default global settings
|
|
@@ -10705,44 +10741,57 @@ export type SiteUpdateSchema = {
|
|
|
10705
10741
|
* Site name
|
|
10706
10742
|
*/
|
|
10707
10743
|
name?: string;
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10744
|
+
theme?:
|
|
10745
|
+
| {
|
|
10746
|
+
/**
|
|
10747
|
+
* Type of theme color palette
|
|
10748
|
+
*/
|
|
10749
|
+
type: 'monochromatic';
|
|
10750
|
+
/**
|
|
10751
|
+
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
10752
|
+
*/
|
|
10753
|
+
hue: number | null;
|
|
10754
|
+
/**
|
|
10755
|
+
* The upload ID that is used as the logo for the project
|
|
10756
|
+
*/
|
|
10757
|
+
logo: string | null;
|
|
10758
|
+
[k: string]: unknown;
|
|
10759
|
+
}
|
|
10760
|
+
| {
|
|
10761
|
+
/**
|
|
10762
|
+
* Type of theme color palette
|
|
10763
|
+
*/
|
|
10764
|
+
type?: 'custom';
|
|
10765
|
+
/**
|
|
10766
|
+
* The upload ID that is used as the logo for the project
|
|
10767
|
+
*/
|
|
10768
|
+
logo: string | null;
|
|
10769
|
+
primary_color: {
|
|
10770
|
+
red: number;
|
|
10771
|
+
green: number;
|
|
10772
|
+
blue: number;
|
|
10773
|
+
alpha: number;
|
|
10774
|
+
};
|
|
10775
|
+
light_color: {
|
|
10776
|
+
red: number;
|
|
10777
|
+
green: number;
|
|
10778
|
+
blue: number;
|
|
10779
|
+
alpha: number;
|
|
10780
|
+
};
|
|
10781
|
+
accent_color: {
|
|
10782
|
+
red: number;
|
|
10783
|
+
green: number;
|
|
10784
|
+
blue: number;
|
|
10785
|
+
alpha: number;
|
|
10786
|
+
};
|
|
10787
|
+
dark_color?: {
|
|
10788
|
+
red: number;
|
|
10789
|
+
green: number;
|
|
10790
|
+
blue: number;
|
|
10791
|
+
alpha: number;
|
|
10792
|
+
};
|
|
10793
|
+
[k: string]: unknown;
|
|
10794
|
+
};
|
|
10746
10795
|
/**
|
|
10747
10796
|
* Available locales
|
|
10748
10797
|
*/
|