@datocms/cma-client 5.4.20 → 5.4.22
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/cjs/utilities/id.js +1 -1
- package/dist/cjs/utilities/id.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +436 -20
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +248 -10
- package/dist/esm/utilities/id.js +1 -1
- package/dist/esm/utilities/id.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +436 -20
- package/dist/types/generated/RawApiTypes.d.ts +248 -10
- package/package.json +4 -5
- package/src/generated/ApiTypes.ts +436 -20
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +248 -10
- package/src/utilities/id.ts +1 -1
|
@@ -10945,32 +10945,125 @@ export type PublicInfoAttributes = {
|
|
|
10945
10945
|
*/
|
|
10946
10946
|
custom_i18n_messages_template_url: null | string;
|
|
10947
10947
|
/**
|
|
10948
|
-
* Specifies the color-scheme for the project
|
|
10948
|
+
* Specifies the color-scheme for the project. For monochromatic themes the response only includes type and hue — frontends must derive the palette from the hue. For custom themes the primary_color, light_color, accent_color, and dark_color fields are returned.
|
|
10949
10949
|
*/
|
|
10950
10950
|
theme: {
|
|
10951
|
-
|
|
10951
|
+
/**
|
|
10952
|
+
* Whether the project is using a custom color palette or a monochromatic one derived from a hue.
|
|
10953
|
+
*/
|
|
10954
|
+
type: 'custom' | 'monochromatic';
|
|
10955
|
+
/**
|
|
10956
|
+
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
10957
|
+
*/
|
|
10958
|
+
hue: number | null;
|
|
10959
|
+
/**
|
|
10960
|
+
* An integer color channel value (0-255)
|
|
10961
|
+
*/
|
|
10962
|
+
color_channel?: number;
|
|
10963
|
+
/**
|
|
10964
|
+
* An RGBA color value
|
|
10965
|
+
*/
|
|
10966
|
+
color?: {
|
|
10967
|
+
/**
|
|
10968
|
+
* An integer color channel value (0-255)
|
|
10969
|
+
*/
|
|
10952
10970
|
red: number;
|
|
10971
|
+
/**
|
|
10972
|
+
* An integer color channel value (0-255)
|
|
10973
|
+
*/
|
|
10953
10974
|
green: number;
|
|
10975
|
+
/**
|
|
10976
|
+
* An integer color channel value (0-255)
|
|
10977
|
+
*/
|
|
10954
10978
|
blue: number;
|
|
10979
|
+
/**
|
|
10980
|
+
* An integer color channel value (0-255)
|
|
10981
|
+
*/
|
|
10955
10982
|
alpha: number;
|
|
10956
10983
|
[k: string]: unknown;
|
|
10957
10984
|
};
|
|
10958
|
-
|
|
10985
|
+
/**
|
|
10986
|
+
* An RGBA color value
|
|
10987
|
+
*/
|
|
10988
|
+
primary_color?: {
|
|
10989
|
+
/**
|
|
10990
|
+
* An integer color channel value (0-255)
|
|
10991
|
+
*/
|
|
10959
10992
|
red: number;
|
|
10993
|
+
/**
|
|
10994
|
+
* An integer color channel value (0-255)
|
|
10995
|
+
*/
|
|
10960
10996
|
green: number;
|
|
10997
|
+
/**
|
|
10998
|
+
* An integer color channel value (0-255)
|
|
10999
|
+
*/
|
|
10961
11000
|
blue: number;
|
|
11001
|
+
/**
|
|
11002
|
+
* An integer color channel value (0-255)
|
|
11003
|
+
*/
|
|
10962
11004
|
alpha: number;
|
|
10963
11005
|
};
|
|
10964
|
-
|
|
11006
|
+
/**
|
|
11007
|
+
* An RGBA color value
|
|
11008
|
+
*/
|
|
11009
|
+
light_color?: {
|
|
11010
|
+
/**
|
|
11011
|
+
* An integer color channel value (0-255)
|
|
11012
|
+
*/
|
|
10965
11013
|
red: number;
|
|
11014
|
+
/**
|
|
11015
|
+
* An integer color channel value (0-255)
|
|
11016
|
+
*/
|
|
10966
11017
|
green: number;
|
|
11018
|
+
/**
|
|
11019
|
+
* An integer color channel value (0-255)
|
|
11020
|
+
*/
|
|
10967
11021
|
blue: number;
|
|
11022
|
+
/**
|
|
11023
|
+
* An integer color channel value (0-255)
|
|
11024
|
+
*/
|
|
10968
11025
|
alpha: number;
|
|
10969
11026
|
};
|
|
10970
|
-
|
|
11027
|
+
/**
|
|
11028
|
+
* An RGBA color value
|
|
11029
|
+
*/
|
|
11030
|
+
accent_color?: {
|
|
11031
|
+
/**
|
|
11032
|
+
* An integer color channel value (0-255)
|
|
11033
|
+
*/
|
|
11034
|
+
red: number;
|
|
11035
|
+
/**
|
|
11036
|
+
* An integer color channel value (0-255)
|
|
11037
|
+
*/
|
|
11038
|
+
green: number;
|
|
11039
|
+
/**
|
|
11040
|
+
* An integer color channel value (0-255)
|
|
11041
|
+
*/
|
|
11042
|
+
blue: number;
|
|
11043
|
+
/**
|
|
11044
|
+
* An integer color channel value (0-255)
|
|
11045
|
+
*/
|
|
11046
|
+
alpha: number;
|
|
11047
|
+
};
|
|
11048
|
+
/**
|
|
11049
|
+
* An RGBA color value
|
|
11050
|
+
*/
|
|
11051
|
+
dark_color?: {
|
|
11052
|
+
/**
|
|
11053
|
+
* An integer color channel value (0-255)
|
|
11054
|
+
*/
|
|
10971
11055
|
red: number;
|
|
11056
|
+
/**
|
|
11057
|
+
* An integer color channel value (0-255)
|
|
11058
|
+
*/
|
|
10972
11059
|
green: number;
|
|
11060
|
+
/**
|
|
11061
|
+
* An integer color channel value (0-255)
|
|
11062
|
+
*/
|
|
10973
11063
|
blue: number;
|
|
11064
|
+
/**
|
|
11065
|
+
* An integer color channel value (0-255)
|
|
11066
|
+
*/
|
|
10974
11067
|
alpha: number;
|
|
10975
11068
|
};
|
|
10976
11069
|
};
|
|
@@ -11335,7 +11428,7 @@ export type SiteAttributes = {
|
|
|
11335
11428
|
};
|
|
11336
11429
|
};
|
|
11337
11430
|
/**
|
|
11338
|
-
* Specifies the theme to use in administrative area
|
|
11431
|
+
* Specifies the theme to use in administrative area. For monochromatic themes the response only includes type, hue, and logo — frontends must derive the palette from the hue. For custom themes the primary_color, light_color, accent_color, and dark_color fields are returned.
|
|
11339
11432
|
*/
|
|
11340
11433
|
theme: {
|
|
11341
11434
|
/**
|
|
@@ -11346,28 +11439,113 @@ export type SiteAttributes = {
|
|
|
11346
11439
|
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11347
11440
|
*/
|
|
11348
11441
|
hue: number | null;
|
|
11349
|
-
|
|
11442
|
+
/**
|
|
11443
|
+
* An integer color channel value (0-255)
|
|
11444
|
+
*/
|
|
11445
|
+
color_channel?: number;
|
|
11446
|
+
/**
|
|
11447
|
+
* An RGBA color value
|
|
11448
|
+
*/
|
|
11449
|
+
color?: {
|
|
11450
|
+
/**
|
|
11451
|
+
* An integer color channel value (0-255)
|
|
11452
|
+
*/
|
|
11350
11453
|
red: number;
|
|
11454
|
+
/**
|
|
11455
|
+
* An integer color channel value (0-255)
|
|
11456
|
+
*/
|
|
11351
11457
|
green: number;
|
|
11458
|
+
/**
|
|
11459
|
+
* An integer color channel value (0-255)
|
|
11460
|
+
*/
|
|
11352
11461
|
blue: number;
|
|
11462
|
+
/**
|
|
11463
|
+
* An integer color channel value (0-255)
|
|
11464
|
+
*/
|
|
11353
11465
|
alpha: number;
|
|
11354
11466
|
};
|
|
11355
|
-
|
|
11467
|
+
/**
|
|
11468
|
+
* An RGBA color value
|
|
11469
|
+
*/
|
|
11470
|
+
primary_color?: {
|
|
11471
|
+
/**
|
|
11472
|
+
* An integer color channel value (0-255)
|
|
11473
|
+
*/
|
|
11356
11474
|
red: number;
|
|
11475
|
+
/**
|
|
11476
|
+
* An integer color channel value (0-255)
|
|
11477
|
+
*/
|
|
11478
|
+
green: number;
|
|
11479
|
+
/**
|
|
11480
|
+
* An integer color channel value (0-255)
|
|
11481
|
+
*/
|
|
11482
|
+
blue: number;
|
|
11483
|
+
/**
|
|
11484
|
+
* An integer color channel value (0-255)
|
|
11485
|
+
*/
|
|
11486
|
+
alpha: number;
|
|
11487
|
+
};
|
|
11488
|
+
/**
|
|
11489
|
+
* An RGBA color value
|
|
11490
|
+
*/
|
|
11491
|
+
light_color?: {
|
|
11492
|
+
/**
|
|
11493
|
+
* An integer color channel value (0-255)
|
|
11494
|
+
*/
|
|
11495
|
+
red: number;
|
|
11496
|
+
/**
|
|
11497
|
+
* An integer color channel value (0-255)
|
|
11498
|
+
*/
|
|
11357
11499
|
green: number;
|
|
11500
|
+
/**
|
|
11501
|
+
* An integer color channel value (0-255)
|
|
11502
|
+
*/
|
|
11358
11503
|
blue: number;
|
|
11504
|
+
/**
|
|
11505
|
+
* An integer color channel value (0-255)
|
|
11506
|
+
*/
|
|
11359
11507
|
alpha: number;
|
|
11360
11508
|
};
|
|
11361
|
-
|
|
11509
|
+
/**
|
|
11510
|
+
* An RGBA color value
|
|
11511
|
+
*/
|
|
11512
|
+
accent_color?: {
|
|
11513
|
+
/**
|
|
11514
|
+
* An integer color channel value (0-255)
|
|
11515
|
+
*/
|
|
11362
11516
|
red: number;
|
|
11517
|
+
/**
|
|
11518
|
+
* An integer color channel value (0-255)
|
|
11519
|
+
*/
|
|
11363
11520
|
green: number;
|
|
11521
|
+
/**
|
|
11522
|
+
* An integer color channel value (0-255)
|
|
11523
|
+
*/
|
|
11364
11524
|
blue: number;
|
|
11525
|
+
/**
|
|
11526
|
+
* An integer color channel value (0-255)
|
|
11527
|
+
*/
|
|
11365
11528
|
alpha: number;
|
|
11366
11529
|
};
|
|
11367
|
-
|
|
11530
|
+
/**
|
|
11531
|
+
* An RGBA color value
|
|
11532
|
+
*/
|
|
11533
|
+
dark_color?: {
|
|
11534
|
+
/**
|
|
11535
|
+
* An integer color channel value (0-255)
|
|
11536
|
+
*/
|
|
11368
11537
|
red: number;
|
|
11538
|
+
/**
|
|
11539
|
+
* An integer color channel value (0-255)
|
|
11540
|
+
*/
|
|
11369
11541
|
green: number;
|
|
11542
|
+
/**
|
|
11543
|
+
* An integer color channel value (0-255)
|
|
11544
|
+
*/
|
|
11370
11545
|
blue: number;
|
|
11546
|
+
/**
|
|
11547
|
+
* An integer color channel value (0-255)
|
|
11548
|
+
*/
|
|
11371
11549
|
alpha: number;
|
|
11372
11550
|
};
|
|
11373
11551
|
/**
|
|
@@ -11584,28 +11762,88 @@ export type SiteUpdateSchema = {
|
|
|
11584
11762
|
* The upload ID that is used as the logo for the project
|
|
11585
11763
|
*/
|
|
11586
11764
|
logo: string | null;
|
|
11765
|
+
/**
|
|
11766
|
+
* An RGBA color value
|
|
11767
|
+
*/
|
|
11587
11768
|
primary_color: {
|
|
11769
|
+
/**
|
|
11770
|
+
* An integer color channel value (0-255)
|
|
11771
|
+
*/
|
|
11588
11772
|
red: number;
|
|
11773
|
+
/**
|
|
11774
|
+
* An integer color channel value (0-255)
|
|
11775
|
+
*/
|
|
11589
11776
|
green: number;
|
|
11777
|
+
/**
|
|
11778
|
+
* An integer color channel value (0-255)
|
|
11779
|
+
*/
|
|
11590
11780
|
blue: number;
|
|
11781
|
+
/**
|
|
11782
|
+
* An integer color channel value (0-255)
|
|
11783
|
+
*/
|
|
11591
11784
|
alpha: number;
|
|
11592
11785
|
};
|
|
11786
|
+
/**
|
|
11787
|
+
* An RGBA color value
|
|
11788
|
+
*/
|
|
11593
11789
|
light_color: {
|
|
11790
|
+
/**
|
|
11791
|
+
* An integer color channel value (0-255)
|
|
11792
|
+
*/
|
|
11594
11793
|
red: number;
|
|
11794
|
+
/**
|
|
11795
|
+
* An integer color channel value (0-255)
|
|
11796
|
+
*/
|
|
11595
11797
|
green: number;
|
|
11798
|
+
/**
|
|
11799
|
+
* An integer color channel value (0-255)
|
|
11800
|
+
*/
|
|
11596
11801
|
blue: number;
|
|
11802
|
+
/**
|
|
11803
|
+
* An integer color channel value (0-255)
|
|
11804
|
+
*/
|
|
11597
11805
|
alpha: number;
|
|
11598
11806
|
};
|
|
11807
|
+
/**
|
|
11808
|
+
* An RGBA color value
|
|
11809
|
+
*/
|
|
11599
11810
|
accent_color: {
|
|
11811
|
+
/**
|
|
11812
|
+
* An integer color channel value (0-255)
|
|
11813
|
+
*/
|
|
11600
11814
|
red: number;
|
|
11815
|
+
/**
|
|
11816
|
+
* An integer color channel value (0-255)
|
|
11817
|
+
*/
|
|
11601
11818
|
green: number;
|
|
11819
|
+
/**
|
|
11820
|
+
* An integer color channel value (0-255)
|
|
11821
|
+
*/
|
|
11602
11822
|
blue: number;
|
|
11823
|
+
/**
|
|
11824
|
+
* An integer color channel value (0-255)
|
|
11825
|
+
*/
|
|
11603
11826
|
alpha: number;
|
|
11604
11827
|
};
|
|
11828
|
+
/**
|
|
11829
|
+
* An RGBA color value
|
|
11830
|
+
*/
|
|
11605
11831
|
dark_color?: {
|
|
11832
|
+
/**
|
|
11833
|
+
* An integer color channel value (0-255)
|
|
11834
|
+
*/
|
|
11606
11835
|
red: number;
|
|
11836
|
+
/**
|
|
11837
|
+
* An integer color channel value (0-255)
|
|
11838
|
+
*/
|
|
11607
11839
|
green: number;
|
|
11840
|
+
/**
|
|
11841
|
+
* An integer color channel value (0-255)
|
|
11842
|
+
*/
|
|
11608
11843
|
blue: number;
|
|
11844
|
+
/**
|
|
11845
|
+
* An integer color channel value (0-255)
|
|
11846
|
+
*/
|
|
11609
11847
|
alpha: number;
|
|
11610
11848
|
};
|
|
11611
11849
|
[k: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.22",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -39,11 +39,10 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@datocms/rest-client-utils": "^5.4.9",
|
|
41
41
|
"datocms-structured-text-utils": "^5.1.4",
|
|
42
|
-
"uuid": "^
|
|
42
|
+
"uuid": "^11.1.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@datocms/dashboard-client": "^5.4.
|
|
46
|
-
"@types/uuid": "^9.0.7"
|
|
45
|
+
"@datocms/dashboard-client": "^5.4.21"
|
|
47
46
|
},
|
|
48
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "8c21d021ba6d7555ce089f0f63d38bf2dbd7e12c"
|
|
49
48
|
}
|