@datocms/cma-client 5.7.0 → 5.8.0

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.
@@ -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.7.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
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.8.0', 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
@@ -11281,6 +11281,10 @@ export type SiteMeta = {
11281
11281
  * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
11282
11282
  */
11283
11283
  non_localized_focal_points: boolean;
11284
+ /**
11285
+ * Whether the project can still use a custom color palette for the theme. Custom palettes are deprecated.
11286
+ */
11287
+ allow_custom_theme: boolean;
11284
11288
  };
11285
11289
  /**
11286
11290
  * JSON API data
@@ -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.7.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
67
+ return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.8.0', 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
@@ -11716,6 +11716,10 @@ export type SiteMeta = {
11716
11716
  * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
11717
11717
  */
11718
11718
  non_localized_focal_points: boolean;
11719
+ /**
11720
+ * Whether the project can still use a custom color palette for the theme. Custom palettes are deprecated.
11721
+ */
11722
+ allow_custom_theme: boolean;
11719
11723
  };
11720
11724
  /**
11721
11725
  * JSON API data
@@ -11281,6 +11281,10 @@ export type SiteMeta = {
11281
11281
  * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
11282
11282
  */
11283
11283
  non_localized_focal_points: boolean;
11284
+ /**
11285
+ * Whether the project can still use a custom color palette for the theme. Custom palettes are deprecated.
11286
+ */
11287
+ allow_custom_theme: boolean;
11284
11288
  };
11285
11289
  /**
11286
11290
  * JSON API data
@@ -11716,6 +11716,10 @@ export type SiteMeta = {
11716
11716
  * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
11717
11717
  */
11718
11718
  non_localized_focal_points: boolean;
11719
+ /**
11720
+ * Whether the project can still use a custom color palette for the theme. Custom palettes are deprecated.
11721
+ */
11722
+ allow_custom_theme: boolean;
11719
11723
  };
11720
11724
  /**
11721
11725
  * JSON API data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.7.0",
3
+ "version": "5.8.0",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -48,12 +48,12 @@
48
48
  "url": "https://github.com/datocms/js-rest-api-clients/issues"
49
49
  },
50
50
  "dependencies": {
51
- "@datocms/rest-client-utils": "^5.7.0",
51
+ "@datocms/rest-client-utils": "^5.8.0",
52
52
  "datocms-structured-text-utils": "^5.1.4",
53
53
  "uuid": "^11.1.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@datocms/dashboard-client": "^5.7.0"
56
+ "@datocms/dashboard-client": "^5.8.0"
57
57
  },
58
- "gitHead": "d6d11483b6ecb2d1803f4de831ecfd638a3a8265"
58
+ "gitHead": "6280620a11120a1f612a8114c2cbf879dc245599"
59
59
  }
@@ -12054,6 +12054,10 @@ export type SiteMeta = {
12054
12054
  * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
12055
12055
  */
12056
12056
  non_localized_focal_points: boolean;
12057
+ /**
12058
+ * Whether the project can still use a custom color palette for the theme. Custom palettes are deprecated.
12059
+ */
12060
+ allow_custom_theme: boolean;
12057
12061
  };
12058
12062
  /**
12059
12063
  * JSON API data
@@ -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.7.0',
154
+ userAgent: '@datocms/cma-client v5.8.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -12328,6 +12328,10 @@ export type SiteMeta = {
12328
12328
  * Whether the [Non-localized focal points](https://www.datocms.com/product-updates/non-localized-focal-points) opt-in product update is active or not
12329
12329
  */
12330
12330
  non_localized_focal_points: boolean;
12331
+ /**
12332
+ * Whether the project can still use a custom color palette for the theme. Custom palettes are deprecated.
12333
+ */
12334
+ allow_custom_theme: boolean;
12331
12335
  };
12332
12336
  /**
12333
12337
  * JSON API data