@datocms/cma-client 1.3.1 → 1.3.3

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/resources.json CHANGED
@@ -1364,7 +1364,8 @@
1364
1364
  "type": "item",
1365
1365
  "attributes": "*",
1366
1366
  "relationships": [
1367
- "item_type"
1367
+ "item_type",
1368
+ "creator"
1368
1369
  ]
1369
1370
  },
1370
1371
  "queryParamsRequired": false,
@@ -1384,7 +1385,8 @@
1384
1385
  "type": "item",
1385
1386
  "attributes": "*",
1386
1387
  "relationships": [
1387
- "item_type"
1388
+ "item_type",
1389
+ "creator"
1388
1390
  ]
1389
1391
  },
1390
1392
  "queryParamsRequired": false,
@@ -3295,8 +3297,35 @@
3295
3297
  "comment": "Activate improved timezone management",
3296
3298
  "queryParamsRequired": false,
3297
3299
  "responseType": "SiteActivateImprovedTimezoneManagementJobSchema",
3300
+ "deprecated": "This API call is to be considered private and might change without notice",
3298
3301
  "name": "activateImprovedTimezoneManagement",
3299
3302
  "rawName": "rawActivateImprovedTimezoneManagement"
3303
+ },
3304
+ {
3305
+ "returnsCollection": false,
3306
+ "docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management",
3307
+ "rel": "activate_improved_hex_management",
3308
+ "urlTemplate": "/site/activate-improved-hex-management",
3309
+ "method": "PUT",
3310
+ "comment": "Activate improved hex management",
3311
+ "queryParamsRequired": false,
3312
+ "responseType": "SiteActivateImprovedHexManagementTargetSchema",
3313
+ "deprecated": "This API call is to be considered private and might change without notice",
3314
+ "name": "activateImprovedHexManagement",
3315
+ "rawName": "rawActivateImprovedHexManagement"
3316
+ },
3317
+ {
3318
+ "returnsCollection": false,
3319
+ "docUrl": "https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields",
3320
+ "rel": "activate_improved_gql_multilocale_fields",
3321
+ "urlTemplate": "/site/activate-improved-gql-multilocale-fields",
3322
+ "method": "PUT",
3323
+ "comment": "Activate improved GraphQL multi-locale fields option",
3324
+ "queryParamsRequired": false,
3325
+ "responseType": "SiteActivateImprovedGqlMultilocaleFieldsTargetSchema",
3326
+ "deprecated": "This API call is to be considered private and might change without notice",
3327
+ "name": "activateImprovedGqlMultilocaleFields",
3328
+ "rawName": "rawActivateImprovedGqlMultilocaleFields"
3300
3329
  }
3301
3330
  ],
3302
3331
  "namespace": "site",
@@ -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.3.1',
136
+ userAgent: '@datocms/cma-client v1.3.3',
137
137
  baseUrl: this.baseUrl,
138
138
  preCallStack: new Error().stack,
139
139
  extraHeaders: {
@@ -553,6 +553,10 @@ export type ItemInstancesHrefSchema = {
553
553
  fields?: {
554
554
  [k: string]: unknown;
555
555
  };
556
+ /**
557
+ * When set, only valid records are included in the results.
558
+ */
559
+ only_valid?: string;
556
560
  [k: string]: unknown;
557
561
  };
558
562
  /**
@@ -619,7 +623,7 @@ export type ItemSelfHrefSchema = {
619
623
  */
620
624
  export type ItemBatchDestroyHrefSchema = {
621
625
  /**
622
- * IDs of records to delete, comma separated
626
+ * IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
623
627
  */
624
628
  'filter[ids]': string;
625
629
  };
@@ -629,7 +633,7 @@ export type ItemBatchDestroyHrefSchema = {
629
633
  */
630
634
  export type ItemBatchPublishHrefSchema = {
631
635
  /**
632
- * IDs of records to publish, comma separated
636
+ * IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
633
637
  */
634
638
  'filter[ids]': string;
635
639
  };
@@ -639,7 +643,7 @@ export type ItemBatchPublishHrefSchema = {
639
643
  */
640
644
  export type ItemBatchUnpublishHrefSchema = {
641
645
  /**
642
- * IDs of records to unpublish, comma separated
646
+ * IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
643
647
  */
644
648
  'filter[ids]': string;
645
649
  };
@@ -3274,6 +3278,10 @@ export type SitePlanAttributes = {
3274
3278
  * Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
3275
3279
  */
3276
3280
  concurrent_realtime_connections: number;
3281
+ /**
3282
+ * The maximum GraphQL query complexity a client can perform on our CDA.
3283
+ */
3284
+ gql_complexity: number;
3277
3285
  /**
3278
3286
  * Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
3279
3287
  */
@@ -4135,7 +4143,7 @@ export type ItemTypeDestroyJobSchema = {
4135
4143
  };
4136
4144
 
4137
4145
  /**
4138
- * DatoCMS offers a number of different fields that you can combine togheter to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
4146
+ * DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
4139
4147
  *
4140
4148
  * ### Different field types require different settings
4141
4149
  *
@@ -4732,6 +4740,17 @@ export type ItemTypeDestroyJobSchema = {
4732
4740
  * </details>
4733
4741
  *
4734
4742
  * <details>
4743
+ * <summary><code>sanitization</code></summary>
4744
+ *
4745
+ * Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
4746
+ *
4747
+ * | Parameter | Type | Required | Description |
4748
+ * | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
4749
+ * | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
4750
+ *
4751
+ * </details>
4752
+ *
4753
+ * <details>
4735
4754
  * <summary><code>structured_text_blocks</code></summary>
4736
4755
  *
4737
4756
  * Only accept references to block records of the specified block models.
@@ -6426,6 +6445,17 @@ export type ItemValidateNewSchema = {
6426
6445
  item_type: {
6427
6446
  data: ItemTypeData;
6428
6447
  };
6448
+ /**
6449
+ * 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.
6450
+ */
6451
+ creator?: {
6452
+ data:
6453
+ | AccountData
6454
+ | AccessTokenData
6455
+ | UserData
6456
+ | SsoUserData
6457
+ | OrganizationData;
6458
+ };
6429
6459
  };
6430
6460
  };
6431
6461
  };
@@ -6495,6 +6525,17 @@ export type ItemCreateSchema = {
6495
6525
  item_type: {
6496
6526
  data: ItemTypeData;
6497
6527
  };
6528
+ /**
6529
+ * 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.
6530
+ */
6531
+ creator?: {
6532
+ data:
6533
+ | AccountData
6534
+ | AccessTokenData
6535
+ | UserData
6536
+ | SsoUserData
6537
+ | OrganizationData;
6538
+ };
6498
6539
  };
6499
6540
  };
6500
6541
  };
@@ -6745,7 +6786,7 @@ export type ItemBulkPublishSchema = {
6745
6786
  type: 'item_bulk_publish_operation';
6746
6787
  relationships: {
6747
6788
  /**
6748
- * Records to publish
6789
+ * Records to publish (a maximum of 200 records are allowed per request)
6749
6790
  */
6750
6791
  items: {
6751
6792
  data: ItemData[];
@@ -6787,7 +6828,7 @@ export type ItemBulkUnpublishSchema = {
6787
6828
  type: 'item_bulk_unpublish_operation';
6788
6829
  relationships: {
6789
6830
  /**
6790
- * Records to unpublish
6831
+ * Records to unpublish (a maximum of 200 records are allowed per request)
6791
6832
  */
6792
6833
  items: {
6793
6834
  data: ItemData[];
@@ -6829,7 +6870,7 @@ export type ItemBulkDestroySchema = {
6829
6870
  type: 'item_bulk_destroy_operation';
6830
6871
  relationships: {
6831
6872
  /**
6832
- * Records to delete
6873
+ * Records to delete (a maximum of 200 records are allowed per request)
6833
6874
  */
6834
6875
  items: {
6835
6876
  data: ItemData[];
@@ -6877,7 +6918,7 @@ export type ItemBulkMoveToStageSchema = {
6877
6918
  };
6878
6919
  relationships: {
6879
6920
  /**
6880
- * Records to move
6921
+ * Records to move (a maximum of 200 records are allowed per request)
6881
6922
  */
6882
6923
  items: {
6883
6924
  data: ItemData[];
@@ -7114,6 +7155,10 @@ export type UploadAttributes = {
7114
7155
  * Blurhash for the asset
7115
7156
  */
7116
7157
  blurhash: string | null;
7158
+ /**
7159
+ * Base64 encoded ThumbHash for the asset
7160
+ */
7161
+ thumbhash: string | null;
7117
7162
  /**
7118
7163
  * Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
7119
7164
  */
@@ -10192,6 +10237,14 @@ export type SiteMeta = {
10192
10237
  * Whether the Improved API Timezone Management option is active or not
10193
10238
  */
10194
10239
  improved_timezone_management: boolean;
10240
+ /**
10241
+ * Whether the Improved API Hex Management option is active or not
10242
+ */
10243
+ improved_hex_management: boolean;
10244
+ /**
10245
+ * Whether the Improved GraphQL multi-locale fields option is active or not
10246
+ */
10247
+ improved_gql_multilocale_fields: boolean;
10195
10248
  };
10196
10249
 
10197
10250
  /**
@@ -10330,6 +10383,14 @@ export type SiteUpdateSchema = {
10330
10383
  * Whether the Improved API Timezone Management option is active or not
10331
10384
  */
10332
10385
  improved_timezone_management?: boolean;
10386
+ /**
10387
+ * Whether the Improved API Hex Management option is active or not
10388
+ */
10389
+ improved_hex_management?: boolean;
10390
+ /**
10391
+ * Whether the Improved GraphQL multi-locale fields option is active or not
10392
+ */
10393
+ improved_gql_multilocale_fields?: boolean;
10333
10394
  };
10334
10395
  relationships?: {
10335
10396
  sso_default_role?: {
@@ -10371,6 +10432,22 @@ export type SiteActivateImprovedTimezoneManagementJobSchema = {
10371
10432
  data: Site;
10372
10433
  };
10373
10434
 
10435
+ /**
10436
+ * This interface was referenced by `Site`'s JSON-Schema
10437
+ * via the `activate_improved_hex_management.targetSchema` link.
10438
+ */
10439
+ export type SiteActivateImprovedHexManagementTargetSchema = {
10440
+ data: Site;
10441
+ };
10442
+
10443
+ /**
10444
+ * This interface was referenced by `Site`'s JSON-Schema
10445
+ * via the `activate_improved_gql_multilocale_fields.targetSchema` link.
10446
+ */
10447
+ export type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = {
10448
+ data: Site;
10449
+ };
10450
+
10374
10451
  /**
10375
10452
  * Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
10376
10453
  *
@@ -648,6 +648,10 @@ export type ItemInstancesHrefSchema = {
648
648
  fields?: {
649
649
  [k: string]: unknown;
650
650
  };
651
+ /**
652
+ * When set, only valid records are included in the results.
653
+ */
654
+ only_valid?: string;
651
655
  [k: string]: unknown;
652
656
  };
653
657
  /**
@@ -724,7 +728,7 @@ export type ItemBatchDestroyJobSchema = unknown[];
724
728
  */
725
729
  export type ItemBatchDestroyHrefSchema = {
726
730
  /**
727
- * IDs of records to delete, comma separated
731
+ * IDs of records to delete, comma separated (a maximum of 200 IDs are allowed per request)
728
732
  */
729
733
  'filter[ids]': string;
730
734
  };
@@ -739,7 +743,7 @@ export type ItemBatchPublishJobSchema = unknown[];
739
743
  */
740
744
  export type ItemBatchPublishHrefSchema = {
741
745
  /**
742
- * IDs of records to publish, comma separated
746
+ * IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)
743
747
  */
744
748
  'filter[ids]': string;
745
749
  };
@@ -754,7 +758,7 @@ export type ItemBatchUnpublishJobSchema = unknown[];
754
758
  */
755
759
  export type ItemBatchUnpublishHrefSchema = {
756
760
  /**
757
- * IDs of records to unpublish, comma separated
761
+ * IDs of records to unpublish, comma separated (a maximum of 200 IDs are allowed per request)
758
762
  */
759
763
  'filter[ids]': string;
760
764
  };
@@ -3674,6 +3678,10 @@ export type SitePlan = {
3674
3678
  * Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
3675
3679
  */
3676
3680
  concurrent_realtime_connections: number;
3681
+ /**
3682
+ * The maximum GraphQL query complexity a client can perform on our CDA.
3683
+ */
3684
+ gql_complexity: number;
3677
3685
  /**
3678
3686
  * Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
3679
3687
  */
@@ -3900,6 +3908,10 @@ export type SitePlanAttributes = {
3900
3908
  * Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project
3901
3909
  */
3902
3910
  concurrent_realtime_connections: number;
3911
+ /**
3912
+ * The maximum GraphQL query complexity a client can perform on our CDA.
3913
+ */
3914
+ gql_complexity: number;
3903
3915
  /**
3904
3916
  * Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one
3905
3917
  */
@@ -4660,7 +4672,7 @@ export type JobData = {
4660
4672
  };
4661
4673
 
4662
4674
  /**
4663
- * DatoCMS offers a number of different fields that you can combine togheter to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
4675
+ * DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
4664
4676
  *
4665
4677
  * ### Different field types require different settings
4666
4678
  *
@@ -5257,6 +5269,17 @@ export type JobData = {
5257
5269
  * </details>
5258
5270
  *
5259
5271
  * <details>
5272
+ * <summary><code>sanitization</code></summary>
5273
+ *
5274
+ * Checks for the presence of malicious cose in HTML fields: content is valid if no dangerous code is present.
5275
+ *
5276
+ * | Parameter | Type | Required | Description |
5277
+ * | ------------------------------ | --------- | -------- | ------------------------------------------------------------ |
5278
+ * | `sanitize_before_validation` | `Boolean` | ✅ | Content is actively sanitized before applying the validation |
5279
+ *
5280
+ * </details>
5281
+ *
5282
+ * <details>
5260
5283
  * <summary><code>structured_text_blocks</code></summary>
5261
5284
  *
5262
5285
  * Only accept references to block records of the specified block models.
@@ -6844,6 +6867,12 @@ export type ItemValidateExistingSchema = {
6844
6867
  export type ItemValidateNewSchema = {
6845
6868
  type?: ItemType1;
6846
6869
  item_type: ItemTypeData;
6870
+ creator?:
6871
+ | AccountData
6872
+ | AccessTokenData
6873
+ | UserData
6874
+ | SsoUserData
6875
+ | OrganizationData;
6847
6876
  [k: string]: unknown;
6848
6877
  };
6849
6878
 
@@ -6854,6 +6883,12 @@ export type ItemValidateNewSchema = {
6854
6883
  export type ItemCreateSchema = {
6855
6884
  type?: ItemType1;
6856
6885
  item_type: ItemTypeData;
6886
+ creator?:
6887
+ | AccountData
6888
+ | AccessTokenData
6889
+ | UserData
6890
+ | SsoUserData
6891
+ | OrganizationData;
6857
6892
  /**
6858
6893
  * Meta information regarding the record
6859
6894
  */
@@ -7184,6 +7219,10 @@ export type Upload = {
7184
7219
  * Blurhash for the asset
7185
7220
  */
7186
7221
  blurhash: string | null;
7222
+ /**
7223
+ * Base64 encoded ThumbHash for the asset
7224
+ */
7225
+ thumbhash: string | null;
7187
7226
  /**
7188
7227
  * Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
7189
7228
  */
@@ -7370,6 +7409,10 @@ export type UploadAttributes = {
7370
7409
  * Blurhash for the asset
7371
7410
  */
7372
7411
  blurhash: string | null;
7412
+ /**
7413
+ * Base64 encoded ThumbHash for the asset
7414
+ */
7415
+ thumbhash: string | null;
7373
7416
  /**
7374
7417
  * Public Mux playback ID. Used with stream.mux.com to create the source URL for a video player.
7375
7418
  */
@@ -9874,6 +9917,8 @@ export type Site = {
9874
9917
  export type SiteSelfTargetSchema = Site;
9875
9918
  export type SiteUpdateJobSchema = Site;
9876
9919
  export type SiteActivateImprovedTimezoneManagementJobSchema = Site;
9920
+ export type SiteActivateImprovedHexManagementTargetSchema = Site;
9921
+ export type SiteActivateImprovedGqlMultilocaleFieldsTargetSchema = Site;
9877
9922
  /**
9878
9923
  * Meta attributes
9879
9924
  *
@@ -9885,6 +9930,14 @@ export type SiteMeta = {
9885
9930
  * Whether the Improved API Timezone Management option is active or not
9886
9931
  */
9887
9932
  improved_timezone_management: boolean;
9933
+ /**
9934
+ * Whether the Improved API Hex Management option is active or not
9935
+ */
9936
+ improved_hex_management: boolean;
9937
+ /**
9938
+ * Whether the Improved GraphQL multi-locale fields option is active or not
9939
+ */
9940
+ improved_gql_multilocale_fields: boolean;
9888
9941
  };
9889
9942
 
9890
9943
  /**
@@ -10157,6 +10210,14 @@ export type SiteUpdateSchema = {
10157
10210
  * Whether the Improved API Timezone Management option is active or not
10158
10211
  */
10159
10212
  improved_timezone_management?: boolean;
10213
+ /**
10214
+ * Whether the Improved API Hex Management option is active or not
10215
+ */
10216
+ improved_hex_management?: boolean;
10217
+ /**
10218
+ * Whether the Improved GraphQL multi-locale fields option is active or not
10219
+ */
10220
+ improved_gql_multilocale_fields?: boolean;
10160
10221
  };
10161
10222
  };
10162
10223
 
@@ -148,7 +148,7 @@ export default class Item extends BaseResource {
148
148
  Utils.serializeRequestBody<SchemaTypes.ItemValidateNewSchema>(body, {
149
149
  type: 'item',
150
150
  attributes: '*',
151
- relationships: ['item_type'],
151
+ relationships: ['item_type', 'creator'],
152
152
  }),
153
153
  );
154
154
  }
@@ -184,7 +184,7 @@ export default class Item extends BaseResource {
184
184
  Utils.serializeRequestBody<SchemaTypes.ItemCreateSchema>(body, {
185
185
  type: 'item',
186
186
  attributes: '*',
187
- relationships: ['item_type'],
187
+ relationships: ['item_type', 'creator'],
188
188
  }),
189
189
  ).then((body) =>
190
190
  Utils.deserializeResponseBody<SimpleSchemaTypes.ItemCreateTargetSchema>(
@@ -97,6 +97,8 @@ export default class Site extends BaseResource {
97
97
  *
98
98
  * @throws {ApiError}
99
99
  * @throws {TimeoutError}
100
+ *
101
+ * @deprecated This API call is to be considered private and might change without notice
100
102
  */
101
103
  activateImprovedTimezoneManagement() {
102
104
  return this.rawActivateImprovedTimezoneManagement().then((body) =>
@@ -113,6 +115,8 @@ export default class Site extends BaseResource {
113
115
  *
114
116
  * @throws {ApiError}
115
117
  * @throws {TimeoutError}
118
+ *
119
+ * @deprecated This API call is to be considered private and might change without notice
116
120
  */
117
121
  rawActivateImprovedTimezoneManagement(): Promise<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema> {
118
122
  return this.client.request<SchemaTypes.SiteActivateImprovedTimezoneManagementJobSchema>(
@@ -122,4 +126,78 @@ export default class Site extends BaseResource {
122
126
  },
123
127
  );
124
128
  }
129
+
130
+ /**
131
+ * Activate improved hex management
132
+ *
133
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
134
+ *
135
+ * @throws {ApiError}
136
+ * @throws {TimeoutError}
137
+ *
138
+ * @deprecated This API call is to be considered private and might change without notice
139
+ */
140
+ activateImprovedHexManagement() {
141
+ return this.rawActivateImprovedHexManagement().then((body) =>
142
+ Utils.deserializeResponseBody<SimpleSchemaTypes.SiteActivateImprovedHexManagementTargetSchema>(
143
+ body,
144
+ ),
145
+ );
146
+ }
147
+
148
+ /**
149
+ * Activate improved hex management
150
+ *
151
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_hex_management
152
+ *
153
+ * @throws {ApiError}
154
+ * @throws {TimeoutError}
155
+ *
156
+ * @deprecated This API call is to be considered private and might change without notice
157
+ */
158
+ rawActivateImprovedHexManagement(): Promise<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema> {
159
+ return this.client.request<SchemaTypes.SiteActivateImprovedHexManagementTargetSchema>(
160
+ {
161
+ method: 'PUT',
162
+ url: '/site/activate-improved-hex-management',
163
+ },
164
+ );
165
+ }
166
+
167
+ /**
168
+ * Activate improved GraphQL multi-locale fields option
169
+ *
170
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
171
+ *
172
+ * @throws {ApiError}
173
+ * @throws {TimeoutError}
174
+ *
175
+ * @deprecated This API call is to be considered private and might change without notice
176
+ */
177
+ activateImprovedGqlMultilocaleFields() {
178
+ return this.rawActivateImprovedGqlMultilocaleFields().then((body) =>
179
+ Utils.deserializeResponseBody<SimpleSchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema>(
180
+ body,
181
+ ),
182
+ );
183
+ }
184
+
185
+ /**
186
+ * Activate improved GraphQL multi-locale fields option
187
+ *
188
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/site/activate_improved_gql_multilocale_fields
189
+ *
190
+ * @throws {ApiError}
191
+ * @throws {TimeoutError}
192
+ *
193
+ * @deprecated This API call is to be considered private and might change without notice
194
+ */
195
+ rawActivateImprovedGqlMultilocaleFields(): Promise<SchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema> {
196
+ return this.client.request<SchemaTypes.SiteActivateImprovedGqlMultilocaleFieldsTargetSchema>(
197
+ {
198
+ method: 'PUT',
199
+ url: '/site/activate-improved-gql-multilocale-fields',
200
+ },
201
+ );
202
+ }
125
203
  }
@@ -30,11 +30,11 @@ function sameRule(
30
30
  obj1: Record<string, unknown>,
31
31
  obj2: Record<string, unknown>,
32
32
  ): boolean {
33
- for (const key in Object.keys(obj1)) {
33
+ for (const key in obj1) {
34
34
  if (!sameValue(obj1[key], obj2[key])) return false;
35
35
  }
36
36
 
37
- for (const key in Object.keys(obj2)) {
37
+ for (const key in obj2) {
38
38
  if (!sameValue(obj1[key], obj2[key])) return false;
39
39
  }
40
40