@wix/events 1.0.334 → 1.0.335

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/events",
3
- "version": "1.0.334",
3
+ "version": "1.0.335",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -24,7 +24,7 @@
24
24
  "@wix/events_categories": "1.0.49",
25
25
  "@wix/events_forms": "1.0.52",
26
26
  "@wix/events_guests": "1.0.76",
27
- "@wix/events_notifications": "1.0.39",
27
+ "@wix/events_notifications": "1.0.40",
28
28
  "@wix/events_orders": "1.0.58",
29
29
  "@wix/events_policies": "1.0.47",
30
30
  "@wix/events_ricos": "1.0.14",
@@ -61,5 +61,5 @@
61
61
  "fqdn": ""
62
62
  }
63
63
  },
64
- "falconPackageHash": "18bdc9328302789b15a219b8c371ead1bfd0c6d8fdf7ac93f132254a"
64
+ "falconPackageHash": "80af07a9e1b93628da4c5521c3c047a1646cf0be1dd49a42b2f27523"
65
65
  }
@@ -2443,6 +2443,76 @@ interface RsvpUpdated$1 {
2443
2443
  /** Notifications silenced for this domain event. */
2444
2444
  silent?: boolean | null;
2445
2445
  }
2446
+ interface DomainEvent$8 extends DomainEventBodyOneOf$8 {
2447
+ createdEvent?: EntityCreatedEvent$8;
2448
+ updatedEvent?: EntityUpdatedEvent$8;
2449
+ deletedEvent?: EntityDeletedEvent$8;
2450
+ actionEvent?: ActionEvent$8;
2451
+ /**
2452
+ * Unique event ID.
2453
+ * Allows clients to ignore duplicate webhooks.
2454
+ */
2455
+ _id?: string;
2456
+ /**
2457
+ * Assumes actions are also always typed to an entity_type
2458
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2459
+ */
2460
+ entityFqdn?: string;
2461
+ /**
2462
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2463
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2464
+ * Example: created/updated/deleted/started/completed/email_opened
2465
+ */
2466
+ slug?: string;
2467
+ /** ID of the entity associated with the event. */
2468
+ entityId?: string;
2469
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2470
+ eventTime?: Date | null;
2471
+ /**
2472
+ * Whether the event was triggered as a result of a privacy regulation application
2473
+ * (for example, GDPR).
2474
+ */
2475
+ triggeredByAnonymizeRequest?: boolean | null;
2476
+ /** If present, indicates the action that triggered the event. */
2477
+ originatedFrom?: string | null;
2478
+ /**
2479
+ * A sequence number defining the order of updates to the underlying entity.
2480
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2481
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2482
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2483
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2484
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2485
+ */
2486
+ entityEventSequence?: string | null;
2487
+ }
2488
+ /** @oneof */
2489
+ interface DomainEventBodyOneOf$8 {
2490
+ createdEvent?: EntityCreatedEvent$8;
2491
+ updatedEvent?: EntityUpdatedEvent$8;
2492
+ deletedEvent?: EntityDeletedEvent$8;
2493
+ actionEvent?: ActionEvent$8;
2494
+ }
2495
+ interface EntityCreatedEvent$8 {
2496
+ entity?: string;
2497
+ }
2498
+ interface RestoreInfo$8 {
2499
+ deletedDate?: Date | null;
2500
+ }
2501
+ interface EntityUpdatedEvent$8 {
2502
+ /**
2503
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2504
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2505
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2506
+ */
2507
+ currentEntity?: string;
2508
+ }
2509
+ interface EntityDeletedEvent$8 {
2510
+ /** Entity that was deleted */
2511
+ deletedEntity?: string | null;
2512
+ }
2513
+ interface ActionEvent$8 {
2514
+ body?: string;
2515
+ }
2446
2516
  interface EventUpdated$3 {
2447
2517
  /** Event update timestamp in ISO UTC format. */
2448
2518
  timestamp?: Date | null;
@@ -3704,76 +3774,6 @@ interface OrderPaid$1 {
3704
3774
  /** Invoice. */
3705
3775
  invoice?: Invoice$1;
3706
3776
  }
3707
- interface DomainEvent$8 extends DomainEventBodyOneOf$8 {
3708
- createdEvent?: EntityCreatedEvent$8;
3709
- updatedEvent?: EntityUpdatedEvent$8;
3710
- deletedEvent?: EntityDeletedEvent$8;
3711
- actionEvent?: ActionEvent$8;
3712
- /**
3713
- * Unique event ID.
3714
- * Allows clients to ignore duplicate webhooks.
3715
- */
3716
- _id?: string;
3717
- /**
3718
- * Assumes actions are also always typed to an entity_type
3719
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3720
- */
3721
- entityFqdn?: string;
3722
- /**
3723
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3724
- * This is although the created/updated/deleted notion is duplication of the oneof types
3725
- * Example: created/updated/deleted/started/completed/email_opened
3726
- */
3727
- slug?: string;
3728
- /** ID of the entity associated with the event. */
3729
- entityId?: string;
3730
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3731
- eventTime?: Date | null;
3732
- /**
3733
- * Whether the event was triggered as a result of a privacy regulation application
3734
- * (for example, GDPR).
3735
- */
3736
- triggeredByAnonymizeRequest?: boolean | null;
3737
- /** If present, indicates the action that triggered the event. */
3738
- originatedFrom?: string | null;
3739
- /**
3740
- * A sequence number defining the order of updates to the underlying entity.
3741
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
3742
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3743
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3744
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
3745
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3746
- */
3747
- entityEventSequence?: string | null;
3748
- }
3749
- /** @oneof */
3750
- interface DomainEventBodyOneOf$8 {
3751
- createdEvent?: EntityCreatedEvent$8;
3752
- updatedEvent?: EntityUpdatedEvent$8;
3753
- deletedEvent?: EntityDeletedEvent$8;
3754
- actionEvent?: ActionEvent$8;
3755
- }
3756
- interface EntityCreatedEvent$8 {
3757
- entity?: string;
3758
- }
3759
- interface RestoreInfo$8 {
3760
- deletedDate?: Date | null;
3761
- }
3762
- interface EntityUpdatedEvent$8 {
3763
- /**
3764
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3765
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3766
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3767
- */
3768
- currentEntity?: string;
3769
- }
3770
- interface EntityDeletedEvent$8 {
3771
- /** Entity that was deleted */
3772
- deletedEntity?: string | null;
3773
- }
3774
- interface ActionEvent$8 {
3775
- body?: string;
3776
- }
3777
3777
  interface TicketPdfResolved {
3778
3778
  /** Optional order number */
3779
3779
  orderNumber?: string | null;
@@ -2443,6 +2443,76 @@ interface RsvpUpdated$1 {
2443
2443
  /** Notifications silenced for this domain event. */
2444
2444
  silent?: boolean | null;
2445
2445
  }
2446
+ interface DomainEvent$8 extends DomainEventBodyOneOf$8 {
2447
+ createdEvent?: EntityCreatedEvent$8;
2448
+ updatedEvent?: EntityUpdatedEvent$8;
2449
+ deletedEvent?: EntityDeletedEvent$8;
2450
+ actionEvent?: ActionEvent$8;
2451
+ /**
2452
+ * Unique event ID.
2453
+ * Allows clients to ignore duplicate webhooks.
2454
+ */
2455
+ _id?: string;
2456
+ /**
2457
+ * Assumes actions are also always typed to an entity_type
2458
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2459
+ */
2460
+ entityFqdn?: string;
2461
+ /**
2462
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2463
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2464
+ * Example: created/updated/deleted/started/completed/email_opened
2465
+ */
2466
+ slug?: string;
2467
+ /** ID of the entity associated with the event. */
2468
+ entityId?: string;
2469
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2470
+ eventTime?: Date | null;
2471
+ /**
2472
+ * Whether the event was triggered as a result of a privacy regulation application
2473
+ * (for example, GDPR).
2474
+ */
2475
+ triggeredByAnonymizeRequest?: boolean | null;
2476
+ /** If present, indicates the action that triggered the event. */
2477
+ originatedFrom?: string | null;
2478
+ /**
2479
+ * A sequence number defining the order of updates to the underlying entity.
2480
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2481
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2482
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2483
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2484
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2485
+ */
2486
+ entityEventSequence?: string | null;
2487
+ }
2488
+ /** @oneof */
2489
+ interface DomainEventBodyOneOf$8 {
2490
+ createdEvent?: EntityCreatedEvent$8;
2491
+ updatedEvent?: EntityUpdatedEvent$8;
2492
+ deletedEvent?: EntityDeletedEvent$8;
2493
+ actionEvent?: ActionEvent$8;
2494
+ }
2495
+ interface EntityCreatedEvent$8 {
2496
+ entity?: string;
2497
+ }
2498
+ interface RestoreInfo$8 {
2499
+ deletedDate?: Date | null;
2500
+ }
2501
+ interface EntityUpdatedEvent$8 {
2502
+ /**
2503
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2504
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2505
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2506
+ */
2507
+ currentEntity?: string;
2508
+ }
2509
+ interface EntityDeletedEvent$8 {
2510
+ /** Entity that was deleted */
2511
+ deletedEntity?: string | null;
2512
+ }
2513
+ interface ActionEvent$8 {
2514
+ body?: string;
2515
+ }
2446
2516
  interface EventUpdated$3 {
2447
2517
  /** Event update timestamp in ISO UTC format. */
2448
2518
  timestamp?: Date | null;
@@ -3704,76 +3774,6 @@ interface OrderPaid$1 {
3704
3774
  /** Invoice. */
3705
3775
  invoice?: Invoice$1;
3706
3776
  }
3707
- interface DomainEvent$8 extends DomainEventBodyOneOf$8 {
3708
- createdEvent?: EntityCreatedEvent$8;
3709
- updatedEvent?: EntityUpdatedEvent$8;
3710
- deletedEvent?: EntityDeletedEvent$8;
3711
- actionEvent?: ActionEvent$8;
3712
- /**
3713
- * Unique event ID.
3714
- * Allows clients to ignore duplicate webhooks.
3715
- */
3716
- _id?: string;
3717
- /**
3718
- * Assumes actions are also always typed to an entity_type
3719
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3720
- */
3721
- entityFqdn?: string;
3722
- /**
3723
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3724
- * This is although the created/updated/deleted notion is duplication of the oneof types
3725
- * Example: created/updated/deleted/started/completed/email_opened
3726
- */
3727
- slug?: string;
3728
- /** ID of the entity associated with the event. */
3729
- entityId?: string;
3730
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3731
- eventTime?: Date | null;
3732
- /**
3733
- * Whether the event was triggered as a result of a privacy regulation application
3734
- * (for example, GDPR).
3735
- */
3736
- triggeredByAnonymizeRequest?: boolean | null;
3737
- /** If present, indicates the action that triggered the event. */
3738
- originatedFrom?: string | null;
3739
- /**
3740
- * A sequence number defining the order of updates to the underlying entity.
3741
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
3742
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3743
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3744
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
3745
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3746
- */
3747
- entityEventSequence?: string | null;
3748
- }
3749
- /** @oneof */
3750
- interface DomainEventBodyOneOf$8 {
3751
- createdEvent?: EntityCreatedEvent$8;
3752
- updatedEvent?: EntityUpdatedEvent$8;
3753
- deletedEvent?: EntityDeletedEvent$8;
3754
- actionEvent?: ActionEvent$8;
3755
- }
3756
- interface EntityCreatedEvent$8 {
3757
- entity?: string;
3758
- }
3759
- interface RestoreInfo$8 {
3760
- deletedDate?: Date | null;
3761
- }
3762
- interface EntityUpdatedEvent$8 {
3763
- /**
3764
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3765
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3766
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3767
- */
3768
- currentEntity?: string;
3769
- }
3770
- interface EntityDeletedEvent$8 {
3771
- /** Entity that was deleted */
3772
- deletedEntity?: string | null;
3773
- }
3774
- interface ActionEvent$8 {
3775
- body?: string;
3776
- }
3777
3777
  interface TicketPdfResolved {
3778
3778
  /** Optional order number */
3779
3779
  orderNumber?: string | null;