@aceplus/smartace-api 3.7.0-alpha.10 → 3.7.0-alpha.11
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.
|
@@ -58,6 +58,24 @@ type AppDistributionGRPCConnectQr = {
|
|
|
58
58
|
readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
type AppDistributionGRPCGetQrHistory = {
|
|
62
|
+
readonly methodName: string;
|
|
63
|
+
readonly service: typeof AppDistributionGRPC;
|
|
64
|
+
readonly requestStream: false;
|
|
65
|
+
readonly responseStream: false;
|
|
66
|
+
readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest;
|
|
67
|
+
readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
type AppDistributionGRPCGetActiveQrs = {
|
|
71
|
+
readonly methodName: string;
|
|
72
|
+
readonly service: typeof AppDistributionGRPC;
|
|
73
|
+
readonly requestStream: false;
|
|
74
|
+
readonly responseStream: false;
|
|
75
|
+
readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest;
|
|
76
|
+
readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse;
|
|
77
|
+
};
|
|
78
|
+
|
|
61
79
|
export class AppDistributionGRPC {
|
|
62
80
|
static readonly serviceName: string;
|
|
63
81
|
static readonly GetPhonePrefixes: AppDistributionGRPCGetPhonePrefixes;
|
|
@@ -66,6 +84,8 @@ export class AppDistributionGRPC {
|
|
|
66
84
|
static readonly CheckQr: AppDistributionGRPCCheckQr;
|
|
67
85
|
static readonly CheckQrV2: AppDistributionGRPCCheckQrV2;
|
|
68
86
|
static readonly ConnectQr: AppDistributionGRPCConnectQr;
|
|
87
|
+
static readonly GetQrHistory: AppDistributionGRPCGetQrHistory;
|
|
88
|
+
static readonly GetActiveQrs: AppDistributionGRPCGetActiveQrs;
|
|
69
89
|
}
|
|
70
90
|
|
|
71
91
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -154,5 +174,23 @@ export class AppDistributionGRPCClient {
|
|
|
154
174
|
requestMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
|
|
155
175
|
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse|null) => void
|
|
156
176
|
): UnaryResponse;
|
|
177
|
+
getQrHistory(
|
|
178
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
|
|
179
|
+
metadata: grpc.Metadata,
|
|
180
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse|null) => void
|
|
181
|
+
): UnaryResponse;
|
|
182
|
+
getQrHistory(
|
|
183
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
|
|
184
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse|null) => void
|
|
185
|
+
): UnaryResponse;
|
|
186
|
+
getActiveQrs(
|
|
187
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
|
|
188
|
+
metadata: grpc.Metadata,
|
|
189
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse|null) => void
|
|
190
|
+
): UnaryResponse;
|
|
191
|
+
getActiveQrs(
|
|
192
|
+
requestMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
|
|
193
|
+
callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse|null) => void
|
|
194
|
+
): UnaryResponse;
|
|
157
195
|
}
|
|
158
196
|
|
|
@@ -64,6 +64,24 @@ AppDistributionGRPC.ConnectQr = {
|
|
|
64
64
|
responseType: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
AppDistributionGRPC.GetQrHistory = {
|
|
68
|
+
methodName: "GetQrHistory",
|
|
69
|
+
service: AppDistributionGRPC,
|
|
70
|
+
requestStream: false,
|
|
71
|
+
responseStream: false,
|
|
72
|
+
requestType: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
|
|
73
|
+
responseType: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
AppDistributionGRPC.GetActiveQrs = {
|
|
77
|
+
methodName: "GetActiveQrs",
|
|
78
|
+
service: AppDistributionGRPC,
|
|
79
|
+
requestStream: false,
|
|
80
|
+
responseStream: false,
|
|
81
|
+
requestType: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
|
|
82
|
+
responseType: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse
|
|
83
|
+
};
|
|
84
|
+
|
|
67
85
|
exports.AppDistributionGRPC = AppDistributionGRPC;
|
|
68
86
|
|
|
69
87
|
function AppDistributionGRPCClient(serviceHost, options) {
|
|
@@ -257,5 +275,67 @@ AppDistributionGRPCClient.prototype.connectQr = function connectQr(requestMessag
|
|
|
257
275
|
};
|
|
258
276
|
};
|
|
259
277
|
|
|
278
|
+
AppDistributionGRPCClient.prototype.getQrHistory = function getQrHistory(requestMessage, metadata, callback) {
|
|
279
|
+
if (arguments.length === 2) {
|
|
280
|
+
callback = arguments[1];
|
|
281
|
+
}
|
|
282
|
+
var client = grpc.unary(AppDistributionGRPC.GetQrHistory, {
|
|
283
|
+
request: requestMessage,
|
|
284
|
+
host: this.serviceHost,
|
|
285
|
+
metadata: metadata,
|
|
286
|
+
transport: this.options.transport,
|
|
287
|
+
debug: this.options.debug,
|
|
288
|
+
onEnd: function (response) {
|
|
289
|
+
if (callback) {
|
|
290
|
+
if (response.status !== grpc.Code.OK) {
|
|
291
|
+
var err = new Error(response.statusMessage);
|
|
292
|
+
err.code = response.status;
|
|
293
|
+
err.metadata = response.trailers;
|
|
294
|
+
callback(err, null);
|
|
295
|
+
} else {
|
|
296
|
+
callback(null, response.message);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
return {
|
|
302
|
+
cancel: function () {
|
|
303
|
+
callback = null;
|
|
304
|
+
client.close();
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
AppDistributionGRPCClient.prototype.getActiveQrs = function getActiveQrs(requestMessage, metadata, callback) {
|
|
310
|
+
if (arguments.length === 2) {
|
|
311
|
+
callback = arguments[1];
|
|
312
|
+
}
|
|
313
|
+
var client = grpc.unary(AppDistributionGRPC.GetActiveQrs, {
|
|
314
|
+
request: requestMessage,
|
|
315
|
+
host: this.serviceHost,
|
|
316
|
+
metadata: metadata,
|
|
317
|
+
transport: this.options.transport,
|
|
318
|
+
debug: this.options.debug,
|
|
319
|
+
onEnd: function (response) {
|
|
320
|
+
if (callback) {
|
|
321
|
+
if (response.status !== grpc.Code.OK) {
|
|
322
|
+
var err = new Error(response.statusMessage);
|
|
323
|
+
err.code = response.status;
|
|
324
|
+
err.metadata = response.trailers;
|
|
325
|
+
callback(err, null);
|
|
326
|
+
} else {
|
|
327
|
+
callback(null, response.message);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
return {
|
|
333
|
+
cancel: function () {
|
|
334
|
+
callback = null;
|
|
335
|
+
client.close();
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
|
|
260
340
|
exports.AppDistributionGRPCClient = AppDistributionGRPCClient;
|
|
261
341
|
|