@datocms/cma-client 3.3.12 → 3.3.15

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.
@@ -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.3.12', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
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.3.15', 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.3.12', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
108
+ return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.15', 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
@@ -6629,7 +6629,7 @@ export type ItemRelationships = {
6629
6629
  data: ItemTypeData;
6630
6630
  };
6631
6631
  /**
6632
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6632
+ * The entity (account/collaborator/access token/sso user) who created the record
6633
6633
  */
6634
6634
  creator?: {
6635
6635
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6723,7 +6723,7 @@ export type ItemValidateExistingSchema = {
6723
6723
  data: ItemTypeData;
6724
6724
  };
6725
6725
  /**
6726
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6726
+ * The entity (account/collaborator/access token/sso user) who created the record
6727
6727
  */
6728
6728
  creator?: {
6729
6729
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6752,7 +6752,7 @@ export type ItemValidateNewSchema = {
6752
6752
  data: ItemTypeData;
6753
6753
  };
6754
6754
  /**
6755
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6755
+ * The entity (account/collaborator/access token/sso user) who created the record
6756
6756
  */
6757
6757
  creator?: {
6758
6758
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6827,7 +6827,7 @@ export type ItemCreateSchema = {
6827
6827
  data: ItemTypeData;
6828
6828
  };
6829
6829
  /**
6830
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6830
+ * The entity (account/collaborator/access token/sso user) who created the record
6831
6831
  */
6832
6832
  creator?: {
6833
6833
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6933,7 +6933,7 @@ export type ItemUpdateSchema = {
6933
6933
  data: ItemTypeData;
6934
6934
  };
6935
6935
  /**
6936
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6936
+ * The entity (account/collaborator/access token/sso user) who created the record
6937
6937
  */
6938
6938
  creator?: {
6939
6939
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7281,7 +7281,7 @@ export type ItemVersionRelationships = {
7281
7281
  data: ItemData;
7282
7282
  };
7283
7283
  /**
7284
- * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7284
+ * The entity (account/collaborator/access token/sso user) who made this change to the record
7285
7285
  */
7286
7286
  editor: {
7287
7287
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7771,7 +7771,7 @@ export type UploadRelationships = {
7771
7771
  data: UploadCollectionData | null;
7772
7772
  };
7773
7773
  /**
7774
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7774
+ * The entity (account/collaborator/access token) who created the asset
7775
7775
  */
7776
7776
  creator: {
7777
7777
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7979,7 +7979,7 @@ export type UploadUpdateSchema = {
7979
7979
  };
7980
7980
  relationships?: {
7981
7981
  /**
7982
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7982
+ * The entity (account/collaborator/access token) who created the asset
7983
7983
  */
7984
7984
  creator?: {
7985
7985
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6629,7 +6629,7 @@ export type ItemRelationships = {
6629
6629
  data: ItemTypeData;
6630
6630
  };
6631
6631
  /**
6632
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6632
+ * The entity (account/collaborator/access token/sso user) who created the record
6633
6633
  */
6634
6634
  creator?: {
6635
6635
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6723,7 +6723,7 @@ export type ItemValidateExistingSchema = {
6723
6723
  data: ItemTypeData;
6724
6724
  };
6725
6725
  /**
6726
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6726
+ * The entity (account/collaborator/access token/sso user) who created the record
6727
6727
  */
6728
6728
  creator?: {
6729
6729
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6752,7 +6752,7 @@ export type ItemValidateNewSchema = {
6752
6752
  data: ItemTypeData;
6753
6753
  };
6754
6754
  /**
6755
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6755
+ * The entity (account/collaborator/access token/sso user) who created the record
6756
6756
  */
6757
6757
  creator?: {
6758
6758
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6827,7 +6827,7 @@ export type ItemCreateSchema = {
6827
6827
  data: ItemTypeData;
6828
6828
  };
6829
6829
  /**
6830
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6830
+ * The entity (account/collaborator/access token/sso user) who created the record
6831
6831
  */
6832
6832
  creator?: {
6833
6833
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -6933,7 +6933,7 @@ export type ItemUpdateSchema = {
6933
6933
  data: ItemTypeData;
6934
6934
  };
6935
6935
  /**
6936
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
6936
+ * The entity (account/collaborator/access token/sso user) who created the record
6937
6937
  */
6938
6938
  creator?: {
6939
6939
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7281,7 +7281,7 @@ export type ItemVersionRelationships = {
7281
7281
  data: ItemData;
7282
7282
  };
7283
7283
  /**
7284
- * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7284
+ * The entity (account/collaborator/access token/sso user) who made this change to the record
7285
7285
  */
7286
7286
  editor: {
7287
7287
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7771,7 +7771,7 @@ export type UploadRelationships = {
7771
7771
  data: UploadCollectionData | null;
7772
7772
  };
7773
7773
  /**
7774
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7774
+ * The entity (account/collaborator/access token) who created the asset
7775
7775
  */
7776
7776
  creator: {
7777
7777
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
@@ -7979,7 +7979,7 @@ export type UploadUpdateSchema = {
7979
7979
  };
7980
7980
  relationships?: {
7981
7981
  /**
7982
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
7982
+ * The entity (account/collaborator/access token) who created the asset
7983
7983
  */
7984
7984
  creator?: {
7985
7985
  data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "3.3.12",
3
+ "version": "3.3.15",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -37,12 +37,12 @@
37
37
  "url": "https://github.com/datocms/js-rest-api-clients/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@datocms/rest-client-utils": "^3.3.10",
40
+ "@datocms/rest-client-utils": "^3.3.15",
41
41
  "uuid": "^9.0.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@datocms/dashboard-client": "^3.3.11",
44
+ "@datocms/dashboard-client": "^3.3.15",
45
45
  "@types/uuid": "^9.0.7"
46
46
  },
47
- "gitHead": "e016de74da18c37175fc1e4bb8450c80aff10885"
47
+ "gitHead": "eb1ec37186876ac65ca0b21a23be00513b42b087"
48
48
  }
@@ -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.3.12',
150
+ userAgent: '@datocms/cma-client v3.3.15',
151
151
  baseUrl: this.baseUrl,
152
152
  preCallStack: new Error().stack,
153
153
  extraHeaders: {
@@ -7150,7 +7150,7 @@ export type ItemRelationships = {
7150
7150
  data: ItemTypeData;
7151
7151
  };
7152
7152
  /**
7153
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7153
+ * The entity (account/collaborator/access token/sso user) who created the record
7154
7154
  */
7155
7155
  creator?: {
7156
7156
  data:
@@ -7252,7 +7252,7 @@ export type ItemValidateExistingSchema = {
7252
7252
  data: ItemTypeData;
7253
7253
  };
7254
7254
  /**
7255
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7255
+ * The entity (account/collaborator/access token/sso user) who created the record
7256
7256
  */
7257
7257
  creator?: {
7258
7258
  data:
@@ -7287,7 +7287,7 @@ export type ItemValidateNewSchema = {
7287
7287
  data: ItemTypeData;
7288
7288
  };
7289
7289
  /**
7290
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7290
+ * The entity (account/collaborator/access token/sso user) who created the record
7291
7291
  */
7292
7292
  creator?: {
7293
7293
  data:
@@ -7368,7 +7368,7 @@ export type ItemCreateSchema = {
7368
7368
  data: ItemTypeData;
7369
7369
  };
7370
7370
  /**
7371
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7371
+ * The entity (account/collaborator/access token/sso user) who created the record
7372
7372
  */
7373
7373
  creator?: {
7374
7374
  data:
@@ -7483,7 +7483,7 @@ export type ItemUpdateSchema = {
7483
7483
  data: ItemTypeData;
7484
7484
  };
7485
7485
  /**
7486
- * The entity (account/collaborator/access token/sso user) who created the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7486
+ * The entity (account/collaborator/access token/sso user) who created the record
7487
7487
  */
7488
7488
  creator?: {
7489
7489
  data:
@@ -7862,7 +7862,7 @@ export type ItemVersionRelationships = {
7862
7862
  data: ItemData;
7863
7863
  };
7864
7864
  /**
7865
- * The entity (account/collaborator/access token/sso user) who made this change to the record. It must be an object with `type` (e.g. 'account') and `id` properties.
7865
+ * The entity (account/collaborator/access token/sso user) who made this change to the record
7866
7866
  */
7867
7867
  editor: {
7868
7868
  data:
@@ -8387,7 +8387,7 @@ export type UploadRelationships = {
8387
8387
  data: UploadCollectionData | null;
8388
8388
  };
8389
8389
  /**
8390
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
8390
+ * The entity (account/collaborator/access token) who created the asset
8391
8391
  */
8392
8392
  creator: {
8393
8393
  data:
@@ -8608,7 +8608,7 @@ export type UploadUpdateSchema = {
8608
8608
  };
8609
8609
  relationships?: {
8610
8610
  /**
8611
- * The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
8611
+ * The entity (account/collaborator/access token) who created the asset
8612
8612
  */
8613
8613
  creator?: {
8614
8614
  data: