@aceplus/smartace-api 2.13.0-alpha.8 → 2.13.0-alpha.9

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.
@@ -486,6 +486,26 @@ export namespace AccountProto {
486
486
  }
487
487
  }
488
488
 
489
+ export class DeleteFromClusterRequest extends jspb.Message {
490
+ getId(): number;
491
+ setId(value: number): void;
492
+
493
+ serializeBinary(): Uint8Array;
494
+ toObject(includeInstance?: boolean): DeleteFromClusterRequest.AsObject;
495
+ static toObject(includeInstance: boolean, msg: DeleteFromClusterRequest): DeleteFromClusterRequest.AsObject;
496
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
497
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
498
+ static serializeBinaryToWriter(message: DeleteFromClusterRequest, writer: jspb.BinaryWriter): void;
499
+ static deserializeBinary(bytes: Uint8Array): DeleteFromClusterRequest;
500
+ static deserializeBinaryFromReader(message: DeleteFromClusterRequest, reader: jspb.BinaryReader): DeleteFromClusterRequest;
501
+ }
502
+
503
+ export namespace DeleteFromClusterRequest {
504
+ export type AsObject = {
505
+ id: number,
506
+ }
507
+ }
508
+
489
509
  export class RetrieveAccountActivationStatusesRequest extends jspb.Message {
490
510
  clearIdsList(): void;
491
511
  getIdsList(): Array<number>;
@@ -38,6 +38,7 @@ goog.exportSymbol('proto.Auth.AccountProto.ChangePasswordReply', null, global);
38
38
  goog.exportSymbol('proto.Auth.AccountProto.ChangePasswordRequest', null, global);
39
39
  goog.exportSymbol('proto.Auth.AccountProto.CreateAdminRequest', null, global);
40
40
  goog.exportSymbol('proto.Auth.AccountProto.CreateAppRequest', null, global);
41
+ goog.exportSymbol('proto.Auth.AccountProto.DeleteFromClusterRequest', null, global);
41
42
  goog.exportSymbol('proto.Auth.AccountProto.DeleteReply', null, global);
42
43
  goog.exportSymbol('proto.Auth.AccountProto.DeleteRequest', null, global);
43
44
  goog.exportSymbol('proto.Auth.AccountProto.ForgotPasswordRequest', null, global);
@@ -409,6 +410,27 @@ if (goog.DEBUG && !COMPILED) {
409
410
  */
410
411
  proto.Auth.AccountProto.AccountClusterRoleRequest.displayName = 'proto.Auth.AccountProto.AccountClusterRoleRequest';
411
412
  }
413
+ /**
414
+ * Generated by JsPbCodeGenerator.
415
+ * @param {Array=} opt_data Optional initial data array, typically from a
416
+ * server response, or constructed directly in Javascript. The array is used
417
+ * in place and becomes part of the constructed object. It is not cloned.
418
+ * If no data is provided, the constructed object will be empty, but still
419
+ * valid.
420
+ * @extends {jspb.Message}
421
+ * @constructor
422
+ */
423
+ proto.Auth.AccountProto.DeleteFromClusterRequest = function(opt_data) {
424
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
425
+ };
426
+ goog.inherits(proto.Auth.AccountProto.DeleteFromClusterRequest, jspb.Message);
427
+ if (goog.DEBUG && !COMPILED) {
428
+ /**
429
+ * @public
430
+ * @override
431
+ */
432
+ proto.Auth.AccountProto.DeleteFromClusterRequest.displayName = 'proto.Auth.AccountProto.DeleteFromClusterRequest';
433
+ }
412
434
  /**
413
435
  * Generated by JsPbCodeGenerator.
414
436
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3655,6 +3677,136 @@ proto.Auth.AccountProto.AccountClusterRoleRequest.prototype.setRole = function(v
3655
3677
 
3656
3678
 
3657
3679
 
3680
+
3681
+
3682
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3683
+ /**
3684
+ * Creates an object representation of this proto.
3685
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3686
+ * Optional fields that are not set will be set to undefined.
3687
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3688
+ * For the list of reserved names please see:
3689
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3690
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3691
+ * JSPB instance for transitional soy proto support:
3692
+ * http://goto/soy-param-migration
3693
+ * @return {!Object}
3694
+ */
3695
+ proto.Auth.AccountProto.DeleteFromClusterRequest.prototype.toObject = function(opt_includeInstance) {
3696
+ return proto.Auth.AccountProto.DeleteFromClusterRequest.toObject(opt_includeInstance, this);
3697
+ };
3698
+
3699
+
3700
+ /**
3701
+ * Static version of the {@see toObject} method.
3702
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3703
+ * the JSPB instance for transitional soy proto support:
3704
+ * http://goto/soy-param-migration
3705
+ * @param {!proto.Auth.AccountProto.DeleteFromClusterRequest} msg The msg instance to transform.
3706
+ * @return {!Object}
3707
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3708
+ */
3709
+ proto.Auth.AccountProto.DeleteFromClusterRequest.toObject = function(includeInstance, msg) {
3710
+ var f, obj = {
3711
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
3712
+ };
3713
+
3714
+ if (includeInstance) {
3715
+ obj.$jspbMessageInstance = msg;
3716
+ }
3717
+ return obj;
3718
+ };
3719
+ }
3720
+
3721
+
3722
+ /**
3723
+ * Deserializes binary data (in protobuf wire format).
3724
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3725
+ * @return {!proto.Auth.AccountProto.DeleteFromClusterRequest}
3726
+ */
3727
+ proto.Auth.AccountProto.DeleteFromClusterRequest.deserializeBinary = function(bytes) {
3728
+ var reader = new jspb.BinaryReader(bytes);
3729
+ var msg = new proto.Auth.AccountProto.DeleteFromClusterRequest;
3730
+ return proto.Auth.AccountProto.DeleteFromClusterRequest.deserializeBinaryFromReader(msg, reader);
3731
+ };
3732
+
3733
+
3734
+ /**
3735
+ * Deserializes binary data (in protobuf wire format) from the
3736
+ * given reader into the given message object.
3737
+ * @param {!proto.Auth.AccountProto.DeleteFromClusterRequest} msg The message object to deserialize into.
3738
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3739
+ * @return {!proto.Auth.AccountProto.DeleteFromClusterRequest}
3740
+ */
3741
+ proto.Auth.AccountProto.DeleteFromClusterRequest.deserializeBinaryFromReader = function(msg, reader) {
3742
+ while (reader.nextField()) {
3743
+ if (reader.isEndGroup()) {
3744
+ break;
3745
+ }
3746
+ var field = reader.getFieldNumber();
3747
+ switch (field) {
3748
+ case 1:
3749
+ var value = /** @type {number} */ (reader.readInt64());
3750
+ msg.setId(value);
3751
+ break;
3752
+ default:
3753
+ reader.skipField();
3754
+ break;
3755
+ }
3756
+ }
3757
+ return msg;
3758
+ };
3759
+
3760
+
3761
+ /**
3762
+ * Serializes the message to binary data (in protobuf wire format).
3763
+ * @return {!Uint8Array}
3764
+ */
3765
+ proto.Auth.AccountProto.DeleteFromClusterRequest.prototype.serializeBinary = function() {
3766
+ var writer = new jspb.BinaryWriter();
3767
+ proto.Auth.AccountProto.DeleteFromClusterRequest.serializeBinaryToWriter(this, writer);
3768
+ return writer.getResultBuffer();
3769
+ };
3770
+
3771
+
3772
+ /**
3773
+ * Serializes the given message to binary data (in protobuf wire
3774
+ * format), writing to the given BinaryWriter.
3775
+ * @param {!proto.Auth.AccountProto.DeleteFromClusterRequest} message
3776
+ * @param {!jspb.BinaryWriter} writer
3777
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3778
+ */
3779
+ proto.Auth.AccountProto.DeleteFromClusterRequest.serializeBinaryToWriter = function(message, writer) {
3780
+ var f = undefined;
3781
+ f = message.getId();
3782
+ if (f !== 0) {
3783
+ writer.writeInt64(
3784
+ 1,
3785
+ f
3786
+ );
3787
+ }
3788
+ };
3789
+
3790
+
3791
+ /**
3792
+ * optional int64 id = 1;
3793
+ * @return {number}
3794
+ */
3795
+ proto.Auth.AccountProto.DeleteFromClusterRequest.prototype.getId = function() {
3796
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3797
+ };
3798
+
3799
+
3800
+ /**
3801
+ * @param {number} value
3802
+ * @return {!proto.Auth.AccountProto.DeleteFromClusterRequest} returns this
3803
+ */
3804
+ proto.Auth.AccountProto.DeleteFromClusterRequest.prototype.setId = function(value) {
3805
+ return jspb.Message.setProto3IntField(this, 1, value);
3806
+ };
3807
+
3808
+
3809
+
3658
3810
  /**
3659
3811
  * List of repeated fields within this message type.
3660
3812
  * @private {!Array<number>}
@@ -150,6 +150,15 @@ type ClusterAccountGRPCDeleteAccountClusterRole = {
150
150
  readonly responseType: typeof google_protobuf_empty_pb.Empty;
151
151
  };
152
152
 
153
+ type ClusterAccountGRPCDeleteAccountFromCluster = {
154
+ readonly methodName: string;
155
+ readonly service: typeof ClusterAccountGRPC;
156
+ readonly requestStream: false;
157
+ readonly responseStream: false;
158
+ readonly requestType: typeof auth_account_pb.AccountProto.DeleteFromClusterRequest;
159
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
160
+ };
161
+
153
162
  type ClusterAccountGRPCRetrieveActivationStatuses = {
154
163
  readonly methodName: string;
155
164
  readonly service: typeof ClusterAccountGRPC;
@@ -179,6 +188,7 @@ export class ClusterAccountGRPC {
179
188
  static readonly RetrievePushInfo: ClusterAccountGRPCRetrievePushInfo;
180
189
  static readonly SetAccountClusterRole: ClusterAccountGRPCSetAccountClusterRole;
181
190
  static readonly DeleteAccountClusterRole: ClusterAccountGRPCDeleteAccountClusterRole;
191
+ static readonly DeleteAccountFromCluster: ClusterAccountGRPCDeleteAccountFromCluster;
182
192
  static readonly RetrieveActivationStatuses: ClusterAccountGRPCRetrieveActivationStatuses;
183
193
  static readonly ResendAdminUserInvitation: ClusterAccountGRPCResendAdminUserInvitation;
184
194
  }
@@ -356,6 +366,15 @@ export class ClusterAccountGRPCClient {
356
366
  requestMessage: auth_account_pb.AccountProto.AccountClusterRoleRequest,
357
367
  callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
358
368
  ): UnaryResponse;
369
+ deleteAccountFromCluster(
370
+ requestMessage: auth_account_pb.AccountProto.DeleteFromClusterRequest,
371
+ metadata: grpc.Metadata,
372
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
373
+ ): UnaryResponse;
374
+ deleteAccountFromCluster(
375
+ requestMessage: auth_account_pb.AccountProto.DeleteFromClusterRequest,
376
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
377
+ ): UnaryResponse;
359
378
  retrieveActivationStatuses(
360
379
  requestMessage: auth_account_pb.AccountProto.RetrieveAccountActivationStatusesRequest,
361
380
  metadata: grpc.Metadata,
@@ -347,6 +347,15 @@ ClusterAccountGRPC.DeleteAccountClusterRole = {
347
347
  responseType: google_protobuf_empty_pb.Empty
348
348
  };
349
349
 
350
+ ClusterAccountGRPC.DeleteAccountFromCluster = {
351
+ methodName: "DeleteAccountFromCluster",
352
+ service: ClusterAccountGRPC,
353
+ requestStream: false,
354
+ responseStream: false,
355
+ requestType: auth_account_pb.AccountProto.DeleteFromClusterRequest,
356
+ responseType: google_protobuf_empty_pb.Empty
357
+ };
358
+
350
359
  ClusterAccountGRPC.RetrieveActivationStatuses = {
351
360
  methodName: "RetrieveActivationStatuses",
352
361
  service: ClusterAccountGRPC,
@@ -651,6 +660,37 @@ ClusterAccountGRPCClient.prototype.deleteAccountClusterRole = function deleteAcc
651
660
  };
652
661
  };
653
662
 
663
+ ClusterAccountGRPCClient.prototype.deleteAccountFromCluster = function deleteAccountFromCluster(requestMessage, metadata, callback) {
664
+ if (arguments.length === 2) {
665
+ callback = arguments[1];
666
+ }
667
+ var client = grpc.unary(ClusterAccountGRPC.DeleteAccountFromCluster, {
668
+ request: requestMessage,
669
+ host: this.serviceHost,
670
+ metadata: metadata,
671
+ transport: this.options.transport,
672
+ debug: this.options.debug,
673
+ onEnd: function (response) {
674
+ if (callback) {
675
+ if (response.status !== grpc.Code.OK) {
676
+ var err = new Error(response.statusMessage);
677
+ err.code = response.status;
678
+ err.metadata = response.trailers;
679
+ callback(err, null);
680
+ } else {
681
+ callback(null, response.message);
682
+ }
683
+ }
684
+ }
685
+ });
686
+ return {
687
+ cancel: function () {
688
+ callback = null;
689
+ client.close();
690
+ }
691
+ };
692
+ };
693
+
654
694
  ClusterAccountGRPCClient.prototype.retrieveActivationStatuses = function retrieveActivationStatuses(requestMessage, metadata, callback) {
655
695
  if (arguments.length === 2) {
656
696
  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.13.0-alpha.8",
8
+ "version": "2.13.0-alpha.9",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [