@aceplus/smartace-api 3.4.0-alpha.5 → 3.4.0-alpha.7
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/meta.spic_config_pb.d.ts +29 -0
- package/meta.spic_config_pb.js +226 -0
- package/meta.spic_config_pb_service.d.ts +31 -11
- package/meta.spic_config_pb_service.js +60 -19
- package/package.json +1 -1
- package/spic.asset_pb.d.ts +25 -0
- package/spic.asset_pb.js +27 -0
- package/meta.spic_alert_pb.d.ts +0 -230
- package/meta.spic_alert_pb.js +0 -1615
- package/meta.spic_alert_pb_service.d.ts +0 -121
- package/meta.spic_alert_pb_service.js +0 -182
- package/meta.spic_pb.d.ts +0 -36
- package/meta.spic_pb.js +0 -254
- package/meta.spic_pb_service.d.ts +0 -64
- package/meta.spic_pb_service.js +0 -62
package/meta.spic_config_pb.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
6
|
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
7
|
+
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
7
8
|
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
8
9
|
|
|
9
10
|
export class TemperatureConfigurationProto extends jspb.Message {
|
|
@@ -153,3 +154,31 @@ export namespace TemperatureConfigurationProto {
|
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
|
|
157
|
+
export class CabinetLocationMeta extends jspb.Message {
|
|
158
|
+
hasCabinetLocation(): boolean;
|
|
159
|
+
clearCabinetLocation(): void;
|
|
160
|
+
getCabinetLocation(): spic_cabinet_pb.CabinetWithLocation | undefined;
|
|
161
|
+
setCabinetLocation(value?: spic_cabinet_pb.CabinetWithLocation): void;
|
|
162
|
+
|
|
163
|
+
hasTemperatureConfiguration(): boolean;
|
|
164
|
+
clearTemperatureConfiguration(): void;
|
|
165
|
+
getTemperatureConfiguration(): TemperatureConfigurationProto | undefined;
|
|
166
|
+
setTemperatureConfiguration(value?: TemperatureConfigurationProto): void;
|
|
167
|
+
|
|
168
|
+
serializeBinary(): Uint8Array;
|
|
169
|
+
toObject(includeInstance?: boolean): CabinetLocationMeta.AsObject;
|
|
170
|
+
static toObject(includeInstance: boolean, msg: CabinetLocationMeta): CabinetLocationMeta.AsObject;
|
|
171
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
172
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
173
|
+
static serializeBinaryToWriter(message: CabinetLocationMeta, writer: jspb.BinaryWriter): void;
|
|
174
|
+
static deserializeBinary(bytes: Uint8Array): CabinetLocationMeta;
|
|
175
|
+
static deserializeBinaryFromReader(message: CabinetLocationMeta, reader: jspb.BinaryReader): CabinetLocationMeta;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace CabinetLocationMeta {
|
|
179
|
+
export type AsObject = {
|
|
180
|
+
cabinetLocation?: spic_cabinet_pb.CabinetWithLocation.AsObject,
|
|
181
|
+
temperatureConfiguration?: TemperatureConfigurationProto.AsObject,
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
package/meta.spic_config_pb.js
CHANGED
|
@@ -25,8 +25,11 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
|
|
|
25
25
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
26
26
|
var platform_pagination_pb = require('./platform.pagination_pb.js');
|
|
27
27
|
goog.object.extend(proto, platform_pagination_pb);
|
|
28
|
+
var spic_cabinet_pb = require('./spic.cabinet_pb.js');
|
|
29
|
+
goog.object.extend(proto, spic_cabinet_pb);
|
|
28
30
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
29
31
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
32
|
+
goog.exportSymbol('proto.Meta.CabinetLocationMeta', null, global);
|
|
30
33
|
goog.exportSymbol('proto.Meta.TemperatureConfigurationProto', null, global);
|
|
31
34
|
goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.CreateTemplateRequest', null, global);
|
|
32
35
|
goog.exportSymbol('proto.Meta.TemperatureConfigurationProto.SearchTemplateReply', null, global);
|
|
@@ -138,6 +141,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
138
141
|
*/
|
|
139
142
|
proto.Meta.TemperatureConfigurationProto.SearchTemplateReply.displayName = 'proto.Meta.TemperatureConfigurationProto.SearchTemplateReply';
|
|
140
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Generated by JsPbCodeGenerator.
|
|
146
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
147
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
148
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
149
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
150
|
+
* valid.
|
|
151
|
+
* @extends {jspb.Message}
|
|
152
|
+
* @constructor
|
|
153
|
+
*/
|
|
154
|
+
proto.Meta.CabinetLocationMeta = function(opt_data) {
|
|
155
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
156
|
+
};
|
|
157
|
+
goog.inherits(proto.Meta.CabinetLocationMeta, jspb.Message);
|
|
158
|
+
if (goog.DEBUG && !COMPILED) {
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* @override
|
|
162
|
+
*/
|
|
163
|
+
proto.Meta.CabinetLocationMeta.displayName = 'proto.Meta.CabinetLocationMeta';
|
|
164
|
+
}
|
|
141
165
|
|
|
142
166
|
|
|
143
167
|
|
|
@@ -1153,4 +1177,206 @@ proto.Meta.TemperatureConfigurationProto.prototype.setCriticalClear = function(v
|
|
|
1153
1177
|
};
|
|
1154
1178
|
|
|
1155
1179
|
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1184
|
+
/**
|
|
1185
|
+
* Creates an object representation of this proto.
|
|
1186
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1187
|
+
* Optional fields that are not set will be set to undefined.
|
|
1188
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1189
|
+
* For the list of reserved names please see:
|
|
1190
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1191
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1192
|
+
* JSPB instance for transitional soy proto support:
|
|
1193
|
+
* http://goto/soy-param-migration
|
|
1194
|
+
* @return {!Object}
|
|
1195
|
+
*/
|
|
1196
|
+
proto.Meta.CabinetLocationMeta.prototype.toObject = function(opt_includeInstance) {
|
|
1197
|
+
return proto.Meta.CabinetLocationMeta.toObject(opt_includeInstance, this);
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Static version of the {@see toObject} method.
|
|
1203
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1204
|
+
* the JSPB instance for transitional soy proto support:
|
|
1205
|
+
* http://goto/soy-param-migration
|
|
1206
|
+
* @param {!proto.Meta.CabinetLocationMeta} msg The msg instance to transform.
|
|
1207
|
+
* @return {!Object}
|
|
1208
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1209
|
+
*/
|
|
1210
|
+
proto.Meta.CabinetLocationMeta.toObject = function(includeInstance, msg) {
|
|
1211
|
+
var f, obj = {
|
|
1212
|
+
cabinetLocation: (f = msg.getCabinetLocation()) && spic_cabinet_pb.CabinetWithLocation.toObject(includeInstance, f),
|
|
1213
|
+
temperatureConfiguration: (f = msg.getTemperatureConfiguration()) && proto.Meta.TemperatureConfigurationProto.toObject(includeInstance, f)
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
if (includeInstance) {
|
|
1217
|
+
obj.$jspbMessageInstance = msg;
|
|
1218
|
+
}
|
|
1219
|
+
return obj;
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1226
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1227
|
+
* @return {!proto.Meta.CabinetLocationMeta}
|
|
1228
|
+
*/
|
|
1229
|
+
proto.Meta.CabinetLocationMeta.deserializeBinary = function(bytes) {
|
|
1230
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1231
|
+
var msg = new proto.Meta.CabinetLocationMeta;
|
|
1232
|
+
return proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader(msg, reader);
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1238
|
+
* given reader into the given message object.
|
|
1239
|
+
* @param {!proto.Meta.CabinetLocationMeta} msg The message object to deserialize into.
|
|
1240
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1241
|
+
* @return {!proto.Meta.CabinetLocationMeta}
|
|
1242
|
+
*/
|
|
1243
|
+
proto.Meta.CabinetLocationMeta.deserializeBinaryFromReader = function(msg, reader) {
|
|
1244
|
+
while (reader.nextField()) {
|
|
1245
|
+
if (reader.isEndGroup()) {
|
|
1246
|
+
break;
|
|
1247
|
+
}
|
|
1248
|
+
var field = reader.getFieldNumber();
|
|
1249
|
+
switch (field) {
|
|
1250
|
+
case 1:
|
|
1251
|
+
var value = new spic_cabinet_pb.CabinetWithLocation;
|
|
1252
|
+
reader.readMessage(value,spic_cabinet_pb.CabinetWithLocation.deserializeBinaryFromReader);
|
|
1253
|
+
msg.setCabinetLocation(value);
|
|
1254
|
+
break;
|
|
1255
|
+
case 2:
|
|
1256
|
+
var value = new proto.Meta.TemperatureConfigurationProto;
|
|
1257
|
+
reader.readMessage(value,proto.Meta.TemperatureConfigurationProto.deserializeBinaryFromReader);
|
|
1258
|
+
msg.setTemperatureConfiguration(value);
|
|
1259
|
+
break;
|
|
1260
|
+
default:
|
|
1261
|
+
reader.skipField();
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
return msg;
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1271
|
+
* @return {!Uint8Array}
|
|
1272
|
+
*/
|
|
1273
|
+
proto.Meta.CabinetLocationMeta.prototype.serializeBinary = function() {
|
|
1274
|
+
var writer = new jspb.BinaryWriter();
|
|
1275
|
+
proto.Meta.CabinetLocationMeta.serializeBinaryToWriter(this, writer);
|
|
1276
|
+
return writer.getResultBuffer();
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1282
|
+
* format), writing to the given BinaryWriter.
|
|
1283
|
+
* @param {!proto.Meta.CabinetLocationMeta} message
|
|
1284
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1285
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1286
|
+
*/
|
|
1287
|
+
proto.Meta.CabinetLocationMeta.serializeBinaryToWriter = function(message, writer) {
|
|
1288
|
+
var f = undefined;
|
|
1289
|
+
f = message.getCabinetLocation();
|
|
1290
|
+
if (f != null) {
|
|
1291
|
+
writer.writeMessage(
|
|
1292
|
+
1,
|
|
1293
|
+
f,
|
|
1294
|
+
spic_cabinet_pb.CabinetWithLocation.serializeBinaryToWriter
|
|
1295
|
+
);
|
|
1296
|
+
}
|
|
1297
|
+
f = message.getTemperatureConfiguration();
|
|
1298
|
+
if (f != null) {
|
|
1299
|
+
writer.writeMessage(
|
|
1300
|
+
2,
|
|
1301
|
+
f,
|
|
1302
|
+
proto.Meta.TemperatureConfigurationProto.serializeBinaryToWriter
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* optional Spic.CabinetWithLocation cabinet_location = 1;
|
|
1310
|
+
* @return {?proto.Spic.CabinetWithLocation}
|
|
1311
|
+
*/
|
|
1312
|
+
proto.Meta.CabinetLocationMeta.prototype.getCabinetLocation = function() {
|
|
1313
|
+
return /** @type{?proto.Spic.CabinetWithLocation} */ (
|
|
1314
|
+
jspb.Message.getWrapperField(this, spic_cabinet_pb.CabinetWithLocation, 1));
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* @param {?proto.Spic.CabinetWithLocation|undefined} value
|
|
1320
|
+
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1321
|
+
*/
|
|
1322
|
+
proto.Meta.CabinetLocationMeta.prototype.setCabinetLocation = function(value) {
|
|
1323
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Clears the message field making it undefined.
|
|
1329
|
+
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1330
|
+
*/
|
|
1331
|
+
proto.Meta.CabinetLocationMeta.prototype.clearCabinetLocation = function() {
|
|
1332
|
+
return this.setCabinetLocation(undefined);
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Returns whether this field is set.
|
|
1338
|
+
* @return {boolean}
|
|
1339
|
+
*/
|
|
1340
|
+
proto.Meta.CabinetLocationMeta.prototype.hasCabinetLocation = function() {
|
|
1341
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* optional TemperatureConfigurationProto temperature_configuration = 2;
|
|
1347
|
+
* @return {?proto.Meta.TemperatureConfigurationProto}
|
|
1348
|
+
*/
|
|
1349
|
+
proto.Meta.CabinetLocationMeta.prototype.getTemperatureConfiguration = function() {
|
|
1350
|
+
return /** @type{?proto.Meta.TemperatureConfigurationProto} */ (
|
|
1351
|
+
jspb.Message.getWrapperField(this, proto.Meta.TemperatureConfigurationProto, 2));
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* @param {?proto.Meta.TemperatureConfigurationProto|undefined} value
|
|
1357
|
+
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1358
|
+
*/
|
|
1359
|
+
proto.Meta.CabinetLocationMeta.prototype.setTemperatureConfiguration = function(value) {
|
|
1360
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Clears the message field making it undefined.
|
|
1366
|
+
* @return {!proto.Meta.CabinetLocationMeta} returns this
|
|
1367
|
+
*/
|
|
1368
|
+
proto.Meta.CabinetLocationMeta.prototype.clearTemperatureConfiguration = function() {
|
|
1369
|
+
return this.setTemperatureConfiguration(undefined);
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Returns whether this field is set.
|
|
1375
|
+
* @return {boolean}
|
|
1376
|
+
*/
|
|
1377
|
+
proto.Meta.CabinetLocationMeta.prototype.hasTemperatureConfiguration = function() {
|
|
1378
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
|
|
1156
1382
|
goog.object.extend(exports, proto.Meta);
|
|
@@ -3,40 +3,51 @@
|
|
|
3
3
|
|
|
4
4
|
import * as meta_spic_config_pb from "./meta.spic_config_pb";
|
|
5
5
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
+
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
6
7
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
7
8
|
|
|
8
|
-
type
|
|
9
|
+
type CabinetMetaGRPCRetrieve = {
|
|
9
10
|
readonly methodName: string;
|
|
10
|
-
readonly service: typeof
|
|
11
|
+
readonly service: typeof CabinetMetaGRPC;
|
|
12
|
+
readonly requestStream: false;
|
|
13
|
+
readonly responseStream: false;
|
|
14
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.RetrieveRequest;
|
|
15
|
+
readonly responseType: typeof meta_spic_config_pb.CabinetLocationMeta;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type CabinetMetaGRPCSetTemperatureConfiguration = {
|
|
19
|
+
readonly methodName: string;
|
|
20
|
+
readonly service: typeof CabinetMetaGRPC;
|
|
11
21
|
readonly requestStream: false;
|
|
12
22
|
readonly responseStream: false;
|
|
13
23
|
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest;
|
|
14
24
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
15
25
|
};
|
|
16
26
|
|
|
17
|
-
type
|
|
27
|
+
type CabinetMetaGRPCCreateTemperatureConfigurationTemplate = {
|
|
18
28
|
readonly methodName: string;
|
|
19
|
-
readonly service: typeof
|
|
29
|
+
readonly service: typeof CabinetMetaGRPC;
|
|
20
30
|
readonly requestStream: false;
|
|
21
31
|
readonly responseStream: false;
|
|
22
32
|
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest;
|
|
23
33
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
24
34
|
};
|
|
25
35
|
|
|
26
|
-
type
|
|
36
|
+
type CabinetMetaGRPCSearchTemperatureConfigurationTemplate = {
|
|
27
37
|
readonly methodName: string;
|
|
28
|
-
readonly service: typeof
|
|
38
|
+
readonly service: typeof CabinetMetaGRPC;
|
|
29
39
|
readonly requestStream: false;
|
|
30
40
|
readonly responseStream: false;
|
|
31
41
|
readonly requestType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest;
|
|
32
42
|
readonly responseType: typeof meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply;
|
|
33
43
|
};
|
|
34
44
|
|
|
35
|
-
export class
|
|
45
|
+
export class CabinetMetaGRPC {
|
|
36
46
|
static readonly serviceName: string;
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
47
|
+
static readonly Retrieve: CabinetMetaGRPCRetrieve;
|
|
48
|
+
static readonly SetTemperatureConfiguration: CabinetMetaGRPCSetTemperatureConfiguration;
|
|
49
|
+
static readonly CreateTemperatureConfigurationTemplate: CabinetMetaGRPCCreateTemperatureConfigurationTemplate;
|
|
50
|
+
static readonly SearchTemperatureConfigurationTemplate: CabinetMetaGRPCSearchTemperatureConfigurationTemplate;
|
|
40
51
|
}
|
|
41
52
|
|
|
42
53
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -67,10 +78,19 @@ interface BidirectionalStream<ReqT, ResT> {
|
|
|
67
78
|
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
68
79
|
}
|
|
69
80
|
|
|
70
|
-
export class
|
|
81
|
+
export class CabinetMetaGRPCClient {
|
|
71
82
|
readonly serviceHost: string;
|
|
72
83
|
|
|
73
84
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
85
|
+
retrieve(
|
|
86
|
+
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
87
|
+
metadata: grpc.Metadata,
|
|
88
|
+
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.CabinetLocationMeta|null) => void
|
|
89
|
+
): UnaryResponse;
|
|
90
|
+
retrieve(
|
|
91
|
+
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
92
|
+
callback: (error: ServiceError|null, responseMessage: meta_spic_config_pb.CabinetLocationMeta|null) => void
|
|
93
|
+
): UnaryResponse;
|
|
74
94
|
setTemperatureConfiguration(
|
|
75
95
|
requestMessage: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
76
96
|
metadata: grpc.Metadata,
|
|
@@ -3,53 +3,94 @@
|
|
|
3
3
|
|
|
4
4
|
var meta_spic_config_pb = require("./meta.spic_config_pb");
|
|
5
5
|
var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
|
|
6
|
+
var spic_cabinet_pb = require("./spic.cabinet_pb");
|
|
6
7
|
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
7
8
|
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
return
|
|
9
|
+
var CabinetMetaGRPC = (function () {
|
|
10
|
+
function CabinetMetaGRPC() {}
|
|
11
|
+
CabinetMetaGRPC.serviceName = "Meta.CabinetMetaGRPC";
|
|
12
|
+
return CabinetMetaGRPC;
|
|
12
13
|
}());
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
CabinetMetaGRPC.Retrieve = {
|
|
16
|
+
methodName: "Retrieve",
|
|
17
|
+
service: CabinetMetaGRPC,
|
|
18
|
+
requestStream: false,
|
|
19
|
+
responseStream: false,
|
|
20
|
+
requestType: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
21
|
+
responseType: meta_spic_config_pb.CabinetLocationMeta
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
CabinetMetaGRPC.SetTemperatureConfiguration = {
|
|
15
25
|
methodName: "SetTemperatureConfiguration",
|
|
16
|
-
service:
|
|
26
|
+
service: CabinetMetaGRPC,
|
|
17
27
|
requestStream: false,
|
|
18
28
|
responseStream: false,
|
|
19
29
|
requestType: meta_spic_config_pb.TemperatureConfigurationProto.SetConfigurationRequest,
|
|
20
30
|
responseType: google_protobuf_empty_pb.Empty
|
|
21
31
|
};
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
CabinetMetaGRPC.CreateTemperatureConfigurationTemplate = {
|
|
24
34
|
methodName: "CreateTemperatureConfigurationTemplate",
|
|
25
|
-
service:
|
|
35
|
+
service: CabinetMetaGRPC,
|
|
26
36
|
requestStream: false,
|
|
27
37
|
responseStream: false,
|
|
28
38
|
requestType: meta_spic_config_pb.TemperatureConfigurationProto.CreateTemplateRequest,
|
|
29
39
|
responseType: google_protobuf_empty_pb.Empty
|
|
30
40
|
};
|
|
31
41
|
|
|
32
|
-
|
|
42
|
+
CabinetMetaGRPC.SearchTemperatureConfigurationTemplate = {
|
|
33
43
|
methodName: "SearchTemperatureConfigurationTemplate",
|
|
34
|
-
service:
|
|
44
|
+
service: CabinetMetaGRPC,
|
|
35
45
|
requestStream: false,
|
|
36
46
|
responseStream: false,
|
|
37
47
|
requestType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateRequest,
|
|
38
48
|
responseType: meta_spic_config_pb.TemperatureConfigurationProto.SearchTemplateReply
|
|
39
49
|
};
|
|
40
50
|
|
|
41
|
-
exports.
|
|
51
|
+
exports.CabinetMetaGRPC = CabinetMetaGRPC;
|
|
42
52
|
|
|
43
|
-
function
|
|
53
|
+
function CabinetMetaGRPCClient(serviceHost, options) {
|
|
44
54
|
this.serviceHost = serviceHost;
|
|
45
55
|
this.options = options || {};
|
|
46
56
|
}
|
|
47
57
|
|
|
48
|
-
|
|
58
|
+
CabinetMetaGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
59
|
+
if (arguments.length === 2) {
|
|
60
|
+
callback = arguments[1];
|
|
61
|
+
}
|
|
62
|
+
var client = grpc.unary(CabinetMetaGRPC.Retrieve, {
|
|
63
|
+
request: requestMessage,
|
|
64
|
+
host: this.serviceHost,
|
|
65
|
+
metadata: metadata,
|
|
66
|
+
transport: this.options.transport,
|
|
67
|
+
debug: this.options.debug,
|
|
68
|
+
onEnd: function (response) {
|
|
69
|
+
if (callback) {
|
|
70
|
+
if (response.status !== grpc.Code.OK) {
|
|
71
|
+
var err = new Error(response.statusMessage);
|
|
72
|
+
err.code = response.status;
|
|
73
|
+
err.metadata = response.trailers;
|
|
74
|
+
callback(err, null);
|
|
75
|
+
} else {
|
|
76
|
+
callback(null, response.message);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
cancel: function () {
|
|
83
|
+
callback = null;
|
|
84
|
+
client.close();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
CabinetMetaGRPCClient.prototype.setTemperatureConfiguration = function setTemperatureConfiguration(requestMessage, metadata, callback) {
|
|
49
90
|
if (arguments.length === 2) {
|
|
50
91
|
callback = arguments[1];
|
|
51
92
|
}
|
|
52
|
-
var client = grpc.unary(
|
|
93
|
+
var client = grpc.unary(CabinetMetaGRPC.SetTemperatureConfiguration, {
|
|
53
94
|
request: requestMessage,
|
|
54
95
|
host: this.serviceHost,
|
|
55
96
|
metadata: metadata,
|
|
@@ -76,11 +117,11 @@ MetaSpicConfigGRPCClient.prototype.setTemperatureConfiguration = function setTem
|
|
|
76
117
|
};
|
|
77
118
|
};
|
|
78
119
|
|
|
79
|
-
|
|
120
|
+
CabinetMetaGRPCClient.prototype.createTemperatureConfigurationTemplate = function createTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
|
|
80
121
|
if (arguments.length === 2) {
|
|
81
122
|
callback = arguments[1];
|
|
82
123
|
}
|
|
83
|
-
var client = grpc.unary(
|
|
124
|
+
var client = grpc.unary(CabinetMetaGRPC.CreateTemperatureConfigurationTemplate, {
|
|
84
125
|
request: requestMessage,
|
|
85
126
|
host: this.serviceHost,
|
|
86
127
|
metadata: metadata,
|
|
@@ -107,11 +148,11 @@ MetaSpicConfigGRPCClient.prototype.createTemperatureConfigurationTemplate = func
|
|
|
107
148
|
};
|
|
108
149
|
};
|
|
109
150
|
|
|
110
|
-
|
|
151
|
+
CabinetMetaGRPCClient.prototype.searchTemperatureConfigurationTemplate = function searchTemperatureConfigurationTemplate(requestMessage, metadata, callback) {
|
|
111
152
|
if (arguments.length === 2) {
|
|
112
153
|
callback = arguments[1];
|
|
113
154
|
}
|
|
114
|
-
var client = grpc.unary(
|
|
155
|
+
var client = grpc.unary(CabinetMetaGRPC.SearchTemperatureConfigurationTemplate, {
|
|
115
156
|
request: requestMessage,
|
|
116
157
|
host: this.serviceHost,
|
|
117
158
|
metadata: metadata,
|
|
@@ -138,5 +179,5 @@ MetaSpicConfigGRPCClient.prototype.searchTemperatureConfigurationTemplate = func
|
|
|
138
179
|
};
|
|
139
180
|
};
|
|
140
181
|
|
|
141
|
-
exports.
|
|
182
|
+
exports.CabinetMetaGRPCClient = CabinetMetaGRPCClient;
|
|
142
183
|
|
package/package.json
CHANGED
package/spic.asset_pb.d.ts
CHANGED
|
@@ -612,3 +612,28 @@ export namespace AssetWithLocationAndDistance {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
|
|
615
|
+
export interface ComponentIdentifiersMap {
|
|
616
|
+
ENCLOSURE_TEMPERATURE: 0;
|
|
617
|
+
ENCLOSURE_HUMIDITY: 1;
|
|
618
|
+
ENCLOSURE_TILT: 2;
|
|
619
|
+
DEVICE_UID: 3;
|
|
620
|
+
COMMUNICATION_PACKET_NUMBER: 4;
|
|
621
|
+
MAINBOARD_FIRMWARE_CRC: 5;
|
|
622
|
+
MAINBOARD_BATTERY_VOLTAGE: 6;
|
|
623
|
+
LTE_COMMUNICATION_TIME: 7;
|
|
624
|
+
LTE_SIGNAL_STRENGTH: 8;
|
|
625
|
+
LTE_NETWORK_STRING: 9;
|
|
626
|
+
LTE_ICCID: 10;
|
|
627
|
+
LTE_IMEI: 11;
|
|
628
|
+
NTC_CRITICAL_TEMPERATURE_ALARM: 12;
|
|
629
|
+
NTC_HIGH_TEMPERATURE_ALARM: 13;
|
|
630
|
+
CABINET_MAIN_DOOR: 14;
|
|
631
|
+
CABINET_MAIN_DOOR_HANDLE: 15;
|
|
632
|
+
CABINET_MAIN_DOOR_LOCK: 16;
|
|
633
|
+
EXT_ALARM_1: 31;
|
|
634
|
+
EXT_ALARM_2: 32;
|
|
635
|
+
EXT_ALARM_3: 33;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export const ComponentIdentifiers: ComponentIdentifiersMap;
|
|
639
|
+
|
package/spic.asset_pb.js
CHANGED
|
@@ -54,6 +54,7 @@ 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);
|
|
57
|
+
goog.exportSymbol('proto.Spic.ComponentIdentifiers', null, global);
|
|
57
58
|
/**
|
|
58
59
|
* Generated by JsPbCodeGenerator.
|
|
59
60
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4531,4 +4532,30 @@ proto.Spic.AssetWithLocationAndDistance.prototype.setDistance = function(value)
|
|
|
4531
4532
|
};
|
|
4532
4533
|
|
|
4533
4534
|
|
|
4535
|
+
/**
|
|
4536
|
+
* @enum {number}
|
|
4537
|
+
*/
|
|
4538
|
+
proto.Spic.ComponentIdentifiers = {
|
|
4539
|
+
ENCLOSURE_TEMPERATURE: 0,
|
|
4540
|
+
ENCLOSURE_HUMIDITY: 1,
|
|
4541
|
+
ENCLOSURE_TILT: 2,
|
|
4542
|
+
DEVICE_UID: 3,
|
|
4543
|
+
COMMUNICATION_PACKET_NUMBER: 4,
|
|
4544
|
+
MAINBOARD_FIRMWARE_CRC: 5,
|
|
4545
|
+
MAINBOARD_BATTERY_VOLTAGE: 6,
|
|
4546
|
+
LTE_COMMUNICATION_TIME: 7,
|
|
4547
|
+
LTE_SIGNAL_STRENGTH: 8,
|
|
4548
|
+
LTE_NETWORK_STRING: 9,
|
|
4549
|
+
LTE_ICCID: 10,
|
|
4550
|
+
LTE_IMEI: 11,
|
|
4551
|
+
NTC_CRITICAL_TEMPERATURE_ALARM: 12,
|
|
4552
|
+
NTC_HIGH_TEMPERATURE_ALARM: 13,
|
|
4553
|
+
CABINET_MAIN_DOOR: 14,
|
|
4554
|
+
CABINET_MAIN_DOOR_HANDLE: 15,
|
|
4555
|
+
CABINET_MAIN_DOOR_LOCK: 16,
|
|
4556
|
+
EXT_ALARM_1: 31,
|
|
4557
|
+
EXT_ALARM_2: 32,
|
|
4558
|
+
EXT_ALARM_3: 33
|
|
4559
|
+
};
|
|
4560
|
+
|
|
4534
4561
|
goog.object.extend(exports, proto.Spic);
|