@wix/auto_sdk_media-collections_media-collections 1.0.5 → 1.0.6
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/{collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.mts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.mts} +152 -152
- package/build/{collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.ts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.ts} +152 -152
- package/build/index.d.mts +2 -2
- package/build/index.d.ts +2 -2
- package/build/index.js +19 -13
- package/build/index.js.map +1 -1
- package/build/index.mjs +19 -13
- package/build/index.mjs.map +1 -1
- package/build/internal/{collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.mts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.mts} +152 -152
- package/build/internal/{collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.ts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.ts} +152 -152
- package/build/internal/index.d.mts +2 -2
- package/build/internal/index.d.ts +2 -2
- package/build/internal/index.js +19 -13
- package/build/internal/index.js.map +1 -1
- package/build/internal/index.mjs +19 -13
- package/build/internal/index.mjs.map +1 -1
- package/build/internal/meta.d.mts +1 -1
- package/build/internal/meta.d.ts +1 -1
- package/build/internal/meta.js +6 -0
- package/build/internal/meta.js.map +1 -1
- package/build/internal/meta.mjs +6 -0
- package/build/internal/meta.mjs.map +1 -1
- package/build/meta.d.mts +1 -1
- package/build/meta.d.ts +1 -1
- package/build/meta.js +6 -0
- package/build/meta.js.map +1 -1
- package/build/meta.mjs +6 -0
- package/build/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -435,6 +435,157 @@ declare enum PrivacySettings {
|
|
|
435
435
|
}
|
|
436
436
|
/** @enumType */
|
|
437
437
|
type PrivacySettingsWithLiterals = PrivacySettings | 'Undefined' | 'Public' | 'Secret';
|
|
438
|
+
interface PermanentSiteDeletedResponse {
|
|
439
|
+
/** @format GUID */
|
|
440
|
+
requestId?: string;
|
|
441
|
+
uniqueServiceIdentifier?: string;
|
|
442
|
+
status?: StatusWithLiterals;
|
|
443
|
+
/** @readonly */
|
|
444
|
+
_createdDate?: Date | null;
|
|
445
|
+
}
|
|
446
|
+
declare enum Status {
|
|
447
|
+
UNKNOWN = "UNKNOWN",
|
|
448
|
+
HANDLED = "HANDLED",
|
|
449
|
+
NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
|
|
450
|
+
}
|
|
451
|
+
/** @enumType */
|
|
452
|
+
type StatusWithLiterals = Status | 'UNKNOWN' | 'HANDLED' | 'NOTHING_TO_HANDLE';
|
|
453
|
+
interface Empty {
|
|
454
|
+
}
|
|
455
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
456
|
+
createdEvent?: EntityCreatedEvent;
|
|
457
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
458
|
+
deletedEvent?: EntityDeletedEvent;
|
|
459
|
+
actionEvent?: ActionEvent;
|
|
460
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
461
|
+
_id?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
464
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
465
|
+
*/
|
|
466
|
+
entityFqdn?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
469
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
470
|
+
*/
|
|
471
|
+
slug?: string;
|
|
472
|
+
/** ID of the entity associated with the event. */
|
|
473
|
+
entityId?: string;
|
|
474
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
475
|
+
eventTime?: Date | null;
|
|
476
|
+
/**
|
|
477
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
478
|
+
* (for example, GDPR).
|
|
479
|
+
*/
|
|
480
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
481
|
+
/** If present, indicates the action that triggered the event. */
|
|
482
|
+
originatedFrom?: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* 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.
|
|
485
|
+
* 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.
|
|
486
|
+
*/
|
|
487
|
+
entityEventSequence?: string | null;
|
|
488
|
+
}
|
|
489
|
+
/** @oneof */
|
|
490
|
+
interface DomainEventBodyOneOf {
|
|
491
|
+
createdEvent?: EntityCreatedEvent;
|
|
492
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
493
|
+
deletedEvent?: EntityDeletedEvent;
|
|
494
|
+
actionEvent?: ActionEvent;
|
|
495
|
+
}
|
|
496
|
+
interface EntityCreatedEvent {
|
|
497
|
+
entity?: string;
|
|
498
|
+
}
|
|
499
|
+
interface RestoreInfo {
|
|
500
|
+
deletedDate?: Date | null;
|
|
501
|
+
}
|
|
502
|
+
interface EntityUpdatedEvent {
|
|
503
|
+
/**
|
|
504
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
505
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
506
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
507
|
+
*/
|
|
508
|
+
currentEntity?: string;
|
|
509
|
+
}
|
|
510
|
+
interface EntityDeletedEvent {
|
|
511
|
+
/** Entity that was deleted. */
|
|
512
|
+
deletedEntity?: string | null;
|
|
513
|
+
}
|
|
514
|
+
interface ActionEvent {
|
|
515
|
+
body?: string;
|
|
516
|
+
}
|
|
517
|
+
interface MessageEnvelope {
|
|
518
|
+
/**
|
|
519
|
+
* App instance ID.
|
|
520
|
+
* @format GUID
|
|
521
|
+
*/
|
|
522
|
+
instanceId?: string | null;
|
|
523
|
+
/**
|
|
524
|
+
* Event type.
|
|
525
|
+
* @maxLength 150
|
|
526
|
+
*/
|
|
527
|
+
eventType?: string;
|
|
528
|
+
/** The identification type and identity data. */
|
|
529
|
+
identity?: IdentificationData;
|
|
530
|
+
/** Stringify payload. */
|
|
531
|
+
data?: string;
|
|
532
|
+
}
|
|
533
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
534
|
+
/**
|
|
535
|
+
* ID of a site visitor that has not logged in to the site.
|
|
536
|
+
* @format GUID
|
|
537
|
+
*/
|
|
538
|
+
anonymousVisitorId?: string;
|
|
539
|
+
/**
|
|
540
|
+
* ID of a site visitor that has logged in to the site.
|
|
541
|
+
* @format GUID
|
|
542
|
+
*/
|
|
543
|
+
memberId?: string;
|
|
544
|
+
/**
|
|
545
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
548
|
+
wixUserId?: string;
|
|
549
|
+
/**
|
|
550
|
+
* ID of an app.
|
|
551
|
+
* @format GUID
|
|
552
|
+
*/
|
|
553
|
+
appId?: string;
|
|
554
|
+
/** @readonly */
|
|
555
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
556
|
+
}
|
|
557
|
+
/** @oneof */
|
|
558
|
+
interface IdentificationDataIdOneOf {
|
|
559
|
+
/**
|
|
560
|
+
* ID of a site visitor that has not logged in to the site.
|
|
561
|
+
* @format GUID
|
|
562
|
+
*/
|
|
563
|
+
anonymousVisitorId?: string;
|
|
564
|
+
/**
|
|
565
|
+
* ID of a site visitor that has logged in to the site.
|
|
566
|
+
* @format GUID
|
|
567
|
+
*/
|
|
568
|
+
memberId?: string;
|
|
569
|
+
/**
|
|
570
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
571
|
+
* @format GUID
|
|
572
|
+
*/
|
|
573
|
+
wixUserId?: string;
|
|
574
|
+
/**
|
|
575
|
+
* ID of an app.
|
|
576
|
+
* @format GUID
|
|
577
|
+
*/
|
|
578
|
+
appId?: string;
|
|
579
|
+
}
|
|
580
|
+
declare enum WebhookIdentityType {
|
|
581
|
+
UNKNOWN = "UNKNOWN",
|
|
582
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
583
|
+
MEMBER = "MEMBER",
|
|
584
|
+
WIX_USER = "WIX_USER",
|
|
585
|
+
APP = "APP"
|
|
586
|
+
}
|
|
587
|
+
/** @enumType */
|
|
588
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
438
589
|
interface CollectionEvent extends CollectionEventEventTypeOneOf {
|
|
439
590
|
/** Collection created */
|
|
440
591
|
collectionCreated?: CollectionCreated;
|
|
@@ -561,70 +712,6 @@ interface MemberLeftCollection {
|
|
|
561
712
|
/** When the member left */
|
|
562
713
|
leftDate?: Date | null;
|
|
563
714
|
}
|
|
564
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
565
|
-
createdEvent?: EntityCreatedEvent;
|
|
566
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
567
|
-
deletedEvent?: EntityDeletedEvent;
|
|
568
|
-
actionEvent?: ActionEvent;
|
|
569
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
570
|
-
_id?: string;
|
|
571
|
-
/**
|
|
572
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
573
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
574
|
-
*/
|
|
575
|
-
entityFqdn?: string;
|
|
576
|
-
/**
|
|
577
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
578
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
579
|
-
*/
|
|
580
|
-
slug?: string;
|
|
581
|
-
/** ID of the entity associated with the event. */
|
|
582
|
-
entityId?: string;
|
|
583
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
584
|
-
eventTime?: Date | null;
|
|
585
|
-
/**
|
|
586
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
587
|
-
* (for example, GDPR).
|
|
588
|
-
*/
|
|
589
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
590
|
-
/** If present, indicates the action that triggered the event. */
|
|
591
|
-
originatedFrom?: string | null;
|
|
592
|
-
/**
|
|
593
|
-
* 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.
|
|
594
|
-
* 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.
|
|
595
|
-
*/
|
|
596
|
-
entityEventSequence?: string | null;
|
|
597
|
-
}
|
|
598
|
-
/** @oneof */
|
|
599
|
-
interface DomainEventBodyOneOf {
|
|
600
|
-
createdEvent?: EntityCreatedEvent;
|
|
601
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
602
|
-
deletedEvent?: EntityDeletedEvent;
|
|
603
|
-
actionEvent?: ActionEvent;
|
|
604
|
-
}
|
|
605
|
-
interface EntityCreatedEvent {
|
|
606
|
-
entity?: string;
|
|
607
|
-
}
|
|
608
|
-
interface RestoreInfo {
|
|
609
|
-
deletedDate?: Date | null;
|
|
610
|
-
}
|
|
611
|
-
interface EntityUpdatedEvent {
|
|
612
|
-
/**
|
|
613
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
614
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
615
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
616
|
-
*/
|
|
617
|
-
currentEntity?: string;
|
|
618
|
-
}
|
|
619
|
-
interface EntityDeletedEvent {
|
|
620
|
-
/** Entity that was deleted. */
|
|
621
|
-
deletedEntity?: string | null;
|
|
622
|
-
}
|
|
623
|
-
interface ActionEvent {
|
|
624
|
-
body?: string;
|
|
625
|
-
}
|
|
626
|
-
interface Empty {
|
|
627
|
-
}
|
|
628
715
|
interface GetMediaCollectionRequest {
|
|
629
716
|
/**
|
|
630
717
|
* Collection id
|
|
@@ -955,93 +1042,6 @@ interface ListAllItemsBelongToCollectionResponse {
|
|
|
955
1042
|
*/
|
|
956
1043
|
itemIds?: string[];
|
|
957
1044
|
}
|
|
958
|
-
interface MessageEnvelope {
|
|
959
|
-
/**
|
|
960
|
-
* App instance ID.
|
|
961
|
-
* @format GUID
|
|
962
|
-
*/
|
|
963
|
-
instanceId?: string | null;
|
|
964
|
-
/**
|
|
965
|
-
* Event type.
|
|
966
|
-
* @maxLength 150
|
|
967
|
-
*/
|
|
968
|
-
eventType?: string;
|
|
969
|
-
/** The identification type and identity data. */
|
|
970
|
-
identity?: IdentificationData;
|
|
971
|
-
/** Stringify payload. */
|
|
972
|
-
data?: string;
|
|
973
|
-
}
|
|
974
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
975
|
-
/**
|
|
976
|
-
* ID of a site visitor that has not logged in to the site.
|
|
977
|
-
* @format GUID
|
|
978
|
-
*/
|
|
979
|
-
anonymousVisitorId?: string;
|
|
980
|
-
/**
|
|
981
|
-
* ID of a site visitor that has logged in to the site.
|
|
982
|
-
* @format GUID
|
|
983
|
-
*/
|
|
984
|
-
memberId?: string;
|
|
985
|
-
/**
|
|
986
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
987
|
-
* @format GUID
|
|
988
|
-
*/
|
|
989
|
-
wixUserId?: string;
|
|
990
|
-
/**
|
|
991
|
-
* ID of an app.
|
|
992
|
-
* @format GUID
|
|
993
|
-
*/
|
|
994
|
-
appId?: string;
|
|
995
|
-
/** @readonly */
|
|
996
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
997
|
-
}
|
|
998
|
-
/** @oneof */
|
|
999
|
-
interface IdentificationDataIdOneOf {
|
|
1000
|
-
/**
|
|
1001
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1002
|
-
* @format GUID
|
|
1003
|
-
*/
|
|
1004
|
-
anonymousVisitorId?: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* ID of a site visitor that has logged in to the site.
|
|
1007
|
-
* @format GUID
|
|
1008
|
-
*/
|
|
1009
|
-
memberId?: string;
|
|
1010
|
-
/**
|
|
1011
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1012
|
-
* @format GUID
|
|
1013
|
-
*/
|
|
1014
|
-
wixUserId?: string;
|
|
1015
|
-
/**
|
|
1016
|
-
* ID of an app.
|
|
1017
|
-
* @format GUID
|
|
1018
|
-
*/
|
|
1019
|
-
appId?: string;
|
|
1020
|
-
}
|
|
1021
|
-
declare enum WebhookIdentityType {
|
|
1022
|
-
UNKNOWN = "UNKNOWN",
|
|
1023
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1024
|
-
MEMBER = "MEMBER",
|
|
1025
|
-
WIX_USER = "WIX_USER",
|
|
1026
|
-
APP = "APP"
|
|
1027
|
-
}
|
|
1028
|
-
/** @enumType */
|
|
1029
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1030
|
-
interface PermanentSiteDeletedResponse {
|
|
1031
|
-
/** @format GUID */
|
|
1032
|
-
requestId?: string;
|
|
1033
|
-
uniqueServiceIdentifier?: string;
|
|
1034
|
-
status?: StatusWithLiterals;
|
|
1035
|
-
/** @readonly */
|
|
1036
|
-
_createdDate?: Date | null;
|
|
1037
|
-
}
|
|
1038
|
-
declare enum Status {
|
|
1039
|
-
UNKNOWN = "UNKNOWN",
|
|
1040
|
-
HANDLED = "HANDLED",
|
|
1041
|
-
NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
|
|
1042
|
-
}
|
|
1043
|
-
/** @enumType */
|
|
1044
|
-
type StatusWithLiterals = Status | 'UNKNOWN' | 'HANDLED' | 'NOTHING_TO_HANDLE';
|
|
1045
1045
|
interface BaseEventMetadata {
|
|
1046
1046
|
/**
|
|
1047
1047
|
* App instance ID.
|
|
@@ -1209,4 +1209,4 @@ interface RemoveItemsOptions {
|
|
|
1209
1209
|
itemsIds?: string[];
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
export { type
|
|
1212
|
+
export { type DomainEventBodyOneOf as $, type AddItemsOptions as A, type EmailLink as B, type CreateOptions as C, DataType as D, type ExternalLink as E, type PhoneLink as F, type GetOptions as G, type AddressLink as H, type WhatsAppLink as I, type TpaPageLink as J, type PhotoMetadata as K, type ListCollectionsForItemOptions as L, type MediaCollection as M, type Point as N, type Thumbnail as O, type PartiallyUpdateMediaCollection as P, type Resolution as Q, type RemoveItemsOptions as R, Source as S, Type as T, type UnsharpMasking as U, type VideoMetadata as V, WebhookIdentityType as W, type TextMetadata as X, type PermanentSiteDeletedResponse as Y, type Empty as Z, type DomainEvent as _, type ListCollectionsForItemResponse as a, type EntityCreatedEvent as a0, type RestoreInfo as a1, type EntityUpdatedEvent as a2, type EntityDeletedEvent as a3, type ActionEvent as a4, type MessageEnvelope as a5, type IdentificationData as a6, type IdentificationDataIdOneOf as a7, type CollectionEvent as a8, type CollectionEventEventTypeOneOf as a9, type AddItemsResponse as aA, type RemoveItemsRequest as aB, type RemoveItemsResponse as aC, type UpdateItemsRequest as aD, type UpdateItem as aE, type UpdateItemsResponse as aF, type JoinToCollectionRequest as aG, type JoinToCollectionResponse as aH, type RemoveMemberFromCollectionRequest as aI, type RemoveMemberFromCollectionResponse as aJ, type LeaveCollectionRequest as aK, type LeaveCollectionResponse as aL, type ListCollectionItemsRequest as aM, type CollectionItem as aN, type ListAllItemsBelongToCollectionRequest as aO, type ListAllItemsBelongToCollectionResponse as aP, type BaseEventMetadata as aQ, type EventMetadata as aR, type CollectionItemId as aa, type CollectionCreated as ab, type ItemsAddedToCollection as ac, type ItemsRemovedFromCollection as ad, type MemberJoinedToCollection as ae, type MemberLeftCollection as af, type GetMediaCollectionRequest as ag, type GetMediaCollectionResponse as ah, type ListCollectionsForItemRequest as ai, type ItemInCollection as aj, type GetCollectionItemRequest as ak, type ListMediaCollectionsRequest as al, type FilterByRoles as am, type CollectionAndStatus as an, type CreateMediaCollectionRequest as ao, type AddItem as ap, type PartiallyUpdateMediaCollectionRequest as aq, type PartiallyUpdateMediaCollectionResponse as ar, type UpdateCollectionLockRequest as as, type UpdateCollectionLockResponse as at, type DeleteMediaCollectionRequest as au, type DeleteMediaCollectionResponse as av, type ListCollectionMembersRequest as aw, type FilterBy as ax, type MemberAndStatus as ay, type AddItemsRequest as az, type GetCollectionItemIdentifiers as b, type GetCollectionItemResponse as c, type ListOptions as d, type ListMediaCollectionsResponse as e, type CreateMediaCollectionResponse as f, type PartiallyUpdateOptions as g, type ListCollectionMembersOptions as h, type ListCollectionMembersResponse as i, type ListCollectionItemsResponse as j, type CollectionCreatedEnvelope as k, LinkRel as l, MediaOwner as m, PrivacySettings as n, Status as o, MemberStatus as p, type CollectionMember as q, type MediaCollectionItem as r, type MediaCollectionItemMetadataOneOf as s, type Link as t, type WixLink as u, type WixLinkLinkOneOf as v, type PageLink as w, type AnchorLink as x, type DynamicPageLink as y, type DocumentLink as z };
|
|
@@ -435,6 +435,157 @@ declare enum PrivacySettings {
|
|
|
435
435
|
}
|
|
436
436
|
/** @enumType */
|
|
437
437
|
type PrivacySettingsWithLiterals = PrivacySettings | 'Undefined' | 'Public' | 'Secret';
|
|
438
|
+
interface PermanentSiteDeletedResponse {
|
|
439
|
+
/** @format GUID */
|
|
440
|
+
requestId?: string;
|
|
441
|
+
uniqueServiceIdentifier?: string;
|
|
442
|
+
status?: StatusWithLiterals;
|
|
443
|
+
/** @readonly */
|
|
444
|
+
_createdDate?: Date | null;
|
|
445
|
+
}
|
|
446
|
+
declare enum Status {
|
|
447
|
+
UNKNOWN = "UNKNOWN",
|
|
448
|
+
HANDLED = "HANDLED",
|
|
449
|
+
NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
|
|
450
|
+
}
|
|
451
|
+
/** @enumType */
|
|
452
|
+
type StatusWithLiterals = Status | 'UNKNOWN' | 'HANDLED' | 'NOTHING_TO_HANDLE';
|
|
453
|
+
interface Empty {
|
|
454
|
+
}
|
|
455
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
456
|
+
createdEvent?: EntityCreatedEvent;
|
|
457
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
458
|
+
deletedEvent?: EntityDeletedEvent;
|
|
459
|
+
actionEvent?: ActionEvent;
|
|
460
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
461
|
+
_id?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
464
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
465
|
+
*/
|
|
466
|
+
entityFqdn?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
469
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
470
|
+
*/
|
|
471
|
+
slug?: string;
|
|
472
|
+
/** ID of the entity associated with the event. */
|
|
473
|
+
entityId?: string;
|
|
474
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
475
|
+
eventTime?: Date | null;
|
|
476
|
+
/**
|
|
477
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
478
|
+
* (for example, GDPR).
|
|
479
|
+
*/
|
|
480
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
481
|
+
/** If present, indicates the action that triggered the event. */
|
|
482
|
+
originatedFrom?: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* 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.
|
|
485
|
+
* 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.
|
|
486
|
+
*/
|
|
487
|
+
entityEventSequence?: string | null;
|
|
488
|
+
}
|
|
489
|
+
/** @oneof */
|
|
490
|
+
interface DomainEventBodyOneOf {
|
|
491
|
+
createdEvent?: EntityCreatedEvent;
|
|
492
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
493
|
+
deletedEvent?: EntityDeletedEvent;
|
|
494
|
+
actionEvent?: ActionEvent;
|
|
495
|
+
}
|
|
496
|
+
interface EntityCreatedEvent {
|
|
497
|
+
entity?: string;
|
|
498
|
+
}
|
|
499
|
+
interface RestoreInfo {
|
|
500
|
+
deletedDate?: Date | null;
|
|
501
|
+
}
|
|
502
|
+
interface EntityUpdatedEvent {
|
|
503
|
+
/**
|
|
504
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
505
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
506
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
507
|
+
*/
|
|
508
|
+
currentEntity?: string;
|
|
509
|
+
}
|
|
510
|
+
interface EntityDeletedEvent {
|
|
511
|
+
/** Entity that was deleted. */
|
|
512
|
+
deletedEntity?: string | null;
|
|
513
|
+
}
|
|
514
|
+
interface ActionEvent {
|
|
515
|
+
body?: string;
|
|
516
|
+
}
|
|
517
|
+
interface MessageEnvelope {
|
|
518
|
+
/**
|
|
519
|
+
* App instance ID.
|
|
520
|
+
* @format GUID
|
|
521
|
+
*/
|
|
522
|
+
instanceId?: string | null;
|
|
523
|
+
/**
|
|
524
|
+
* Event type.
|
|
525
|
+
* @maxLength 150
|
|
526
|
+
*/
|
|
527
|
+
eventType?: string;
|
|
528
|
+
/** The identification type and identity data. */
|
|
529
|
+
identity?: IdentificationData;
|
|
530
|
+
/** Stringify payload. */
|
|
531
|
+
data?: string;
|
|
532
|
+
}
|
|
533
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
534
|
+
/**
|
|
535
|
+
* ID of a site visitor that has not logged in to the site.
|
|
536
|
+
* @format GUID
|
|
537
|
+
*/
|
|
538
|
+
anonymousVisitorId?: string;
|
|
539
|
+
/**
|
|
540
|
+
* ID of a site visitor that has logged in to the site.
|
|
541
|
+
* @format GUID
|
|
542
|
+
*/
|
|
543
|
+
memberId?: string;
|
|
544
|
+
/**
|
|
545
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
548
|
+
wixUserId?: string;
|
|
549
|
+
/**
|
|
550
|
+
* ID of an app.
|
|
551
|
+
* @format GUID
|
|
552
|
+
*/
|
|
553
|
+
appId?: string;
|
|
554
|
+
/** @readonly */
|
|
555
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
556
|
+
}
|
|
557
|
+
/** @oneof */
|
|
558
|
+
interface IdentificationDataIdOneOf {
|
|
559
|
+
/**
|
|
560
|
+
* ID of a site visitor that has not logged in to the site.
|
|
561
|
+
* @format GUID
|
|
562
|
+
*/
|
|
563
|
+
anonymousVisitorId?: string;
|
|
564
|
+
/**
|
|
565
|
+
* ID of a site visitor that has logged in to the site.
|
|
566
|
+
* @format GUID
|
|
567
|
+
*/
|
|
568
|
+
memberId?: string;
|
|
569
|
+
/**
|
|
570
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
571
|
+
* @format GUID
|
|
572
|
+
*/
|
|
573
|
+
wixUserId?: string;
|
|
574
|
+
/**
|
|
575
|
+
* ID of an app.
|
|
576
|
+
* @format GUID
|
|
577
|
+
*/
|
|
578
|
+
appId?: string;
|
|
579
|
+
}
|
|
580
|
+
declare enum WebhookIdentityType {
|
|
581
|
+
UNKNOWN = "UNKNOWN",
|
|
582
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
583
|
+
MEMBER = "MEMBER",
|
|
584
|
+
WIX_USER = "WIX_USER",
|
|
585
|
+
APP = "APP"
|
|
586
|
+
}
|
|
587
|
+
/** @enumType */
|
|
588
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
438
589
|
interface CollectionEvent extends CollectionEventEventTypeOneOf {
|
|
439
590
|
/** Collection created */
|
|
440
591
|
collectionCreated?: CollectionCreated;
|
|
@@ -561,70 +712,6 @@ interface MemberLeftCollection {
|
|
|
561
712
|
/** When the member left */
|
|
562
713
|
leftDate?: Date | null;
|
|
563
714
|
}
|
|
564
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
565
|
-
createdEvent?: EntityCreatedEvent;
|
|
566
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
567
|
-
deletedEvent?: EntityDeletedEvent;
|
|
568
|
-
actionEvent?: ActionEvent;
|
|
569
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
570
|
-
_id?: string;
|
|
571
|
-
/**
|
|
572
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
573
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
574
|
-
*/
|
|
575
|
-
entityFqdn?: string;
|
|
576
|
-
/**
|
|
577
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
578
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
579
|
-
*/
|
|
580
|
-
slug?: string;
|
|
581
|
-
/** ID of the entity associated with the event. */
|
|
582
|
-
entityId?: string;
|
|
583
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
584
|
-
eventTime?: Date | null;
|
|
585
|
-
/**
|
|
586
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
587
|
-
* (for example, GDPR).
|
|
588
|
-
*/
|
|
589
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
590
|
-
/** If present, indicates the action that triggered the event. */
|
|
591
|
-
originatedFrom?: string | null;
|
|
592
|
-
/**
|
|
593
|
-
* 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.
|
|
594
|
-
* 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.
|
|
595
|
-
*/
|
|
596
|
-
entityEventSequence?: string | null;
|
|
597
|
-
}
|
|
598
|
-
/** @oneof */
|
|
599
|
-
interface DomainEventBodyOneOf {
|
|
600
|
-
createdEvent?: EntityCreatedEvent;
|
|
601
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
602
|
-
deletedEvent?: EntityDeletedEvent;
|
|
603
|
-
actionEvent?: ActionEvent;
|
|
604
|
-
}
|
|
605
|
-
interface EntityCreatedEvent {
|
|
606
|
-
entity?: string;
|
|
607
|
-
}
|
|
608
|
-
interface RestoreInfo {
|
|
609
|
-
deletedDate?: Date | null;
|
|
610
|
-
}
|
|
611
|
-
interface EntityUpdatedEvent {
|
|
612
|
-
/**
|
|
613
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
614
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
615
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
616
|
-
*/
|
|
617
|
-
currentEntity?: string;
|
|
618
|
-
}
|
|
619
|
-
interface EntityDeletedEvent {
|
|
620
|
-
/** Entity that was deleted. */
|
|
621
|
-
deletedEntity?: string | null;
|
|
622
|
-
}
|
|
623
|
-
interface ActionEvent {
|
|
624
|
-
body?: string;
|
|
625
|
-
}
|
|
626
|
-
interface Empty {
|
|
627
|
-
}
|
|
628
715
|
interface GetMediaCollectionRequest {
|
|
629
716
|
/**
|
|
630
717
|
* Collection id
|
|
@@ -955,93 +1042,6 @@ interface ListAllItemsBelongToCollectionResponse {
|
|
|
955
1042
|
*/
|
|
956
1043
|
itemIds?: string[];
|
|
957
1044
|
}
|
|
958
|
-
interface MessageEnvelope {
|
|
959
|
-
/**
|
|
960
|
-
* App instance ID.
|
|
961
|
-
* @format GUID
|
|
962
|
-
*/
|
|
963
|
-
instanceId?: string | null;
|
|
964
|
-
/**
|
|
965
|
-
* Event type.
|
|
966
|
-
* @maxLength 150
|
|
967
|
-
*/
|
|
968
|
-
eventType?: string;
|
|
969
|
-
/** The identification type and identity data. */
|
|
970
|
-
identity?: IdentificationData;
|
|
971
|
-
/** Stringify payload. */
|
|
972
|
-
data?: string;
|
|
973
|
-
}
|
|
974
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
975
|
-
/**
|
|
976
|
-
* ID of a site visitor that has not logged in to the site.
|
|
977
|
-
* @format GUID
|
|
978
|
-
*/
|
|
979
|
-
anonymousVisitorId?: string;
|
|
980
|
-
/**
|
|
981
|
-
* ID of a site visitor that has logged in to the site.
|
|
982
|
-
* @format GUID
|
|
983
|
-
*/
|
|
984
|
-
memberId?: string;
|
|
985
|
-
/**
|
|
986
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
987
|
-
* @format GUID
|
|
988
|
-
*/
|
|
989
|
-
wixUserId?: string;
|
|
990
|
-
/**
|
|
991
|
-
* ID of an app.
|
|
992
|
-
* @format GUID
|
|
993
|
-
*/
|
|
994
|
-
appId?: string;
|
|
995
|
-
/** @readonly */
|
|
996
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
997
|
-
}
|
|
998
|
-
/** @oneof */
|
|
999
|
-
interface IdentificationDataIdOneOf {
|
|
1000
|
-
/**
|
|
1001
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1002
|
-
* @format GUID
|
|
1003
|
-
*/
|
|
1004
|
-
anonymousVisitorId?: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* ID of a site visitor that has logged in to the site.
|
|
1007
|
-
* @format GUID
|
|
1008
|
-
*/
|
|
1009
|
-
memberId?: string;
|
|
1010
|
-
/**
|
|
1011
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1012
|
-
* @format GUID
|
|
1013
|
-
*/
|
|
1014
|
-
wixUserId?: string;
|
|
1015
|
-
/**
|
|
1016
|
-
* ID of an app.
|
|
1017
|
-
* @format GUID
|
|
1018
|
-
*/
|
|
1019
|
-
appId?: string;
|
|
1020
|
-
}
|
|
1021
|
-
declare enum WebhookIdentityType {
|
|
1022
|
-
UNKNOWN = "UNKNOWN",
|
|
1023
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1024
|
-
MEMBER = "MEMBER",
|
|
1025
|
-
WIX_USER = "WIX_USER",
|
|
1026
|
-
APP = "APP"
|
|
1027
|
-
}
|
|
1028
|
-
/** @enumType */
|
|
1029
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1030
|
-
interface PermanentSiteDeletedResponse {
|
|
1031
|
-
/** @format GUID */
|
|
1032
|
-
requestId?: string;
|
|
1033
|
-
uniqueServiceIdentifier?: string;
|
|
1034
|
-
status?: StatusWithLiterals;
|
|
1035
|
-
/** @readonly */
|
|
1036
|
-
_createdDate?: Date | null;
|
|
1037
|
-
}
|
|
1038
|
-
declare enum Status {
|
|
1039
|
-
UNKNOWN = "UNKNOWN",
|
|
1040
|
-
HANDLED = "HANDLED",
|
|
1041
|
-
NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
|
|
1042
|
-
}
|
|
1043
|
-
/** @enumType */
|
|
1044
|
-
type StatusWithLiterals = Status | 'UNKNOWN' | 'HANDLED' | 'NOTHING_TO_HANDLE';
|
|
1045
1045
|
interface BaseEventMetadata {
|
|
1046
1046
|
/**
|
|
1047
1047
|
* App instance ID.
|
|
@@ -1209,4 +1209,4 @@ interface RemoveItemsOptions {
|
|
|
1209
1209
|
itemsIds?: string[];
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
export { type
|
|
1212
|
+
export { type DomainEventBodyOneOf as $, type AddItemsOptions as A, type EmailLink as B, type CreateOptions as C, DataType as D, type ExternalLink as E, type PhoneLink as F, type GetOptions as G, type AddressLink as H, type WhatsAppLink as I, type TpaPageLink as J, type PhotoMetadata as K, type ListCollectionsForItemOptions as L, type MediaCollection as M, type Point as N, type Thumbnail as O, type PartiallyUpdateMediaCollection as P, type Resolution as Q, type RemoveItemsOptions as R, Source as S, Type as T, type UnsharpMasking as U, type VideoMetadata as V, WebhookIdentityType as W, type TextMetadata as X, type PermanentSiteDeletedResponse as Y, type Empty as Z, type DomainEvent as _, type ListCollectionsForItemResponse as a, type EntityCreatedEvent as a0, type RestoreInfo as a1, type EntityUpdatedEvent as a2, type EntityDeletedEvent as a3, type ActionEvent as a4, type MessageEnvelope as a5, type IdentificationData as a6, type IdentificationDataIdOneOf as a7, type CollectionEvent as a8, type CollectionEventEventTypeOneOf as a9, type AddItemsResponse as aA, type RemoveItemsRequest as aB, type RemoveItemsResponse as aC, type UpdateItemsRequest as aD, type UpdateItem as aE, type UpdateItemsResponse as aF, type JoinToCollectionRequest as aG, type JoinToCollectionResponse as aH, type RemoveMemberFromCollectionRequest as aI, type RemoveMemberFromCollectionResponse as aJ, type LeaveCollectionRequest as aK, type LeaveCollectionResponse as aL, type ListCollectionItemsRequest as aM, type CollectionItem as aN, type ListAllItemsBelongToCollectionRequest as aO, type ListAllItemsBelongToCollectionResponse as aP, type BaseEventMetadata as aQ, type EventMetadata as aR, type CollectionItemId as aa, type CollectionCreated as ab, type ItemsAddedToCollection as ac, type ItemsRemovedFromCollection as ad, type MemberJoinedToCollection as ae, type MemberLeftCollection as af, type GetMediaCollectionRequest as ag, type GetMediaCollectionResponse as ah, type ListCollectionsForItemRequest as ai, type ItemInCollection as aj, type GetCollectionItemRequest as ak, type ListMediaCollectionsRequest as al, type FilterByRoles as am, type CollectionAndStatus as an, type CreateMediaCollectionRequest as ao, type AddItem as ap, type PartiallyUpdateMediaCollectionRequest as aq, type PartiallyUpdateMediaCollectionResponse as ar, type UpdateCollectionLockRequest as as, type UpdateCollectionLockResponse as at, type DeleteMediaCollectionRequest as au, type DeleteMediaCollectionResponse as av, type ListCollectionMembersRequest as aw, type FilterBy as ax, type MemberAndStatus as ay, type AddItemsRequest as az, type GetCollectionItemIdentifiers as b, type GetCollectionItemResponse as c, type ListOptions as d, type ListMediaCollectionsResponse as e, type CreateMediaCollectionResponse as f, type PartiallyUpdateOptions as g, type ListCollectionMembersOptions as h, type ListCollectionMembersResponse as i, type ListCollectionItemsResponse as j, type CollectionCreatedEnvelope as k, LinkRel as l, MediaOwner as m, PrivacySettings as n, Status as o, MemberStatus as p, type CollectionMember as q, type MediaCollectionItem as r, type MediaCollectionItemMetadataOneOf as s, type Link as t, type WixLink as u, type WixLinkLinkOneOf as v, type PageLink as w, type AnchorLink as x, type DynamicPageLink as y, type DocumentLink as z };
|