@aceplus/smartace-api 3.6.0-alpha.11 → 3.6.0-alpha.14
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.admin_alert_pb.d.ts +91 -0
- package/spic.admin_alert_pb.js +666 -0
- package/spic.admin_alert_pb_service.d.ts +102 -0
- package/spic.admin_alert_pb_service.js +142 -0
- package/spic.alarm_pb.d.ts +336 -0
- package/spic.alarm_pb.js +2562 -0
- package/spic.alarm_pb_service.d.ts +101 -0
- package/spic.alarm_pb_service.js +141 -0
- package/spic.cabinet_pb.d.ts +0 -267
- package/spic.cabinet_pb.js +0 -1960
- package/spic.cabinet_pb_service.d.ts +0 -87
- package/spic.cabinet_pb_service.js +0 -176
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// file: spic.cabinet.proto
|
|
3
3
|
|
|
4
4
|
import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
5
|
-
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
5
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
7
6
|
|
|
8
7
|
type CabinetGRPCRetrieve = {
|
|
@@ -50,15 +49,6 @@ type CabinetGRPCStateExcelReport = {
|
|
|
50
49
|
readonly responseType: typeof spic_cabinet_pb.CabinetProto.State.ExcelReportReply;
|
|
51
50
|
};
|
|
52
51
|
|
|
53
|
-
type CabinetGRPCSearchEvents = {
|
|
54
|
-
readonly methodName: string;
|
|
55
|
-
readonly service: typeof CabinetGRPC;
|
|
56
|
-
readonly requestStream: false;
|
|
57
|
-
readonly responseStream: false;
|
|
58
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.Event.SearchRequest;
|
|
59
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto.Event.SearchReply;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
52
|
type CabinetGRPCCreateOpenRequest = {
|
|
63
53
|
readonly methodName: string;
|
|
64
54
|
readonly service: typeof CabinetGRPC;
|
|
@@ -75,44 +65,9 @@ export class CabinetGRPC {
|
|
|
75
65
|
static readonly LocationSearch: CabinetGRPCLocationSearch;
|
|
76
66
|
static readonly SearchStates: CabinetGRPCSearchStates;
|
|
77
67
|
static readonly StateExcelReport: CabinetGRPCStateExcelReport;
|
|
78
|
-
static readonly SearchEvents: CabinetGRPCSearchEvents;
|
|
79
68
|
static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
|
|
80
69
|
}
|
|
81
70
|
|
|
82
|
-
type AdminAlertGRPCRetrieveAlerts = {
|
|
83
|
-
readonly methodName: string;
|
|
84
|
-
readonly service: typeof AdminAlertGRPC;
|
|
85
|
-
readonly requestStream: false;
|
|
86
|
-
readonly responseStream: false;
|
|
87
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.AdminAlerts.RetrieveAlertsRequest;
|
|
88
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto.AdminAlerts;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
type AdminAlertGRPCAddAlert = {
|
|
92
|
-
readonly methodName: string;
|
|
93
|
-
readonly service: typeof AdminAlertGRPC;
|
|
94
|
-
readonly requestStream: false;
|
|
95
|
-
readonly responseStream: false;
|
|
96
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.AdminAlerts.AddAlertRequest;
|
|
97
|
-
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
type AdminAlertGRPCRemoveAlert = {
|
|
101
|
-
readonly methodName: string;
|
|
102
|
-
readonly service: typeof AdminAlertGRPC;
|
|
103
|
-
readonly requestStream: false;
|
|
104
|
-
readonly responseStream: false;
|
|
105
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.AdminAlerts.RemoveAlertRequest;
|
|
106
|
-
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export class AdminAlertGRPC {
|
|
110
|
-
static readonly serviceName: string;
|
|
111
|
-
static readonly RetrieveAlerts: AdminAlertGRPCRetrieveAlerts;
|
|
112
|
-
static readonly AddAlert: AdminAlertGRPCAddAlert;
|
|
113
|
-
static readonly RemoveAlert: AdminAlertGRPCRemoveAlert;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
71
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
117
72
|
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
118
73
|
|
|
@@ -190,15 +145,6 @@ export class CabinetGRPCClient {
|
|
|
190
145
|
requestMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportRequest,
|
|
191
146
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.State.ExcelReportReply|null) => void
|
|
192
147
|
): UnaryResponse;
|
|
193
|
-
searchEvents(
|
|
194
|
-
requestMessage: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
195
|
-
metadata: grpc.Metadata,
|
|
196
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Event.SearchReply|null) => void
|
|
197
|
-
): UnaryResponse;
|
|
198
|
-
searchEvents(
|
|
199
|
-
requestMessage: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
200
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Event.SearchReply|null) => void
|
|
201
|
-
): UnaryResponse;
|
|
202
148
|
createOpenRequest(
|
|
203
149
|
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
|
|
204
150
|
metadata: grpc.Metadata,
|
|
@@ -210,36 +156,3 @@ export class CabinetGRPCClient {
|
|
|
210
156
|
): UnaryResponse;
|
|
211
157
|
}
|
|
212
158
|
|
|
213
|
-
export class AdminAlertGRPCClient {
|
|
214
|
-
readonly serviceHost: string;
|
|
215
|
-
|
|
216
|
-
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
217
|
-
retrieveAlerts(
|
|
218
|
-
requestMessage: spic_cabinet_pb.CabinetProto.AdminAlerts.RetrieveAlertsRequest,
|
|
219
|
-
metadata: grpc.Metadata,
|
|
220
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.AdminAlerts|null) => void
|
|
221
|
-
): UnaryResponse;
|
|
222
|
-
retrieveAlerts(
|
|
223
|
-
requestMessage: spic_cabinet_pb.CabinetProto.AdminAlerts.RetrieveAlertsRequest,
|
|
224
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.AdminAlerts|null) => void
|
|
225
|
-
): UnaryResponse;
|
|
226
|
-
addAlert(
|
|
227
|
-
requestMessage: spic_cabinet_pb.CabinetProto.AdminAlerts.AddAlertRequest,
|
|
228
|
-
metadata: grpc.Metadata,
|
|
229
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
230
|
-
): UnaryResponse;
|
|
231
|
-
addAlert(
|
|
232
|
-
requestMessage: spic_cabinet_pb.CabinetProto.AdminAlerts.AddAlertRequest,
|
|
233
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
234
|
-
): UnaryResponse;
|
|
235
|
-
removeAlert(
|
|
236
|
-
requestMessage: spic_cabinet_pb.CabinetProto.AdminAlerts.RemoveAlertRequest,
|
|
237
|
-
metadata: grpc.Metadata,
|
|
238
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
239
|
-
): UnaryResponse;
|
|
240
|
-
removeAlert(
|
|
241
|
-
requestMessage: spic_cabinet_pb.CabinetProto.AdminAlerts.RemoveAlertRequest,
|
|
242
|
-
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
243
|
-
): UnaryResponse;
|
|
244
|
-
}
|
|
245
|
-
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// file: spic.cabinet.proto
|
|
3
3
|
|
|
4
4
|
var spic_cabinet_pb = require("./spic.cabinet_pb");
|
|
5
|
-
var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
|
|
6
5
|
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
7
6
|
|
|
8
7
|
var CabinetGRPC = (function () {
|
|
@@ -56,15 +55,6 @@ CabinetGRPC.StateExcelReport = {
|
|
|
56
55
|
responseType: spic_cabinet_pb.CabinetProto.State.ExcelReportReply
|
|
57
56
|
};
|
|
58
57
|
|
|
59
|
-
CabinetGRPC.SearchEvents = {
|
|
60
|
-
methodName: "SearchEvents",
|
|
61
|
-
service: CabinetGRPC,
|
|
62
|
-
requestStream: false,
|
|
63
|
-
responseStream: false,
|
|
64
|
-
requestType: spic_cabinet_pb.CabinetProto.Event.SearchRequest,
|
|
65
|
-
responseType: spic_cabinet_pb.CabinetProto.Event.SearchReply
|
|
66
|
-
};
|
|
67
|
-
|
|
68
58
|
CabinetGRPC.CreateOpenRequest = {
|
|
69
59
|
methodName: "CreateOpenRequest",
|
|
70
60
|
service: CabinetGRPC,
|
|
@@ -236,37 +226,6 @@ CabinetGRPCClient.prototype.stateExcelReport = function stateExcelReport(request
|
|
|
236
226
|
};
|
|
237
227
|
};
|
|
238
228
|
|
|
239
|
-
CabinetGRPCClient.prototype.searchEvents = function searchEvents(requestMessage, metadata, callback) {
|
|
240
|
-
if (arguments.length === 2) {
|
|
241
|
-
callback = arguments[1];
|
|
242
|
-
}
|
|
243
|
-
var client = grpc.unary(CabinetGRPC.SearchEvents, {
|
|
244
|
-
request: requestMessage,
|
|
245
|
-
host: this.serviceHost,
|
|
246
|
-
metadata: metadata,
|
|
247
|
-
transport: this.options.transport,
|
|
248
|
-
debug: this.options.debug,
|
|
249
|
-
onEnd: function (response) {
|
|
250
|
-
if (callback) {
|
|
251
|
-
if (response.status !== grpc.Code.OK) {
|
|
252
|
-
var err = new Error(response.statusMessage);
|
|
253
|
-
err.code = response.status;
|
|
254
|
-
err.metadata = response.trailers;
|
|
255
|
-
callback(err, null);
|
|
256
|
-
} else {
|
|
257
|
-
callback(null, response.message);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
return {
|
|
263
|
-
cancel: function () {
|
|
264
|
-
callback = null;
|
|
265
|
-
client.close();
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
|
|
270
229
|
CabinetGRPCClient.prototype.createOpenRequest = function createOpenRequest(requestMessage, metadata, callback) {
|
|
271
230
|
if (arguments.length === 2) {
|
|
272
231
|
callback = arguments[1];
|
|
@@ -300,138 +259,3 @@ CabinetGRPCClient.prototype.createOpenRequest = function createOpenRequest(reque
|
|
|
300
259
|
|
|
301
260
|
exports.CabinetGRPCClient = CabinetGRPCClient;
|
|
302
261
|
|
|
303
|
-
var AdminAlertGRPC = (function () {
|
|
304
|
-
function AdminAlertGRPC() {}
|
|
305
|
-
AdminAlertGRPC.serviceName = "Spic.AdminAlertGRPC";
|
|
306
|
-
return AdminAlertGRPC;
|
|
307
|
-
}());
|
|
308
|
-
|
|
309
|
-
AdminAlertGRPC.RetrieveAlerts = {
|
|
310
|
-
methodName: "RetrieveAlerts",
|
|
311
|
-
service: AdminAlertGRPC,
|
|
312
|
-
requestStream: false,
|
|
313
|
-
responseStream: false,
|
|
314
|
-
requestType: spic_cabinet_pb.CabinetProto.AdminAlerts.RetrieveAlertsRequest,
|
|
315
|
-
responseType: spic_cabinet_pb.CabinetProto.AdminAlerts
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
AdminAlertGRPC.AddAlert = {
|
|
319
|
-
methodName: "AddAlert",
|
|
320
|
-
service: AdminAlertGRPC,
|
|
321
|
-
requestStream: false,
|
|
322
|
-
responseStream: false,
|
|
323
|
-
requestType: spic_cabinet_pb.CabinetProto.AdminAlerts.AddAlertRequest,
|
|
324
|
-
responseType: google_protobuf_empty_pb.Empty
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
AdminAlertGRPC.RemoveAlert = {
|
|
328
|
-
methodName: "RemoveAlert",
|
|
329
|
-
service: AdminAlertGRPC,
|
|
330
|
-
requestStream: false,
|
|
331
|
-
responseStream: false,
|
|
332
|
-
requestType: spic_cabinet_pb.CabinetProto.AdminAlerts.RemoveAlertRequest,
|
|
333
|
-
responseType: google_protobuf_empty_pb.Empty
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
exports.AdminAlertGRPC = AdminAlertGRPC;
|
|
337
|
-
|
|
338
|
-
function AdminAlertGRPCClient(serviceHost, options) {
|
|
339
|
-
this.serviceHost = serviceHost;
|
|
340
|
-
this.options = options || {};
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
AdminAlertGRPCClient.prototype.retrieveAlerts = function retrieveAlerts(requestMessage, metadata, callback) {
|
|
344
|
-
if (arguments.length === 2) {
|
|
345
|
-
callback = arguments[1];
|
|
346
|
-
}
|
|
347
|
-
var client = grpc.unary(AdminAlertGRPC.RetrieveAlerts, {
|
|
348
|
-
request: requestMessage,
|
|
349
|
-
host: this.serviceHost,
|
|
350
|
-
metadata: metadata,
|
|
351
|
-
transport: this.options.transport,
|
|
352
|
-
debug: this.options.debug,
|
|
353
|
-
onEnd: function (response) {
|
|
354
|
-
if (callback) {
|
|
355
|
-
if (response.status !== grpc.Code.OK) {
|
|
356
|
-
var err = new Error(response.statusMessage);
|
|
357
|
-
err.code = response.status;
|
|
358
|
-
err.metadata = response.trailers;
|
|
359
|
-
callback(err, null);
|
|
360
|
-
} else {
|
|
361
|
-
callback(null, response.message);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
return {
|
|
367
|
-
cancel: function () {
|
|
368
|
-
callback = null;
|
|
369
|
-
client.close();
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
AdminAlertGRPCClient.prototype.addAlert = function addAlert(requestMessage, metadata, callback) {
|
|
375
|
-
if (arguments.length === 2) {
|
|
376
|
-
callback = arguments[1];
|
|
377
|
-
}
|
|
378
|
-
var client = grpc.unary(AdminAlertGRPC.AddAlert, {
|
|
379
|
-
request: requestMessage,
|
|
380
|
-
host: this.serviceHost,
|
|
381
|
-
metadata: metadata,
|
|
382
|
-
transport: this.options.transport,
|
|
383
|
-
debug: this.options.debug,
|
|
384
|
-
onEnd: function (response) {
|
|
385
|
-
if (callback) {
|
|
386
|
-
if (response.status !== grpc.Code.OK) {
|
|
387
|
-
var err = new Error(response.statusMessage);
|
|
388
|
-
err.code = response.status;
|
|
389
|
-
err.metadata = response.trailers;
|
|
390
|
-
callback(err, null);
|
|
391
|
-
} else {
|
|
392
|
-
callback(null, response.message);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
});
|
|
397
|
-
return {
|
|
398
|
-
cancel: function () {
|
|
399
|
-
callback = null;
|
|
400
|
-
client.close();
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
AdminAlertGRPCClient.prototype.removeAlert = function removeAlert(requestMessage, metadata, callback) {
|
|
406
|
-
if (arguments.length === 2) {
|
|
407
|
-
callback = arguments[1];
|
|
408
|
-
}
|
|
409
|
-
var client = grpc.unary(AdminAlertGRPC.RemoveAlert, {
|
|
410
|
-
request: requestMessage,
|
|
411
|
-
host: this.serviceHost,
|
|
412
|
-
metadata: metadata,
|
|
413
|
-
transport: this.options.transport,
|
|
414
|
-
debug: this.options.debug,
|
|
415
|
-
onEnd: function (response) {
|
|
416
|
-
if (callback) {
|
|
417
|
-
if (response.status !== grpc.Code.OK) {
|
|
418
|
-
var err = new Error(response.statusMessage);
|
|
419
|
-
err.code = response.status;
|
|
420
|
-
err.metadata = response.trailers;
|
|
421
|
-
callback(err, null);
|
|
422
|
-
} else {
|
|
423
|
-
callback(null, response.message);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
return {
|
|
429
|
-
cancel: function () {
|
|
430
|
-
callback = null;
|
|
431
|
-
client.close();
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
exports.AdminAlertGRPCClient = AdminAlertGRPCClient;
|
|
437
|
-
|