@wix/auto_sdk_blog_draft-posts 1.0.120 → 1.0.122

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.
@@ -3389,10 +3389,6 @@ interface DraftPostTranslation {
3389
3389
  /** Post URL. */
3390
3390
  url?: PageUrl;
3391
3391
  }
3392
- interface InitialDraftPostsCopied {
3393
- /** Number of draft posts copied. */
3394
- count?: number;
3395
- }
3396
3392
  interface DraftCategoriesUpdated {
3397
3393
  /**
3398
3394
  * Draft post ID.
@@ -3431,6 +3427,202 @@ interface DraftTagsUpdated {
3431
3427
  */
3432
3428
  previousTags?: string[];
3433
3429
  }
3430
+ interface GetDraftPostTotalsRequest {
3431
+ /**
3432
+ * Group results by fields (defaults to grouping by status).
3433
+ * If, for example, grouping by language is passed, language values in response will be filled.
3434
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3435
+ * @maxSize 10
3436
+ */
3437
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3438
+ /**
3439
+ * Optional language filter by provided language code. Useful in multilingual context.
3440
+ * @format LANGUAGE_TAG
3441
+ */
3442
+ language?: string | null;
3443
+ }
3444
+ declare enum TotalDraftPostsGroupingField {
3445
+ /** Groups results by status. */
3446
+ STATUS = "STATUS",
3447
+ /** Groups results by language. */
3448
+ LANGUAGE = "LANGUAGE"
3449
+ }
3450
+ /** @enumType */
3451
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3452
+ interface GetDraftPostTotalsResponse {
3453
+ /** Draft post totals. */
3454
+ totalDraftPosts?: TotalDraftPosts[];
3455
+ }
3456
+ interface TotalDraftPosts {
3457
+ /** Draft post totals in that group. */
3458
+ total?: number;
3459
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3460
+ status?: StatusWithLiterals;
3461
+ /**
3462
+ * Draft post language code (only has value when grouping by language, otherwise null).
3463
+ * @format LANGUAGE_TAG
3464
+ */
3465
+ language?: string | null;
3466
+ }
3467
+ interface DomainEvent extends DomainEventBodyOneOf {
3468
+ createdEvent?: EntityCreatedEvent;
3469
+ updatedEvent?: EntityUpdatedEvent;
3470
+ deletedEvent?: EntityDeletedEvent;
3471
+ actionEvent?: ActionEvent;
3472
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3473
+ id?: string;
3474
+ /**
3475
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3476
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3477
+ */
3478
+ entityFqdn?: string;
3479
+ /**
3480
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3481
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3482
+ */
3483
+ slug?: string;
3484
+ /** ID of the entity associated with the event. */
3485
+ entityId?: string;
3486
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3487
+ eventTime?: Date | null;
3488
+ /**
3489
+ * Whether the event was triggered as a result of a privacy regulation application
3490
+ * (for example, GDPR).
3491
+ */
3492
+ triggeredByAnonymizeRequest?: boolean | null;
3493
+ /** If present, indicates the action that triggered the event. */
3494
+ originatedFrom?: string | null;
3495
+ /**
3496
+ * 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.
3497
+ * 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.
3498
+ */
3499
+ entityEventSequence?: string | null;
3500
+ }
3501
+ /** @oneof */
3502
+ interface DomainEventBodyOneOf {
3503
+ createdEvent?: EntityCreatedEvent;
3504
+ updatedEvent?: EntityUpdatedEvent;
3505
+ deletedEvent?: EntityDeletedEvent;
3506
+ actionEvent?: ActionEvent;
3507
+ }
3508
+ interface EntityCreatedEvent {
3509
+ entityAsJson?: string;
3510
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3511
+ restoreInfo?: RestoreInfo;
3512
+ }
3513
+ interface RestoreInfo {
3514
+ deletedDate?: Date | null;
3515
+ }
3516
+ interface EntityUpdatedEvent {
3517
+ /**
3518
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3519
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3520
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3521
+ */
3522
+ currentEntityAsJson?: string;
3523
+ }
3524
+ interface EntityDeletedEvent {
3525
+ /** Entity that was deleted. */
3526
+ deletedEntityAsJson?: string | null;
3527
+ }
3528
+ interface ActionEvent {
3529
+ bodyAsJson?: string;
3530
+ }
3531
+ interface MessageEnvelope {
3532
+ /**
3533
+ * App instance ID.
3534
+ * @format GUID
3535
+ */
3536
+ instanceId?: string | null;
3537
+ /**
3538
+ * Event type.
3539
+ * @maxLength 150
3540
+ */
3541
+ eventType?: string;
3542
+ /** The identification type and identity data. */
3543
+ identity?: IdentificationData;
3544
+ /** Stringify payload. */
3545
+ data?: string;
3546
+ /** Details related to the account */
3547
+ accountInfo?: AccountInfo;
3548
+ }
3549
+ interface IdentificationData extends IdentificationDataIdOneOf {
3550
+ /**
3551
+ * ID of a site visitor that has not logged in to the site.
3552
+ * @format GUID
3553
+ */
3554
+ anonymousVisitorId?: string;
3555
+ /**
3556
+ * ID of a site visitor that has logged in to the site.
3557
+ * @format GUID
3558
+ */
3559
+ memberId?: string;
3560
+ /**
3561
+ * ID of a Wix user (site owner, contributor, etc.).
3562
+ * @format GUID
3563
+ */
3564
+ wixUserId?: string;
3565
+ /**
3566
+ * ID of an app.
3567
+ * @format GUID
3568
+ */
3569
+ appId?: string;
3570
+ /** @readonly */
3571
+ identityType?: WebhookIdentityTypeWithLiterals;
3572
+ }
3573
+ /** @oneof */
3574
+ interface IdentificationDataIdOneOf {
3575
+ /**
3576
+ * ID of a site visitor that has not logged in to the site.
3577
+ * @format GUID
3578
+ */
3579
+ anonymousVisitorId?: string;
3580
+ /**
3581
+ * ID of a site visitor that has logged in to the site.
3582
+ * @format GUID
3583
+ */
3584
+ memberId?: string;
3585
+ /**
3586
+ * ID of a Wix user (site owner, contributor, etc.).
3587
+ * @format GUID
3588
+ */
3589
+ wixUserId?: string;
3590
+ /**
3591
+ * ID of an app.
3592
+ * @format GUID
3593
+ */
3594
+ appId?: string;
3595
+ }
3596
+ declare enum WebhookIdentityType {
3597
+ UNKNOWN = "UNKNOWN",
3598
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3599
+ MEMBER = "MEMBER",
3600
+ WIX_USER = "WIX_USER",
3601
+ APP = "APP"
3602
+ }
3603
+ /** @enumType */
3604
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3605
+ interface AccountInfo {
3606
+ /**
3607
+ * ID of the Wix account associated with the event.
3608
+ * @format GUID
3609
+ */
3610
+ accountId?: string | null;
3611
+ /**
3612
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3613
+ * @format GUID
3614
+ */
3615
+ parentAccountId?: string | null;
3616
+ /**
3617
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3618
+ * @format GUID
3619
+ */
3620
+ siteId?: string | null;
3621
+ }
3622
+ interface InitialDraftPostsCopied {
3623
+ /** Number of draft posts copied. */
3624
+ count?: number;
3625
+ }
3434
3626
  interface CreateDraftPostRequest {
3435
3627
  /** Draft post to create. */
3436
3628
  draftPost: DraftPost;
@@ -4011,197 +4203,116 @@ interface DraftPostCount {
4011
4203
  /** Number of posts. */
4012
4204
  postCount?: number;
4013
4205
  }
4014
- interface DomainEvent extends DomainEventBodyOneOf {
4015
- createdEvent?: EntityCreatedEvent;
4016
- updatedEvent?: EntityUpdatedEvent;
4017
- deletedEvent?: EntityDeletedEvent;
4018
- actionEvent?: ActionEvent;
4019
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4020
- id?: string;
4206
+ interface BulkRevertToUnpublishedRequest {
4021
4207
  /**
4022
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4023
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4208
+ * Source post IDs.
4209
+ * @minSize 1
4210
+ * @maxSize 100
4211
+ * @format GUID
4024
4212
  */
4025
- entityFqdn?: string;
4213
+ postIds?: string[];
4214
+ /** Should full draft post be returned. */
4215
+ returnFullEntity?: boolean;
4216
+ }
4217
+ interface BulkRevertToUnpublishedResponse {
4218
+ /** Bulk action results. */
4219
+ results?: BulkDraftPostResult[];
4220
+ /** Bulk action metadata. */
4221
+ bulkActionMetadata?: BulkActionMetadata;
4222
+ }
4223
+ interface BulkRejectDraftPostRequest {
4026
4224
  /**
4027
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
4028
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4225
+ * Source post IDs.
4226
+ * @minSize 1
4227
+ * @maxSize 100
4228
+ * @format GUID
4029
4229
  */
4030
- slug?: string;
4031
- /** ID of the entity associated with the event. */
4032
- entityId?: string;
4033
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4034
- eventTime?: Date | null;
4230
+ postIds?: string[];
4231
+ /** Should full draft post be returned. */
4232
+ returnFullEntity?: boolean;
4233
+ }
4234
+ interface BulkRejectDraftPostResponse {
4235
+ /** Bulk action results. */
4236
+ results?: BulkDraftPostResult[];
4237
+ /** Bulk action metadata. */
4238
+ bulkActionMetadata?: BulkActionMetadata;
4239
+ }
4240
+ interface RevertToUnpublishedRequest {
4035
4241
  /**
4036
- * Whether the event was triggered as a result of a privacy regulation application
4037
- * (for example, GDPR).
4242
+ * Source post ID.
4243
+ * @format GUID
4038
4244
  */
4039
- triggeredByAnonymizeRequest?: boolean | null;
4040
- /** If present, indicates the action that triggered the event. */
4041
- originatedFrom?: string | null;
4245
+ postId?: string;
4042
4246
  /**
4043
- * 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.
4044
- * 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.
4045
- */
4046
- entityEventSequence?: string | null;
4047
- }
4048
- /** @oneof */
4049
- interface DomainEventBodyOneOf {
4050
- createdEvent?: EntityCreatedEvent;
4051
- updatedEvent?: EntityUpdatedEvent;
4052
- deletedEvent?: EntityDeletedEvent;
4053
- actionEvent?: ActionEvent;
4054
- }
4055
- interface EntityCreatedEvent {
4056
- entityAsJson?: string;
4057
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
4058
- restoreInfo?: RestoreInfo;
4059
- }
4060
- interface RestoreInfo {
4061
- deletedDate?: Date | null;
4062
- }
4063
- interface EntityUpdatedEvent {
4064
- /**
4065
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4066
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4067
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4247
+ * List of draft post fields to be included if entities are present in the response.
4248
+ * Base fieldset, which is default, will return all core draft post properties.
4249
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4250
+ * @maxSize 10
4068
4251
  */
4069
- currentEntityAsJson?: string;
4070
- }
4071
- interface EntityDeletedEvent {
4072
- /** Entity that was deleted. */
4073
- deletedEntityAsJson?: string | null;
4252
+ fieldsets?: FieldWithLiterals[];
4074
4253
  }
4075
- interface ActionEvent {
4076
- bodyAsJson?: string;
4254
+ interface RevertToUnpublishedResponse {
4255
+ /** Updated post draft. */
4256
+ draftPost?: DraftPost;
4077
4257
  }
4078
- interface MessageEnvelope {
4258
+ interface RejectDraftPostRequest {
4079
4259
  /**
4080
- * App instance ID.
4260
+ * Source post ID.
4081
4261
  * @format GUID
4082
4262
  */
4083
- instanceId?: string | null;
4263
+ postId?: string;
4084
4264
  /**
4085
- * Event type.
4086
- * @maxLength 150
4265
+ * List of draft post fields to be included if entities are present in the response.
4266
+ * Base fieldset, which is default, will return all core draft post properties.
4267
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4268
+ * @maxSize 10
4087
4269
  */
4088
- eventType?: string;
4089
- /** The identification type and identity data. */
4090
- identity?: IdentificationData;
4091
- /** Stringify payload. */
4092
- data?: string;
4093
- /** Details related to the account */
4094
- accountInfo?: AccountInfo;
4270
+ fieldsets?: FieldWithLiterals[];
4095
4271
  }
4096
- interface IdentificationData extends IdentificationDataIdOneOf {
4097
- /**
4098
- * ID of a site visitor that has not logged in to the site.
4099
- * @format GUID
4100
- */
4101
- anonymousVisitorId?: string;
4102
- /**
4103
- * ID of a site visitor that has logged in to the site.
4104
- * @format GUID
4105
- */
4106
- memberId?: string;
4107
- /**
4108
- * ID of a Wix user (site owner, contributor, etc.).
4109
- * @format GUID
4110
- */
4111
- wixUserId?: string;
4112
- /**
4113
- * ID of an app.
4114
- * @format GUID
4115
- */
4116
- appId?: string;
4117
- /** @readonly */
4118
- identityType?: WebhookIdentityTypeWithLiterals;
4272
+ interface RejectDraftPostResponse {
4273
+ /** Draft post. */
4274
+ draftPost?: DraftPost;
4119
4275
  }
4120
- /** @oneof */
4121
- interface IdentificationDataIdOneOf {
4122
- /**
4123
- * ID of a site visitor that has not logged in to the site.
4124
- * @format GUID
4125
- */
4126
- anonymousVisitorId?: string;
4276
+ interface ApproveDraftPostRequest {
4127
4277
  /**
4128
- * ID of a site visitor that has logged in to the site.
4278
+ * Source post ID.
4129
4279
  * @format GUID
4130
4280
  */
4131
- memberId?: string;
4281
+ postId?: string;
4132
4282
  /**
4133
- * ID of a Wix user (site owner, contributor, etc.).
4134
- * @format GUID
4283
+ * Scheduled publish date if should be not immediately published.
4284
+ * @maxLength 24
4135
4285
  */
4136
- wixUserId?: string;
4286
+ scheduledPublishDate?: string | null;
4137
4287
  /**
4138
- * ID of an app.
4139
- * @format GUID
4288
+ * List of draft post fields to be included if entities are present in the response.
4289
+ * Base fieldset, which is default, will return all core draft post properties.
4290
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4291
+ * @maxSize 10
4140
4292
  */
4141
- appId?: string;
4293
+ fieldsets?: FieldWithLiterals[];
4142
4294
  }
4143
- declare enum WebhookIdentityType {
4144
- UNKNOWN = "UNKNOWN",
4145
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4146
- MEMBER = "MEMBER",
4147
- WIX_USER = "WIX_USER",
4148
- APP = "APP"
4295
+ interface ApproveDraftPostResponse {
4296
+ /** Updated post draft. */
4297
+ draftPost?: DraftPost;
4149
4298
  }
4150
- /** @enumType */
4151
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4152
- interface AccountInfo {
4153
- /**
4154
- * ID of the Wix account associated with the event.
4155
- * @format GUID
4156
- */
4157
- accountId?: string | null;
4158
- /**
4159
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
4160
- * @format GUID
4161
- */
4162
- parentAccountId?: string | null;
4299
+ interface MarkPostAsInModerationRequest {
4163
4300
  /**
4164
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4165
- * @format GUID
4301
+ * Source post ID.
4302
+ * @maxLength 38
4166
4303
  */
4167
- siteId?: string | null;
4168
- }
4169
- interface GetDraftPostTotalsRequest {
4304
+ postId?: string;
4170
4305
  /**
4171
- * Group results by fields (defaults to grouping by status).
4172
- * If, for example, grouping by language is passed, language values in response will be filled.
4173
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4306
+ * List of draft post fields to be included if entities are present in the response.
4307
+ * Base fieldset, which is default, will return all core draft post properties.
4308
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4174
4309
  * @maxSize 10
4175
4310
  */
4176
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4177
- /**
4178
- * Optional language filter by provided language code. Useful in multilingual context.
4179
- * @format LANGUAGE_TAG
4180
- */
4181
- language?: string | null;
4182
- }
4183
- declare enum TotalDraftPostsGroupingField {
4184
- /** Groups results by status. */
4185
- STATUS = "STATUS",
4186
- /** Groups results by language. */
4187
- LANGUAGE = "LANGUAGE"
4188
- }
4189
- /** @enumType */
4190
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4191
- interface GetDraftPostTotalsResponse {
4192
- /** Draft post totals. */
4193
- totalDraftPosts?: TotalDraftPosts[];
4311
+ fieldsets?: FieldWithLiterals[];
4194
4312
  }
4195
- interface TotalDraftPosts {
4196
- /** Draft post totals in that group. */
4197
- total?: number;
4198
- /** Draft post status (only has value when grouping by status, otherwise null). */
4199
- status?: StatusWithLiterals;
4200
- /**
4201
- * Draft post language code (only has value when grouping by language, otherwise null).
4202
- * @format LANGUAGE_TAG
4203
- */
4204
- language?: string | null;
4313
+ interface MarkPostAsInModerationResponse {
4314
+ /** Updated post draft. */
4315
+ draftPost?: DraftPost;
4205
4316
  }
4206
4317
  interface TranslateDraftRequest {
4207
4318
  /**
@@ -4288,117 +4399,6 @@ interface UpdateDraftPostLanguageResponse {
4288
4399
  /** Updated draft post. */
4289
4400
  draftPost?: DraftPost;
4290
4401
  }
4291
- interface BulkRevertToUnpublishedRequest {
4292
- /**
4293
- * Source post IDs.
4294
- * @minSize 1
4295
- * @maxSize 100
4296
- * @format GUID
4297
- */
4298
- postIds?: string[];
4299
- /** Should full draft post be returned. */
4300
- returnFullEntity?: boolean;
4301
- }
4302
- interface BulkRevertToUnpublishedResponse {
4303
- /** Bulk action results. */
4304
- results?: BulkDraftPostResult[];
4305
- /** Bulk action metadata. */
4306
- bulkActionMetadata?: BulkActionMetadata;
4307
- }
4308
- interface BulkRejectDraftPostRequest {
4309
- /**
4310
- * Source post IDs.
4311
- * @minSize 1
4312
- * @maxSize 100
4313
- * @format GUID
4314
- */
4315
- postIds?: string[];
4316
- /** Should full draft post be returned. */
4317
- returnFullEntity?: boolean;
4318
- }
4319
- interface BulkRejectDraftPostResponse {
4320
- /** Bulk action results. */
4321
- results?: BulkDraftPostResult[];
4322
- /** Bulk action metadata. */
4323
- bulkActionMetadata?: BulkActionMetadata;
4324
- }
4325
- interface RevertToUnpublishedRequest {
4326
- /**
4327
- * Source post ID.
4328
- * @format GUID
4329
- */
4330
- postId?: string;
4331
- /**
4332
- * List of draft post fields to be included if entities are present in the response.
4333
- * Base fieldset, which is default, will return all core draft post properties.
4334
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4335
- * @maxSize 10
4336
- */
4337
- fieldsets?: FieldWithLiterals[];
4338
- }
4339
- interface RevertToUnpublishedResponse {
4340
- /** Updated post draft. */
4341
- draftPost?: DraftPost;
4342
- }
4343
- interface RejectDraftPostRequest {
4344
- /**
4345
- * Source post ID.
4346
- * @format GUID
4347
- */
4348
- postId?: string;
4349
- /**
4350
- * List of draft post fields to be included if entities are present in the response.
4351
- * Base fieldset, which is default, will return all core draft post properties.
4352
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4353
- * @maxSize 10
4354
- */
4355
- fieldsets?: FieldWithLiterals[];
4356
- }
4357
- interface RejectDraftPostResponse {
4358
- /** Draft post. */
4359
- draftPost?: DraftPost;
4360
- }
4361
- interface ApproveDraftPostRequest {
4362
- /**
4363
- * Source post ID.
4364
- * @format GUID
4365
- */
4366
- postId?: string;
4367
- /**
4368
- * Scheduled publish date if should be not immediately published.
4369
- * @maxLength 24
4370
- */
4371
- scheduledPublishDate?: string | null;
4372
- /**
4373
- * List of draft post fields to be included if entities are present in the response.
4374
- * Base fieldset, which is default, will return all core draft post properties.
4375
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4376
- * @maxSize 10
4377
- */
4378
- fieldsets?: FieldWithLiterals[];
4379
- }
4380
- interface ApproveDraftPostResponse {
4381
- /** Updated post draft. */
4382
- draftPost?: DraftPost;
4383
- }
4384
- interface MarkPostAsInModerationRequest {
4385
- /**
4386
- * Source post ID.
4387
- * @maxLength 38
4388
- */
4389
- postId?: string;
4390
- /**
4391
- * List of draft post fields to be included if entities are present in the response.
4392
- * Base fieldset, which is default, will return all core draft post properties.
4393
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4394
- * @maxSize 10
4395
- */
4396
- fieldsets?: FieldWithLiterals[];
4397
- }
4398
- interface MarkPostAsInModerationResponse {
4399
- /** Updated post draft. */
4400
- draftPost?: DraftPost;
4401
- }
4402
4402
 
4403
4403
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4404
4404
  getUrl: (context: any) => string;
package/build/cjs/meta.js CHANGED
@@ -127,6 +127,7 @@ var TRANSFORM_PATHS_0 = [
127
127
  { path: "draftPost.scheduledPublishDate" },
128
128
  { path: "draftPost.firstPublishedDate" },
129
129
  { path: "draftPost.createdDate" },
130
+ { path: "draftPost.expirationDate" },
130
131
  { path: "draftPost.heroImage.urlExpirationDate" },
131
132
  { path: "draftPost.richContent.metadata.createdTimestamp" },
132
133
  { path: "draftPost.richContent.metadata.updatedTimestamp" },
@@ -439,6 +440,7 @@ var TRANSFORM_PATHS_2 = [
439
440
  { path: "draftPosts.scheduledPublishDate" },
440
441
  { path: "draftPosts.firstPublishedDate" },
441
442
  { path: "draftPosts.createdDate" },
443
+ { path: "draftPosts.expirationDate" },
442
444
  { path: "draftPosts.heroImage.urlExpirationDate" },
443
445
  { path: "draftPosts.richContent.metadata.createdTimestamp" },
444
446
  { path: "draftPosts.richContent.metadata.updatedTimestamp" },
@@ -751,6 +753,7 @@ var TRANSFORM_PATHS_4 = [
751
753
  { path: "results.item.scheduledPublishDate" },
752
754
  { path: "results.item.firstPublishedDate" },
753
755
  { path: "results.item.createdDate" },
756
+ { path: "results.item.expirationDate" },
754
757
  { path: "results.item.heroImage.urlExpirationDate" },
755
758
  { path: "results.item.richContent.metadata.createdTimestamp" },
756
759
  { path: "results.item.richContent.metadata.updatedTimestamp" },
@@ -1078,6 +1081,7 @@ var TRANSFORM_PATHS_6 = [
1078
1081
  { path: "draftPosts.draftPost.scheduledPublishDate" },
1079
1082
  { path: "draftPosts.draftPost.firstPublishedDate" },
1080
1083
  { path: "draftPosts.draftPost.createdDate" },
1084
+ { path: "draftPosts.draftPost.expirationDate" },
1081
1085
  { path: "draftPosts.draftPost.heroImage.urlExpirationDate" },
1082
1086
  { path: "draftPosts.draftPost.richContent.metadata.createdTimestamp" },
1083
1087
  { path: "draftPosts.draftPost.richContent.metadata.updatedTimestamp" },
@@ -1423,6 +1427,7 @@ var TRANSFORM_PATHS_10 = [
1423
1427
  { path: "draftPost.scheduledPublishDate" },
1424
1428
  { path: "draftPost.firstPublishedDate" },
1425
1429
  { path: "draftPost.createdDate" },
1430
+ { path: "draftPost.expirationDate" },
1426
1431
  { path: "draftPost.heroImage.urlExpirationDate" },
1427
1432
  { path: "draftPost.richContent.metadata.createdTimestamp" },
1428
1433
  { path: "draftPost.richContent.metadata.updatedTimestamp" },
@@ -2840,6 +2845,19 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
2840
2845
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
2841
2846
  return ModerationStatusStatus2;
2842
2847
  })(ModerationStatusStatus || {});
2848
+ var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
2849
+ TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
2850
+ TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
2851
+ return TotalDraftPostsGroupingField2;
2852
+ })(TotalDraftPostsGroupingField || {});
2853
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2854
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2855
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2856
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
2857
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2858
+ WebhookIdentityType2["APP"] = "APP";
2859
+ return WebhookIdentityType2;
2860
+ })(WebhookIdentityType || {});
2843
2861
  var Type = /* @__PURE__ */ ((Type2) => {
2844
2862
  Type2["UNKNOWN"] = "UNKNOWN";
2845
2863
  Type2["MANUAL"] = "MANUAL";
@@ -2879,19 +2897,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2879
2897
  SortOrder2["DESC"] = "DESC";
2880
2898
  return SortOrder2;
2881
2899
  })(SortOrder || {});
2882
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2883
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2884
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2885
- WebhookIdentityType2["MEMBER"] = "MEMBER";
2886
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2887
- WebhookIdentityType2["APP"] = "APP";
2888
- return WebhookIdentityType2;
2889
- })(WebhookIdentityType || {});
2890
- var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
2891
- TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
2892
- TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
2893
- return TotalDraftPostsGroupingField2;
2894
- })(TotalDraftPostsGroupingField || {});
2895
2900
 
2896
2901
  // src/blog-v3-draft-draft-posts.meta.ts
2897
2902
  function createDraftPost2() {