@wix/auto_sdk_blog_draft-posts 1.0.92 → 1.0.93

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 (41) hide show
  1. package/build/cjs/index.js +13 -13
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +281 -273
  4. package/build/cjs/index.typings.js +13 -13
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +283 -275
  7. package/build/cjs/meta.js +13 -13
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.js +15 -15
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.mjs +13 -13
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +281 -273
  14. package/build/es/index.typings.mjs +13 -13
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +283 -275
  17. package/build/es/meta.mjs +13 -13
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/es/schemas.mjs +15 -15
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.js +13 -13
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +310 -302
  24. package/build/internal/cjs/index.typings.js +13 -13
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +326 -318
  27. package/build/internal/cjs/meta.js +13 -13
  28. package/build/internal/cjs/meta.js.map +1 -1
  29. package/build/internal/cjs/schemas.js +15 -15
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/index.mjs +13 -13
  32. package/build/internal/es/index.mjs.map +1 -1
  33. package/build/internal/es/index.typings.d.mts +310 -302
  34. package/build/internal/es/index.typings.mjs +13 -13
  35. package/build/internal/es/index.typings.mjs.map +1 -1
  36. package/build/internal/es/meta.d.mts +326 -318
  37. package/build/internal/es/meta.mjs +13 -13
  38. package/build/internal/es/meta.mjs.map +1 -1
  39. package/build/internal/es/schemas.mjs +15 -15
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -2946,7 +2946,15 @@ interface Tag {
2946
2946
  meta?: Record<string, any> | null;
2947
2947
  /** SEO tag inner content. For example, `<title> inner content </title>`. */
2948
2948
  children?: string;
2949
- /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */
2949
+ /**
2950
+ * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).
2951
+ *
2952
+ * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
2953
+ * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
2954
+ * or Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For
2955
+ * those pages `false` therefore does not mean "not a custom tag" — it means this API could not tell.
2956
+ * Pass `seoData` explicitly to resolve against a known set of tags.
2957
+ */
2950
2958
  custom?: boolean;
2951
2959
  /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
2952
2960
  disabled?: boolean;
@@ -3055,10 +3063,6 @@ interface DraftPostTranslation {
3055
3063
  /** Post URL. */
3056
3064
  url?: string;
3057
3065
  }
3058
- interface InitialDraftPostsCopied {
3059
- /** Number of draft posts copied. */
3060
- count?: number;
3061
- }
3062
3066
  interface DraftCategoriesUpdated {
3063
3067
  /**
3064
3068
  * Draft post ID.
@@ -3097,6 +3101,200 @@ interface DraftTagsUpdated {
3097
3101
  */
3098
3102
  previousTags?: string[];
3099
3103
  }
3104
+ interface GetDraftPostTotalsRequest {
3105
+ /**
3106
+ * Group results by fields (defaults to grouping by status).
3107
+ * If, for example, grouping by language is passed, language values in response will be filled.
3108
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3109
+ * @maxSize 10
3110
+ */
3111
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3112
+ /**
3113
+ * Optional language filter by provided language code. Useful in multilingual context.
3114
+ * @format LANGUAGE_TAG
3115
+ */
3116
+ language?: string | null;
3117
+ }
3118
+ declare enum TotalDraftPostsGroupingField {
3119
+ /** Groups results by status. */
3120
+ STATUS = "STATUS",
3121
+ /** Groups results by language. */
3122
+ LANGUAGE = "LANGUAGE"
3123
+ }
3124
+ /** @enumType */
3125
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3126
+ interface GetDraftPostTotalsResponse {
3127
+ /** Draft post totals. */
3128
+ totalDraftPosts?: TotalDraftPosts[];
3129
+ }
3130
+ interface TotalDraftPosts {
3131
+ /** Draft post totals in that group. */
3132
+ total?: number;
3133
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3134
+ status?: StatusWithLiterals;
3135
+ /**
3136
+ * Draft post language code (only has value when grouping by language, otherwise null).
3137
+ * @format LANGUAGE_TAG
3138
+ */
3139
+ language?: string | null;
3140
+ }
3141
+ interface DomainEvent extends DomainEventBodyOneOf {
3142
+ createdEvent?: EntityCreatedEvent;
3143
+ updatedEvent?: EntityUpdatedEvent;
3144
+ deletedEvent?: EntityDeletedEvent;
3145
+ actionEvent?: ActionEvent;
3146
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3147
+ _id?: string;
3148
+ /**
3149
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3150
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3151
+ */
3152
+ entityFqdn?: string;
3153
+ /**
3154
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3155
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3156
+ */
3157
+ slug?: string;
3158
+ /** ID of the entity associated with the event. */
3159
+ entityId?: string;
3160
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3161
+ eventTime?: Date | null;
3162
+ /**
3163
+ * Whether the event was triggered as a result of a privacy regulation application
3164
+ * (for example, GDPR).
3165
+ */
3166
+ triggeredByAnonymizeRequest?: boolean | null;
3167
+ /** If present, indicates the action that triggered the event. */
3168
+ originatedFrom?: string | null;
3169
+ /**
3170
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
3171
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
3172
+ */
3173
+ entityEventSequence?: string | null;
3174
+ }
3175
+ /** @oneof */
3176
+ interface DomainEventBodyOneOf {
3177
+ createdEvent?: EntityCreatedEvent;
3178
+ updatedEvent?: EntityUpdatedEvent;
3179
+ deletedEvent?: EntityDeletedEvent;
3180
+ actionEvent?: ActionEvent;
3181
+ }
3182
+ interface EntityCreatedEvent {
3183
+ entity?: string;
3184
+ }
3185
+ interface RestoreInfo {
3186
+ deletedDate?: Date | null;
3187
+ }
3188
+ interface EntityUpdatedEvent {
3189
+ /**
3190
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3191
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3192
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3193
+ */
3194
+ currentEntity?: string;
3195
+ }
3196
+ interface EntityDeletedEvent {
3197
+ /** Entity that was deleted. */
3198
+ deletedEntity?: string | null;
3199
+ }
3200
+ interface ActionEvent {
3201
+ body?: string;
3202
+ }
3203
+ interface MessageEnvelope {
3204
+ /**
3205
+ * App instance ID.
3206
+ * @format GUID
3207
+ */
3208
+ instanceId?: string | null;
3209
+ /**
3210
+ * Event type.
3211
+ * @maxLength 150
3212
+ */
3213
+ eventType?: string;
3214
+ /** The identification type and identity data. */
3215
+ identity?: IdentificationData;
3216
+ /** Stringify payload. */
3217
+ data?: string;
3218
+ /** Details related to the account */
3219
+ accountInfo?: AccountInfo;
3220
+ }
3221
+ interface IdentificationData extends IdentificationDataIdOneOf {
3222
+ /**
3223
+ * ID of a site visitor that has not logged in to the site.
3224
+ * @format GUID
3225
+ */
3226
+ anonymousVisitorId?: string;
3227
+ /**
3228
+ * ID of a site visitor that has logged in to the site.
3229
+ * @format GUID
3230
+ */
3231
+ memberId?: string;
3232
+ /**
3233
+ * ID of a Wix user (site owner, contributor, etc.).
3234
+ * @format GUID
3235
+ */
3236
+ wixUserId?: string;
3237
+ /**
3238
+ * ID of an app.
3239
+ * @format GUID
3240
+ */
3241
+ appId?: string;
3242
+ /** @readonly */
3243
+ identityType?: WebhookIdentityTypeWithLiterals;
3244
+ }
3245
+ /** @oneof */
3246
+ interface IdentificationDataIdOneOf {
3247
+ /**
3248
+ * ID of a site visitor that has not logged in to the site.
3249
+ * @format GUID
3250
+ */
3251
+ anonymousVisitorId?: string;
3252
+ /**
3253
+ * ID of a site visitor that has logged in to the site.
3254
+ * @format GUID
3255
+ */
3256
+ memberId?: string;
3257
+ /**
3258
+ * ID of a Wix user (site owner, contributor, etc.).
3259
+ * @format GUID
3260
+ */
3261
+ wixUserId?: string;
3262
+ /**
3263
+ * ID of an app.
3264
+ * @format GUID
3265
+ */
3266
+ appId?: string;
3267
+ }
3268
+ declare enum WebhookIdentityType {
3269
+ UNKNOWN = "UNKNOWN",
3270
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3271
+ MEMBER = "MEMBER",
3272
+ WIX_USER = "WIX_USER",
3273
+ APP = "APP"
3274
+ }
3275
+ /** @enumType */
3276
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3277
+ interface AccountInfo {
3278
+ /**
3279
+ * ID of the Wix account associated with the event.
3280
+ * @format GUID
3281
+ */
3282
+ accountId?: string | null;
3283
+ /**
3284
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3285
+ * @format GUID
3286
+ */
3287
+ parentAccountId?: string | null;
3288
+ /**
3289
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3290
+ * @format GUID
3291
+ */
3292
+ siteId?: string | null;
3293
+ }
3294
+ interface InitialDraftPostsCopied {
3295
+ /** Number of draft posts copied. */
3296
+ count?: number;
3297
+ }
3100
3298
  interface CreateDraftPostRequest {
3101
3299
  /** Draft post to create. */
3102
3300
  draftPost: DraftPost;
@@ -3677,195 +3875,116 @@ interface DraftPostCount {
3677
3875
  /** Number of posts. */
3678
3876
  postCount?: number;
3679
3877
  }
3680
- interface DomainEvent extends DomainEventBodyOneOf {
3681
- createdEvent?: EntityCreatedEvent;
3682
- updatedEvent?: EntityUpdatedEvent;
3683
- deletedEvent?: EntityDeletedEvent;
3684
- actionEvent?: ActionEvent;
3685
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3686
- _id?: string;
3878
+ interface BulkRevertToUnpublishedRequest {
3687
3879
  /**
3688
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3689
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3880
+ * Source post IDs.
3881
+ * @minSize 1
3882
+ * @maxSize 100
3883
+ * @format GUID
3690
3884
  */
3691
- entityFqdn?: string;
3885
+ postIds?: string[];
3886
+ /** Should full draft post be returned. */
3887
+ returnFullEntity?: boolean;
3888
+ }
3889
+ interface BulkRevertToUnpublishedResponse {
3890
+ /** Bulk action results. */
3891
+ results?: BulkDraftPostResult[];
3892
+ /** Bulk action metadata. */
3893
+ bulkActionMetadata?: BulkActionMetadata;
3894
+ }
3895
+ interface BulkRejectDraftPostRequest {
3692
3896
  /**
3693
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3694
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3897
+ * Source post IDs.
3898
+ * @minSize 1
3899
+ * @maxSize 100
3900
+ * @format GUID
3695
3901
  */
3696
- slug?: string;
3697
- /** ID of the entity associated with the event. */
3698
- entityId?: string;
3699
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3700
- eventTime?: Date | null;
3902
+ postIds?: string[];
3903
+ /** Should full draft post be returned. */
3904
+ returnFullEntity?: boolean;
3905
+ }
3906
+ interface BulkRejectDraftPostResponse {
3907
+ /** Bulk action results. */
3908
+ results?: BulkDraftPostResult[];
3909
+ /** Bulk action metadata. */
3910
+ bulkActionMetadata?: BulkActionMetadata;
3911
+ }
3912
+ interface RevertToUnpublishedRequest {
3701
3913
  /**
3702
- * Whether the event was triggered as a result of a privacy regulation application
3703
- * (for example, GDPR).
3914
+ * Source post ID.
3915
+ * @format GUID
3704
3916
  */
3705
- triggeredByAnonymizeRequest?: boolean | null;
3706
- /** If present, indicates the action that triggered the event. */
3707
- originatedFrom?: string | null;
3708
- /**
3709
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
3710
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
3711
- */
3712
- entityEventSequence?: string | null;
3713
- }
3714
- /** @oneof */
3715
- interface DomainEventBodyOneOf {
3716
- createdEvent?: EntityCreatedEvent;
3717
- updatedEvent?: EntityUpdatedEvent;
3718
- deletedEvent?: EntityDeletedEvent;
3719
- actionEvent?: ActionEvent;
3720
- }
3721
- interface EntityCreatedEvent {
3722
- entity?: string;
3723
- }
3724
- interface RestoreInfo {
3725
- deletedDate?: Date | null;
3726
- }
3727
- interface EntityUpdatedEvent {
3917
+ postId?: string;
3728
3918
  /**
3729
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3730
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3731
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3919
+ * List of draft post fields to be included if entities are present in the response.
3920
+ * Base fieldset, which is default, will return all core draft post properties.
3921
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3922
+ * @maxSize 10
3732
3923
  */
3733
- currentEntity?: string;
3734
- }
3735
- interface EntityDeletedEvent {
3736
- /** Entity that was deleted. */
3737
- deletedEntity?: string | null;
3924
+ fieldsets?: FieldWithLiterals[];
3738
3925
  }
3739
- interface ActionEvent {
3740
- body?: string;
3926
+ interface RevertToUnpublishedResponse {
3927
+ /** Updated post draft. */
3928
+ draftPost?: DraftPost;
3741
3929
  }
3742
- interface MessageEnvelope {
3930
+ interface RejectDraftPostRequest {
3743
3931
  /**
3744
- * App instance ID.
3932
+ * Source post ID.
3745
3933
  * @format GUID
3746
3934
  */
3747
- instanceId?: string | null;
3935
+ postId?: string;
3748
3936
  /**
3749
- * Event type.
3750
- * @maxLength 150
3937
+ * List of draft post fields to be included if entities are present in the response.
3938
+ * Base fieldset, which is default, will return all core draft post properties.
3939
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3940
+ * @maxSize 10
3751
3941
  */
3752
- eventType?: string;
3753
- /** The identification type and identity data. */
3754
- identity?: IdentificationData;
3755
- /** Stringify payload. */
3756
- data?: string;
3757
- /** Details related to the account */
3758
- accountInfo?: AccountInfo;
3942
+ fieldsets?: FieldWithLiterals[];
3759
3943
  }
3760
- interface IdentificationData extends IdentificationDataIdOneOf {
3761
- /**
3762
- * ID of a site visitor that has not logged in to the site.
3763
- * @format GUID
3764
- */
3765
- anonymousVisitorId?: string;
3766
- /**
3767
- * ID of a site visitor that has logged in to the site.
3768
- * @format GUID
3769
- */
3770
- memberId?: string;
3771
- /**
3772
- * ID of a Wix user (site owner, contributor, etc.).
3773
- * @format GUID
3774
- */
3775
- wixUserId?: string;
3776
- /**
3777
- * ID of an app.
3778
- * @format GUID
3779
- */
3780
- appId?: string;
3781
- /** @readonly */
3782
- identityType?: WebhookIdentityTypeWithLiterals;
3944
+ interface RejectDraftPostResponse {
3945
+ /** Draft post. */
3946
+ draftPost?: DraftPost;
3783
3947
  }
3784
- /** @oneof */
3785
- interface IdentificationDataIdOneOf {
3786
- /**
3787
- * ID of a site visitor that has not logged in to the site.
3788
- * @format GUID
3789
- */
3790
- anonymousVisitorId?: string;
3948
+ interface ApproveDraftPostRequest {
3791
3949
  /**
3792
- * ID of a site visitor that has logged in to the site.
3950
+ * Source post ID.
3793
3951
  * @format GUID
3794
3952
  */
3795
- memberId?: string;
3953
+ postId?: string;
3796
3954
  /**
3797
- * ID of a Wix user (site owner, contributor, etc.).
3798
- * @format GUID
3955
+ * Scheduled publish date if should be not immediately published.
3956
+ * @maxLength 24
3799
3957
  */
3800
- wixUserId?: string;
3958
+ scheduledPublishDate?: string | null;
3801
3959
  /**
3802
- * ID of an app.
3803
- * @format GUID
3960
+ * List of draft post fields to be included if entities are present in the response.
3961
+ * Base fieldset, which is default, will return all core draft post properties.
3962
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3963
+ * @maxSize 10
3804
3964
  */
3805
- appId?: string;
3965
+ fieldsets?: FieldWithLiterals[];
3806
3966
  }
3807
- declare enum WebhookIdentityType {
3808
- UNKNOWN = "UNKNOWN",
3809
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3810
- MEMBER = "MEMBER",
3811
- WIX_USER = "WIX_USER",
3812
- APP = "APP"
3967
+ interface ApproveDraftPostResponse {
3968
+ /** Updated post draft. */
3969
+ draftPost?: DraftPost;
3813
3970
  }
3814
- /** @enumType */
3815
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3816
- interface AccountInfo {
3817
- /**
3818
- * ID of the Wix account associated with the event.
3819
- * @format GUID
3820
- */
3821
- accountId?: string | null;
3822
- /**
3823
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3824
- * @format GUID
3825
- */
3826
- parentAccountId?: string | null;
3971
+ interface MarkPostAsInModerationRequest {
3827
3972
  /**
3828
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3829
- * @format GUID
3973
+ * Source post ID.
3974
+ * @maxLength 38
3830
3975
  */
3831
- siteId?: string | null;
3832
- }
3833
- interface GetDraftPostTotalsRequest {
3976
+ postId?: string;
3834
3977
  /**
3835
- * Group results by fields (defaults to grouping by status).
3836
- * If, for example, grouping by language is passed, language values in response will be filled.
3837
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3978
+ * List of draft post fields to be included if entities are present in the response.
3979
+ * Base fieldset, which is default, will return all core draft post properties.
3980
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3838
3981
  * @maxSize 10
3839
3982
  */
3840
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3841
- /**
3842
- * Optional language filter by provided language code. Useful in multilingual context.
3843
- * @format LANGUAGE_TAG
3844
- */
3845
- language?: string | null;
3846
- }
3847
- declare enum TotalDraftPostsGroupingField {
3848
- /** Groups results by status. */
3849
- STATUS = "STATUS",
3850
- /** Groups results by language. */
3851
- LANGUAGE = "LANGUAGE"
3852
- }
3853
- /** @enumType */
3854
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3855
- interface GetDraftPostTotalsResponse {
3856
- /** Draft post totals. */
3857
- totalDraftPosts?: TotalDraftPosts[];
3983
+ fieldsets?: FieldWithLiterals[];
3858
3984
  }
3859
- interface TotalDraftPosts {
3860
- /** Draft post totals in that group. */
3861
- total?: number;
3862
- /** Draft post status (only has value when grouping by status, otherwise null). */
3863
- status?: StatusWithLiterals;
3864
- /**
3865
- * Draft post language code (only has value when grouping by language, otherwise null).
3866
- * @format LANGUAGE_TAG
3867
- */
3868
- language?: string | null;
3985
+ interface MarkPostAsInModerationResponse {
3986
+ /** Updated post draft. */
3987
+ draftPost?: DraftPost;
3869
3988
  }
3870
3989
  interface TranslateDraftRequest {
3871
3990
  /**
@@ -3940,117 +4059,6 @@ interface UpdateDraftPostLanguageResponse {
3940
4059
  /** Draft post */
3941
4060
  draftPost?: DraftPost;
3942
4061
  }
3943
- interface BulkRevertToUnpublishedRequest {
3944
- /**
3945
- * Source post IDs.
3946
- * @minSize 1
3947
- * @maxSize 100
3948
- * @format GUID
3949
- */
3950
- postIds?: string[];
3951
- /** Should full draft post be returned. */
3952
- returnFullEntity?: boolean;
3953
- }
3954
- interface BulkRevertToUnpublishedResponse {
3955
- /** Bulk action results. */
3956
- results?: BulkDraftPostResult[];
3957
- /** Bulk action metadata. */
3958
- bulkActionMetadata?: BulkActionMetadata;
3959
- }
3960
- interface BulkRejectDraftPostRequest {
3961
- /**
3962
- * Source post IDs.
3963
- * @minSize 1
3964
- * @maxSize 100
3965
- * @format GUID
3966
- */
3967
- postIds?: string[];
3968
- /** Should full draft post be returned. */
3969
- returnFullEntity?: boolean;
3970
- }
3971
- interface BulkRejectDraftPostResponse {
3972
- /** Bulk action results. */
3973
- results?: BulkDraftPostResult[];
3974
- /** Bulk action metadata. */
3975
- bulkActionMetadata?: BulkActionMetadata;
3976
- }
3977
- interface RevertToUnpublishedRequest {
3978
- /**
3979
- * Source post ID.
3980
- * @format GUID
3981
- */
3982
- postId?: string;
3983
- /**
3984
- * List of draft post fields to be included if entities are present in the response.
3985
- * Base fieldset, which is default, will return all core draft post properties.
3986
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3987
- * @maxSize 10
3988
- */
3989
- fieldsets?: FieldWithLiterals[];
3990
- }
3991
- interface RevertToUnpublishedResponse {
3992
- /** Updated post draft. */
3993
- draftPost?: DraftPost;
3994
- }
3995
- interface RejectDraftPostRequest {
3996
- /**
3997
- * Source post ID.
3998
- * @format GUID
3999
- */
4000
- postId?: string;
4001
- /**
4002
- * List of draft post fields to be included if entities are present in the response.
4003
- * Base fieldset, which is default, will return all core draft post properties.
4004
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4005
- * @maxSize 10
4006
- */
4007
- fieldsets?: FieldWithLiterals[];
4008
- }
4009
- interface RejectDraftPostResponse {
4010
- /** Draft post. */
4011
- draftPost?: DraftPost;
4012
- }
4013
- interface ApproveDraftPostRequest {
4014
- /**
4015
- * Source post ID.
4016
- * @format GUID
4017
- */
4018
- postId?: string;
4019
- /**
4020
- * Scheduled publish date if should be not immediately published.
4021
- * @maxLength 24
4022
- */
4023
- scheduledPublishDate?: string | null;
4024
- /**
4025
- * List of draft post fields to be included if entities are present in the response.
4026
- * Base fieldset, which is default, will return all core draft post properties.
4027
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4028
- * @maxSize 10
4029
- */
4030
- fieldsets?: FieldWithLiterals[];
4031
- }
4032
- interface ApproveDraftPostResponse {
4033
- /** Updated post draft. */
4034
- draftPost?: DraftPost;
4035
- }
4036
- interface MarkPostAsInModerationRequest {
4037
- /**
4038
- * Source post ID.
4039
- * @maxLength 38
4040
- */
4041
- postId?: string;
4042
- /**
4043
- * List of draft post fields to be included if entities are present in the response.
4044
- * Base fieldset, which is default, will return all core draft post properties.
4045
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4046
- * @maxSize 10
4047
- */
4048
- fieldsets?: FieldWithLiterals[];
4049
- }
4050
- interface MarkPostAsInModerationResponse {
4051
- /** Updated post draft. */
4052
- draftPost?: DraftPost;
4053
- }
4054
4062
  interface BaseEventMetadata {
4055
4063
  /**
4056
4064
  * App instance ID.
@@ -3740,6 +3740,19 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
3740
3740
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
3741
3741
  return ModerationStatusStatus2;
3742
3742
  })(ModerationStatusStatus || {});
3743
+ var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
3744
+ TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
3745
+ TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
3746
+ return TotalDraftPostsGroupingField2;
3747
+ })(TotalDraftPostsGroupingField || {});
3748
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3749
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3750
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3751
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
3752
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3753
+ WebhookIdentityType2["APP"] = "APP";
3754
+ return WebhookIdentityType2;
3755
+ })(WebhookIdentityType || {});
3743
3756
  var Type = /* @__PURE__ */ ((Type2) => {
3744
3757
  Type2["UNKNOWN"] = "UNKNOWN";
3745
3758
  Type2["MANUAL"] = "MANUAL";
@@ -3779,19 +3792,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3779
3792
  SortOrder2["DESC"] = "DESC";
3780
3793
  return SortOrder2;
3781
3794
  })(SortOrder || {});
3782
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3783
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3784
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3785
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3786
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3787
- WebhookIdentityType2["APP"] = "APP";
3788
- return WebhookIdentityType2;
3789
- })(WebhookIdentityType || {});
3790
- var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
3791
- TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
3792
- TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
3793
- return TotalDraftPostsGroupingField2;
3794
- })(TotalDraftPostsGroupingField || {});
3795
3795
  async function createDraftPost2(draftPost, options) {
3796
3796
  const { httpClient, sideEffects } = arguments[2];
3797
3797
  const payload = (0, import_transform_paths2.transformPaths)(