@aceplus/smartace-api 2.11.0-alpha.3 → 2.11.0-alpha.5
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 +184 -0
- package/meta.spic_config_pb.js +1382 -0
- package/meta.spic_config_pb_service.d.ts +122 -0
- package/meta.spic_config_pb_service.js +183 -0
- package/package.json +1 -1
- package/spic.cabinet_pb.d.ts +34 -0
- package/spic.cabinet_pb.js +264 -1
- package/spic.cabinet_pb_service.d.ts +19 -0
- package/spic.cabinet_pb_service.js +40 -0
|
@@ -68,6 +68,15 @@ type CabinetGRPCLocationSearch = {
|
|
|
68
68
|
readonly responseType: typeof spic_cabinet_pb.CabinetProto.LocationSearchReply;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
type CabinetGRPCReplaceBattery = {
|
|
72
|
+
readonly methodName: string;
|
|
73
|
+
readonly service: typeof CabinetGRPC;
|
|
74
|
+
readonly requestStream: false;
|
|
75
|
+
readonly responseStream: false;
|
|
76
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest;
|
|
77
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto;
|
|
78
|
+
};
|
|
79
|
+
|
|
71
80
|
type CabinetGRPCSearchStates = {
|
|
72
81
|
readonly methodName: string;
|
|
73
82
|
readonly service: typeof CabinetGRPC;
|
|
@@ -122,6 +131,7 @@ export class CabinetGRPC {
|
|
|
122
131
|
static readonly RetrieveImage: CabinetGRPCRetrieveImage;
|
|
123
132
|
static readonly Search: CabinetGRPCSearch;
|
|
124
133
|
static readonly LocationSearch: CabinetGRPCLocationSearch;
|
|
134
|
+
static readonly ReplaceBattery: CabinetGRPCReplaceBattery;
|
|
125
135
|
static readonly SearchStates: CabinetGRPCSearchStates;
|
|
126
136
|
static readonly SearchEvents: CabinetGRPCSearchEvents;
|
|
127
137
|
static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
|
|
@@ -258,6 +268,15 @@ export class CabinetGRPCClient {
|
|
|
258
268
|
requestMessage: spic_cabinet_pb.CabinetProto.LocationSearchRequest,
|
|
259
269
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.LocationSearchReply|null) => void
|
|
260
270
|
): UnaryResponse;
|
|
271
|
+
replaceBattery(
|
|
272
|
+
requestMessage: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
273
|
+
metadata: grpc.Metadata,
|
|
274
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
275
|
+
): UnaryResponse;
|
|
276
|
+
replaceBattery(
|
|
277
|
+
requestMessage: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
278
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
279
|
+
): UnaryResponse;
|
|
261
280
|
searchStates(
|
|
262
281
|
requestMessage: spic_cabinet_pb.CabinetProto.State.SearchRequest,
|
|
263
282
|
metadata: grpc.Metadata,
|
|
@@ -74,6 +74,15 @@ CabinetGRPC.LocationSearch = {
|
|
|
74
74
|
responseType: spic_cabinet_pb.CabinetProto.LocationSearchReply
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
+
CabinetGRPC.ReplaceBattery = {
|
|
78
|
+
methodName: "ReplaceBattery",
|
|
79
|
+
service: CabinetGRPC,
|
|
80
|
+
requestStream: false,
|
|
81
|
+
responseStream: false,
|
|
82
|
+
requestType: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
83
|
+
responseType: spic_cabinet_pb.CabinetProto
|
|
84
|
+
};
|
|
85
|
+
|
|
77
86
|
CabinetGRPC.SearchStates = {
|
|
78
87
|
methodName: "SearchStates",
|
|
79
88
|
service: CabinetGRPC,
|
|
@@ -343,6 +352,37 @@ CabinetGRPCClient.prototype.locationSearch = function locationSearch(requestMess
|
|
|
343
352
|
};
|
|
344
353
|
};
|
|
345
354
|
|
|
355
|
+
CabinetGRPCClient.prototype.replaceBattery = function replaceBattery(requestMessage, metadata, callback) {
|
|
356
|
+
if (arguments.length === 2) {
|
|
357
|
+
callback = arguments[1];
|
|
358
|
+
}
|
|
359
|
+
var client = grpc.unary(CabinetGRPC.ReplaceBattery, {
|
|
360
|
+
request: requestMessage,
|
|
361
|
+
host: this.serviceHost,
|
|
362
|
+
metadata: metadata,
|
|
363
|
+
transport: this.options.transport,
|
|
364
|
+
debug: this.options.debug,
|
|
365
|
+
onEnd: function (response) {
|
|
366
|
+
if (callback) {
|
|
367
|
+
if (response.status !== grpc.Code.OK) {
|
|
368
|
+
var err = new Error(response.statusMessage);
|
|
369
|
+
err.code = response.status;
|
|
370
|
+
err.metadata = response.trailers;
|
|
371
|
+
callback(err, null);
|
|
372
|
+
} else {
|
|
373
|
+
callback(null, response.message);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
return {
|
|
379
|
+
cancel: function () {
|
|
380
|
+
callback = null;
|
|
381
|
+
client.close();
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
|
|
346
386
|
CabinetGRPCClient.prototype.searchStates = function searchStates(requestMessage, metadata, callback) {
|
|
347
387
|
if (arguments.length === 2) {
|
|
348
388
|
callback = arguments[1];
|