@aceplus/smartace-api 3.5.0 → 3.6.0-alpha.2

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.5.0",
8
+ "version": "3.6.0-alpha.2",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -22,6 +22,9 @@ export class AssetProto extends jspb.Message {
22
22
  getUid(): string;
23
23
  setUid(value: string): void;
24
24
 
25
+ getStatus(): number;
26
+ setStatus(value: number): void;
27
+
25
28
  hasLastStatusUpdate(): boolean;
26
29
  clearLastStatusUpdate(): void;
27
30
  getLastStatusUpdate(): google_protobuf_timestamp_pb.Timestamp | undefined;
@@ -88,6 +91,7 @@ export namespace AssetProto {
88
91
  name: string,
89
92
  locationId: number,
90
93
  uid: string,
94
+ status: number,
91
95
  lastStatusUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
92
96
  groupId: string,
93
97
  clientId: number,
@@ -552,8 +556,8 @@ export namespace AssetProto {
552
556
  export const BatteryStatus: BatteryStatusMap;
553
557
 
554
558
  export interface DeviceTypeMap {
555
- SPICV2: 0;
556
- SPICV3: 1;
559
+ SPICV2_PASSIVE_CABINET: 0;
560
+ SPICV2_MANHOLE: 1;
557
561
  }
558
562
 
559
563
  export const DeviceType: DeviceTypeMap;
@@ -656,6 +660,8 @@ export interface ComponentIdentifierMap {
656
660
  EXT_ALARM_1: 31;
657
661
  EXT_ALARM_2: 32;
658
662
  EXT_ALARM_3: 33;
663
+ MANHOLE_COVER: 40;
664
+ MANHOLE_CLOSURE_OPEN: 41;
659
665
  }
660
666
 
661
667
  export const ComponentIdentifier: ComponentIdentifierMap;
package/spic.asset_pb.js CHANGED
@@ -434,6 +434,7 @@ proto.Spic.AssetProto.toObject = function(includeInstance, msg) {
434
434
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
435
435
  locationId: jspb.Message.getFieldWithDefault(msg, 3, 0),
436
436
  uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
437
+ status: jspb.Message.getFieldWithDefault(msg, 5, 0),
437
438
  lastStatusUpdate: (f = msg.getLastStatusUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
438
439
  groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
439
440
  clientId: jspb.Message.getFieldWithDefault(msg, 9, 0),
@@ -501,6 +502,10 @@ proto.Spic.AssetProto.deserializeBinaryFromReader = function(msg, reader) {
501
502
  var value = /** @type {string} */ (reader.readString());
502
503
  msg.setUid(value);
503
504
  break;
505
+ case 5:
506
+ var value = /** @type {number} */ (reader.readInt32());
507
+ msg.setStatus(value);
508
+ break;
504
509
  case 7:
505
510
  var value = new google_protobuf_timestamp_pb.Timestamp;
506
511
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
@@ -618,6 +623,13 @@ proto.Spic.AssetProto.serializeBinaryToWriter = function(message, writer) {
618
623
  f
619
624
  );
620
625
  }
626
+ f = message.getStatus();
627
+ if (f !== 0) {
628
+ writer.writeInt32(
629
+ 5,
630
+ f
631
+ );
632
+ }
621
633
  f = message.getLastStatusUpdate();
622
634
  if (f != null) {
623
635
  writer.writeMessage(
@@ -737,8 +749,8 @@ proto.Spic.AssetProto.BatteryStatus = {
737
749
  * @enum {number}
738
750
  */
739
751
  proto.Spic.AssetProto.DeviceType = {
740
- SPICV2: 0,
741
- SPICV3: 1
752
+ SPICV2_PASSIVE_CABINET: 0,
753
+ SPICV2_MANHOLE: 1
742
754
  };
743
755
 
744
756
  /**
@@ -3905,6 +3917,24 @@ proto.Spic.AssetProto.prototype.setUid = function(value) {
3905
3917
  };
3906
3918
 
3907
3919
 
3920
+ /**
3921
+ * optional int32 status = 5;
3922
+ * @return {number}
3923
+ */
3924
+ proto.Spic.AssetProto.prototype.getStatus = function() {
3925
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
3926
+ };
3927
+
3928
+
3929
+ /**
3930
+ * @param {number} value
3931
+ * @return {!proto.Spic.AssetProto} returns this
3932
+ */
3933
+ proto.Spic.AssetProto.prototype.setStatus = function(value) {
3934
+ return jspb.Message.setProto3IntField(this, 5, value);
3935
+ };
3936
+
3937
+
3908
3938
  /**
3909
3939
  * optional google.protobuf.Timestamp last_status_update = 7;
3910
3940
  * @return {?proto.google.protobuf.Timestamp}
@@ -4751,7 +4781,9 @@ proto.Spic.ComponentIdentifier = {
4751
4781
  CABINET_MAIN_DOOR_LOCK: 16,
4752
4782
  EXT_ALARM_1: 31,
4753
4783
  EXT_ALARM_2: 32,
4754
- EXT_ALARM_3: 33
4784
+ EXT_ALARM_3: 33,
4785
+ MANHOLE_COVER: 40,
4786
+ MANHOLE_CLOSURE_OPEN: 41
4755
4787
  };
4756
4788
 
4757
4789
  goog.object.extend(exports, proto.Spic);
@@ -22,8 +22,8 @@ export class CabinetProto extends jspb.Message {
22
22
  getUid(): string;
23
23
  setUid(value: string): void;
24
24
 
25
- getStatus(): CabinetProto.StatusTypeMap[keyof CabinetProto.StatusTypeMap];
26
- setStatus(value: CabinetProto.StatusTypeMap[keyof CabinetProto.StatusTypeMap]): void;
25
+ getStatus(): number;
26
+ setStatus(value: number): void;
27
27
 
28
28
  clearAlarmsList(): void;
29
29
  getAlarmsList(): Array<CabinetProto.AlarmTypeMap[keyof CabinetProto.AlarmTypeMap]>;
@@ -97,7 +97,7 @@ export namespace CabinetProto {
97
97
  name: string,
98
98
  locationId: number,
99
99
  uid: string,
100
- status: CabinetProto.StatusTypeMap[keyof CabinetProto.StatusTypeMap],
100
+ status: number,
101
101
  alarmsList: Array<CabinetProto.AlarmTypeMap[keyof CabinetProto.AlarmTypeMap]>,
102
102
  lastStatusUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
103
103
  replaceBattery: boolean,
@@ -880,7 +880,7 @@ proto.Spic.CabinetProto.deserializeBinaryFromReader = function(msg, reader) {
880
880
  msg.setUid(value);
881
881
  break;
882
882
  case 5:
883
- var value = /** @type {!proto.Spic.CabinetProto.StatusType} */ (reader.readEnum());
883
+ var value = /** @type {number} */ (reader.readInt32());
884
884
  msg.setStatus(value);
885
885
  break;
886
886
  case 6:
@@ -1010,8 +1010,8 @@ proto.Spic.CabinetProto.serializeBinaryToWriter = function(message, writer) {
1010
1010
  );
1011
1011
  }
1012
1012
  f = message.getStatus();
1013
- if (f !== 0.0) {
1014
- writer.writeEnum(
1013
+ if (f !== 0) {
1014
+ writer.writeInt32(
1015
1015
  5,
1016
1016
  f
1017
1017
  );
@@ -9492,20 +9492,20 @@ proto.Spic.CabinetProto.prototype.setUid = function(value) {
9492
9492
 
9493
9493
 
9494
9494
  /**
9495
- * optional StatusType status = 5;
9496
- * @return {!proto.Spic.CabinetProto.StatusType}
9495
+ * optional int32 status = 5;
9496
+ * @return {number}
9497
9497
  */
9498
9498
  proto.Spic.CabinetProto.prototype.getStatus = function() {
9499
- return /** @type {!proto.Spic.CabinetProto.StatusType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
9499
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
9500
9500
  };
9501
9501
 
9502
9502
 
9503
9503
  /**
9504
- * @param {!proto.Spic.CabinetProto.StatusType} value
9504
+ * @param {number} value
9505
9505
  * @return {!proto.Spic.CabinetProto} returns this
9506
9506
  */
9507
9507
  proto.Spic.CabinetProto.prototype.setStatus = function(value) {
9508
- return jspb.Message.setProto3EnumField(this, 5, value);
9508
+ return jspb.Message.setProto3IntField(this, 5, value);
9509
9509
  };
9510
9510
 
9511
9511