@aceplus/smartace-api 3.6.0-alpha.18 → 3.6.0-alpha.19

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
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "3.6.0-alpha.18",
8
+ "version": "3.6.0-alpha.19",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -20,8 +20,8 @@ export class CabinetProto extends jspb.Message {
20
20
  getUid(): string;
21
21
  setUid(value: string): void;
22
22
 
23
- getStatus(): number;
24
- setStatus(value: number): void;
23
+ getStatus(): CabinetProto.StatusTypeMap[keyof CabinetProto.StatusTypeMap];
24
+ setStatus(value: CabinetProto.StatusTypeMap[keyof CabinetProto.StatusTypeMap]): void;
25
25
 
26
26
  clearAlarmsList(): void;
27
27
  getAlarmsList(): Array<CabinetProto.AlarmTypeMap[keyof CabinetProto.AlarmTypeMap]>;
@@ -95,7 +95,7 @@ export namespace CabinetProto {
95
95
  name: string,
96
96
  locationId: number,
97
97
  uid: string,
98
- status: number,
98
+ status: CabinetProto.StatusTypeMap[keyof CabinetProto.StatusTypeMap],
99
99
  alarmsList: Array<CabinetProto.AlarmTypeMap[keyof CabinetProto.AlarmTypeMap]>,
100
100
  lastStatusUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
101
101
  replaceBattery: boolean,
@@ -551,6 +551,162 @@ export namespace CabinetProto {
551
551
  }
552
552
  }
553
553
 
554
+ export class Event extends jspb.Message {
555
+ getId(): number;
556
+ setId(value: number): void;
557
+
558
+ hasStartDate(): boolean;
559
+ clearStartDate(): void;
560
+ getStartDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
561
+ setStartDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
562
+
563
+ hasEndDate(): boolean;
564
+ clearEndDate(): void;
565
+ getEndDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
566
+ setEndDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
567
+
568
+ getCabinetId(): number;
569
+ setCabinetId(value: number): void;
570
+
571
+ getEventType(): CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap];
572
+ setEventType(value: CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap]): void;
573
+
574
+ getNotificationSent(): boolean;
575
+ setNotificationSent(value: boolean): void;
576
+
577
+ hasOpenRequest(): boolean;
578
+ clearOpenRequest(): void;
579
+ getOpenRequest(): CabinetProto.OpenRequest | undefined;
580
+ setOpenRequest(value?: CabinetProto.OpenRequest): void;
581
+
582
+ getDetail(): string;
583
+ setDetail(value: string): void;
584
+
585
+ serializeBinary(): Uint8Array;
586
+ toObject(includeInstance?: boolean): Event.AsObject;
587
+ static toObject(includeInstance: boolean, msg: Event): Event.AsObject;
588
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
589
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
590
+ static serializeBinaryToWriter(message: Event, writer: jspb.BinaryWriter): void;
591
+ static deserializeBinary(bytes: Uint8Array): Event;
592
+ static deserializeBinaryFromReader(message: Event, reader: jspb.BinaryReader): Event;
593
+ }
594
+
595
+ export namespace Event {
596
+ export type AsObject = {
597
+ id: number,
598
+ startDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
599
+ endDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
600
+ cabinetId: number,
601
+ eventType: CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap],
602
+ notificationSent: boolean,
603
+ openRequest?: CabinetProto.OpenRequest.AsObject,
604
+ detail: string,
605
+ }
606
+
607
+ export class SearchRequest extends jspb.Message {
608
+ getCabinetId(): number;
609
+ setCabinetId(value: number): void;
610
+
611
+ getActive(): platform_pagination_pb.BooleanFilterTypeMap[keyof platform_pagination_pb.BooleanFilterTypeMap];
612
+ setActive(value: platform_pagination_pb.BooleanFilterTypeMap[keyof platform_pagination_pb.BooleanFilterTypeMap]): void;
613
+
614
+ clearEventTypeList(): void;
615
+ getEventTypeList(): Array<CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap]>;
616
+ setEventTypeList(value: Array<CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap]>): void;
617
+ addEventType(value: CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap], index?: number): CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap];
618
+
619
+ getPage(): number;
620
+ setPage(value: number): void;
621
+
622
+ getCount(): number;
623
+ setCount(value: number): void;
624
+
625
+ getDescorder(): boolean;
626
+ setDescorder(value: boolean): void;
627
+
628
+ hasDateFrom(): boolean;
629
+ clearDateFrom(): void;
630
+ getDateFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
631
+ setDateFrom(value?: google_protobuf_timestamp_pb.Timestamp): void;
632
+
633
+ hasDateTo(): boolean;
634
+ clearDateTo(): void;
635
+ getDateTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
636
+ setDateTo(value?: google_protobuf_timestamp_pb.Timestamp): void;
637
+
638
+ serializeBinary(): Uint8Array;
639
+ toObject(includeInstance?: boolean): SearchRequest.AsObject;
640
+ static toObject(includeInstance: boolean, msg: SearchRequest): SearchRequest.AsObject;
641
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
642
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
643
+ static serializeBinaryToWriter(message: SearchRequest, writer: jspb.BinaryWriter): void;
644
+ static deserializeBinary(bytes: Uint8Array): SearchRequest;
645
+ static deserializeBinaryFromReader(message: SearchRequest, reader: jspb.BinaryReader): SearchRequest;
646
+ }
647
+
648
+ export namespace SearchRequest {
649
+ export type AsObject = {
650
+ cabinetId: number,
651
+ active: platform_pagination_pb.BooleanFilterTypeMap[keyof platform_pagination_pb.BooleanFilterTypeMap],
652
+ eventTypeList: Array<CabinetProto.Event.EventTypeMap[keyof CabinetProto.Event.EventTypeMap]>,
653
+ page: number,
654
+ count: number,
655
+ descorder: boolean,
656
+ dateFrom?: google_protobuf_timestamp_pb.Timestamp.AsObject,
657
+ dateTo?: google_protobuf_timestamp_pb.Timestamp.AsObject,
658
+ }
659
+ }
660
+
661
+ export class SearchReply extends jspb.Message {
662
+ clearEventsList(): void;
663
+ getEventsList(): Array<CabinetProto.Event>;
664
+ setEventsList(value: Array<CabinetProto.Event>): void;
665
+ addEvents(value?: CabinetProto.Event, index?: number): CabinetProto.Event;
666
+
667
+ hasPagination(): boolean;
668
+ clearPagination(): void;
669
+ getPagination(): platform_pagination_pb.PaginationProto | undefined;
670
+ setPagination(value?: platform_pagination_pb.PaginationProto): void;
671
+
672
+ serializeBinary(): Uint8Array;
673
+ toObject(includeInstance?: boolean): SearchReply.AsObject;
674
+ static toObject(includeInstance: boolean, msg: SearchReply): SearchReply.AsObject;
675
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
676
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
677
+ static serializeBinaryToWriter(message: SearchReply, writer: jspb.BinaryWriter): void;
678
+ static deserializeBinary(bytes: Uint8Array): SearchReply;
679
+ static deserializeBinaryFromReader(message: SearchReply, reader: jspb.BinaryReader): SearchReply;
680
+ }
681
+
682
+ export namespace SearchReply {
683
+ export type AsObject = {
684
+ eventsList: Array<CabinetProto.Event.AsObject>,
685
+ pagination?: platform_pagination_pb.PaginationProto.AsObject,
686
+ }
687
+ }
688
+
689
+ export interface EventTypeMap {
690
+ NO_ALARM: 0;
691
+ INACTIVE_CABINET: 1;
692
+ TILT: 2;
693
+ BATTERY: 3;
694
+ UNAUTHORIZED_ACCESS: 4;
695
+ EXCEEDED_TIME: 5;
696
+ UNLOCKED_CABINET: 6;
697
+ LOCK_ERROR: 7;
698
+ OPENING: 8;
699
+ INSTALLATION: 9;
700
+ MAINTENANCE: 10;
701
+ EXTERNAL_IO_ERROR: 11;
702
+ HIGH_TEMP: 12;
703
+ CRIT_TEMP: 13;
704
+ PENDING_AUTHORIZATION_OPENING: 14;
705
+ }
706
+
707
+ export const EventType: EventTypeMap;
708
+ }
709
+
554
710
  export class OpenRequest extends jspb.Message {
555
711
  getId(): number;
556
712
  setId(value: number): void;
@@ -614,6 +770,9 @@ export namespace CabinetProto {
614
770
  getCabinetId(): number;
615
771
  setCabinetId(value: number): void;
616
772
 
773
+ getRequesterId(): number;
774
+ setRequesterId(value: number): void;
775
+
617
776
  hasRequestTime(): boolean;
618
777
  clearRequestTime(): void;
619
778
  getRequestTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
@@ -652,6 +811,7 @@ export namespace CabinetProto {
652
811
  export namespace CreateRequest {
653
812
  export type AsObject = {
654
813
  cabinetId: number,
814
+ requesterId: number,
655
815
  requestTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
656
816
  validUntil?: google_protobuf_timestamp_pb.Timestamp.AsObject,
657
817
  longitude: number,