@datocms/cma-client 1.3.4 → 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.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/Item.js +53 -6
- package/dist/cjs/generated/resources/Item.js.map +1 -1
- package/dist/cjs/generated/resources/Plugin.js +2 -2
- package/dist/cjs/generated/resources/ScheduledPublication.js +1 -1
- package/dist/cjs/generated/resources/ScheduledPublication.js.map +1 -1
- package/dist/cjs/generated/resources/ScheduledUnpublishing.js +1 -1
- package/dist/cjs/generated/resources/ScheduledUnpublishing.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +600 -422
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +248 -83
- package/dist/esm/generated/resources/Item.d.ts +26 -4
- package/dist/esm/generated/resources/Item.js +53 -6
- package/dist/esm/generated/resources/Item.js.map +1 -1
- package/dist/esm/generated/resources/Plugin.d.ts +2 -2
- package/dist/esm/generated/resources/Plugin.js +2 -2
- package/dist/esm/generated/resources/ScheduledPublication.js +1 -1
- package/dist/esm/generated/resources/ScheduledPublication.js.map +1 -1
- package/dist/esm/generated/resources/ScheduledUnpublishing.js +1 -1
- package/dist/esm/generated/resources/ScheduledUnpublishing.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +600 -422
- package/dist/types/generated/SimpleSchemaTypes.d.ts +248 -83
- package/dist/types/generated/resources/Item.d.ts +26 -4
- package/dist/types/generated/resources/Plugin.d.ts +2 -2
- package/package.json +3 -3
- package/resources.json +204 -3
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +626 -443
- package/src/generated/SimpleSchemaTypes.ts +255 -86
- package/src/generated/resources/Item.ts +69 -2
- package/src/generated/resources/Plugin.ts +2 -2
- package/src/generated/resources/ScheduledPublication.ts +1 -1
- 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
|
-
|
|
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
|
-
|
|
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
|
*
|
|
@@ -58,7 +58,7 @@ export default class Plugin extends BaseResource {
|
|
|
58
58
|
*/
|
|
59
59
|
rawList(): Promise<SchemaTypes.PluginInstancesTargetSchema>;
|
|
60
60
|
/**
|
|
61
|
-
* Retrieve a
|
|
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
|
|
70
|
+
* Retrieve a plugin
|
|
71
71
|
*
|
|
72
72
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/plugin/self
|
|
73
73
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6-alpha.0",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@datocms/rest-client-utils": "^1.3.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^1.3.
|
|
43
|
+
"@datocms/dashboard-client": "^1.3.6-alpha.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "6d4e65c250eef462e5bd7cf995d66d5fb377570b"
|
|
46
46
|
}
|