@wix/motion 1.0.38 → 1.0.39

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/motion",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@wix/motion_alarms": "1.0.8",
22
22
  "@wix/motion_metroinspector": "1.0.5",
23
- "@wix/motion_products": "1.0.7"
23
+ "@wix/motion_products": "1.0.8"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "78cfcfe8e6068b5eb38831eedc293de06d4d9f9ac014acff8c2da3d0"
48
+ "falconPackageHash": "618c0372961d899242c8295b4f95a23c77914c34c8283af99e1684d9"
49
49
  }
@@ -23,11 +23,11 @@ interface UpdateAlarmRequest {
23
23
  interface UpdateAlarmResponse {
24
24
  alarm?: AlarmMessage;
25
25
  }
26
- interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
27
- createdEvent?: EntityCreatedEvent$1;
28
- updatedEvent?: EntityUpdatedEvent$1;
29
- deletedEvent?: EntityDeletedEvent$1;
30
- actionEvent?: ActionEvent$1;
26
+ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
27
+ createdEvent?: EntityCreatedEvent$2;
28
+ updatedEvent?: EntityUpdatedEvent$2;
29
+ deletedEvent?: EntityDeletedEvent$2;
30
+ actionEvent?: ActionEvent$2;
31
31
  /**
32
32
  * Unique event ID.
33
33
  * Allows clients to ignore duplicate webhooks.
@@ -66,16 +66,16 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
66
66
  entityEventSequence?: string | null;
67
67
  }
68
68
  /** @oneof */
69
- interface DomainEventBodyOneOf$1 {
70
- createdEvent?: EntityCreatedEvent$1;
71
- updatedEvent?: EntityUpdatedEvent$1;
72
- deletedEvent?: EntityDeletedEvent$1;
73
- actionEvent?: ActionEvent$1;
69
+ interface DomainEventBodyOneOf$2 {
70
+ createdEvent?: EntityCreatedEvent$2;
71
+ updatedEvent?: EntityUpdatedEvent$2;
72
+ deletedEvent?: EntityDeletedEvent$2;
73
+ actionEvent?: ActionEvent$2;
74
74
  }
75
- interface EntityCreatedEvent$1 {
75
+ interface EntityCreatedEvent$2 {
76
76
  entity?: string;
77
77
  }
78
- interface EntityUpdatedEvent$1 {
78
+ interface EntityUpdatedEvent$2 {
79
79
  /**
80
80
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
81
81
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -83,24 +83,24 @@ interface EntityUpdatedEvent$1 {
83
83
  */
84
84
  currentEntity?: string;
85
85
  }
86
- interface EntityDeletedEvent$1 {
86
+ interface EntityDeletedEvent$2 {
87
87
  /** Entity that was deleted */
88
88
  deletedEntity?: string | null;
89
89
  }
90
- interface ActionEvent$1 {
90
+ interface ActionEvent$2 {
91
91
  body?: string;
92
92
  }
93
- interface MessageEnvelope$1 {
93
+ interface MessageEnvelope$2 {
94
94
  /** App instance ID. */
95
95
  instanceId?: string | null;
96
96
  /** Event type. */
97
97
  eventType?: string;
98
98
  /** The identification type and identity data. */
99
- identity?: IdentificationData$1;
99
+ identity?: IdentificationData$2;
100
100
  /** Stringify payload. */
101
101
  data?: string;
102
102
  }
103
- interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
103
+ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
104
104
  /** ID of a site visitor that has not logged in to the site. */
105
105
  anonymousVisitorId?: string;
106
106
  /** ID of a site visitor that has logged in to the site. */
@@ -110,10 +110,10 @@ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
110
110
  /** ID of an app. */
111
111
  appId?: string;
112
112
  /** @readonly */
113
- identityType?: WebhookIdentityType$1;
113
+ identityType?: WebhookIdentityType$2;
114
114
  }
115
115
  /** @oneof */
116
- interface IdentificationDataIdOneOf$1 {
116
+ interface IdentificationDataIdOneOf$2 {
117
117
  /** ID of a site visitor that has not logged in to the site. */
118
118
  anonymousVisitorId?: string;
119
119
  /** ID of a site visitor that has logged in to the site. */
@@ -123,7 +123,7 @@ interface IdentificationDataIdOneOf$1 {
123
123
  /** ID of an app. */
124
124
  appId?: string;
125
125
  }
126
- declare enum WebhookIdentityType$1 {
126
+ declare enum WebhookIdentityType$2 {
127
127
  UNKNOWN = "UNKNOWN",
128
128
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
129
129
  MEMBER = "MEMBER",
@@ -150,7 +150,7 @@ interface BaseEventMetadata$1 {
150
150
  /** Event type. */
151
151
  eventType?: string;
152
152
  /** The identification type and identity data. */
153
- identity?: IdentificationData$1;
153
+ identity?: IdentificationData$2;
154
154
  }
155
155
  interface EventMetadata$1 extends BaseEventMetadata$1 {
156
156
  /**
@@ -274,7 +274,7 @@ declare const index_d$2_onAlarmSnoozed: typeof onAlarmSnoozed;
274
274
  declare const index_d$2_onAlarmTriggered: typeof onAlarmTriggered;
275
275
  declare const index_d$2_updateAlarm: typeof updateAlarm;
276
276
  declare namespace index_d$2 {
277
- export { type ActionEvent$1 as ActionEvent, type index_d$2_AlarmDeleted as AlarmDeleted, type index_d$2_AlarmDeletedEnvelope as AlarmDeletedEnvelope, type index_d$2_AlarmMessage as AlarmMessage, type index_d$2_AlarmOptions as AlarmOptions, type index_d$2_AlarmRequest as AlarmRequest, type index_d$2_AlarmRequestRequiredFields as AlarmRequestRequiredFields, type index_d$2_AlarmResponse as AlarmResponse, type index_d$2_AlarmSnoozed as AlarmSnoozed, type index_d$2_AlarmSnoozedEnvelope as AlarmSnoozedEnvelope, type index_d$2_AlarmTriggered as AlarmTriggered, type index_d$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_UpdateAlarm as UpdateAlarm, type index_d$2_UpdateAlarmRequest as UpdateAlarmRequest, type index_d$2_UpdateAlarmRequestRequiredFields as UpdateAlarmRequestRequiredFields, type index_d$2_UpdateAlarmResponse as UpdateAlarmResponse, type index_d$2_UpdateAlarmResponseNonNullableFields as UpdateAlarmResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_alarm as alarm, index_d$2_onAlarmDeleted as onAlarmDeleted, index_d$2_onAlarmSnoozed as onAlarmSnoozed, index_d$2_onAlarmTriggered as onAlarmTriggered, index_d$2_updateAlarm as updateAlarm };
277
+ export { type ActionEvent$2 as ActionEvent, type index_d$2_AlarmDeleted as AlarmDeleted, type index_d$2_AlarmDeletedEnvelope as AlarmDeletedEnvelope, type index_d$2_AlarmMessage as AlarmMessage, type index_d$2_AlarmOptions as AlarmOptions, type index_d$2_AlarmRequest as AlarmRequest, type index_d$2_AlarmRequestRequiredFields as AlarmRequestRequiredFields, type index_d$2_AlarmResponse as AlarmResponse, type index_d$2_AlarmSnoozed as AlarmSnoozed, type index_d$2_AlarmSnoozedEnvelope as AlarmSnoozedEnvelope, type index_d$2_AlarmTriggered as AlarmTriggered, type index_d$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_UpdateAlarm as UpdateAlarm, type index_d$2_UpdateAlarmRequest as UpdateAlarmRequest, type index_d$2_UpdateAlarmRequestRequiredFields as UpdateAlarmRequestRequiredFields, type index_d$2_UpdateAlarmResponse as UpdateAlarmResponse, type index_d$2_UpdateAlarmResponseNonNullableFields as UpdateAlarmResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_alarm as alarm, index_d$2_onAlarmDeleted as onAlarmDeleted, index_d$2_onAlarmSnoozed as onAlarmSnoozed, index_d$2_onAlarmTriggered as onAlarmTriggered, index_d$2_updateAlarm as updateAlarm };
278
278
  }
279
279
 
280
280
  interface MessageItem {
@@ -301,11 +301,11 @@ interface Dispatched {
301
301
  /** the message someone says */
302
302
  echo?: EchoMessage;
303
303
  }
304
- interface DomainEvent extends DomainEventBodyOneOf {
305
- createdEvent?: EntityCreatedEvent;
306
- updatedEvent?: EntityUpdatedEvent;
307
- deletedEvent?: EntityDeletedEvent;
308
- actionEvent?: ActionEvent;
304
+ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
305
+ createdEvent?: EntityCreatedEvent$1;
306
+ updatedEvent?: EntityUpdatedEvent$1;
307
+ deletedEvent?: EntityDeletedEvent$1;
308
+ actionEvent?: ActionEvent$1;
309
309
  /**
310
310
  * Unique event ID.
311
311
  * Allows clients to ignore duplicate webhooks.
@@ -344,16 +344,16 @@ interface DomainEvent extends DomainEventBodyOneOf {
344
344
  entityEventSequence?: string | null;
345
345
  }
346
346
  /** @oneof */
347
- interface DomainEventBodyOneOf {
348
- createdEvent?: EntityCreatedEvent;
349
- updatedEvent?: EntityUpdatedEvent;
350
- deletedEvent?: EntityDeletedEvent;
351
- actionEvent?: ActionEvent;
347
+ interface DomainEventBodyOneOf$1 {
348
+ createdEvent?: EntityCreatedEvent$1;
349
+ updatedEvent?: EntityUpdatedEvent$1;
350
+ deletedEvent?: EntityDeletedEvent$1;
351
+ actionEvent?: ActionEvent$1;
352
352
  }
353
- interface EntityCreatedEvent {
353
+ interface EntityCreatedEvent$1 {
354
354
  entity?: string;
355
355
  }
356
- interface EntityUpdatedEvent {
356
+ interface EntityUpdatedEvent$1 {
357
357
  /**
358
358
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
359
359
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -361,24 +361,24 @@ interface EntityUpdatedEvent {
361
361
  */
362
362
  currentEntity?: string;
363
363
  }
364
- interface EntityDeletedEvent {
364
+ interface EntityDeletedEvent$1 {
365
365
  /** Entity that was deleted */
366
366
  deletedEntity?: string | null;
367
367
  }
368
- interface ActionEvent {
368
+ interface ActionEvent$1 {
369
369
  body?: string;
370
370
  }
371
- interface MessageEnvelope {
371
+ interface MessageEnvelope$1 {
372
372
  /** App instance ID. */
373
373
  instanceId?: string | null;
374
374
  /** Event type. */
375
375
  eventType?: string;
376
376
  /** The identification type and identity data. */
377
- identity?: IdentificationData;
377
+ identity?: IdentificationData$1;
378
378
  /** Stringify payload. */
379
379
  data?: string;
380
380
  }
381
- interface IdentificationData extends IdentificationDataIdOneOf {
381
+ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
382
382
  /** ID of a site visitor that has not logged in to the site. */
383
383
  anonymousVisitorId?: string;
384
384
  /** ID of a site visitor that has logged in to the site. */
@@ -388,10 +388,10 @@ interface IdentificationData extends IdentificationDataIdOneOf {
388
388
  /** ID of an app. */
389
389
  appId?: string;
390
390
  /** @readonly */
391
- identityType?: WebhookIdentityType;
391
+ identityType?: WebhookIdentityType$1;
392
392
  }
393
393
  /** @oneof */
394
- interface IdentificationDataIdOneOf {
394
+ interface IdentificationDataIdOneOf$1 {
395
395
  /** ID of a site visitor that has not logged in to the site. */
396
396
  anonymousVisitorId?: string;
397
397
  /** ID of a site visitor that has logged in to the site. */
@@ -401,7 +401,7 @@ interface IdentificationDataIdOneOf {
401
401
  /** ID of an app. */
402
402
  appId?: string;
403
403
  }
404
- declare enum WebhookIdentityType {
404
+ declare enum WebhookIdentityType$1 {
405
405
  UNKNOWN = "UNKNOWN",
406
406
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
407
407
  MEMBER = "MEMBER",
@@ -431,7 +431,7 @@ interface BaseEventMetadata {
431
431
  /** Event type. */
432
432
  eventType?: string;
433
433
  /** The identification type and identity data. */
434
- identity?: IdentificationData;
434
+ identity?: IdentificationData$1;
435
435
  }
436
436
  interface EventMetadata extends BaseEventMetadata {
437
437
  /**
@@ -490,11 +490,8 @@ declare const __metadata$1: {
490
490
  declare function echo(httpClient: HttpClient): (arg1: string, options?: EchoOptions) => Promise<string>;
491
491
  declare const onEchoDispatched: EventDefinition<EchoDispatchedEnvelope, "wix.metroinspector.v1.echo_dispatched">;
492
492
 
493
- type index_d$1_ActionEvent = ActionEvent;
494
493
  type index_d$1_BaseEventMetadata = BaseEventMetadata;
495
494
  type index_d$1_Dispatched = Dispatched;
496
- type index_d$1_DomainEvent = DomainEvent;
497
- type index_d$1_DomainEventBodyOneOf = DomainEventBodyOneOf;
498
495
  type index_d$1_EchoDispatchedEnvelope = EchoDispatchedEnvelope;
499
496
  type index_d$1_EchoMessage = EchoMessage;
500
497
  type index_d$1_EchoOptions = EchoOptions;
@@ -502,20 +499,12 @@ type index_d$1_EchoRequest = EchoRequest;
502
499
  type index_d$1_EchoRequestRequiredFields = EchoRequestRequiredFields;
503
500
  type index_d$1_EchoResponse = EchoResponse;
504
501
  type index_d$1_EchoResponseNonNullableFields = EchoResponseNonNullableFields;
505
- type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
506
- type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
507
- type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
508
502
  type index_d$1_EventMetadata = EventMetadata;
509
- type index_d$1_IdentificationData = IdentificationData;
510
- type index_d$1_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
511
- type index_d$1_MessageEnvelope = MessageEnvelope;
512
503
  type index_d$1_MessageItem = MessageItem;
513
- type index_d$1_WebhookIdentityType = WebhookIdentityType;
514
- declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
515
504
  declare const index_d$1_echo: typeof echo;
516
505
  declare const index_d$1_onEchoDispatched: typeof onEchoDispatched;
517
506
  declare namespace index_d$1 {
518
- export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_Dispatched as Dispatched, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EchoDispatchedEnvelope as EchoDispatchedEnvelope, type index_d$1_EchoMessage as EchoMessage, type index_d$1_EchoOptions as EchoOptions, type index_d$1_EchoRequest as EchoRequest, type index_d$1_EchoRequestRequiredFields as EchoRequestRequiredFields, type index_d$1_EchoResponse as EchoResponse, type index_d$1_EchoResponseNonNullableFields as EchoResponseNonNullableFields, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MessageItem as MessageItem, index_d$1_WebhookIdentityType as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_echo as echo, index_d$1_onEchoDispatched as onEchoDispatched };
507
+ export { type ActionEvent$1 as ActionEvent, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_Dispatched as Dispatched, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_EchoDispatchedEnvelope as EchoDispatchedEnvelope, type index_d$1_EchoMessage as EchoMessage, type index_d$1_EchoOptions as EchoOptions, type index_d$1_EchoRequest as EchoRequest, type index_d$1_EchoRequestRequiredFields as EchoRequestRequiredFields, type index_d$1_EchoResponse as EchoResponse, type index_d$1_EchoResponseNonNullableFields as EchoResponseNonNullableFields, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_MessageItem as MessageItem, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_echo as echo, index_d$1_onEchoDispatched as onEchoDispatched };
519
508
  }
520
509
 
521
510
  /** Physical address */
@@ -820,6 +809,113 @@ interface ResetProductsDbRequest {
820
809
  }
821
810
  interface ResetProductsDbResponse {
822
811
  }
812
+ interface DomainEvent extends DomainEventBodyOneOf {
813
+ createdEvent?: EntityCreatedEvent;
814
+ updatedEvent?: EntityUpdatedEvent;
815
+ deletedEvent?: EntityDeletedEvent;
816
+ actionEvent?: ActionEvent;
817
+ /**
818
+ * Unique event ID.
819
+ * Allows clients to ignore duplicate webhooks.
820
+ */
821
+ _id?: string;
822
+ /**
823
+ * Assumes actions are also always typed to an entity_type
824
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
825
+ */
826
+ entityFqdn?: string;
827
+ /**
828
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
829
+ * This is although the created/updated/deleted notion is duplication of the oneof types
830
+ * Example: created/updated/deleted/started/completed/email_opened
831
+ */
832
+ slug?: string;
833
+ /** ID of the entity associated with the event. */
834
+ entityId?: string;
835
+ /** Event timestamp. */
836
+ eventTime?: Date;
837
+ /**
838
+ * Whether the event was triggered as a result of a privacy regulation application
839
+ * (for example, GDPR).
840
+ */
841
+ triggeredByAnonymizeRequest?: boolean | null;
842
+ /** If present, indicates the action that triggered the event. */
843
+ originatedFrom?: string | null;
844
+ /**
845
+ * A sequence number defining the order of updates to the underlying entity.
846
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
847
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
848
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
849
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
850
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
851
+ */
852
+ entityEventSequence?: string | null;
853
+ }
854
+ /** @oneof */
855
+ interface DomainEventBodyOneOf {
856
+ createdEvent?: EntityCreatedEvent;
857
+ updatedEvent?: EntityUpdatedEvent;
858
+ deletedEvent?: EntityDeletedEvent;
859
+ actionEvent?: ActionEvent;
860
+ }
861
+ interface EntityCreatedEvent {
862
+ entity?: string;
863
+ }
864
+ interface EntityUpdatedEvent {
865
+ /**
866
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
867
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
868
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
869
+ */
870
+ currentEntity?: string;
871
+ }
872
+ interface EntityDeletedEvent {
873
+ /** Entity that was deleted */
874
+ deletedEntity?: string | null;
875
+ }
876
+ interface ActionEvent {
877
+ body?: string;
878
+ }
879
+ interface MessageEnvelope {
880
+ /** App instance ID. */
881
+ instanceId?: string | null;
882
+ /** Event type. */
883
+ eventType?: string;
884
+ /** The identification type and identity data. */
885
+ identity?: IdentificationData;
886
+ /** Stringify payload. */
887
+ data?: string;
888
+ }
889
+ interface IdentificationData extends IdentificationDataIdOneOf {
890
+ /** ID of a site visitor that has not logged in to the site. */
891
+ anonymousVisitorId?: string;
892
+ /** ID of a site visitor that has logged in to the site. */
893
+ memberId?: string;
894
+ /** ID of a Wix user (site owner, contributor, etc.). */
895
+ wixUserId?: string;
896
+ /** ID of an app. */
897
+ appId?: string;
898
+ /** @readonly */
899
+ identityType?: WebhookIdentityType;
900
+ }
901
+ /** @oneof */
902
+ interface IdentificationDataIdOneOf {
903
+ /** ID of a site visitor that has not logged in to the site. */
904
+ anonymousVisitorId?: string;
905
+ /** ID of a site visitor that has logged in to the site. */
906
+ memberId?: string;
907
+ /** ID of a Wix user (site owner, contributor, etc.). */
908
+ wixUserId?: string;
909
+ /** ID of an app. */
910
+ appId?: string;
911
+ }
912
+ declare enum WebhookIdentityType {
913
+ UNKNOWN = "UNKNOWN",
914
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
915
+ MEMBER = "MEMBER",
916
+ WIX_USER = "WIX_USER",
917
+ APP = "APP"
918
+ }
823
919
  interface CreateProductRequestRequiredFields {
824
920
  product?: {
825
921
  title: string;
@@ -1264,6 +1360,7 @@ declare function bulkCreateProducts(httpClient: HttpClient): (products: Product[
1264
1360
  declare function bulkUpdateProducts(httpClient: HttpClient): (products: MaskedProduct[], options?: BulkUpdateProductsOptions) => Promise<BulkUpdateProductsResponse & BulkUpdateProductsResponseNonNullableFields>;
1265
1361
  declare function bulkDeleteProducts(httpClient: HttpClient): (productIds: string[]) => Promise<BulkDeleteProductsResponse & BulkDeleteProductsResponseNonNullableFields>;
1266
1362
 
1363
+ type index_d_ActionEvent = ActionEvent;
1267
1364
  type index_d_Address = Address;
1268
1365
  type index_d_AddressLocation = AddressLocation;
1269
1366
  type index_d_AddressStreetOneOf = AddressStreetOneOf;
@@ -1297,6 +1394,11 @@ type index_d_Cursors = Cursors;
1297
1394
  type index_d_DeleteProductRequest = DeleteProductRequest;
1298
1395
  type index_d_DeleteProductRequestRequiredFields = DeleteProductRequestRequiredFields;
1299
1396
  type index_d_DeleteProductResponse = DeleteProductResponse;
1397
+ type index_d_DomainEvent = DomainEvent;
1398
+ type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
1399
+ type index_d_EntityCreatedEvent = EntityCreatedEvent;
1400
+ type index_d_EntityDeletedEvent = EntityDeletedEvent;
1401
+ type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
1300
1402
  type index_d_GetProductRequest = GetProductRequest;
1301
1403
  type index_d_GetProductRequestRequiredFields = GetProductRequestRequiredFields;
1302
1404
  type index_d_GetProductResponse = GetProductResponse;
@@ -1306,10 +1408,13 @@ type index_d_GetProductsStartWithRequest = GetProductsStartWithRequest;
1306
1408
  type index_d_GetProductsStartWithRequestRequiredFields = GetProductsStartWithRequestRequiredFields;
1307
1409
  type index_d_GetProductsStartWithResponse = GetProductsStartWithResponse;
1308
1410
  type index_d_GetProductsStartWithResponseNonNullableFields = GetProductsStartWithResponseNonNullableFields;
1411
+ type index_d_IdentificationData = IdentificationData;
1412
+ type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
1309
1413
  type index_d_ItemMetadata = ItemMetadata;
1310
1414
  type index_d_LinkRel = LinkRel;
1311
1415
  declare const index_d_LinkRel: typeof LinkRel;
1312
1416
  type index_d_MaskedProduct = MaskedProduct;
1417
+ type index_d_MessageEnvelope = MessageEnvelope;
1313
1418
  type index_d_MyAddress = MyAddress;
1314
1419
  type index_d_PageLink = PageLink;
1315
1420
  type index_d_Paging = Paging;
@@ -1341,6 +1446,8 @@ type index_d_UpdateProductResponse = UpdateProductResponse;
1341
1446
  type index_d_UpdateProductResponseNonNullableFields = UpdateProductResponseNonNullableFields;
1342
1447
  type index_d_Variant = Variant;
1343
1448
  type index_d_VideoResolution = VideoResolution;
1449
+ type index_d_WebhookIdentityType = WebhookIdentityType;
1450
+ declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1344
1451
  declare const index_d___metadata: typeof __metadata;
1345
1452
  declare const index_d_bulkCreateProducts: typeof bulkCreateProducts;
1346
1453
  declare const index_d_bulkDeleteProducts: typeof bulkDeleteProducts;
@@ -1352,7 +1459,7 @@ declare const index_d_getProductsStartWith: typeof getProductsStartWith;
1352
1459
  declare const index_d_queryProducts: typeof queryProducts;
1353
1460
  declare const index_d_updateProduct: typeof updateProduct;
1354
1461
  declare namespace index_d {
1355
- export { type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_ApplicationError as ApplicationError, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkCreateProductsOptions as BulkCreateProductsOptions, type index_d_BulkCreateProductsRequest as BulkCreateProductsRequest, type index_d_BulkCreateProductsRequestRequiredFields as BulkCreateProductsRequestRequiredFields, type index_d_BulkCreateProductsResponse as BulkCreateProductsResponse, type index_d_BulkCreateProductsResponseNonNullableFields as BulkCreateProductsResponseNonNullableFields, type index_d_BulkDeleteProductsRequest as BulkDeleteProductsRequest, type index_d_BulkDeleteProductsRequestRequiredFields as BulkDeleteProductsRequestRequiredFields, type index_d_BulkDeleteProductsResponse as BulkDeleteProductsResponse, type index_d_BulkDeleteProductsResponseBulkProductResult as BulkDeleteProductsResponseBulkProductResult, type index_d_BulkDeleteProductsResponseNonNullableFields as BulkDeleteProductsResponseNonNullableFields, type index_d_BulkProductResult as BulkProductResult, type index_d_BulkUpdateProductsOptions as BulkUpdateProductsOptions, type index_d_BulkUpdateProductsRequest as BulkUpdateProductsRequest, type index_d_BulkUpdateProductsRequestRequiredFields as BulkUpdateProductsRequestRequiredFields, type index_d_BulkUpdateProductsResponse as BulkUpdateProductsResponse, type index_d_BulkUpdateProductsResponseBulkProductResult as BulkUpdateProductsResponseBulkProductResult, type index_d_BulkUpdateProductsResponseNonNullableFields as BulkUpdateProductsResponseNonNullableFields, type index_d_CreateProductOptions as CreateProductOptions, type index_d_CreateProductOptionsRequiredFields as CreateProductOptionsRequiredFields, type index_d_CreateProductRequest as CreateProductRequest, type index_d_CreateProductRequestRequiredFields as CreateProductRequestRequiredFields, type index_d_CreateProductResponse as CreateProductResponse, type index_d_CreateProductResponseNonNullableFields as CreateProductResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteProductRequest as DeleteProductRequest, type index_d_DeleteProductRequestRequiredFields as DeleteProductRequestRequiredFields, type index_d_DeleteProductResponse as DeleteProductResponse, type index_d_GetProductRequest as GetProductRequest, type index_d_GetProductRequestRequiredFields as GetProductRequestRequiredFields, type index_d_GetProductResponse as GetProductResponse, type index_d_GetProductResponseNonNullableFields as GetProductResponseNonNullableFields, type index_d_GetProductsStartWithOptions as GetProductsStartWithOptions, type index_d_GetProductsStartWithRequest as GetProductsStartWithRequest, type index_d_GetProductsStartWithRequestRequiredFields as GetProductsStartWithRequestRequiredFields, type index_d_GetProductsStartWithResponse as GetProductsStartWithResponse, type index_d_GetProductsStartWithResponseNonNullableFields as GetProductsStartWithResponseNonNullableFields, type index_d_ItemMetadata as ItemMetadata, index_d_LinkRel as LinkRel, type index_d_MaskedProduct as MaskedProduct, type index_d_MyAddress as MyAddress, type index_d_PageLink as PageLink, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Product as Product, type index_d_ProductsQueryBuilder as ProductsQueryBuilder, type index_d_ProductsQueryResult as ProductsQueryResult, type index_d_QueryProductsOptions as QueryProductsOptions, type index_d_QueryProductsRequest as QueryProductsRequest, type index_d_QueryProductsResponse as QueryProductsResponse, type index_d_QueryProductsResponseNonNullableFields as QueryProductsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_ResetProductsDbRequest as ResetProductsDbRequest, type index_d_ResetProductsDbResponse as ResetProductsDbResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_StandardDetails as StandardDetails, type index_d_StreetAddress as StreetAddress, type index_d_Subdivision as Subdivision, index_d_SubdivisionType as SubdivisionType, type index_d_UpdateProductOptions as UpdateProductOptions, type index_d_UpdateProductOptionsRequiredFields as UpdateProductOptionsRequiredFields, type index_d_UpdateProductRequest as UpdateProductRequest, type index_d_UpdateProductRequestRequiredFields as UpdateProductRequestRequiredFields, type index_d_UpdateProductResponse as UpdateProductResponse, type index_d_UpdateProductResponseNonNullableFields as UpdateProductResponseNonNullableFields, type index_d_Variant as Variant, type index_d_VideoResolution as VideoResolution, index_d___metadata as __metadata, index_d_bulkCreateProducts as bulkCreateProducts, index_d_bulkDeleteProducts as bulkDeleteProducts, index_d_bulkUpdateProducts as bulkUpdateProducts, index_d_createProduct as createProduct, index_d_deleteProduct as deleteProduct, index_d_getProduct as getProduct, index_d_getProductsStartWith as getProductsStartWith, index_d_queryProducts as queryProducts, index_d_updateProduct as updateProduct };
1462
+ export { type index_d_ActionEvent as ActionEvent, type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_ApplicationError as ApplicationError, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkCreateProductsOptions as BulkCreateProductsOptions, type index_d_BulkCreateProductsRequest as BulkCreateProductsRequest, type index_d_BulkCreateProductsRequestRequiredFields as BulkCreateProductsRequestRequiredFields, type index_d_BulkCreateProductsResponse as BulkCreateProductsResponse, type index_d_BulkCreateProductsResponseNonNullableFields as BulkCreateProductsResponseNonNullableFields, type index_d_BulkDeleteProductsRequest as BulkDeleteProductsRequest, type index_d_BulkDeleteProductsRequestRequiredFields as BulkDeleteProductsRequestRequiredFields, type index_d_BulkDeleteProductsResponse as BulkDeleteProductsResponse, type index_d_BulkDeleteProductsResponseBulkProductResult as BulkDeleteProductsResponseBulkProductResult, type index_d_BulkDeleteProductsResponseNonNullableFields as BulkDeleteProductsResponseNonNullableFields, type index_d_BulkProductResult as BulkProductResult, type index_d_BulkUpdateProductsOptions as BulkUpdateProductsOptions, type index_d_BulkUpdateProductsRequest as BulkUpdateProductsRequest, type index_d_BulkUpdateProductsRequestRequiredFields as BulkUpdateProductsRequestRequiredFields, type index_d_BulkUpdateProductsResponse as BulkUpdateProductsResponse, type index_d_BulkUpdateProductsResponseBulkProductResult as BulkUpdateProductsResponseBulkProductResult, type index_d_BulkUpdateProductsResponseNonNullableFields as BulkUpdateProductsResponseNonNullableFields, type index_d_CreateProductOptions as CreateProductOptions, type index_d_CreateProductOptionsRequiredFields as CreateProductOptionsRequiredFields, type index_d_CreateProductRequest as CreateProductRequest, type index_d_CreateProductRequestRequiredFields as CreateProductRequestRequiredFields, type index_d_CreateProductResponse as CreateProductResponse, type index_d_CreateProductResponseNonNullableFields as CreateProductResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteProductRequest as DeleteProductRequest, type index_d_DeleteProductRequestRequiredFields as DeleteProductRequestRequiredFields, type index_d_DeleteProductResponse as DeleteProductResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_GetProductRequest as GetProductRequest, type index_d_GetProductRequestRequiredFields as GetProductRequestRequiredFields, type index_d_GetProductResponse as GetProductResponse, type index_d_GetProductResponseNonNullableFields as GetProductResponseNonNullableFields, type index_d_GetProductsStartWithOptions as GetProductsStartWithOptions, type index_d_GetProductsStartWithRequest as GetProductsStartWithRequest, type index_d_GetProductsStartWithRequestRequiredFields as GetProductsStartWithRequestRequiredFields, type index_d_GetProductsStartWithResponse as GetProductsStartWithResponse, type index_d_GetProductsStartWithResponseNonNullableFields as GetProductsStartWithResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemMetadata as ItemMetadata, index_d_LinkRel as LinkRel, type index_d_MaskedProduct as MaskedProduct, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MyAddress as MyAddress, type index_d_PageLink as PageLink, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Product as Product, type index_d_ProductsQueryBuilder as ProductsQueryBuilder, type index_d_ProductsQueryResult as ProductsQueryResult, type index_d_QueryProductsOptions as QueryProductsOptions, type index_d_QueryProductsRequest as QueryProductsRequest, type index_d_QueryProductsResponse as QueryProductsResponse, type index_d_QueryProductsResponseNonNullableFields as QueryProductsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_ResetProductsDbRequest as ResetProductsDbRequest, type index_d_ResetProductsDbResponse as ResetProductsDbResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_StandardDetails as StandardDetails, type index_d_StreetAddress as StreetAddress, type index_d_Subdivision as Subdivision, index_d_SubdivisionType as SubdivisionType, type index_d_UpdateProductOptions as UpdateProductOptions, type index_d_UpdateProductOptionsRequiredFields as UpdateProductOptionsRequiredFields, type index_d_UpdateProductRequest as UpdateProductRequest, type index_d_UpdateProductRequestRequiredFields as UpdateProductRequestRequiredFields, type index_d_UpdateProductResponse as UpdateProductResponse, type index_d_UpdateProductResponseNonNullableFields as UpdateProductResponseNonNullableFields, type index_d_Variant as Variant, type index_d_VideoResolution as VideoResolution, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_bulkCreateProducts as bulkCreateProducts, index_d_bulkDeleteProducts as bulkDeleteProducts, index_d_bulkUpdateProducts as bulkUpdateProducts, index_d_createProduct as createProduct, index_d_deleteProduct as deleteProduct, index_d_getProduct as getProduct, index_d_getProductsStartWith as getProductsStartWith, index_d_queryProducts as queryProducts, index_d_updateProduct as updateProduct };
1356
1463
  }
1357
1464
 
1358
1465
  export { index_d$2 as alarms, index_d$1 as metroinspector, index_d as products };