@wix/motion 1.0.55 → 1.0.56

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.55",
3
+ "version": "1.0.56",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,7 +21,7 @@
21
21
  "type-bundles"
22
22
  ],
23
23
  "dependencies": {
24
- "@wix/motion_alarms": "1.0.20",
24
+ "@wix/motion_alarms": "1.0.21",
25
25
  "@wix/motion_metroinspector": "1.0.13",
26
26
  "@wix/motion_products": "1.0.16"
27
27
  },
@@ -48,5 +48,5 @@
48
48
  "fqdn": ""
49
49
  }
50
50
  },
51
- "falconPackageHash": "a2a4b8a68e56c9aa6c7bba6649a1c67613aaf8ef80d04624d64bbad4"
51
+ "falconPackageHash": "6b2495b32719946353c63c5d336cf88afe83c1942c520557c0cb2081"
52
52
  }
@@ -495,6 +495,10 @@ interface MessageItem$1 {
495
495
  /** inner_message comment from EchoMessage proto def */
496
496
  innerMessage?: string;
497
497
  }
498
+ interface AlarmTestRequest {
499
+ }
500
+ interface AlarmTestResponse {
501
+ }
498
502
  interface AlarmRequest {
499
503
  seconds: number;
500
504
  someString?: string;
@@ -687,16 +691,16 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
687
691
  */
688
692
  entityEventSequence?: string | null;
689
693
  }
690
- interface AlarmDeletedEnvelope {
691
- data: AlarmDeleted;
694
+ interface AlarmTriggeredEnvelope {
695
+ data: AlarmTriggered;
692
696
  metadata: EventMetadata$1;
693
697
  }
694
698
  interface AlarmSnoozedEnvelope {
695
699
  data: AlarmSnoozed;
696
700
  metadata: EventMetadata$1;
697
701
  }
698
- interface AlarmTriggeredEnvelope {
699
- data: AlarmTriggered;
702
+ interface AlarmDeletedEnvelope {
703
+ data: AlarmDeleted;
700
704
  metadata: EventMetadata$1;
701
705
  }
702
706
  interface AlarmOptions {
@@ -723,20 +727,20 @@ interface UpdateAlarmSignature {
723
727
  */
724
728
  (_id: string, alarm: UpdateAlarm): Promise<UpdateAlarmResponse & UpdateAlarmResponseNonNullableFields>;
725
729
  }
726
- declare const onAlarmDeleted$1: EventDefinition<AlarmDeletedEnvelope, "wix.alarm.v1.alarm_alarm_deleted">;
727
- declare const onAlarmSnoozed$1: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
728
730
  declare const onAlarmTriggered$1: EventDefinition<AlarmTriggeredEnvelope, "wix.alarm.v1.alarm_alarm_triggered">;
731
+ declare const onAlarmSnoozed$1: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
732
+ declare const onAlarmDeleted$1: EventDefinition<AlarmDeletedEnvelope, "wix.alarm.v1.alarm_alarm_deleted">;
729
733
 
730
734
  declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
731
735
 
732
736
  declare const alarm: MaybeContext<BuildRESTFunction<typeof alarm$1> & typeof alarm$1>;
733
737
  declare const updateAlarm: MaybeContext<BuildRESTFunction<typeof updateAlarm$1> & typeof updateAlarm$1>;
734
738
 
735
- type _publicOnAlarmDeletedType = typeof onAlarmDeleted$1;
739
+ type _publicOnAlarmTriggeredType = typeof onAlarmTriggered$1;
736
740
  /**
737
- * alarm event that might be consumed when alarm is deleted
741
+ * alarm event that might be consumed when alarm is triggered
738
742
  */
739
- declare const onAlarmDeleted: ReturnType<typeof createEventModule$1<_publicOnAlarmDeletedType>>;
743
+ declare const onAlarmTriggered: ReturnType<typeof createEventModule$1<_publicOnAlarmTriggeredType>>;
740
744
 
741
745
  type _publicOnAlarmSnoozedType = typeof onAlarmSnoozed$1;
742
746
  /**
@@ -744,11 +748,11 @@ type _publicOnAlarmSnoozedType = typeof onAlarmSnoozed$1;
744
748
  */
745
749
  declare const onAlarmSnoozed: ReturnType<typeof createEventModule$1<_publicOnAlarmSnoozedType>>;
746
750
 
747
- type _publicOnAlarmTriggeredType = typeof onAlarmTriggered$1;
751
+ type _publicOnAlarmDeletedType = typeof onAlarmDeleted$1;
748
752
  /**
749
- * alarm event that might be consumed when alarm is triggered
753
+ * alarm event that might be consumed when alarm is deleted
750
754
  */
751
- declare const onAlarmTriggered: ReturnType<typeof createEventModule$1<_publicOnAlarmTriggeredType>>;
755
+ declare const onAlarmDeleted: ReturnType<typeof createEventModule$1<_publicOnAlarmDeletedType>>;
752
756
 
753
757
  type context$2_AlarmDeleted = AlarmDeleted;
754
758
  type context$2_AlarmDeletedEnvelope = AlarmDeletedEnvelope;
@@ -759,6 +763,8 @@ type context$2_AlarmRequestRequiredFields = AlarmRequestRequiredFields;
759
763
  type context$2_AlarmResponse = AlarmResponse;
760
764
  type context$2_AlarmSnoozed = AlarmSnoozed;
761
765
  type context$2_AlarmSnoozedEnvelope = AlarmSnoozedEnvelope;
766
+ type context$2_AlarmTestRequest = AlarmTestRequest;
767
+ type context$2_AlarmTestResponse = AlarmTestResponse;
762
768
  type context$2_AlarmTriggered = AlarmTriggered;
763
769
  type context$2_AlarmTriggeredEnvelope = AlarmTriggeredEnvelope;
764
770
  type context$2_UpdateAlarm = UpdateAlarm;
@@ -775,7 +781,7 @@ declare const context$2_onAlarmSnoozed: typeof onAlarmSnoozed;
775
781
  declare const context$2_onAlarmTriggered: typeof onAlarmTriggered;
776
782
  declare const context$2_updateAlarm: typeof updateAlarm;
777
783
  declare namespace context$2 {
778
- export { type ActionEvent$1 as ActionEvent, type context$2_AlarmDeleted as AlarmDeleted, type context$2_AlarmDeletedEnvelope as AlarmDeletedEnvelope, type context$2_AlarmMessage as AlarmMessage, type context$2_AlarmOptions as AlarmOptions, type context$2_AlarmRequest as AlarmRequest, type context$2_AlarmRequestRequiredFields as AlarmRequestRequiredFields, type context$2_AlarmResponse as AlarmResponse, type context$2_AlarmSnoozed as AlarmSnoozed, type context$2_AlarmSnoozedEnvelope as AlarmSnoozedEnvelope, type context$2_AlarmTriggered as AlarmTriggered, type context$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type Dispatched$1 as Dispatched, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EchoMessage$1 as EchoMessage, 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 MessageItem$1 as MessageItem, type RestoreInfo$1 as RestoreInfo, type context$2_UpdateAlarm as UpdateAlarm, type context$2_UpdateAlarmRequest as UpdateAlarmRequest, type context$2_UpdateAlarmRequestRequiredFields as UpdateAlarmRequestRequiredFields, type context$2_UpdateAlarmResponse as UpdateAlarmResponse, type context$2_UpdateAlarmResponseNonNullableFields as UpdateAlarmResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$2__publicOnAlarmDeletedType as _publicOnAlarmDeletedType, type context$2__publicOnAlarmSnoozedType as _publicOnAlarmSnoozedType, type context$2__publicOnAlarmTriggeredType as _publicOnAlarmTriggeredType, context$2_alarm as alarm, context$2_onAlarmDeleted as onAlarmDeleted, context$2_onAlarmSnoozed as onAlarmSnoozed, context$2_onAlarmTriggered as onAlarmTriggered, onAlarmDeleted$1 as publicOnAlarmDeleted, onAlarmSnoozed$1 as publicOnAlarmSnoozed, onAlarmTriggered$1 as publicOnAlarmTriggered, context$2_updateAlarm as updateAlarm };
784
+ export { type ActionEvent$1 as ActionEvent, type context$2_AlarmDeleted as AlarmDeleted, type context$2_AlarmDeletedEnvelope as AlarmDeletedEnvelope, type context$2_AlarmMessage as AlarmMessage, type context$2_AlarmOptions as AlarmOptions, type context$2_AlarmRequest as AlarmRequest, type context$2_AlarmRequestRequiredFields as AlarmRequestRequiredFields, type context$2_AlarmResponse as AlarmResponse, type context$2_AlarmSnoozed as AlarmSnoozed, type context$2_AlarmSnoozedEnvelope as AlarmSnoozedEnvelope, type context$2_AlarmTestRequest as AlarmTestRequest, type context$2_AlarmTestResponse as AlarmTestResponse, type context$2_AlarmTriggered as AlarmTriggered, type context$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type Dispatched$1 as Dispatched, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EchoMessage$1 as EchoMessage, 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 MessageItem$1 as MessageItem, type RestoreInfo$1 as RestoreInfo, type context$2_UpdateAlarm as UpdateAlarm, type context$2_UpdateAlarmRequest as UpdateAlarmRequest, type context$2_UpdateAlarmRequestRequiredFields as UpdateAlarmRequestRequiredFields, type context$2_UpdateAlarmResponse as UpdateAlarmResponse, type context$2_UpdateAlarmResponseNonNullableFields as UpdateAlarmResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$2__publicOnAlarmDeletedType as _publicOnAlarmDeletedType, type context$2__publicOnAlarmSnoozedType as _publicOnAlarmSnoozedType, type context$2__publicOnAlarmTriggeredType as _publicOnAlarmTriggeredType, context$2_alarm as alarm, context$2_onAlarmDeleted as onAlarmDeleted, context$2_onAlarmSnoozed as onAlarmSnoozed, context$2_onAlarmTriggered as onAlarmTriggered, onAlarmDeleted$1 as publicOnAlarmDeleted, onAlarmSnoozed$1 as publicOnAlarmSnoozed, onAlarmTriggered$1 as publicOnAlarmTriggered, context$2_updateAlarm as updateAlarm };
779
785
  }
780
786
 
781
787
  interface MessageItem {
@@ -495,6 +495,10 @@ interface MessageItem$1 {
495
495
  /** inner_message comment from EchoMessage proto def */
496
496
  innerMessage?: string;
497
497
  }
498
+ interface AlarmTestRequest {
499
+ }
500
+ interface AlarmTestResponse {
501
+ }
498
502
  interface AlarmRequest {
499
503
  seconds: number;
500
504
  someString?: string;
@@ -687,16 +691,16 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
687
691
  */
688
692
  entityEventSequence?: string | null;
689
693
  }
690
- interface AlarmDeletedEnvelope {
691
- data: AlarmDeleted;
694
+ interface AlarmTriggeredEnvelope {
695
+ data: AlarmTriggered;
692
696
  metadata: EventMetadata$1;
693
697
  }
694
698
  interface AlarmSnoozedEnvelope {
695
699
  data: AlarmSnoozed;
696
700
  metadata: EventMetadata$1;
697
701
  }
698
- interface AlarmTriggeredEnvelope {
699
- data: AlarmTriggered;
702
+ interface AlarmDeletedEnvelope {
703
+ data: AlarmDeleted;
700
704
  metadata: EventMetadata$1;
701
705
  }
702
706
  interface AlarmOptions {
@@ -723,20 +727,20 @@ interface UpdateAlarmSignature {
723
727
  */
724
728
  (_id: string, alarm: UpdateAlarm): Promise<UpdateAlarmResponse & UpdateAlarmResponseNonNullableFields>;
725
729
  }
726
- declare const onAlarmDeleted$1: EventDefinition<AlarmDeletedEnvelope, "wix.alarm.v1.alarm_alarm_deleted">;
727
- declare const onAlarmSnoozed$1: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
728
730
  declare const onAlarmTriggered$1: EventDefinition<AlarmTriggeredEnvelope, "wix.alarm.v1.alarm_alarm_triggered">;
731
+ declare const onAlarmSnoozed$1: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
732
+ declare const onAlarmDeleted$1: EventDefinition<AlarmDeletedEnvelope, "wix.alarm.v1.alarm_alarm_deleted">;
729
733
 
730
734
  declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
731
735
 
732
736
  declare const alarm: MaybeContext<BuildRESTFunction<typeof alarm$1> & typeof alarm$1>;
733
737
  declare const updateAlarm: MaybeContext<BuildRESTFunction<typeof updateAlarm$1> & typeof updateAlarm$1>;
734
738
 
735
- type _publicOnAlarmDeletedType = typeof onAlarmDeleted$1;
739
+ type _publicOnAlarmTriggeredType = typeof onAlarmTriggered$1;
736
740
  /**
737
- * alarm event that might be consumed when alarm is deleted
741
+ * alarm event that might be consumed when alarm is triggered
738
742
  */
739
- declare const onAlarmDeleted: ReturnType<typeof createEventModule$1<_publicOnAlarmDeletedType>>;
743
+ declare const onAlarmTriggered: ReturnType<typeof createEventModule$1<_publicOnAlarmTriggeredType>>;
740
744
 
741
745
  type _publicOnAlarmSnoozedType = typeof onAlarmSnoozed$1;
742
746
  /**
@@ -744,11 +748,11 @@ type _publicOnAlarmSnoozedType = typeof onAlarmSnoozed$1;
744
748
  */
745
749
  declare const onAlarmSnoozed: ReturnType<typeof createEventModule$1<_publicOnAlarmSnoozedType>>;
746
750
 
747
- type _publicOnAlarmTriggeredType = typeof onAlarmTriggered$1;
751
+ type _publicOnAlarmDeletedType = typeof onAlarmDeleted$1;
748
752
  /**
749
- * alarm event that might be consumed when alarm is triggered
753
+ * alarm event that might be consumed when alarm is deleted
750
754
  */
751
- declare const onAlarmTriggered: ReturnType<typeof createEventModule$1<_publicOnAlarmTriggeredType>>;
755
+ declare const onAlarmDeleted: ReturnType<typeof createEventModule$1<_publicOnAlarmDeletedType>>;
752
756
 
753
757
  type index_d$2_AlarmDeleted = AlarmDeleted;
754
758
  type index_d$2_AlarmDeletedEnvelope = AlarmDeletedEnvelope;
@@ -759,6 +763,8 @@ type index_d$2_AlarmRequestRequiredFields = AlarmRequestRequiredFields;
759
763
  type index_d$2_AlarmResponse = AlarmResponse;
760
764
  type index_d$2_AlarmSnoozed = AlarmSnoozed;
761
765
  type index_d$2_AlarmSnoozedEnvelope = AlarmSnoozedEnvelope;
766
+ type index_d$2_AlarmTestRequest = AlarmTestRequest;
767
+ type index_d$2_AlarmTestResponse = AlarmTestResponse;
762
768
  type index_d$2_AlarmTriggered = AlarmTriggered;
763
769
  type index_d$2_AlarmTriggeredEnvelope = AlarmTriggeredEnvelope;
764
770
  type index_d$2_UpdateAlarm = UpdateAlarm;
@@ -775,7 +781,7 @@ declare const index_d$2_onAlarmSnoozed: typeof onAlarmSnoozed;
775
781
  declare const index_d$2_onAlarmTriggered: typeof onAlarmTriggered;
776
782
  declare const index_d$2_updateAlarm: typeof updateAlarm;
777
783
  declare namespace index_d$2 {
778
- 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 Dispatched$1 as Dispatched, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EchoMessage$1 as EchoMessage, 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 MessageItem$1 as MessageItem, type RestoreInfo$1 as RestoreInfo, 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, type index_d$2__publicOnAlarmDeletedType as _publicOnAlarmDeletedType, type index_d$2__publicOnAlarmSnoozedType as _publicOnAlarmSnoozedType, type index_d$2__publicOnAlarmTriggeredType as _publicOnAlarmTriggeredType, index_d$2_alarm as alarm, index_d$2_onAlarmDeleted as onAlarmDeleted, index_d$2_onAlarmSnoozed as onAlarmSnoozed, index_d$2_onAlarmTriggered as onAlarmTriggered, onAlarmDeleted$1 as publicOnAlarmDeleted, onAlarmSnoozed$1 as publicOnAlarmSnoozed, onAlarmTriggered$1 as publicOnAlarmTriggered, index_d$2_updateAlarm as updateAlarm };
784
+ 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_AlarmTestRequest as AlarmTestRequest, type index_d$2_AlarmTestResponse as AlarmTestResponse, type index_d$2_AlarmTriggered as AlarmTriggered, type index_d$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type Dispatched$1 as Dispatched, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EchoMessage$1 as EchoMessage, 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 MessageItem$1 as MessageItem, type RestoreInfo$1 as RestoreInfo, 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, type index_d$2__publicOnAlarmDeletedType as _publicOnAlarmDeletedType, type index_d$2__publicOnAlarmSnoozedType as _publicOnAlarmSnoozedType, type index_d$2__publicOnAlarmTriggeredType as _publicOnAlarmTriggeredType, index_d$2_alarm as alarm, index_d$2_onAlarmDeleted as onAlarmDeleted, index_d$2_onAlarmSnoozed as onAlarmSnoozed, index_d$2_onAlarmTriggered as onAlarmTriggered, onAlarmDeleted$1 as publicOnAlarmDeleted, onAlarmSnoozed$1 as publicOnAlarmSnoozed, onAlarmTriggered$1 as publicOnAlarmTriggered, index_d$2_updateAlarm as updateAlarm };
779
785
  }
780
786
 
781
787
  interface MessageItem {