@sniipwebmaster/user-service-client-grpcweb-ts 23.10.10318 → 23.10.10336

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.
@@ -4039,6 +4039,49 @@ export class SniipUserServiceServiceClient {
4039
4039
  this.methodDescriptorSendVerificationEmail);
4040
4040
  }
4041
4041
 
4042
+ methodDescriptorSendVerificationCode = new grpcWeb.MethodDescriptor(
4043
+ '/sniipuserservice.SniipUserServiceService/SendVerificationCode',
4044
+ grpcWeb.MethodType.UNARY,
4045
+ google_protobuf_empty_pb.Empty,
4046
+ service_pb.ResponseCode,
4047
+ (request: google_protobuf_empty_pb.Empty) => {
4048
+ return request.serializeBinary();
4049
+ },
4050
+ service_pb.ResponseCode.deserializeBinary
4051
+ );
4052
+
4053
+ sendVerificationCode(
4054
+ request: google_protobuf_empty_pb.Empty,
4055
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
4056
+
4057
+ sendVerificationCode(
4058
+ request: google_protobuf_empty_pb.Empty,
4059
+ metadata: grpcWeb.Metadata | null,
4060
+ callback: (err: grpcWeb.RpcError,
4061
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
4062
+
4063
+ sendVerificationCode(
4064
+ request: google_protobuf_empty_pb.Empty,
4065
+ metadata: grpcWeb.Metadata | null,
4066
+ callback?: (err: grpcWeb.RpcError,
4067
+ response: service_pb.ResponseCode) => void) {
4068
+ if (callback !== undefined) {
4069
+ return this.client_.rpcCall(
4070
+ this.hostname_ +
4071
+ '/sniipuserservice.SniipUserServiceService/SendVerificationCode',
4072
+ request,
4073
+ metadata || {},
4074
+ this.methodDescriptorSendVerificationCode,
4075
+ callback);
4076
+ }
4077
+ return this.client_.unaryCall(
4078
+ this.hostname_ +
4079
+ '/sniipuserservice.SniipUserServiceService/SendVerificationCode',
4080
+ request,
4081
+ metadata || {},
4082
+ this.methodDescriptorSendVerificationCode);
4083
+ }
4084
+
4042
4085
  methodDescriptorSetPasswordEmail = new grpcWeb.MethodDescriptor(
4043
4086
  '/sniipuserservice.SniipUserServiceService/SetPasswordEmail',
4044
4087
  grpcWeb.MethodType.UNARY,
@@ -4555,6 +4598,49 @@ export class SniipUserServiceServiceClient {
4555
4598
  this.methodDescriptorUpdateEmailV2);
4556
4599
  }
4557
4600
 
4601
+ methodDescriptorUpdateEmailV3 = new grpcWeb.MethodDescriptor(
4602
+ '/sniipuserservice.SniipUserServiceService/UpdateEmailV3',
4603
+ grpcWeb.MethodType.UNARY,
4604
+ service_pb.UpdateEmailV3Request,
4605
+ service_pb.UserProfile,
4606
+ (request: service_pb.UpdateEmailV3Request) => {
4607
+ return request.serializeBinary();
4608
+ },
4609
+ service_pb.UserProfile.deserializeBinary
4610
+ );
4611
+
4612
+ updateEmailV3(
4613
+ request: service_pb.UpdateEmailV3Request,
4614
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.UserProfile>;
4615
+
4616
+ updateEmailV3(
4617
+ request: service_pb.UpdateEmailV3Request,
4618
+ metadata: grpcWeb.Metadata | null,
4619
+ callback: (err: grpcWeb.RpcError,
4620
+ response: service_pb.UserProfile) => void): grpcWeb.ClientReadableStream<service_pb.UserProfile>;
4621
+
4622
+ updateEmailV3(
4623
+ request: service_pb.UpdateEmailV3Request,
4624
+ metadata: grpcWeb.Metadata | null,
4625
+ callback?: (err: grpcWeb.RpcError,
4626
+ response: service_pb.UserProfile) => void) {
4627
+ if (callback !== undefined) {
4628
+ return this.client_.rpcCall(
4629
+ this.hostname_ +
4630
+ '/sniipuserservice.SniipUserServiceService/UpdateEmailV3',
4631
+ request,
4632
+ metadata || {},
4633
+ this.methodDescriptorUpdateEmailV3,
4634
+ callback);
4635
+ }
4636
+ return this.client_.unaryCall(
4637
+ this.hostname_ +
4638
+ '/sniipuserservice.SniipUserServiceService/UpdateEmailV3',
4639
+ request,
4640
+ metadata || {},
4641
+ this.methodDescriptorUpdateEmailV3);
4642
+ }
4643
+
4558
4644
  methodDescriptorUpdateKycUserStatusForTest = new grpcWeb.MethodDescriptor(
4559
4645
  '/sniipuserservice.SniipUserServiceService/UpdateKycUserStatusForTest',
4560
4646
  grpcWeb.MethodType.UNARY,
@@ -4354,6 +4354,28 @@ export namespace UpdateEmailV2Request {
4354
4354
  }
4355
4355
  }
4356
4356
 
4357
+ export class UpdateEmailV3Request extends jspb.Message {
4358
+ getEmail(): string;
4359
+ setEmail(value: string): UpdateEmailV3Request;
4360
+
4361
+ getVerificationcode(): string;
4362
+ setVerificationcode(value: string): UpdateEmailV3Request;
4363
+
4364
+ serializeBinary(): Uint8Array;
4365
+ toObject(includeInstance?: boolean): UpdateEmailV3Request.AsObject;
4366
+ static toObject(includeInstance: boolean, msg: UpdateEmailV3Request): UpdateEmailV3Request.AsObject;
4367
+ static serializeBinaryToWriter(message: UpdateEmailV3Request, writer: jspb.BinaryWriter): void;
4368
+ static deserializeBinary(bytes: Uint8Array): UpdateEmailV3Request;
4369
+ static deserializeBinaryFromReader(message: UpdateEmailV3Request, reader: jspb.BinaryReader): UpdateEmailV3Request;
4370
+ }
4371
+
4372
+ export namespace UpdateEmailV3Request {
4373
+ export type AsObject = {
4374
+ email: string,
4375
+ verificationcode: string,
4376
+ }
4377
+ }
4378
+
4357
4379
  export class UpdateKycUserStatusForTestRequest extends jspb.Message {
4358
4380
  getData(): KycUserStatusUpdateRequest | undefined;
4359
4381
  setData(value?: KycUserStatusUpdateRequest): UpdateKycUserStatusForTestRequest;
@@ -171,6 +171,7 @@ goog.exportSymbol('proto.sniipuserservice.UpdateDobAppRequest', null, global);
171
171
  goog.exportSymbol('proto.sniipuserservice.UpdateDobRequest', null, global);
172
172
  goog.exportSymbol('proto.sniipuserservice.UpdateEmailRequest', null, global);
173
173
  goog.exportSymbol('proto.sniipuserservice.UpdateEmailV2Request', null, global);
174
+ goog.exportSymbol('proto.sniipuserservice.UpdateEmailV3Request', null, global);
174
175
  goog.exportSymbol('proto.sniipuserservice.UpdateKycUserStatusForTestRequest', null, global);
175
176
  goog.exportSymbol('proto.sniipuserservice.UpdateNameRequest', null, global);
176
177
  goog.exportSymbol('proto.sniipuserservice.UpdatePermissionRoleRequest', null, global);
@@ -3352,6 +3353,27 @@ if (goog.DEBUG && !COMPILED) {
3352
3353
  */
3353
3354
  proto.sniipuserservice.UpdateEmailV2Request.displayName = 'proto.sniipuserservice.UpdateEmailV2Request';
3354
3355
  }
3356
+ /**
3357
+ * Generated by JsPbCodeGenerator.
3358
+ * @param {Array=} opt_data Optional initial data array, typically from a
3359
+ * server response, or constructed directly in Javascript. The array is used
3360
+ * in place and becomes part of the constructed object. It is not cloned.
3361
+ * If no data is provided, the constructed object will be empty, but still
3362
+ * valid.
3363
+ * @extends {jspb.Message}
3364
+ * @constructor
3365
+ */
3366
+ proto.sniipuserservice.UpdateEmailV3Request = function(opt_data) {
3367
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3368
+ };
3369
+ goog.inherits(proto.sniipuserservice.UpdateEmailV3Request, jspb.Message);
3370
+ if (goog.DEBUG && !COMPILED) {
3371
+ /**
3372
+ * @public
3373
+ * @override
3374
+ */
3375
+ proto.sniipuserservice.UpdateEmailV3Request.displayName = 'proto.sniipuserservice.UpdateEmailV3Request';
3376
+ }
3355
3377
  /**
3356
3378
  * Generated by JsPbCodeGenerator.
3357
3379
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -36631,6 +36653,166 @@ proto.sniipuserservice.UpdateEmailV2Request.prototype.setPin = function(value) {
36631
36653
 
36632
36654
 
36633
36655
 
36656
+ if (jspb.Message.GENERATE_TO_OBJECT) {
36657
+ /**
36658
+ * Creates an object representation of this proto.
36659
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
36660
+ * Optional fields that are not set will be set to undefined.
36661
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
36662
+ * For the list of reserved names please see:
36663
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
36664
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
36665
+ * JSPB instance for transitional soy proto support:
36666
+ * http://goto/soy-param-migration
36667
+ * @return {!Object}
36668
+ */
36669
+ proto.sniipuserservice.UpdateEmailV3Request.prototype.toObject = function(opt_includeInstance) {
36670
+ return proto.sniipuserservice.UpdateEmailV3Request.toObject(opt_includeInstance, this);
36671
+ };
36672
+
36673
+
36674
+ /**
36675
+ * Static version of the {@see toObject} method.
36676
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36677
+ * the JSPB instance for transitional soy proto support:
36678
+ * http://goto/soy-param-migration
36679
+ * @param {!proto.sniipuserservice.UpdateEmailV3Request} msg The msg instance to transform.
36680
+ * @return {!Object}
36681
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36682
+ */
36683
+ proto.sniipuserservice.UpdateEmailV3Request.toObject = function(includeInstance, msg) {
36684
+ var f, obj = {
36685
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
36686
+ verificationcode: jspb.Message.getFieldWithDefault(msg, 2, "")
36687
+ };
36688
+
36689
+ if (includeInstance) {
36690
+ obj.$jspbMessageInstance = msg;
36691
+ }
36692
+ return obj;
36693
+ };
36694
+ }
36695
+
36696
+
36697
+ /**
36698
+ * Deserializes binary data (in protobuf wire format).
36699
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
36700
+ * @return {!proto.sniipuserservice.UpdateEmailV3Request}
36701
+ */
36702
+ proto.sniipuserservice.UpdateEmailV3Request.deserializeBinary = function(bytes) {
36703
+ var reader = new jspb.BinaryReader(bytes);
36704
+ var msg = new proto.sniipuserservice.UpdateEmailV3Request;
36705
+ return proto.sniipuserservice.UpdateEmailV3Request.deserializeBinaryFromReader(msg, reader);
36706
+ };
36707
+
36708
+
36709
+ /**
36710
+ * Deserializes binary data (in protobuf wire format) from the
36711
+ * given reader into the given message object.
36712
+ * @param {!proto.sniipuserservice.UpdateEmailV3Request} msg The message object to deserialize into.
36713
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36714
+ * @return {!proto.sniipuserservice.UpdateEmailV3Request}
36715
+ */
36716
+ proto.sniipuserservice.UpdateEmailV3Request.deserializeBinaryFromReader = function(msg, reader) {
36717
+ while (reader.nextField()) {
36718
+ if (reader.isEndGroup()) {
36719
+ break;
36720
+ }
36721
+ var field = reader.getFieldNumber();
36722
+ switch (field) {
36723
+ case 1:
36724
+ var value = /** @type {string} */ (reader.readString());
36725
+ msg.setEmail(value);
36726
+ break;
36727
+ case 2:
36728
+ var value = /** @type {string} */ (reader.readString());
36729
+ msg.setVerificationcode(value);
36730
+ break;
36731
+ default:
36732
+ reader.skipField();
36733
+ break;
36734
+ }
36735
+ }
36736
+ return msg;
36737
+ };
36738
+
36739
+
36740
+ /**
36741
+ * Serializes the message to binary data (in protobuf wire format).
36742
+ * @return {!Uint8Array}
36743
+ */
36744
+ proto.sniipuserservice.UpdateEmailV3Request.prototype.serializeBinary = function() {
36745
+ var writer = new jspb.BinaryWriter();
36746
+ proto.sniipuserservice.UpdateEmailV3Request.serializeBinaryToWriter(this, writer);
36747
+ return writer.getResultBuffer();
36748
+ };
36749
+
36750
+
36751
+ /**
36752
+ * Serializes the given message to binary data (in protobuf wire
36753
+ * format), writing to the given BinaryWriter.
36754
+ * @param {!proto.sniipuserservice.UpdateEmailV3Request} message
36755
+ * @param {!jspb.BinaryWriter} writer
36756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36757
+ */
36758
+ proto.sniipuserservice.UpdateEmailV3Request.serializeBinaryToWriter = function(message, writer) {
36759
+ var f = undefined;
36760
+ f = message.getEmail();
36761
+ if (f.length > 0) {
36762
+ writer.writeString(
36763
+ 1,
36764
+ f
36765
+ );
36766
+ }
36767
+ f = message.getVerificationcode();
36768
+ if (f.length > 0) {
36769
+ writer.writeString(
36770
+ 2,
36771
+ f
36772
+ );
36773
+ }
36774
+ };
36775
+
36776
+
36777
+ /**
36778
+ * optional string email = 1;
36779
+ * @return {string}
36780
+ */
36781
+ proto.sniipuserservice.UpdateEmailV3Request.prototype.getEmail = function() {
36782
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
36783
+ };
36784
+
36785
+
36786
+ /**
36787
+ * @param {string} value
36788
+ * @return {!proto.sniipuserservice.UpdateEmailV3Request} returns this
36789
+ */
36790
+ proto.sniipuserservice.UpdateEmailV3Request.prototype.setEmail = function(value) {
36791
+ return jspb.Message.setProto3StringField(this, 1, value);
36792
+ };
36793
+
36794
+
36795
+ /**
36796
+ * optional string verificationCode = 2;
36797
+ * @return {string}
36798
+ */
36799
+ proto.sniipuserservice.UpdateEmailV3Request.prototype.getVerificationcode = function() {
36800
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
36801
+ };
36802
+
36803
+
36804
+ /**
36805
+ * @param {string} value
36806
+ * @return {!proto.sniipuserservice.UpdateEmailV3Request} returns this
36807
+ */
36808
+ proto.sniipuserservice.UpdateEmailV3Request.prototype.setVerificationcode = function(value) {
36809
+ return jspb.Message.setProto3StringField(this, 2, value);
36810
+ };
36811
+
36812
+
36813
+
36814
+
36815
+
36634
36816
  if (jspb.Message.GENERATE_TO_OBJECT) {
36635
36817
  /**
36636
36818
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb-ts",
3
- "version": "23.10.10318",
3
+ "version": "23.10.10336",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",