@aceplus/smartace-api 3.6.0-alpha.5 → 3.6.0-alpha.6
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 +0 -16
- package/spic.asset_pb.js +34 -154
- package/spic.cabinet_pb.d.ts +0 -286
- package/spic.cabinet_pb.js +1334 -3529
- package/spic.cabinet_pb_service.d.ts +0 -114
- package/spic.cabinet_pb_service.js +0 -240
- package/spic.open_request_pb.d.ts +229 -0
- package/spic.open_request_pb.js +1724 -0
- package/spic.open_request_pb_service.d.ts +101 -0
- package/spic.open_request_pb_service.js +141 -0
|
@@ -5,15 +5,6 @@ import * as spic_cabinet_pb from "./spic.cabinet_pb";
|
|
|
5
5
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
6
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
7
7
|
|
|
8
|
-
type CabinetGRPCCreate = {
|
|
9
|
-
readonly methodName: string;
|
|
10
|
-
readonly service: typeof CabinetGRPC;
|
|
11
|
-
readonly requestStream: false;
|
|
12
|
-
readonly responseStream: false;
|
|
13
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.CreateRequest;
|
|
14
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
8
|
type CabinetGRPCRetrieve = {
|
|
18
9
|
readonly methodName: string;
|
|
19
10
|
readonly service: typeof CabinetGRPC;
|
|
@@ -23,24 +14,6 @@ type CabinetGRPCRetrieve = {
|
|
|
23
14
|
readonly responseType: typeof spic_cabinet_pb.CabinetWithLocation;
|
|
24
15
|
};
|
|
25
16
|
|
|
26
|
-
type CabinetGRPCUpdate = {
|
|
27
|
-
readonly methodName: string;
|
|
28
|
-
readonly service: typeof CabinetGRPC;
|
|
29
|
-
readonly requestStream: false;
|
|
30
|
-
readonly responseStream: false;
|
|
31
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.UpdateRequest;
|
|
32
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
type CabinetGRPCDelete = {
|
|
36
|
-
readonly methodName: string;
|
|
37
|
-
readonly service: typeof CabinetGRPC;
|
|
38
|
-
readonly requestStream: false;
|
|
39
|
-
readonly responseStream: false;
|
|
40
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.DeleteRequest;
|
|
41
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto.DeleteReply;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
17
|
type CabinetGRPCRetrieveImage = {
|
|
45
18
|
readonly methodName: string;
|
|
46
19
|
readonly service: typeof CabinetGRPC;
|
|
@@ -68,15 +41,6 @@ type CabinetGRPCLocationSearch = {
|
|
|
68
41
|
readonly responseType: typeof spic_cabinet_pb.CabinetProto.LocationSearchReply;
|
|
69
42
|
};
|
|
70
43
|
|
|
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
|
-
|
|
80
44
|
type CabinetGRPCSearchStates = {
|
|
81
45
|
readonly methodName: string;
|
|
82
46
|
readonly service: typeof CabinetGRPC;
|
|
@@ -113,40 +77,16 @@ type CabinetGRPCCreateOpenRequest = {
|
|
|
113
77
|
readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest;
|
|
114
78
|
};
|
|
115
79
|
|
|
116
|
-
type CabinetGRPCSearchOpenRequests = {
|
|
117
|
-
readonly methodName: string;
|
|
118
|
-
readonly service: typeof CabinetGRPC;
|
|
119
|
-
readonly requestStream: false;
|
|
120
|
-
readonly responseStream: false;
|
|
121
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.SearchRequest;
|
|
122
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.SearchReply;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
type CabinetGRPCDeactivateOpenRequest = {
|
|
126
|
-
readonly methodName: string;
|
|
127
|
-
readonly service: typeof CabinetGRPC;
|
|
128
|
-
readonly requestStream: false;
|
|
129
|
-
readonly responseStream: false;
|
|
130
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.OpenRequest.DeactivateRequest;
|
|
131
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto.OpenRequest;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
80
|
export class CabinetGRPC {
|
|
135
81
|
static readonly serviceName: string;
|
|
136
|
-
static readonly Create: CabinetGRPCCreate;
|
|
137
82
|
static readonly Retrieve: CabinetGRPCRetrieve;
|
|
138
|
-
static readonly Update: CabinetGRPCUpdate;
|
|
139
|
-
static readonly Delete: CabinetGRPCDelete;
|
|
140
83
|
static readonly RetrieveImage: CabinetGRPCRetrieveImage;
|
|
141
84
|
static readonly Search: CabinetGRPCSearch;
|
|
142
85
|
static readonly LocationSearch: CabinetGRPCLocationSearch;
|
|
143
|
-
static readonly ReplaceBattery: CabinetGRPCReplaceBattery;
|
|
144
86
|
static readonly SearchStates: CabinetGRPCSearchStates;
|
|
145
87
|
static readonly StateExcelReport: CabinetGRPCStateExcelReport;
|
|
146
88
|
static readonly SearchEvents: CabinetGRPCSearchEvents;
|
|
147
89
|
static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
|
|
148
|
-
static readonly SearchOpenRequests: CabinetGRPCSearchOpenRequests;
|
|
149
|
-
static readonly DeactivateOpenRequest: CabinetGRPCDeactivateOpenRequest;
|
|
150
90
|
}
|
|
151
91
|
|
|
152
92
|
type AdminAlertGRPCRetrieveAlerts = {
|
|
@@ -215,15 +155,6 @@ export class CabinetGRPCClient {
|
|
|
215
155
|
readonly serviceHost: string;
|
|
216
156
|
|
|
217
157
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
218
|
-
create(
|
|
219
|
-
requestMessage: spic_cabinet_pb.CabinetProto.CreateRequest,
|
|
220
|
-
metadata: grpc.Metadata,
|
|
221
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
222
|
-
): UnaryResponse;
|
|
223
|
-
create(
|
|
224
|
-
requestMessage: spic_cabinet_pb.CabinetProto.CreateRequest,
|
|
225
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
226
|
-
): UnaryResponse;
|
|
227
158
|
retrieve(
|
|
228
159
|
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
229
160
|
metadata: grpc.Metadata,
|
|
@@ -233,24 +164,6 @@ export class CabinetGRPCClient {
|
|
|
233
164
|
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
234
165
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetWithLocation|null) => void
|
|
235
166
|
): UnaryResponse;
|
|
236
|
-
update(
|
|
237
|
-
requestMessage: spic_cabinet_pb.CabinetProto.UpdateRequest,
|
|
238
|
-
metadata: grpc.Metadata,
|
|
239
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
240
|
-
): UnaryResponse;
|
|
241
|
-
update(
|
|
242
|
-
requestMessage: spic_cabinet_pb.CabinetProto.UpdateRequest,
|
|
243
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
244
|
-
): UnaryResponse;
|
|
245
|
-
delete(
|
|
246
|
-
requestMessage: spic_cabinet_pb.CabinetProto.DeleteRequest,
|
|
247
|
-
metadata: grpc.Metadata,
|
|
248
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.DeleteReply|null) => void
|
|
249
|
-
): UnaryResponse;
|
|
250
|
-
delete(
|
|
251
|
-
requestMessage: spic_cabinet_pb.CabinetProto.DeleteRequest,
|
|
252
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.DeleteReply|null) => void
|
|
253
|
-
): UnaryResponse;
|
|
254
167
|
retrieveImage(
|
|
255
168
|
requestMessage: spic_cabinet_pb.CabinetProto.Image.RetrieveRequest,
|
|
256
169
|
metadata: grpc.Metadata,
|
|
@@ -278,15 +191,6 @@ export class CabinetGRPCClient {
|
|
|
278
191
|
requestMessage: spic_cabinet_pb.CabinetProto.LocationSearchRequest,
|
|
279
192
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.LocationSearchReply|null) => void
|
|
280
193
|
): UnaryResponse;
|
|
281
|
-
replaceBattery(
|
|
282
|
-
requestMessage: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
283
|
-
metadata: grpc.Metadata,
|
|
284
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
285
|
-
): UnaryResponse;
|
|
286
|
-
replaceBattery(
|
|
287
|
-
requestMessage: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
288
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
289
|
-
): UnaryResponse;
|
|
290
194
|
searchStates(
|
|
291
195
|
requestMessage: spic_cabinet_pb.CabinetProto.State.SearchRequest,
|
|
292
196
|
metadata: grpc.Metadata,
|
|
@@ -323,24 +227,6 @@ export class CabinetGRPCClient {
|
|
|
323
227
|
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.CreateRequest,
|
|
324
228
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest|null) => void
|
|
325
229
|
): UnaryResponse;
|
|
326
|
-
searchOpenRequests(
|
|
327
|
-
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.SearchRequest,
|
|
328
|
-
metadata: grpc.Metadata,
|
|
329
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest.SearchReply|null) => void
|
|
330
|
-
): UnaryResponse;
|
|
331
|
-
searchOpenRequests(
|
|
332
|
-
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.SearchRequest,
|
|
333
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest.SearchReply|null) => void
|
|
334
|
-
): UnaryResponse;
|
|
335
|
-
deactivateOpenRequest(
|
|
336
|
-
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.DeactivateRequest,
|
|
337
|
-
metadata: grpc.Metadata,
|
|
338
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest|null) => void
|
|
339
|
-
): UnaryResponse;
|
|
340
|
-
deactivateOpenRequest(
|
|
341
|
-
requestMessage: spic_cabinet_pb.CabinetProto.OpenRequest.DeactivateRequest,
|
|
342
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.OpenRequest|null) => void
|
|
343
|
-
): UnaryResponse;
|
|
344
230
|
}
|
|
345
231
|
|
|
346
232
|
export class AdminAlertGRPCClient {
|
|
@@ -11,15 +11,6 @@ var CabinetGRPC = (function () {
|
|
|
11
11
|
return CabinetGRPC;
|
|
12
12
|
}());
|
|
13
13
|
|
|
14
|
-
CabinetGRPC.Create = {
|
|
15
|
-
methodName: "Create",
|
|
16
|
-
service: CabinetGRPC,
|
|
17
|
-
requestStream: false,
|
|
18
|
-
responseStream: false,
|
|
19
|
-
requestType: spic_cabinet_pb.CabinetProto.CreateRequest,
|
|
20
|
-
responseType: spic_cabinet_pb.CabinetProto
|
|
21
|
-
};
|
|
22
|
-
|
|
23
14
|
CabinetGRPC.Retrieve = {
|
|
24
15
|
methodName: "Retrieve",
|
|
25
16
|
service: CabinetGRPC,
|
|
@@ -29,24 +20,6 @@ CabinetGRPC.Retrieve = {
|
|
|
29
20
|
responseType: spic_cabinet_pb.CabinetWithLocation
|
|
30
21
|
};
|
|
31
22
|
|
|
32
|
-
CabinetGRPC.Update = {
|
|
33
|
-
methodName: "Update",
|
|
34
|
-
service: CabinetGRPC,
|
|
35
|
-
requestStream: false,
|
|
36
|
-
responseStream: false,
|
|
37
|
-
requestType: spic_cabinet_pb.CabinetProto.UpdateRequest,
|
|
38
|
-
responseType: spic_cabinet_pb.CabinetProto
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
CabinetGRPC.Delete = {
|
|
42
|
-
methodName: "Delete",
|
|
43
|
-
service: CabinetGRPC,
|
|
44
|
-
requestStream: false,
|
|
45
|
-
responseStream: false,
|
|
46
|
-
requestType: spic_cabinet_pb.CabinetProto.DeleteRequest,
|
|
47
|
-
responseType: spic_cabinet_pb.CabinetProto.DeleteReply
|
|
48
|
-
};
|
|
49
|
-
|
|
50
23
|
CabinetGRPC.RetrieveImage = {
|
|
51
24
|
methodName: "RetrieveImage",
|
|
52
25
|
service: CabinetGRPC,
|
|
@@ -74,15 +47,6 @@ CabinetGRPC.LocationSearch = {
|
|
|
74
47
|
responseType: spic_cabinet_pb.CabinetProto.LocationSearchReply
|
|
75
48
|
};
|
|
76
49
|
|
|
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
|
-
|
|
86
50
|
CabinetGRPC.SearchStates = {
|
|
87
51
|
methodName: "SearchStates",
|
|
88
52
|
service: CabinetGRPC,
|
|
@@ -119,24 +83,6 @@ CabinetGRPC.CreateOpenRequest = {
|
|
|
119
83
|
responseType: spic_cabinet_pb.CabinetProto.OpenRequest
|
|
120
84
|
};
|
|
121
85
|
|
|
122
|
-
CabinetGRPC.SearchOpenRequests = {
|
|
123
|
-
methodName: "SearchOpenRequests",
|
|
124
|
-
service: CabinetGRPC,
|
|
125
|
-
requestStream: false,
|
|
126
|
-
responseStream: false,
|
|
127
|
-
requestType: spic_cabinet_pb.CabinetProto.OpenRequest.SearchRequest,
|
|
128
|
-
responseType: spic_cabinet_pb.CabinetProto.OpenRequest.SearchReply
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
CabinetGRPC.DeactivateOpenRequest = {
|
|
132
|
-
methodName: "DeactivateOpenRequest",
|
|
133
|
-
service: CabinetGRPC,
|
|
134
|
-
requestStream: false,
|
|
135
|
-
responseStream: false,
|
|
136
|
-
requestType: spic_cabinet_pb.CabinetProto.OpenRequest.DeactivateRequest,
|
|
137
|
-
responseType: spic_cabinet_pb.CabinetProto.OpenRequest
|
|
138
|
-
};
|
|
139
|
-
|
|
140
86
|
exports.CabinetGRPC = CabinetGRPC;
|
|
141
87
|
|
|
142
88
|
function CabinetGRPCClient(serviceHost, options) {
|
|
@@ -144,37 +90,6 @@ function CabinetGRPCClient(serviceHost, options) {
|
|
|
144
90
|
this.options = options || {};
|
|
145
91
|
}
|
|
146
92
|
|
|
147
|
-
CabinetGRPCClient.prototype.create = function create(requestMessage, metadata, callback) {
|
|
148
|
-
if (arguments.length === 2) {
|
|
149
|
-
callback = arguments[1];
|
|
150
|
-
}
|
|
151
|
-
var client = grpc.unary(CabinetGRPC.Create, {
|
|
152
|
-
request: requestMessage,
|
|
153
|
-
host: this.serviceHost,
|
|
154
|
-
metadata: metadata,
|
|
155
|
-
transport: this.options.transport,
|
|
156
|
-
debug: this.options.debug,
|
|
157
|
-
onEnd: function (response) {
|
|
158
|
-
if (callback) {
|
|
159
|
-
if (response.status !== grpc.Code.OK) {
|
|
160
|
-
var err = new Error(response.statusMessage);
|
|
161
|
-
err.code = response.status;
|
|
162
|
-
err.metadata = response.trailers;
|
|
163
|
-
callback(err, null);
|
|
164
|
-
} else {
|
|
165
|
-
callback(null, response.message);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
return {
|
|
171
|
-
cancel: function () {
|
|
172
|
-
callback = null;
|
|
173
|
-
client.close();
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
|
|
178
93
|
CabinetGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
179
94
|
if (arguments.length === 2) {
|
|
180
95
|
callback = arguments[1];
|
|
@@ -206,68 +121,6 @@ CabinetGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadat
|
|
|
206
121
|
};
|
|
207
122
|
};
|
|
208
123
|
|
|
209
|
-
CabinetGRPCClient.prototype.update = function update(requestMessage, metadata, callback) {
|
|
210
|
-
if (arguments.length === 2) {
|
|
211
|
-
callback = arguments[1];
|
|
212
|
-
}
|
|
213
|
-
var client = grpc.unary(CabinetGRPC.Update, {
|
|
214
|
-
request: requestMessage,
|
|
215
|
-
host: this.serviceHost,
|
|
216
|
-
metadata: metadata,
|
|
217
|
-
transport: this.options.transport,
|
|
218
|
-
debug: this.options.debug,
|
|
219
|
-
onEnd: function (response) {
|
|
220
|
-
if (callback) {
|
|
221
|
-
if (response.status !== grpc.Code.OK) {
|
|
222
|
-
var err = new Error(response.statusMessage);
|
|
223
|
-
err.code = response.status;
|
|
224
|
-
err.metadata = response.trailers;
|
|
225
|
-
callback(err, null);
|
|
226
|
-
} else {
|
|
227
|
-
callback(null, response.message);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
return {
|
|
233
|
-
cancel: function () {
|
|
234
|
-
callback = null;
|
|
235
|
-
client.close();
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
CabinetGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
|
|
241
|
-
if (arguments.length === 2) {
|
|
242
|
-
callback = arguments[1];
|
|
243
|
-
}
|
|
244
|
-
var client = grpc.unary(CabinetGRPC.Delete, {
|
|
245
|
-
request: requestMessage,
|
|
246
|
-
host: this.serviceHost,
|
|
247
|
-
metadata: metadata,
|
|
248
|
-
transport: this.options.transport,
|
|
249
|
-
debug: this.options.debug,
|
|
250
|
-
onEnd: function (response) {
|
|
251
|
-
if (callback) {
|
|
252
|
-
if (response.status !== grpc.Code.OK) {
|
|
253
|
-
var err = new Error(response.statusMessage);
|
|
254
|
-
err.code = response.status;
|
|
255
|
-
err.metadata = response.trailers;
|
|
256
|
-
callback(err, null);
|
|
257
|
-
} else {
|
|
258
|
-
callback(null, response.message);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
return {
|
|
264
|
-
cancel: function () {
|
|
265
|
-
callback = null;
|
|
266
|
-
client.close();
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
|
|
271
124
|
CabinetGRPCClient.prototype.retrieveImage = function retrieveImage(requestMessage, metadata, callback) {
|
|
272
125
|
if (arguments.length === 2) {
|
|
273
126
|
callback = arguments[1];
|
|
@@ -361,37 +214,6 @@ CabinetGRPCClient.prototype.locationSearch = function locationSearch(requestMess
|
|
|
361
214
|
};
|
|
362
215
|
};
|
|
363
216
|
|
|
364
|
-
CabinetGRPCClient.prototype.replaceBattery = function replaceBattery(requestMessage, metadata, callback) {
|
|
365
|
-
if (arguments.length === 2) {
|
|
366
|
-
callback = arguments[1];
|
|
367
|
-
}
|
|
368
|
-
var client = grpc.unary(CabinetGRPC.ReplaceBattery, {
|
|
369
|
-
request: requestMessage,
|
|
370
|
-
host: this.serviceHost,
|
|
371
|
-
metadata: metadata,
|
|
372
|
-
transport: this.options.transport,
|
|
373
|
-
debug: this.options.debug,
|
|
374
|
-
onEnd: function (response) {
|
|
375
|
-
if (callback) {
|
|
376
|
-
if (response.status !== grpc.Code.OK) {
|
|
377
|
-
var err = new Error(response.statusMessage);
|
|
378
|
-
err.code = response.status;
|
|
379
|
-
err.metadata = response.trailers;
|
|
380
|
-
callback(err, null);
|
|
381
|
-
} else {
|
|
382
|
-
callback(null, response.message);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
return {
|
|
388
|
-
cancel: function () {
|
|
389
|
-
callback = null;
|
|
390
|
-
client.close();
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
|
|
395
217
|
CabinetGRPCClient.prototype.searchStates = function searchStates(requestMessage, metadata, callback) {
|
|
396
218
|
if (arguments.length === 2) {
|
|
397
219
|
callback = arguments[1];
|
|
@@ -516,68 +338,6 @@ CabinetGRPCClient.prototype.createOpenRequest = function createOpenRequest(reque
|
|
|
516
338
|
};
|
|
517
339
|
};
|
|
518
340
|
|
|
519
|
-
CabinetGRPCClient.prototype.searchOpenRequests = function searchOpenRequests(requestMessage, metadata, callback) {
|
|
520
|
-
if (arguments.length === 2) {
|
|
521
|
-
callback = arguments[1];
|
|
522
|
-
}
|
|
523
|
-
var client = grpc.unary(CabinetGRPC.SearchOpenRequests, {
|
|
524
|
-
request: requestMessage,
|
|
525
|
-
host: this.serviceHost,
|
|
526
|
-
metadata: metadata,
|
|
527
|
-
transport: this.options.transport,
|
|
528
|
-
debug: this.options.debug,
|
|
529
|
-
onEnd: function (response) {
|
|
530
|
-
if (callback) {
|
|
531
|
-
if (response.status !== grpc.Code.OK) {
|
|
532
|
-
var err = new Error(response.statusMessage);
|
|
533
|
-
err.code = response.status;
|
|
534
|
-
err.metadata = response.trailers;
|
|
535
|
-
callback(err, null);
|
|
536
|
-
} else {
|
|
537
|
-
callback(null, response.message);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
return {
|
|
543
|
-
cancel: function () {
|
|
544
|
-
callback = null;
|
|
545
|
-
client.close();
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
};
|
|
549
|
-
|
|
550
|
-
CabinetGRPCClient.prototype.deactivateOpenRequest = function deactivateOpenRequest(requestMessage, metadata, callback) {
|
|
551
|
-
if (arguments.length === 2) {
|
|
552
|
-
callback = arguments[1];
|
|
553
|
-
}
|
|
554
|
-
var client = grpc.unary(CabinetGRPC.DeactivateOpenRequest, {
|
|
555
|
-
request: requestMessage,
|
|
556
|
-
host: this.serviceHost,
|
|
557
|
-
metadata: metadata,
|
|
558
|
-
transport: this.options.transport,
|
|
559
|
-
debug: this.options.debug,
|
|
560
|
-
onEnd: function (response) {
|
|
561
|
-
if (callback) {
|
|
562
|
-
if (response.status !== grpc.Code.OK) {
|
|
563
|
-
var err = new Error(response.statusMessage);
|
|
564
|
-
err.code = response.status;
|
|
565
|
-
err.metadata = response.trailers;
|
|
566
|
-
callback(err, null);
|
|
567
|
-
} else {
|
|
568
|
-
callback(null, response.message);
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
});
|
|
573
|
-
return {
|
|
574
|
-
cancel: function () {
|
|
575
|
-
callback = null;
|
|
576
|
-
client.close();
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
};
|
|
580
|
-
|
|
581
341
|
exports.CabinetGRPCClient = CabinetGRPCClient;
|
|
582
342
|
|
|
583
343
|
var AdminAlertGRPC = (function () {
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
// package: Spic
|
|
2
|
+
// file: spic.open_request.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
6
|
+
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
7
|
+
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
8
|
+
|
|
9
|
+
export class OpenRequestProto extends jspb.Message {
|
|
10
|
+
getId(): number;
|
|
11
|
+
setId(value: number): void;
|
|
12
|
+
|
|
13
|
+
getAssetId(): number;
|
|
14
|
+
setAssetId(value: number): void;
|
|
15
|
+
|
|
16
|
+
getRequesterId(): number;
|
|
17
|
+
setRequesterId(value: number): void;
|
|
18
|
+
|
|
19
|
+
getActive(): boolean;
|
|
20
|
+
setActive(value: boolean): void;
|
|
21
|
+
|
|
22
|
+
hasRequestTime(): boolean;
|
|
23
|
+
clearRequestTime(): void;
|
|
24
|
+
getRequestTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
25
|
+
setRequestTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
26
|
+
|
|
27
|
+
hasValidUntil(): boolean;
|
|
28
|
+
clearValidUntil(): void;
|
|
29
|
+
getValidUntil(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
30
|
+
setValidUntil(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
31
|
+
|
|
32
|
+
getType(): OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap];
|
|
33
|
+
setType(value: OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap]): void;
|
|
34
|
+
|
|
35
|
+
getContractor(): string;
|
|
36
|
+
setContractor(value: string): void;
|
|
37
|
+
|
|
38
|
+
getDeactivateafteropening(): boolean;
|
|
39
|
+
setDeactivateafteropening(value: boolean): void;
|
|
40
|
+
|
|
41
|
+
getDevicepacketnumber(): number;
|
|
42
|
+
setDevicepacketnumber(value: number): void;
|
|
43
|
+
|
|
44
|
+
serializeBinary(): Uint8Array;
|
|
45
|
+
toObject(includeInstance?: boolean): OpenRequestProto.AsObject;
|
|
46
|
+
static toObject(includeInstance: boolean, msg: OpenRequestProto): OpenRequestProto.AsObject;
|
|
47
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
48
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
49
|
+
static serializeBinaryToWriter(message: OpenRequestProto, writer: jspb.BinaryWriter): void;
|
|
50
|
+
static deserializeBinary(bytes: Uint8Array): OpenRequestProto;
|
|
51
|
+
static deserializeBinaryFromReader(message: OpenRequestProto, reader: jspb.BinaryReader): OpenRequestProto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export namespace OpenRequestProto {
|
|
55
|
+
export type AsObject = {
|
|
56
|
+
id: number,
|
|
57
|
+
assetId: number,
|
|
58
|
+
requesterId: number,
|
|
59
|
+
active: boolean,
|
|
60
|
+
requestTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
61
|
+
validUntil?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
62
|
+
type: OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap],
|
|
63
|
+
contractor: string,
|
|
64
|
+
deactivateafteropening: boolean,
|
|
65
|
+
devicepacketnumber: number,
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class CreateRequest extends jspb.Message {
|
|
69
|
+
getAssetId(): number;
|
|
70
|
+
setAssetId(value: number): void;
|
|
71
|
+
|
|
72
|
+
hasRequestTime(): boolean;
|
|
73
|
+
clearRequestTime(): void;
|
|
74
|
+
getRequestTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
75
|
+
setRequestTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
76
|
+
|
|
77
|
+
hasValidUntil(): boolean;
|
|
78
|
+
clearValidUntil(): void;
|
|
79
|
+
getValidUntil(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
80
|
+
setValidUntil(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
81
|
+
|
|
82
|
+
getLongitude(): number;
|
|
83
|
+
setLongitude(value: number): void;
|
|
84
|
+
|
|
85
|
+
getLatitude(): number;
|
|
86
|
+
setLatitude(value: number): void;
|
|
87
|
+
|
|
88
|
+
getType(): OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap];
|
|
89
|
+
setType(value: OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap]): void;
|
|
90
|
+
|
|
91
|
+
getContractor(): string;
|
|
92
|
+
setContractor(value: string): void;
|
|
93
|
+
|
|
94
|
+
getDeactivateafteropening(): boolean;
|
|
95
|
+
setDeactivateafteropening(value: boolean): void;
|
|
96
|
+
|
|
97
|
+
serializeBinary(): Uint8Array;
|
|
98
|
+
toObject(includeInstance?: boolean): CreateRequest.AsObject;
|
|
99
|
+
static toObject(includeInstance: boolean, msg: CreateRequest): CreateRequest.AsObject;
|
|
100
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
101
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
102
|
+
static serializeBinaryToWriter(message: CreateRequest, writer: jspb.BinaryWriter): void;
|
|
103
|
+
static deserializeBinary(bytes: Uint8Array): CreateRequest;
|
|
104
|
+
static deserializeBinaryFromReader(message: CreateRequest, reader: jspb.BinaryReader): CreateRequest;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export namespace CreateRequest {
|
|
108
|
+
export type AsObject = {
|
|
109
|
+
assetId: number,
|
|
110
|
+
requestTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
111
|
+
validUntil?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
112
|
+
longitude: number,
|
|
113
|
+
latitude: number,
|
|
114
|
+
type: OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap],
|
|
115
|
+
contractor: string,
|
|
116
|
+
deactivateafteropening: boolean,
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export class DeactivateRequest extends jspb.Message {
|
|
121
|
+
getId(): number;
|
|
122
|
+
setId(value: number): void;
|
|
123
|
+
|
|
124
|
+
serializeBinary(): Uint8Array;
|
|
125
|
+
toObject(includeInstance?: boolean): DeactivateRequest.AsObject;
|
|
126
|
+
static toObject(includeInstance: boolean, msg: DeactivateRequest): DeactivateRequest.AsObject;
|
|
127
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
128
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
129
|
+
static serializeBinaryToWriter(message: DeactivateRequest, writer: jspb.BinaryWriter): void;
|
|
130
|
+
static deserializeBinary(bytes: Uint8Array): DeactivateRequest;
|
|
131
|
+
static deserializeBinaryFromReader(message: DeactivateRequest, reader: jspb.BinaryReader): DeactivateRequest;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export namespace DeactivateRequest {
|
|
135
|
+
export type AsObject = {
|
|
136
|
+
id: number,
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export class SearchRequest extends jspb.Message {
|
|
141
|
+
getAssetId(): number;
|
|
142
|
+
setAssetId(value: number): void;
|
|
143
|
+
|
|
144
|
+
getActive(): boolean;
|
|
145
|
+
setActive(value: boolean): void;
|
|
146
|
+
|
|
147
|
+
getPage(): number;
|
|
148
|
+
setPage(value: number): void;
|
|
149
|
+
|
|
150
|
+
getCount(): number;
|
|
151
|
+
setCount(value: number): void;
|
|
152
|
+
|
|
153
|
+
clearTypeList(): void;
|
|
154
|
+
getTypeList(): Array<OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap]>;
|
|
155
|
+
setTypeList(value: Array<OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap]>): void;
|
|
156
|
+
addType(value: OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap], index?: number): OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap];
|
|
157
|
+
|
|
158
|
+
getDescorder(): boolean;
|
|
159
|
+
setDescorder(value: boolean): void;
|
|
160
|
+
|
|
161
|
+
hasDateFrom(): boolean;
|
|
162
|
+
clearDateFrom(): void;
|
|
163
|
+
getDateFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
164
|
+
setDateFrom(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
165
|
+
|
|
166
|
+
hasDateTo(): boolean;
|
|
167
|
+
clearDateTo(): void;
|
|
168
|
+
getDateTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
169
|
+
setDateTo(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
170
|
+
|
|
171
|
+
serializeBinary(): Uint8Array;
|
|
172
|
+
toObject(includeInstance?: boolean): SearchRequest.AsObject;
|
|
173
|
+
static toObject(includeInstance: boolean, msg: SearchRequest): SearchRequest.AsObject;
|
|
174
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
175
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
176
|
+
static serializeBinaryToWriter(message: SearchRequest, writer: jspb.BinaryWriter): void;
|
|
177
|
+
static deserializeBinary(bytes: Uint8Array): SearchRequest;
|
|
178
|
+
static deserializeBinaryFromReader(message: SearchRequest, reader: jspb.BinaryReader): SearchRequest;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export namespace SearchRequest {
|
|
182
|
+
export type AsObject = {
|
|
183
|
+
assetId: number,
|
|
184
|
+
active: boolean,
|
|
185
|
+
page: number,
|
|
186
|
+
count: number,
|
|
187
|
+
typeList: Array<OpenRequestProto.OpenRequestTypeMap[keyof OpenRequestProto.OpenRequestTypeMap]>,
|
|
188
|
+
descorder: boolean,
|
|
189
|
+
dateFrom?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
190
|
+
dateTo?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export class SearchReply extends jspb.Message {
|
|
195
|
+
clearOpeningsList(): void;
|
|
196
|
+
getOpeningsList(): Array<OpenRequestProto>;
|
|
197
|
+
setOpeningsList(value: Array<OpenRequestProto>): void;
|
|
198
|
+
addOpenings(value?: OpenRequestProto, index?: number): OpenRequestProto;
|
|
199
|
+
|
|
200
|
+
hasPagination(): boolean;
|
|
201
|
+
clearPagination(): void;
|
|
202
|
+
getPagination(): platform_pagination_pb.PaginationProto | undefined;
|
|
203
|
+
setPagination(value?: platform_pagination_pb.PaginationProto): void;
|
|
204
|
+
|
|
205
|
+
serializeBinary(): Uint8Array;
|
|
206
|
+
toObject(includeInstance?: boolean): SearchReply.AsObject;
|
|
207
|
+
static toObject(includeInstance: boolean, msg: SearchReply): SearchReply.AsObject;
|
|
208
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
209
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
210
|
+
static serializeBinaryToWriter(message: SearchReply, writer: jspb.BinaryWriter): void;
|
|
211
|
+
static deserializeBinary(bytes: Uint8Array): SearchReply;
|
|
212
|
+
static deserializeBinaryFromReader(message: SearchReply, reader: jspb.BinaryReader): SearchReply;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export namespace SearchReply {
|
|
216
|
+
export type AsObject = {
|
|
217
|
+
openingsList: Array<OpenRequestProto.AsObject>,
|
|
218
|
+
pagination?: platform_pagination_pb.PaginationProto.AsObject,
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface OpenRequestTypeMap {
|
|
223
|
+
APP_OPENING: 0;
|
|
224
|
+
ADMIN_OPENING: 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export const OpenRequestType: OpenRequestTypeMap;
|
|
228
|
+
}
|
|
229
|
+
|