@datocms/cma-client 6.2.0 → 6.3.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 v6.2.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 v6.3.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
@@ -10985,7 +10985,7 @@ export type Site = {
10985
10985
  */
10986
10986
  domain: string | null;
10987
10987
  /**
10988
- * Google API Key to be used by the LatLon widget
10988
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
10989
10989
  */
10990
10990
  google_maps_api_token: string | null;
10991
10991
  /**
@@ -10993,7 +10993,7 @@ export type Site = {
10993
10993
  */
10994
10994
  imgix_host: string | null;
10995
10995
  /**
10996
- * DatoCMS internal domain for the administrative area
10996
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
10997
10997
  */
10998
10998
  internal_domain: string | null;
10999
10999
  /**
@@ -11017,13 +11017,13 @@ export type Site = {
11017
11017
  */
11018
11018
  last_data_change_at: null | string;
11019
11019
  /**
11020
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11020
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11021
11021
  */
11022
- require_2fa: boolean;
11022
+ require_2fa: boolean | null;
11023
11023
  /**
11024
- * Specifies whether you want IPs to be tracked in the Project usages section
11024
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11025
11025
  */
11026
- ip_tracking_enabled: boolean;
11026
+ ip_tracking_enabled: boolean | null;
11027
11027
  /**
11028
11028
  * If enabled, blocks schema changes of primary environment
11029
11029
  */
@@ -11332,7 +11332,7 @@ export type SiteAttributes = {
11332
11332
  */
11333
11333
  domain: string | null;
11334
11334
  /**
11335
- * Google API Key to be used by the LatLon widget
11335
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
11336
11336
  */
11337
11337
  google_maps_api_token: string | null;
11338
11338
  /**
@@ -11340,7 +11340,7 @@ export type SiteAttributes = {
11340
11340
  */
11341
11341
  imgix_host: string | null;
11342
11342
  /**
11343
- * DatoCMS internal domain for the administrative area
11343
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
11344
11344
  */
11345
11345
  internal_domain: string | null;
11346
11346
  /**
@@ -11364,13 +11364,13 @@ export type SiteAttributes = {
11364
11364
  */
11365
11365
  last_data_change_at: null | string;
11366
11366
  /**
11367
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11367
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11368
11368
  */
11369
- require_2fa: boolean;
11369
+ require_2fa: boolean | null;
11370
11370
  /**
11371
- * Specifies whether you want IPs to be tracked in the Project usages section
11371
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11372
11372
  */
11373
- ip_tracking_enabled: boolean;
11373
+ ip_tracking_enabled: boolean | null;
11374
11374
  /**
11375
11375
  * If enabled, blocks schema changes of primary environment
11376
11376
  */
@@ -11754,11 +11754,11 @@ export type SiteUpdateSchema = {
11754
11754
  */
11755
11755
  timezone?: string;
11756
11756
  /**
11757
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11757
+ * Specifies whether all users of this site need to authenticate using two-factor authentication.
11758
11758
  */
11759
11759
  require_2fa?: boolean;
11760
11760
  /**
11761
- * Specifies whether you want IPs to be tracked in the Project usages section
11761
+ * Specifies whether you want IPs to be tracked in the Project usages section.
11762
11762
  */
11763
11763
  ip_tracking_enabled?: boolean;
11764
11764
  /**
@@ -59,7 +59,7 @@ export class Client {
59
59
  ...this.config,
60
60
  ...options,
61
61
  logFn: this.config.logFn || console.log,
62
- userAgent: '@datocms/cma-client v6.2.0',
62
+ userAgent: '@datocms/cma-client v6.3.0',
63
63
  baseUrl: this.baseUrl,
64
64
  preCallStack: new Error().stack,
65
65
  extraHeaders: {
@@ -11417,7 +11417,7 @@ export type SiteAttributes = {
11417
11417
  */
11418
11418
  domain: string | null;
11419
11419
  /**
11420
- * Google API Key to be used by the LatLon widget
11420
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
11421
11421
  */
11422
11422
  google_maps_api_token: string | null;
11423
11423
  /**
@@ -11425,7 +11425,7 @@ export type SiteAttributes = {
11425
11425
  */
11426
11426
  imgix_host: string | null;
11427
11427
  /**
11428
- * DatoCMS internal domain for the administrative area
11428
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
11429
11429
  */
11430
11430
  internal_domain: string | null;
11431
11431
  /**
@@ -11449,13 +11449,13 @@ export type SiteAttributes = {
11449
11449
  */
11450
11450
  last_data_change_at: null | string;
11451
11451
  /**
11452
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11452
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11453
11453
  */
11454
- require_2fa: boolean;
11454
+ require_2fa: boolean | null;
11455
11455
  /**
11456
- * Specifies whether you want IPs to be tracked in the Project usages section
11456
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11457
11457
  */
11458
- ip_tracking_enabled: boolean;
11458
+ ip_tracking_enabled: boolean | null;
11459
11459
  /**
11460
11460
  * If enabled, blocks schema changes of primary environment
11461
11461
  */
@@ -11929,11 +11929,11 @@ export type SiteUpdateSchema = {
11929
11929
  */
11930
11930
  timezone?: string;
11931
11931
  /**
11932
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11932
+ * Specifies whether all users of this site need to authenticate using two-factor authentication.
11933
11933
  */
11934
11934
  require_2fa?: boolean;
11935
11935
  /**
11936
- * Specifies whether you want IPs to be tracked in the Project usages section
11936
+ * Specifies whether you want IPs to be tracked in the Project usages section.
11937
11937
  */
11938
11938
  ip_tracking_enabled?: boolean;
11939
11939
  /**
@@ -10985,7 +10985,7 @@ export type Site = {
10985
10985
  */
10986
10986
  domain: string | null;
10987
10987
  /**
10988
- * Google API Key to be used by the LatLon widget
10988
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
10989
10989
  */
10990
10990
  google_maps_api_token: string | null;
10991
10991
  /**
@@ -10993,7 +10993,7 @@ export type Site = {
10993
10993
  */
10994
10994
  imgix_host: string | null;
10995
10995
  /**
10996
- * DatoCMS internal domain for the administrative area
10996
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
10997
10997
  */
10998
10998
  internal_domain: string | null;
10999
10999
  /**
@@ -11017,13 +11017,13 @@ export type Site = {
11017
11017
  */
11018
11018
  last_data_change_at: null | string;
11019
11019
  /**
11020
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11020
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11021
11021
  */
11022
- require_2fa: boolean;
11022
+ require_2fa: boolean | null;
11023
11023
  /**
11024
- * Specifies whether you want IPs to be tracked in the Project usages section
11024
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11025
11025
  */
11026
- ip_tracking_enabled: boolean;
11026
+ ip_tracking_enabled: boolean | null;
11027
11027
  /**
11028
11028
  * If enabled, blocks schema changes of primary environment
11029
11029
  */
@@ -11332,7 +11332,7 @@ export type SiteAttributes = {
11332
11332
  */
11333
11333
  domain: string | null;
11334
11334
  /**
11335
- * Google API Key to be used by the LatLon widget
11335
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
11336
11336
  */
11337
11337
  google_maps_api_token: string | null;
11338
11338
  /**
@@ -11340,7 +11340,7 @@ export type SiteAttributes = {
11340
11340
  */
11341
11341
  imgix_host: string | null;
11342
11342
  /**
11343
- * DatoCMS internal domain for the administrative area
11343
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
11344
11344
  */
11345
11345
  internal_domain: string | null;
11346
11346
  /**
@@ -11364,13 +11364,13 @@ export type SiteAttributes = {
11364
11364
  */
11365
11365
  last_data_change_at: null | string;
11366
11366
  /**
11367
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11367
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11368
11368
  */
11369
- require_2fa: boolean;
11369
+ require_2fa: boolean | null;
11370
11370
  /**
11371
- * Specifies whether you want IPs to be tracked in the Project usages section
11371
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11372
11372
  */
11373
- ip_tracking_enabled: boolean;
11373
+ ip_tracking_enabled: boolean | null;
11374
11374
  /**
11375
11375
  * If enabled, blocks schema changes of primary environment
11376
11376
  */
@@ -11754,11 +11754,11 @@ export type SiteUpdateSchema = {
11754
11754
  */
11755
11755
  timezone?: string;
11756
11756
  /**
11757
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11757
+ * Specifies whether all users of this site need to authenticate using two-factor authentication.
11758
11758
  */
11759
11759
  require_2fa?: boolean;
11760
11760
  /**
11761
- * Specifies whether you want IPs to be tracked in the Project usages section
11761
+ * Specifies whether you want IPs to be tracked in the Project usages section.
11762
11762
  */
11763
11763
  ip_tracking_enabled?: boolean;
11764
11764
  /**
@@ -11417,7 +11417,7 @@ export type SiteAttributes = {
11417
11417
  */
11418
11418
  domain: string | null;
11419
11419
  /**
11420
- * Google API Key to be used by the LatLon widget
11420
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
11421
11421
  */
11422
11422
  google_maps_api_token: string | null;
11423
11423
  /**
@@ -11425,7 +11425,7 @@ export type SiteAttributes = {
11425
11425
  */
11426
11426
  imgix_host: string | null;
11427
11427
  /**
11428
- * DatoCMS internal domain for the administrative area
11428
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
11429
11429
  */
11430
11430
  internal_domain: string | null;
11431
11431
  /**
@@ -11449,13 +11449,13 @@ export type SiteAttributes = {
11449
11449
  */
11450
11450
  last_data_change_at: null | string;
11451
11451
  /**
11452
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11452
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11453
11453
  */
11454
- require_2fa: boolean;
11454
+ require_2fa: boolean | null;
11455
11455
  /**
11456
- * Specifies whether you want IPs to be tracked in the Project usages section
11456
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11457
11457
  */
11458
- ip_tracking_enabled: boolean;
11458
+ ip_tracking_enabled: boolean | null;
11459
11459
  /**
11460
11460
  * If enabled, blocks schema changes of primary environment
11461
11461
  */
@@ -11929,11 +11929,11 @@ export type SiteUpdateSchema = {
11929
11929
  */
11930
11930
  timezone?: string;
11931
11931
  /**
11932
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11932
+ * Specifies whether all users of this site need to authenticate using two-factor authentication.
11933
11933
  */
11934
11934
  require_2fa?: boolean;
11935
11935
  /**
11936
- * Specifies whether you want IPs to be tracked in the Project usages section
11936
+ * Specifies whether you want IPs to be tracked in the Project usages section.
11937
11937
  */
11938
11938
  ip_tracking_enabled?: boolean;
11939
11939
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -53,7 +53,7 @@
53
53
  "uuid": "^11.1.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@datocms/dashboard-client": "^6.1.0"
56
+ "@datocms/dashboard-client": "^6.3.0"
57
57
  },
58
58
  "gitHead": "ac4164968026ba62a2841d31d2b60c31eadb2cc8"
59
59
  }
@@ -11758,7 +11758,7 @@ export type Site = {
11758
11758
  */
11759
11759
  domain: string | null;
11760
11760
  /**
11761
- * Google API Key to be used by the LatLon widget
11761
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
11762
11762
  */
11763
11763
  google_maps_api_token: string | null;
11764
11764
  /**
@@ -11766,7 +11766,7 @@ export type Site = {
11766
11766
  */
11767
11767
  imgix_host: string | null;
11768
11768
  /**
11769
- * DatoCMS internal domain for the administrative area
11769
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
11770
11770
  */
11771
11771
  internal_domain: string | null;
11772
11772
  /**
@@ -11790,13 +11790,13 @@ export type Site = {
11790
11790
  */
11791
11791
  last_data_change_at: null | string;
11792
11792
  /**
11793
- * Specifies whether all users of this site need to authenticate using two-factor authentication
11793
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
11794
11794
  */
11795
- require_2fa: boolean;
11795
+ require_2fa: boolean | null;
11796
11796
  /**
11797
- * Specifies whether you want IPs to be tracked in the Project usages section
11797
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
11798
11798
  */
11799
- ip_tracking_enabled: boolean;
11799
+ ip_tracking_enabled: boolean | null;
11800
11800
  /**
11801
11801
  * If enabled, blocks schema changes of primary environment
11802
11802
  */
@@ -12105,7 +12105,7 @@ export type SiteAttributes = {
12105
12105
  */
12106
12106
  domain: string | null;
12107
12107
  /**
12108
- * Google API Key to be used by the LatLon widget
12108
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
12109
12109
  */
12110
12110
  google_maps_api_token: string | null;
12111
12111
  /**
@@ -12113,7 +12113,7 @@ export type SiteAttributes = {
12113
12113
  */
12114
12114
  imgix_host: string | null;
12115
12115
  /**
12116
- * DatoCMS internal domain for the administrative area
12116
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
12117
12117
  */
12118
12118
  internal_domain: string | null;
12119
12119
  /**
@@ -12137,13 +12137,13 @@ export type SiteAttributes = {
12137
12137
  */
12138
12138
  last_data_change_at: null | string;
12139
12139
  /**
12140
- * Specifies whether all users of this site need to authenticate using two-factor authentication
12140
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
12141
12141
  */
12142
- require_2fa: boolean;
12142
+ require_2fa: boolean | null;
12143
12143
  /**
12144
- * Specifies whether you want IPs to be tracked in the Project usages section
12144
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
12145
12145
  */
12146
- ip_tracking_enabled: boolean;
12146
+ ip_tracking_enabled: boolean | null;
12147
12147
  /**
12148
12148
  * If enabled, blocks schema changes of primary environment
12149
12149
  */
@@ -12529,11 +12529,11 @@ export type SiteUpdateSchema = {
12529
12529
  */
12530
12530
  timezone?: string;
12531
12531
  /**
12532
- * Specifies whether all users of this site need to authenticate using two-factor authentication
12532
+ * Specifies whether all users of this site need to authenticate using two-factor authentication.
12533
12533
  */
12534
12534
  require_2fa?: boolean;
12535
12535
  /**
12536
- * Specifies whether you want IPs to be tracked in the Project usages section
12536
+ * Specifies whether you want IPs to be tracked in the Project usages section.
12537
12537
  */
12538
12538
  ip_tracking_enabled?: boolean;
12539
12539
  /**
@@ -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 v6.2.0',
154
+ userAgent: '@datocms/cma-client v6.3.0',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -12029,7 +12029,7 @@ export type SiteAttributes = {
12029
12029
  */
12030
12030
  domain: string | null;
12031
12031
  /**
12032
- * Google API Key to be used by the LatLon widget
12032
+ * Google API Key to be used by the LatLon field editor. Only the DatoCMS interface uses it: it returns `null` for any other caller.
12033
12033
  */
12034
12034
  google_maps_api_token: string | null;
12035
12035
  /**
@@ -12037,7 +12037,7 @@ export type SiteAttributes = {
12037
12037
  */
12038
12038
  imgix_host: string | null;
12039
12039
  /**
12040
- * DatoCMS internal domain for the administrative area
12040
+ * DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot change the project's settings.
12041
12041
  */
12042
12042
  internal_domain: string | null;
12043
12043
  /**
@@ -12061,13 +12061,13 @@ export type SiteAttributes = {
12061
12061
  */
12062
12062
  last_data_change_at: null | string;
12063
12063
  /**
12064
- * Specifies whether all users of this site need to authenticate using two-factor authentication
12064
+ * Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot change the project's settings.
12065
12065
  */
12066
- require_2fa: boolean;
12066
+ require_2fa: boolean | null;
12067
12067
  /**
12068
- * Specifies whether you want IPs to be tracked in the Project usages section
12068
+ * Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot change the project's settings.
12069
12069
  */
12070
- ip_tracking_enabled: boolean;
12070
+ ip_tracking_enabled: boolean | null;
12071
12071
  /**
12072
12072
  * If enabled, blocks schema changes of primary environment
12073
12073
  */
@@ -12543,11 +12543,11 @@ export type SiteUpdateSchema = {
12543
12543
  */
12544
12544
  timezone?: string;
12545
12545
  /**
12546
- * Specifies whether all users of this site need to authenticate using two-factor authentication
12546
+ * Specifies whether all users of this site need to authenticate using two-factor authentication.
12547
12547
  */
12548
12548
  require_2fa?: boolean;
12549
12549
  /**
12550
- * Specifies whether you want IPs to be tracked in the Project usages section
12550
+ * Specifies whether you want IPs to be tracked in the Project usages section.
12551
12551
  */
12552
12552
  ip_tracking_enabled?: boolean;
12553
12553
  /**