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