@wix/auto_sdk_blog_draft-posts 1.0.92 → 1.0.94

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 +288 -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 +290 -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 +288 -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 +290 -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 +317 -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 +333 -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 +317 -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 +333 -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,22 @@ 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
+ * i.e. an entry from the site's Advanced/Custom Tags list.
2952
+ *
2953
+ * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
2954
+ * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
2955
+ * default/pattern — standard tags always resolve with `custom: false`, even when their content comes
2956
+ * from a page's manually saved SEO title/description override. Don't use this field to verify whether
2957
+ * a live page reflects a manual per-page SEO edit.
2958
+ *
2959
+ * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
2960
+ * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
2961
+ * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
2962
+ * response entirely — there, `false` means this API could not tell, not that no custom tag exists.
2963
+ * Pass `seoData` explicitly to resolve against a known set of tags.
2964
+ */
2950
2965
  custom?: boolean;
2951
2966
  /** 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
2967
  disabled?: boolean;
@@ -3055,10 +3070,6 @@ interface DraftPostTranslation {
3055
3070
  /** Post URL. */
3056
3071
  url?: string;
3057
3072
  }
3058
- interface InitialDraftPostsCopied {
3059
- /** Number of draft posts copied. */
3060
- count?: number;
3061
- }
3062
3073
  interface DraftCategoriesUpdated {
3063
3074
  /**
3064
3075
  * Draft post ID.
@@ -3097,6 +3108,200 @@ interface DraftTagsUpdated {
3097
3108
  */
3098
3109
  previousTags?: string[];
3099
3110
  }
3111
+ interface GetDraftPostTotalsRequest {
3112
+ /**
3113
+ * Group results by fields (defaults to grouping by status).
3114
+ * If, for example, grouping by language is passed, language values in response will be filled.
3115
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3116
+ * @maxSize 10
3117
+ */
3118
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3119
+ /**
3120
+ * Optional language filter by provided language code. Useful in multilingual context.
3121
+ * @format LANGUAGE_TAG
3122
+ */
3123
+ language?: string | null;
3124
+ }
3125
+ declare enum TotalDraftPostsGroupingField {
3126
+ /** Groups results by status. */
3127
+ STATUS = "STATUS",
3128
+ /** Groups results by language. */
3129
+ LANGUAGE = "LANGUAGE"
3130
+ }
3131
+ /** @enumType */
3132
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3133
+ interface GetDraftPostTotalsResponse {
3134
+ /** Draft post totals. */
3135
+ totalDraftPosts?: TotalDraftPosts[];
3136
+ }
3137
+ interface TotalDraftPosts {
3138
+ /** Draft post totals in that group. */
3139
+ total?: number;
3140
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3141
+ status?: StatusWithLiterals;
3142
+ /**
3143
+ * Draft post language code (only has value when grouping by language, otherwise null).
3144
+ * @format LANGUAGE_TAG
3145
+ */
3146
+ language?: string | null;
3147
+ }
3148
+ interface DomainEvent extends DomainEventBodyOneOf {
3149
+ createdEvent?: EntityCreatedEvent;
3150
+ updatedEvent?: EntityUpdatedEvent;
3151
+ deletedEvent?: EntityDeletedEvent;
3152
+ actionEvent?: ActionEvent;
3153
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3154
+ _id?: string;
3155
+ /**
3156
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3157
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3158
+ */
3159
+ entityFqdn?: string;
3160
+ /**
3161
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3162
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3163
+ */
3164
+ slug?: string;
3165
+ /** ID of the entity associated with the event. */
3166
+ entityId?: string;
3167
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3168
+ eventTime?: Date | null;
3169
+ /**
3170
+ * Whether the event was triggered as a result of a privacy regulation application
3171
+ * (for example, GDPR).
3172
+ */
3173
+ triggeredByAnonymizeRequest?: boolean | null;
3174
+ /** If present, indicates the action that triggered the event. */
3175
+ originatedFrom?: string | null;
3176
+ /**
3177
+ * 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.
3178
+ * 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.
3179
+ */
3180
+ entityEventSequence?: string | null;
3181
+ }
3182
+ /** @oneof */
3183
+ interface DomainEventBodyOneOf {
3184
+ createdEvent?: EntityCreatedEvent;
3185
+ updatedEvent?: EntityUpdatedEvent;
3186
+ deletedEvent?: EntityDeletedEvent;
3187
+ actionEvent?: ActionEvent;
3188
+ }
3189
+ interface EntityCreatedEvent {
3190
+ entity?: string;
3191
+ }
3192
+ interface RestoreInfo {
3193
+ deletedDate?: Date | null;
3194
+ }
3195
+ interface EntityUpdatedEvent {
3196
+ /**
3197
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3198
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3199
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3200
+ */
3201
+ currentEntity?: string;
3202
+ }
3203
+ interface EntityDeletedEvent {
3204
+ /** Entity that was deleted. */
3205
+ deletedEntity?: string | null;
3206
+ }
3207
+ interface ActionEvent {
3208
+ body?: string;
3209
+ }
3210
+ interface MessageEnvelope {
3211
+ /**
3212
+ * App instance ID.
3213
+ * @format GUID
3214
+ */
3215
+ instanceId?: string | null;
3216
+ /**
3217
+ * Event type.
3218
+ * @maxLength 150
3219
+ */
3220
+ eventType?: string;
3221
+ /** The identification type and identity data. */
3222
+ identity?: IdentificationData;
3223
+ /** Stringify payload. */
3224
+ data?: string;
3225
+ /** Details related to the account */
3226
+ accountInfo?: AccountInfo;
3227
+ }
3228
+ interface IdentificationData extends IdentificationDataIdOneOf {
3229
+ /**
3230
+ * ID of a site visitor that has not logged in to the site.
3231
+ * @format GUID
3232
+ */
3233
+ anonymousVisitorId?: string;
3234
+ /**
3235
+ * ID of a site visitor that has logged in to the site.
3236
+ * @format GUID
3237
+ */
3238
+ memberId?: string;
3239
+ /**
3240
+ * ID of a Wix user (site owner, contributor, etc.).
3241
+ * @format GUID
3242
+ */
3243
+ wixUserId?: string;
3244
+ /**
3245
+ * ID of an app.
3246
+ * @format GUID
3247
+ */
3248
+ appId?: string;
3249
+ /** @readonly */
3250
+ identityType?: WebhookIdentityTypeWithLiterals;
3251
+ }
3252
+ /** @oneof */
3253
+ interface IdentificationDataIdOneOf {
3254
+ /**
3255
+ * ID of a site visitor that has not logged in to the site.
3256
+ * @format GUID
3257
+ */
3258
+ anonymousVisitorId?: string;
3259
+ /**
3260
+ * ID of a site visitor that has logged in to the site.
3261
+ * @format GUID
3262
+ */
3263
+ memberId?: string;
3264
+ /**
3265
+ * ID of a Wix user (site owner, contributor, etc.).
3266
+ * @format GUID
3267
+ */
3268
+ wixUserId?: string;
3269
+ /**
3270
+ * ID of an app.
3271
+ * @format GUID
3272
+ */
3273
+ appId?: string;
3274
+ }
3275
+ declare enum WebhookIdentityType {
3276
+ UNKNOWN = "UNKNOWN",
3277
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3278
+ MEMBER = "MEMBER",
3279
+ WIX_USER = "WIX_USER",
3280
+ APP = "APP"
3281
+ }
3282
+ /** @enumType */
3283
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3284
+ interface AccountInfo {
3285
+ /**
3286
+ * ID of the Wix account associated with the event.
3287
+ * @format GUID
3288
+ */
3289
+ accountId?: string | null;
3290
+ /**
3291
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3292
+ * @format GUID
3293
+ */
3294
+ parentAccountId?: string | null;
3295
+ /**
3296
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3297
+ * @format GUID
3298
+ */
3299
+ siteId?: string | null;
3300
+ }
3301
+ interface InitialDraftPostsCopied {
3302
+ /** Number of draft posts copied. */
3303
+ count?: number;
3304
+ }
3100
3305
  interface CreateDraftPostRequest {
3101
3306
  /** Draft post to create. */
3102
3307
  draftPost: DraftPost;
@@ -3677,195 +3882,116 @@ interface DraftPostCount {
3677
3882
  /** Number of posts. */
3678
3883
  postCount?: number;
3679
3884
  }
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;
3885
+ interface BulkRevertToUnpublishedRequest {
3687
3886
  /**
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`.
3887
+ * Source post IDs.
3888
+ * @minSize 1
3889
+ * @maxSize 100
3890
+ * @format GUID
3690
3891
  */
3691
- entityFqdn?: string;
3892
+ postIds?: string[];
3893
+ /** Should full draft post be returned. */
3894
+ returnFullEntity?: boolean;
3895
+ }
3896
+ interface BulkRevertToUnpublishedResponse {
3897
+ /** Bulk action results. */
3898
+ results?: BulkDraftPostResult[];
3899
+ /** Bulk action metadata. */
3900
+ bulkActionMetadata?: BulkActionMetadata;
3901
+ }
3902
+ interface BulkRejectDraftPostRequest {
3692
3903
  /**
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`.
3904
+ * Source post IDs.
3905
+ * @minSize 1
3906
+ * @maxSize 100
3907
+ * @format GUID
3695
3908
  */
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;
3909
+ postIds?: string[];
3910
+ /** Should full draft post be returned. */
3911
+ returnFullEntity?: boolean;
3912
+ }
3913
+ interface BulkRejectDraftPostResponse {
3914
+ /** Bulk action results. */
3915
+ results?: BulkDraftPostResult[];
3916
+ /** Bulk action metadata. */
3917
+ bulkActionMetadata?: BulkActionMetadata;
3918
+ }
3919
+ interface RevertToUnpublishedRequest {
3701
3920
  /**
3702
- * Whether the event was triggered as a result of a privacy regulation application
3703
- * (for example, GDPR).
3921
+ * Source post ID.
3922
+ * @format GUID
3704
3923
  */
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 {
3924
+ postId?: string;
3728
3925
  /**
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.
3926
+ * List of draft post fields to be included if entities are present in the response.
3927
+ * Base fieldset, which is default, will return all core draft post properties.
3928
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3929
+ * @maxSize 10
3732
3930
  */
3733
- currentEntity?: string;
3734
- }
3735
- interface EntityDeletedEvent {
3736
- /** Entity that was deleted. */
3737
- deletedEntity?: string | null;
3931
+ fieldsets?: FieldWithLiterals[];
3738
3932
  }
3739
- interface ActionEvent {
3740
- body?: string;
3933
+ interface RevertToUnpublishedResponse {
3934
+ /** Updated post draft. */
3935
+ draftPost?: DraftPost;
3741
3936
  }
3742
- interface MessageEnvelope {
3937
+ interface RejectDraftPostRequest {
3743
3938
  /**
3744
- * App instance ID.
3939
+ * Source post ID.
3745
3940
  * @format GUID
3746
3941
  */
3747
- instanceId?: string | null;
3942
+ postId?: string;
3748
3943
  /**
3749
- * Event type.
3750
- * @maxLength 150
3944
+ * List of draft post fields to be included if entities are present in the response.
3945
+ * Base fieldset, which is default, will return all core draft post properties.
3946
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3947
+ * @maxSize 10
3751
3948
  */
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;
3949
+ fieldsets?: FieldWithLiterals[];
3759
3950
  }
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;
3951
+ interface RejectDraftPostResponse {
3952
+ /** Draft post. */
3953
+ draftPost?: DraftPost;
3783
3954
  }
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;
3955
+ interface ApproveDraftPostRequest {
3791
3956
  /**
3792
- * ID of a site visitor that has logged in to the site.
3957
+ * Source post ID.
3793
3958
  * @format GUID
3794
3959
  */
3795
- memberId?: string;
3960
+ postId?: string;
3796
3961
  /**
3797
- * ID of a Wix user (site owner, contributor, etc.).
3798
- * @format GUID
3962
+ * Scheduled publish date if should be not immediately published.
3963
+ * @maxLength 24
3799
3964
  */
3800
- wixUserId?: string;
3965
+ scheduledPublishDate?: string | null;
3801
3966
  /**
3802
- * ID of an app.
3803
- * @format GUID
3967
+ * List of draft post fields to be included if entities are present in the response.
3968
+ * Base fieldset, which is default, will return all core draft post properties.
3969
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3970
+ * @maxSize 10
3804
3971
  */
3805
- appId?: string;
3972
+ fieldsets?: FieldWithLiterals[];
3806
3973
  }
3807
- declare enum WebhookIdentityType {
3808
- UNKNOWN = "UNKNOWN",
3809
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3810
- MEMBER = "MEMBER",
3811
- WIX_USER = "WIX_USER",
3812
- APP = "APP"
3974
+ interface ApproveDraftPostResponse {
3975
+ /** Updated post draft. */
3976
+ draftPost?: DraftPost;
3813
3977
  }
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;
3978
+ interface MarkPostAsInModerationRequest {
3827
3979
  /**
3828
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3829
- * @format GUID
3980
+ * Source post ID.
3981
+ * @maxLength 38
3830
3982
  */
3831
- siteId?: string | null;
3832
- }
3833
- interface GetDraftPostTotalsRequest {
3983
+ postId?: string;
3834
3984
  /**
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.
3985
+ * List of draft post fields to be included if entities are present in the response.
3986
+ * Base fieldset, which is default, will return all core draft post properties.
3987
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3838
3988
  * @maxSize 10
3839
3989
  */
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[];
3990
+ fieldsets?: FieldWithLiterals[];
3858
3991
  }
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;
3992
+ interface MarkPostAsInModerationResponse {
3993
+ /** Updated post draft. */
3994
+ draftPost?: DraftPost;
3869
3995
  }
3870
3996
  interface TranslateDraftRequest {
3871
3997
  /**
@@ -3940,117 +4066,6 @@ interface UpdateDraftPostLanguageResponse {
3940
4066
  /** Draft post */
3941
4067
  draftPost?: DraftPost;
3942
4068
  }
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
4069
  interface BaseEventMetadata {
4055
4070
  /**
4056
4071
  * 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)(