@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
@@ -2969,7 +2969,15 @@ interface Tag {
2969
2969
  meta?: Record<string, any> | null;
2970
2970
  /** SEO tag inner content. For example, `<title> inner content </title>`. */
2971
2971
  children?: string;
2972
- /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */
2972
+ /**
2973
+ * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).
2974
+ *
2975
+ * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
2976
+ * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
2977
+ * or Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For
2978
+ * those pages `false` therefore does not mean "not a custom tag" — it means this API could not tell.
2979
+ * Pass `seoData` explicitly to resolve against a known set of tags.
2980
+ */
2973
2981
  custom?: boolean;
2974
2982
  /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
2975
2983
  disabled?: boolean;
@@ -3099,10 +3107,6 @@ interface DraftPostTranslation {
3099
3107
  /** Post URL. */
3100
3108
  url?: PageUrl;
3101
3109
  }
3102
- interface InitialDraftPostsCopied {
3103
- /** Number of draft posts copied. */
3104
- count?: number;
3105
- }
3106
3110
  interface DraftCategoriesUpdated {
3107
3111
  /**
3108
3112
  * Draft post ID.
@@ -3141,6 +3145,202 @@ interface DraftTagsUpdated {
3141
3145
  */
3142
3146
  previousTags?: string[];
3143
3147
  }
3148
+ interface GetDraftPostTotalsRequest {
3149
+ /**
3150
+ * Group results by fields (defaults to grouping by status).
3151
+ * If, for example, grouping by language is passed, language values in response will be filled.
3152
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3153
+ * @maxSize 10
3154
+ */
3155
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3156
+ /**
3157
+ * Optional language filter by provided language code. Useful in multilingual context.
3158
+ * @format LANGUAGE_TAG
3159
+ */
3160
+ language?: string | null;
3161
+ }
3162
+ declare enum TotalDraftPostsGroupingField {
3163
+ /** Groups results by status. */
3164
+ STATUS = "STATUS",
3165
+ /** Groups results by language. */
3166
+ LANGUAGE = "LANGUAGE"
3167
+ }
3168
+ /** @enumType */
3169
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3170
+ interface GetDraftPostTotalsResponse {
3171
+ /** Draft post totals. */
3172
+ totalDraftPosts?: TotalDraftPosts[];
3173
+ }
3174
+ interface TotalDraftPosts {
3175
+ /** Draft post totals in that group. */
3176
+ total?: number;
3177
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3178
+ status?: StatusWithLiterals;
3179
+ /**
3180
+ * Draft post language code (only has value when grouping by language, otherwise null).
3181
+ * @format LANGUAGE_TAG
3182
+ */
3183
+ language?: string | null;
3184
+ }
3185
+ interface DomainEvent extends DomainEventBodyOneOf {
3186
+ createdEvent?: EntityCreatedEvent;
3187
+ updatedEvent?: EntityUpdatedEvent;
3188
+ deletedEvent?: EntityDeletedEvent;
3189
+ actionEvent?: ActionEvent;
3190
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3191
+ id?: string;
3192
+ /**
3193
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3194
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3195
+ */
3196
+ entityFqdn?: string;
3197
+ /**
3198
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3199
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3200
+ */
3201
+ slug?: string;
3202
+ /** ID of the entity associated with the event. */
3203
+ entityId?: string;
3204
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3205
+ eventTime?: Date | null;
3206
+ /**
3207
+ * Whether the event was triggered as a result of a privacy regulation application
3208
+ * (for example, GDPR).
3209
+ */
3210
+ triggeredByAnonymizeRequest?: boolean | null;
3211
+ /** If present, indicates the action that triggered the event. */
3212
+ originatedFrom?: string | null;
3213
+ /**
3214
+ * 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.
3215
+ * 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.
3216
+ */
3217
+ entityEventSequence?: string | null;
3218
+ }
3219
+ /** @oneof */
3220
+ interface DomainEventBodyOneOf {
3221
+ createdEvent?: EntityCreatedEvent;
3222
+ updatedEvent?: EntityUpdatedEvent;
3223
+ deletedEvent?: EntityDeletedEvent;
3224
+ actionEvent?: ActionEvent;
3225
+ }
3226
+ interface EntityCreatedEvent {
3227
+ entityAsJson?: string;
3228
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3229
+ restoreInfo?: RestoreInfo;
3230
+ }
3231
+ interface RestoreInfo {
3232
+ deletedDate?: Date | null;
3233
+ }
3234
+ interface EntityUpdatedEvent {
3235
+ /**
3236
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3237
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3238
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3239
+ */
3240
+ currentEntityAsJson?: string;
3241
+ }
3242
+ interface EntityDeletedEvent {
3243
+ /** Entity that was deleted. */
3244
+ deletedEntityAsJson?: string | null;
3245
+ }
3246
+ interface ActionEvent {
3247
+ bodyAsJson?: string;
3248
+ }
3249
+ interface MessageEnvelope {
3250
+ /**
3251
+ * App instance ID.
3252
+ * @format GUID
3253
+ */
3254
+ instanceId?: string | null;
3255
+ /**
3256
+ * Event type.
3257
+ * @maxLength 150
3258
+ */
3259
+ eventType?: string;
3260
+ /** The identification type and identity data. */
3261
+ identity?: IdentificationData;
3262
+ /** Stringify payload. */
3263
+ data?: string;
3264
+ /** Details related to the account */
3265
+ accountInfo?: AccountInfo;
3266
+ }
3267
+ interface IdentificationData extends IdentificationDataIdOneOf {
3268
+ /**
3269
+ * ID of a site visitor that has not logged in to the site.
3270
+ * @format GUID
3271
+ */
3272
+ anonymousVisitorId?: string;
3273
+ /**
3274
+ * ID of a site visitor that has logged in to the site.
3275
+ * @format GUID
3276
+ */
3277
+ memberId?: string;
3278
+ /**
3279
+ * ID of a Wix user (site owner, contributor, etc.).
3280
+ * @format GUID
3281
+ */
3282
+ wixUserId?: string;
3283
+ /**
3284
+ * ID of an app.
3285
+ * @format GUID
3286
+ */
3287
+ appId?: string;
3288
+ /** @readonly */
3289
+ identityType?: WebhookIdentityTypeWithLiterals;
3290
+ }
3291
+ /** @oneof */
3292
+ interface IdentificationDataIdOneOf {
3293
+ /**
3294
+ * ID of a site visitor that has not logged in to the site.
3295
+ * @format GUID
3296
+ */
3297
+ anonymousVisitorId?: string;
3298
+ /**
3299
+ * ID of a site visitor that has logged in to the site.
3300
+ * @format GUID
3301
+ */
3302
+ memberId?: string;
3303
+ /**
3304
+ * ID of a Wix user (site owner, contributor, etc.).
3305
+ * @format GUID
3306
+ */
3307
+ wixUserId?: string;
3308
+ /**
3309
+ * ID of an app.
3310
+ * @format GUID
3311
+ */
3312
+ appId?: string;
3313
+ }
3314
+ declare enum WebhookIdentityType {
3315
+ UNKNOWN = "UNKNOWN",
3316
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3317
+ MEMBER = "MEMBER",
3318
+ WIX_USER = "WIX_USER",
3319
+ APP = "APP"
3320
+ }
3321
+ /** @enumType */
3322
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3323
+ interface AccountInfo {
3324
+ /**
3325
+ * ID of the Wix account associated with the event.
3326
+ * @format GUID
3327
+ */
3328
+ accountId?: string | null;
3329
+ /**
3330
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3331
+ * @format GUID
3332
+ */
3333
+ parentAccountId?: string | null;
3334
+ /**
3335
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3336
+ * @format GUID
3337
+ */
3338
+ siteId?: string | null;
3339
+ }
3340
+ interface InitialDraftPostsCopied {
3341
+ /** Number of draft posts copied. */
3342
+ count?: number;
3343
+ }
3144
3344
  interface CreateDraftPostRequest {
3145
3345
  /** Draft post to create. */
3146
3346
  draftPost: DraftPost;
@@ -3721,197 +3921,116 @@ interface DraftPostCount {
3721
3921
  /** Number of posts. */
3722
3922
  postCount?: number;
3723
3923
  }
3724
- interface DomainEvent extends DomainEventBodyOneOf {
3725
- createdEvent?: EntityCreatedEvent;
3726
- updatedEvent?: EntityUpdatedEvent;
3727
- deletedEvent?: EntityDeletedEvent;
3728
- actionEvent?: ActionEvent;
3729
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3730
- id?: string;
3924
+ interface BulkRevertToUnpublishedRequest {
3731
3925
  /**
3732
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3733
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3926
+ * Source post IDs.
3927
+ * @minSize 1
3928
+ * @maxSize 100
3929
+ * @format GUID
3734
3930
  */
3735
- entityFqdn?: string;
3931
+ postIds?: string[];
3932
+ /** Should full draft post be returned. */
3933
+ returnFullEntity?: boolean;
3934
+ }
3935
+ interface BulkRevertToUnpublishedResponse {
3936
+ /** Bulk action results. */
3937
+ results?: BulkDraftPostResult[];
3938
+ /** Bulk action metadata. */
3939
+ bulkActionMetadata?: BulkActionMetadata;
3940
+ }
3941
+ interface BulkRejectDraftPostRequest {
3736
3942
  /**
3737
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3738
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3943
+ * Source post IDs.
3944
+ * @minSize 1
3945
+ * @maxSize 100
3946
+ * @format GUID
3739
3947
  */
3740
- slug?: string;
3741
- /** ID of the entity associated with the event. */
3742
- entityId?: string;
3743
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3744
- eventTime?: Date | null;
3948
+ postIds?: string[];
3949
+ /** Should full draft post be returned. */
3950
+ returnFullEntity?: boolean;
3951
+ }
3952
+ interface BulkRejectDraftPostResponse {
3953
+ /** Bulk action results. */
3954
+ results?: BulkDraftPostResult[];
3955
+ /** Bulk action metadata. */
3956
+ bulkActionMetadata?: BulkActionMetadata;
3957
+ }
3958
+ interface RevertToUnpublishedRequest {
3745
3959
  /**
3746
- * Whether the event was triggered as a result of a privacy regulation application
3747
- * (for example, GDPR).
3960
+ * Source post ID.
3961
+ * @format GUID
3748
3962
  */
3749
- triggeredByAnonymizeRequest?: boolean | null;
3750
- /** If present, indicates the action that triggered the event. */
3751
- originatedFrom?: string | null;
3752
- /**
3753
- * 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.
3754
- * 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.
3755
- */
3756
- entityEventSequence?: string | null;
3757
- }
3758
- /** @oneof */
3759
- interface DomainEventBodyOneOf {
3760
- createdEvent?: EntityCreatedEvent;
3761
- updatedEvent?: EntityUpdatedEvent;
3762
- deletedEvent?: EntityDeletedEvent;
3763
- actionEvent?: ActionEvent;
3764
- }
3765
- interface EntityCreatedEvent {
3766
- entityAsJson?: string;
3767
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3768
- restoreInfo?: RestoreInfo;
3769
- }
3770
- interface RestoreInfo {
3771
- deletedDate?: Date | null;
3772
- }
3773
- interface EntityUpdatedEvent {
3963
+ postId?: string;
3774
3964
  /**
3775
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3776
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3777
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3965
+ * List of draft post fields to be included if entities are present in the response.
3966
+ * Base fieldset, which is default, will return all core draft post properties.
3967
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3968
+ * @maxSize 10
3778
3969
  */
3779
- currentEntityAsJson?: string;
3780
- }
3781
- interface EntityDeletedEvent {
3782
- /** Entity that was deleted. */
3783
- deletedEntityAsJson?: string | null;
3970
+ fieldsets?: FieldWithLiterals[];
3784
3971
  }
3785
- interface ActionEvent {
3786
- bodyAsJson?: string;
3972
+ interface RevertToUnpublishedResponse {
3973
+ /** Updated post draft. */
3974
+ draftPost?: DraftPost;
3787
3975
  }
3788
- interface MessageEnvelope {
3976
+ interface RejectDraftPostRequest {
3789
3977
  /**
3790
- * App instance ID.
3978
+ * Source post ID.
3791
3979
  * @format GUID
3792
3980
  */
3793
- instanceId?: string | null;
3981
+ postId?: string;
3794
3982
  /**
3795
- * Event type.
3796
- * @maxLength 150
3983
+ * List of draft post fields to be included if entities are present in the response.
3984
+ * Base fieldset, which is default, will return all core draft post properties.
3985
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3986
+ * @maxSize 10
3797
3987
  */
3798
- eventType?: string;
3799
- /** The identification type and identity data. */
3800
- identity?: IdentificationData;
3801
- /** Stringify payload. */
3802
- data?: string;
3803
- /** Details related to the account */
3804
- accountInfo?: AccountInfo;
3988
+ fieldsets?: FieldWithLiterals[];
3805
3989
  }
3806
- interface IdentificationData extends IdentificationDataIdOneOf {
3807
- /**
3808
- * ID of a site visitor that has not logged in to the site.
3809
- * @format GUID
3810
- */
3811
- anonymousVisitorId?: string;
3812
- /**
3813
- * ID of a site visitor that has logged in to the site.
3814
- * @format GUID
3815
- */
3816
- memberId?: string;
3817
- /**
3818
- * ID of a Wix user (site owner, contributor, etc.).
3819
- * @format GUID
3820
- */
3821
- wixUserId?: string;
3822
- /**
3823
- * ID of an app.
3824
- * @format GUID
3825
- */
3826
- appId?: string;
3827
- /** @readonly */
3828
- identityType?: WebhookIdentityTypeWithLiterals;
3990
+ interface RejectDraftPostResponse {
3991
+ /** Draft post. */
3992
+ draftPost?: DraftPost;
3829
3993
  }
3830
- /** @oneof */
3831
- interface IdentificationDataIdOneOf {
3832
- /**
3833
- * ID of a site visitor that has not logged in to the site.
3834
- * @format GUID
3835
- */
3836
- anonymousVisitorId?: string;
3994
+ interface ApproveDraftPostRequest {
3837
3995
  /**
3838
- * ID of a site visitor that has logged in to the site.
3996
+ * Source post ID.
3839
3997
  * @format GUID
3840
3998
  */
3841
- memberId?: string;
3999
+ postId?: string;
3842
4000
  /**
3843
- * ID of a Wix user (site owner, contributor, etc.).
3844
- * @format GUID
4001
+ * Scheduled publish date if should be not immediately published.
4002
+ * @maxLength 24
3845
4003
  */
3846
- wixUserId?: string;
4004
+ scheduledPublishDate?: string | null;
3847
4005
  /**
3848
- * ID of an app.
3849
- * @format GUID
4006
+ * List of draft post fields to be included if entities are present in the response.
4007
+ * Base fieldset, which is default, will return all core draft post properties.
4008
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4009
+ * @maxSize 10
3850
4010
  */
3851
- appId?: string;
4011
+ fieldsets?: FieldWithLiterals[];
3852
4012
  }
3853
- declare enum WebhookIdentityType {
3854
- UNKNOWN = "UNKNOWN",
3855
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3856
- MEMBER = "MEMBER",
3857
- WIX_USER = "WIX_USER",
3858
- APP = "APP"
4013
+ interface ApproveDraftPostResponse {
4014
+ /** Updated post draft. */
4015
+ draftPost?: DraftPost;
3859
4016
  }
3860
- /** @enumType */
3861
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3862
- interface AccountInfo {
3863
- /**
3864
- * ID of the Wix account associated with the event.
3865
- * @format GUID
3866
- */
3867
- accountId?: string | null;
3868
- /**
3869
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3870
- * @format GUID
3871
- */
3872
- parentAccountId?: string | null;
4017
+ interface MarkPostAsInModerationRequest {
3873
4018
  /**
3874
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3875
- * @format GUID
4019
+ * Source post ID.
4020
+ * @maxLength 38
3876
4021
  */
3877
- siteId?: string | null;
3878
- }
3879
- interface GetDraftPostTotalsRequest {
4022
+ postId?: string;
3880
4023
  /**
3881
- * Group results by fields (defaults to grouping by status).
3882
- * If, for example, grouping by language is passed, language values in response will be filled.
3883
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4024
+ * List of draft post fields to be included if entities are present in the response.
4025
+ * Base fieldset, which is default, will return all core draft post properties.
4026
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3884
4027
  * @maxSize 10
3885
4028
  */
3886
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3887
- /**
3888
- * Optional language filter by provided language code. Useful in multilingual context.
3889
- * @format LANGUAGE_TAG
3890
- */
3891
- language?: string | null;
3892
- }
3893
- declare enum TotalDraftPostsGroupingField {
3894
- /** Groups results by status. */
3895
- STATUS = "STATUS",
3896
- /** Groups results by language. */
3897
- LANGUAGE = "LANGUAGE"
3898
- }
3899
- /** @enumType */
3900
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3901
- interface GetDraftPostTotalsResponse {
3902
- /** Draft post totals. */
3903
- totalDraftPosts?: TotalDraftPosts[];
4029
+ fieldsets?: FieldWithLiterals[];
3904
4030
  }
3905
- interface TotalDraftPosts {
3906
- /** Draft post totals in that group. */
3907
- total?: number;
3908
- /** Draft post status (only has value when grouping by status, otherwise null). */
3909
- status?: StatusWithLiterals;
3910
- /**
3911
- * Draft post language code (only has value when grouping by language, otherwise null).
3912
- * @format LANGUAGE_TAG
3913
- */
3914
- language?: string | null;
4031
+ interface MarkPostAsInModerationResponse {
4032
+ /** Updated post draft. */
4033
+ draftPost?: DraftPost;
3915
4034
  }
3916
4035
  interface TranslateDraftRequest {
3917
4036
  /**
@@ -3986,117 +4105,6 @@ interface UpdateDraftPostLanguageResponse {
3986
4105
  /** Draft post */
3987
4106
  draftPost?: DraftPost;
3988
4107
  }
3989
- interface BulkRevertToUnpublishedRequest {
3990
- /**
3991
- * Source post IDs.
3992
- * @minSize 1
3993
- * @maxSize 100
3994
- * @format GUID
3995
- */
3996
- postIds?: string[];
3997
- /** Should full draft post be returned. */
3998
- returnFullEntity?: boolean;
3999
- }
4000
- interface BulkRevertToUnpublishedResponse {
4001
- /** Bulk action results. */
4002
- results?: BulkDraftPostResult[];
4003
- /** Bulk action metadata. */
4004
- bulkActionMetadata?: BulkActionMetadata;
4005
- }
4006
- interface BulkRejectDraftPostRequest {
4007
- /**
4008
- * Source post IDs.
4009
- * @minSize 1
4010
- * @maxSize 100
4011
- * @format GUID
4012
- */
4013
- postIds?: string[];
4014
- /** Should full draft post be returned. */
4015
- returnFullEntity?: boolean;
4016
- }
4017
- interface BulkRejectDraftPostResponse {
4018
- /** Bulk action results. */
4019
- results?: BulkDraftPostResult[];
4020
- /** Bulk action metadata. */
4021
- bulkActionMetadata?: BulkActionMetadata;
4022
- }
4023
- interface RevertToUnpublishedRequest {
4024
- /**
4025
- * Source post ID.
4026
- * @format GUID
4027
- */
4028
- postId?: string;
4029
- /**
4030
- * List of draft post fields to be included if entities are present in the response.
4031
- * Base fieldset, which is default, will return all core draft post properties.
4032
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4033
- * @maxSize 10
4034
- */
4035
- fieldsets?: FieldWithLiterals[];
4036
- }
4037
- interface RevertToUnpublishedResponse {
4038
- /** Updated post draft. */
4039
- draftPost?: DraftPost;
4040
- }
4041
- interface RejectDraftPostRequest {
4042
- /**
4043
- * Source post ID.
4044
- * @format GUID
4045
- */
4046
- postId?: string;
4047
- /**
4048
- * List of draft post fields to be included if entities are present in the response.
4049
- * Base fieldset, which is default, will return all core draft post properties.
4050
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4051
- * @maxSize 10
4052
- */
4053
- fieldsets?: FieldWithLiterals[];
4054
- }
4055
- interface RejectDraftPostResponse {
4056
- /** Draft post. */
4057
- draftPost?: DraftPost;
4058
- }
4059
- interface ApproveDraftPostRequest {
4060
- /**
4061
- * Source post ID.
4062
- * @format GUID
4063
- */
4064
- postId?: string;
4065
- /**
4066
- * Scheduled publish date if should be not immediately published.
4067
- * @maxLength 24
4068
- */
4069
- scheduledPublishDate?: string | null;
4070
- /**
4071
- * List of draft post fields to be included if entities are present in the response.
4072
- * Base fieldset, which is default, will return all core draft post properties.
4073
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4074
- * @maxSize 10
4075
- */
4076
- fieldsets?: FieldWithLiterals[];
4077
- }
4078
- interface ApproveDraftPostResponse {
4079
- /** Updated post draft. */
4080
- draftPost?: DraftPost;
4081
- }
4082
- interface MarkPostAsInModerationRequest {
4083
- /**
4084
- * Source post ID.
4085
- * @maxLength 38
4086
- */
4087
- postId?: string;
4088
- /**
4089
- * List of draft post fields to be included if entities are present in the response.
4090
- * Base fieldset, which is default, will return all core draft post properties.
4091
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4092
- * @maxSize 10
4093
- */
4094
- fieldsets?: FieldWithLiterals[];
4095
- }
4096
- interface MarkPostAsInModerationResponse {
4097
- /** Updated post draft. */
4098
- draftPost?: DraftPost;
4099
- }
4100
4108
 
4101
4109
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4102
4110
  getUrl: (context: any) => string;
package/build/es/meta.mjs CHANGED
@@ -3615,6 +3615,19 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
3615
3615
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
3616
3616
  return ModerationStatusStatus2;
3617
3617
  })(ModerationStatusStatus || {});
3618
+ var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
3619
+ TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
3620
+ TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
3621
+ return TotalDraftPostsGroupingField2;
3622
+ })(TotalDraftPostsGroupingField || {});
3623
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3624
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3625
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3626
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
3627
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3628
+ WebhookIdentityType2["APP"] = "APP";
3629
+ return WebhookIdentityType2;
3630
+ })(WebhookIdentityType || {});
3618
3631
  var Type = /* @__PURE__ */ ((Type2) => {
3619
3632
  Type2["UNKNOWN"] = "UNKNOWN";
3620
3633
  Type2["MANUAL"] = "MANUAL";
@@ -3654,19 +3667,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3654
3667
  SortOrder2["DESC"] = "DESC";
3655
3668
  return SortOrder2;
3656
3669
  })(SortOrder || {});
3657
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3658
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3659
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3660
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3661
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3662
- WebhookIdentityType2["APP"] = "APP";
3663
- return WebhookIdentityType2;
3664
- })(WebhookIdentityType || {});
3665
- var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
3666
- TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
3667
- TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
3668
- return TotalDraftPostsGroupingField2;
3669
- })(TotalDraftPostsGroupingField || {});
3670
3670
 
3671
3671
  // src/blog-v3-draft-draft-posts.meta.ts
3672
3672
  function createDraftPost2() {