@aceplus/smartace-api 3.6.0-alpha.18 → 3.6.0-alpha.19
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 +163 -3
- package/spic.cabinet_pb.js +1288 -146
- package/spic.cabinet_pb_service.d.ts +19 -0
- package/spic.cabinet_pb_service.js +40 -0
|
@@ -49,6 +49,15 @@ type CabinetGRPCStateExcelReport = {
|
|
|
49
49
|
readonly responseType: typeof spic_cabinet_pb.CabinetProto.State.ExcelReportReply;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type CabinetGRPCSearchEvents = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof CabinetGRPC;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.Event.SearchRequest;
|
|
58
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto.Event.SearchReply;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
type CabinetGRPCCreateOpenRequest = {
|
|
53
62
|
readonly methodName: string;
|
|
54
63
|
readonly service: typeof CabinetGRPC;
|
|
@@ -65,6 +74,7 @@ export class CabinetGRPC {
|
|
|
65
74
|
static readonly LocationSearch: CabinetGRPCLocationSearch;
|
|
66
75
|
static readonly SearchStates: CabinetGRPCSearchStates;
|
|
67
76
|
static readonly StateExcelReport: CabinetGRPCStateExcelReport;
|
|
77
|
+
static readonly SearchEvents: CabinetGRPCSearchEvents;
|
|
68
78
|
static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
|
|
69
79
|
}
|
|
70
80
|
|
|
@@ -145,6 +155,15 @@ export class CabinetGRPCClient {
|
|
|
145
155
|
requestMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportRequest,
|
|
146
156
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportReply|null) => void
|
|
147
157
|
): UnaryResponse;
|
|
158
|
+
searchEvents(
|
|
159
|
+
requestMessage: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
160
|
+
metadata: grpc.Metadata,
|
|
161
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Event.SearchReply|null) => void
|
|
162
|
+
): UnaryResponse;
|
|
163
|
+
searchEvents(
|
|
164
|
+
requestMessage: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
165
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Event.SearchReply|null) => void
|
|
166
|
+
): UnaryResponse;
|
|
148
167
|
createOpenRequest(
|
|
149
168
|
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
|
|
150
169
|
metadata: grpc.Metadata,
|
|
@@ -55,6 +55,15 @@ CabinetGRPC.StateExcelReport = {
|
|
|
55
55
|
responseType: spic_cabinet_pb.CabinetProto.State.ExcelReportReply
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
CabinetGRPC.SearchEvents = {
|
|
59
|
+
methodName: "SearchEvents",
|
|
60
|
+
service: CabinetGRPC,
|
|
61
|
+
requestStream: false,
|
|
62
|
+
responseStream: false,
|
|
63
|
+
requestType: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
64
|
+
responseType: spic_cabinet_pb.CabinetProto.Event.SearchReply
|
|
65
|
+
};
|
|
66
|
+
|
|
58
67
|
CabinetGRPC.CreateOpenRequest = {
|
|
59
68
|
methodName: "CreateOpenRequest",
|
|
60
69
|
service: CabinetGRPC,
|
|
@@ -226,6 +235,37 @@ CabinetGRPCClient.prototype.stateExcelReport = function stateExcelReport(request
|
|
|
226
235
|
};
|
|
227
236
|
};
|
|
228
237
|
|
|
238
|
+
CabinetGRPCClient.prototype.searchEvents = function searchEvents(requestMessage, metadata, callback) {
|
|
239
|
+
if (arguments.length === 2) {
|
|
240
|
+
callback = arguments[1];
|
|
241
|
+
}
|
|
242
|
+
var client = grpc.unary(CabinetGRPC.SearchEvents, {
|
|
243
|
+
request: requestMessage,
|
|
244
|
+
host: this.serviceHost,
|
|
245
|
+
metadata: metadata,
|
|
246
|
+
transport: this.options.transport,
|
|
247
|
+
debug: this.options.debug,
|
|
248
|
+
onEnd: function (response) {
|
|
249
|
+
if (callback) {
|
|
250
|
+
if (response.status !== grpc.Code.OK) {
|
|
251
|
+
var err = new Error(response.statusMessage);
|
|
252
|
+
err.code = response.status;
|
|
253
|
+
err.metadata = response.trailers;
|
|
254
|
+
callback(err, null);
|
|
255
|
+
} else {
|
|
256
|
+
callback(null, response.message);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
return {
|
|
262
|
+
cancel: function () {
|
|
263
|
+
callback = null;
|
|
264
|
+
client.close();
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
|
|
229
269
|
CabinetGRPCClient.prototype.createOpenRequest = function createOpenRequest(requestMessage, metadata, callback) {
|
|
230
270
|
if (arguments.length === 2) {
|
|
231
271
|
callback = arguments[1];
|