@aceplus/smartace-api 2.1.0-drumtracker.6 → 2.1.0-drumtracker.8
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/drumtracker.drum_pb.d.ts +43 -1
- package/drumtracker.drum_pb.js +910 -585
- package/drumtracker.drum_pb_service.d.ts +20 -1
- package/drumtracker.drum_pb_service.js +42 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// package:
|
|
1
|
+
// package: Drumtracker
|
|
2
2
|
// file: drumtracker.drum.proto
|
|
3
3
|
|
|
4
4
|
import * as drumtracker_drum_pb from "./drumtracker.drum_pb";
|
|
@@ -49,6 +49,15 @@ type DrumGRPCSearch = {
|
|
|
49
49
|
readonly responseType: typeof drumtracker_drum_pb.DrumProto.SearchReply;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type DrumGRPCCount = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof DrumGRPC;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof drumtracker_drum_pb.DrumProto.CountRequest;
|
|
58
|
+
readonly responseType: typeof drumtracker_drum_pb.DrumProto.CountReply;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
type DrumGRPCLocationSearch = {
|
|
53
62
|
readonly methodName: string;
|
|
54
63
|
readonly service: typeof DrumGRPC;
|
|
@@ -65,6 +74,7 @@ export class DrumGRPC {
|
|
|
65
74
|
static readonly Update: DrumGRPCUpdate;
|
|
66
75
|
static readonly Delete: DrumGRPCDelete;
|
|
67
76
|
static readonly Search: DrumGRPCSearch;
|
|
77
|
+
static readonly Count: DrumGRPCCount;
|
|
68
78
|
static readonly LocationSearch: DrumGRPCLocationSearch;
|
|
69
79
|
}
|
|
70
80
|
|
|
@@ -145,6 +155,15 @@ export class DrumGRPCClient {
|
|
|
145
155
|
requestMessage: drumtracker_drum_pb.DrumProto.SearchRequest,
|
|
146
156
|
callback: (error: ServiceError|null, responseMessage: drumtracker_drum_pb.DrumProto.SearchReply|null) => void
|
|
147
157
|
): UnaryResponse;
|
|
158
|
+
count(
|
|
159
|
+
requestMessage: drumtracker_drum_pb.DrumProto.CountRequest,
|
|
160
|
+
metadata: grpc.Metadata,
|
|
161
|
+
callback: (error: ServiceError|null, responseMessage: drumtracker_drum_pb.DrumProto.CountReply|null) => void
|
|
162
|
+
): UnaryResponse;
|
|
163
|
+
count(
|
|
164
|
+
requestMessage: drumtracker_drum_pb.DrumProto.CountRequest,
|
|
165
|
+
callback: (error: ServiceError|null, responseMessage: drumtracker_drum_pb.DrumProto.CountReply|null) => void
|
|
166
|
+
): UnaryResponse;
|
|
148
167
|
locationSearch(
|
|
149
168
|
requestMessage: drumtracker_drum_pb.DrumProto.LocationSearchRequest,
|
|
150
169
|
metadata: grpc.Metadata,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// package:
|
|
1
|
+
// package: Drumtracker
|
|
2
2
|
// file: drumtracker.drum.proto
|
|
3
3
|
|
|
4
4
|
var drumtracker_drum_pb = require("./drumtracker.drum_pb");
|
|
@@ -6,7 +6,7 @@ var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
|
6
6
|
|
|
7
7
|
var DrumGRPC = (function () {
|
|
8
8
|
function DrumGRPC() {}
|
|
9
|
-
DrumGRPC.serviceName = "
|
|
9
|
+
DrumGRPC.serviceName = "Drumtracker.DrumGRPC";
|
|
10
10
|
return DrumGRPC;
|
|
11
11
|
}());
|
|
12
12
|
|
|
@@ -55,6 +55,15 @@ DrumGRPC.Search = {
|
|
|
55
55
|
responseType: drumtracker_drum_pb.DrumProto.SearchReply
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
DrumGRPC.Count = {
|
|
59
|
+
methodName: "Count",
|
|
60
|
+
service: DrumGRPC,
|
|
61
|
+
requestStream: false,
|
|
62
|
+
responseStream: false,
|
|
63
|
+
requestType: drumtracker_drum_pb.DrumProto.CountRequest,
|
|
64
|
+
responseType: drumtracker_drum_pb.DrumProto.CountReply
|
|
65
|
+
};
|
|
66
|
+
|
|
58
67
|
DrumGRPC.LocationSearch = {
|
|
59
68
|
methodName: "LocationSearch",
|
|
60
69
|
service: DrumGRPC,
|
|
@@ -226,6 +235,37 @@ DrumGRPCClient.prototype.search = function search(requestMessage, metadata, call
|
|
|
226
235
|
};
|
|
227
236
|
};
|
|
228
237
|
|
|
238
|
+
DrumGRPCClient.prototype.count = function count(requestMessage, metadata, callback) {
|
|
239
|
+
if (arguments.length === 2) {
|
|
240
|
+
callback = arguments[1];
|
|
241
|
+
}
|
|
242
|
+
var client = grpc.unary(DrumGRPC.Count, {
|
|
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
|
DrumGRPCClient.prototype.locationSearch = function locationSearch(requestMessage, metadata, callback) {
|
|
230
270
|
if (arguments.length === 2) {
|
|
231
271
|
callback = arguments[1];
|