@wix/auto_sdk_loyalty_earning-rules 1.0.8 → 1.0.10

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.
Files changed (49) hide show
  1. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +2 -2
  2. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js +5 -1
  3. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js.map +1 -1
  4. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +1 -1
  5. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js +5 -1
  6. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
  7. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +464 -17
  8. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js +115 -1
  9. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
  10. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +472 -33
  11. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js +115 -1
  12. package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
  13. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +2 -2
  14. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js +1 -1
  15. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js.map +1 -1
  16. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +1 -1
  17. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js +1 -1
  18. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
  19. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +464 -17
  20. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js +114 -0
  21. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
  22. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +472 -33
  23. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js +114 -0
  24. package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
  25. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +2 -2
  26. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js +5 -1
  27. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js.map +1 -1
  28. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +1 -1
  29. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js +5 -1
  30. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
  31. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +464 -17
  32. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js +115 -1
  33. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
  34. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +472 -33
  35. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js +115 -1
  36. package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
  37. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +2 -2
  38. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js +1 -1
  39. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.js.map +1 -1
  40. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +1 -1
  41. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js +1 -1
  42. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
  43. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +464 -17
  44. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js +114 -0
  45. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
  46. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +472 -33
  47. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js +114 -0
  48. package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
  49. package/package.json +4 -4
@@ -156,6 +156,8 @@ export declare enum LoyaltyEarningRuleTypeTagType {
156
156
  /** Earning rule for a customer's birthday. */
157
157
  BIRTHDAY = "BIRTHDAY"
158
158
  }
159
+ export interface CacheInvalidated {
160
+ }
159
161
  export interface EarningRuleDisabled {
160
162
  }
161
163
  export interface CreateLoyaltyEarningRuleRequest {
@@ -361,25 +363,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
361
363
  updatedEvent?: EntityUpdatedEvent;
362
364
  deletedEvent?: EntityDeletedEvent;
363
365
  actionEvent?: ActionEvent;
364
- /**
365
- * Unique event ID.
366
- * Allows clients to ignore duplicate webhooks.
367
- */
366
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
368
367
  _id?: string;
369
368
  /**
370
- * Assumes actions are also always typed to an entity_type
371
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
369
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
370
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
372
371
  */
373
372
  entityFqdn?: string;
374
373
  /**
375
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
376
- * This is although the created/updated/deleted notion is duplication of the oneof types
377
- * Example: created/updated/deleted/started/completed/email_opened
374
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
375
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
378
376
  */
379
377
  slug?: string;
380
378
  /** ID of the entity associated with the event. */
381
379
  entityId?: string;
382
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
380
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
383
381
  eventTime?: Date | null;
384
382
  /**
385
383
  * Whether the event was triggered as a result of a privacy regulation application
@@ -389,12 +387,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
389
387
  /** If present, indicates the action that triggered the event. */
390
388
  originatedFrom?: string | null;
391
389
  /**
392
- * A sequence number defining the order of updates to the underlying entity.
393
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
394
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
395
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
396
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
397
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
390
+ * 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.
391
+ * 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.
398
392
  */
399
393
  entityEventSequence?: string | null;
400
394
  }
@@ -420,7 +414,7 @@ export interface EntityUpdatedEvent {
420
414
  currentEntity?: string;
421
415
  }
422
416
  export interface EntityDeletedEvent {
423
- /** Entity that was deleted */
417
+ /** Entity that was deleted. */
424
418
  deletedEntity?: string | null;
425
419
  }
426
420
  export interface ActionEvent {
@@ -428,6 +422,459 @@ export interface ActionEvent {
428
422
  }
429
423
  export interface Empty {
430
424
  }
425
+ export interface InvalidateEarningRuleCacheRequest {
426
+ }
427
+ export interface InvalidateEarningRuleCacheResponse {
428
+ }
429
+ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
430
+ /** Emitted on a meta site creation. */
431
+ siteCreated?: SiteCreated;
432
+ /** Emitted on a meta site transfer completion. */
433
+ siteTransferred?: SiteTransferred;
434
+ /** Emitted on a meta site deletion. */
435
+ siteDeleted?: SiteDeleted;
436
+ /** Emitted on a meta site restoration. */
437
+ siteUndeleted?: SiteUndeleted;
438
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
439
+ sitePublished?: SitePublished;
440
+ /** Emitted on a meta site unpublish. */
441
+ siteUnpublished?: SiteUnpublished;
442
+ /** Emitted when meta site is marked as template. */
443
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
444
+ /** Emitted when meta site is marked as a WixSite. */
445
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
446
+ /** Emitted when an application is provisioned (installed). */
447
+ serviceProvisioned?: ServiceProvisioned;
448
+ /** Emitted when an application is removed (uninstalled). */
449
+ serviceRemoved?: ServiceRemoved;
450
+ /** Emitted when meta site name (URL slug) is changed. */
451
+ siteRenamedPayload?: SiteRenamed;
452
+ /** Emitted when meta site was permanently deleted. */
453
+ hardDeleted?: SiteHardDeleted;
454
+ /** Emitted on a namespace change. */
455
+ namespaceChanged?: NamespaceChanged;
456
+ /** Emitted when Studio is attached. */
457
+ studioAssigned?: StudioAssigned;
458
+ /** Emitted when Studio is detached. */
459
+ studioUnassigned?: StudioUnassigned;
460
+ /**
461
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
462
+ * the actual URL.
463
+ *
464
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
465
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
466
+ */
467
+ urlChanged?: SiteUrlChanged;
468
+ /** Site is marked as PurgedExternally */
469
+ sitePurgedExternally?: SitePurgedExternally;
470
+ /** Emitted when Odeditor is attached. */
471
+ odeditorAssigned?: OdeditorAssigned;
472
+ /** Emitted when Odeditor is detached. */
473
+ odeditorUnassigned?: OdeditorUnassigned;
474
+ /** Emitted when Picasso is attached. */
475
+ picassoAssigned?: PicassoAssigned;
476
+ /** Emitted when Picasso is detached. */
477
+ picassoUnassigned?: PicassoUnassigned;
478
+ /**
479
+ * A meta site id.
480
+ * @format GUID
481
+ */
482
+ metaSiteId?: string;
483
+ /** A meta site version. Monotonically increasing. */
484
+ version?: string;
485
+ /** A timestamp of the event. */
486
+ timestamp?: string;
487
+ /**
488
+ * TODO(meta-site): Change validation once validations are disabled for consumers
489
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
490
+ * @maxSize 4000
491
+ */
492
+ assets?: Asset[];
493
+ }
494
+ /** @oneof */
495
+ export interface MetaSiteSpecialEventPayloadOneOf {
496
+ /** Emitted on a meta site creation. */
497
+ siteCreated?: SiteCreated;
498
+ /** Emitted on a meta site transfer completion. */
499
+ siteTransferred?: SiteTransferred;
500
+ /** Emitted on a meta site deletion. */
501
+ siteDeleted?: SiteDeleted;
502
+ /** Emitted on a meta site restoration. */
503
+ siteUndeleted?: SiteUndeleted;
504
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
505
+ sitePublished?: SitePublished;
506
+ /** Emitted on a meta site unpublish. */
507
+ siteUnpublished?: SiteUnpublished;
508
+ /** Emitted when meta site is marked as template. */
509
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
510
+ /** Emitted when meta site is marked as a WixSite. */
511
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
512
+ /** Emitted when an application is provisioned (installed). */
513
+ serviceProvisioned?: ServiceProvisioned;
514
+ /** Emitted when an application is removed (uninstalled). */
515
+ serviceRemoved?: ServiceRemoved;
516
+ /** Emitted when meta site name (URL slug) is changed. */
517
+ siteRenamedPayload?: SiteRenamed;
518
+ /** Emitted when meta site was permanently deleted. */
519
+ hardDeleted?: SiteHardDeleted;
520
+ /** Emitted on a namespace change. */
521
+ namespaceChanged?: NamespaceChanged;
522
+ /** Emitted when Studio is attached. */
523
+ studioAssigned?: StudioAssigned;
524
+ /** Emitted when Studio is detached. */
525
+ studioUnassigned?: StudioUnassigned;
526
+ /**
527
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
528
+ * the actual URL.
529
+ *
530
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
531
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
532
+ */
533
+ urlChanged?: SiteUrlChanged;
534
+ /** Site is marked as PurgedExternally */
535
+ sitePurgedExternally?: SitePurgedExternally;
536
+ /** Emitted when Odeditor is attached. */
537
+ odeditorAssigned?: OdeditorAssigned;
538
+ /** Emitted when Odeditor is detached. */
539
+ odeditorUnassigned?: OdeditorUnassigned;
540
+ /** Emitted when Picasso is attached. */
541
+ picassoAssigned?: PicassoAssigned;
542
+ /** Emitted when Picasso is detached. */
543
+ picassoUnassigned?: PicassoUnassigned;
544
+ }
545
+ export interface Asset {
546
+ /**
547
+ * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
548
+ * @maxLength 36
549
+ */
550
+ appDefId?: string;
551
+ /**
552
+ * An instance id. For legacy reasons may be UUID or a string.
553
+ * @maxLength 200
554
+ */
555
+ instanceId?: string;
556
+ /** An application state. */
557
+ state?: State;
558
+ }
559
+ export declare enum State {
560
+ UNKNOWN = "UNKNOWN",
561
+ ENABLED = "ENABLED",
562
+ DISABLED = "DISABLED",
563
+ PENDING = "PENDING",
564
+ DEMO = "DEMO"
565
+ }
566
+ export interface SiteCreated {
567
+ /**
568
+ * A template identifier (empty if not created from a template).
569
+ * @maxLength 36
570
+ */
571
+ originTemplateId?: string;
572
+ /**
573
+ * An account id of the owner.
574
+ * @format GUID
575
+ */
576
+ ownerId?: string;
577
+ /** A context in which meta site was created. */
578
+ context?: SiteCreatedContext;
579
+ /**
580
+ * A meta site id from which this site was created.
581
+ *
582
+ * In case of a creation from a template it's a template id.
583
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
584
+ * @format GUID
585
+ */
586
+ originMetaSiteId?: string | null;
587
+ /**
588
+ * A meta site name (URL slug).
589
+ * @maxLength 20
590
+ */
591
+ siteName?: string;
592
+ /** A namespace. */
593
+ namespace?: Namespace;
594
+ }
595
+ export declare enum SiteCreatedContext {
596
+ /** A valid option, we don't expose all reasons why site might be created. */
597
+ OTHER = "OTHER",
598
+ /** A meta site was created from template. */
599
+ FROM_TEMPLATE = "FROM_TEMPLATE",
600
+ /** A meta site was created by copying of the transfferred meta site. */
601
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
602
+ /** A copy of existing meta site. */
603
+ DUPLICATE = "DUPLICATE",
604
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
605
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
606
+ /** deprecated A meta site was created for Flash editor. */
607
+ FLASH = "FLASH"
608
+ }
609
+ export declare enum Namespace {
610
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
611
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
612
+ WIX = "WIX",
613
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
614
+ SHOUT_OUT = "SHOUT_OUT",
615
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
616
+ ALBUMS = "ALBUMS",
617
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
618
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
619
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
620
+ HOTELS = "HOTELS",
621
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
622
+ CLUBS = "CLUBS",
623
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
624
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
625
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
626
+ DEV_SITE = "DEV_SITE",
627
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
628
+ LOGOS = "LOGOS",
629
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
630
+ VIDEO_MAKER = "VIDEO_MAKER",
631
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
632
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
633
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
634
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
635
+ /**
636
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
637
+ *
638
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
639
+ */
640
+ HTML_DRAFT = "HTML_DRAFT",
641
+ /**
642
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
643
+ * Will be accessible from Site List and will not have a website app.
644
+ * Once the user attaches a site, the site will become a regular wixsite.
645
+ */
646
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
647
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
648
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
649
+ /** It is to be used in the Business First efforts. */
650
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
651
+ /** Bookings business flow with no site. */
652
+ ANYWHERE = "ANYWHERE",
653
+ /** Namespace for Headless Backoffice with no editor */
654
+ HEADLESS = "HEADLESS",
655
+ /**
656
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
657
+ * The site will be used for account level CSM feature for enterprise
658
+ */
659
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
660
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
661
+ RISE = "RISE",
662
+ /**
663
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
664
+ * There's a blank site behind the scene but it's blank).
665
+ * The Mobile company will be the owner of this namespace.
666
+ */
667
+ BRANDED_FIRST = "BRANDED_FIRST",
668
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
669
+ NOWNIA = "NOWNIA",
670
+ /**
671
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
672
+ * The Partners company owns this namespace.
673
+ */
674
+ UGC_TEMPLATE = "UGC_TEMPLATE",
675
+ /** Codux Headless Sites */
676
+ CODUX = "CODUX",
677
+ /** Bobb - AI Design Creator. */
678
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
679
+ /**
680
+ * Shared Blog Site is a unique single site across Enterprise account,
681
+ * This site will hold all Blog posts related to the Marketing product.
682
+ */
683
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
684
+ /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
685
+ STANDALONE_FORMS = "STANDALONE_FORMS",
686
+ /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
687
+ STANDALONE_EVENTS = "STANDALONE_EVENTS",
688
+ /** MIMIR - Siteless account for MIMIR Ai Job runner. */
689
+ MIMIR = "MIMIR"
690
+ }
691
+ /** Site transferred to another user. */
692
+ export interface SiteTransferred {
693
+ /**
694
+ * A previous owner id (user that transfers meta site).
695
+ * @format GUID
696
+ */
697
+ oldOwnerId?: string;
698
+ /**
699
+ * A new owner id (user that accepts meta site).
700
+ * @format GUID
701
+ */
702
+ newOwnerId?: string;
703
+ }
704
+ /** Soft deletion of the meta site. Could be restored. */
705
+ export interface SiteDeleted {
706
+ /** A deletion context. */
707
+ deleteContext?: DeleteContext;
708
+ }
709
+ export interface DeleteContext {
710
+ /** When the meta site was deleted. */
711
+ dateDeleted?: Date | null;
712
+ /** A status. */
713
+ deleteStatus?: DeleteStatus;
714
+ /**
715
+ * A reason (flow).
716
+ * @maxLength 255
717
+ */
718
+ deleteOrigin?: string;
719
+ /**
720
+ * A service that deleted it.
721
+ * @maxLength 255
722
+ */
723
+ initiatorId?: string | null;
724
+ }
725
+ export declare enum DeleteStatus {
726
+ UNKNOWN = "UNKNOWN",
727
+ TRASH = "TRASH",
728
+ DELETED = "DELETED",
729
+ PENDING_PURGE = "PENDING_PURGE",
730
+ PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
731
+ }
732
+ /** Restoration of the meta site. */
733
+ export interface SiteUndeleted {
734
+ }
735
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
736
+ export interface SitePublished {
737
+ }
738
+ export interface SiteUnpublished {
739
+ /**
740
+ * A list of URLs previously associated with the meta site.
741
+ * @maxLength 4000
742
+ * @maxSize 10000
743
+ */
744
+ urls?: string[];
745
+ }
746
+ export interface SiteMarkedAsTemplate {
747
+ }
748
+ export interface SiteMarkedAsWixSite {
749
+ }
750
+ /**
751
+ * Represents a service provisioned a site.
752
+ *
753
+ * Note on `origin_instance_id`:
754
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
755
+ * This is because of the following scenario:
756
+ *
757
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
758
+ * such as a product catalog. When you create a site from this template, you inherit this
759
+ * default product catalog. However, if the template's product catalog is modified,
760
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
761
+ * your site remains consistent with what you initially received and does not include any
762
+ * changes made to the original template afterward.
763
+ * To ensure this, the TPA on the template gets a new instance_id.
764
+ */
765
+ export interface ServiceProvisioned {
766
+ /**
767
+ * Either UUID or EmbeddedServiceType.
768
+ * @maxLength 36
769
+ */
770
+ appDefId?: string;
771
+ /**
772
+ * Not only UUID. Something here could be something weird.
773
+ * @maxLength 36
774
+ */
775
+ instanceId?: string;
776
+ /**
777
+ * An instance id from which this instance is originated.
778
+ * @maxLength 36
779
+ */
780
+ originInstanceId?: string;
781
+ /**
782
+ * A version.
783
+ * @maxLength 500
784
+ */
785
+ version?: string | null;
786
+ /**
787
+ * The origin meta site id
788
+ * @format GUID
789
+ */
790
+ originMetaSiteId?: string | null;
791
+ }
792
+ export interface ServiceRemoved {
793
+ /**
794
+ * Either UUID or EmbeddedServiceType.
795
+ * @maxLength 36
796
+ */
797
+ appDefId?: string;
798
+ /**
799
+ * Not only UUID. Something here could be something weird.
800
+ * @maxLength 36
801
+ */
802
+ instanceId?: string;
803
+ /**
804
+ * A version.
805
+ * @maxLength 500
806
+ */
807
+ version?: string | null;
808
+ }
809
+ /** Rename of the site. Meaning, free public url has been changed as well. */
810
+ export interface SiteRenamed {
811
+ /**
812
+ * A new meta site name (URL slug).
813
+ * @maxLength 20
814
+ */
815
+ newSiteName?: string;
816
+ /**
817
+ * A previous meta site name (URL slug).
818
+ * @maxLength 255
819
+ */
820
+ oldSiteName?: string;
821
+ }
822
+ /**
823
+ * Hard deletion of the meta site.
824
+ *
825
+ * Could not be restored. Therefore it's desirable to cleanup data.
826
+ */
827
+ export interface SiteHardDeleted {
828
+ /** A deletion context. */
829
+ deleteContext?: DeleteContext;
830
+ }
831
+ export interface NamespaceChanged {
832
+ /** A previous namespace. */
833
+ oldNamespace?: Namespace;
834
+ /** A new namespace. */
835
+ newNamespace?: Namespace;
836
+ }
837
+ /** Assigned Studio editor */
838
+ export interface StudioAssigned {
839
+ }
840
+ /** Unassigned Studio editor */
841
+ export interface StudioUnassigned {
842
+ }
843
+ /**
844
+ * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
845
+ *
846
+ * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
847
+ * with sites and its urls, you need to listen to another topic/event. Read about it:
848
+ *
849
+ * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
850
+ */
851
+ export interface SiteUrlChanged {
852
+ }
853
+ /**
854
+ * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
855
+ * Consumed by other teams to remove relevant data.
856
+ */
857
+ export interface SitePurgedExternally {
858
+ /**
859
+ * @maxLength 2048
860
+ * @maxSize 100
861
+ * @deprecated
862
+ * @targetRemovalDate 2025-04-15
863
+ */
864
+ appDefId?: string[];
865
+ }
866
+ /** Assigned Odeditor */
867
+ export interface OdeditorAssigned {
868
+ }
869
+ /** Unassigned Odeditor */
870
+ export interface OdeditorUnassigned {
871
+ }
872
+ /** Assigned Picasso editor */
873
+ export interface PicassoAssigned {
874
+ }
875
+ /** Unassigned Picasso */
876
+ export interface PicassoUnassigned {
877
+ }
431
878
  export interface MessageEnvelope {
432
879
  /**
433
880
  * App instance ID.
@@ -513,25 +960,21 @@ export interface BaseEventMetadata {
513
960
  identity?: IdentificationData;
514
961
  }
515
962
  export interface EventMetadata extends BaseEventMetadata {
516
- /**
517
- * Unique event ID.
518
- * Allows clients to ignore duplicate webhooks.
519
- */
963
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
520
964
  _id?: string;
521
965
  /**
522
- * Assumes actions are also always typed to an entity_type
523
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
966
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
967
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
524
968
  */
525
969
  entityFqdn?: string;
526
970
  /**
527
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
528
- * This is although the created/updated/deleted notion is duplication of the oneof types
529
- * Example: created/updated/deleted/started/completed/email_opened
971
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
972
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
530
973
  */
531
974
  slug?: string;
532
975
  /** ID of the entity associated with the event. */
533
976
  entityId?: string;
534
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
977
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
535
978
  eventTime?: Date | null;
536
979
  /**
537
980
  * Whether the event was triggered as a result of a privacy regulation application
@@ -541,12 +984,8 @@ export interface EventMetadata extends BaseEventMetadata {
541
984
  /** If present, indicates the action that triggered the event. */
542
985
  originatedFrom?: string | null;
543
986
  /**
544
- * A sequence number defining the order of updates to the underlying entity.
545
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
546
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
547
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
548
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
549
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
987
+ * 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.
988
+ * 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.
550
989
  */
551
990
  entityEventSequence?: string | null;
552
991
  }