@wix/auto_sdk_blog_draft-posts 1.0.92 → 1.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +13 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +288 -273
- package/build/cjs/index.typings.js +13 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +290 -275
- package/build/cjs/meta.js +13 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +15 -15
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +13 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +288 -273
- package/build/es/index.typings.mjs +13 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +290 -275
- package/build/es/meta.mjs +13 -13
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +15 -15
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +13 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +317 -302
- package/build/internal/cjs/index.typings.js +13 -13
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +333 -318
- package/build/internal/cjs/meta.js +13 -13
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +15 -15
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +13 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +317 -302
- package/build/internal/es/index.typings.mjs +13 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +333 -318
- package/build/internal/es/meta.mjs +13 -13
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +15 -15
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3059,7 +3059,22 @@ interface Tag {
|
|
|
3059
3059
|
meta?: Record<string, any> | null;
|
|
3060
3060
|
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
3061
3061
|
children?: string;
|
|
3062
|
-
/**
|
|
3062
|
+
/**
|
|
3063
|
+
* Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
|
|
3064
|
+
* i.e. an entry from the site's Advanced/Custom Tags list.
|
|
3065
|
+
*
|
|
3066
|
+
* This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
|
|
3067
|
+
* (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
|
|
3068
|
+
* default/pattern — standard tags always resolve with `custom: false`, even when their content comes
|
|
3069
|
+
* from a page's manually saved SEO title/description override. Don't use this field to verify whether
|
|
3070
|
+
* a live page reflects a manual per-page SEO edit.
|
|
3071
|
+
*
|
|
3072
|
+
* Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
|
|
3073
|
+
* only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
|
|
3074
|
+
* or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
|
|
3075
|
+
* response entirely — there, `false` means this API could not tell, not that no custom tag exists.
|
|
3076
|
+
* Pass `seoData` explicitly to resolve against a known set of tags.
|
|
3077
|
+
*/
|
|
3063
3078
|
custom?: boolean;
|
|
3064
3079
|
/** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
|
|
3065
3080
|
disabled?: boolean;
|
|
@@ -3303,10 +3318,6 @@ interface DraftPostTranslation {
|
|
|
3303
3318
|
/** Post URL. */
|
|
3304
3319
|
url?: PageUrl;
|
|
3305
3320
|
}
|
|
3306
|
-
interface InitialDraftPostsCopied {
|
|
3307
|
-
/** Number of draft posts copied. */
|
|
3308
|
-
count?: number;
|
|
3309
|
-
}
|
|
3310
3321
|
interface DraftCategoriesUpdated {
|
|
3311
3322
|
/**
|
|
3312
3323
|
* Draft post ID.
|
|
@@ -3345,6 +3356,244 @@ interface DraftTagsUpdated {
|
|
|
3345
3356
|
*/
|
|
3346
3357
|
previousTags?: string[];
|
|
3347
3358
|
}
|
|
3359
|
+
interface GetDraftPostTotalsRequest {
|
|
3360
|
+
/**
|
|
3361
|
+
* Group results by fields (defaults to grouping by status).
|
|
3362
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3363
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3364
|
+
* @maxSize 10
|
|
3365
|
+
*/
|
|
3366
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3367
|
+
/**
|
|
3368
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3369
|
+
* @format LANGUAGE_TAG
|
|
3370
|
+
*/
|
|
3371
|
+
language?: string | null;
|
|
3372
|
+
}
|
|
3373
|
+
declare enum TotalDraftPostsGroupingField {
|
|
3374
|
+
/** Groups results by status. */
|
|
3375
|
+
STATUS = "STATUS",
|
|
3376
|
+
/** Groups results by language. */
|
|
3377
|
+
LANGUAGE = "LANGUAGE"
|
|
3378
|
+
}
|
|
3379
|
+
/** @enumType */
|
|
3380
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3381
|
+
interface GetDraftPostTotalsResponse {
|
|
3382
|
+
/** Draft post totals. */
|
|
3383
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
3384
|
+
}
|
|
3385
|
+
interface TotalDraftPosts {
|
|
3386
|
+
/** Draft post totals in that group. */
|
|
3387
|
+
total?: number;
|
|
3388
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3389
|
+
status?: StatusWithLiterals;
|
|
3390
|
+
/**
|
|
3391
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3392
|
+
* @format LANGUAGE_TAG
|
|
3393
|
+
*/
|
|
3394
|
+
language?: string | null;
|
|
3395
|
+
}
|
|
3396
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3397
|
+
createdEvent?: EntityCreatedEvent;
|
|
3398
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3399
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3400
|
+
actionEvent?: ActionEvent;
|
|
3401
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3402
|
+
id?: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3405
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3406
|
+
*/
|
|
3407
|
+
entityFqdn?: string;
|
|
3408
|
+
/**
|
|
3409
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3410
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3411
|
+
*/
|
|
3412
|
+
slug?: string;
|
|
3413
|
+
/** ID of the entity associated with the event. */
|
|
3414
|
+
entityId?: string;
|
|
3415
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3416
|
+
eventTime?: Date | null;
|
|
3417
|
+
/**
|
|
3418
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3419
|
+
* (for example, GDPR).
|
|
3420
|
+
*/
|
|
3421
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3422
|
+
/** If present, indicates the action that triggered the event. */
|
|
3423
|
+
originatedFrom?: string | null;
|
|
3424
|
+
/**
|
|
3425
|
+
* 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.
|
|
3426
|
+
* 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.
|
|
3427
|
+
*/
|
|
3428
|
+
entityEventSequence?: string | null;
|
|
3429
|
+
}
|
|
3430
|
+
/** @oneof */
|
|
3431
|
+
interface DomainEventBodyOneOf {
|
|
3432
|
+
createdEvent?: EntityCreatedEvent;
|
|
3433
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3434
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3435
|
+
actionEvent?: ActionEvent;
|
|
3436
|
+
}
|
|
3437
|
+
interface EntityCreatedEvent {
|
|
3438
|
+
entityAsJson?: string;
|
|
3439
|
+
/**
|
|
3440
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
3441
|
+
* @internal
|
|
3442
|
+
*/
|
|
3443
|
+
triggeredByUndelete?: boolean | null;
|
|
3444
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3445
|
+
restoreInfo?: RestoreInfo;
|
|
3446
|
+
/**
|
|
3447
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
3448
|
+
* @internal
|
|
3449
|
+
*/
|
|
3450
|
+
additionalMetadataAsJson?: string | null;
|
|
3451
|
+
}
|
|
3452
|
+
interface RestoreInfo {
|
|
3453
|
+
deletedDate?: Date | null;
|
|
3454
|
+
}
|
|
3455
|
+
interface EntityUpdatedEvent {
|
|
3456
|
+
/**
|
|
3457
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3458
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3459
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3460
|
+
*/
|
|
3461
|
+
currentEntityAsJson?: string;
|
|
3462
|
+
/**
|
|
3463
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
3464
|
+
* wont populate it / have any reference to it in the API.
|
|
3465
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
3466
|
+
* the developer should send only the new (current) entity.
|
|
3467
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
3468
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
3469
|
+
* @internal
|
|
3470
|
+
* @deprecated
|
|
3471
|
+
*/
|
|
3472
|
+
previousEntityAsJson?: string | null;
|
|
3473
|
+
/**
|
|
3474
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
3475
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
3476
|
+
* @internal
|
|
3477
|
+
*/
|
|
3478
|
+
modifiedFields?: Record<string, any>;
|
|
3479
|
+
/**
|
|
3480
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
3481
|
+
* @internal
|
|
3482
|
+
*/
|
|
3483
|
+
additionalMetadataAsJson?: string | null;
|
|
3484
|
+
}
|
|
3485
|
+
interface EntityDeletedEvent {
|
|
3486
|
+
/**
|
|
3487
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
3488
|
+
* @internal
|
|
3489
|
+
*/
|
|
3490
|
+
movedToTrash?: boolean | null;
|
|
3491
|
+
/** Entity that was deleted. */
|
|
3492
|
+
deletedEntityAsJson?: string | null;
|
|
3493
|
+
/**
|
|
3494
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
3495
|
+
* @internal
|
|
3496
|
+
*/
|
|
3497
|
+
additionalMetadataAsJson?: string | null;
|
|
3498
|
+
}
|
|
3499
|
+
interface ActionEvent {
|
|
3500
|
+
bodyAsJson?: string;
|
|
3501
|
+
}
|
|
3502
|
+
interface MessageEnvelope {
|
|
3503
|
+
/**
|
|
3504
|
+
* App instance ID.
|
|
3505
|
+
* @format GUID
|
|
3506
|
+
*/
|
|
3507
|
+
instanceId?: string | null;
|
|
3508
|
+
/**
|
|
3509
|
+
* Event type.
|
|
3510
|
+
* @maxLength 150
|
|
3511
|
+
*/
|
|
3512
|
+
eventType?: string;
|
|
3513
|
+
/** The identification type and identity data. */
|
|
3514
|
+
identity?: IdentificationData;
|
|
3515
|
+
/** Stringify payload. */
|
|
3516
|
+
data?: string;
|
|
3517
|
+
/** Details related to the account */
|
|
3518
|
+
accountInfo?: AccountInfo;
|
|
3519
|
+
}
|
|
3520
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3521
|
+
/**
|
|
3522
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3523
|
+
* @format GUID
|
|
3524
|
+
*/
|
|
3525
|
+
anonymousVisitorId?: string;
|
|
3526
|
+
/**
|
|
3527
|
+
* ID of a site visitor that has logged in to the site.
|
|
3528
|
+
* @format GUID
|
|
3529
|
+
*/
|
|
3530
|
+
memberId?: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3533
|
+
* @format GUID
|
|
3534
|
+
*/
|
|
3535
|
+
wixUserId?: string;
|
|
3536
|
+
/**
|
|
3537
|
+
* ID of an app.
|
|
3538
|
+
* @format GUID
|
|
3539
|
+
*/
|
|
3540
|
+
appId?: string;
|
|
3541
|
+
/** @readonly */
|
|
3542
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3543
|
+
}
|
|
3544
|
+
/** @oneof */
|
|
3545
|
+
interface IdentificationDataIdOneOf {
|
|
3546
|
+
/**
|
|
3547
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3548
|
+
* @format GUID
|
|
3549
|
+
*/
|
|
3550
|
+
anonymousVisitorId?: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* ID of a site visitor that has logged in to the site.
|
|
3553
|
+
* @format GUID
|
|
3554
|
+
*/
|
|
3555
|
+
memberId?: string;
|
|
3556
|
+
/**
|
|
3557
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3558
|
+
* @format GUID
|
|
3559
|
+
*/
|
|
3560
|
+
wixUserId?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* ID of an app.
|
|
3563
|
+
* @format GUID
|
|
3564
|
+
*/
|
|
3565
|
+
appId?: string;
|
|
3566
|
+
}
|
|
3567
|
+
declare enum WebhookIdentityType {
|
|
3568
|
+
UNKNOWN = "UNKNOWN",
|
|
3569
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3570
|
+
MEMBER = "MEMBER",
|
|
3571
|
+
WIX_USER = "WIX_USER",
|
|
3572
|
+
APP = "APP"
|
|
3573
|
+
}
|
|
3574
|
+
/** @enumType */
|
|
3575
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3576
|
+
interface AccountInfo {
|
|
3577
|
+
/**
|
|
3578
|
+
* ID of the Wix account associated with the event.
|
|
3579
|
+
* @format GUID
|
|
3580
|
+
*/
|
|
3581
|
+
accountId?: string | null;
|
|
3582
|
+
/**
|
|
3583
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3584
|
+
* @format GUID
|
|
3585
|
+
*/
|
|
3586
|
+
parentAccountId?: string | null;
|
|
3587
|
+
/**
|
|
3588
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3589
|
+
* @format GUID
|
|
3590
|
+
*/
|
|
3591
|
+
siteId?: string | null;
|
|
3592
|
+
}
|
|
3593
|
+
interface InitialDraftPostsCopied {
|
|
3594
|
+
/** Number of draft posts copied. */
|
|
3595
|
+
count?: number;
|
|
3596
|
+
}
|
|
3348
3597
|
interface CreateDraftPostRequest {
|
|
3349
3598
|
/** Draft post to create. */
|
|
3350
3599
|
draftPost: DraftPost;
|
|
@@ -3994,319 +4243,7 @@ interface DraftPostCount {
|
|
|
3994
4243
|
/** Number of posts. */
|
|
3995
4244
|
postCount?: number;
|
|
3996
4245
|
}
|
|
3997
|
-
interface
|
|
3998
|
-
createdEvent?: EntityCreatedEvent;
|
|
3999
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4000
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4001
|
-
actionEvent?: ActionEvent;
|
|
4002
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
4003
|
-
id?: string;
|
|
4004
|
-
/**
|
|
4005
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
4006
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4007
|
-
*/
|
|
4008
|
-
entityFqdn?: string;
|
|
4009
|
-
/**
|
|
4010
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
4011
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4012
|
-
*/
|
|
4013
|
-
slug?: string;
|
|
4014
|
-
/** ID of the entity associated with the event. */
|
|
4015
|
-
entityId?: string;
|
|
4016
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
4017
|
-
eventTime?: Date | null;
|
|
4018
|
-
/**
|
|
4019
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
4020
|
-
* (for example, GDPR).
|
|
4021
|
-
*/
|
|
4022
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
4023
|
-
/** If present, indicates the action that triggered the event. */
|
|
4024
|
-
originatedFrom?: string | null;
|
|
4025
|
-
/**
|
|
4026
|
-
* 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.
|
|
4027
|
-
* 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.
|
|
4028
|
-
*/
|
|
4029
|
-
entityEventSequence?: string | null;
|
|
4030
|
-
}
|
|
4031
|
-
/** @oneof */
|
|
4032
|
-
interface DomainEventBodyOneOf {
|
|
4033
|
-
createdEvent?: EntityCreatedEvent;
|
|
4034
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4035
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4036
|
-
actionEvent?: ActionEvent;
|
|
4037
|
-
}
|
|
4038
|
-
interface EntityCreatedEvent {
|
|
4039
|
-
entityAsJson?: string;
|
|
4040
|
-
/**
|
|
4041
|
-
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
4042
|
-
* @internal
|
|
4043
|
-
*/
|
|
4044
|
-
triggeredByUndelete?: boolean | null;
|
|
4045
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
4046
|
-
restoreInfo?: RestoreInfo;
|
|
4047
|
-
/**
|
|
4048
|
-
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
4049
|
-
* @internal
|
|
4050
|
-
*/
|
|
4051
|
-
additionalMetadataAsJson?: string | null;
|
|
4052
|
-
}
|
|
4053
|
-
interface RestoreInfo {
|
|
4054
|
-
deletedDate?: Date | null;
|
|
4055
|
-
}
|
|
4056
|
-
interface EntityUpdatedEvent {
|
|
4057
|
-
/**
|
|
4058
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4059
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4060
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4061
|
-
*/
|
|
4062
|
-
currentEntityAsJson?: string;
|
|
4063
|
-
/**
|
|
4064
|
-
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
4065
|
-
* wont populate it / have any reference to it in the API.
|
|
4066
|
-
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
4067
|
-
* the developer should send only the new (current) entity.
|
|
4068
|
-
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
4069
|
-
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
4070
|
-
* @internal
|
|
4071
|
-
* @deprecated
|
|
4072
|
-
*/
|
|
4073
|
-
previousEntityAsJson?: string | null;
|
|
4074
|
-
/**
|
|
4075
|
-
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
4076
|
-
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
4077
|
-
* @internal
|
|
4078
|
-
*/
|
|
4079
|
-
modifiedFields?: Record<string, any>;
|
|
4080
|
-
/**
|
|
4081
|
-
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
4082
|
-
* @internal
|
|
4083
|
-
*/
|
|
4084
|
-
additionalMetadataAsJson?: string | null;
|
|
4085
|
-
}
|
|
4086
|
-
interface EntityDeletedEvent {
|
|
4087
|
-
/**
|
|
4088
|
-
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
4089
|
-
* @internal
|
|
4090
|
-
*/
|
|
4091
|
-
movedToTrash?: boolean | null;
|
|
4092
|
-
/** Entity that was deleted. */
|
|
4093
|
-
deletedEntityAsJson?: string | null;
|
|
4094
|
-
/**
|
|
4095
|
-
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
4096
|
-
* @internal
|
|
4097
|
-
*/
|
|
4098
|
-
additionalMetadataAsJson?: string | null;
|
|
4099
|
-
}
|
|
4100
|
-
interface ActionEvent {
|
|
4101
|
-
bodyAsJson?: string;
|
|
4102
|
-
}
|
|
4103
|
-
interface MessageEnvelope {
|
|
4104
|
-
/**
|
|
4105
|
-
* App instance ID.
|
|
4106
|
-
* @format GUID
|
|
4107
|
-
*/
|
|
4108
|
-
instanceId?: string | null;
|
|
4109
|
-
/**
|
|
4110
|
-
* Event type.
|
|
4111
|
-
* @maxLength 150
|
|
4112
|
-
*/
|
|
4113
|
-
eventType?: string;
|
|
4114
|
-
/** The identification type and identity data. */
|
|
4115
|
-
identity?: IdentificationData;
|
|
4116
|
-
/** Stringify payload. */
|
|
4117
|
-
data?: string;
|
|
4118
|
-
/** Details related to the account */
|
|
4119
|
-
accountInfo?: AccountInfo;
|
|
4120
|
-
}
|
|
4121
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4122
|
-
/**
|
|
4123
|
-
* ID of a site visitor that has not logged in to the site.
|
|
4124
|
-
* @format GUID
|
|
4125
|
-
*/
|
|
4126
|
-
anonymousVisitorId?: string;
|
|
4127
|
-
/**
|
|
4128
|
-
* ID of a site visitor that has logged in to the site.
|
|
4129
|
-
* @format GUID
|
|
4130
|
-
*/
|
|
4131
|
-
memberId?: string;
|
|
4132
|
-
/**
|
|
4133
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
4134
|
-
* @format GUID
|
|
4135
|
-
*/
|
|
4136
|
-
wixUserId?: string;
|
|
4137
|
-
/**
|
|
4138
|
-
* ID of an app.
|
|
4139
|
-
* @format GUID
|
|
4140
|
-
*/
|
|
4141
|
-
appId?: string;
|
|
4142
|
-
/** @readonly */
|
|
4143
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4144
|
-
}
|
|
4145
|
-
/** @oneof */
|
|
4146
|
-
interface IdentificationDataIdOneOf {
|
|
4147
|
-
/**
|
|
4148
|
-
* ID of a site visitor that has not logged in to the site.
|
|
4149
|
-
* @format GUID
|
|
4150
|
-
*/
|
|
4151
|
-
anonymousVisitorId?: string;
|
|
4152
|
-
/**
|
|
4153
|
-
* ID of a site visitor that has logged in to the site.
|
|
4154
|
-
* @format GUID
|
|
4155
|
-
*/
|
|
4156
|
-
memberId?: string;
|
|
4157
|
-
/**
|
|
4158
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
4159
|
-
* @format GUID
|
|
4160
|
-
*/
|
|
4161
|
-
wixUserId?: string;
|
|
4162
|
-
/**
|
|
4163
|
-
* ID of an app.
|
|
4164
|
-
* @format GUID
|
|
4165
|
-
*/
|
|
4166
|
-
appId?: string;
|
|
4167
|
-
}
|
|
4168
|
-
declare enum WebhookIdentityType {
|
|
4169
|
-
UNKNOWN = "UNKNOWN",
|
|
4170
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4171
|
-
MEMBER = "MEMBER",
|
|
4172
|
-
WIX_USER = "WIX_USER",
|
|
4173
|
-
APP = "APP"
|
|
4174
|
-
}
|
|
4175
|
-
/** @enumType */
|
|
4176
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4177
|
-
interface AccountInfo {
|
|
4178
|
-
/**
|
|
4179
|
-
* ID of the Wix account associated with the event.
|
|
4180
|
-
* @format GUID
|
|
4181
|
-
*/
|
|
4182
|
-
accountId?: string | null;
|
|
4183
|
-
/**
|
|
4184
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4185
|
-
* @format GUID
|
|
4186
|
-
*/
|
|
4187
|
-
parentAccountId?: string | null;
|
|
4188
|
-
/**
|
|
4189
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4190
|
-
* @format GUID
|
|
4191
|
-
*/
|
|
4192
|
-
siteId?: string | null;
|
|
4193
|
-
}
|
|
4194
|
-
interface GetDraftPostTotalsRequest {
|
|
4195
|
-
/**
|
|
4196
|
-
* Group results by fields (defaults to grouping by status).
|
|
4197
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4198
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4199
|
-
* @maxSize 10
|
|
4200
|
-
*/
|
|
4201
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4202
|
-
/**
|
|
4203
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4204
|
-
* @format LANGUAGE_TAG
|
|
4205
|
-
*/
|
|
4206
|
-
language?: string | null;
|
|
4207
|
-
}
|
|
4208
|
-
declare enum TotalDraftPostsGroupingField {
|
|
4209
|
-
/** Groups results by status. */
|
|
4210
|
-
STATUS = "STATUS",
|
|
4211
|
-
/** Groups results by language. */
|
|
4212
|
-
LANGUAGE = "LANGUAGE"
|
|
4213
|
-
}
|
|
4214
|
-
/** @enumType */
|
|
4215
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4216
|
-
interface GetDraftPostTotalsResponse {
|
|
4217
|
-
/** Draft post totals. */
|
|
4218
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
4219
|
-
}
|
|
4220
|
-
interface TotalDraftPosts {
|
|
4221
|
-
/** Draft post totals in that group. */
|
|
4222
|
-
total?: number;
|
|
4223
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4224
|
-
status?: StatusWithLiterals;
|
|
4225
|
-
/**
|
|
4226
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4227
|
-
* @format LANGUAGE_TAG
|
|
4228
|
-
*/
|
|
4229
|
-
language?: string | null;
|
|
4230
|
-
}
|
|
4231
|
-
interface TranslateDraftRequest {
|
|
4232
|
-
/**
|
|
4233
|
-
* Source post or draft ID
|
|
4234
|
-
* @format GUID
|
|
4235
|
-
*/
|
|
4236
|
-
postId?: string;
|
|
4237
|
-
/**
|
|
4238
|
-
* Translation language
|
|
4239
|
-
* @format LANGUAGE_TAG
|
|
4240
|
-
*/
|
|
4241
|
-
language?: string;
|
|
4242
|
-
/**
|
|
4243
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4244
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4245
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4246
|
-
* @maxSize 10
|
|
4247
|
-
*/
|
|
4248
|
-
fieldsets?: FieldWithLiterals[];
|
|
4249
|
-
/**
|
|
4250
|
-
* Performs automatic translation of the title and the content of the draft post to the target language.
|
|
4251
|
-
* @internal
|
|
4252
|
-
*/
|
|
4253
|
-
useAutoTranslation?: boolean;
|
|
4254
|
-
}
|
|
4255
|
-
interface TranslateDraftResponse {
|
|
4256
|
-
/** Draft post. */
|
|
4257
|
-
draftPost?: DraftPost;
|
|
4258
|
-
}
|
|
4259
|
-
interface IsDraftPostAutoTranslatableRequest {
|
|
4260
|
-
/**
|
|
4261
|
-
* Source post or draft ID.
|
|
4262
|
-
* @format GUID
|
|
4263
|
-
*/
|
|
4264
|
-
draftPostId?: string;
|
|
4265
|
-
}
|
|
4266
|
-
interface IsDraftPostAutoTranslatableResponse {
|
|
4267
|
-
/**
|
|
4268
|
-
* Source draft post ID.
|
|
4269
|
-
* @format GUID
|
|
4270
|
-
*/
|
|
4271
|
-
draftPostId?: string;
|
|
4272
|
-
/** Indicates if enough machine translation credits are available for the draft post translation. */
|
|
4273
|
-
translatable?: boolean;
|
|
4274
|
-
/** Draft post title word count. */
|
|
4275
|
-
titleWordCount?: number;
|
|
4276
|
-
/** Draft post content word count. */
|
|
4277
|
-
contentWordCount?: number;
|
|
4278
|
-
/** Word credits available for auto translation. */
|
|
4279
|
-
availableAutoTranslateWords?: number;
|
|
4280
|
-
/** Word credits available after auto translation would be done. */
|
|
4281
|
-
availableAutoTranslateWordsAfter?: number;
|
|
4282
|
-
/** Content text character count. */
|
|
4283
|
-
contentTextCharacterCount?: number;
|
|
4284
|
-
}
|
|
4285
|
-
interface UpdateDraftPostLanguageRequest {
|
|
4286
|
-
/**
|
|
4287
|
-
* Source draft post ID
|
|
4288
|
-
* @format GUID
|
|
4289
|
-
*/
|
|
4290
|
-
postId?: string;
|
|
4291
|
-
/**
|
|
4292
|
-
* New language to replace to
|
|
4293
|
-
* @minLength 2
|
|
4294
|
-
* @format LANGUAGE_TAG
|
|
4295
|
-
*/
|
|
4296
|
-
language?: string;
|
|
4297
|
-
/**
|
|
4298
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4299
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4300
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4301
|
-
* @maxSize 10
|
|
4302
|
-
*/
|
|
4303
|
-
fieldsets?: FieldWithLiterals[];
|
|
4304
|
-
}
|
|
4305
|
-
interface UpdateDraftPostLanguageResponse {
|
|
4306
|
-
/** Draft post */
|
|
4307
|
-
draftPost?: DraftPost;
|
|
4308
|
-
}
|
|
4309
|
-
interface BulkRevertToUnpublishedRequest {
|
|
4246
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4310
4247
|
/**
|
|
4311
4248
|
* Source post IDs.
|
|
4312
4249
|
* @minSize 1
|
|
@@ -4453,6 +4390,84 @@ interface MarkPostAsInModerationResponse {
|
|
|
4453
4390
|
/** Updated post draft. */
|
|
4454
4391
|
draftPost?: DraftPost;
|
|
4455
4392
|
}
|
|
4393
|
+
interface TranslateDraftRequest {
|
|
4394
|
+
/**
|
|
4395
|
+
* Source post or draft ID
|
|
4396
|
+
* @format GUID
|
|
4397
|
+
*/
|
|
4398
|
+
postId?: string;
|
|
4399
|
+
/**
|
|
4400
|
+
* Translation language
|
|
4401
|
+
* @format LANGUAGE_TAG
|
|
4402
|
+
*/
|
|
4403
|
+
language?: string;
|
|
4404
|
+
/**
|
|
4405
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4406
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4407
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4408
|
+
* @maxSize 10
|
|
4409
|
+
*/
|
|
4410
|
+
fieldsets?: FieldWithLiterals[];
|
|
4411
|
+
/**
|
|
4412
|
+
* Performs automatic translation of the title and the content of the draft post to the target language.
|
|
4413
|
+
* @internal
|
|
4414
|
+
*/
|
|
4415
|
+
useAutoTranslation?: boolean;
|
|
4416
|
+
}
|
|
4417
|
+
interface TranslateDraftResponse {
|
|
4418
|
+
/** Draft post. */
|
|
4419
|
+
draftPost?: DraftPost;
|
|
4420
|
+
}
|
|
4421
|
+
interface IsDraftPostAutoTranslatableRequest {
|
|
4422
|
+
/**
|
|
4423
|
+
* Source post or draft ID.
|
|
4424
|
+
* @format GUID
|
|
4425
|
+
*/
|
|
4426
|
+
draftPostId?: string;
|
|
4427
|
+
}
|
|
4428
|
+
interface IsDraftPostAutoTranslatableResponse {
|
|
4429
|
+
/**
|
|
4430
|
+
* Source draft post ID.
|
|
4431
|
+
* @format GUID
|
|
4432
|
+
*/
|
|
4433
|
+
draftPostId?: string;
|
|
4434
|
+
/** Indicates if enough machine translation credits are available for the draft post translation. */
|
|
4435
|
+
translatable?: boolean;
|
|
4436
|
+
/** Draft post title word count. */
|
|
4437
|
+
titleWordCount?: number;
|
|
4438
|
+
/** Draft post content word count. */
|
|
4439
|
+
contentWordCount?: number;
|
|
4440
|
+
/** Word credits available for auto translation. */
|
|
4441
|
+
availableAutoTranslateWords?: number;
|
|
4442
|
+
/** Word credits available after auto translation would be done. */
|
|
4443
|
+
availableAutoTranslateWordsAfter?: number;
|
|
4444
|
+
/** Content text character count. */
|
|
4445
|
+
contentTextCharacterCount?: number;
|
|
4446
|
+
}
|
|
4447
|
+
interface UpdateDraftPostLanguageRequest {
|
|
4448
|
+
/**
|
|
4449
|
+
* Source draft post ID
|
|
4450
|
+
* @format GUID
|
|
4451
|
+
*/
|
|
4452
|
+
postId?: string;
|
|
4453
|
+
/**
|
|
4454
|
+
* New language to replace to
|
|
4455
|
+
* @minLength 2
|
|
4456
|
+
* @format LANGUAGE_TAG
|
|
4457
|
+
*/
|
|
4458
|
+
language?: string;
|
|
4459
|
+
/**
|
|
4460
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4461
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4462
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4463
|
+
* @maxSize 10
|
|
4464
|
+
*/
|
|
4465
|
+
fieldsets?: FieldWithLiterals[];
|
|
4466
|
+
}
|
|
4467
|
+
interface UpdateDraftPostLanguageResponse {
|
|
4468
|
+
/** Draft post */
|
|
4469
|
+
draftPost?: DraftPost;
|
|
4470
|
+
}
|
|
4456
4471
|
|
|
4457
4472
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4458
4473
|
getUrl: (context: any) => string;
|