@datocms/cma-client 3.4.3 → 3.4.4
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 +4 -4
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +7 -7
- package/dist/types/generated/SchemaTypes.d.ts +4 -4
- package/dist/types/generated/SimpleSchemaTypes.d.ts +7 -7
- package/package.json +2 -2
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +14 -4
- package/src/generated/SimpleSchemaTypes.ts +27 -7
|
@@ -131,7 +131,7 @@ var Client = /** @class */ (function () {
|
|
|
131
131
|
});
|
|
132
132
|
Client.prototype.request = function (options) {
|
|
133
133
|
var _this = this;
|
|
134
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.
|
|
134
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
135
135
|
? { 'X-Environment': this.config.environment }
|
|
136
136
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
137
137
|
return _this.jobResultsFetcher
|
|
@@ -105,7 +105,7 @@ var Client = /** @class */ (function () {
|
|
|
105
105
|
});
|
|
106
106
|
Client.prototype.request = function (options) {
|
|
107
107
|
var _this = this;
|
|
108
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.
|
|
108
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
109
109
|
? { 'X-Environment': this.config.environment }
|
|
110
110
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
111
111
|
return _this.jobResultsFetcher
|
|
@@ -6112,7 +6112,7 @@ export type SessionRelationships = {
|
|
|
6112
6112
|
* The user associated with the session
|
|
6113
6113
|
*/
|
|
6114
6114
|
user: {
|
|
6115
|
-
data: UserData;
|
|
6115
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6116
6116
|
};
|
|
6117
6117
|
};
|
|
6118
6118
|
/**
|
|
@@ -9807,7 +9807,7 @@ export type EditingSessionRelationships = {
|
|
|
9807
9807
|
* The entity (account/editor/access token) who has accessed the record
|
|
9808
9808
|
*/
|
|
9809
9809
|
editor: {
|
|
9810
|
-
data: AccountData | AccessTokenData | UserData;
|
|
9810
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9811
9811
|
};
|
|
9812
9812
|
};
|
|
9813
9813
|
/**
|
|
@@ -10698,7 +10698,7 @@ export type SiteAttributes = {
|
|
|
10698
10698
|
/**
|
|
10699
10699
|
* Specifies the color space of the output image
|
|
10700
10700
|
*/
|
|
10701
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10701
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10702
10702
|
};
|
|
10703
10703
|
/**
|
|
10704
10704
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11133,7 +11133,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
11133
11133
|
/**
|
|
11134
11134
|
* Specifies the color space of the output image
|
|
11135
11135
|
*/
|
|
11136
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11136
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11137
11137
|
};
|
|
11138
11138
|
/**
|
|
11139
11139
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -6369,7 +6369,7 @@ export type FieldsetUpdateSchema = {
|
|
|
6369
6369
|
export type Session = {
|
|
6370
6370
|
id: SessionIdentity;
|
|
6371
6371
|
type: SessionType;
|
|
6372
|
-
user: UserData;
|
|
6372
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6373
6373
|
};
|
|
6374
6374
|
export type SessionCreateTargetSchema = Session;
|
|
6375
6375
|
/**
|
|
@@ -6389,7 +6389,7 @@ export type SessionData = {
|
|
|
6389
6389
|
* via the `definition` "relationships".
|
|
6390
6390
|
*/
|
|
6391
6391
|
export type SessionRelationships = {
|
|
6392
|
-
user: UserData;
|
|
6392
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6393
6393
|
};
|
|
6394
6394
|
/**
|
|
6395
6395
|
* This interface was referenced by `Session`'s JSON-Schema
|
|
@@ -9405,7 +9405,7 @@ export type EditingSession = {
|
|
|
9405
9405
|
locked_at: string | null;
|
|
9406
9406
|
active_item: ItemData;
|
|
9407
9407
|
active_item_type: ItemTypeData;
|
|
9408
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9408
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9409
9409
|
};
|
|
9410
9410
|
export type EditingSessionDestroyTargetSchema = EditingSession;
|
|
9411
9411
|
/**
|
|
@@ -9443,7 +9443,7 @@ export type EditingSessionAttributes = {
|
|
|
9443
9443
|
export type EditingSessionRelationships = {
|
|
9444
9444
|
active_item: ItemData;
|
|
9445
9445
|
active_item_type: ItemTypeData;
|
|
9446
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9446
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9447
9447
|
};
|
|
9448
9448
|
/**
|
|
9449
9449
|
* Form contents for an editing session
|
|
@@ -10234,7 +10234,7 @@ export type Site = {
|
|
|
10234
10234
|
/**
|
|
10235
10235
|
* Specifies the color space of the output image
|
|
10236
10236
|
*/
|
|
10237
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10237
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10238
10238
|
};
|
|
10239
10239
|
/**
|
|
10240
10240
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10472,7 +10472,7 @@ export type SiteAttributes = {
|
|
|
10472
10472
|
/**
|
|
10473
10473
|
* Specifies the color space of the output image
|
|
10474
10474
|
*/
|
|
10475
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10475
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10476
10476
|
};
|
|
10477
10477
|
/**
|
|
10478
10478
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10759,7 +10759,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
10759
10759
|
/**
|
|
10760
10760
|
* Specifies the color space of the output image
|
|
10761
10761
|
*/
|
|
10762
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10762
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10763
10763
|
};
|
|
10764
10764
|
/**
|
|
10765
10765
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -6112,7 +6112,7 @@ export type SessionRelationships = {
|
|
|
6112
6112
|
* The user associated with the session
|
|
6113
6113
|
*/
|
|
6114
6114
|
user: {
|
|
6115
|
-
data: UserData;
|
|
6115
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6116
6116
|
};
|
|
6117
6117
|
};
|
|
6118
6118
|
/**
|
|
@@ -9807,7 +9807,7 @@ export type EditingSessionRelationships = {
|
|
|
9807
9807
|
* The entity (account/editor/access token) who has accessed the record
|
|
9808
9808
|
*/
|
|
9809
9809
|
editor: {
|
|
9810
|
-
data: AccountData | AccessTokenData | UserData;
|
|
9810
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9811
9811
|
};
|
|
9812
9812
|
};
|
|
9813
9813
|
/**
|
|
@@ -10698,7 +10698,7 @@ export type SiteAttributes = {
|
|
|
10698
10698
|
/**
|
|
10699
10699
|
* Specifies the color space of the output image
|
|
10700
10700
|
*/
|
|
10701
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10701
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10702
10702
|
};
|
|
10703
10703
|
/**
|
|
10704
10704
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11133,7 +11133,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
11133
11133
|
/**
|
|
11134
11134
|
* Specifies the color space of the output image
|
|
11135
11135
|
*/
|
|
11136
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11136
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11137
11137
|
};
|
|
11138
11138
|
/**
|
|
11139
11139
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -6369,7 +6369,7 @@ export type FieldsetUpdateSchema = {
|
|
|
6369
6369
|
export type Session = {
|
|
6370
6370
|
id: SessionIdentity;
|
|
6371
6371
|
type: SessionType;
|
|
6372
|
-
user: UserData;
|
|
6372
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6373
6373
|
};
|
|
6374
6374
|
export type SessionCreateTargetSchema = Session;
|
|
6375
6375
|
/**
|
|
@@ -6389,7 +6389,7 @@ export type SessionData = {
|
|
|
6389
6389
|
* via the `definition` "relationships".
|
|
6390
6390
|
*/
|
|
6391
6391
|
export type SessionRelationships = {
|
|
6392
|
-
user: UserData;
|
|
6392
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6393
6393
|
};
|
|
6394
6394
|
/**
|
|
6395
6395
|
* This interface was referenced by `Session`'s JSON-Schema
|
|
@@ -9405,7 +9405,7 @@ export type EditingSession = {
|
|
|
9405
9405
|
locked_at: string | null;
|
|
9406
9406
|
active_item: ItemData;
|
|
9407
9407
|
active_item_type: ItemTypeData;
|
|
9408
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9408
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9409
9409
|
};
|
|
9410
9410
|
export type EditingSessionDestroyTargetSchema = EditingSession;
|
|
9411
9411
|
/**
|
|
@@ -9443,7 +9443,7 @@ export type EditingSessionAttributes = {
|
|
|
9443
9443
|
export type EditingSessionRelationships = {
|
|
9444
9444
|
active_item: ItemData;
|
|
9445
9445
|
active_item_type: ItemTypeData;
|
|
9446
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9446
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9447
9447
|
};
|
|
9448
9448
|
/**
|
|
9449
9449
|
* Form contents for an editing session
|
|
@@ -10234,7 +10234,7 @@ export type Site = {
|
|
|
10234
10234
|
/**
|
|
10235
10235
|
* Specifies the color space of the output image
|
|
10236
10236
|
*/
|
|
10237
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10237
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10238
10238
|
};
|
|
10239
10239
|
/**
|
|
10240
10240
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10472,7 +10472,7 @@ export type SiteAttributes = {
|
|
|
10472
10472
|
/**
|
|
10473
10473
|
* Specifies the color space of the output image
|
|
10474
10474
|
*/
|
|
10475
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10475
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10476
10476
|
};
|
|
10477
10477
|
/**
|
|
10478
10478
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10759,7 +10759,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
10759
10759
|
/**
|
|
10760
10760
|
* Specifies the color space of the output image
|
|
10761
10761
|
*/
|
|
10762
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10762
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10763
10763
|
};
|
|
10764
10764
|
/**
|
|
10765
10765
|
* Allows setting default parameters for optimizing videos served by the CDN
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@datocms/dashboard-client": "^3.4.2",
|
|
45
45
|
"@types/uuid": "^9.0.7"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "9b868ea978915fb3b9a8020239a9ce01888e31eb"
|
|
48
48
|
}
|
package/src/generated/Client.ts
CHANGED
|
@@ -147,7 +147,7 @@ export class Client {
|
|
|
147
147
|
...this.config,
|
|
148
148
|
...options,
|
|
149
149
|
logFn: this.config.logFn || console.log,
|
|
150
|
-
userAgent: '@datocms/cma-client v3.4.
|
|
150
|
+
userAgent: '@datocms/cma-client v3.4.4',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
|
@@ -6547,7 +6547,12 @@ export type SessionRelationships = {
|
|
|
6547
6547
|
* The user associated with the session
|
|
6548
6548
|
*/
|
|
6549
6549
|
user: {
|
|
6550
|
-
data:
|
|
6550
|
+
data:
|
|
6551
|
+
| AccountData
|
|
6552
|
+
| AccessTokenData
|
|
6553
|
+
| UserData
|
|
6554
|
+
| SsoUserData
|
|
6555
|
+
| OrganizationData;
|
|
6551
6556
|
};
|
|
6552
6557
|
};
|
|
6553
6558
|
|
|
@@ -10677,7 +10682,12 @@ export type EditingSessionRelationships = {
|
|
|
10677
10682
|
* The entity (account/editor/access token) who has accessed the record
|
|
10678
10683
|
*/
|
|
10679
10684
|
editor: {
|
|
10680
|
-
data:
|
|
10685
|
+
data:
|
|
10686
|
+
| AccountData
|
|
10687
|
+
| AccessTokenData
|
|
10688
|
+
| UserData
|
|
10689
|
+
| SsoUserData
|
|
10690
|
+
| OrganizationData;
|
|
10681
10691
|
};
|
|
10682
10692
|
};
|
|
10683
10693
|
|
|
@@ -11631,7 +11641,7 @@ export type SiteAttributes = {
|
|
|
11631
11641
|
/**
|
|
11632
11642
|
* Specifies the color space of the output image
|
|
11633
11643
|
*/
|
|
11634
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11644
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11635
11645
|
};
|
|
11636
11646
|
/**
|
|
11637
11647
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -12084,7 +12094,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
12084
12094
|
/**
|
|
12085
12095
|
* Specifies the color space of the output image
|
|
12086
12096
|
*/
|
|
12087
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
12097
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
12088
12098
|
};
|
|
12089
12099
|
/**
|
|
12090
12100
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -6788,7 +6788,12 @@ export type FieldsetUpdateSchema = {
|
|
|
6788
6788
|
export type Session = {
|
|
6789
6789
|
id: SessionIdentity;
|
|
6790
6790
|
type: SessionType;
|
|
6791
|
-
user:
|
|
6791
|
+
user:
|
|
6792
|
+
| AccountData
|
|
6793
|
+
| AccessTokenData
|
|
6794
|
+
| UserData
|
|
6795
|
+
| SsoUserData
|
|
6796
|
+
| OrganizationData;
|
|
6792
6797
|
};
|
|
6793
6798
|
export type SessionCreateTargetSchema = Session;
|
|
6794
6799
|
/**
|
|
@@ -6809,7 +6814,12 @@ export type SessionData = {
|
|
|
6809
6814
|
* via the `definition` "relationships".
|
|
6810
6815
|
*/
|
|
6811
6816
|
export type SessionRelationships = {
|
|
6812
|
-
user:
|
|
6817
|
+
user:
|
|
6818
|
+
| AccountData
|
|
6819
|
+
| AccessTokenData
|
|
6820
|
+
| UserData
|
|
6821
|
+
| SsoUserData
|
|
6822
|
+
| OrganizationData;
|
|
6813
6823
|
};
|
|
6814
6824
|
|
|
6815
6825
|
/**
|
|
@@ -10206,7 +10216,12 @@ export type EditingSession = {
|
|
|
10206
10216
|
locked_at: string | null;
|
|
10207
10217
|
active_item: ItemData;
|
|
10208
10218
|
active_item_type: ItemTypeData;
|
|
10209
|
-
editor:
|
|
10219
|
+
editor:
|
|
10220
|
+
| AccountData
|
|
10221
|
+
| AccessTokenData
|
|
10222
|
+
| UserData
|
|
10223
|
+
| SsoUserData
|
|
10224
|
+
| OrganizationData;
|
|
10210
10225
|
};
|
|
10211
10226
|
export type EditingSessionDestroyTargetSchema = EditingSession;
|
|
10212
10227
|
/**
|
|
@@ -10246,7 +10261,12 @@ export type EditingSessionAttributes = {
|
|
|
10246
10261
|
export type EditingSessionRelationships = {
|
|
10247
10262
|
active_item: ItemData;
|
|
10248
10263
|
active_item_type: ItemTypeData;
|
|
10249
|
-
editor:
|
|
10264
|
+
editor:
|
|
10265
|
+
| AccountData
|
|
10266
|
+
| AccessTokenData
|
|
10267
|
+
| UserData
|
|
10268
|
+
| SsoUserData
|
|
10269
|
+
| OrganizationData;
|
|
10250
10270
|
};
|
|
10251
10271
|
|
|
10252
10272
|
/**
|
|
@@ -11068,7 +11088,7 @@ export type Site = {
|
|
|
11068
11088
|
/**
|
|
11069
11089
|
* Specifies the color space of the output image
|
|
11070
11090
|
*/
|
|
11071
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11091
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11072
11092
|
};
|
|
11073
11093
|
/**
|
|
11074
11094
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11308,7 +11328,7 @@ export type SiteAttributes = {
|
|
|
11308
11328
|
/**
|
|
11309
11329
|
* Specifies the color space of the output image
|
|
11310
11330
|
*/
|
|
11311
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11331
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11312
11332
|
};
|
|
11313
11333
|
/**
|
|
11314
11334
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11600,7 +11620,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
11600
11620
|
/**
|
|
11601
11621
|
* Specifies the color space of the output image
|
|
11602
11622
|
*/
|
|
11603
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11623
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11604
11624
|
};
|
|
11605
11625
|
/**
|
|
11606
11626
|
* Allows setting default parameters for optimizing videos served by the CDN
|