@datocms/cma-client 3.0.0 → 3.0.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 +6 -0
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +12 -0
- package/dist/types/generated/SchemaTypes.d.ts +6 -0
- package/dist/types/generated/SimpleSchemaTypes.d.ts +12 -0
- package/package.json +4 -4
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +6 -0
- package/src/generated/SimpleSchemaTypes.ts +12 -0
|
@@ -127,7 +127,7 @@ var Client = /** @class */ (function () {
|
|
|
127
127
|
});
|
|
128
128
|
Client.prototype.request = function (options) {
|
|
129
129
|
var _this = this;
|
|
130
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.0.
|
|
130
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.0.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
131
131
|
? { 'X-Environment': this.config.environment }
|
|
132
132
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
133
133
|
return _this.jobResultsFetcher
|
|
@@ -101,7 +101,7 @@ var Client = /** @class */ (function () {
|
|
|
101
101
|
});
|
|
102
102
|
Client.prototype.request = function (options) {
|
|
103
103
|
var _this = this;
|
|
104
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.0.
|
|
104
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.0.4', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
105
105
|
? { 'X-Environment': this.config.environment }
|
|
106
106
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
107
107
|
return _this.jobResultsFetcher
|
|
@@ -7486,6 +7486,12 @@ export declare type UploadRequestAttributes = {
|
|
|
7486
7486
|
* The URL to use to upload the file with a direct PUT request
|
|
7487
7487
|
*/
|
|
7488
7488
|
url: string;
|
|
7489
|
+
/**
|
|
7490
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7491
|
+
*/
|
|
7492
|
+
request_headers: {
|
|
7493
|
+
[k: string]: unknown;
|
|
7494
|
+
};
|
|
7489
7495
|
[k: string]: unknown;
|
|
7490
7496
|
};
|
|
7491
7497
|
/**
|
|
@@ -7349,6 +7349,12 @@ export declare type UploadRequest = {
|
|
|
7349
7349
|
* The URL to use to upload the file with a direct PUT request
|
|
7350
7350
|
*/
|
|
7351
7351
|
url: string;
|
|
7352
|
+
/**
|
|
7353
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7354
|
+
*/
|
|
7355
|
+
request_headers: {
|
|
7356
|
+
[k: string]: unknown;
|
|
7357
|
+
};
|
|
7352
7358
|
};
|
|
7353
7359
|
export declare type UploadRequestCreateTargetSchema = UploadRequest;
|
|
7354
7360
|
/**
|
|
@@ -7362,6 +7368,12 @@ export declare type UploadRequestAttributes = {
|
|
|
7362
7368
|
* The URL to use to upload the file with a direct PUT request
|
|
7363
7369
|
*/
|
|
7364
7370
|
url: string;
|
|
7371
|
+
/**
|
|
7372
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7373
|
+
*/
|
|
7374
|
+
request_headers: {
|
|
7375
|
+
[k: string]: unknown;
|
|
7376
|
+
};
|
|
7365
7377
|
[k: string]: unknown;
|
|
7366
7378
|
};
|
|
7367
7379
|
/**
|
|
@@ -7486,6 +7486,12 @@ export declare type UploadRequestAttributes = {
|
|
|
7486
7486
|
* The URL to use to upload the file with a direct PUT request
|
|
7487
7487
|
*/
|
|
7488
7488
|
url: string;
|
|
7489
|
+
/**
|
|
7490
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7491
|
+
*/
|
|
7492
|
+
request_headers: {
|
|
7493
|
+
[k: string]: unknown;
|
|
7494
|
+
};
|
|
7489
7495
|
[k: string]: unknown;
|
|
7490
7496
|
};
|
|
7491
7497
|
/**
|
|
@@ -7349,6 +7349,12 @@ export declare type UploadRequest = {
|
|
|
7349
7349
|
* The URL to use to upload the file with a direct PUT request
|
|
7350
7350
|
*/
|
|
7351
7351
|
url: string;
|
|
7352
|
+
/**
|
|
7353
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7354
|
+
*/
|
|
7355
|
+
request_headers: {
|
|
7356
|
+
[k: string]: unknown;
|
|
7357
|
+
};
|
|
7352
7358
|
};
|
|
7353
7359
|
export declare type UploadRequestCreateTargetSchema = UploadRequest;
|
|
7354
7360
|
/**
|
|
@@ -7362,6 +7368,12 @@ export declare type UploadRequestAttributes = {
|
|
|
7362
7368
|
* The URL to use to upload the file with a direct PUT request
|
|
7363
7369
|
*/
|
|
7364
7370
|
url: string;
|
|
7371
|
+
/**
|
|
7372
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7373
|
+
*/
|
|
7374
|
+
request_headers: {
|
|
7375
|
+
[k: string]: unknown;
|
|
7376
|
+
};
|
|
7365
7377
|
[k: string]: unknown;
|
|
7366
7378
|
};
|
|
7367
7379
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@datocms/rest-client-utils": "^3.0.
|
|
40
|
+
"@datocms/rest-client-utils": "^3.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^3.0.
|
|
43
|
+
"@datocms/dashboard-client": "^3.0.4"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "d6bbcf5972f0854f49bbf2e04270de9596287092"
|
|
46
46
|
}
|
package/src/generated/Client.ts
CHANGED
|
@@ -135,7 +135,7 @@ export class Client {
|
|
|
135
135
|
...this.config,
|
|
136
136
|
...options,
|
|
137
137
|
logFn: this.config.logFn || console.log,
|
|
138
|
-
userAgent: '@datocms/cma-client v3.0.
|
|
138
|
+
userAgent: '@datocms/cma-client v3.0.4',
|
|
139
139
|
baseUrl: this.baseUrl,
|
|
140
140
|
preCallStack: new Error().stack,
|
|
141
141
|
extraHeaders: {
|
|
@@ -8069,6 +8069,12 @@ export type UploadRequestAttributes = {
|
|
|
8069
8069
|
* The URL to use to upload the file with a direct PUT request
|
|
8070
8070
|
*/
|
|
8071
8071
|
url: string;
|
|
8072
|
+
/**
|
|
8073
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
8074
|
+
*/
|
|
8075
|
+
request_headers: {
|
|
8076
|
+
[k: string]: unknown;
|
|
8077
|
+
};
|
|
8072
8078
|
[k: string]: unknown;
|
|
8073
8079
|
};
|
|
8074
8080
|
|
|
@@ -7906,6 +7906,12 @@ export type UploadRequest = {
|
|
|
7906
7906
|
* The URL to use to upload the file with a direct PUT request
|
|
7907
7907
|
*/
|
|
7908
7908
|
url: string;
|
|
7909
|
+
/**
|
|
7910
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7911
|
+
*/
|
|
7912
|
+
request_headers: {
|
|
7913
|
+
[k: string]: unknown;
|
|
7914
|
+
};
|
|
7909
7915
|
};
|
|
7910
7916
|
export type UploadRequestCreateTargetSchema = UploadRequest;
|
|
7911
7917
|
/**
|
|
@@ -7919,6 +7925,12 @@ export type UploadRequestAttributes = {
|
|
|
7919
7925
|
* The URL to use to upload the file with a direct PUT request
|
|
7920
7926
|
*/
|
|
7921
7927
|
url: string;
|
|
7928
|
+
/**
|
|
7929
|
+
* Specifies the additional headers that need to be included in the direct PUT upload request
|
|
7930
|
+
*/
|
|
7931
|
+
request_headers: {
|
|
7932
|
+
[k: string]: unknown;
|
|
7933
|
+
};
|
|
7922
7934
|
[k: string]: unknown;
|
|
7923
7935
|
};
|
|
7924
7936
|
|