@aceplus/smartace-api 3.5.0-alpha.2 → 3.5.0-alpha.4
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.asset_pb.d.ts +14 -14
- package/spic.asset_pb.js +42 -42
- package/spic.cabinet_pb.d.ts +12 -0
- package/spic.cabinet_pb.js +93 -3
package/package.json
CHANGED
package/spic.asset_pb.d.ts
CHANGED
|
@@ -58,8 +58,8 @@ export class AssetProto extends jspb.Message {
|
|
|
58
58
|
getLastConfigUpdated(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
59
59
|
setLastConfigUpdated(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
getAssetType(): AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap];
|
|
62
|
+
setAssetType(value: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]): void;
|
|
63
63
|
|
|
64
64
|
getBatteryStatus(): AssetProto.BatteryStatusMap[keyof AssetProto.BatteryStatusMap];
|
|
65
65
|
setBatteryStatus(value: AssetProto.BatteryStatusMap[keyof AssetProto.BatteryStatusMap]): void;
|
|
@@ -98,7 +98,7 @@ export namespace AssetProto {
|
|
|
98
98
|
communicationTime: number,
|
|
99
99
|
lastConfigString: string,
|
|
100
100
|
lastConfigUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
101
|
-
|
|
101
|
+
assetType: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap],
|
|
102
102
|
batteryStatus: AssetProto.BatteryStatusMap[keyof AssetProto.BatteryStatusMap],
|
|
103
103
|
statesList: Array<AssetProto.ComponentState.AsObject>,
|
|
104
104
|
deviceType: AssetProto.DeviceTypeMap[keyof AssetProto.DeviceTypeMap],
|
|
@@ -131,8 +131,8 @@ export namespace AssetProto {
|
|
|
131
131
|
getClientId(): number;
|
|
132
132
|
setClientId(value: number): void;
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
getAssetType(): AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap];
|
|
135
|
+
setAssetType(value: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]): void;
|
|
136
136
|
|
|
137
137
|
serializeBinary(): Uint8Array;
|
|
138
138
|
toObject(includeInstance?: boolean): CreateRequest.AsObject;
|
|
@@ -154,7 +154,7 @@ export namespace AssetProto {
|
|
|
154
154
|
extIo2Name: string,
|
|
155
155
|
groupId: string,
|
|
156
156
|
clientId: number,
|
|
157
|
-
|
|
157
|
+
assetType: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap],
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -223,8 +223,8 @@ export namespace AssetProto {
|
|
|
223
223
|
getClientId(): number;
|
|
224
224
|
setClientId(value: number): void;
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
getAssetType(): AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap];
|
|
227
|
+
setAssetType(value: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]): void;
|
|
228
228
|
|
|
229
229
|
serializeBinary(): Uint8Array;
|
|
230
230
|
toObject(includeInstance?: boolean): UpdateRequest.AsObject;
|
|
@@ -247,7 +247,7 @@ export namespace AssetProto {
|
|
|
247
247
|
extIo2Name: string,
|
|
248
248
|
groupId: string,
|
|
249
249
|
clientId: number,
|
|
250
|
-
|
|
250
|
+
assetType: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap],
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
@@ -302,8 +302,8 @@ export namespace AssetProto {
|
|
|
302
302
|
getCount(): number;
|
|
303
303
|
setCount(value: number): void;
|
|
304
304
|
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
getAssetType(): AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap];
|
|
306
|
+
setAssetType(value: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]): void;
|
|
307
307
|
|
|
308
308
|
serializeBinary(): Uint8Array;
|
|
309
309
|
toObject(includeInstance?: boolean): SearchRequest.AsObject;
|
|
@@ -322,7 +322,7 @@ export namespace AssetProto {
|
|
|
322
322
|
groupId: string,
|
|
323
323
|
page: number,
|
|
324
324
|
count: number,
|
|
325
|
-
|
|
325
|
+
assetType: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap],
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -558,13 +558,13 @@ export namespace AssetProto {
|
|
|
558
558
|
|
|
559
559
|
export const DeviceType: DeviceTypeMap;
|
|
560
560
|
|
|
561
|
-
export interface
|
|
561
|
+
export interface AssetTypeMap {
|
|
562
562
|
CABINET: 0;
|
|
563
563
|
MANHOLE: 1;
|
|
564
564
|
CLOSURE: 2;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
export const
|
|
567
|
+
export const AssetType: AssetTypeMap;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
export class AssetWithLocation extends jspb.Message {
|
package/spic.asset_pb.js
CHANGED
|
@@ -34,6 +34,7 @@ goog.object.extend(proto, platform_pagination_pb);
|
|
|
34
34
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
35
35
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
36
36
|
goog.exportSymbol('proto.Spic.AssetProto', null, global);
|
|
37
|
+
goog.exportSymbol('proto.Spic.AssetProto.AssetType', null, global);
|
|
37
38
|
goog.exportSymbol('proto.Spic.AssetProto.BatteryStatus', null, global);
|
|
38
39
|
goog.exportSymbol('proto.Spic.AssetProto.ComponentState', null, global);
|
|
39
40
|
goog.exportSymbol('proto.Spic.AssetProto.CreateRequest', null, global);
|
|
@@ -50,7 +51,6 @@ goog.exportSymbol('proto.Spic.AssetProto.RetrieveRequest', null, global);
|
|
|
50
51
|
goog.exportSymbol('proto.Spic.AssetProto.RetrieveRequest.SearchCase', null, global);
|
|
51
52
|
goog.exportSymbol('proto.Spic.AssetProto.SearchReply', null, global);
|
|
52
53
|
goog.exportSymbol('proto.Spic.AssetProto.SearchRequest', null, global);
|
|
53
|
-
goog.exportSymbol('proto.Spic.AssetProto.SpicType', null, global);
|
|
54
54
|
goog.exportSymbol('proto.Spic.AssetProto.UpdateRequest', null, global);
|
|
55
55
|
goog.exportSymbol('proto.Spic.AssetWithLocation', null, global);
|
|
56
56
|
goog.exportSymbol('proto.Spic.AssetWithLocationAndDistance', null, global);
|
|
@@ -444,7 +444,7 @@ proto.Spic.AssetProto.toObject = function(includeInstance, msg) {
|
|
|
444
444
|
communicationTime: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
445
445
|
lastConfigString: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
446
446
|
lastConfigUpdated: (f = msg.getLastConfigUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
447
|
-
|
|
447
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
448
448
|
batteryStatus: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
449
449
|
statesList: jspb.Message.toObjectList(msg.getStatesList(),
|
|
450
450
|
proto.Spic.AssetProto.ComponentState.toObject, includeInstance),
|
|
@@ -545,8 +545,8 @@ proto.Spic.AssetProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
545
545
|
msg.setLastConfigUpdated(value);
|
|
546
546
|
break;
|
|
547
547
|
case 17:
|
|
548
|
-
var value = /** @type {!proto.Spic.AssetProto.
|
|
549
|
-
msg.
|
|
548
|
+
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
549
|
+
msg.setAssetType(value);
|
|
550
550
|
break;
|
|
551
551
|
case 18:
|
|
552
552
|
var value = /** @type {!proto.Spic.AssetProto.BatteryStatus} */ (reader.readEnum());
|
|
@@ -691,7 +691,7 @@ proto.Spic.AssetProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
691
691
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
692
692
|
);
|
|
693
693
|
}
|
|
694
|
-
f = message.
|
|
694
|
+
f = message.getAssetType();
|
|
695
695
|
if (f !== 0.0) {
|
|
696
696
|
writer.writeEnum(
|
|
697
697
|
17,
|
|
@@ -744,7 +744,7 @@ proto.Spic.AssetProto.DeviceType = {
|
|
|
744
744
|
/**
|
|
745
745
|
* @enum {number}
|
|
746
746
|
*/
|
|
747
|
-
proto.Spic.AssetProto.
|
|
747
|
+
proto.Spic.AssetProto.AssetType = {
|
|
748
748
|
CABINET: 0,
|
|
749
749
|
MANHOLE: 1,
|
|
750
750
|
CLOSURE: 2
|
|
@@ -790,7 +790,7 @@ proto.Spic.AssetProto.CreateRequest.toObject = function(includeInstance, msg) {
|
|
|
790
790
|
extIo2Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
791
791
|
groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
792
792
|
clientId: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
793
|
-
|
|
793
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
794
794
|
};
|
|
795
795
|
|
|
796
796
|
if (includeInstance) {
|
|
@@ -861,8 +861,8 @@ proto.Spic.AssetProto.CreateRequest.deserializeBinaryFromReader = function(msg,
|
|
|
861
861
|
msg.setClientId(value);
|
|
862
862
|
break;
|
|
863
863
|
case 9:
|
|
864
|
-
var value = /** @type {!proto.Spic.AssetProto.
|
|
865
|
-
msg.
|
|
864
|
+
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
865
|
+
msg.setAssetType(value);
|
|
866
866
|
break;
|
|
867
867
|
default:
|
|
868
868
|
reader.skipField();
|
|
@@ -950,7 +950,7 @@ proto.Spic.AssetProto.CreateRequest.serializeBinaryToWriter = function(message,
|
|
|
950
950
|
f
|
|
951
951
|
);
|
|
952
952
|
}
|
|
953
|
-
f = message.
|
|
953
|
+
f = message.getAssetType();
|
|
954
954
|
if (f !== 0.0) {
|
|
955
955
|
writer.writeEnum(
|
|
956
956
|
9,
|
|
@@ -1124,19 +1124,19 @@ proto.Spic.AssetProto.CreateRequest.prototype.setClientId = function(value) {
|
|
|
1124
1124
|
|
|
1125
1125
|
|
|
1126
1126
|
/**
|
|
1127
|
-
* optional
|
|
1128
|
-
* @return {!proto.Spic.AssetProto.
|
|
1127
|
+
* optional AssetType asset_type = 9;
|
|
1128
|
+
* @return {!proto.Spic.AssetProto.AssetType}
|
|
1129
1129
|
*/
|
|
1130
|
-
proto.Spic.AssetProto.CreateRequest.prototype.
|
|
1131
|
-
return /** @type {!proto.Spic.AssetProto.
|
|
1130
|
+
proto.Spic.AssetProto.CreateRequest.prototype.getAssetType = function() {
|
|
1131
|
+
return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
1132
1132
|
};
|
|
1133
1133
|
|
|
1134
1134
|
|
|
1135
1135
|
/**
|
|
1136
|
-
* @param {!proto.Spic.AssetProto.
|
|
1136
|
+
* @param {!proto.Spic.AssetProto.AssetType} value
|
|
1137
1137
|
* @return {!proto.Spic.AssetProto.CreateRequest} returns this
|
|
1138
1138
|
*/
|
|
1139
|
-
proto.Spic.AssetProto.CreateRequest.prototype.
|
|
1139
|
+
proto.Spic.AssetProto.CreateRequest.prototype.setAssetType = function(value) {
|
|
1140
1140
|
return jspb.Message.setProto3EnumField(this, 9, value);
|
|
1141
1141
|
};
|
|
1142
1142
|
|
|
@@ -1404,7 +1404,7 @@ proto.Spic.AssetProto.UpdateRequest.toObject = function(includeInstance, msg) {
|
|
|
1404
1404
|
extIo2Name: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1405
1405
|
groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1406
1406
|
clientId: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
1407
|
-
|
|
1407
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
1408
1408
|
};
|
|
1409
1409
|
|
|
1410
1410
|
if (includeInstance) {
|
|
@@ -1479,8 +1479,8 @@ proto.Spic.AssetProto.UpdateRequest.deserializeBinaryFromReader = function(msg,
|
|
|
1479
1479
|
msg.setClientId(value);
|
|
1480
1480
|
break;
|
|
1481
1481
|
case 10:
|
|
1482
|
-
var value = /** @type {!proto.Spic.AssetProto.
|
|
1483
|
-
msg.
|
|
1482
|
+
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
1483
|
+
msg.setAssetType(value);
|
|
1484
1484
|
break;
|
|
1485
1485
|
default:
|
|
1486
1486
|
reader.skipField();
|
|
@@ -1575,7 +1575,7 @@ proto.Spic.AssetProto.UpdateRequest.serializeBinaryToWriter = function(message,
|
|
|
1575
1575
|
f
|
|
1576
1576
|
);
|
|
1577
1577
|
}
|
|
1578
|
-
f = message.
|
|
1578
|
+
f = message.getAssetType();
|
|
1579
1579
|
if (f !== 0.0) {
|
|
1580
1580
|
writer.writeEnum(
|
|
1581
1581
|
10,
|
|
@@ -1767,19 +1767,19 @@ proto.Spic.AssetProto.UpdateRequest.prototype.setClientId = function(value) {
|
|
|
1767
1767
|
|
|
1768
1768
|
|
|
1769
1769
|
/**
|
|
1770
|
-
* optional
|
|
1771
|
-
* @return {!proto.Spic.AssetProto.
|
|
1770
|
+
* optional AssetType asset_type = 10;
|
|
1771
|
+
* @return {!proto.Spic.AssetProto.AssetType}
|
|
1772
1772
|
*/
|
|
1773
|
-
proto.Spic.AssetProto.UpdateRequest.prototype.
|
|
1774
|
-
return /** @type {!proto.Spic.AssetProto.
|
|
1773
|
+
proto.Spic.AssetProto.UpdateRequest.prototype.getAssetType = function() {
|
|
1774
|
+
return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
1775
1775
|
};
|
|
1776
1776
|
|
|
1777
1777
|
|
|
1778
1778
|
/**
|
|
1779
|
-
* @param {!proto.Spic.AssetProto.
|
|
1779
|
+
* @param {!proto.Spic.AssetProto.AssetType} value
|
|
1780
1780
|
* @return {!proto.Spic.AssetProto.UpdateRequest} returns this
|
|
1781
1781
|
*/
|
|
1782
|
-
proto.Spic.AssetProto.UpdateRequest.prototype.
|
|
1782
|
+
proto.Spic.AssetProto.UpdateRequest.prototype.setAssetType = function(value) {
|
|
1783
1783
|
return jspb.Message.setProto3EnumField(this, 10, value);
|
|
1784
1784
|
};
|
|
1785
1785
|
|
|
@@ -2043,7 +2043,7 @@ proto.Spic.AssetProto.SearchRequest.toObject = function(includeInstance, msg) {
|
|
|
2043
2043
|
groupId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2044
2044
|
page: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
2045
2045
|
count: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2046
|
-
|
|
2046
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
2047
2047
|
};
|
|
2048
2048
|
|
|
2049
2049
|
if (includeInstance) {
|
|
@@ -2101,8 +2101,8 @@ proto.Spic.AssetProto.SearchRequest.deserializeBinaryFromReader = function(msg,
|
|
|
2101
2101
|
msg.setCount(value);
|
|
2102
2102
|
break;
|
|
2103
2103
|
case 6:
|
|
2104
|
-
var value = /** @type {!proto.Spic.AssetProto.
|
|
2105
|
-
msg.
|
|
2104
|
+
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
2105
|
+
msg.setAssetType(value);
|
|
2106
2106
|
break;
|
|
2107
2107
|
default:
|
|
2108
2108
|
reader.skipField();
|
|
@@ -2168,7 +2168,7 @@ proto.Spic.AssetProto.SearchRequest.serializeBinaryToWriter = function(message,
|
|
|
2168
2168
|
f
|
|
2169
2169
|
);
|
|
2170
2170
|
}
|
|
2171
|
-
f = message.
|
|
2171
|
+
f = message.getAssetType();
|
|
2172
2172
|
if (f !== 0.0) {
|
|
2173
2173
|
writer.writeEnum(
|
|
2174
2174
|
6,
|
|
@@ -2269,19 +2269,19 @@ proto.Spic.AssetProto.SearchRequest.prototype.setCount = function(value) {
|
|
|
2269
2269
|
|
|
2270
2270
|
|
|
2271
2271
|
/**
|
|
2272
|
-
* optional
|
|
2273
|
-
* @return {!proto.Spic.AssetProto.
|
|
2272
|
+
* optional AssetType asset_type = 6;
|
|
2273
|
+
* @return {!proto.Spic.AssetProto.AssetType}
|
|
2274
2274
|
*/
|
|
2275
|
-
proto.Spic.AssetProto.SearchRequest.prototype.
|
|
2276
|
-
return /** @type {!proto.Spic.AssetProto.
|
|
2275
|
+
proto.Spic.AssetProto.SearchRequest.prototype.getAssetType = function() {
|
|
2276
|
+
return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
2277
2277
|
};
|
|
2278
2278
|
|
|
2279
2279
|
|
|
2280
2280
|
/**
|
|
2281
|
-
* @param {!proto.Spic.AssetProto.
|
|
2281
|
+
* @param {!proto.Spic.AssetProto.AssetType} value
|
|
2282
2282
|
* @return {!proto.Spic.AssetProto.SearchRequest} returns this
|
|
2283
2283
|
*/
|
|
2284
|
-
proto.Spic.AssetProto.SearchRequest.prototype.
|
|
2284
|
+
proto.Spic.AssetProto.SearchRequest.prototype.setAssetType = function(value) {
|
|
2285
2285
|
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
2286
2286
|
};
|
|
2287
2287
|
|
|
@@ -4143,19 +4143,19 @@ proto.Spic.AssetProto.prototype.hasLastConfigUpdated = function() {
|
|
|
4143
4143
|
|
|
4144
4144
|
|
|
4145
4145
|
/**
|
|
4146
|
-
* optional
|
|
4147
|
-
* @return {!proto.Spic.AssetProto.
|
|
4146
|
+
* optional AssetType asset_type = 17;
|
|
4147
|
+
* @return {!proto.Spic.AssetProto.AssetType}
|
|
4148
4148
|
*/
|
|
4149
|
-
proto.Spic.AssetProto.prototype.
|
|
4150
|
-
return /** @type {!proto.Spic.AssetProto.
|
|
4149
|
+
proto.Spic.AssetProto.prototype.getAssetType = function() {
|
|
4150
|
+
return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
4151
4151
|
};
|
|
4152
4152
|
|
|
4153
4153
|
|
|
4154
4154
|
/**
|
|
4155
|
-
* @param {!proto.Spic.AssetProto.
|
|
4155
|
+
* @param {!proto.Spic.AssetProto.AssetType} value
|
|
4156
4156
|
* @return {!proto.Spic.AssetProto} returns this
|
|
4157
4157
|
*/
|
|
4158
|
-
proto.Spic.AssetProto.prototype.
|
|
4158
|
+
proto.Spic.AssetProto.prototype.setAssetType = function(value) {
|
|
4159
4159
|
return jspb.Message.setProto3EnumField(this, 17, value);
|
|
4160
4160
|
};
|
|
4161
4161
|
|
package/spic.cabinet_pb.d.ts
CHANGED
|
@@ -81,6 +81,9 @@ export class CabinetProto extends jspb.Message {
|
|
|
81
81
|
getBatteryStatus(): CabinetProto.BatteryStatusMap[keyof CabinetProto.BatteryStatusMap];
|
|
82
82
|
setBatteryStatus(value: CabinetProto.BatteryStatusMap[keyof CabinetProto.BatteryStatusMap]): void;
|
|
83
83
|
|
|
84
|
+
getQrCode(): string;
|
|
85
|
+
setQrCode(value: string): void;
|
|
86
|
+
|
|
84
87
|
serializeBinary(): Uint8Array;
|
|
85
88
|
toObject(includeInstance?: boolean): CabinetProto.AsObject;
|
|
86
89
|
static toObject(includeInstance: boolean, msg: CabinetProto): CabinetProto.AsObject;
|
|
@@ -114,6 +117,7 @@ export namespace CabinetProto {
|
|
|
114
117
|
lastConfigUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
115
118
|
spicType: CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap],
|
|
116
119
|
batteryStatus: CabinetProto.BatteryStatusMap[keyof CabinetProto.BatteryStatusMap],
|
|
120
|
+
qrCode: string,
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
export class CreateRequest extends jspb.Message {
|
|
@@ -146,6 +150,9 @@ export namespace CabinetProto {
|
|
|
146
150
|
getSpicType(): CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap];
|
|
147
151
|
setSpicType(value: CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap]): void;
|
|
148
152
|
|
|
153
|
+
getQrCode(): string;
|
|
154
|
+
setQrCode(value: string): void;
|
|
155
|
+
|
|
149
156
|
serializeBinary(): Uint8Array;
|
|
150
157
|
toObject(includeInstance?: boolean): CreateRequest.AsObject;
|
|
151
158
|
static toObject(includeInstance: boolean, msg: CreateRequest): CreateRequest.AsObject;
|
|
@@ -167,6 +174,7 @@ export namespace CabinetProto {
|
|
|
167
174
|
groupId: string,
|
|
168
175
|
clientId: number,
|
|
169
176
|
spicType: CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap],
|
|
177
|
+
qrCode: string,
|
|
170
178
|
}
|
|
171
179
|
}
|
|
172
180
|
|
|
@@ -238,6 +246,9 @@ export namespace CabinetProto {
|
|
|
238
246
|
getSpicType(): CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap];
|
|
239
247
|
setSpicType(value: CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap]): void;
|
|
240
248
|
|
|
249
|
+
getQrCode(): string;
|
|
250
|
+
setQrCode(value: string): void;
|
|
251
|
+
|
|
241
252
|
serializeBinary(): Uint8Array;
|
|
242
253
|
toObject(includeInstance?: boolean): UpdateRequest.AsObject;
|
|
243
254
|
static toObject(includeInstance: boolean, msg: UpdateRequest): UpdateRequest.AsObject;
|
|
@@ -260,6 +271,7 @@ export namespace CabinetProto {
|
|
|
260
271
|
groupId: string,
|
|
261
272
|
clientId: number,
|
|
262
273
|
spicType: CabinetProto.SpicTypeMap[keyof CabinetProto.SpicTypeMap],
|
|
274
|
+
qrCode: string,
|
|
263
275
|
}
|
|
264
276
|
}
|
|
265
277
|
|
package/spic.cabinet_pb.js
CHANGED
|
@@ -826,7 +826,8 @@ proto.Spic.CabinetProto.toObject = function(includeInstance, msg) {
|
|
|
826
826
|
lastConfigString: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
827
827
|
lastConfigUpdated: (f = msg.getLastConfigUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
828
828
|
spicType: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
829
|
-
batteryStatus: jspb.Message.getFieldWithDefault(msg, 21, 0)
|
|
829
|
+
batteryStatus: jspb.Message.getFieldWithDefault(msg, 21, 0),
|
|
830
|
+
qrCode: jspb.Message.getFieldWithDefault(msg, 22, "")
|
|
830
831
|
};
|
|
831
832
|
|
|
832
833
|
if (includeInstance) {
|
|
@@ -952,6 +953,10 @@ proto.Spic.CabinetProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
952
953
|
var value = /** @type {!proto.Spic.CabinetProto.BatteryStatus} */ (reader.readEnum());
|
|
953
954
|
msg.setBatteryStatus(value);
|
|
954
955
|
break;
|
|
956
|
+
case 22:
|
|
957
|
+
var value = /** @type {string} */ (reader.readString());
|
|
958
|
+
msg.setQrCode(value);
|
|
959
|
+
break;
|
|
955
960
|
default:
|
|
956
961
|
reader.skipField();
|
|
957
962
|
break;
|
|
@@ -1131,6 +1136,13 @@ proto.Spic.CabinetProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
1131
1136
|
f
|
|
1132
1137
|
);
|
|
1133
1138
|
}
|
|
1139
|
+
f = message.getQrCode();
|
|
1140
|
+
if (f.length > 0) {
|
|
1141
|
+
writer.writeString(
|
|
1142
|
+
22,
|
|
1143
|
+
f
|
|
1144
|
+
);
|
|
1145
|
+
}
|
|
1134
1146
|
};
|
|
1135
1147
|
|
|
1136
1148
|
|
|
@@ -1228,7 +1240,8 @@ proto.Spic.CabinetProto.CreateRequest.toObject = function(includeInstance, msg)
|
|
|
1228
1240
|
extIo2Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1229
1241
|
groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1230
1242
|
clientId: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
1231
|
-
spicType: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
1243
|
+
spicType: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
1244
|
+
qrCode: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
1232
1245
|
};
|
|
1233
1246
|
|
|
1234
1247
|
if (includeInstance) {
|
|
@@ -1302,6 +1315,10 @@ proto.Spic.CabinetProto.CreateRequest.deserializeBinaryFromReader = function(msg
|
|
|
1302
1315
|
var value = /** @type {!proto.Spic.CabinetProto.SpicType} */ (reader.readEnum());
|
|
1303
1316
|
msg.setSpicType(value);
|
|
1304
1317
|
break;
|
|
1318
|
+
case 10:
|
|
1319
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1320
|
+
msg.setQrCode(value);
|
|
1321
|
+
break;
|
|
1305
1322
|
default:
|
|
1306
1323
|
reader.skipField();
|
|
1307
1324
|
break;
|
|
@@ -1395,6 +1412,13 @@ proto.Spic.CabinetProto.CreateRequest.serializeBinaryToWriter = function(message
|
|
|
1395
1412
|
f
|
|
1396
1413
|
);
|
|
1397
1414
|
}
|
|
1415
|
+
f = message.getQrCode();
|
|
1416
|
+
if (f.length > 0) {
|
|
1417
|
+
writer.writeString(
|
|
1418
|
+
10,
|
|
1419
|
+
f
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1398
1422
|
};
|
|
1399
1423
|
|
|
1400
1424
|
|
|
@@ -1579,6 +1603,24 @@ proto.Spic.CabinetProto.CreateRequest.prototype.setSpicType = function(value) {
|
|
|
1579
1603
|
};
|
|
1580
1604
|
|
|
1581
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* optional string qr_code = 10;
|
|
1608
|
+
* @return {string}
|
|
1609
|
+
*/
|
|
1610
|
+
proto.Spic.CabinetProto.CreateRequest.prototype.getQrCode = function() {
|
|
1611
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1612
|
+
};
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* @param {string} value
|
|
1617
|
+
* @return {!proto.Spic.CabinetProto.CreateRequest} returns this
|
|
1618
|
+
*/
|
|
1619
|
+
proto.Spic.CabinetProto.CreateRequest.prototype.setQrCode = function(value) {
|
|
1620
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
|
|
1582
1624
|
|
|
1583
1625
|
/**
|
|
1584
1626
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -1842,7 +1884,8 @@ proto.Spic.CabinetProto.UpdateRequest.toObject = function(includeInstance, msg)
|
|
|
1842
1884
|
extIo2Name: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1843
1885
|
groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1844
1886
|
clientId: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
1845
|
-
spicType: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
1887
|
+
spicType: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
1888
|
+
qrCode: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
1846
1889
|
};
|
|
1847
1890
|
|
|
1848
1891
|
if (includeInstance) {
|
|
@@ -1920,6 +1963,10 @@ proto.Spic.CabinetProto.UpdateRequest.deserializeBinaryFromReader = function(msg
|
|
|
1920
1963
|
var value = /** @type {!proto.Spic.CabinetProto.SpicType} */ (reader.readEnum());
|
|
1921
1964
|
msg.setSpicType(value);
|
|
1922
1965
|
break;
|
|
1966
|
+
case 11:
|
|
1967
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1968
|
+
msg.setQrCode(value);
|
|
1969
|
+
break;
|
|
1923
1970
|
default:
|
|
1924
1971
|
reader.skipField();
|
|
1925
1972
|
break;
|
|
@@ -2020,6 +2067,13 @@ proto.Spic.CabinetProto.UpdateRequest.serializeBinaryToWriter = function(message
|
|
|
2020
2067
|
f
|
|
2021
2068
|
);
|
|
2022
2069
|
}
|
|
2070
|
+
f = message.getQrCode();
|
|
2071
|
+
if (f.length > 0) {
|
|
2072
|
+
writer.writeString(
|
|
2073
|
+
11,
|
|
2074
|
+
f
|
|
2075
|
+
);
|
|
2076
|
+
}
|
|
2023
2077
|
};
|
|
2024
2078
|
|
|
2025
2079
|
|
|
@@ -2222,6 +2276,24 @@ proto.Spic.CabinetProto.UpdateRequest.prototype.setSpicType = function(value) {
|
|
|
2222
2276
|
};
|
|
2223
2277
|
|
|
2224
2278
|
|
|
2279
|
+
/**
|
|
2280
|
+
* optional string qr_code = 11;
|
|
2281
|
+
* @return {string}
|
|
2282
|
+
*/
|
|
2283
|
+
proto.Spic.CabinetProto.UpdateRequest.prototype.getQrCode = function() {
|
|
2284
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* @param {string} value
|
|
2290
|
+
* @return {!proto.Spic.CabinetProto.UpdateRequest} returns this
|
|
2291
|
+
*/
|
|
2292
|
+
proto.Spic.CabinetProto.UpdateRequest.prototype.setQrCode = function(value) {
|
|
2293
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
|
|
2225
2297
|
|
|
2226
2298
|
/**
|
|
2227
2299
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -9873,6 +9945,24 @@ proto.Spic.CabinetProto.prototype.setBatteryStatus = function(value) {
|
|
|
9873
9945
|
};
|
|
9874
9946
|
|
|
9875
9947
|
|
|
9948
|
+
/**
|
|
9949
|
+
* optional string qr_code = 22;
|
|
9950
|
+
* @return {string}
|
|
9951
|
+
*/
|
|
9952
|
+
proto.Spic.CabinetProto.prototype.getQrCode = function() {
|
|
9953
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
|
|
9954
|
+
};
|
|
9955
|
+
|
|
9956
|
+
|
|
9957
|
+
/**
|
|
9958
|
+
* @param {string} value
|
|
9959
|
+
* @return {!proto.Spic.CabinetProto} returns this
|
|
9960
|
+
*/
|
|
9961
|
+
proto.Spic.CabinetProto.prototype.setQrCode = function(value) {
|
|
9962
|
+
return jspb.Message.setProto3StringField(this, 22, value);
|
|
9963
|
+
};
|
|
9964
|
+
|
|
9965
|
+
|
|
9876
9966
|
|
|
9877
9967
|
|
|
9878
9968
|
|