@datocms/cma-client 1.3.5 → 1.3.6-alpha.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.
Files changed (35) hide show
  1. package/dist/cjs/generated/Client.js +1 -1
  2. package/dist/cjs/generated/Client.js.map +1 -1
  3. package/dist/cjs/generated/resources/Item.js +53 -6
  4. package/dist/cjs/generated/resources/Item.js.map +1 -1
  5. package/dist/cjs/generated/resources/Plugin.js +2 -2
  6. package/dist/cjs/generated/resources/ScheduledPublication.js +1 -1
  7. package/dist/cjs/generated/resources/ScheduledPublication.js.map +1 -1
  8. package/dist/cjs/generated/resources/ScheduledUnpublishing.js +1 -1
  9. package/dist/cjs/generated/resources/ScheduledUnpublishing.js.map +1 -1
  10. package/dist/esm/generated/Client.js +1 -1
  11. package/dist/esm/generated/Client.js.map +1 -1
  12. package/dist/esm/generated/SchemaTypes.d.ts +600 -422
  13. package/dist/esm/generated/SimpleSchemaTypes.d.ts +248 -83
  14. package/dist/esm/generated/resources/Item.d.ts +26 -4
  15. package/dist/esm/generated/resources/Item.js +53 -6
  16. package/dist/esm/generated/resources/Item.js.map +1 -1
  17. package/dist/esm/generated/resources/Plugin.d.ts +2 -2
  18. package/dist/esm/generated/resources/Plugin.js +2 -2
  19. package/dist/esm/generated/resources/ScheduledPublication.js +1 -1
  20. package/dist/esm/generated/resources/ScheduledPublication.js.map +1 -1
  21. package/dist/esm/generated/resources/ScheduledUnpublishing.js +1 -1
  22. package/dist/esm/generated/resources/ScheduledUnpublishing.js.map +1 -1
  23. package/dist/types/generated/SchemaTypes.d.ts +600 -422
  24. package/dist/types/generated/SimpleSchemaTypes.d.ts +248 -83
  25. package/dist/types/generated/resources/Item.d.ts +26 -4
  26. package/dist/types/generated/resources/Plugin.d.ts +2 -2
  27. package/package.json +3 -3
  28. package/resources.json +204 -3
  29. package/src/generated/Client.ts +1 -1
  30. package/src/generated/SchemaTypes.ts +626 -443
  31. package/src/generated/SimpleSchemaTypes.ts +255 -86
  32. package/src/generated/resources/Item.ts +69 -2
  33. package/src/generated/resources/Plugin.ts +2 -2
  34. package/src/generated/resources/ScheduledPublication.ts +1 -1
  35. package/src/generated/resources/ScheduledUnpublishing.ts +1 -1
@@ -715,6 +715,74 @@ export declare type ItemSelfHrefSchema = {
715
715
  version?: string;
716
716
  [k: string]: unknown;
717
717
  };
718
+ /**
719
+ * ID of record
720
+ *
721
+ * This interface was referenced by `ItemCurrentVsPublishedState`'s JSON-Schema
722
+ * via the `definition` "identity".
723
+ *
724
+ * This interface was referenced by `ItemCurrentVsPublishedState`'s JSON-Schema
725
+ * via the `definition` "id".
726
+ */
727
+ export declare type ItemCurrentVsPublishedStateIdentity = string;
728
+ /**
729
+ * JSON API type field
730
+ *
731
+ * This interface was referenced by `ItemCurrentVsPublishedState`'s JSON-Schema
732
+ * via the `definition` "type".
733
+ */
734
+ export declare type ItemCurrentVsPublishedStateType = 'item_current_vs_published_state';
735
+ /**
736
+ * JSON API type field
737
+ *
738
+ * This interface was referenced by `ScheduledPublication`'s JSON-Schema
739
+ * via the `definition` "type".
740
+ */
741
+ export declare type ScheduledPublicationType = 'scheduled_publication';
742
+ /**
743
+ * ID of scheduled_publication
744
+ *
745
+ * This interface was referenced by `ScheduledPublication`'s JSON-Schema
746
+ * via the `definition` "identity".
747
+ *
748
+ * This interface was referenced by `ScheduledPublication`'s JSON-Schema
749
+ * via the `definition` "id".
750
+ */
751
+ export declare type ScheduledPublicationIdentity = string;
752
+ /**
753
+ * JSON API type field
754
+ *
755
+ * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
756
+ * via the `definition` "type".
757
+ */
758
+ export declare type ScheduledUnpublishingType = 'scheduled_unpublishing';
759
+ /**
760
+ * ID of scheduled_unpublishing
761
+ *
762
+ * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
763
+ * via the `definition` "identity".
764
+ *
765
+ * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
766
+ * via the `definition` "id".
767
+ */
768
+ export declare type ScheduledUnpublishingIdentity = string;
769
+ /**
770
+ * JSON API type field
771
+ *
772
+ * This interface was referenced by `ItemVersion`'s JSON-Schema
773
+ * via the `definition` "type".
774
+ */
775
+ export declare type ItemVersionType = 'item_version';
776
+ /**
777
+ * ID of record version
778
+ *
779
+ * This interface was referenced by `ItemVersion`'s JSON-Schema
780
+ * via the `definition` "identity".
781
+ *
782
+ * This interface was referenced by `ItemVersion`'s JSON-Schema
783
+ * via the `definition` "id".
784
+ */
785
+ export declare type ItemVersionIdentity = string;
718
786
  /**
719
787
  * This interface was referenced by `Item`'s JSON-Schema
720
788
  * via the `batch_destroy.jobSchema` link.
@@ -760,6 +828,24 @@ export declare type ItemBatchUnpublishHrefSchema = {
760
828
  */
761
829
  'filter[ids]': string;
762
830
  };
831
+ /**
832
+ * This interface was referenced by `Item`'s JSON-Schema
833
+ * via the `publish.schema` link.
834
+ */
835
+ export declare type ItemPublishSchema = {
836
+ /**
837
+ * JSON API type field
838
+ */
839
+ type?: 'selective_publish_operation';
840
+ /**
841
+ * List of locales whose content will be published
842
+ */
843
+ content_in_locales: string[];
844
+ /**
845
+ * Whether non-localized content has to be published or not
846
+ */
847
+ non_localized_content: boolean;
848
+ } | null;
763
849
  /**
764
850
  * This interface was referenced by `Item`'s JSON-Schema
765
851
  * via the `publish.hrefSchema` link.
@@ -771,6 +857,20 @@ export declare type ItemPublishHrefSchema = {
771
857
  recursive?: boolean;
772
858
  [k: string]: unknown;
773
859
  };
860
+ /**
861
+ * This interface was referenced by `Item`'s JSON-Schema
862
+ * via the `unpublish.schema` link.
863
+ */
864
+ export declare type ItemUnpublishSchema = {
865
+ /**
866
+ * JSON API type field
867
+ */
868
+ type?: 'selective_unpublish_operation';
869
+ /**
870
+ * List of locales whose content will be unpublished
871
+ */
872
+ content_in_locales: string[];
873
+ } | null;
774
874
  /**
775
875
  * This interface was referenced by `Item`'s JSON-Schema
776
876
  * via the `unpublish.hrefSchema` link.
@@ -802,23 +902,6 @@ export declare type ItemBulkDestroyJobSchema = unknown[];
802
902
  * via the `bulk_move_to_stage.jobSchema` link.
803
903
  */
804
904
  export declare type ItemBulkMoveToStageJobSchema = unknown[];
805
- /**
806
- * ID of record version
807
- *
808
- * This interface was referenced by `ItemVersion`'s JSON-Schema
809
- * via the `definition` "identity".
810
- *
811
- * This interface was referenced by `ItemVersion`'s JSON-Schema
812
- * via the `definition` "id".
813
- */
814
- export declare type ItemVersionIdentity = string;
815
- /**
816
- * JSON API type field
817
- *
818
- * This interface was referenced by `ItemVersion`'s JSON-Schema
819
- * via the `definition` "type".
820
- */
821
- export declare type ItemVersionType = 'item_version';
822
905
  /**
823
906
  * This interface was referenced by `ItemVersion`'s JSON-Schema
824
907
  * via the `restore.jobSchema` link.
@@ -1004,40 +1087,6 @@ export declare type UploadRequestIdentity = string;
1004
1087
  * via the `definition` "type".
1005
1088
  */
1006
1089
  export declare type UploadRequestType = 'upload_request';
1007
- /**
1008
- * ID of scheduled_publication
1009
- *
1010
- * This interface was referenced by `ScheduledPublication`'s JSON-Schema
1011
- * via the `definition` "identity".
1012
- *
1013
- * This interface was referenced by `ScheduledPublication`'s JSON-Schema
1014
- * via the `definition` "id".
1015
- */
1016
- export declare type ScheduledPublicationIdentity = string;
1017
- /**
1018
- * JSON API type field
1019
- *
1020
- * This interface was referenced by `ScheduledPublication`'s JSON-Schema
1021
- * via the `definition` "type".
1022
- */
1023
- export declare type ScheduledPublicationType = 'scheduled_publication';
1024
- /**
1025
- * ID of scheduled_unpublishing
1026
- *
1027
- * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
1028
- * via the `definition` "identity".
1029
- *
1030
- * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
1031
- * via the `definition` "id".
1032
- */
1033
- export declare type ScheduledUnpublishingIdentity = string;
1034
- /**
1035
- * JSON API type field
1036
- *
1037
- * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
1038
- * via the `definition` "type".
1039
- */
1040
- export declare type ScheduledUnpublishingType = 'scheduled_unpublishing';
1041
1090
  /**
1042
1091
  * ID of result
1043
1092
  *
@@ -1632,6 +1681,7 @@ export declare type DatoApi = {
1632
1681
  subscription_feature?: SubscriptionFeature;
1633
1682
  build_event?: BuildEvent;
1634
1683
  item?: Item;
1684
+ item_current_vs_published_state?: ItemCurrentVsPublishedState;
1635
1685
  item_version?: ItemVersion;
1636
1686
  upload?: Upload;
1637
1687
  upload_request?: UploadRequest;
@@ -6497,6 +6547,94 @@ export declare type ItemUpdateSchema = {
6497
6547
  };
6498
6548
  [k: string]: unknown;
6499
6549
  };
6550
+ /**
6551
+ * Information about the record
6552
+ *
6553
+ * This interface was referenced by `Item`'s JSON-Schema
6554
+ * via the `current_vs_published_state.targetSchema` link.
6555
+ *
6556
+ * This interface was referenced by `DatoApi`'s JSON-Schema
6557
+ * via the `definition` "item_current_vs_published_state".
6558
+ */
6559
+ export declare type ItemCurrentVsPublishedState = {
6560
+ id: ItemCurrentVsPublishedStateIdentity;
6561
+ type: ItemCurrentVsPublishedStateType;
6562
+ current_version_locales: string[];
6563
+ published_version_locales: string[];
6564
+ changed_locales: string[];
6565
+ added_locales: string[];
6566
+ removed_locales: string[];
6567
+ non_localized_fields_changed: boolean;
6568
+ scheduled_publication: ScheduledPublicationData | null;
6569
+ scheduled_unpublishing: ScheduledUnpublishingData | null;
6570
+ published_version: ItemVersionData | null;
6571
+ };
6572
+ export declare type ItemCurrentVsPublishedStateTargetSchema = ItemCurrentVsPublishedState;
6573
+ /**
6574
+ * JSON API data
6575
+ *
6576
+ * This interface was referenced by `ScheduledPublication`'s JSON-Schema
6577
+ * via the `definition` "data".
6578
+ */
6579
+ export declare type ScheduledPublicationData = {
6580
+ type: ScheduledPublicationType;
6581
+ id: ScheduledPublicationIdentity;
6582
+ };
6583
+ /**
6584
+ * JSON API data
6585
+ *
6586
+ * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
6587
+ * via the `definition` "data".
6588
+ */
6589
+ export declare type ScheduledUnpublishingData = {
6590
+ type: ScheduledUnpublishingType;
6591
+ id: ScheduledUnpublishingIdentity;
6592
+ };
6593
+ /**
6594
+ * JSON API data
6595
+ *
6596
+ * This interface was referenced by `ItemVersion`'s JSON-Schema
6597
+ * via the `definition` "data".
6598
+ */
6599
+ export declare type ItemVersionData = {
6600
+ type: ItemVersionType;
6601
+ id: ItemVersionIdentity;
6602
+ };
6603
+ /**
6604
+ * JSON API data
6605
+ *
6606
+ * This interface was referenced by `ItemCurrentVsPublishedState`'s JSON-Schema
6607
+ * via the `definition` "data".
6608
+ */
6609
+ export declare type ItemCurrentVsPublishedStateData = {
6610
+ type: ItemCurrentVsPublishedStateType;
6611
+ id: ItemCurrentVsPublishedStateIdentity;
6612
+ };
6613
+ /**
6614
+ * The JSON data associated to the record
6615
+ *
6616
+ * This interface was referenced by `ItemCurrentVsPublishedState`'s JSON-Schema
6617
+ * via the `definition` "attributes".
6618
+ */
6619
+ export declare type ItemCurrentVsPublishedStateAttributes = {
6620
+ current_version_locales: string[];
6621
+ published_version_locales: string[];
6622
+ changed_locales: string[];
6623
+ added_locales: string[];
6624
+ removed_locales: string[];
6625
+ non_localized_fields_changed: boolean;
6626
+ };
6627
+ /**
6628
+ * JSON API links
6629
+ *
6630
+ * This interface was referenced by `ItemCurrentVsPublishedState`'s JSON-Schema
6631
+ * via the `definition` "relationships".
6632
+ */
6633
+ export declare type ItemCurrentVsPublishedStateRelationships = {
6634
+ scheduled_publication: ScheduledPublicationData | null;
6635
+ scheduled_unpublishing: ScheduledUnpublishingData | null;
6636
+ published_version: ItemVersionData | null;
6637
+ };
6500
6638
  /**
6501
6639
  * This interface was referenced by `Item`'s JSON-Schema
6502
6640
  * via the `bulk_publish.schema` link.
@@ -6592,16 +6730,6 @@ export declare type ItemVersionMeta = {
6592
6730
  */
6593
6731
  is_current: boolean;
6594
6732
  };
6595
- /**
6596
- * JSON API data
6597
- *
6598
- * This interface was referenced by `ItemVersion`'s JSON-Schema
6599
- * via the `definition` "data".
6600
- */
6601
- export declare type ItemVersionData = {
6602
- type: ItemVersionType;
6603
- id: ItemVersionIdentity;
6604
- };
6605
6733
  /**
6606
6734
  * The JSON data associated to the record version
6607
6735
  *
@@ -7212,19 +7340,22 @@ export declare type ScheduledPublication = {
7212
7340
  * The future date for the publication
7213
7341
  */
7214
7342
  publication_scheduled_at: string;
7343
+ /**
7344
+ * Specifies which content should be published. If null, the whole record will be published.
7345
+ */
7346
+ selective_publication: null | {
7347
+ /**
7348
+ * List of locales whose content will be published
7349
+ */
7350
+ content_in_locales: string[];
7351
+ /**
7352
+ * Whether the non-localized content has to be published or not
7353
+ */
7354
+ non_localized_content: boolean;
7355
+ };
7215
7356
  item: ItemData;
7216
7357
  };
7217
7358
  export declare type ScheduledPublicationCreateTargetSchema = ScheduledPublication;
7218
- /**
7219
- * JSON API data
7220
- *
7221
- * This interface was referenced by `ScheduledPublication`'s JSON-Schema
7222
- * via the `definition` "data".
7223
- */
7224
- export declare type ScheduledPublicationData = {
7225
- type: ScheduledPublicationType;
7226
- id: ScheduledPublicationIdentity;
7227
- };
7228
7359
  /**
7229
7360
  * JSON API attributes
7230
7361
  *
@@ -7236,6 +7367,19 @@ export declare type ScheduledPublicationAttributes = {
7236
7367
  * The future date for the publication
7237
7368
  */
7238
7369
  publication_scheduled_at: string;
7370
+ /**
7371
+ * Specifies which content should be published. If null, the whole record will be published.
7372
+ */
7373
+ selective_publication: null | {
7374
+ /**
7375
+ * List of locales whose content will be published
7376
+ */
7377
+ content_in_locales: string[];
7378
+ /**
7379
+ * Whether the non-localized content has to be published or not
7380
+ */
7381
+ non_localized_content: boolean;
7382
+ };
7239
7383
  };
7240
7384
  /**
7241
7385
  * JSON API links
@@ -7252,7 +7396,23 @@ export declare type ScheduledPublicationRelationships = {
7252
7396
  */
7253
7397
  export declare type ScheduledPublicationCreateSchema = {
7254
7398
  type?: ScheduledPublicationType;
7255
- [k: string]: unknown;
7399
+ /**
7400
+ * The future date for the publication
7401
+ */
7402
+ publication_scheduled_at: string;
7403
+ /**
7404
+ * Specifies which content should be published. If null, the whole record will be published.
7405
+ */
7406
+ selective_publication?: null | {
7407
+ /**
7408
+ * List of locales whose content will be published
7409
+ */
7410
+ content_in_locales: string[];
7411
+ /**
7412
+ * Whether the non-localized content has to be published or not
7413
+ */
7414
+ non_localized_content: boolean;
7415
+ };
7256
7416
  };
7257
7417
  /**
7258
7418
  * You can create a scheduled unpublishing to unpublish records in the future
@@ -7267,19 +7427,13 @@ export declare type ScheduledUnpublishing = {
7267
7427
  * The future date for the unpublishing
7268
7428
  */
7269
7429
  unpublishing_scheduled_at: string;
7430
+ /**
7431
+ * List of locales whose content will be unpublished, or nil if the whole record needs to be unpublished
7432
+ */
7433
+ content_in_locales: null | string[];
7270
7434
  item: ItemData;
7271
7435
  };
7272
7436
  export declare type ScheduledUnpublishingCreateTargetSchema = ScheduledUnpublishing;
7273
- /**
7274
- * JSON API data
7275
- *
7276
- * This interface was referenced by `ScheduledUnpublishing`'s JSON-Schema
7277
- * via the `definition` "data".
7278
- */
7279
- export declare type ScheduledUnpublishingData = {
7280
- type: ScheduledUnpublishingType;
7281
- id: ScheduledUnpublishingIdentity;
7282
- };
7283
7437
  /**
7284
7438
  * JSON API attributes
7285
7439
  *
@@ -7291,6 +7445,10 @@ export declare type ScheduledUnpublishingAttributes = {
7291
7445
  * The future date for the unpublishing
7292
7446
  */
7293
7447
  unpublishing_scheduled_at: string;
7448
+ /**
7449
+ * List of locales whose content will be unpublished, or nil if the whole record needs to be unpublished
7450
+ */
7451
+ content_in_locales: null | string[];
7294
7452
  };
7295
7453
  /**
7296
7454
  * JSON API links
@@ -7307,7 +7465,14 @@ export declare type ScheduledUnpublishingRelationships = {
7307
7465
  */
7308
7466
  export declare type ScheduledUnpublishingCreateSchema = {
7309
7467
  type?: ScheduledUnpublishingType;
7310
- [k: string]: unknown;
7468
+ /**
7469
+ * The future date for the unpublishing
7470
+ */
7471
+ unpublishing_scheduled_at: string;
7472
+ /**
7473
+ * List of locales whose content will be unpublished, or nil if the whole record needs to be unpublished
7474
+ */
7475
+ content_in_locales?: null | string[];
7311
7476
  };
7312
7477
  /**
7313
7478
  * DatoCMS Site Search is a way to deliver tailored search results to your site visitors. This is the endpoint you can use to query for results.
@@ -174,6 +174,28 @@ export default class Item extends BaseResource {
174
174
  * @throws {TimeoutError}
175
175
  */
176
176
  rawFind(itemId: string, queryParams?: SchemaTypes.ItemSelfHrefSchema): Promise<SchemaTypes.ItemSelfTargetSchema>;
177
+ /**
178
+ * Retrieve information regarding changes between current and published versions of the record
179
+ *
180
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/item/current_vs_published_state
181
+ *
182
+ * @throws {ApiError}
183
+ * @throws {TimeoutError}
184
+ *
185
+ * @deprecated This API call is to be considered private and might change without notice
186
+ */
187
+ currentVsPublishedState(itemId: string | SimpleSchemaTypes.ItemData): Promise<SimpleSchemaTypes.ItemCurrentVsPublishedState>;
188
+ /**
189
+ * Retrieve information regarding changes between current and published versions of the record
190
+ *
191
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/item/current_vs_published_state
192
+ *
193
+ * @throws {ApiError}
194
+ * @throws {TimeoutError}
195
+ *
196
+ * @deprecated This API call is to be considered private and might change without notice
197
+ */
198
+ rawCurrentVsPublishedState(itemId: string): Promise<SchemaTypes.ItemCurrentVsPublishedStateTargetSchema>;
177
199
  /**
178
200
  * Delete a record
179
201
  *
@@ -266,7 +288,7 @@ export default class Item extends BaseResource {
266
288
  * @throws {ApiError}
267
289
  * @throws {TimeoutError}
268
290
  */
269
- publish(itemId: string | SimpleSchemaTypes.ItemData, queryParams?: SimpleSchemaTypes.ItemPublishHrefSchema): Promise<SimpleSchemaTypes.Item>;
291
+ publish(itemId: string | SimpleSchemaTypes.ItemData, body?: SimpleSchemaTypes.ItemPublishSchema, queryParams?: SimpleSchemaTypes.ItemPublishHrefSchema): Promise<SimpleSchemaTypes.Item>;
270
292
  /**
271
293
  * Publish a record
272
294
  *
@@ -275,7 +297,7 @@ export default class Item extends BaseResource {
275
297
  * @throws {ApiError}
276
298
  * @throws {TimeoutError}
277
299
  */
278
- rawPublish(itemId: string, queryParams?: SchemaTypes.ItemPublishHrefSchema): Promise<SchemaTypes.ItemPublishTargetSchema>;
300
+ rawPublish(itemId: string, body?: SchemaTypes.ItemPublishSchema, queryParams?: SchemaTypes.ItemPublishHrefSchema): Promise<SchemaTypes.ItemPublishTargetSchema>;
279
301
  /**
280
302
  * Unpublish a record
281
303
  *
@@ -284,7 +306,7 @@ export default class Item extends BaseResource {
284
306
  * @throws {ApiError}
285
307
  * @throws {TimeoutError}
286
308
  */
287
- unpublish(itemId: string | SimpleSchemaTypes.ItemData, queryParams?: SimpleSchemaTypes.ItemUnpublishHrefSchema): Promise<SimpleSchemaTypes.Item>;
309
+ unpublish(itemId: string | SimpleSchemaTypes.ItemData, body?: SimpleSchemaTypes.ItemUnpublishSchema, queryParams?: SimpleSchemaTypes.ItemUnpublishHrefSchema): Promise<SimpleSchemaTypes.Item>;
288
310
  /**
289
311
  * Unpublish a record
290
312
  *
@@ -293,7 +315,7 @@ export default class Item extends BaseResource {
293
315
  * @throws {ApiError}
294
316
  * @throws {TimeoutError}
295
317
  */
296
- rawUnpublish(itemId: string, queryParams?: SchemaTypes.ItemUnpublishHrefSchema): Promise<SchemaTypes.ItemUnpublishTargetSchema>;
318
+ rawUnpublish(itemId: string, body?: SchemaTypes.ItemUnpublishSchema, queryParams?: SchemaTypes.ItemUnpublishHrefSchema): Promise<SchemaTypes.ItemUnpublishTargetSchema>;
297
319
  /**
298
320
  * Publish items in bulk
299
321
  *
@@ -389,6 +389,37 @@ var Item = /** @class */ (function (_super) {
389
389
  queryParams: queryParams,
390
390
  });
391
391
  };
392
+ /**
393
+ * Retrieve information regarding changes between current and published versions of the record
394
+ *
395
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/item/current_vs_published_state
396
+ *
397
+ * @throws {ApiError}
398
+ * @throws {TimeoutError}
399
+ *
400
+ * @deprecated This API call is to be considered private and might change without notice
401
+ */
402
+ Item.prototype.currentVsPublishedState = function (itemId) {
403
+ return this.rawCurrentVsPublishedState(Utils.toId(itemId)).then(function (body) {
404
+ return Utils.deserializeResponseBody(body);
405
+ });
406
+ };
407
+ /**
408
+ * Retrieve information regarding changes between current and published versions of the record
409
+ *
410
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/item/current_vs_published_state
411
+ *
412
+ * @throws {ApiError}
413
+ * @throws {TimeoutError}
414
+ *
415
+ * @deprecated This API call is to be considered private and might change without notice
416
+ */
417
+ Item.prototype.rawCurrentVsPublishedState = function (itemId) {
418
+ return this.client.request({
419
+ method: 'GET',
420
+ url: "/items/".concat(itemId, "/current-vs-published-state"),
421
+ });
422
+ };
392
423
  /**
393
424
  * Delete a record
394
425
  *
@@ -520,8 +551,15 @@ var Item = /** @class */ (function (_super) {
520
551
  * @throws {ApiError}
521
552
  * @throws {TimeoutError}
522
553
  */
523
- Item.prototype.publish = function (itemId, queryParams) {
524
- return this.rawPublish(Utils.toId(itemId), queryParams).then(function (body) {
554
+ Item.prototype.publish = function (itemId, body, queryParams) {
555
+ return this.rawPublish(Utils.toId(itemId), body
556
+ ? Utils.serializeRequestBody(body, {
557
+ id: Utils.toId(itemId),
558
+ type: 'selective_publish_operation',
559
+ attributes: ['content_in_locales', 'non_localized_content'],
560
+ relationships: [],
561
+ })
562
+ : null, queryParams).then(function (body) {
525
563
  return Utils.deserializeResponseBody(body);
526
564
  });
527
565
  };
@@ -533,10 +571,11 @@ var Item = /** @class */ (function (_super) {
533
571
  * @throws {ApiError}
534
572
  * @throws {TimeoutError}
535
573
  */
536
- Item.prototype.rawPublish = function (itemId, queryParams) {
574
+ Item.prototype.rawPublish = function (itemId, body, queryParams) {
537
575
  return this.client.request({
538
576
  method: 'PUT',
539
577
  url: "/items/".concat(itemId, "/publish"),
578
+ body: body,
540
579
  queryParams: queryParams,
541
580
  });
542
581
  };
@@ -548,8 +587,15 @@ var Item = /** @class */ (function (_super) {
548
587
  * @throws {ApiError}
549
588
  * @throws {TimeoutError}
550
589
  */
551
- Item.prototype.unpublish = function (itemId, queryParams) {
552
- return this.rawUnpublish(Utils.toId(itemId), queryParams).then(function (body) {
590
+ Item.prototype.unpublish = function (itemId, body, queryParams) {
591
+ return this.rawUnpublish(Utils.toId(itemId), body
592
+ ? Utils.serializeRequestBody(body, {
593
+ id: Utils.toId(itemId),
594
+ type: 'selective_unpublish_operation',
595
+ attributes: ['content_in_locales'],
596
+ relationships: [],
597
+ })
598
+ : null, queryParams).then(function (body) {
553
599
  return Utils.deserializeResponseBody(body);
554
600
  });
555
601
  };
@@ -561,10 +607,11 @@ var Item = /** @class */ (function (_super) {
561
607
  * @throws {ApiError}
562
608
  * @throws {TimeoutError}
563
609
  */
564
- Item.prototype.rawUnpublish = function (itemId, queryParams) {
610
+ Item.prototype.rawUnpublish = function (itemId, body, queryParams) {
565
611
  return this.client.request({
566
612
  method: 'PUT',
567
613
  url: "/items/".concat(itemId, "/unpublish"),
614
+ body: body,
568
615
  queryParams: queryParams,
569
616
  });
570
617
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/generated/resources/Item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAkC,wBAAY;IAA9C;;IAquBA,CAAC;IAluBC;;;;;;;OAOG;IACH,mBAAI,GAAJ,UAAK,WAAuD;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACzC,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,sBAAO,GAAP,UACE,WAAiD;QAEjD,OA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B,CAAwC,IAAI,EAAE;YACtE,IAAI,EAAE,mCAAmC;YACzC,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,aAAa,EAAE,CAAC,OAAO,CAAC;SACzB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,iCAAkB,GAAlB,UACE,IAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA2C;YACnE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B;YAChC,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAtyBe,SAAI,GAAW,MAAM,CAAC;IAuyBxC,WAAC;CAAA,AAxyBD,CAAkC,YAAY,GAwyB7C;eAxyBoB,IAAI"}
@@ -58,7 +58,7 @@ export default class Plugin extends BaseResource {
58
58
  */
59
59
  rawList(): Promise<SchemaTypes.PluginInstancesTargetSchema>;
60
60
  /**
61
- * Retrieve a plugins
61
+ * Retrieve a plugin
62
62
  *
63
63
  * Read more: https://www.datocms.com/docs/content-management-api/resources/plugin/self
64
64
  *
@@ -67,7 +67,7 @@ export default class Plugin extends BaseResource {
67
67
  */
68
68
  find(pluginId: string | SimpleSchemaTypes.PluginData): Promise<SimpleSchemaTypes.Plugin>;
69
69
  /**
70
- * Retrieve a plugins
70
+ * Retrieve a plugin
71
71
  *
72
72
  * Read more: https://www.datocms.com/docs/content-management-api/resources/plugin/self
73
73
  *
@@ -130,7 +130,7 @@ var Plugin = /** @class */ (function (_super) {
130
130
  });
131
131
  };
132
132
  /**
133
- * Retrieve a plugins
133
+ * Retrieve a plugin
134
134
  *
135
135
  * Read more: https://www.datocms.com/docs/content-management-api/resources/plugin/self
136
136
  *
@@ -143,7 +143,7 @@ var Plugin = /** @class */ (function (_super) {
143
143
  });
144
144
  };
145
145
  /**
146
- * Retrieve a plugins
146
+ * Retrieve a plugin
147
147
  *
148
148
  * Read more: https://www.datocms.com/docs/content-management-api/resources/plugin/self
149
149
  *
@@ -31,7 +31,7 @@ var ScheduledPublication = /** @class */ (function (_super) {
31
31
  ScheduledPublication.prototype.create = function (itemId, body) {
32
32
  return this.rawCreate(Utils.toId(itemId), Utils.serializeRequestBody(body, {
33
33
  type: 'scheduled_publication',
34
- attributes: ['publication_scheduled_at'],
34
+ attributes: ['publication_scheduled_at', 'selective_publication'],
35
35
  relationships: [],
36
36
  })).then(function (body) {
37
37
  return Utils.deserializeResponseBody(body);