@aceplus/smartace-api 3.1.0-alpha.1 → 3.1.0
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 +1 -1
- package/spic.cabinet_pb.d.ts +13 -0
- package/spic.cabinet_pb.js +42 -1
package/package.json
CHANGED
package/spic.cabinet_pb.d.ts
CHANGED
|
@@ -78,6 +78,9 @@ export class CabinetProto extends jspb.Message {
|
|
|
78
78
|
getSpicType(): CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap];
|
|
79
79
|
setSpicType(value: CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap]): void;
|
|
80
80
|
|
|
81
|
+
getBatteryStatus(): CabinetProto.BatteryStatusMap[keyof CabinetProto.BatteryStatusMap];
|
|
82
|
+
setBatteryStatus(value: CabinetProto.BatteryStatusMap[keyof CabinetProto.BatteryStatusMap]): void;
|
|
83
|
+
|
|
81
84
|
serializeBinary(): Uint8Array;
|
|
82
85
|
toObject(includeInstance?: boolean): CabinetProto.AsObject;
|
|
83
86
|
static toObject(includeInstance: boolean, msg: CabinetProto): CabinetProto.AsObject;
|
|
@@ -110,6 +113,7 @@ export namespace CabinetProto {
|
|
|
110
113
|
lastConfigString: string,
|
|
111
114
|
lastConfigUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
112
115
|
spicType: CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap],
|
|
116
|
+
batteryStatus: CabinetProto.BatteryStatusMap[keyof CabinetProto.BatteryStatusMap],
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
export class CreateRequest extends jspb.Message {
|
|
@@ -1234,6 +1238,15 @@ export namespace CabinetProto {
|
|
|
1234
1238
|
export const OpenRequestType: OpenRequestTypeMap;
|
|
1235
1239
|
}
|
|
1236
1240
|
|
|
1241
|
+
export interface BatteryStatusMap {
|
|
1242
|
+
UNKOWWN: 0;
|
|
1243
|
+
OK: 1;
|
|
1244
|
+
REPLACE_WARNING: 2;
|
|
1245
|
+
CRITICAL: 3;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
export const BatteryStatus: BatteryStatusMap;
|
|
1249
|
+
|
|
1237
1250
|
export interface SpicTypeMap {
|
|
1238
1251
|
CABINET: 0;
|
|
1239
1252
|
MANHOLE: 1;
|
package/spic.cabinet_pb.js
CHANGED
|
@@ -39,6 +39,7 @@ goog.exportSymbol('proto.Spic.CabinetProto.AdminAlerts.AddAlertRequest', null, g
|
|
|
39
39
|
goog.exportSymbol('proto.Spic.CabinetProto.AdminAlerts.RemoveAlertRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.Spic.CabinetProto.AdminAlerts.RetrieveAlertsRequest', null, global);
|
|
41
41
|
goog.exportSymbol('proto.Spic.CabinetProto.AlarmType', null, global);
|
|
42
|
+
goog.exportSymbol('proto.Spic.CabinetProto.BatteryStatus', null, global);
|
|
42
43
|
goog.exportSymbol('proto.Spic.CabinetProto.CreateRequest', null, global);
|
|
43
44
|
goog.exportSymbol('proto.Spic.CabinetProto.DeleteReply', null, global);
|
|
44
45
|
goog.exportSymbol('proto.Spic.CabinetProto.DeleteRequest', null, global);
|
|
@@ -780,7 +781,8 @@ proto.Spic.CabinetProto.toObject = function(includeInstance, msg) {
|
|
|
780
781
|
communicationTime: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
781
782
|
lastConfigString: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
782
783
|
lastConfigUpdated: (f = msg.getLastConfigUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
783
|
-
spicType: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
784
|
+
spicType: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
785
|
+
batteryStatus: jspb.Message.getFieldWithDefault(msg, 21, 0)
|
|
784
786
|
};
|
|
785
787
|
|
|
786
788
|
if (includeInstance) {
|
|
@@ -902,6 +904,10 @@ proto.Spic.CabinetProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
902
904
|
var value = /** @type {!proto.Spic.CabinetProto.SpicType} */ (reader.readEnum());
|
|
903
905
|
msg.setSpicType(value);
|
|
904
906
|
break;
|
|
907
|
+
case 21:
|
|
908
|
+
var value = /** @type {!proto.Spic.CabinetProto.BatteryStatus} */ (reader.readEnum());
|
|
909
|
+
msg.setBatteryStatus(value);
|
|
910
|
+
break;
|
|
905
911
|
default:
|
|
906
912
|
reader.skipField();
|
|
907
913
|
break;
|
|
@@ -1074,9 +1080,26 @@ proto.Spic.CabinetProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
1074
1080
|
f
|
|
1075
1081
|
);
|
|
1076
1082
|
}
|
|
1083
|
+
f = message.getBatteryStatus();
|
|
1084
|
+
if (f !== 0.0) {
|
|
1085
|
+
writer.writeEnum(
|
|
1086
|
+
21,
|
|
1087
|
+
f
|
|
1088
|
+
);
|
|
1089
|
+
}
|
|
1077
1090
|
};
|
|
1078
1091
|
|
|
1079
1092
|
|
|
1093
|
+
/**
|
|
1094
|
+
* @enum {number}
|
|
1095
|
+
*/
|
|
1096
|
+
proto.Spic.CabinetProto.BatteryStatus = {
|
|
1097
|
+
UNKOWWN: 0,
|
|
1098
|
+
OK: 1,
|
|
1099
|
+
REPLACE_WARNING: 2,
|
|
1100
|
+
CRITICAL: 3
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1080
1103
|
/**
|
|
1081
1104
|
* @enum {number}
|
|
1082
1105
|
*/
|
|
@@ -9468,6 +9491,24 @@ proto.Spic.CabinetProto.prototype.setSpicType = function(value) {
|
|
|
9468
9491
|
};
|
|
9469
9492
|
|
|
9470
9493
|
|
|
9494
|
+
/**
|
|
9495
|
+
* optional BatteryStatus battery_status = 21;
|
|
9496
|
+
* @return {!proto.Spic.CabinetProto.BatteryStatus}
|
|
9497
|
+
*/
|
|
9498
|
+
proto.Spic.CabinetProto.prototype.getBatteryStatus = function() {
|
|
9499
|
+
return /** @type {!proto.Spic.CabinetProto.BatteryStatus} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
|
|
9500
|
+
};
|
|
9501
|
+
|
|
9502
|
+
|
|
9503
|
+
/**
|
|
9504
|
+
* @param {!proto.Spic.CabinetProto.BatteryStatus} value
|
|
9505
|
+
* @return {!proto.Spic.CabinetProto} returns this
|
|
9506
|
+
*/
|
|
9507
|
+
proto.Spic.CabinetProto.prototype.setBatteryStatus = function(value) {
|
|
9508
|
+
return jspb.Message.setProto3EnumField(this, 21, value);
|
|
9509
|
+
};
|
|
9510
|
+
|
|
9511
|
+
|
|
9471
9512
|
|
|
9472
9513
|
|
|
9473
9514
|
|