@aceplus/smartace-api 3.7.0-alpha.11 → 3.7.0-alpha.13

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "3.7.0-alpha.11",
8
+ "version": "3.7.0-alpha.13",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -340,6 +340,28 @@ export namespace ClientProto {
340
340
  }
341
341
  }
342
342
 
343
+ export class AllReply extends jspb.Message {
344
+ clearClientsList(): void;
345
+ getClientsList(): Array<ClientProto>;
346
+ setClientsList(value: Array<ClientProto>): void;
347
+ addClients(value?: ClientProto, index?: number): ClientProto;
348
+
349
+ serializeBinary(): Uint8Array;
350
+ toObject(includeInstance?: boolean): AllReply.AsObject;
351
+ static toObject(includeInstance: boolean, msg: AllReply): AllReply.AsObject;
352
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
353
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
354
+ static serializeBinaryToWriter(message: AllReply, writer: jspb.BinaryWriter): void;
355
+ static deserializeBinary(bytes: Uint8Array): AllReply;
356
+ static deserializeBinaryFromReader(message: AllReply, reader: jspb.BinaryReader): AllReply;
357
+ }
358
+
359
+ export namespace AllReply {
360
+ export type AsObject = {
361
+ clientsList: Array<ClientProto.AsObject>,
362
+ }
363
+ }
364
+
343
365
  export interface ClientFilterTypeMap {
344
366
  REGISTERED: 0;
345
367
  AVAILABLE: 1;
@@ -30,6 +30,7 @@ goog.object.extend(proto, platform_pagination_pb);
30
30
  var auth_account_pb = require('./auth.account_pb.js');
31
31
  goog.object.extend(proto, auth_account_pb);
32
32
  goog.exportSymbol('proto.Platform.ClientProto', null, global);
33
+ goog.exportSymbol('proto.Platform.ClientProto.AllReply', null, global);
33
34
  goog.exportSymbol('proto.Platform.ClientProto.ClientFilterType', null, global);
34
35
  goog.exportSymbol('proto.Platform.ClientProto.CreateRequest', null, global);
35
36
  goog.exportSymbol('proto.Platform.ClientProto.DeleteReply', null, global);
@@ -250,6 +251,27 @@ if (goog.DEBUG && !COMPILED) {
250
251
  */
251
252
  proto.Platform.ClientProto.DeleteReply.displayName = 'proto.Platform.ClientProto.DeleteReply';
252
253
  }
254
+ /**
255
+ * Generated by JsPbCodeGenerator.
256
+ * @param {Array=} opt_data Optional initial data array, typically from a
257
+ * server response, or constructed directly in Javascript. The array is used
258
+ * in place and becomes part of the constructed object. It is not cloned.
259
+ * If no data is provided, the constructed object will be empty, but still
260
+ * valid.
261
+ * @extends {jspb.Message}
262
+ * @constructor
263
+ */
264
+ proto.Platform.ClientProto.AllReply = function(opt_data) {
265
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.ClientProto.AllReply.repeatedFields_, null);
266
+ };
267
+ goog.inherits(proto.Platform.ClientProto.AllReply, jspb.Message);
268
+ if (goog.DEBUG && !COMPILED) {
269
+ /**
270
+ * @public
271
+ * @override
272
+ */
273
+ proto.Platform.ClientProto.AllReply.displayName = 'proto.Platform.ClientProto.AllReply';
274
+ }
253
275
 
254
276
  /**
255
277
  * List of repeated fields within this message type.
@@ -2437,6 +2459,166 @@ proto.Platform.ClientProto.DeleteReply.serializeBinaryToWriter = function(messag
2437
2459
  };
2438
2460
 
2439
2461
 
2462
+
2463
+ /**
2464
+ * List of repeated fields within this message type.
2465
+ * @private {!Array<number>}
2466
+ * @const
2467
+ */
2468
+ proto.Platform.ClientProto.AllReply.repeatedFields_ = [1];
2469
+
2470
+
2471
+
2472
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2473
+ /**
2474
+ * Creates an object representation of this proto.
2475
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2476
+ * Optional fields that are not set will be set to undefined.
2477
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2478
+ * For the list of reserved names please see:
2479
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2480
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2481
+ * JSPB instance for transitional soy proto support:
2482
+ * http://goto/soy-param-migration
2483
+ * @return {!Object}
2484
+ */
2485
+ proto.Platform.ClientProto.AllReply.prototype.toObject = function(opt_includeInstance) {
2486
+ return proto.Platform.ClientProto.AllReply.toObject(opt_includeInstance, this);
2487
+ };
2488
+
2489
+
2490
+ /**
2491
+ * Static version of the {@see toObject} method.
2492
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2493
+ * the JSPB instance for transitional soy proto support:
2494
+ * http://goto/soy-param-migration
2495
+ * @param {!proto.Platform.ClientProto.AllReply} msg The msg instance to transform.
2496
+ * @return {!Object}
2497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2498
+ */
2499
+ proto.Platform.ClientProto.AllReply.toObject = function(includeInstance, msg) {
2500
+ var f, obj = {
2501
+ clientsList: jspb.Message.toObjectList(msg.getClientsList(),
2502
+ proto.Platform.ClientProto.toObject, includeInstance)
2503
+ };
2504
+
2505
+ if (includeInstance) {
2506
+ obj.$jspbMessageInstance = msg;
2507
+ }
2508
+ return obj;
2509
+ };
2510
+ }
2511
+
2512
+
2513
+ /**
2514
+ * Deserializes binary data (in protobuf wire format).
2515
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2516
+ * @return {!proto.Platform.ClientProto.AllReply}
2517
+ */
2518
+ proto.Platform.ClientProto.AllReply.deserializeBinary = function(bytes) {
2519
+ var reader = new jspb.BinaryReader(bytes);
2520
+ var msg = new proto.Platform.ClientProto.AllReply;
2521
+ return proto.Platform.ClientProto.AllReply.deserializeBinaryFromReader(msg, reader);
2522
+ };
2523
+
2524
+
2525
+ /**
2526
+ * Deserializes binary data (in protobuf wire format) from the
2527
+ * given reader into the given message object.
2528
+ * @param {!proto.Platform.ClientProto.AllReply} msg The message object to deserialize into.
2529
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2530
+ * @return {!proto.Platform.ClientProto.AllReply}
2531
+ */
2532
+ proto.Platform.ClientProto.AllReply.deserializeBinaryFromReader = function(msg, reader) {
2533
+ while (reader.nextField()) {
2534
+ if (reader.isEndGroup()) {
2535
+ break;
2536
+ }
2537
+ var field = reader.getFieldNumber();
2538
+ switch (field) {
2539
+ case 1:
2540
+ var value = new proto.Platform.ClientProto;
2541
+ reader.readMessage(value,proto.Platform.ClientProto.deserializeBinaryFromReader);
2542
+ msg.addClients(value);
2543
+ break;
2544
+ default:
2545
+ reader.skipField();
2546
+ break;
2547
+ }
2548
+ }
2549
+ return msg;
2550
+ };
2551
+
2552
+
2553
+ /**
2554
+ * Serializes the message to binary data (in protobuf wire format).
2555
+ * @return {!Uint8Array}
2556
+ */
2557
+ proto.Platform.ClientProto.AllReply.prototype.serializeBinary = function() {
2558
+ var writer = new jspb.BinaryWriter();
2559
+ proto.Platform.ClientProto.AllReply.serializeBinaryToWriter(this, writer);
2560
+ return writer.getResultBuffer();
2561
+ };
2562
+
2563
+
2564
+ /**
2565
+ * Serializes the given message to binary data (in protobuf wire
2566
+ * format), writing to the given BinaryWriter.
2567
+ * @param {!proto.Platform.ClientProto.AllReply} message
2568
+ * @param {!jspb.BinaryWriter} writer
2569
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2570
+ */
2571
+ proto.Platform.ClientProto.AllReply.serializeBinaryToWriter = function(message, writer) {
2572
+ var f = undefined;
2573
+ f = message.getClientsList();
2574
+ if (f.length > 0) {
2575
+ writer.writeRepeatedMessage(
2576
+ 1,
2577
+ f,
2578
+ proto.Platform.ClientProto.serializeBinaryToWriter
2579
+ );
2580
+ }
2581
+ };
2582
+
2583
+
2584
+ /**
2585
+ * repeated ClientProto clients = 1;
2586
+ * @return {!Array<!proto.Platform.ClientProto>}
2587
+ */
2588
+ proto.Platform.ClientProto.AllReply.prototype.getClientsList = function() {
2589
+ return /** @type{!Array<!proto.Platform.ClientProto>} */ (
2590
+ jspb.Message.getRepeatedWrapperField(this, proto.Platform.ClientProto, 1));
2591
+ };
2592
+
2593
+
2594
+ /**
2595
+ * @param {!Array<!proto.Platform.ClientProto>} value
2596
+ * @return {!proto.Platform.ClientProto.AllReply} returns this
2597
+ */
2598
+ proto.Platform.ClientProto.AllReply.prototype.setClientsList = function(value) {
2599
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2600
+ };
2601
+
2602
+
2603
+ /**
2604
+ * @param {!proto.Platform.ClientProto=} opt_value
2605
+ * @param {number=} opt_index
2606
+ * @return {!proto.Platform.ClientProto}
2607
+ */
2608
+ proto.Platform.ClientProto.AllReply.prototype.addClients = function(opt_value, opt_index) {
2609
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.ClientProto, opt_index);
2610
+ };
2611
+
2612
+
2613
+ /**
2614
+ * Clears the list making it empty but non-null.
2615
+ * @return {!proto.Platform.ClientProto.AllReply} returns this
2616
+ */
2617
+ proto.Platform.ClientProto.AllReply.prototype.clearClientsList = function() {
2618
+ return this.setClientsList([]);
2619
+ };
2620
+
2621
+
2440
2622
  /**
2441
2623
  * optional int32 id = 1;
2442
2624
  * @return {number}
@@ -58,6 +58,15 @@ type ClientGRPCRetrieveForAccount = {
58
58
  readonly responseType: typeof platform_client_pb.ClientProto.RetrieveForAccountReply;
59
59
  };
60
60
 
61
+ type ClientGRPCAll = {
62
+ readonly methodName: string;
63
+ readonly service: typeof ClientGRPC;
64
+ readonly requestStream: false;
65
+ readonly responseStream: false;
66
+ readonly requestType: typeof platform_client_pb.ClientProto.SearchRequest;
67
+ readonly responseType: typeof platform_client_pb.ClientProto.AllReply;
68
+ };
69
+
61
70
  export class ClientGRPC {
62
71
  static readonly serviceName: string;
63
72
  static readonly Create: ClientGRPCCreate;
@@ -66,6 +75,7 @@ export class ClientGRPC {
66
75
  static readonly Delete: ClientGRPCDelete;
67
76
  static readonly Search: ClientGRPCSearch;
68
77
  static readonly RetrieveForAccount: ClientGRPCRetrieveForAccount;
78
+ static readonly All: ClientGRPCAll;
69
79
  }
70
80
 
71
81
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -154,5 +164,14 @@ export class ClientGRPCClient {
154
164
  requestMessage: platform_client_pb.ClientProto.RetrieveForAccountRequest,
155
165
  callback: (error: ServiceError|null, responseMessage: platform_client_pb.ClientProto.RetrieveForAccountReply|null) => void
156
166
  ): UnaryResponse;
167
+ all(
168
+ requestMessage: platform_client_pb.ClientProto.SearchRequest,
169
+ metadata: grpc.Metadata,
170
+ callback: (error: ServiceError|null, responseMessage: platform_client_pb.ClientProto.AllReply|null) => void
171
+ ): UnaryResponse;
172
+ all(
173
+ requestMessage: platform_client_pb.ClientProto.SearchRequest,
174
+ callback: (error: ServiceError|null, responseMessage: platform_client_pb.ClientProto.AllReply|null) => void
175
+ ): UnaryResponse;
157
176
  }
158
177
 
@@ -64,6 +64,15 @@ ClientGRPC.RetrieveForAccount = {
64
64
  responseType: platform_client_pb.ClientProto.RetrieveForAccountReply
65
65
  };
66
66
 
67
+ ClientGRPC.All = {
68
+ methodName: "All",
69
+ service: ClientGRPC,
70
+ requestStream: false,
71
+ responseStream: false,
72
+ requestType: platform_client_pb.ClientProto.SearchRequest,
73
+ responseType: platform_client_pb.ClientProto.AllReply
74
+ };
75
+
67
76
  exports.ClientGRPC = ClientGRPC;
68
77
 
69
78
  function ClientGRPCClient(serviceHost, options) {
@@ -257,5 +266,36 @@ ClientGRPCClient.prototype.retrieveForAccount = function retrieveForAccount(requ
257
266
  };
258
267
  };
259
268
 
269
+ ClientGRPCClient.prototype.all = function all(requestMessage, metadata, callback) {
270
+ if (arguments.length === 2) {
271
+ callback = arguments[1];
272
+ }
273
+ var client = grpc.unary(ClientGRPC.All, {
274
+ request: requestMessage,
275
+ host: this.serviceHost,
276
+ metadata: metadata,
277
+ transport: this.options.transport,
278
+ debug: this.options.debug,
279
+ onEnd: function (response) {
280
+ if (callback) {
281
+ if (response.status !== grpc.Code.OK) {
282
+ var err = new Error(response.statusMessage);
283
+ err.code = response.status;
284
+ err.metadata = response.trailers;
285
+ callback(err, null);
286
+ } else {
287
+ callback(null, response.message);
288
+ }
289
+ }
290
+ }
291
+ });
292
+ return {
293
+ cancel: function () {
294
+ callback = null;
295
+ client.close();
296
+ }
297
+ };
298
+ };
299
+
260
300
  exports.ClientGRPCClient = ClientGRPCClient;
261
301
 
@@ -4,6 +4,7 @@
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
6
6
  import * as platform_pagination_pb from "./platform.pagination_pb";
7
+ import * as spic_cabinet_pb from "./spic.cabinet_pb";
7
8
 
8
9
  export class GroupProto extends jspb.Message {
9
10
  getId(): string;
@@ -191,5 +192,61 @@ export namespace GroupProto {
191
192
  count: number,
192
193
  }
193
194
  }
195
+
196
+ export class GetSpicsRequest extends jspb.Message {
197
+ getUserId(): number;
198
+ setUserId(value: number): void;
199
+
200
+ getPage(): number;
201
+ setPage(value: number): void;
202
+
203
+ getCount(): number;
204
+ setCount(value: number): void;
205
+
206
+ serializeBinary(): Uint8Array;
207
+ toObject(includeInstance?: boolean): GetSpicsRequest.AsObject;
208
+ static toObject(includeInstance: boolean, msg: GetSpicsRequest): GetSpicsRequest.AsObject;
209
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
210
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
211
+ static serializeBinaryToWriter(message: GetSpicsRequest, writer: jspb.BinaryWriter): void;
212
+ static deserializeBinary(bytes: Uint8Array): GetSpicsRequest;
213
+ static deserializeBinaryFromReader(message: GetSpicsRequest, reader: jspb.BinaryReader): GetSpicsRequest;
214
+ }
215
+
216
+ export namespace GetSpicsRequest {
217
+ export type AsObject = {
218
+ userId: number,
219
+ page: number,
220
+ count: number,
221
+ }
222
+ }
223
+
224
+ export class GetSpicsResponse extends jspb.Message {
225
+ clearCabinetsList(): void;
226
+ getCabinetsList(): Array<spic_cabinet_pb.CabinetProto>;
227
+ setCabinetsList(value: Array<spic_cabinet_pb.CabinetProto>): void;
228
+ addCabinets(value?: spic_cabinet_pb.CabinetProto, index?: number): spic_cabinet_pb.CabinetProto;
229
+
230
+ hasPagination(): boolean;
231
+ clearPagination(): void;
232
+ getPagination(): platform_pagination_pb.PaginationProto | undefined;
233
+ setPagination(value?: platform_pagination_pb.PaginationProto): void;
234
+
235
+ serializeBinary(): Uint8Array;
236
+ toObject(includeInstance?: boolean): GetSpicsResponse.AsObject;
237
+ static toObject(includeInstance: boolean, msg: GetSpicsResponse): GetSpicsResponse.AsObject;
238
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
239
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
240
+ static serializeBinaryToWriter(message: GetSpicsResponse, writer: jspb.BinaryWriter): void;
241
+ static deserializeBinary(bytes: Uint8Array): GetSpicsResponse;
242
+ static deserializeBinaryFromReader(message: GetSpicsResponse, reader: jspb.BinaryReader): GetSpicsResponse;
243
+ }
244
+
245
+ export namespace GetSpicsResponse {
246
+ export type AsObject = {
247
+ cabinetsList: Array<spic_cabinet_pb.CabinetProto.AsObject>,
248
+ pagination?: platform_pagination_pb.PaginationProto.AsObject,
249
+ }
250
+ }
194
251
  }
195
252