@aceplus/smartace-api 1.3.0-alpha.124 → 1.3.0-alpha.126

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.
@@ -3,7 +3,6 @@
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
6
- import * as platform_pagination_pb from "./platform.pagination_pb";
7
6
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
8
7
  import * as auth_account_pb from "./auth.account_pb";
9
8
 
@@ -23,8 +23,6 @@ var global =
23
23
 
24
24
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
25
25
  goog.object.extend(proto, google_api_annotations_pb);
26
- var platform_pagination_pb = require('./platform.pagination_pb.js');
27
- goog.object.extend(proto, platform_pagination_pb);
28
26
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
29
27
  goog.object.extend(proto, google_protobuf_empty_pb);
30
28
  var auth_account_pb = require('./auth.account_pb.js');
package/auth.sms_pb.d.ts CHANGED
@@ -2,7 +2,6 @@
2
2
  // file: auth.sms.proto
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
- import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
5
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
7
6
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
8
7
 
package/auth.sms_pb.js CHANGED
@@ -21,8 +21,6 @@ var global =
21
21
  (function () { return this; }).call(null) ||
22
22
  Function('return this')();
23
23
 
24
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
- goog.object.extend(proto, google_protobuf_timestamp_pb);
26
24
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
27
25
  goog.object.extend(proto, google_protobuf_empty_pb);
28
26
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
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": "1.3.0-alpha.124",
8
+ "version": "1.3.0-alpha.126",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -6,6 +6,7 @@ import * as auth_account_pb from "./auth.account_pb";
6
6
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
7
7
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
8
8
  import * as platform_pagination_pb from "./platform.pagination_pb";
9
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
9
10
 
10
11
  export class LocalAccountProto extends jspb.Message {
11
12
  getId(): number;
@@ -32,6 +33,14 @@ export class LocalAccountProto extends jspb.Message {
32
33
  getGroupId(): string;
33
34
  setGroupId(value: string): void;
34
35
 
36
+ getEnabled(): boolean;
37
+ setEnabled(value: boolean): void;
38
+
39
+ hasExpiredAt(): boolean;
40
+ clearExpiredAt(): void;
41
+ getExpiredAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
42
+ setExpiredAt(value?: google_protobuf_timestamp_pb.Timestamp): void;
43
+
35
44
  serializeBinary(): Uint8Array;
36
45
  toObject(includeInstance?: boolean): LocalAccountProto.AsObject;
37
46
  static toObject(includeInstance: boolean, msg: LocalAccountProto): LocalAccountProto.AsObject;
@@ -52,6 +61,8 @@ export namespace LocalAccountProto {
52
61
  locale: string,
53
62
  company: string,
54
63
  groupId: string,
64
+ enabled: boolean,
65
+ expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
55
66
  }
56
67
 
57
68
  export class CreateAdminRequest extends jspb.Message {
@@ -311,5 +322,71 @@ export namespace LocalAccountProto {
311
322
  clientId: number,
312
323
  }
313
324
  }
325
+
326
+ export class EnableAccount extends jspb.Message {
327
+ getId(): number;
328
+ setId(value: number): void;
329
+
330
+ serializeBinary(): Uint8Array;
331
+ toObject(includeInstance?: boolean): EnableAccount.AsObject;
332
+ static toObject(includeInstance: boolean, msg: EnableAccount): EnableAccount.AsObject;
333
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
334
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
335
+ static serializeBinaryToWriter(message: EnableAccount, writer: jspb.BinaryWriter): void;
336
+ static deserializeBinary(bytes: Uint8Array): EnableAccount;
337
+ static deserializeBinaryFromReader(message: EnableAccount, reader: jspb.BinaryReader): EnableAccount;
338
+ }
339
+
340
+ export namespace EnableAccount {
341
+ export type AsObject = {
342
+ id: number,
343
+ }
344
+ }
345
+
346
+ export class DisableAccount extends jspb.Message {
347
+ getId(): number;
348
+ setId(value: number): void;
349
+
350
+ serializeBinary(): Uint8Array;
351
+ toObject(includeInstance?: boolean): DisableAccount.AsObject;
352
+ static toObject(includeInstance: boolean, msg: DisableAccount): DisableAccount.AsObject;
353
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
354
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
355
+ static serializeBinaryToWriter(message: DisableAccount, writer: jspb.BinaryWriter): void;
356
+ static deserializeBinary(bytes: Uint8Array): DisableAccount;
357
+ static deserializeBinaryFromReader(message: DisableAccount, reader: jspb.BinaryReader): DisableAccount;
358
+ }
359
+
360
+ export namespace DisableAccount {
361
+ export type AsObject = {
362
+ id: number,
363
+ }
364
+ }
365
+
366
+ export class UpdateExpiredAt extends jspb.Message {
367
+ getId(): number;
368
+ setId(value: number): void;
369
+
370
+ hasExpiredAt(): boolean;
371
+ clearExpiredAt(): void;
372
+ getExpiredAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
373
+ setExpiredAt(value?: google_protobuf_timestamp_pb.Timestamp): void;
374
+
375
+ serializeBinary(): Uint8Array;
376
+ toObject(includeInstance?: boolean): UpdateExpiredAt.AsObject;
377
+ static toObject(includeInstance: boolean, msg: UpdateExpiredAt): UpdateExpiredAt.AsObject;
378
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
379
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
380
+ static serializeBinaryToWriter(message: UpdateExpiredAt, writer: jspb.BinaryWriter): void;
381
+ static deserializeBinary(bytes: Uint8Array): UpdateExpiredAt;
382
+ static deserializeBinaryFromReader(message: UpdateExpiredAt, reader: jspb.BinaryReader): UpdateExpiredAt;
383
+ }
384
+
385
+ export namespace UpdateExpiredAt {
386
+ export type AsObject = {
387
+ id: number,
388
+ expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
389
+ }
390
+ }
314
391
  }
315
392
 
@@ -29,14 +29,19 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
29
29
  goog.object.extend(proto, google_protobuf_empty_pb);
30
30
  var platform_pagination_pb = require('./platform.pagination_pb.js');
31
31
  goog.object.extend(proto, platform_pagination_pb);
32
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
33
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
32
34
  goog.exportSymbol('proto.Platform.LocalAccountProto', null, global);
33
35
  goog.exportSymbol('proto.Platform.LocalAccountProto.AddClientRequest', null, global);
34
36
  goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAdminRequest', null, global);
35
37
  goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAppRequest', null, global);
38
+ goog.exportSymbol('proto.Platform.LocalAccountProto.DisableAccount', null, global);
39
+ goog.exportSymbol('proto.Platform.LocalAccountProto.EnableAccount', null, global);
36
40
  goog.exportSymbol('proto.Platform.LocalAccountProto.RemoveClientRequest', null, global);
37
41
  goog.exportSymbol('proto.Platform.LocalAccountProto.SearchReply', null, global);
38
42
  goog.exportSymbol('proto.Platform.LocalAccountProto.SearchRequest', null, global);
39
43
  goog.exportSymbol('proto.Platform.LocalAccountProto.SetClientRequest', null, global);
44
+ goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateExpiredAt', null, global);
40
45
  goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateRequest', null, global);
41
46
  /**
42
47
  * Generated by JsPbCodeGenerator.
@@ -227,6 +232,69 @@ if (goog.DEBUG && !COMPILED) {
227
232
  */
228
233
  proto.Platform.LocalAccountProto.RemoveClientRequest.displayName = 'proto.Platform.LocalAccountProto.RemoveClientRequest';
229
234
  }
235
+ /**
236
+ * Generated by JsPbCodeGenerator.
237
+ * @param {Array=} opt_data Optional initial data array, typically from a
238
+ * server response, or constructed directly in Javascript. The array is used
239
+ * in place and becomes part of the constructed object. It is not cloned.
240
+ * If no data is provided, the constructed object will be empty, but still
241
+ * valid.
242
+ * @extends {jspb.Message}
243
+ * @constructor
244
+ */
245
+ proto.Platform.LocalAccountProto.EnableAccount = function(opt_data) {
246
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
247
+ };
248
+ goog.inherits(proto.Platform.LocalAccountProto.EnableAccount, jspb.Message);
249
+ if (goog.DEBUG && !COMPILED) {
250
+ /**
251
+ * @public
252
+ * @override
253
+ */
254
+ proto.Platform.LocalAccountProto.EnableAccount.displayName = 'proto.Platform.LocalAccountProto.EnableAccount';
255
+ }
256
+ /**
257
+ * Generated by JsPbCodeGenerator.
258
+ * @param {Array=} opt_data Optional initial data array, typically from a
259
+ * server response, or constructed directly in Javascript. The array is used
260
+ * in place and becomes part of the constructed object. It is not cloned.
261
+ * If no data is provided, the constructed object will be empty, but still
262
+ * valid.
263
+ * @extends {jspb.Message}
264
+ * @constructor
265
+ */
266
+ proto.Platform.LocalAccountProto.DisableAccount = function(opt_data) {
267
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
268
+ };
269
+ goog.inherits(proto.Platform.LocalAccountProto.DisableAccount, jspb.Message);
270
+ if (goog.DEBUG && !COMPILED) {
271
+ /**
272
+ * @public
273
+ * @override
274
+ */
275
+ proto.Platform.LocalAccountProto.DisableAccount.displayName = 'proto.Platform.LocalAccountProto.DisableAccount';
276
+ }
277
+ /**
278
+ * Generated by JsPbCodeGenerator.
279
+ * @param {Array=} opt_data Optional initial data array, typically from a
280
+ * server response, or constructed directly in Javascript. The array is used
281
+ * in place and becomes part of the constructed object. It is not cloned.
282
+ * If no data is provided, the constructed object will be empty, but still
283
+ * valid.
284
+ * @extends {jspb.Message}
285
+ * @constructor
286
+ */
287
+ proto.Platform.LocalAccountProto.UpdateExpiredAt = function(opt_data) {
288
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
289
+ };
290
+ goog.inherits(proto.Platform.LocalAccountProto.UpdateExpiredAt, jspb.Message);
291
+ if (goog.DEBUG && !COMPILED) {
292
+ /**
293
+ * @public
294
+ * @override
295
+ */
296
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.displayName = 'proto.Platform.LocalAccountProto.UpdateExpiredAt';
297
+ }
230
298
 
231
299
 
232
300
 
@@ -266,7 +334,9 @@ proto.Platform.LocalAccountProto.toObject = function(includeInstance, msg) {
266
334
  firstName: jspb.Message.getFieldWithDefault(msg, 5, ""),
267
335
  locale: jspb.Message.getFieldWithDefault(msg, 6, ""),
268
336
  company: jspb.Message.getFieldWithDefault(msg, 7, ""),
269
- groupId: jspb.Message.getFieldWithDefault(msg, 8, "")
337
+ groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
338
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
339
+ expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
270
340
  };
271
341
 
272
342
  if (includeInstance) {
@@ -335,6 +405,15 @@ proto.Platform.LocalAccountProto.deserializeBinaryFromReader = function(msg, rea
335
405
  var value = /** @type {string} */ (reader.readString());
336
406
  msg.setGroupId(value);
337
407
  break;
408
+ case 9:
409
+ var value = /** @type {boolean} */ (reader.readBool());
410
+ msg.setEnabled(value);
411
+ break;
412
+ case 10:
413
+ var value = new google_protobuf_timestamp_pb.Timestamp;
414
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
415
+ msg.setExpiredAt(value);
416
+ break;
338
417
  default:
339
418
  reader.skipField();
340
419
  break;
@@ -420,6 +499,21 @@ proto.Platform.LocalAccountProto.serializeBinaryToWriter = function(message, wri
420
499
  f
421
500
  );
422
501
  }
502
+ f = message.getEnabled();
503
+ if (f) {
504
+ writer.writeBool(
505
+ 9,
506
+ f
507
+ );
508
+ }
509
+ f = message.getExpiredAt();
510
+ if (f != null) {
511
+ writer.writeMessage(
512
+ 10,
513
+ f,
514
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
515
+ );
516
+ }
423
517
  };
424
518
 
425
519
 
@@ -2225,6 +2319,447 @@ proto.Platform.LocalAccountProto.RemoveClientRequest.prototype.setClientId = fun
2225
2319
  };
2226
2320
 
2227
2321
 
2322
+
2323
+
2324
+
2325
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2326
+ /**
2327
+ * Creates an object representation of this proto.
2328
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2329
+ * Optional fields that are not set will be set to undefined.
2330
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2331
+ * For the list of reserved names please see:
2332
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2333
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2334
+ * JSPB instance for transitional soy proto support:
2335
+ * http://goto/soy-param-migration
2336
+ * @return {!Object}
2337
+ */
2338
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.toObject = function(opt_includeInstance) {
2339
+ return proto.Platform.LocalAccountProto.EnableAccount.toObject(opt_includeInstance, this);
2340
+ };
2341
+
2342
+
2343
+ /**
2344
+ * Static version of the {@see toObject} method.
2345
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2346
+ * the JSPB instance for transitional soy proto support:
2347
+ * http://goto/soy-param-migration
2348
+ * @param {!proto.Platform.LocalAccountProto.EnableAccount} msg The msg instance to transform.
2349
+ * @return {!Object}
2350
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2351
+ */
2352
+ proto.Platform.LocalAccountProto.EnableAccount.toObject = function(includeInstance, msg) {
2353
+ var f, obj = {
2354
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2355
+ };
2356
+
2357
+ if (includeInstance) {
2358
+ obj.$jspbMessageInstance = msg;
2359
+ }
2360
+ return obj;
2361
+ };
2362
+ }
2363
+
2364
+
2365
+ /**
2366
+ * Deserializes binary data (in protobuf wire format).
2367
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2368
+ * @return {!proto.Platform.LocalAccountProto.EnableAccount}
2369
+ */
2370
+ proto.Platform.LocalAccountProto.EnableAccount.deserializeBinary = function(bytes) {
2371
+ var reader = new jspb.BinaryReader(bytes);
2372
+ var msg = new proto.Platform.LocalAccountProto.EnableAccount;
2373
+ return proto.Platform.LocalAccountProto.EnableAccount.deserializeBinaryFromReader(msg, reader);
2374
+ };
2375
+
2376
+
2377
+ /**
2378
+ * Deserializes binary data (in protobuf wire format) from the
2379
+ * given reader into the given message object.
2380
+ * @param {!proto.Platform.LocalAccountProto.EnableAccount} msg The message object to deserialize into.
2381
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2382
+ * @return {!proto.Platform.LocalAccountProto.EnableAccount}
2383
+ */
2384
+ proto.Platform.LocalAccountProto.EnableAccount.deserializeBinaryFromReader = function(msg, reader) {
2385
+ while (reader.nextField()) {
2386
+ if (reader.isEndGroup()) {
2387
+ break;
2388
+ }
2389
+ var field = reader.getFieldNumber();
2390
+ switch (field) {
2391
+ case 1:
2392
+ var value = /** @type {number} */ (reader.readInt64());
2393
+ msg.setId(value);
2394
+ break;
2395
+ default:
2396
+ reader.skipField();
2397
+ break;
2398
+ }
2399
+ }
2400
+ return msg;
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * Serializes the message to binary data (in protobuf wire format).
2406
+ * @return {!Uint8Array}
2407
+ */
2408
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.serializeBinary = function() {
2409
+ var writer = new jspb.BinaryWriter();
2410
+ proto.Platform.LocalAccountProto.EnableAccount.serializeBinaryToWriter(this, writer);
2411
+ return writer.getResultBuffer();
2412
+ };
2413
+
2414
+
2415
+ /**
2416
+ * Serializes the given message to binary data (in protobuf wire
2417
+ * format), writing to the given BinaryWriter.
2418
+ * @param {!proto.Platform.LocalAccountProto.EnableAccount} message
2419
+ * @param {!jspb.BinaryWriter} writer
2420
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2421
+ */
2422
+ proto.Platform.LocalAccountProto.EnableAccount.serializeBinaryToWriter = function(message, writer) {
2423
+ var f = undefined;
2424
+ f = message.getId();
2425
+ if (f !== 0) {
2426
+ writer.writeInt64(
2427
+ 1,
2428
+ f
2429
+ );
2430
+ }
2431
+ };
2432
+
2433
+
2434
+ /**
2435
+ * optional int64 id = 1;
2436
+ * @return {number}
2437
+ */
2438
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.getId = function() {
2439
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2440
+ };
2441
+
2442
+
2443
+ /**
2444
+ * @param {number} value
2445
+ * @return {!proto.Platform.LocalAccountProto.EnableAccount} returns this
2446
+ */
2447
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.setId = function(value) {
2448
+ return jspb.Message.setProto3IntField(this, 1, value);
2449
+ };
2450
+
2451
+
2452
+
2453
+
2454
+
2455
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2456
+ /**
2457
+ * Creates an object representation of this proto.
2458
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2459
+ * Optional fields that are not set will be set to undefined.
2460
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2461
+ * For the list of reserved names please see:
2462
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2463
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2464
+ * JSPB instance for transitional soy proto support:
2465
+ * http://goto/soy-param-migration
2466
+ * @return {!Object}
2467
+ */
2468
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.toObject = function(opt_includeInstance) {
2469
+ return proto.Platform.LocalAccountProto.DisableAccount.toObject(opt_includeInstance, this);
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Static version of the {@see toObject} method.
2475
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2476
+ * the JSPB instance for transitional soy proto support:
2477
+ * http://goto/soy-param-migration
2478
+ * @param {!proto.Platform.LocalAccountProto.DisableAccount} msg The msg instance to transform.
2479
+ * @return {!Object}
2480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2481
+ */
2482
+ proto.Platform.LocalAccountProto.DisableAccount.toObject = function(includeInstance, msg) {
2483
+ var f, obj = {
2484
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2485
+ };
2486
+
2487
+ if (includeInstance) {
2488
+ obj.$jspbMessageInstance = msg;
2489
+ }
2490
+ return obj;
2491
+ };
2492
+ }
2493
+
2494
+
2495
+ /**
2496
+ * Deserializes binary data (in protobuf wire format).
2497
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2498
+ * @return {!proto.Platform.LocalAccountProto.DisableAccount}
2499
+ */
2500
+ proto.Platform.LocalAccountProto.DisableAccount.deserializeBinary = function(bytes) {
2501
+ var reader = new jspb.BinaryReader(bytes);
2502
+ var msg = new proto.Platform.LocalAccountProto.DisableAccount;
2503
+ return proto.Platform.LocalAccountProto.DisableAccount.deserializeBinaryFromReader(msg, reader);
2504
+ };
2505
+
2506
+
2507
+ /**
2508
+ * Deserializes binary data (in protobuf wire format) from the
2509
+ * given reader into the given message object.
2510
+ * @param {!proto.Platform.LocalAccountProto.DisableAccount} msg The message object to deserialize into.
2511
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2512
+ * @return {!proto.Platform.LocalAccountProto.DisableAccount}
2513
+ */
2514
+ proto.Platform.LocalAccountProto.DisableAccount.deserializeBinaryFromReader = function(msg, reader) {
2515
+ while (reader.nextField()) {
2516
+ if (reader.isEndGroup()) {
2517
+ break;
2518
+ }
2519
+ var field = reader.getFieldNumber();
2520
+ switch (field) {
2521
+ case 1:
2522
+ var value = /** @type {number} */ (reader.readInt64());
2523
+ msg.setId(value);
2524
+ break;
2525
+ default:
2526
+ reader.skipField();
2527
+ break;
2528
+ }
2529
+ }
2530
+ return msg;
2531
+ };
2532
+
2533
+
2534
+ /**
2535
+ * Serializes the message to binary data (in protobuf wire format).
2536
+ * @return {!Uint8Array}
2537
+ */
2538
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.serializeBinary = function() {
2539
+ var writer = new jspb.BinaryWriter();
2540
+ proto.Platform.LocalAccountProto.DisableAccount.serializeBinaryToWriter(this, writer);
2541
+ return writer.getResultBuffer();
2542
+ };
2543
+
2544
+
2545
+ /**
2546
+ * Serializes the given message to binary data (in protobuf wire
2547
+ * format), writing to the given BinaryWriter.
2548
+ * @param {!proto.Platform.LocalAccountProto.DisableAccount} message
2549
+ * @param {!jspb.BinaryWriter} writer
2550
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2551
+ */
2552
+ proto.Platform.LocalAccountProto.DisableAccount.serializeBinaryToWriter = function(message, writer) {
2553
+ var f = undefined;
2554
+ f = message.getId();
2555
+ if (f !== 0) {
2556
+ writer.writeInt64(
2557
+ 1,
2558
+ f
2559
+ );
2560
+ }
2561
+ };
2562
+
2563
+
2564
+ /**
2565
+ * optional int64 id = 1;
2566
+ * @return {number}
2567
+ */
2568
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.getId = function() {
2569
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2570
+ };
2571
+
2572
+
2573
+ /**
2574
+ * @param {number} value
2575
+ * @return {!proto.Platform.LocalAccountProto.DisableAccount} returns this
2576
+ */
2577
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.setId = function(value) {
2578
+ return jspb.Message.setProto3IntField(this, 1, value);
2579
+ };
2580
+
2581
+
2582
+
2583
+
2584
+
2585
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2586
+ /**
2587
+ * Creates an object representation of this proto.
2588
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2589
+ * Optional fields that are not set will be set to undefined.
2590
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2591
+ * For the list of reserved names please see:
2592
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2593
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2594
+ * JSPB instance for transitional soy proto support:
2595
+ * http://goto/soy-param-migration
2596
+ * @return {!Object}
2597
+ */
2598
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.toObject = function(opt_includeInstance) {
2599
+ return proto.Platform.LocalAccountProto.UpdateExpiredAt.toObject(opt_includeInstance, this);
2600
+ };
2601
+
2602
+
2603
+ /**
2604
+ * Static version of the {@see toObject} method.
2605
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2606
+ * the JSPB instance for transitional soy proto support:
2607
+ * http://goto/soy-param-migration
2608
+ * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} msg The msg instance to transform.
2609
+ * @return {!Object}
2610
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2611
+ */
2612
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.toObject = function(includeInstance, msg) {
2613
+ var f, obj = {
2614
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2615
+ expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2616
+ };
2617
+
2618
+ if (includeInstance) {
2619
+ obj.$jspbMessageInstance = msg;
2620
+ }
2621
+ return obj;
2622
+ };
2623
+ }
2624
+
2625
+
2626
+ /**
2627
+ * Deserializes binary data (in protobuf wire format).
2628
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2629
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt}
2630
+ */
2631
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinary = function(bytes) {
2632
+ var reader = new jspb.BinaryReader(bytes);
2633
+ var msg = new proto.Platform.LocalAccountProto.UpdateExpiredAt;
2634
+ return proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinaryFromReader(msg, reader);
2635
+ };
2636
+
2637
+
2638
+ /**
2639
+ * Deserializes binary data (in protobuf wire format) from the
2640
+ * given reader into the given message object.
2641
+ * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} msg The message object to deserialize into.
2642
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2643
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt}
2644
+ */
2645
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinaryFromReader = function(msg, reader) {
2646
+ while (reader.nextField()) {
2647
+ if (reader.isEndGroup()) {
2648
+ break;
2649
+ }
2650
+ var field = reader.getFieldNumber();
2651
+ switch (field) {
2652
+ case 1:
2653
+ var value = /** @type {number} */ (reader.readInt64());
2654
+ msg.setId(value);
2655
+ break;
2656
+ case 2:
2657
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2658
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2659
+ msg.setExpiredAt(value);
2660
+ break;
2661
+ default:
2662
+ reader.skipField();
2663
+ break;
2664
+ }
2665
+ }
2666
+ return msg;
2667
+ };
2668
+
2669
+
2670
+ /**
2671
+ * Serializes the message to binary data (in protobuf wire format).
2672
+ * @return {!Uint8Array}
2673
+ */
2674
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.serializeBinary = function() {
2675
+ var writer = new jspb.BinaryWriter();
2676
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.serializeBinaryToWriter(this, writer);
2677
+ return writer.getResultBuffer();
2678
+ };
2679
+
2680
+
2681
+ /**
2682
+ * Serializes the given message to binary data (in protobuf wire
2683
+ * format), writing to the given BinaryWriter.
2684
+ * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} message
2685
+ * @param {!jspb.BinaryWriter} writer
2686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2687
+ */
2688
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.serializeBinaryToWriter = function(message, writer) {
2689
+ var f = undefined;
2690
+ f = message.getId();
2691
+ if (f !== 0) {
2692
+ writer.writeInt64(
2693
+ 1,
2694
+ f
2695
+ );
2696
+ }
2697
+ f = message.getExpiredAt();
2698
+ if (f != null) {
2699
+ writer.writeMessage(
2700
+ 2,
2701
+ f,
2702
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2703
+ );
2704
+ }
2705
+ };
2706
+
2707
+
2708
+ /**
2709
+ * optional int64 id = 1;
2710
+ * @return {number}
2711
+ */
2712
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.getId = function() {
2713
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2714
+ };
2715
+
2716
+
2717
+ /**
2718
+ * @param {number} value
2719
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
2720
+ */
2721
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.setId = function(value) {
2722
+ return jspb.Message.setProto3IntField(this, 1, value);
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * optional google.protobuf.Timestamp expired_at = 2;
2728
+ * @return {?proto.google.protobuf.Timestamp}
2729
+ */
2730
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.getExpiredAt = function() {
2731
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2732
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
2733
+ };
2734
+
2735
+
2736
+ /**
2737
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2738
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
2739
+ */
2740
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.setExpiredAt = function(value) {
2741
+ return jspb.Message.setWrapperField(this, 2, value);
2742
+ };
2743
+
2744
+
2745
+ /**
2746
+ * Clears the message field making it undefined.
2747
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
2748
+ */
2749
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.clearExpiredAt = function() {
2750
+ return this.setExpiredAt(undefined);
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * Returns whether this field is set.
2756
+ * @return {boolean}
2757
+ */
2758
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.hasExpiredAt = function() {
2759
+ return jspb.Message.getField(this, 2) != null;
2760
+ };
2761
+
2762
+
2228
2763
  /**
2229
2764
  * optional int64 id = 1;
2230
2765
  * @return {number}
@@ -2369,4 +2904,59 @@ proto.Platform.LocalAccountProto.prototype.setGroupId = function(value) {
2369
2904
  };
2370
2905
 
2371
2906
 
2907
+ /**
2908
+ * optional bool enabled = 9;
2909
+ * @return {boolean}
2910
+ */
2911
+ proto.Platform.LocalAccountProto.prototype.getEnabled = function() {
2912
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
2913
+ };
2914
+
2915
+
2916
+ /**
2917
+ * @param {boolean} value
2918
+ * @return {!proto.Platform.LocalAccountProto} returns this
2919
+ */
2920
+ proto.Platform.LocalAccountProto.prototype.setEnabled = function(value) {
2921
+ return jspb.Message.setProto3BooleanField(this, 9, value);
2922
+ };
2923
+
2924
+
2925
+ /**
2926
+ * optional google.protobuf.Timestamp expired_at = 10;
2927
+ * @return {?proto.google.protobuf.Timestamp}
2928
+ */
2929
+ proto.Platform.LocalAccountProto.prototype.getExpiredAt = function() {
2930
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2931
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
2932
+ };
2933
+
2934
+
2935
+ /**
2936
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2937
+ * @return {!proto.Platform.LocalAccountProto} returns this
2938
+ */
2939
+ proto.Platform.LocalAccountProto.prototype.setExpiredAt = function(value) {
2940
+ return jspb.Message.setWrapperField(this, 10, value);
2941
+ };
2942
+
2943
+
2944
+ /**
2945
+ * Clears the message field making it undefined.
2946
+ * @return {!proto.Platform.LocalAccountProto} returns this
2947
+ */
2948
+ proto.Platform.LocalAccountProto.prototype.clearExpiredAt = function() {
2949
+ return this.setExpiredAt(undefined);
2950
+ };
2951
+
2952
+
2953
+ /**
2954
+ * Returns whether this field is set.
2955
+ * @return {boolean}
2956
+ */
2957
+ proto.Platform.LocalAccountProto.prototype.hasExpiredAt = function() {
2958
+ return jspb.Message.getField(this, 10) != null;
2959
+ };
2960
+
2961
+
2372
2962
  goog.object.extend(exports, proto.Platform);
@@ -96,6 +96,33 @@ type LocalAccountGRPCChangePassword = {
96
96
  readonly responseType: typeof auth_account_pb.AccountProto.ChangePasswordReply;
97
97
  };
98
98
 
99
+ type LocalAccountGRPCEnableAccount = {
100
+ readonly methodName: string;
101
+ readonly service: typeof LocalAccountGRPC;
102
+ readonly requestStream: false;
103
+ readonly responseStream: false;
104
+ readonly requestType: typeof platform_local_account_pb.LocalAccountProto.EnableAccount;
105
+ readonly responseType: typeof platform_local_account_pb.LocalAccountProto;
106
+ };
107
+
108
+ type LocalAccountGRPCDisableAccount = {
109
+ readonly methodName: string;
110
+ readonly service: typeof LocalAccountGRPC;
111
+ readonly requestStream: false;
112
+ readonly responseStream: false;
113
+ readonly requestType: typeof platform_local_account_pb.LocalAccountProto.DisableAccount;
114
+ readonly responseType: typeof platform_local_account_pb.LocalAccountProto;
115
+ };
116
+
117
+ type LocalAccountGRPCUpdateExpiredAt = {
118
+ readonly methodName: string;
119
+ readonly service: typeof LocalAccountGRPC;
120
+ readonly requestStream: false;
121
+ readonly responseStream: false;
122
+ readonly requestType: typeof platform_local_account_pb.LocalAccountProto.UpdateExpiredAt;
123
+ readonly responseType: typeof platform_local_account_pb.LocalAccountProto;
124
+ };
125
+
99
126
  type LocalAccountGRPCSetSystemAdminClient = {
100
127
  readonly methodName: string;
101
128
  readonly service: typeof LocalAccountGRPC;
@@ -135,6 +162,9 @@ export class LocalAccountGRPC {
135
162
  static readonly ActivateAccount: LocalAccountGRPCActivateAccount;
136
163
  static readonly ForgotPassword: LocalAccountGRPCForgotPassword;
137
164
  static readonly ChangePassword: LocalAccountGRPCChangePassword;
165
+ static readonly EnableAccount: LocalAccountGRPCEnableAccount;
166
+ static readonly DisableAccount: LocalAccountGRPCDisableAccount;
167
+ static readonly UpdateExpiredAt: LocalAccountGRPCUpdateExpiredAt;
138
168
  static readonly SetSystemAdminClient: LocalAccountGRPCSetSystemAdminClient;
139
169
  static readonly AddClient: LocalAccountGRPCAddClient;
140
170
  static readonly RemoveClient: LocalAccountGRPCRemoveClient;
@@ -262,6 +292,33 @@ export class LocalAccountGRPCClient {
262
292
  requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
263
293
  callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
264
294
  ): UnaryResponse;
295
+ enableAccount(
296
+ requestMessage: platform_local_account_pb.LocalAccountProto.EnableAccount,
297
+ metadata: grpc.Metadata,
298
+ callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
299
+ ): UnaryResponse;
300
+ enableAccount(
301
+ requestMessage: platform_local_account_pb.LocalAccountProto.EnableAccount,
302
+ callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
303
+ ): UnaryResponse;
304
+ disableAccount(
305
+ requestMessage: platform_local_account_pb.LocalAccountProto.DisableAccount,
306
+ metadata: grpc.Metadata,
307
+ callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
308
+ ): UnaryResponse;
309
+ disableAccount(
310
+ requestMessage: platform_local_account_pb.LocalAccountProto.DisableAccount,
311
+ callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
312
+ ): UnaryResponse;
313
+ updateExpiredAt(
314
+ requestMessage: platform_local_account_pb.LocalAccountProto.UpdateExpiredAt,
315
+ metadata: grpc.Metadata,
316
+ callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
317
+ ): UnaryResponse;
318
+ updateExpiredAt(
319
+ requestMessage: platform_local_account_pb.LocalAccountProto.UpdateExpiredAt,
320
+ callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
321
+ ): UnaryResponse;
265
322
  setSystemAdminClient(
266
323
  requestMessage: platform_local_account_pb.LocalAccountProto.SetClientRequest,
267
324
  metadata: grpc.Metadata,
@@ -102,6 +102,33 @@ LocalAccountGRPC.ChangePassword = {
102
102
  responseType: auth_account_pb.AccountProto.ChangePasswordReply
103
103
  };
104
104
 
105
+ LocalAccountGRPC.EnableAccount = {
106
+ methodName: "EnableAccount",
107
+ service: LocalAccountGRPC,
108
+ requestStream: false,
109
+ responseStream: false,
110
+ requestType: platform_local_account_pb.LocalAccountProto.EnableAccount,
111
+ responseType: platform_local_account_pb.LocalAccountProto
112
+ };
113
+
114
+ LocalAccountGRPC.DisableAccount = {
115
+ methodName: "DisableAccount",
116
+ service: LocalAccountGRPC,
117
+ requestStream: false,
118
+ responseStream: false,
119
+ requestType: platform_local_account_pb.LocalAccountProto.DisableAccount,
120
+ responseType: platform_local_account_pb.LocalAccountProto
121
+ };
122
+
123
+ LocalAccountGRPC.UpdateExpiredAt = {
124
+ methodName: "UpdateExpiredAt",
125
+ service: LocalAccountGRPC,
126
+ requestStream: false,
127
+ responseStream: false,
128
+ requestType: platform_local_account_pb.LocalAccountProto.UpdateExpiredAt,
129
+ responseType: platform_local_account_pb.LocalAccountProto
130
+ };
131
+
105
132
  LocalAccountGRPC.SetSystemAdminClient = {
106
133
  methodName: "SetSystemAdminClient",
107
134
  service: LocalAccountGRPC,
@@ -446,6 +473,99 @@ LocalAccountGRPCClient.prototype.changePassword = function changePassword(reques
446
473
  };
447
474
  };
448
475
 
476
+ LocalAccountGRPCClient.prototype.enableAccount = function enableAccount(requestMessage, metadata, callback) {
477
+ if (arguments.length === 2) {
478
+ callback = arguments[1];
479
+ }
480
+ var client = grpc.unary(LocalAccountGRPC.EnableAccount, {
481
+ request: requestMessage,
482
+ host: this.serviceHost,
483
+ metadata: metadata,
484
+ transport: this.options.transport,
485
+ debug: this.options.debug,
486
+ onEnd: function (response) {
487
+ if (callback) {
488
+ if (response.status !== grpc.Code.OK) {
489
+ var err = new Error(response.statusMessage);
490
+ err.code = response.status;
491
+ err.metadata = response.trailers;
492
+ callback(err, null);
493
+ } else {
494
+ callback(null, response.message);
495
+ }
496
+ }
497
+ }
498
+ });
499
+ return {
500
+ cancel: function () {
501
+ callback = null;
502
+ client.close();
503
+ }
504
+ };
505
+ };
506
+
507
+ LocalAccountGRPCClient.prototype.disableAccount = function disableAccount(requestMessage, metadata, callback) {
508
+ if (arguments.length === 2) {
509
+ callback = arguments[1];
510
+ }
511
+ var client = grpc.unary(LocalAccountGRPC.DisableAccount, {
512
+ request: requestMessage,
513
+ host: this.serviceHost,
514
+ metadata: metadata,
515
+ transport: this.options.transport,
516
+ debug: this.options.debug,
517
+ onEnd: function (response) {
518
+ if (callback) {
519
+ if (response.status !== grpc.Code.OK) {
520
+ var err = new Error(response.statusMessage);
521
+ err.code = response.status;
522
+ err.metadata = response.trailers;
523
+ callback(err, null);
524
+ } else {
525
+ callback(null, response.message);
526
+ }
527
+ }
528
+ }
529
+ });
530
+ return {
531
+ cancel: function () {
532
+ callback = null;
533
+ client.close();
534
+ }
535
+ };
536
+ };
537
+
538
+ LocalAccountGRPCClient.prototype.updateExpiredAt = function updateExpiredAt(requestMessage, metadata, callback) {
539
+ if (arguments.length === 2) {
540
+ callback = arguments[1];
541
+ }
542
+ var client = grpc.unary(LocalAccountGRPC.UpdateExpiredAt, {
543
+ request: requestMessage,
544
+ host: this.serviceHost,
545
+ metadata: metadata,
546
+ transport: this.options.transport,
547
+ debug: this.options.debug,
548
+ onEnd: function (response) {
549
+ if (callback) {
550
+ if (response.status !== grpc.Code.OK) {
551
+ var err = new Error(response.statusMessage);
552
+ err.code = response.status;
553
+ err.metadata = response.trailers;
554
+ callback(err, null);
555
+ } else {
556
+ callback(null, response.message);
557
+ }
558
+ }
559
+ }
560
+ });
561
+ return {
562
+ cancel: function () {
563
+ callback = null;
564
+ client.close();
565
+ }
566
+ };
567
+ };
568
+
449
569
  LocalAccountGRPCClient.prototype.setSystemAdminClient = function setSystemAdminClient(requestMessage, metadata, callback) {
450
570
  if (arguments.length === 2) {
451
571
  callback = arguments[1];