@wix/auto_sdk_blog_draft-posts 1.0.110 → 1.0.111

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.
@@ -3319,10 +3319,6 @@ interface DraftPostTranslation {
3319
3319
  /** Post URL. */
3320
3320
  url?: PageUrl;
3321
3321
  }
3322
- interface InitialDraftPostsCopied {
3323
- /** Number of draft posts copied. */
3324
- count?: number;
3325
- }
3326
3322
  interface DraftCategoriesUpdated {
3327
3323
  /**
3328
3324
  * Draft post ID.
@@ -3361,6 +3357,202 @@ interface DraftTagsUpdated {
3361
3357
  */
3362
3358
  previousTags?: string[];
3363
3359
  }
3360
+ interface GetDraftPostTotalsRequest {
3361
+ /**
3362
+ * Group results by fields (defaults to grouping by status).
3363
+ * If, for example, grouping by language is passed, language values in response will be filled.
3364
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3365
+ * @maxSize 10
3366
+ */
3367
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3368
+ /**
3369
+ * Optional language filter by provided language code. Useful in multilingual context.
3370
+ * @format LANGUAGE_TAG
3371
+ */
3372
+ language?: string | null;
3373
+ }
3374
+ declare enum TotalDraftPostsGroupingField {
3375
+ /** Groups results by status. */
3376
+ STATUS = "STATUS",
3377
+ /** Groups results by language. */
3378
+ LANGUAGE = "LANGUAGE"
3379
+ }
3380
+ /** @enumType */
3381
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3382
+ interface GetDraftPostTotalsResponse {
3383
+ /** Draft post totals. */
3384
+ totalDraftPosts?: TotalDraftPosts[];
3385
+ }
3386
+ interface TotalDraftPosts {
3387
+ /** Draft post totals in that group. */
3388
+ total?: number;
3389
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3390
+ status?: StatusWithLiterals;
3391
+ /**
3392
+ * Draft post language code (only has value when grouping by language, otherwise null).
3393
+ * @format LANGUAGE_TAG
3394
+ */
3395
+ language?: string | null;
3396
+ }
3397
+ interface DomainEvent extends DomainEventBodyOneOf {
3398
+ createdEvent?: EntityCreatedEvent;
3399
+ updatedEvent?: EntityUpdatedEvent;
3400
+ deletedEvent?: EntityDeletedEvent;
3401
+ actionEvent?: ActionEvent;
3402
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3403
+ id?: string;
3404
+ /**
3405
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3406
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3407
+ */
3408
+ entityFqdn?: string;
3409
+ /**
3410
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3411
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3412
+ */
3413
+ slug?: string;
3414
+ /** ID of the entity associated with the event. */
3415
+ entityId?: string;
3416
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3417
+ eventTime?: Date | null;
3418
+ /**
3419
+ * Whether the event was triggered as a result of a privacy regulation application
3420
+ * (for example, GDPR).
3421
+ */
3422
+ triggeredByAnonymizeRequest?: boolean | null;
3423
+ /** If present, indicates the action that triggered the event. */
3424
+ originatedFrom?: string | null;
3425
+ /**
3426
+ * 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.
3427
+ * 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.
3428
+ */
3429
+ entityEventSequence?: string | null;
3430
+ }
3431
+ /** @oneof */
3432
+ interface DomainEventBodyOneOf {
3433
+ createdEvent?: EntityCreatedEvent;
3434
+ updatedEvent?: EntityUpdatedEvent;
3435
+ deletedEvent?: EntityDeletedEvent;
3436
+ actionEvent?: ActionEvent;
3437
+ }
3438
+ interface EntityCreatedEvent {
3439
+ entityAsJson?: string;
3440
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3441
+ restoreInfo?: RestoreInfo;
3442
+ }
3443
+ interface RestoreInfo {
3444
+ deletedDate?: Date | null;
3445
+ }
3446
+ interface EntityUpdatedEvent {
3447
+ /**
3448
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3449
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3450
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3451
+ */
3452
+ currentEntityAsJson?: string;
3453
+ }
3454
+ interface EntityDeletedEvent {
3455
+ /** Entity that was deleted. */
3456
+ deletedEntityAsJson?: string | null;
3457
+ }
3458
+ interface ActionEvent {
3459
+ bodyAsJson?: string;
3460
+ }
3461
+ interface MessageEnvelope {
3462
+ /**
3463
+ * App instance ID.
3464
+ * @format GUID
3465
+ */
3466
+ instanceId?: string | null;
3467
+ /**
3468
+ * Event type.
3469
+ * @maxLength 150
3470
+ */
3471
+ eventType?: string;
3472
+ /** The identification type and identity data. */
3473
+ identity?: IdentificationData;
3474
+ /** Stringify payload. */
3475
+ data?: string;
3476
+ /** Details related to the account */
3477
+ accountInfo?: AccountInfo;
3478
+ }
3479
+ interface IdentificationData extends IdentificationDataIdOneOf {
3480
+ /**
3481
+ * ID of a site visitor that has not logged in to the site.
3482
+ * @format GUID
3483
+ */
3484
+ anonymousVisitorId?: string;
3485
+ /**
3486
+ * ID of a site visitor that has logged in to the site.
3487
+ * @format GUID
3488
+ */
3489
+ memberId?: string;
3490
+ /**
3491
+ * ID of a Wix user (site owner, contributor, etc.).
3492
+ * @format GUID
3493
+ */
3494
+ wixUserId?: string;
3495
+ /**
3496
+ * ID of an app.
3497
+ * @format GUID
3498
+ */
3499
+ appId?: string;
3500
+ /** @readonly */
3501
+ identityType?: WebhookIdentityTypeWithLiterals;
3502
+ }
3503
+ /** @oneof */
3504
+ interface IdentificationDataIdOneOf {
3505
+ /**
3506
+ * ID of a site visitor that has not logged in to the site.
3507
+ * @format GUID
3508
+ */
3509
+ anonymousVisitorId?: string;
3510
+ /**
3511
+ * ID of a site visitor that has logged in to the site.
3512
+ * @format GUID
3513
+ */
3514
+ memberId?: string;
3515
+ /**
3516
+ * ID of a Wix user (site owner, contributor, etc.).
3517
+ * @format GUID
3518
+ */
3519
+ wixUserId?: string;
3520
+ /**
3521
+ * ID of an app.
3522
+ * @format GUID
3523
+ */
3524
+ appId?: string;
3525
+ }
3526
+ declare enum WebhookIdentityType {
3527
+ UNKNOWN = "UNKNOWN",
3528
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3529
+ MEMBER = "MEMBER",
3530
+ WIX_USER = "WIX_USER",
3531
+ APP = "APP"
3532
+ }
3533
+ /** @enumType */
3534
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3535
+ interface AccountInfo {
3536
+ /**
3537
+ * ID of the Wix account associated with the event.
3538
+ * @format GUID
3539
+ */
3540
+ accountId?: string | null;
3541
+ /**
3542
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3543
+ * @format GUID
3544
+ */
3545
+ parentAccountId?: string | null;
3546
+ /**
3547
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3548
+ * @format GUID
3549
+ */
3550
+ siteId?: string | null;
3551
+ }
3552
+ interface InitialDraftPostsCopied {
3553
+ /** Number of draft posts copied. */
3554
+ count?: number;
3555
+ }
3364
3556
  interface CreateDraftPostRequest {
3365
3557
  /** Draft post to create. */
3366
3558
  draftPost: DraftPost;
@@ -3941,197 +4133,116 @@ interface DraftPostCount {
3941
4133
  /** Number of posts. */
3942
4134
  postCount?: number;
3943
4135
  }
3944
- interface DomainEvent extends DomainEventBodyOneOf {
3945
- createdEvent?: EntityCreatedEvent;
3946
- updatedEvent?: EntityUpdatedEvent;
3947
- deletedEvent?: EntityDeletedEvent;
3948
- actionEvent?: ActionEvent;
3949
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3950
- id?: string;
4136
+ interface BulkRevertToUnpublishedRequest {
3951
4137
  /**
3952
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3953
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4138
+ * Source post IDs.
4139
+ * @minSize 1
4140
+ * @maxSize 100
4141
+ * @format GUID
3954
4142
  */
3955
- entityFqdn?: string;
4143
+ postIds?: string[];
4144
+ /** Should full draft post be returned. */
4145
+ returnFullEntity?: boolean;
4146
+ }
4147
+ interface BulkRevertToUnpublishedResponse {
4148
+ /** Bulk action results. */
4149
+ results?: BulkDraftPostResult[];
4150
+ /** Bulk action metadata. */
4151
+ bulkActionMetadata?: BulkActionMetadata;
4152
+ }
4153
+ interface BulkRejectDraftPostRequest {
3956
4154
  /**
3957
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3958
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4155
+ * Source post IDs.
4156
+ * @minSize 1
4157
+ * @maxSize 100
4158
+ * @format GUID
3959
4159
  */
3960
- slug?: string;
3961
- /** ID of the entity associated with the event. */
3962
- entityId?: string;
3963
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3964
- eventTime?: Date | null;
4160
+ postIds?: string[];
4161
+ /** Should full draft post be returned. */
4162
+ returnFullEntity?: boolean;
4163
+ }
4164
+ interface BulkRejectDraftPostResponse {
4165
+ /** Bulk action results. */
4166
+ results?: BulkDraftPostResult[];
4167
+ /** Bulk action metadata. */
4168
+ bulkActionMetadata?: BulkActionMetadata;
4169
+ }
4170
+ interface RevertToUnpublishedRequest {
3965
4171
  /**
3966
- * Whether the event was triggered as a result of a privacy regulation application
3967
- * (for example, GDPR).
4172
+ * Source post ID.
4173
+ * @format GUID
3968
4174
  */
3969
- triggeredByAnonymizeRequest?: boolean | null;
3970
- /** If present, indicates the action that triggered the event. */
3971
- originatedFrom?: string | null;
4175
+ postId?: string;
3972
4176
  /**
3973
- * 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.
3974
- * 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.
3975
- */
3976
- entityEventSequence?: string | null;
3977
- }
3978
- /** @oneof */
3979
- interface DomainEventBodyOneOf {
3980
- createdEvent?: EntityCreatedEvent;
3981
- updatedEvent?: EntityUpdatedEvent;
3982
- deletedEvent?: EntityDeletedEvent;
3983
- actionEvent?: ActionEvent;
3984
- }
3985
- interface EntityCreatedEvent {
3986
- entityAsJson?: string;
3987
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3988
- restoreInfo?: RestoreInfo;
3989
- }
3990
- interface RestoreInfo {
3991
- deletedDate?: Date | null;
3992
- }
3993
- interface EntityUpdatedEvent {
3994
- /**
3995
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3996
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3997
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4177
+ * List of draft post fields to be included if entities are present in the response.
4178
+ * Base fieldset, which is default, will return all core draft post properties.
4179
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4180
+ * @maxSize 10
3998
4181
  */
3999
- currentEntityAsJson?: string;
4000
- }
4001
- interface EntityDeletedEvent {
4002
- /** Entity that was deleted. */
4003
- deletedEntityAsJson?: string | null;
4182
+ fieldsets?: FieldWithLiterals[];
4004
4183
  }
4005
- interface ActionEvent {
4006
- bodyAsJson?: string;
4184
+ interface RevertToUnpublishedResponse {
4185
+ /** Updated post draft. */
4186
+ draftPost?: DraftPost;
4007
4187
  }
4008
- interface MessageEnvelope {
4188
+ interface RejectDraftPostRequest {
4009
4189
  /**
4010
- * App instance ID.
4190
+ * Source post ID.
4011
4191
  * @format GUID
4012
4192
  */
4013
- instanceId?: string | null;
4193
+ postId?: string;
4014
4194
  /**
4015
- * Event type.
4016
- * @maxLength 150
4195
+ * List of draft post fields to be included if entities are present in the response.
4196
+ * Base fieldset, which is default, will return all core draft post properties.
4197
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4198
+ * @maxSize 10
4017
4199
  */
4018
- eventType?: string;
4019
- /** The identification type and identity data. */
4020
- identity?: IdentificationData;
4021
- /** Stringify payload. */
4022
- data?: string;
4023
- /** Details related to the account */
4024
- accountInfo?: AccountInfo;
4200
+ fieldsets?: FieldWithLiterals[];
4025
4201
  }
4026
- interface IdentificationData extends IdentificationDataIdOneOf {
4027
- /**
4028
- * ID of a site visitor that has not logged in to the site.
4029
- * @format GUID
4030
- */
4031
- anonymousVisitorId?: string;
4032
- /**
4033
- * ID of a site visitor that has logged in to the site.
4034
- * @format GUID
4035
- */
4036
- memberId?: string;
4037
- /**
4038
- * ID of a Wix user (site owner, contributor, etc.).
4039
- * @format GUID
4040
- */
4041
- wixUserId?: string;
4042
- /**
4043
- * ID of an app.
4044
- * @format GUID
4045
- */
4046
- appId?: string;
4047
- /** @readonly */
4048
- identityType?: WebhookIdentityTypeWithLiterals;
4202
+ interface RejectDraftPostResponse {
4203
+ /** Draft post. */
4204
+ draftPost?: DraftPost;
4049
4205
  }
4050
- /** @oneof */
4051
- interface IdentificationDataIdOneOf {
4052
- /**
4053
- * ID of a site visitor that has not logged in to the site.
4054
- * @format GUID
4055
- */
4056
- anonymousVisitorId?: string;
4206
+ interface ApproveDraftPostRequest {
4057
4207
  /**
4058
- * ID of a site visitor that has logged in to the site.
4208
+ * Source post ID.
4059
4209
  * @format GUID
4060
4210
  */
4061
- memberId?: string;
4211
+ postId?: string;
4062
4212
  /**
4063
- * ID of a Wix user (site owner, contributor, etc.).
4064
- * @format GUID
4213
+ * Scheduled publish date if should be not immediately published.
4214
+ * @maxLength 24
4065
4215
  */
4066
- wixUserId?: string;
4216
+ scheduledPublishDate?: string | null;
4067
4217
  /**
4068
- * ID of an app.
4069
- * @format GUID
4218
+ * List of draft post fields to be included if entities are present in the response.
4219
+ * Base fieldset, which is default, will return all core draft post properties.
4220
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4221
+ * @maxSize 10
4070
4222
  */
4071
- appId?: string;
4223
+ fieldsets?: FieldWithLiterals[];
4072
4224
  }
4073
- declare enum WebhookIdentityType {
4074
- UNKNOWN = "UNKNOWN",
4075
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4076
- MEMBER = "MEMBER",
4077
- WIX_USER = "WIX_USER",
4078
- APP = "APP"
4225
+ interface ApproveDraftPostResponse {
4226
+ /** Updated post draft. */
4227
+ draftPost?: DraftPost;
4079
4228
  }
4080
- /** @enumType */
4081
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4082
- interface AccountInfo {
4083
- /**
4084
- * ID of the Wix account associated with the event.
4085
- * @format GUID
4086
- */
4087
- accountId?: string | null;
4088
- /**
4089
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
4090
- * @format GUID
4091
- */
4092
- parentAccountId?: string | null;
4229
+ interface MarkPostAsInModerationRequest {
4093
4230
  /**
4094
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4095
- * @format GUID
4231
+ * Source post ID.
4232
+ * @maxLength 38
4096
4233
  */
4097
- siteId?: string | null;
4098
- }
4099
- interface GetDraftPostTotalsRequest {
4234
+ postId?: string;
4100
4235
  /**
4101
- * Group results by fields (defaults to grouping by status).
4102
- * If, for example, grouping by language is passed, language values in response will be filled.
4103
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4236
+ * List of draft post fields to be included if entities are present in the response.
4237
+ * Base fieldset, which is default, will return all core draft post properties.
4238
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4104
4239
  * @maxSize 10
4105
4240
  */
4106
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4107
- /**
4108
- * Optional language filter by provided language code. Useful in multilingual context.
4109
- * @format LANGUAGE_TAG
4110
- */
4111
- language?: string | null;
4112
- }
4113
- declare enum TotalDraftPostsGroupingField {
4114
- /** Groups results by status. */
4115
- STATUS = "STATUS",
4116
- /** Groups results by language. */
4117
- LANGUAGE = "LANGUAGE"
4118
- }
4119
- /** @enumType */
4120
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4121
- interface GetDraftPostTotalsResponse {
4122
- /** Draft post totals. */
4123
- totalDraftPosts?: TotalDraftPosts[];
4241
+ fieldsets?: FieldWithLiterals[];
4124
4242
  }
4125
- interface TotalDraftPosts {
4126
- /** Draft post totals in that group. */
4127
- total?: number;
4128
- /** Draft post status (only has value when grouping by status, otherwise null). */
4129
- status?: StatusWithLiterals;
4130
- /**
4131
- * Draft post language code (only has value when grouping by language, otherwise null).
4132
- * @format LANGUAGE_TAG
4133
- */
4134
- language?: string | null;
4243
+ interface MarkPostAsInModerationResponse {
4244
+ /** Updated post draft. */
4245
+ draftPost?: DraftPost;
4135
4246
  }
4136
4247
  interface TranslateDraftRequest {
4137
4248
  /**
@@ -4218,117 +4329,6 @@ interface UpdateDraftPostLanguageResponse {
4218
4329
  /** Updated draft post. */
4219
4330
  draftPost?: DraftPost;
4220
4331
  }
4221
- interface BulkRevertToUnpublishedRequest {
4222
- /**
4223
- * Source post IDs.
4224
- * @minSize 1
4225
- * @maxSize 100
4226
- * @format GUID
4227
- */
4228
- postIds?: string[];
4229
- /** Should full draft post be returned. */
4230
- returnFullEntity?: boolean;
4231
- }
4232
- interface BulkRevertToUnpublishedResponse {
4233
- /** Bulk action results. */
4234
- results?: BulkDraftPostResult[];
4235
- /** Bulk action metadata. */
4236
- bulkActionMetadata?: BulkActionMetadata;
4237
- }
4238
- interface BulkRejectDraftPostRequest {
4239
- /**
4240
- * Source post IDs.
4241
- * @minSize 1
4242
- * @maxSize 100
4243
- * @format GUID
4244
- */
4245
- postIds?: string[];
4246
- /** Should full draft post be returned. */
4247
- returnFullEntity?: boolean;
4248
- }
4249
- interface BulkRejectDraftPostResponse {
4250
- /** Bulk action results. */
4251
- results?: BulkDraftPostResult[];
4252
- /** Bulk action metadata. */
4253
- bulkActionMetadata?: BulkActionMetadata;
4254
- }
4255
- interface RevertToUnpublishedRequest {
4256
- /**
4257
- * Source post ID.
4258
- * @format GUID
4259
- */
4260
- postId?: string;
4261
- /**
4262
- * List of draft post fields to be included if entities are present in the response.
4263
- * Base fieldset, which is default, will return all core draft post properties.
4264
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4265
- * @maxSize 10
4266
- */
4267
- fieldsets?: FieldWithLiterals[];
4268
- }
4269
- interface RevertToUnpublishedResponse {
4270
- /** Updated post draft. */
4271
- draftPost?: DraftPost;
4272
- }
4273
- interface RejectDraftPostRequest {
4274
- /**
4275
- * Source post ID.
4276
- * @format GUID
4277
- */
4278
- postId?: string;
4279
- /**
4280
- * List of draft post fields to be included if entities are present in the response.
4281
- * Base fieldset, which is default, will return all core draft post properties.
4282
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4283
- * @maxSize 10
4284
- */
4285
- fieldsets?: FieldWithLiterals[];
4286
- }
4287
- interface RejectDraftPostResponse {
4288
- /** Draft post. */
4289
- draftPost?: DraftPost;
4290
- }
4291
- interface ApproveDraftPostRequest {
4292
- /**
4293
- * Source post ID.
4294
- * @format GUID
4295
- */
4296
- postId?: string;
4297
- /**
4298
- * Scheduled publish date if should be not immediately published.
4299
- * @maxLength 24
4300
- */
4301
- scheduledPublishDate?: string | null;
4302
- /**
4303
- * List of draft post fields to be included if entities are present in the response.
4304
- * Base fieldset, which is default, will return all core draft post properties.
4305
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4306
- * @maxSize 10
4307
- */
4308
- fieldsets?: FieldWithLiterals[];
4309
- }
4310
- interface ApproveDraftPostResponse {
4311
- /** Updated post draft. */
4312
- draftPost?: DraftPost;
4313
- }
4314
- interface MarkPostAsInModerationRequest {
4315
- /**
4316
- * Source post ID.
4317
- * @maxLength 38
4318
- */
4319
- postId?: string;
4320
- /**
4321
- * List of draft post fields to be included if entities are present in the response.
4322
- * Base fieldset, which is default, will return all core draft post properties.
4323
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4324
- * @maxSize 10
4325
- */
4326
- fieldsets?: FieldWithLiterals[];
4327
- }
4328
- interface MarkPostAsInModerationResponse {
4329
- /** Updated post draft. */
4330
- draftPost?: DraftPost;
4331
- }
4332
4332
 
4333
4333
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4334
4334
  getUrl: (context: any) => string;
package/build/cjs/meta.js CHANGED
@@ -2839,6 +2839,19 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
2839
2839
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
2840
2840
  return ModerationStatusStatus2;
2841
2841
  })(ModerationStatusStatus || {});
2842
+ var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
2843
+ TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
2844
+ TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
2845
+ return TotalDraftPostsGroupingField2;
2846
+ })(TotalDraftPostsGroupingField || {});
2847
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2848
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2849
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2850
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
2851
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2852
+ WebhookIdentityType2["APP"] = "APP";
2853
+ return WebhookIdentityType2;
2854
+ })(WebhookIdentityType || {});
2842
2855
  var Type = /* @__PURE__ */ ((Type2) => {
2843
2856
  Type2["UNKNOWN"] = "UNKNOWN";
2844
2857
  Type2["MANUAL"] = "MANUAL";
@@ -2878,19 +2891,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2878
2891
  SortOrder2["DESC"] = "DESC";
2879
2892
  return SortOrder2;
2880
2893
  })(SortOrder || {});
2881
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2882
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2883
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2884
- WebhookIdentityType2["MEMBER"] = "MEMBER";
2885
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2886
- WebhookIdentityType2["APP"] = "APP";
2887
- return WebhookIdentityType2;
2888
- })(WebhookIdentityType || {});
2889
- var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
2890
- TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
2891
- TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
2892
- return TotalDraftPostsGroupingField2;
2893
- })(TotalDraftPostsGroupingField || {});
2894
2894
 
2895
2895
  // src/blog-v3-draft-draft-posts.meta.ts
2896
2896
  function createDraftPost2() {