@wix/auto_sdk_blog_draft-posts 1.0.99 → 1.0.100

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.
@@ -3200,6 +3200,10 @@ interface DraftPostTranslation {
3200
3200
  /** Post URL. */
3201
3201
  url?: string;
3202
3202
  }
3203
+ interface InitialDraftPostsCopied {
3204
+ /** Number of draft posts copied. */
3205
+ count?: number;
3206
+ }
3203
3207
  interface DraftCategoriesUpdated {
3204
3208
  /**
3205
3209
  * Draft post ID.
@@ -3238,200 +3242,6 @@ interface DraftTagsUpdated {
3238
3242
  */
3239
3243
  previousTags?: string[];
3240
3244
  }
3241
- interface GetDraftPostTotalsRequest {
3242
- /**
3243
- * Group results by fields (defaults to grouping by status).
3244
- * If, for example, grouping by language is passed, language values in response will be filled.
3245
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3246
- * @maxSize 10
3247
- */
3248
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3249
- /**
3250
- * Optional language filter by provided language code. Useful in multilingual context.
3251
- * @format LANGUAGE_TAG
3252
- */
3253
- language?: string | null;
3254
- }
3255
- declare enum TotalDraftPostsGroupingField {
3256
- /** Groups results by status. */
3257
- STATUS = "STATUS",
3258
- /** Groups results by language. */
3259
- LANGUAGE = "LANGUAGE"
3260
- }
3261
- /** @enumType */
3262
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3263
- interface GetDraftPostTotalsResponse {
3264
- /** Draft post totals. */
3265
- totalDraftPosts?: TotalDraftPosts[];
3266
- }
3267
- interface TotalDraftPosts {
3268
- /** Draft post totals in that group. */
3269
- total?: number;
3270
- /** Draft post status (only has value when grouping by status, otherwise null). */
3271
- status?: StatusWithLiterals;
3272
- /**
3273
- * Draft post language code (only has value when grouping by language, otherwise null).
3274
- * @format LANGUAGE_TAG
3275
- */
3276
- language?: string | null;
3277
- }
3278
- interface DomainEvent extends DomainEventBodyOneOf {
3279
- createdEvent?: EntityCreatedEvent;
3280
- updatedEvent?: EntityUpdatedEvent;
3281
- deletedEvent?: EntityDeletedEvent;
3282
- actionEvent?: ActionEvent;
3283
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3284
- _id?: string;
3285
- /**
3286
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3287
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3288
- */
3289
- entityFqdn?: string;
3290
- /**
3291
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3292
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3293
- */
3294
- slug?: string;
3295
- /** ID of the entity associated with the event. */
3296
- entityId?: string;
3297
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3298
- eventTime?: Date | null;
3299
- /**
3300
- * Whether the event was triggered as a result of a privacy regulation application
3301
- * (for example, GDPR).
3302
- */
3303
- triggeredByAnonymizeRequest?: boolean | null;
3304
- /** If present, indicates the action that triggered the event. */
3305
- originatedFrom?: string | null;
3306
- /**
3307
- * 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.
3308
- * 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.
3309
- */
3310
- entityEventSequence?: string | null;
3311
- }
3312
- /** @oneof */
3313
- interface DomainEventBodyOneOf {
3314
- createdEvent?: EntityCreatedEvent;
3315
- updatedEvent?: EntityUpdatedEvent;
3316
- deletedEvent?: EntityDeletedEvent;
3317
- actionEvent?: ActionEvent;
3318
- }
3319
- interface EntityCreatedEvent {
3320
- entity?: string;
3321
- }
3322
- interface RestoreInfo {
3323
- deletedDate?: Date | null;
3324
- }
3325
- interface EntityUpdatedEvent {
3326
- /**
3327
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3328
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3329
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3330
- */
3331
- currentEntity?: string;
3332
- }
3333
- interface EntityDeletedEvent {
3334
- /** Entity that was deleted. */
3335
- deletedEntity?: string | null;
3336
- }
3337
- interface ActionEvent {
3338
- body?: string;
3339
- }
3340
- interface MessageEnvelope {
3341
- /**
3342
- * App instance ID.
3343
- * @format GUID
3344
- */
3345
- instanceId?: string | null;
3346
- /**
3347
- * Event type.
3348
- * @maxLength 150
3349
- */
3350
- eventType?: string;
3351
- /** The identification type and identity data. */
3352
- identity?: IdentificationData;
3353
- /** Stringify payload. */
3354
- data?: string;
3355
- /** Details related to the account */
3356
- accountInfo?: AccountInfo;
3357
- }
3358
- interface IdentificationData extends IdentificationDataIdOneOf {
3359
- /**
3360
- * ID of a site visitor that has not logged in to the site.
3361
- * @format GUID
3362
- */
3363
- anonymousVisitorId?: string;
3364
- /**
3365
- * ID of a site visitor that has logged in to the site.
3366
- * @format GUID
3367
- */
3368
- memberId?: string;
3369
- /**
3370
- * ID of a Wix user (site owner, contributor, etc.).
3371
- * @format GUID
3372
- */
3373
- wixUserId?: string;
3374
- /**
3375
- * ID of an app.
3376
- * @format GUID
3377
- */
3378
- appId?: string;
3379
- /** @readonly */
3380
- identityType?: WebhookIdentityTypeWithLiterals;
3381
- }
3382
- /** @oneof */
3383
- interface IdentificationDataIdOneOf {
3384
- /**
3385
- * ID of a site visitor that has not logged in to the site.
3386
- * @format GUID
3387
- */
3388
- anonymousVisitorId?: string;
3389
- /**
3390
- * ID of a site visitor that has logged in to the site.
3391
- * @format GUID
3392
- */
3393
- memberId?: string;
3394
- /**
3395
- * ID of a Wix user (site owner, contributor, etc.).
3396
- * @format GUID
3397
- */
3398
- wixUserId?: string;
3399
- /**
3400
- * ID of an app.
3401
- * @format GUID
3402
- */
3403
- appId?: string;
3404
- }
3405
- declare enum WebhookIdentityType {
3406
- UNKNOWN = "UNKNOWN",
3407
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3408
- MEMBER = "MEMBER",
3409
- WIX_USER = "WIX_USER",
3410
- APP = "APP"
3411
- }
3412
- /** @enumType */
3413
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3414
- interface AccountInfo {
3415
- /**
3416
- * ID of the Wix account associated with the event.
3417
- * @format GUID
3418
- */
3419
- accountId?: string | null;
3420
- /**
3421
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3422
- * @format GUID
3423
- */
3424
- parentAccountId?: string | null;
3425
- /**
3426
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3427
- * @format GUID
3428
- */
3429
- siteId?: string | null;
3430
- }
3431
- interface InitialDraftPostsCopied {
3432
- /** Number of draft posts copied. */
3433
- count?: number;
3434
- }
3435
3245
  interface CreateDraftPostRequest {
3436
3246
  /** Draft post to create. */
3437
3247
  draftPost: DraftPost;
@@ -4012,116 +3822,195 @@ interface DraftPostCount {
4012
3822
  /** Number of posts. */
4013
3823
  postCount?: number;
4014
3824
  }
4015
- interface BulkRevertToUnpublishedRequest {
3825
+ interface DomainEvent extends DomainEventBodyOneOf {
3826
+ createdEvent?: EntityCreatedEvent;
3827
+ updatedEvent?: EntityUpdatedEvent;
3828
+ deletedEvent?: EntityDeletedEvent;
3829
+ actionEvent?: ActionEvent;
3830
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3831
+ _id?: string;
4016
3832
  /**
4017
- * Source post IDs.
4018
- * @minSize 1
4019
- * @maxSize 100
4020
- * @format GUID
3833
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3834
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4021
3835
  */
4022
- postIds?: string[];
4023
- /** Should full draft post be returned. */
4024
- returnFullEntity?: boolean;
4025
- }
4026
- interface BulkRevertToUnpublishedResponse {
4027
- /** Bulk action results. */
4028
- results?: BulkDraftPostResult[];
4029
- /** Bulk action metadata. */
4030
- bulkActionMetadata?: BulkActionMetadata;
4031
- }
4032
- interface BulkRejectDraftPostRequest {
3836
+ entityFqdn?: string;
4033
3837
  /**
4034
- * Source post IDs.
4035
- * @minSize 1
4036
- * @maxSize 100
4037
- * @format GUID
3838
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3839
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4038
3840
  */
4039
- postIds?: string[];
4040
- /** Should full draft post be returned. */
4041
- returnFullEntity?: boolean;
4042
- }
4043
- interface BulkRejectDraftPostResponse {
4044
- /** Bulk action results. */
4045
- results?: BulkDraftPostResult[];
4046
- /** Bulk action metadata. */
4047
- bulkActionMetadata?: BulkActionMetadata;
4048
- }
4049
- interface RevertToUnpublishedRequest {
3841
+ slug?: string;
3842
+ /** ID of the entity associated with the event. */
3843
+ entityId?: string;
3844
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3845
+ eventTime?: Date | null;
4050
3846
  /**
4051
- * Source post ID.
4052
- * @format GUID
3847
+ * Whether the event was triggered as a result of a privacy regulation application
3848
+ * (for example, GDPR).
4053
3849
  */
4054
- postId?: string;
3850
+ triggeredByAnonymizeRequest?: boolean | null;
3851
+ /** If present, indicates the action that triggered the event. */
3852
+ originatedFrom?: string | null;
4055
3853
  /**
4056
- * List of draft post fields to be included if entities are present in the response.
4057
- * Base fieldset, which is default, will return all core draft post properties.
4058
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4059
- * @maxSize 10
3854
+ * 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.
3855
+ * 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.
4060
3856
  */
4061
- fieldsets?: FieldWithLiterals[];
3857
+ entityEventSequence?: string | null;
4062
3858
  }
4063
- interface RevertToUnpublishedResponse {
4064
- /** Updated post draft. */
4065
- draftPost?: DraftPost;
3859
+ /** @oneof */
3860
+ interface DomainEventBodyOneOf {
3861
+ createdEvent?: EntityCreatedEvent;
3862
+ updatedEvent?: EntityUpdatedEvent;
3863
+ deletedEvent?: EntityDeletedEvent;
3864
+ actionEvent?: ActionEvent;
4066
3865
  }
4067
- interface RejectDraftPostRequest {
3866
+ interface EntityCreatedEvent {
3867
+ entity?: string;
3868
+ }
3869
+ interface RestoreInfo {
3870
+ deletedDate?: Date | null;
3871
+ }
3872
+ interface EntityUpdatedEvent {
4068
3873
  /**
4069
- * Source post ID.
3874
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3875
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3876
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3877
+ */
3878
+ currentEntity?: string;
3879
+ }
3880
+ interface EntityDeletedEvent {
3881
+ /** Entity that was deleted. */
3882
+ deletedEntity?: string | null;
3883
+ }
3884
+ interface ActionEvent {
3885
+ body?: string;
3886
+ }
3887
+ interface MessageEnvelope {
3888
+ /**
3889
+ * App instance ID.
4070
3890
  * @format GUID
4071
3891
  */
4072
- postId?: string;
3892
+ instanceId?: string | null;
4073
3893
  /**
4074
- * List of draft post fields to be included if entities are present in the response.
4075
- * Base fieldset, which is default, will return all core draft post properties.
4076
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4077
- * @maxSize 10
3894
+ * Event type.
3895
+ * @maxLength 150
4078
3896
  */
4079
- fieldsets?: FieldWithLiterals[];
3897
+ eventType?: string;
3898
+ /** The identification type and identity data. */
3899
+ identity?: IdentificationData;
3900
+ /** Stringify payload. */
3901
+ data?: string;
3902
+ /** Details related to the account */
3903
+ accountInfo?: AccountInfo;
4080
3904
  }
4081
- interface RejectDraftPostResponse {
4082
- /** Draft post. */
4083
- draftPost?: DraftPost;
3905
+ interface IdentificationData extends IdentificationDataIdOneOf {
3906
+ /**
3907
+ * ID of a site visitor that has not logged in to the site.
3908
+ * @format GUID
3909
+ */
3910
+ anonymousVisitorId?: string;
3911
+ /**
3912
+ * ID of a site visitor that has logged in to the site.
3913
+ * @format GUID
3914
+ */
3915
+ memberId?: string;
3916
+ /**
3917
+ * ID of a Wix user (site owner, contributor, etc.).
3918
+ * @format GUID
3919
+ */
3920
+ wixUserId?: string;
3921
+ /**
3922
+ * ID of an app.
3923
+ * @format GUID
3924
+ */
3925
+ appId?: string;
3926
+ /** @readonly */
3927
+ identityType?: WebhookIdentityTypeWithLiterals;
4084
3928
  }
4085
- interface ApproveDraftPostRequest {
3929
+ /** @oneof */
3930
+ interface IdentificationDataIdOneOf {
4086
3931
  /**
4087
- * Source post ID.
3932
+ * ID of a site visitor that has not logged in to the site.
4088
3933
  * @format GUID
4089
3934
  */
4090
- postId?: string;
3935
+ anonymousVisitorId?: string;
4091
3936
  /**
4092
- * Scheduled publish date if should be not immediately published.
4093
- * @maxLength 24
3937
+ * ID of a site visitor that has logged in to the site.
3938
+ * @format GUID
4094
3939
  */
4095
- scheduledPublishDate?: string | null;
3940
+ memberId?: string;
4096
3941
  /**
4097
- * List of draft post fields to be included if entities are present in the response.
4098
- * Base fieldset, which is default, will return all core draft post properties.
4099
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4100
- * @maxSize 10
3942
+ * ID of a Wix user (site owner, contributor, etc.).
3943
+ * @format GUID
4101
3944
  */
4102
- fieldsets?: FieldWithLiterals[];
3945
+ wixUserId?: string;
3946
+ /**
3947
+ * ID of an app.
3948
+ * @format GUID
3949
+ */
3950
+ appId?: string;
4103
3951
  }
4104
- interface ApproveDraftPostResponse {
4105
- /** Updated post draft. */
4106
- draftPost?: DraftPost;
3952
+ declare enum WebhookIdentityType {
3953
+ UNKNOWN = "UNKNOWN",
3954
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3955
+ MEMBER = "MEMBER",
3956
+ WIX_USER = "WIX_USER",
3957
+ APP = "APP"
4107
3958
  }
4108
- interface MarkPostAsInModerationRequest {
3959
+ /** @enumType */
3960
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3961
+ interface AccountInfo {
4109
3962
  /**
4110
- * Source post ID.
4111
- * @maxLength 38
3963
+ * ID of the Wix account associated with the event.
3964
+ * @format GUID
4112
3965
  */
4113
- postId?: string;
3966
+ accountId?: string | null;
4114
3967
  /**
4115
- * List of draft post fields to be included if entities are present in the response.
4116
- * Base fieldset, which is default, will return all core draft post properties.
4117
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3968
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3969
+ * @format GUID
3970
+ */
3971
+ parentAccountId?: string | null;
3972
+ /**
3973
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3974
+ * @format GUID
3975
+ */
3976
+ siteId?: string | null;
3977
+ }
3978
+ interface GetDraftPostTotalsRequest {
3979
+ /**
3980
+ * Group results by fields (defaults to grouping by status).
3981
+ * If, for example, grouping by language is passed, language values in response will be filled.
3982
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4118
3983
  * @maxSize 10
4119
3984
  */
4120
- fieldsets?: FieldWithLiterals[];
3985
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3986
+ /**
3987
+ * Optional language filter by provided language code. Useful in multilingual context.
3988
+ * @format LANGUAGE_TAG
3989
+ */
3990
+ language?: string | null;
4121
3991
  }
4122
- interface MarkPostAsInModerationResponse {
4123
- /** Updated post draft. */
4124
- draftPost?: DraftPost;
3992
+ declare enum TotalDraftPostsGroupingField {
3993
+ /** Groups results by status. */
3994
+ STATUS = "STATUS",
3995
+ /** Groups results by language. */
3996
+ LANGUAGE = "LANGUAGE"
3997
+ }
3998
+ /** @enumType */
3999
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4000
+ interface GetDraftPostTotalsResponse {
4001
+ /** Draft post totals. */
4002
+ totalDraftPosts?: TotalDraftPosts[];
4003
+ }
4004
+ interface TotalDraftPosts {
4005
+ /** Draft post totals in that group. */
4006
+ total?: number;
4007
+ /** Draft post status (only has value when grouping by status, otherwise null). */
4008
+ status?: StatusWithLiterals;
4009
+ /**
4010
+ * Draft post language code (only has value when grouping by language, otherwise null).
4011
+ * @format LANGUAGE_TAG
4012
+ */
4013
+ language?: string | null;
4125
4014
  }
4126
4015
  interface TranslateDraftRequest {
4127
4016
  /**
@@ -4196,6 +4085,117 @@ interface UpdateDraftPostLanguageResponse {
4196
4085
  /** Draft post */
4197
4086
  draftPost?: DraftPost;
4198
4087
  }
4088
+ interface BulkRevertToUnpublishedRequest {
4089
+ /**
4090
+ * Source post IDs.
4091
+ * @minSize 1
4092
+ * @maxSize 100
4093
+ * @format GUID
4094
+ */
4095
+ postIds?: string[];
4096
+ /** Should full draft post be returned. */
4097
+ returnFullEntity?: boolean;
4098
+ }
4099
+ interface BulkRevertToUnpublishedResponse {
4100
+ /** Bulk action results. */
4101
+ results?: BulkDraftPostResult[];
4102
+ /** Bulk action metadata. */
4103
+ bulkActionMetadata?: BulkActionMetadata;
4104
+ }
4105
+ interface BulkRejectDraftPostRequest {
4106
+ /**
4107
+ * Source post IDs.
4108
+ * @minSize 1
4109
+ * @maxSize 100
4110
+ * @format GUID
4111
+ */
4112
+ postIds?: string[];
4113
+ /** Should full draft post be returned. */
4114
+ returnFullEntity?: boolean;
4115
+ }
4116
+ interface BulkRejectDraftPostResponse {
4117
+ /** Bulk action results. */
4118
+ results?: BulkDraftPostResult[];
4119
+ /** Bulk action metadata. */
4120
+ bulkActionMetadata?: BulkActionMetadata;
4121
+ }
4122
+ interface RevertToUnpublishedRequest {
4123
+ /**
4124
+ * Source post ID.
4125
+ * @format GUID
4126
+ */
4127
+ postId?: string;
4128
+ /**
4129
+ * List of draft post fields to be included if entities are present in the response.
4130
+ * Base fieldset, which is default, will return all core draft post properties.
4131
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4132
+ * @maxSize 10
4133
+ */
4134
+ fieldsets?: FieldWithLiterals[];
4135
+ }
4136
+ interface RevertToUnpublishedResponse {
4137
+ /** Updated post draft. */
4138
+ draftPost?: DraftPost;
4139
+ }
4140
+ interface RejectDraftPostRequest {
4141
+ /**
4142
+ * Source post ID.
4143
+ * @format GUID
4144
+ */
4145
+ postId?: string;
4146
+ /**
4147
+ * List of draft post fields to be included if entities are present in the response.
4148
+ * Base fieldset, which is default, will return all core draft post properties.
4149
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4150
+ * @maxSize 10
4151
+ */
4152
+ fieldsets?: FieldWithLiterals[];
4153
+ }
4154
+ interface RejectDraftPostResponse {
4155
+ /** Draft post. */
4156
+ draftPost?: DraftPost;
4157
+ }
4158
+ interface ApproveDraftPostRequest {
4159
+ /**
4160
+ * Source post ID.
4161
+ * @format GUID
4162
+ */
4163
+ postId?: string;
4164
+ /**
4165
+ * Scheduled publish date if should be not immediately published.
4166
+ * @maxLength 24
4167
+ */
4168
+ scheduledPublishDate?: string | null;
4169
+ /**
4170
+ * List of draft post fields to be included if entities are present in the response.
4171
+ * Base fieldset, which is default, will return all core draft post properties.
4172
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4173
+ * @maxSize 10
4174
+ */
4175
+ fieldsets?: FieldWithLiterals[];
4176
+ }
4177
+ interface ApproveDraftPostResponse {
4178
+ /** Updated post draft. */
4179
+ draftPost?: DraftPost;
4180
+ }
4181
+ interface MarkPostAsInModerationRequest {
4182
+ /**
4183
+ * Source post ID.
4184
+ * @maxLength 38
4185
+ */
4186
+ postId?: string;
4187
+ /**
4188
+ * List of draft post fields to be included if entities are present in the response.
4189
+ * Base fieldset, which is default, will return all core draft post properties.
4190
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4191
+ * @maxSize 10
4192
+ */
4193
+ fieldsets?: FieldWithLiterals[];
4194
+ }
4195
+ interface MarkPostAsInModerationResponse {
4196
+ /** Updated post draft. */
4197
+ draftPost?: DraftPost;
4198
+ }
4199
4199
  interface BaseEventMetadata {
4200
4200
  /**
4201
4201
  * App instance ID.
@@ -3775,19 +3775,6 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
3775
3775
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
3776
3776
  return ModerationStatusStatus2;
3777
3777
  })(ModerationStatusStatus || {});
3778
- var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
3779
- TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
3780
- TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
3781
- return TotalDraftPostsGroupingField2;
3782
- })(TotalDraftPostsGroupingField || {});
3783
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3784
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3785
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3786
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3787
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3788
- WebhookIdentityType2["APP"] = "APP";
3789
- return WebhookIdentityType2;
3790
- })(WebhookIdentityType || {});
3791
3778
  var Type = /* @__PURE__ */ ((Type2) => {
3792
3779
  Type2["UNKNOWN"] = "UNKNOWN";
3793
3780
  Type2["MANUAL"] = "MANUAL";
@@ -3827,6 +3814,19 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3827
3814
  SortOrder2["DESC"] = "DESC";
3828
3815
  return SortOrder2;
3829
3816
  })(SortOrder || {});
3817
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3818
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3819
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3820
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
3821
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3822
+ WebhookIdentityType2["APP"] = "APP";
3823
+ return WebhookIdentityType2;
3824
+ })(WebhookIdentityType || {});
3825
+ var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
3826
+ TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
3827
+ TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
3828
+ return TotalDraftPostsGroupingField2;
3829
+ })(TotalDraftPostsGroupingField || {});
3830
3830
  async function createDraftPost2(draftPost, options) {
3831
3831
  const { httpClient, sideEffects } = arguments[2];
3832
3832
  const payload = (0, import_transform_paths2.transformPaths)(