@aceplus/smartace-api 2.1.0-drumtracker.7 → 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.
@@ -392,6 +392,48 @@ export namespace DrumProto {
392
392
  }
393
393
  }
394
394
 
395
+ export class CountRequest extends jspb.Message {
396
+ hasFilters(): boolean;
397
+ clearFilters(): void;
398
+ getFilters(): DrumProto.DrumFilters | undefined;
399
+ setFilters(value?: DrumProto.DrumFilters): void;
400
+
401
+ serializeBinary(): Uint8Array;
402
+ toObject(includeInstance?: boolean): CountRequest.AsObject;
403
+ static toObject(includeInstance: boolean, msg: CountRequest): CountRequest.AsObject;
404
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
405
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
406
+ static serializeBinaryToWriter(message: CountRequest, writer: jspb.BinaryWriter): void;
407
+ static deserializeBinary(bytes: Uint8Array): CountRequest;
408
+ static deserializeBinaryFromReader(message: CountRequest, reader: jspb.BinaryReader): CountRequest;
409
+ }
410
+
411
+ export namespace CountRequest {
412
+ export type AsObject = {
413
+ filters?: DrumProto.DrumFilters.AsObject,
414
+ }
415
+ }
416
+
417
+ export class CountReply extends jspb.Message {
418
+ getTotal(): number;
419
+ setTotal(value: number): void;
420
+
421
+ serializeBinary(): Uint8Array;
422
+ toObject(includeInstance?: boolean): CountReply.AsObject;
423
+ static toObject(includeInstance: boolean, msg: CountReply): CountReply.AsObject;
424
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
425
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
426
+ static serializeBinaryToWriter(message: CountReply, writer: jspb.BinaryWriter): void;
427
+ static deserializeBinary(bytes: Uint8Array): CountReply;
428
+ static deserializeBinaryFromReader(message: CountReply, reader: jspb.BinaryReader): CountReply;
429
+ }
430
+
431
+ export namespace CountReply {
432
+ export type AsObject = {
433
+ total: number,
434
+ }
435
+ }
436
+
395
437
  export class LocationSearchRequest extends jspb.Message {
396
438
  hasFilters(): boolean;
397
439
  clearFilters(): void;
@@ -31,6 +31,8 @@ var platform_pagination_pb = require('./platform.pagination_pb.js');
31
31
  goog.object.extend(proto, platform_pagination_pb);
32
32
  goog.exportSymbol('proto.Drumtracker.DrumProto', null, global);
33
33
  goog.exportSymbol('proto.Drumtracker.DrumProto.CableType', null, global);
34
+ goog.exportSymbol('proto.Drumtracker.DrumProto.CountReply', null, global);
35
+ goog.exportSymbol('proto.Drumtracker.DrumProto.CountRequest', null, global);
34
36
  goog.exportSymbol('proto.Drumtracker.DrumProto.CreateRequest', null, global);
35
37
  goog.exportSymbol('proto.Drumtracker.DrumProto.DeleteReply', null, global);
36
38
  goog.exportSymbol('proto.Drumtracker.DrumProto.DeleteRequest', null, global);
@@ -254,6 +256,48 @@ if (goog.DEBUG && !COMPILED) {
254
256
  */
255
257
  proto.Drumtracker.DrumProto.SearchReply.displayName = 'proto.Drumtracker.DrumProto.SearchReply';
256
258
  }
259
+ /**
260
+ * Generated by JsPbCodeGenerator.
261
+ * @param {Array=} opt_data Optional initial data array, typically from a
262
+ * server response, or constructed directly in Javascript. The array is used
263
+ * in place and becomes part of the constructed object. It is not cloned.
264
+ * If no data is provided, the constructed object will be empty, but still
265
+ * valid.
266
+ * @extends {jspb.Message}
267
+ * @constructor
268
+ */
269
+ proto.Drumtracker.DrumProto.CountRequest = function(opt_data) {
270
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
271
+ };
272
+ goog.inherits(proto.Drumtracker.DrumProto.CountRequest, jspb.Message);
273
+ if (goog.DEBUG && !COMPILED) {
274
+ /**
275
+ * @public
276
+ * @override
277
+ */
278
+ proto.Drumtracker.DrumProto.CountRequest.displayName = 'proto.Drumtracker.DrumProto.CountRequest';
279
+ }
280
+ /**
281
+ * Generated by JsPbCodeGenerator.
282
+ * @param {Array=} opt_data Optional initial data array, typically from a
283
+ * server response, or constructed directly in Javascript. The array is used
284
+ * in place and becomes part of the constructed object. It is not cloned.
285
+ * If no data is provided, the constructed object will be empty, but still
286
+ * valid.
287
+ * @extends {jspb.Message}
288
+ * @constructor
289
+ */
290
+ proto.Drumtracker.DrumProto.CountReply = function(opt_data) {
291
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
292
+ };
293
+ goog.inherits(proto.Drumtracker.DrumProto.CountReply, jspb.Message);
294
+ if (goog.DEBUG && !COMPILED) {
295
+ /**
296
+ * @public
297
+ * @override
298
+ */
299
+ proto.Drumtracker.DrumProto.CountReply.displayName = 'proto.Drumtracker.DrumProto.CountReply';
300
+ }
257
301
  /**
258
302
  * Generated by JsPbCodeGenerator.
259
303
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2753,6 +2797,287 @@ proto.Drumtracker.DrumProto.SearchReply.prototype.hasPagination = function() {
2753
2797
 
2754
2798
 
2755
2799
 
2800
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2801
+ /**
2802
+ * Creates an object representation of this proto.
2803
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2804
+ * Optional fields that are not set will be set to undefined.
2805
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2806
+ * For the list of reserved names please see:
2807
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2808
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2809
+ * JSPB instance for transitional soy proto support:
2810
+ * http://goto/soy-param-migration
2811
+ * @return {!Object}
2812
+ */
2813
+ proto.Drumtracker.DrumProto.CountRequest.prototype.toObject = function(opt_includeInstance) {
2814
+ return proto.Drumtracker.DrumProto.CountRequest.toObject(opt_includeInstance, this);
2815
+ };
2816
+
2817
+
2818
+ /**
2819
+ * Static version of the {@see toObject} method.
2820
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2821
+ * the JSPB instance for transitional soy proto support:
2822
+ * http://goto/soy-param-migration
2823
+ * @param {!proto.Drumtracker.DrumProto.CountRequest} msg The msg instance to transform.
2824
+ * @return {!Object}
2825
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2826
+ */
2827
+ proto.Drumtracker.DrumProto.CountRequest.toObject = function(includeInstance, msg) {
2828
+ var f, obj = {
2829
+ filters: (f = msg.getFilters()) && proto.Drumtracker.DrumProto.DrumFilters.toObject(includeInstance, f)
2830
+ };
2831
+
2832
+ if (includeInstance) {
2833
+ obj.$jspbMessageInstance = msg;
2834
+ }
2835
+ return obj;
2836
+ };
2837
+ }
2838
+
2839
+
2840
+ /**
2841
+ * Deserializes binary data (in protobuf wire format).
2842
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2843
+ * @return {!proto.Drumtracker.DrumProto.CountRequest}
2844
+ */
2845
+ proto.Drumtracker.DrumProto.CountRequest.deserializeBinary = function(bytes) {
2846
+ var reader = new jspb.BinaryReader(bytes);
2847
+ var msg = new proto.Drumtracker.DrumProto.CountRequest;
2848
+ return proto.Drumtracker.DrumProto.CountRequest.deserializeBinaryFromReader(msg, reader);
2849
+ };
2850
+
2851
+
2852
+ /**
2853
+ * Deserializes binary data (in protobuf wire format) from the
2854
+ * given reader into the given message object.
2855
+ * @param {!proto.Drumtracker.DrumProto.CountRequest} msg The message object to deserialize into.
2856
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2857
+ * @return {!proto.Drumtracker.DrumProto.CountRequest}
2858
+ */
2859
+ proto.Drumtracker.DrumProto.CountRequest.deserializeBinaryFromReader = function(msg, reader) {
2860
+ while (reader.nextField()) {
2861
+ if (reader.isEndGroup()) {
2862
+ break;
2863
+ }
2864
+ var field = reader.getFieldNumber();
2865
+ switch (field) {
2866
+ case 1:
2867
+ var value = new proto.Drumtracker.DrumProto.DrumFilters;
2868
+ reader.readMessage(value,proto.Drumtracker.DrumProto.DrumFilters.deserializeBinaryFromReader);
2869
+ msg.setFilters(value);
2870
+ break;
2871
+ default:
2872
+ reader.skipField();
2873
+ break;
2874
+ }
2875
+ }
2876
+ return msg;
2877
+ };
2878
+
2879
+
2880
+ /**
2881
+ * Serializes the message to binary data (in protobuf wire format).
2882
+ * @return {!Uint8Array}
2883
+ */
2884
+ proto.Drumtracker.DrumProto.CountRequest.prototype.serializeBinary = function() {
2885
+ var writer = new jspb.BinaryWriter();
2886
+ proto.Drumtracker.DrumProto.CountRequest.serializeBinaryToWriter(this, writer);
2887
+ return writer.getResultBuffer();
2888
+ };
2889
+
2890
+
2891
+ /**
2892
+ * Serializes the given message to binary data (in protobuf wire
2893
+ * format), writing to the given BinaryWriter.
2894
+ * @param {!proto.Drumtracker.DrumProto.CountRequest} message
2895
+ * @param {!jspb.BinaryWriter} writer
2896
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2897
+ */
2898
+ proto.Drumtracker.DrumProto.CountRequest.serializeBinaryToWriter = function(message, writer) {
2899
+ var f = undefined;
2900
+ f = message.getFilters();
2901
+ if (f != null) {
2902
+ writer.writeMessage(
2903
+ 1,
2904
+ f,
2905
+ proto.Drumtracker.DrumProto.DrumFilters.serializeBinaryToWriter
2906
+ );
2907
+ }
2908
+ };
2909
+
2910
+
2911
+ /**
2912
+ * optional DrumFilters filters = 1;
2913
+ * @return {?proto.Drumtracker.DrumProto.DrumFilters}
2914
+ */
2915
+ proto.Drumtracker.DrumProto.CountRequest.prototype.getFilters = function() {
2916
+ return /** @type{?proto.Drumtracker.DrumProto.DrumFilters} */ (
2917
+ jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumFilters, 1));
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * @param {?proto.Drumtracker.DrumProto.DrumFilters|undefined} value
2923
+ * @return {!proto.Drumtracker.DrumProto.CountRequest} returns this
2924
+ */
2925
+ proto.Drumtracker.DrumProto.CountRequest.prototype.setFilters = function(value) {
2926
+ return jspb.Message.setWrapperField(this, 1, value);
2927
+ };
2928
+
2929
+
2930
+ /**
2931
+ * Clears the message field making it undefined.
2932
+ * @return {!proto.Drumtracker.DrumProto.CountRequest} returns this
2933
+ */
2934
+ proto.Drumtracker.DrumProto.CountRequest.prototype.clearFilters = function() {
2935
+ return this.setFilters(undefined);
2936
+ };
2937
+
2938
+
2939
+ /**
2940
+ * Returns whether this field is set.
2941
+ * @return {boolean}
2942
+ */
2943
+ proto.Drumtracker.DrumProto.CountRequest.prototype.hasFilters = function() {
2944
+ return jspb.Message.getField(this, 1) != null;
2945
+ };
2946
+
2947
+
2948
+
2949
+
2950
+
2951
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2952
+ /**
2953
+ * Creates an object representation of this proto.
2954
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2955
+ * Optional fields that are not set will be set to undefined.
2956
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2957
+ * For the list of reserved names please see:
2958
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2959
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2960
+ * JSPB instance for transitional soy proto support:
2961
+ * http://goto/soy-param-migration
2962
+ * @return {!Object}
2963
+ */
2964
+ proto.Drumtracker.DrumProto.CountReply.prototype.toObject = function(opt_includeInstance) {
2965
+ return proto.Drumtracker.DrumProto.CountReply.toObject(opt_includeInstance, this);
2966
+ };
2967
+
2968
+
2969
+ /**
2970
+ * Static version of the {@see toObject} method.
2971
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2972
+ * the JSPB instance for transitional soy proto support:
2973
+ * http://goto/soy-param-migration
2974
+ * @param {!proto.Drumtracker.DrumProto.CountReply} msg The msg instance to transform.
2975
+ * @return {!Object}
2976
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2977
+ */
2978
+ proto.Drumtracker.DrumProto.CountReply.toObject = function(includeInstance, msg) {
2979
+ var f, obj = {
2980
+ total: jspb.Message.getFieldWithDefault(msg, 1, 0)
2981
+ };
2982
+
2983
+ if (includeInstance) {
2984
+ obj.$jspbMessageInstance = msg;
2985
+ }
2986
+ return obj;
2987
+ };
2988
+ }
2989
+
2990
+
2991
+ /**
2992
+ * Deserializes binary data (in protobuf wire format).
2993
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2994
+ * @return {!proto.Drumtracker.DrumProto.CountReply}
2995
+ */
2996
+ proto.Drumtracker.DrumProto.CountReply.deserializeBinary = function(bytes) {
2997
+ var reader = new jspb.BinaryReader(bytes);
2998
+ var msg = new proto.Drumtracker.DrumProto.CountReply;
2999
+ return proto.Drumtracker.DrumProto.CountReply.deserializeBinaryFromReader(msg, reader);
3000
+ };
3001
+
3002
+
3003
+ /**
3004
+ * Deserializes binary data (in protobuf wire format) from the
3005
+ * given reader into the given message object.
3006
+ * @param {!proto.Drumtracker.DrumProto.CountReply} msg The message object to deserialize into.
3007
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3008
+ * @return {!proto.Drumtracker.DrumProto.CountReply}
3009
+ */
3010
+ proto.Drumtracker.DrumProto.CountReply.deserializeBinaryFromReader = function(msg, reader) {
3011
+ while (reader.nextField()) {
3012
+ if (reader.isEndGroup()) {
3013
+ break;
3014
+ }
3015
+ var field = reader.getFieldNumber();
3016
+ switch (field) {
3017
+ case 1:
3018
+ var value = /** @type {number} */ (reader.readInt32());
3019
+ msg.setTotal(value);
3020
+ break;
3021
+ default:
3022
+ reader.skipField();
3023
+ break;
3024
+ }
3025
+ }
3026
+ return msg;
3027
+ };
3028
+
3029
+
3030
+ /**
3031
+ * Serializes the message to binary data (in protobuf wire format).
3032
+ * @return {!Uint8Array}
3033
+ */
3034
+ proto.Drumtracker.DrumProto.CountReply.prototype.serializeBinary = function() {
3035
+ var writer = new jspb.BinaryWriter();
3036
+ proto.Drumtracker.DrumProto.CountReply.serializeBinaryToWriter(this, writer);
3037
+ return writer.getResultBuffer();
3038
+ };
3039
+
3040
+
3041
+ /**
3042
+ * Serializes the given message to binary data (in protobuf wire
3043
+ * format), writing to the given BinaryWriter.
3044
+ * @param {!proto.Drumtracker.DrumProto.CountReply} message
3045
+ * @param {!jspb.BinaryWriter} writer
3046
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3047
+ */
3048
+ proto.Drumtracker.DrumProto.CountReply.serializeBinaryToWriter = function(message, writer) {
3049
+ var f = undefined;
3050
+ f = message.getTotal();
3051
+ if (f !== 0) {
3052
+ writer.writeInt32(
3053
+ 1,
3054
+ f
3055
+ );
3056
+ }
3057
+ };
3058
+
3059
+
3060
+ /**
3061
+ * optional int32 total = 1;
3062
+ * @return {number}
3063
+ */
3064
+ proto.Drumtracker.DrumProto.CountReply.prototype.getTotal = function() {
3065
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3066
+ };
3067
+
3068
+
3069
+ /**
3070
+ * @param {number} value
3071
+ * @return {!proto.Drumtracker.DrumProto.CountReply} returns this
3072
+ */
3073
+ proto.Drumtracker.DrumProto.CountReply.prototype.setTotal = function(value) {
3074
+ return jspb.Message.setProto3IntField(this, 1, value);
3075
+ };
3076
+
3077
+
3078
+
3079
+
3080
+
2756
3081
  if (jspb.Message.GENERATE_TO_OBJECT) {
2757
3082
  /**
2758
3083
  * Creates an object representation of this proto.
@@ -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,
@@ -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];
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "2.1.0-drumtracker.7",
8
+ "version": "2.1.0-drumtracker.8",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [