@datocms/cma-client 5.4.17 → 5.4.18
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/ApiTypes.d.ts +2 -2
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +3 -3
- package/dist/types/generated/ApiTypes.d.ts +2 -2
- package/dist/types/generated/RawApiTypes.d.ts +3 -3
- package/package.json +2 -2
- package/src/generated/ApiTypes.ts +2 -2
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +3 -3
|
@@ -90,7 +90,7 @@ class Client {
|
|
|
90
90
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
91
91
|
}
|
|
92
92
|
request(options) {
|
|
93
|
-
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.
|
|
93
|
+
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.18', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
94
94
|
? { 'X-Environment': this.config.environment }
|
|
95
95
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
96
96
|
return this.jobResultsFetcher
|
|
@@ -3423,7 +3423,7 @@ export type AccessTokenCreateSchema = {
|
|
|
3423
3423
|
* Whether this API token can access the Content Management API
|
|
3424
3424
|
*/
|
|
3425
3425
|
can_access_cma: boolean;
|
|
3426
|
-
role: RoleData
|
|
3426
|
+
role: RoleData;
|
|
3427
3427
|
};
|
|
3428
3428
|
/**
|
|
3429
3429
|
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
@@ -3448,7 +3448,7 @@ export type AccessTokenUpdateSchema = {
|
|
|
3448
3448
|
* Whether this API token can access the Content Management API
|
|
3449
3449
|
*/
|
|
3450
3450
|
can_access_cma: boolean;
|
|
3451
|
-
role
|
|
3451
|
+
role?: RoleData;
|
|
3452
3452
|
};
|
|
3453
3453
|
/**
|
|
3454
3454
|
* DatoCMS account
|
|
@@ -64,7 +64,7 @@ export class Client {
|
|
|
64
64
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
65
65
|
}
|
|
66
66
|
request(options) {
|
|
67
|
-
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.
|
|
67
|
+
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.18', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
68
68
|
? { 'X-Environment': this.config.environment }
|
|
69
69
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
70
70
|
return this.jobResultsFetcher
|
|
@@ -3026,7 +3026,7 @@ export type AccessTokenCreateSchema = {
|
|
|
3026
3026
|
* Role
|
|
3027
3027
|
*/
|
|
3028
3028
|
role: {
|
|
3029
|
-
data: RoleData
|
|
3029
|
+
data: RoleData;
|
|
3030
3030
|
};
|
|
3031
3031
|
};
|
|
3032
3032
|
};
|
|
@@ -3064,12 +3064,12 @@ export type AccessTokenUpdateSchema = {
|
|
|
3064
3064
|
*/
|
|
3065
3065
|
can_access_cma: boolean;
|
|
3066
3066
|
};
|
|
3067
|
-
relationships
|
|
3067
|
+
relationships?: {
|
|
3068
3068
|
/**
|
|
3069
3069
|
* Role
|
|
3070
3070
|
*/
|
|
3071
3071
|
role: {
|
|
3072
|
-
data: RoleData
|
|
3072
|
+
data: RoleData;
|
|
3073
3073
|
};
|
|
3074
3074
|
};
|
|
3075
3075
|
};
|
|
@@ -3423,7 +3423,7 @@ export type AccessTokenCreateSchema = {
|
|
|
3423
3423
|
* Whether this API token can access the Content Management API
|
|
3424
3424
|
*/
|
|
3425
3425
|
can_access_cma: boolean;
|
|
3426
|
-
role: RoleData
|
|
3426
|
+
role: RoleData;
|
|
3427
3427
|
};
|
|
3428
3428
|
/**
|
|
3429
3429
|
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
@@ -3448,7 +3448,7 @@ export type AccessTokenUpdateSchema = {
|
|
|
3448
3448
|
* Whether this API token can access the Content Management API
|
|
3449
3449
|
*/
|
|
3450
3450
|
can_access_cma: boolean;
|
|
3451
|
-
role
|
|
3451
|
+
role?: RoleData;
|
|
3452
3452
|
};
|
|
3453
3453
|
/**
|
|
3454
3454
|
* DatoCMS account
|
|
@@ -3026,7 +3026,7 @@ export type AccessTokenCreateSchema = {
|
|
|
3026
3026
|
* Role
|
|
3027
3027
|
*/
|
|
3028
3028
|
role: {
|
|
3029
|
-
data: RoleData
|
|
3029
|
+
data: RoleData;
|
|
3030
3030
|
};
|
|
3031
3031
|
};
|
|
3032
3032
|
};
|
|
@@ -3064,12 +3064,12 @@ export type AccessTokenUpdateSchema = {
|
|
|
3064
3064
|
*/
|
|
3065
3065
|
can_access_cma: boolean;
|
|
3066
3066
|
};
|
|
3067
|
-
relationships
|
|
3067
|
+
relationships?: {
|
|
3068
3068
|
/**
|
|
3069
3069
|
* Role
|
|
3070
3070
|
*/
|
|
3071
3071
|
role: {
|
|
3072
|
-
data: RoleData
|
|
3072
|
+
data: RoleData;
|
|
3073
3073
|
};
|
|
3074
3074
|
};
|
|
3075
3075
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.18",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@datocms/dashboard-client": "^5.4.9",
|
|
46
46
|
"@types/uuid": "^9.0.7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4f7d64737c1abd7cb2568604a99f2dd0eda6020b"
|
|
49
49
|
}
|
|
@@ -3733,7 +3733,7 @@ export type AccessTokenCreateSchema = {
|
|
|
3733
3733
|
* Whether this API token can access the Content Management API
|
|
3734
3734
|
*/
|
|
3735
3735
|
can_access_cma: boolean;
|
|
3736
|
-
role: RoleData
|
|
3736
|
+
role: RoleData;
|
|
3737
3737
|
};
|
|
3738
3738
|
/**
|
|
3739
3739
|
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
@@ -3758,7 +3758,7 @@ export type AccessTokenUpdateSchema = {
|
|
|
3758
3758
|
* Whether this API token can access the Content Management API
|
|
3759
3759
|
*/
|
|
3760
3760
|
can_access_cma: boolean;
|
|
3761
|
-
role
|
|
3761
|
+
role?: RoleData;
|
|
3762
3762
|
};
|
|
3763
3763
|
/**
|
|
3764
3764
|
* DatoCMS account
|
package/src/generated/Client.ts
CHANGED
|
@@ -151,7 +151,7 @@ export class Client {
|
|
|
151
151
|
...this.config,
|
|
152
152
|
...options,
|
|
153
153
|
logFn: this.config.logFn || console.log,
|
|
154
|
-
userAgent: '@datocms/cma-client v5.4.
|
|
154
|
+
userAgent: '@datocms/cma-client v5.4.18',
|
|
155
155
|
baseUrl: this.baseUrl,
|
|
156
156
|
preCallStack: new Error().stack,
|
|
157
157
|
extraHeaders: {
|
|
@@ -3260,7 +3260,7 @@ export type AccessTokenCreateSchema = {
|
|
|
3260
3260
|
* Role
|
|
3261
3261
|
*/
|
|
3262
3262
|
role: {
|
|
3263
|
-
data: RoleData
|
|
3263
|
+
data: RoleData;
|
|
3264
3264
|
};
|
|
3265
3265
|
};
|
|
3266
3266
|
};
|
|
@@ -3298,12 +3298,12 @@ export type AccessTokenUpdateSchema = {
|
|
|
3298
3298
|
*/
|
|
3299
3299
|
can_access_cma: boolean;
|
|
3300
3300
|
};
|
|
3301
|
-
relationships
|
|
3301
|
+
relationships?: {
|
|
3302
3302
|
/**
|
|
3303
3303
|
* Role
|
|
3304
3304
|
*/
|
|
3305
3305
|
role: {
|
|
3306
|
-
data: RoleData
|
|
3306
|
+
data: RoleData;
|
|
3307
3307
|
};
|
|
3308
3308
|
};
|
|
3309
3309
|
};
|