@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
|
@@ -11557,32 +11557,125 @@ export type PublicInfoAttributes = {
|
|
|
11557
11557
|
*/
|
|
11558
11558
|
custom_i18n_messages_template_url: null | string;
|
|
11559
11559
|
/**
|
|
11560
|
-
* Specifies the color-scheme for the project
|
|
11560
|
+
* 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.
|
|
11561
11561
|
*/
|
|
11562
11562
|
theme: {
|
|
11563
|
-
|
|
11563
|
+
/**
|
|
11564
|
+
* Whether the project is using a custom color palette or a monochromatic one derived from a hue.
|
|
11565
|
+
*/
|
|
11566
|
+
type: 'custom' | 'monochromatic';
|
|
11567
|
+
/**
|
|
11568
|
+
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11569
|
+
*/
|
|
11570
|
+
hue: number | null;
|
|
11571
|
+
/**
|
|
11572
|
+
* An integer color channel value (0-255)
|
|
11573
|
+
*/
|
|
11574
|
+
color_channel?: number;
|
|
11575
|
+
/**
|
|
11576
|
+
* An RGBA color value
|
|
11577
|
+
*/
|
|
11578
|
+
color?: {
|
|
11579
|
+
/**
|
|
11580
|
+
* An integer color channel value (0-255)
|
|
11581
|
+
*/
|
|
11564
11582
|
red: number;
|
|
11583
|
+
/**
|
|
11584
|
+
* An integer color channel value (0-255)
|
|
11585
|
+
*/
|
|
11565
11586
|
green: number;
|
|
11587
|
+
/**
|
|
11588
|
+
* An integer color channel value (0-255)
|
|
11589
|
+
*/
|
|
11566
11590
|
blue: number;
|
|
11591
|
+
/**
|
|
11592
|
+
* An integer color channel value (0-255)
|
|
11593
|
+
*/
|
|
11567
11594
|
alpha: number;
|
|
11568
11595
|
[k: string]: unknown;
|
|
11569
11596
|
};
|
|
11570
|
-
|
|
11597
|
+
/**
|
|
11598
|
+
* An RGBA color value
|
|
11599
|
+
*/
|
|
11600
|
+
primary_color?: {
|
|
11601
|
+
/**
|
|
11602
|
+
* An integer color channel value (0-255)
|
|
11603
|
+
*/
|
|
11571
11604
|
red: number;
|
|
11605
|
+
/**
|
|
11606
|
+
* An integer color channel value (0-255)
|
|
11607
|
+
*/
|
|
11572
11608
|
green: number;
|
|
11609
|
+
/**
|
|
11610
|
+
* An integer color channel value (0-255)
|
|
11611
|
+
*/
|
|
11573
11612
|
blue: number;
|
|
11613
|
+
/**
|
|
11614
|
+
* An integer color channel value (0-255)
|
|
11615
|
+
*/
|
|
11574
11616
|
alpha: number;
|
|
11575
11617
|
};
|
|
11576
|
-
|
|
11618
|
+
/**
|
|
11619
|
+
* An RGBA color value
|
|
11620
|
+
*/
|
|
11621
|
+
light_color?: {
|
|
11622
|
+
/**
|
|
11623
|
+
* An integer color channel value (0-255)
|
|
11624
|
+
*/
|
|
11577
11625
|
red: number;
|
|
11626
|
+
/**
|
|
11627
|
+
* An integer color channel value (0-255)
|
|
11628
|
+
*/
|
|
11578
11629
|
green: number;
|
|
11630
|
+
/**
|
|
11631
|
+
* An integer color channel value (0-255)
|
|
11632
|
+
*/
|
|
11579
11633
|
blue: number;
|
|
11634
|
+
/**
|
|
11635
|
+
* An integer color channel value (0-255)
|
|
11636
|
+
*/
|
|
11580
11637
|
alpha: number;
|
|
11581
11638
|
};
|
|
11582
|
-
|
|
11639
|
+
/**
|
|
11640
|
+
* An RGBA color value
|
|
11641
|
+
*/
|
|
11642
|
+
accent_color?: {
|
|
11643
|
+
/**
|
|
11644
|
+
* An integer color channel value (0-255)
|
|
11645
|
+
*/
|
|
11646
|
+
red: number;
|
|
11647
|
+
/**
|
|
11648
|
+
* An integer color channel value (0-255)
|
|
11649
|
+
*/
|
|
11650
|
+
green: number;
|
|
11651
|
+
/**
|
|
11652
|
+
* An integer color channel value (0-255)
|
|
11653
|
+
*/
|
|
11654
|
+
blue: number;
|
|
11655
|
+
/**
|
|
11656
|
+
* An integer color channel value (0-255)
|
|
11657
|
+
*/
|
|
11658
|
+
alpha: number;
|
|
11659
|
+
};
|
|
11660
|
+
/**
|
|
11661
|
+
* An RGBA color value
|
|
11662
|
+
*/
|
|
11663
|
+
dark_color?: {
|
|
11664
|
+
/**
|
|
11665
|
+
* An integer color channel value (0-255)
|
|
11666
|
+
*/
|
|
11583
11667
|
red: number;
|
|
11668
|
+
/**
|
|
11669
|
+
* An integer color channel value (0-255)
|
|
11670
|
+
*/
|
|
11584
11671
|
green: number;
|
|
11672
|
+
/**
|
|
11673
|
+
* An integer color channel value (0-255)
|
|
11674
|
+
*/
|
|
11585
11675
|
blue: number;
|
|
11676
|
+
/**
|
|
11677
|
+
* An integer color channel value (0-255)
|
|
11678
|
+
*/
|
|
11586
11679
|
alpha: number;
|
|
11587
11680
|
};
|
|
11588
11681
|
};
|
|
@@ -11947,7 +12040,7 @@ export type SiteAttributes = {
|
|
|
11947
12040
|
};
|
|
11948
12041
|
};
|
|
11949
12042
|
/**
|
|
11950
|
-
* Specifies the theme to use in administrative area
|
|
12043
|
+
* 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.
|
|
11951
12044
|
*/
|
|
11952
12045
|
theme: {
|
|
11953
12046
|
/**
|
|
@@ -11958,28 +12051,113 @@ export type SiteAttributes = {
|
|
|
11958
12051
|
* If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.
|
|
11959
12052
|
*/
|
|
11960
12053
|
hue: number | null;
|
|
11961
|
-
|
|
12054
|
+
/**
|
|
12055
|
+
* An integer color channel value (0-255)
|
|
12056
|
+
*/
|
|
12057
|
+
color_channel?: number;
|
|
12058
|
+
/**
|
|
12059
|
+
* An RGBA color value
|
|
12060
|
+
*/
|
|
12061
|
+
color?: {
|
|
12062
|
+
/**
|
|
12063
|
+
* An integer color channel value (0-255)
|
|
12064
|
+
*/
|
|
11962
12065
|
red: number;
|
|
12066
|
+
/**
|
|
12067
|
+
* An integer color channel value (0-255)
|
|
12068
|
+
*/
|
|
11963
12069
|
green: number;
|
|
12070
|
+
/**
|
|
12071
|
+
* An integer color channel value (0-255)
|
|
12072
|
+
*/
|
|
11964
12073
|
blue: number;
|
|
12074
|
+
/**
|
|
12075
|
+
* An integer color channel value (0-255)
|
|
12076
|
+
*/
|
|
11965
12077
|
alpha: number;
|
|
11966
12078
|
};
|
|
11967
|
-
|
|
12079
|
+
/**
|
|
12080
|
+
* An RGBA color value
|
|
12081
|
+
*/
|
|
12082
|
+
primary_color?: {
|
|
12083
|
+
/**
|
|
12084
|
+
* An integer color channel value (0-255)
|
|
12085
|
+
*/
|
|
11968
12086
|
red: number;
|
|
12087
|
+
/**
|
|
12088
|
+
* An integer color channel value (0-255)
|
|
12089
|
+
*/
|
|
12090
|
+
green: number;
|
|
12091
|
+
/**
|
|
12092
|
+
* An integer color channel value (0-255)
|
|
12093
|
+
*/
|
|
12094
|
+
blue: number;
|
|
12095
|
+
/**
|
|
12096
|
+
* An integer color channel value (0-255)
|
|
12097
|
+
*/
|
|
12098
|
+
alpha: number;
|
|
12099
|
+
};
|
|
12100
|
+
/**
|
|
12101
|
+
* An RGBA color value
|
|
12102
|
+
*/
|
|
12103
|
+
light_color?: {
|
|
12104
|
+
/**
|
|
12105
|
+
* An integer color channel value (0-255)
|
|
12106
|
+
*/
|
|
12107
|
+
red: number;
|
|
12108
|
+
/**
|
|
12109
|
+
* An integer color channel value (0-255)
|
|
12110
|
+
*/
|
|
11969
12111
|
green: number;
|
|
12112
|
+
/**
|
|
12113
|
+
* An integer color channel value (0-255)
|
|
12114
|
+
*/
|
|
11970
12115
|
blue: number;
|
|
12116
|
+
/**
|
|
12117
|
+
* An integer color channel value (0-255)
|
|
12118
|
+
*/
|
|
11971
12119
|
alpha: number;
|
|
11972
12120
|
};
|
|
11973
|
-
|
|
12121
|
+
/**
|
|
12122
|
+
* An RGBA color value
|
|
12123
|
+
*/
|
|
12124
|
+
accent_color?: {
|
|
12125
|
+
/**
|
|
12126
|
+
* An integer color channel value (0-255)
|
|
12127
|
+
*/
|
|
11974
12128
|
red: number;
|
|
12129
|
+
/**
|
|
12130
|
+
* An integer color channel value (0-255)
|
|
12131
|
+
*/
|
|
11975
12132
|
green: number;
|
|
12133
|
+
/**
|
|
12134
|
+
* An integer color channel value (0-255)
|
|
12135
|
+
*/
|
|
11976
12136
|
blue: number;
|
|
12137
|
+
/**
|
|
12138
|
+
* An integer color channel value (0-255)
|
|
12139
|
+
*/
|
|
11977
12140
|
alpha: number;
|
|
11978
12141
|
};
|
|
11979
|
-
|
|
12142
|
+
/**
|
|
12143
|
+
* An RGBA color value
|
|
12144
|
+
*/
|
|
12145
|
+
dark_color?: {
|
|
12146
|
+
/**
|
|
12147
|
+
* An integer color channel value (0-255)
|
|
12148
|
+
*/
|
|
11980
12149
|
red: number;
|
|
12150
|
+
/**
|
|
12151
|
+
* An integer color channel value (0-255)
|
|
12152
|
+
*/
|
|
11981
12153
|
green: number;
|
|
12154
|
+
/**
|
|
12155
|
+
* An integer color channel value (0-255)
|
|
12156
|
+
*/
|
|
11982
12157
|
blue: number;
|
|
12158
|
+
/**
|
|
12159
|
+
* An integer color channel value (0-255)
|
|
12160
|
+
*/
|
|
11983
12161
|
alpha: number;
|
|
11984
12162
|
};
|
|
11985
12163
|
/**
|
|
@@ -12198,28 +12376,88 @@ export type SiteUpdateSchema = {
|
|
|
12198
12376
|
* The upload ID that is used as the logo for the project
|
|
12199
12377
|
*/
|
|
12200
12378
|
logo: string | null;
|
|
12379
|
+
/**
|
|
12380
|
+
* An RGBA color value
|
|
12381
|
+
*/
|
|
12201
12382
|
primary_color: {
|
|
12383
|
+
/**
|
|
12384
|
+
* An integer color channel value (0-255)
|
|
12385
|
+
*/
|
|
12202
12386
|
red: number;
|
|
12387
|
+
/**
|
|
12388
|
+
* An integer color channel value (0-255)
|
|
12389
|
+
*/
|
|
12203
12390
|
green: number;
|
|
12391
|
+
/**
|
|
12392
|
+
* An integer color channel value (0-255)
|
|
12393
|
+
*/
|
|
12204
12394
|
blue: number;
|
|
12395
|
+
/**
|
|
12396
|
+
* An integer color channel value (0-255)
|
|
12397
|
+
*/
|
|
12205
12398
|
alpha: number;
|
|
12206
12399
|
};
|
|
12400
|
+
/**
|
|
12401
|
+
* An RGBA color value
|
|
12402
|
+
*/
|
|
12207
12403
|
light_color: {
|
|
12404
|
+
/**
|
|
12405
|
+
* An integer color channel value (0-255)
|
|
12406
|
+
*/
|
|
12208
12407
|
red: number;
|
|
12408
|
+
/**
|
|
12409
|
+
* An integer color channel value (0-255)
|
|
12410
|
+
*/
|
|
12209
12411
|
green: number;
|
|
12412
|
+
/**
|
|
12413
|
+
* An integer color channel value (0-255)
|
|
12414
|
+
*/
|
|
12210
12415
|
blue: number;
|
|
12416
|
+
/**
|
|
12417
|
+
* An integer color channel value (0-255)
|
|
12418
|
+
*/
|
|
12211
12419
|
alpha: number;
|
|
12212
12420
|
};
|
|
12421
|
+
/**
|
|
12422
|
+
* An RGBA color value
|
|
12423
|
+
*/
|
|
12213
12424
|
accent_color: {
|
|
12425
|
+
/**
|
|
12426
|
+
* An integer color channel value (0-255)
|
|
12427
|
+
*/
|
|
12214
12428
|
red: number;
|
|
12429
|
+
/**
|
|
12430
|
+
* An integer color channel value (0-255)
|
|
12431
|
+
*/
|
|
12215
12432
|
green: number;
|
|
12433
|
+
/**
|
|
12434
|
+
* An integer color channel value (0-255)
|
|
12435
|
+
*/
|
|
12216
12436
|
blue: number;
|
|
12437
|
+
/**
|
|
12438
|
+
* An integer color channel value (0-255)
|
|
12439
|
+
*/
|
|
12217
12440
|
alpha: number;
|
|
12218
12441
|
};
|
|
12442
|
+
/**
|
|
12443
|
+
* An RGBA color value
|
|
12444
|
+
*/
|
|
12219
12445
|
dark_color?: {
|
|
12446
|
+
/**
|
|
12447
|
+
* An integer color channel value (0-255)
|
|
12448
|
+
*/
|
|
12220
12449
|
red: number;
|
|
12450
|
+
/**
|
|
12451
|
+
* An integer color channel value (0-255)
|
|
12452
|
+
*/
|
|
12221
12453
|
green: number;
|
|
12454
|
+
/**
|
|
12455
|
+
* An integer color channel value (0-255)
|
|
12456
|
+
*/
|
|
12222
12457
|
blue: number;
|
|
12458
|
+
/**
|
|
12459
|
+
* An integer color channel value (0-255)
|
|
12460
|
+
*/
|
|
12223
12461
|
alpha: number;
|
|
12224
12462
|
};
|
|
12225
12463
|
[k: string]: unknown;
|
package/src/utilities/id.ts
CHANGED
|
@@ -76,7 +76,7 @@ export function isValidId(id: string) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export function generateId() {
|
|
79
|
-
const bytes = v4(
|
|
79
|
+
const bytes = v4(undefined, new Uint8Array(16));
|
|
80
80
|
|
|
81
81
|
// Here we unset the first bit to ensure [A-Za-f] as the first char.
|
|
82
82
|
//
|