@aceplus/smartace-api 2.13.0-alpha.7 → 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.7",
8
+ "version": "2.13.0-alpha.9",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -128,8 +128,8 @@ export namespace LocalAccountExtendedProto {
128
128
  getClientId(): number;
129
129
  setClientId(value: number): void;
130
130
 
131
- getGroupId(): number;
132
- setGroupId(value: number): void;
131
+ getGroupId(): string;
132
+ setGroupId(value: string): void;
133
133
 
134
134
  serializeBinary(): Uint8Array;
135
135
  toObject(includeInstance?: boolean): ClientGroupProto.AsObject;
@@ -144,7 +144,7 @@ export namespace LocalAccountExtendedProto {
144
144
  export namespace ClientGroupProto {
145
145
  export type AsObject = {
146
146
  clientId: number,
147
- groupId: number,
147
+ groupId: string,
148
148
  }
149
149
  }
150
150
  }
@@ -633,7 +633,7 @@ proto.Platform.LocalAccountExtendedProto.AddClientRequest.deserializeBinaryFromR
633
633
  msg.setAccount(value);
634
634
  break;
635
635
  case 2:
636
- var value = /** @type {number} */ (reader.readInt32());
636
+ var value = /** @type {number} */ (reader.readInt64());
637
637
  msg.setClientId(value);
638
638
  break;
639
639
  default:
@@ -675,7 +675,7 @@ proto.Platform.LocalAccountExtendedProto.AddClientRequest.serializeBinaryToWrite
675
675
  }
676
676
  f = message.getClientId();
677
677
  if (f !== 0) {
678
- writer.writeInt32(
678
+ writer.writeInt64(
679
679
  2,
680
680
  f
681
681
  );
@@ -721,7 +721,7 @@ proto.Platform.LocalAccountExtendedProto.AddClientRequest.prototype.hasAccount =
721
721
 
722
722
 
723
723
  /**
724
- * optional int32 client_id = 2;
724
+ * optional int64 client_id = 2;
725
725
  * @return {number}
726
726
  */
727
727
  proto.Platform.LocalAccountExtendedProto.AddClientRequest.prototype.getClientId = function() {
@@ -813,7 +813,7 @@ proto.Platform.LocalAccountExtendedProto.RemoveClientRequest.deserializeBinaryFr
813
813
  msg.setId(value);
814
814
  break;
815
815
  case 2:
816
- var value = /** @type {number} */ (reader.readInt32());
816
+ var value = /** @type {number} */ (reader.readInt64());
817
817
  msg.setClientId(value);
818
818
  break;
819
819
  default:
@@ -854,7 +854,7 @@ proto.Platform.LocalAccountExtendedProto.RemoveClientRequest.serializeBinaryToWr
854
854
  }
855
855
  f = message.getClientId();
856
856
  if (f !== 0) {
857
- writer.writeInt32(
857
+ writer.writeInt64(
858
858
  2,
859
859
  f
860
860
  );
@@ -881,7 +881,7 @@ proto.Platform.LocalAccountExtendedProto.RemoveClientRequest.prototype.setId = f
881
881
 
882
882
 
883
883
  /**
884
- * optional int32 client_id = 2;
884
+ * optional int64 client_id = 2;
885
885
  * @return {number}
886
886
  */
887
887
  proto.Platform.LocalAccountExtendedProto.RemoveClientRequest.prototype.getClientId = function() {
@@ -931,7 +931,7 @@ proto.Platform.LocalAccountExtendedProto.ClientGroupProto.prototype.toObject = f
931
931
  proto.Platform.LocalAccountExtendedProto.ClientGroupProto.toObject = function(includeInstance, msg) {
932
932
  var f, obj = {
933
933
  clientId: jspb.Message.getFieldWithDefault(msg, 1, 0),
934
- groupId: jspb.Message.getFieldWithDefault(msg, 2, 0)
934
+ groupId: jspb.Message.getFieldWithDefault(msg, 2, "")
935
935
  };
936
936
 
937
937
  if (includeInstance) {
@@ -969,11 +969,11 @@ proto.Platform.LocalAccountExtendedProto.ClientGroupProto.deserializeBinaryFromR
969
969
  var field = reader.getFieldNumber();
970
970
  switch (field) {
971
971
  case 1:
972
- var value = /** @type {number} */ (reader.readInt32());
972
+ var value = /** @type {number} */ (reader.readInt64());
973
973
  msg.setClientId(value);
974
974
  break;
975
975
  case 2:
976
- var value = /** @type {number} */ (reader.readInt32());
976
+ var value = /** @type {string} */ (reader.readString());
977
977
  msg.setGroupId(value);
978
978
  break;
979
979
  default:
@@ -1007,14 +1007,14 @@ proto.Platform.LocalAccountExtendedProto.ClientGroupProto.serializeBinaryToWrite
1007
1007
  var f = undefined;
1008
1008
  f = message.getClientId();
1009
1009
  if (f !== 0) {
1010
- writer.writeInt32(
1010
+ writer.writeInt64(
1011
1011
  1,
1012
1012
  f
1013
1013
  );
1014
1014
  }
1015
1015
  f = message.getGroupId();
1016
- if (f !== 0) {
1017
- writer.writeInt32(
1016
+ if (f.length > 0) {
1017
+ writer.writeString(
1018
1018
  2,
1019
1019
  f
1020
1020
  );
@@ -1023,7 +1023,7 @@ proto.Platform.LocalAccountExtendedProto.ClientGroupProto.serializeBinaryToWrite
1023
1023
 
1024
1024
 
1025
1025
  /**
1026
- * optional int32 client_id = 1;
1026
+ * optional int64 client_id = 1;
1027
1027
  * @return {number}
1028
1028
  */
1029
1029
  proto.Platform.LocalAccountExtendedProto.ClientGroupProto.prototype.getClientId = function() {
@@ -1041,20 +1041,20 @@ proto.Platform.LocalAccountExtendedProto.ClientGroupProto.prototype.setClientId
1041
1041
 
1042
1042
 
1043
1043
  /**
1044
- * optional int32 group_id = 2;
1045
- * @return {number}
1044
+ * optional string group_id = 2;
1045
+ * @return {string}
1046
1046
  */
1047
1047
  proto.Platform.LocalAccountExtendedProto.ClientGroupProto.prototype.getGroupId = function() {
1048
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1048
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1049
1049
  };
1050
1050
 
1051
1051
 
1052
1052
  /**
1053
- * @param {number} value
1053
+ * @param {string} value
1054
1054
  * @return {!proto.Platform.LocalAccountExtendedProto.ClientGroupProto} returns this
1055
1055
  */
1056
1056
  proto.Platform.LocalAccountExtendedProto.ClientGroupProto.prototype.setGroupId = function(value) {
1057
- return jspb.Message.setProto3IntField(this, 2, value);
1057
+ return jspb.Message.setProto3StringField(this, 2, value);
1058
1058
  };
1059
1059
 
1060
1060