@sniipwebmaster/user-service-client-grpcweb-ts 24.14.11906 → 24.14.11930

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.
@@ -4985,6 +4985,49 @@ export class SniipUserServiceServiceClient {
4985
4985
  this.methodDescriptorUpdatePhone);
4986
4986
  }
4987
4987
 
4988
+ methodDescriptorUpdatePhoneV2 = new grpcWeb.MethodDescriptor(
4989
+ '/sniipuserservice.SniipUserServiceService/UpdatePhoneV2',
4990
+ grpcWeb.MethodType.UNARY,
4991
+ service_pb.UpdatePhoneRequestV2,
4992
+ service_pb.UserProfileResponse,
4993
+ (request: service_pb.UpdatePhoneRequestV2) => {
4994
+ return request.serializeBinary();
4995
+ },
4996
+ service_pb.UserProfileResponse.deserializeBinary
4997
+ );
4998
+
4999
+ updatePhoneV2(
5000
+ request: service_pb.UpdatePhoneRequestV2,
5001
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.UserProfileResponse>;
5002
+
5003
+ updatePhoneV2(
5004
+ request: service_pb.UpdatePhoneRequestV2,
5005
+ metadata: grpcWeb.Metadata | null,
5006
+ callback: (err: grpcWeb.RpcError,
5007
+ response: service_pb.UserProfileResponse) => void): grpcWeb.ClientReadableStream<service_pb.UserProfileResponse>;
5008
+
5009
+ updatePhoneV2(
5010
+ request: service_pb.UpdatePhoneRequestV2,
5011
+ metadata?: grpcWeb.Metadata | null,
5012
+ callback?: (err: grpcWeb.RpcError,
5013
+ response: service_pb.UserProfileResponse) => void) {
5014
+ if (callback !== undefined) {
5015
+ return this.client_.rpcCall(
5016
+ this.hostname_ +
5017
+ '/sniipuserservice.SniipUserServiceService/UpdatePhoneV2',
5018
+ request,
5019
+ metadata || {},
5020
+ this.methodDescriptorUpdatePhoneV2,
5021
+ callback);
5022
+ }
5023
+ return this.client_.unaryCall(
5024
+ this.hostname_ +
5025
+ '/sniipuserservice.SniipUserServiceService/UpdatePhoneV2',
5026
+ request,
5027
+ metadata || {},
5028
+ this.methodDescriptorUpdatePhoneV2);
5029
+ }
5030
+
4988
5031
  methodDescriptorUpdateUserStatus = new grpcWeb.MethodDescriptor(
4989
5032
  '/sniipuserservice.SniipUserServiceService/UpdateUserStatus',
4990
5033
  grpcWeb.MethodType.UNARY,
@@ -4666,6 +4666,72 @@ export namespace UpdatePhoneRequest {
4666
4666
  }
4667
4667
  }
4668
4668
 
4669
+ export class UpdatePhoneRequestV2 extends jspb.Message {
4670
+ getPassword(): string;
4671
+ setPassword(value: string): UpdatePhoneRequestV2;
4672
+
4673
+ getPhonenumber(): string;
4674
+ setPhonenumber(value: string): UpdatePhoneRequestV2;
4675
+
4676
+ getPin(): string;
4677
+ setPin(value: string): UpdatePhoneRequestV2;
4678
+
4679
+ getRegioncode(): string;
4680
+ setRegioncode(value: string): UpdatePhoneRequestV2;
4681
+
4682
+ getVerificationcodesList(): Array<VerificationCodeItem>;
4683
+ setVerificationcodesList(value: Array<VerificationCodeItem>): UpdatePhoneRequestV2;
4684
+ clearVerificationcodesList(): UpdatePhoneRequestV2;
4685
+ addVerificationcodes(value?: VerificationCodeItem, index?: number): VerificationCodeItem;
4686
+
4687
+ getVerificationcodeautopopulatedbysystem(): boolean;
4688
+ setVerificationcodeautopopulatedbysystem(value: boolean): UpdatePhoneRequestV2;
4689
+
4690
+ getAppaccounttype(): AppAccountType;
4691
+ setAppaccounttype(value: AppAccountType): UpdatePhoneRequestV2;
4692
+
4693
+ serializeBinary(): Uint8Array;
4694
+ toObject(includeInstance?: boolean): UpdatePhoneRequestV2.AsObject;
4695
+ static toObject(includeInstance: boolean, msg: UpdatePhoneRequestV2): UpdatePhoneRequestV2.AsObject;
4696
+ static serializeBinaryToWriter(message: UpdatePhoneRequestV2, writer: jspb.BinaryWriter): void;
4697
+ static deserializeBinary(bytes: Uint8Array): UpdatePhoneRequestV2;
4698
+ static deserializeBinaryFromReader(message: UpdatePhoneRequestV2, reader: jspb.BinaryReader): UpdatePhoneRequestV2;
4699
+ }
4700
+
4701
+ export namespace UpdatePhoneRequestV2 {
4702
+ export type AsObject = {
4703
+ password: string,
4704
+ phonenumber: string,
4705
+ pin: string,
4706
+ regioncode: string,
4707
+ verificationcodesList: Array<VerificationCodeItem.AsObject>,
4708
+ verificationcodeautopopulatedbysystem: boolean,
4709
+ appaccounttype: AppAccountType,
4710
+ }
4711
+ }
4712
+
4713
+ export class VerificationCodeItem extends jspb.Message {
4714
+ getVerificationcode(): string;
4715
+ setVerificationcode(value: string): VerificationCodeItem;
4716
+
4717
+ getVerificationscope(): VerificationScope;
4718
+ setVerificationscope(value: VerificationScope): VerificationCodeItem;
4719
+
4720
+ serializeBinary(): Uint8Array;
4721
+ toObject(includeInstance?: boolean): VerificationCodeItem.AsObject;
4722
+ static toObject(includeInstance: boolean, msg: VerificationCodeItem): VerificationCodeItem.AsObject;
4723
+ static serializeBinaryToWriter(message: VerificationCodeItem, writer: jspb.BinaryWriter): void;
4724
+ static deserializeBinary(bytes: Uint8Array): VerificationCodeItem;
4725
+ static deserializeBinaryFromReader(message: VerificationCodeItem, reader: jspb.BinaryReader): VerificationCodeItem;
4726
+ }
4727
+
4728
+ export namespace VerificationCodeItem {
4729
+ export type AsObject = {
4730
+ verificationcode: string,
4731
+ verificationscope: VerificationScope,
4732
+ }
4733
+ }
4734
+
4669
4735
  export class UpdateUserStatusForTestRequest extends jspb.Message {
4670
4736
  getData(): UserStatusUpdateRequest | undefined;
4671
4737
  setData(value?: UserStatusUpdateRequest): UpdateUserStatusForTestRequest;
@@ -5556,6 +5622,12 @@ export class VerifyEmailRequest extends jspb.Message {
5556
5622
  getSociallogin(): boolean;
5557
5623
  setSociallogin(value: boolean): VerifyEmailRequest;
5558
5624
 
5625
+ getVerificationscope(): VerificationScope;
5626
+ setVerificationscope(value: VerificationScope): VerifyEmailRequest;
5627
+
5628
+ getAccounttype(): AppAccountType;
5629
+ setAccounttype(value: AppAccountType): VerifyEmailRequest;
5630
+
5559
5631
  serializeBinary(): Uint8Array;
5560
5632
  toObject(includeInstance?: boolean): VerifyEmailRequest.AsObject;
5561
5633
  static toObject(includeInstance: boolean, msg: VerifyEmailRequest): VerifyEmailRequest.AsObject;
@@ -5568,6 +5640,8 @@ export namespace VerifyEmailRequest {
5568
5640
  export type AsObject = {
5569
5641
  email: string,
5570
5642
  sociallogin: boolean,
5643
+ verificationscope: VerificationScope,
5644
+ accounttype: AppAccountType,
5571
5645
  }
5572
5646
  }
5573
5647
 
@@ -186,6 +186,7 @@ goog.exportSymbol('proto.sniipuserservice.UpdateKycUserStatusForTestRequest', nu
186
186
  goog.exportSymbol('proto.sniipuserservice.UpdateNameRequest', null, global);
187
187
  goog.exportSymbol('proto.sniipuserservice.UpdatePermissionRoleRequest', null, global);
188
188
  goog.exportSymbol('proto.sniipuserservice.UpdatePhoneRequest', null, global);
189
+ goog.exportSymbol('proto.sniipuserservice.UpdatePhoneRequestV2', null, global);
189
190
  goog.exportSymbol('proto.sniipuserservice.UpdateUserStatusForTestRequest', null, global);
190
191
  goog.exportSymbol('proto.sniipuserservice.UpdateUserStatusInternalRequest', null, global);
191
192
  goog.exportSymbol('proto.sniipuserservice.UpdateUserStatusRequest', null, global);
@@ -211,6 +212,7 @@ goog.exportSymbol('proto.sniipuserservice.ValidatePinRequest', null, global);
211
212
  goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeEmailRequest', null, global);
212
213
  goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeMobileRequest', null, global);
213
214
  goog.exportSymbol('proto.sniipuserservice.ValidateVerificationCodeRequest', null, global);
215
+ goog.exportSymbol('proto.sniipuserservice.VerificationCodeItem', null, global);
214
216
  goog.exportSymbol('proto.sniipuserservice.VerificationCodeRequest', null, global);
215
217
  goog.exportSymbol('proto.sniipuserservice.VerificationScope', null, global);
216
218
  goog.exportSymbol('proto.sniipuserservice.VerifyEmailAddressRequest', null, global);
@@ -3536,6 +3538,48 @@ if (goog.DEBUG && !COMPILED) {
3536
3538
  */
3537
3539
  proto.sniipuserservice.UpdatePhoneRequest.displayName = 'proto.sniipuserservice.UpdatePhoneRequest';
3538
3540
  }
3541
+ /**
3542
+ * Generated by JsPbCodeGenerator.
3543
+ * @param {Array=} opt_data Optional initial data array, typically from a
3544
+ * server response, or constructed directly in Javascript. The array is used
3545
+ * in place and becomes part of the constructed object. It is not cloned.
3546
+ * If no data is provided, the constructed object will be empty, but still
3547
+ * valid.
3548
+ * @extends {jspb.Message}
3549
+ * @constructor
3550
+ */
3551
+ proto.sniipuserservice.UpdatePhoneRequestV2 = function(opt_data) {
3552
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipuserservice.UpdatePhoneRequestV2.repeatedFields_, null);
3553
+ };
3554
+ goog.inherits(proto.sniipuserservice.UpdatePhoneRequestV2, jspb.Message);
3555
+ if (goog.DEBUG && !COMPILED) {
3556
+ /**
3557
+ * @public
3558
+ * @override
3559
+ */
3560
+ proto.sniipuserservice.UpdatePhoneRequestV2.displayName = 'proto.sniipuserservice.UpdatePhoneRequestV2';
3561
+ }
3562
+ /**
3563
+ * Generated by JsPbCodeGenerator.
3564
+ * @param {Array=} opt_data Optional initial data array, typically from a
3565
+ * server response, or constructed directly in Javascript. The array is used
3566
+ * in place and becomes part of the constructed object. It is not cloned.
3567
+ * If no data is provided, the constructed object will be empty, but still
3568
+ * valid.
3569
+ * @extends {jspb.Message}
3570
+ * @constructor
3571
+ */
3572
+ proto.sniipuserservice.VerificationCodeItem = function(opt_data) {
3573
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3574
+ };
3575
+ goog.inherits(proto.sniipuserservice.VerificationCodeItem, jspb.Message);
3576
+ if (goog.DEBUG && !COMPILED) {
3577
+ /**
3578
+ * @public
3579
+ * @override
3580
+ */
3581
+ proto.sniipuserservice.VerificationCodeItem.displayName = 'proto.sniipuserservice.VerificationCodeItem';
3582
+ }
3539
3583
  /**
3540
3584
  * Generated by JsPbCodeGenerator.
3541
3585
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -38936,6 +38980,506 @@ proto.sniipuserservice.UpdatePhoneRequest.prototype.setAppaccounttype = function
38936
38980
 
38937
38981
 
38938
38982
 
38983
+ /**
38984
+ * List of repeated fields within this message type.
38985
+ * @private {!Array<number>}
38986
+ * @const
38987
+ */
38988
+ proto.sniipuserservice.UpdatePhoneRequestV2.repeatedFields_ = [5];
38989
+
38990
+
38991
+
38992
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38993
+ /**
38994
+ * Creates an object representation of this proto.
38995
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38996
+ * Optional fields that are not set will be set to undefined.
38997
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38998
+ * For the list of reserved names please see:
38999
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39000
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39001
+ * JSPB instance for transitional soy proto support:
39002
+ * http://goto/soy-param-migration
39003
+ * @return {!Object}
39004
+ */
39005
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.toObject = function(opt_includeInstance) {
39006
+ return proto.sniipuserservice.UpdatePhoneRequestV2.toObject(opt_includeInstance, this);
39007
+ };
39008
+
39009
+
39010
+ /**
39011
+ * Static version of the {@see toObject} method.
39012
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39013
+ * the JSPB instance for transitional soy proto support:
39014
+ * http://goto/soy-param-migration
39015
+ * @param {!proto.sniipuserservice.UpdatePhoneRequestV2} msg The msg instance to transform.
39016
+ * @return {!Object}
39017
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39018
+ */
39019
+ proto.sniipuserservice.UpdatePhoneRequestV2.toObject = function(includeInstance, msg) {
39020
+ var f, obj = {
39021
+ password: jspb.Message.getFieldWithDefault(msg, 1, ""),
39022
+ phonenumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
39023
+ pin: jspb.Message.getFieldWithDefault(msg, 3, ""),
39024
+ regioncode: jspb.Message.getFieldWithDefault(msg, 4, ""),
39025
+ verificationcodesList: jspb.Message.toObjectList(msg.getVerificationcodesList(),
39026
+ proto.sniipuserservice.VerificationCodeItem.toObject, includeInstance),
39027
+ verificationcodeautopopulatedbysystem: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
39028
+ appaccounttype: jspb.Message.getFieldWithDefault(msg, 7, 0)
39029
+ };
39030
+
39031
+ if (includeInstance) {
39032
+ obj.$jspbMessageInstance = msg;
39033
+ }
39034
+ return obj;
39035
+ };
39036
+ }
39037
+
39038
+
39039
+ /**
39040
+ * Deserializes binary data (in protobuf wire format).
39041
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39042
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2}
39043
+ */
39044
+ proto.sniipuserservice.UpdatePhoneRequestV2.deserializeBinary = function(bytes) {
39045
+ var reader = new jspb.BinaryReader(bytes);
39046
+ var msg = new proto.sniipuserservice.UpdatePhoneRequestV2;
39047
+ return proto.sniipuserservice.UpdatePhoneRequestV2.deserializeBinaryFromReader(msg, reader);
39048
+ };
39049
+
39050
+
39051
+ /**
39052
+ * Deserializes binary data (in protobuf wire format) from the
39053
+ * given reader into the given message object.
39054
+ * @param {!proto.sniipuserservice.UpdatePhoneRequestV2} msg The message object to deserialize into.
39055
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39056
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2}
39057
+ */
39058
+ proto.sniipuserservice.UpdatePhoneRequestV2.deserializeBinaryFromReader = function(msg, reader) {
39059
+ while (reader.nextField()) {
39060
+ if (reader.isEndGroup()) {
39061
+ break;
39062
+ }
39063
+ var field = reader.getFieldNumber();
39064
+ switch (field) {
39065
+ case 1:
39066
+ var value = /** @type {string} */ (reader.readString());
39067
+ msg.setPassword(value);
39068
+ break;
39069
+ case 2:
39070
+ var value = /** @type {string} */ (reader.readString());
39071
+ msg.setPhonenumber(value);
39072
+ break;
39073
+ case 3:
39074
+ var value = /** @type {string} */ (reader.readString());
39075
+ msg.setPin(value);
39076
+ break;
39077
+ case 4:
39078
+ var value = /** @type {string} */ (reader.readString());
39079
+ msg.setRegioncode(value);
39080
+ break;
39081
+ case 5:
39082
+ var value = new proto.sniipuserservice.VerificationCodeItem;
39083
+ reader.readMessage(value,proto.sniipuserservice.VerificationCodeItem.deserializeBinaryFromReader);
39084
+ msg.addVerificationcodes(value);
39085
+ break;
39086
+ case 6:
39087
+ var value = /** @type {boolean} */ (reader.readBool());
39088
+ msg.setVerificationcodeautopopulatedbysystem(value);
39089
+ break;
39090
+ case 7:
39091
+ var value = /** @type {!proto.sniipuserservice.AppAccountType} */ (reader.readEnum());
39092
+ msg.setAppaccounttype(value);
39093
+ break;
39094
+ default:
39095
+ reader.skipField();
39096
+ break;
39097
+ }
39098
+ }
39099
+ return msg;
39100
+ };
39101
+
39102
+
39103
+ /**
39104
+ * Serializes the message to binary data (in protobuf wire format).
39105
+ * @return {!Uint8Array}
39106
+ */
39107
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.serializeBinary = function() {
39108
+ var writer = new jspb.BinaryWriter();
39109
+ proto.sniipuserservice.UpdatePhoneRequestV2.serializeBinaryToWriter(this, writer);
39110
+ return writer.getResultBuffer();
39111
+ };
39112
+
39113
+
39114
+ /**
39115
+ * Serializes the given message to binary data (in protobuf wire
39116
+ * format), writing to the given BinaryWriter.
39117
+ * @param {!proto.sniipuserservice.UpdatePhoneRequestV2} message
39118
+ * @param {!jspb.BinaryWriter} writer
39119
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39120
+ */
39121
+ proto.sniipuserservice.UpdatePhoneRequestV2.serializeBinaryToWriter = function(message, writer) {
39122
+ var f = undefined;
39123
+ f = message.getPassword();
39124
+ if (f.length > 0) {
39125
+ writer.writeString(
39126
+ 1,
39127
+ f
39128
+ );
39129
+ }
39130
+ f = message.getPhonenumber();
39131
+ if (f.length > 0) {
39132
+ writer.writeString(
39133
+ 2,
39134
+ f
39135
+ );
39136
+ }
39137
+ f = message.getPin();
39138
+ if (f.length > 0) {
39139
+ writer.writeString(
39140
+ 3,
39141
+ f
39142
+ );
39143
+ }
39144
+ f = message.getRegioncode();
39145
+ if (f.length > 0) {
39146
+ writer.writeString(
39147
+ 4,
39148
+ f
39149
+ );
39150
+ }
39151
+ f = message.getVerificationcodesList();
39152
+ if (f.length > 0) {
39153
+ writer.writeRepeatedMessage(
39154
+ 5,
39155
+ f,
39156
+ proto.sniipuserservice.VerificationCodeItem.serializeBinaryToWriter
39157
+ );
39158
+ }
39159
+ f = message.getVerificationcodeautopopulatedbysystem();
39160
+ if (f) {
39161
+ writer.writeBool(
39162
+ 6,
39163
+ f
39164
+ );
39165
+ }
39166
+ f = message.getAppaccounttype();
39167
+ if (f !== 0.0) {
39168
+ writer.writeEnum(
39169
+ 7,
39170
+ f
39171
+ );
39172
+ }
39173
+ };
39174
+
39175
+
39176
+ /**
39177
+ * optional string password = 1;
39178
+ * @return {string}
39179
+ */
39180
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.getPassword = function() {
39181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
39182
+ };
39183
+
39184
+
39185
+ /**
39186
+ * @param {string} value
39187
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39188
+ */
39189
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.setPassword = function(value) {
39190
+ return jspb.Message.setProto3StringField(this, 1, value);
39191
+ };
39192
+
39193
+
39194
+ /**
39195
+ * optional string phoneNumber = 2;
39196
+ * @return {string}
39197
+ */
39198
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.getPhonenumber = function() {
39199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
39200
+ };
39201
+
39202
+
39203
+ /**
39204
+ * @param {string} value
39205
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39206
+ */
39207
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.setPhonenumber = function(value) {
39208
+ return jspb.Message.setProto3StringField(this, 2, value);
39209
+ };
39210
+
39211
+
39212
+ /**
39213
+ * optional string pin = 3;
39214
+ * @return {string}
39215
+ */
39216
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.getPin = function() {
39217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
39218
+ };
39219
+
39220
+
39221
+ /**
39222
+ * @param {string} value
39223
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39224
+ */
39225
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.setPin = function(value) {
39226
+ return jspb.Message.setProto3StringField(this, 3, value);
39227
+ };
39228
+
39229
+
39230
+ /**
39231
+ * optional string regionCode = 4;
39232
+ * @return {string}
39233
+ */
39234
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.getRegioncode = function() {
39235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
39236
+ };
39237
+
39238
+
39239
+ /**
39240
+ * @param {string} value
39241
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39242
+ */
39243
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.setRegioncode = function(value) {
39244
+ return jspb.Message.setProto3StringField(this, 4, value);
39245
+ };
39246
+
39247
+
39248
+ /**
39249
+ * repeated VerificationCodeItem verificationCodes = 5;
39250
+ * @return {!Array<!proto.sniipuserservice.VerificationCodeItem>}
39251
+ */
39252
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.getVerificationcodesList = function() {
39253
+ return /** @type{!Array<!proto.sniipuserservice.VerificationCodeItem>} */ (
39254
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipuserservice.VerificationCodeItem, 5));
39255
+ };
39256
+
39257
+
39258
+ /**
39259
+ * @param {!Array<!proto.sniipuserservice.VerificationCodeItem>} value
39260
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39261
+ */
39262
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.setVerificationcodesList = function(value) {
39263
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
39264
+ };
39265
+
39266
+
39267
+ /**
39268
+ * @param {!proto.sniipuserservice.VerificationCodeItem=} opt_value
39269
+ * @param {number=} opt_index
39270
+ * @return {!proto.sniipuserservice.VerificationCodeItem}
39271
+ */
39272
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.addVerificationcodes = function(opt_value, opt_index) {
39273
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.sniipuserservice.VerificationCodeItem, opt_index);
39274
+ };
39275
+
39276
+
39277
+ /**
39278
+ * Clears the list making it empty but non-null.
39279
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39280
+ */
39281
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.clearVerificationcodesList = function() {
39282
+ return this.setVerificationcodesList([]);
39283
+ };
39284
+
39285
+
39286
+ /**
39287
+ * optional bool verificationCodeAutoPopulatedBySystem = 6;
39288
+ * @return {boolean}
39289
+ */
39290
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.getVerificationcodeautopopulatedbysystem = function() {
39291
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
39292
+ };
39293
+
39294
+
39295
+ /**
39296
+ * @param {boolean} value
39297
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39298
+ */
39299
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.setVerificationcodeautopopulatedbysystem = function(value) {
39300
+ return jspb.Message.setProto3BooleanField(this, 6, value);
39301
+ };
39302
+
39303
+
39304
+ /**
39305
+ * optional AppAccountType appAccountType = 7;
39306
+ * @return {!proto.sniipuserservice.AppAccountType}
39307
+ */
39308
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.getAppaccounttype = function() {
39309
+ return /** @type {!proto.sniipuserservice.AppAccountType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
39310
+ };
39311
+
39312
+
39313
+ /**
39314
+ * @param {!proto.sniipuserservice.AppAccountType} value
39315
+ * @return {!proto.sniipuserservice.UpdatePhoneRequestV2} returns this
39316
+ */
39317
+ proto.sniipuserservice.UpdatePhoneRequestV2.prototype.setAppaccounttype = function(value) {
39318
+ return jspb.Message.setProto3EnumField(this, 7, value);
39319
+ };
39320
+
39321
+
39322
+
39323
+
39324
+
39325
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39326
+ /**
39327
+ * Creates an object representation of this proto.
39328
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39329
+ * Optional fields that are not set will be set to undefined.
39330
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39331
+ * For the list of reserved names please see:
39332
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39333
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39334
+ * JSPB instance for transitional soy proto support:
39335
+ * http://goto/soy-param-migration
39336
+ * @return {!Object}
39337
+ */
39338
+ proto.sniipuserservice.VerificationCodeItem.prototype.toObject = function(opt_includeInstance) {
39339
+ return proto.sniipuserservice.VerificationCodeItem.toObject(opt_includeInstance, this);
39340
+ };
39341
+
39342
+
39343
+ /**
39344
+ * Static version of the {@see toObject} method.
39345
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39346
+ * the JSPB instance for transitional soy proto support:
39347
+ * http://goto/soy-param-migration
39348
+ * @param {!proto.sniipuserservice.VerificationCodeItem} msg The msg instance to transform.
39349
+ * @return {!Object}
39350
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39351
+ */
39352
+ proto.sniipuserservice.VerificationCodeItem.toObject = function(includeInstance, msg) {
39353
+ var f, obj = {
39354
+ verificationcode: jspb.Message.getFieldWithDefault(msg, 1, ""),
39355
+ verificationscope: jspb.Message.getFieldWithDefault(msg, 2, 0)
39356
+ };
39357
+
39358
+ if (includeInstance) {
39359
+ obj.$jspbMessageInstance = msg;
39360
+ }
39361
+ return obj;
39362
+ };
39363
+ }
39364
+
39365
+
39366
+ /**
39367
+ * Deserializes binary data (in protobuf wire format).
39368
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39369
+ * @return {!proto.sniipuserservice.VerificationCodeItem}
39370
+ */
39371
+ proto.sniipuserservice.VerificationCodeItem.deserializeBinary = function(bytes) {
39372
+ var reader = new jspb.BinaryReader(bytes);
39373
+ var msg = new proto.sniipuserservice.VerificationCodeItem;
39374
+ return proto.sniipuserservice.VerificationCodeItem.deserializeBinaryFromReader(msg, reader);
39375
+ };
39376
+
39377
+
39378
+ /**
39379
+ * Deserializes binary data (in protobuf wire format) from the
39380
+ * given reader into the given message object.
39381
+ * @param {!proto.sniipuserservice.VerificationCodeItem} msg The message object to deserialize into.
39382
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39383
+ * @return {!proto.sniipuserservice.VerificationCodeItem}
39384
+ */
39385
+ proto.sniipuserservice.VerificationCodeItem.deserializeBinaryFromReader = function(msg, reader) {
39386
+ while (reader.nextField()) {
39387
+ if (reader.isEndGroup()) {
39388
+ break;
39389
+ }
39390
+ var field = reader.getFieldNumber();
39391
+ switch (field) {
39392
+ case 1:
39393
+ var value = /** @type {string} */ (reader.readString());
39394
+ msg.setVerificationcode(value);
39395
+ break;
39396
+ case 2:
39397
+ var value = /** @type {!proto.sniipuserservice.VerificationScope} */ (reader.readEnum());
39398
+ msg.setVerificationscope(value);
39399
+ break;
39400
+ default:
39401
+ reader.skipField();
39402
+ break;
39403
+ }
39404
+ }
39405
+ return msg;
39406
+ };
39407
+
39408
+
39409
+ /**
39410
+ * Serializes the message to binary data (in protobuf wire format).
39411
+ * @return {!Uint8Array}
39412
+ */
39413
+ proto.sniipuserservice.VerificationCodeItem.prototype.serializeBinary = function() {
39414
+ var writer = new jspb.BinaryWriter();
39415
+ proto.sniipuserservice.VerificationCodeItem.serializeBinaryToWriter(this, writer);
39416
+ return writer.getResultBuffer();
39417
+ };
39418
+
39419
+
39420
+ /**
39421
+ * Serializes the given message to binary data (in protobuf wire
39422
+ * format), writing to the given BinaryWriter.
39423
+ * @param {!proto.sniipuserservice.VerificationCodeItem} message
39424
+ * @param {!jspb.BinaryWriter} writer
39425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39426
+ */
39427
+ proto.sniipuserservice.VerificationCodeItem.serializeBinaryToWriter = function(message, writer) {
39428
+ var f = undefined;
39429
+ f = message.getVerificationcode();
39430
+ if (f.length > 0) {
39431
+ writer.writeString(
39432
+ 1,
39433
+ f
39434
+ );
39435
+ }
39436
+ f = message.getVerificationscope();
39437
+ if (f !== 0.0) {
39438
+ writer.writeEnum(
39439
+ 2,
39440
+ f
39441
+ );
39442
+ }
39443
+ };
39444
+
39445
+
39446
+ /**
39447
+ * optional string verificationCode = 1;
39448
+ * @return {string}
39449
+ */
39450
+ proto.sniipuserservice.VerificationCodeItem.prototype.getVerificationcode = function() {
39451
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
39452
+ };
39453
+
39454
+
39455
+ /**
39456
+ * @param {string} value
39457
+ * @return {!proto.sniipuserservice.VerificationCodeItem} returns this
39458
+ */
39459
+ proto.sniipuserservice.VerificationCodeItem.prototype.setVerificationcode = function(value) {
39460
+ return jspb.Message.setProto3StringField(this, 1, value);
39461
+ };
39462
+
39463
+
39464
+ /**
39465
+ * optional VerificationScope verificationScope = 2;
39466
+ * @return {!proto.sniipuserservice.VerificationScope}
39467
+ */
39468
+ proto.sniipuserservice.VerificationCodeItem.prototype.getVerificationscope = function() {
39469
+ return /** @type {!proto.sniipuserservice.VerificationScope} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
39470
+ };
39471
+
39472
+
39473
+ /**
39474
+ * @param {!proto.sniipuserservice.VerificationScope} value
39475
+ * @return {!proto.sniipuserservice.VerificationCodeItem} returns this
39476
+ */
39477
+ proto.sniipuserservice.VerificationCodeItem.prototype.setVerificationscope = function(value) {
39478
+ return jspb.Message.setProto3EnumField(this, 2, value);
39479
+ };
39480
+
39481
+
39482
+
38939
39483
 
38940
39484
 
38941
39485
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -45519,7 +46063,9 @@ proto.sniipuserservice.VerifyEmailRequest.prototype.toObject = function(opt_incl
45519
46063
  proto.sniipuserservice.VerifyEmailRequest.toObject = function(includeInstance, msg) {
45520
46064
  var f, obj = {
45521
46065
  email: jspb.Message.getFieldWithDefault(msg, 1, ""),
45522
- sociallogin: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
46066
+ sociallogin: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
46067
+ verificationscope: jspb.Message.getFieldWithDefault(msg, 3, 0),
46068
+ accounttype: jspb.Message.getFieldWithDefault(msg, 4, 0)
45523
46069
  };
45524
46070
 
45525
46071
  if (includeInstance) {
@@ -45564,6 +46110,14 @@ proto.sniipuserservice.VerifyEmailRequest.deserializeBinaryFromReader = function
45564
46110
  var value = /** @type {boolean} */ (reader.readBool());
45565
46111
  msg.setSociallogin(value);
45566
46112
  break;
46113
+ case 3:
46114
+ var value = /** @type {!proto.sniipuserservice.VerificationScope} */ (reader.readEnum());
46115
+ msg.setVerificationscope(value);
46116
+ break;
46117
+ case 4:
46118
+ var value = /** @type {!proto.sniipuserservice.AppAccountType} */ (reader.readEnum());
46119
+ msg.setAccounttype(value);
46120
+ break;
45567
46121
  default:
45568
46122
  reader.skipField();
45569
46123
  break;
@@ -45607,6 +46161,20 @@ proto.sniipuserservice.VerifyEmailRequest.serializeBinaryToWriter = function(mes
45607
46161
  f
45608
46162
  );
45609
46163
  }
46164
+ f = message.getVerificationscope();
46165
+ if (f !== 0.0) {
46166
+ writer.writeEnum(
46167
+ 3,
46168
+ f
46169
+ );
46170
+ }
46171
+ f = message.getAccounttype();
46172
+ if (f !== 0.0) {
46173
+ writer.writeEnum(
46174
+ 4,
46175
+ f
46176
+ );
46177
+ }
45610
46178
  };
45611
46179
 
45612
46180
 
@@ -45646,6 +46214,42 @@ proto.sniipuserservice.VerifyEmailRequest.prototype.setSociallogin = function(va
45646
46214
  };
45647
46215
 
45648
46216
 
46217
+ /**
46218
+ * optional VerificationScope verificationScope = 3;
46219
+ * @return {!proto.sniipuserservice.VerificationScope}
46220
+ */
46221
+ proto.sniipuserservice.VerifyEmailRequest.prototype.getVerificationscope = function() {
46222
+ return /** @type {!proto.sniipuserservice.VerificationScope} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
46223
+ };
46224
+
46225
+
46226
+ /**
46227
+ * @param {!proto.sniipuserservice.VerificationScope} value
46228
+ * @return {!proto.sniipuserservice.VerifyEmailRequest} returns this
46229
+ */
46230
+ proto.sniipuserservice.VerifyEmailRequest.prototype.setVerificationscope = function(value) {
46231
+ return jspb.Message.setProto3EnumField(this, 3, value);
46232
+ };
46233
+
46234
+
46235
+ /**
46236
+ * optional AppAccountType accountType = 4;
46237
+ * @return {!proto.sniipuserservice.AppAccountType}
46238
+ */
46239
+ proto.sniipuserservice.VerifyEmailRequest.prototype.getAccounttype = function() {
46240
+ return /** @type {!proto.sniipuserservice.AppAccountType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
46241
+ };
46242
+
46243
+
46244
+ /**
46245
+ * @param {!proto.sniipuserservice.AppAccountType} value
46246
+ * @return {!proto.sniipuserservice.VerifyEmailRequest} returns this
46247
+ */
46248
+ proto.sniipuserservice.VerifyEmailRequest.prototype.setAccounttype = function(value) {
46249
+ return jspb.Message.setProto3EnumField(this, 4, value);
46250
+ };
46251
+
46252
+
45649
46253
 
45650
46254
 
45651
46255
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb-ts",
3
- "version": "24.14.11906",
3
+ "version": "24.14.11930",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",