@datocms/cma-client 1.2.0 → 1.2.2
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 +2 -2
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +2 -2
- package/dist/types/generated/SchemaTypes.d.ts +2 -2
- package/dist/types/generated/SimpleSchemaTypes.d.ts +2 -2
- package/package.json +4 -4
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +2 -2
- package/src/generated/SimpleSchemaTypes.ts +2 -2
|
@@ -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 v1.2.
|
|
130
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.2.2', 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 v1.2.
|
|
104
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.2.2', 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
|
|
@@ -9360,8 +9360,8 @@ export declare type SiteAttributes = {
|
|
|
9360
9360
|
* via the `definition` "relationships".
|
|
9361
9361
|
*/
|
|
9362
9362
|
export declare type SiteRelationships = {
|
|
9363
|
-
account:
|
|
9364
|
-
data: AccountData;
|
|
9363
|
+
account: {
|
|
9364
|
+
data: null | AccountData;
|
|
9365
9365
|
};
|
|
9366
9366
|
owner: {
|
|
9367
9367
|
data: AccountData | OrganizationData;
|
|
@@ -9148,7 +9148,7 @@ export declare type Site = {
|
|
|
9148
9148
|
twitter_account?: null | string;
|
|
9149
9149
|
[k: string]: unknown;
|
|
9150
9150
|
} | null;
|
|
9151
|
-
account: AccountData;
|
|
9151
|
+
account: null | AccountData;
|
|
9152
9152
|
owner: AccountData | OrganizationData;
|
|
9153
9153
|
/**
|
|
9154
9154
|
* The list item types for the site
|
|
@@ -9317,7 +9317,7 @@ export declare type SiteAttributes = {
|
|
|
9317
9317
|
* via the `definition` "relationships".
|
|
9318
9318
|
*/
|
|
9319
9319
|
export declare type SiteRelationships = {
|
|
9320
|
-
account: AccountData;
|
|
9320
|
+
account: null | AccountData;
|
|
9321
9321
|
owner: AccountData | OrganizationData;
|
|
9322
9322
|
/**
|
|
9323
9323
|
* The list item types for the site
|
|
@@ -9360,8 +9360,8 @@ export declare type SiteAttributes = {
|
|
|
9360
9360
|
* via the `definition` "relationships".
|
|
9361
9361
|
*/
|
|
9362
9362
|
export declare type SiteRelationships = {
|
|
9363
|
-
account:
|
|
9364
|
-
data: AccountData;
|
|
9363
|
+
account: {
|
|
9364
|
+
data: null | AccountData;
|
|
9365
9365
|
};
|
|
9366
9366
|
owner: {
|
|
9367
9367
|
data: AccountData | OrganizationData;
|
|
@@ -9148,7 +9148,7 @@ export declare type Site = {
|
|
|
9148
9148
|
twitter_account?: null | string;
|
|
9149
9149
|
[k: string]: unknown;
|
|
9150
9150
|
} | null;
|
|
9151
|
-
account: AccountData;
|
|
9151
|
+
account: null | AccountData;
|
|
9152
9152
|
owner: AccountData | OrganizationData;
|
|
9153
9153
|
/**
|
|
9154
9154
|
* The list item types for the site
|
|
@@ -9317,7 +9317,7 @@ export declare type SiteAttributes = {
|
|
|
9317
9317
|
* via the `definition` "relationships".
|
|
9318
9318
|
*/
|
|
9319
9319
|
export declare type SiteRelationships = {
|
|
9320
|
-
account: AccountData;
|
|
9320
|
+
account: null | AccountData;
|
|
9321
9321
|
owner: AccountData | OrganizationData;
|
|
9322
9322
|
/**
|
|
9323
9323
|
* The list item types for the site
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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": "^1.1.
|
|
40
|
+
"@datocms/rest-client-utils": "^1.1.23"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^1.2.
|
|
43
|
+
"@datocms/dashboard-client": "^1.2.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "a4b15eeed7c2de34369e7844caac98833cb7331e"
|
|
46
46
|
}
|
package/src/generated/Client.ts
CHANGED
|
@@ -133,7 +133,7 @@ export class Client {
|
|
|
133
133
|
...this.config,
|
|
134
134
|
...options,
|
|
135
135
|
logFn: this.config.logFn || console.log,
|
|
136
|
-
userAgent: '@datocms/cma-client v1.2.
|
|
136
|
+
userAgent: '@datocms/cma-client v1.2.2',
|
|
137
137
|
baseUrl: this.baseUrl,
|
|
138
138
|
preCallStack: new Error().stack,
|
|
139
139
|
extraHeaders: {
|
|
@@ -10071,8 +10071,8 @@ export type SiteAttributes = {
|
|
|
10071
10071
|
* via the `definition` "relationships".
|
|
10072
10072
|
*/
|
|
10073
10073
|
export type SiteRelationships = {
|
|
10074
|
-
account:
|
|
10075
|
-
data: AccountData;
|
|
10074
|
+
account: {
|
|
10075
|
+
data: null | AccountData;
|
|
10076
10076
|
};
|
|
10077
10077
|
owner: {
|
|
10078
10078
|
data: AccountData | OrganizationData;
|
|
@@ -9764,7 +9764,7 @@ export type Site = {
|
|
|
9764
9764
|
twitter_account?: null | string;
|
|
9765
9765
|
[k: string]: unknown;
|
|
9766
9766
|
} | null;
|
|
9767
|
-
account: AccountData;
|
|
9767
|
+
account: null | AccountData;
|
|
9768
9768
|
owner: AccountData | OrganizationData;
|
|
9769
9769
|
/**
|
|
9770
9770
|
* The list item types for the site
|
|
@@ -9936,7 +9936,7 @@ export type SiteAttributes = {
|
|
|
9936
9936
|
* via the `definition` "relationships".
|
|
9937
9937
|
*/
|
|
9938
9938
|
export type SiteRelationships = {
|
|
9939
|
-
account: AccountData;
|
|
9939
|
+
account: null | AccountData;
|
|
9940
9940
|
owner: AccountData | OrganizationData;
|
|
9941
9941
|
/**
|
|
9942
9942
|
* The list item types for the site
|