@fonoster/sdk 0.15.3 → 0.15.7
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.
- package/dist/node/Users.d.ts +9 -5
- package/dist/node/Users.js +9 -5
- package/dist/node/generated/node/identity_pb.js +91 -1
- package/dist/node/generated/web/identity_pb.d.ts +12 -0
- package/dist/node/generated/web/identity_pb.js +91 -1
- package/dist/node/tsconfig.tsbuildinfo +1 -1
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +4 -4
package/dist/node/Users.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ declare class Users {
|
|
|
58
58
|
* @param {string} request.email - The email of the User
|
|
59
59
|
* @param {string} request.password - The password of the User
|
|
60
60
|
* @param {string} request.avatar - The avatar of the User
|
|
61
|
+
* @param {string} [request.phone] - The phone number of the User (optional)
|
|
61
62
|
* @return {Promise<BaseApiObject>} - The response object that contains the reference to the created User
|
|
62
63
|
* @example
|
|
63
64
|
* const users = new SDK.Users(client); // Existing client object
|
|
@@ -66,7 +67,8 @@ declare class Users {
|
|
|
66
67
|
* name: "John Doe",
|
|
67
68
|
* email: "john.doe@example.com",
|
|
68
69
|
* password: "password",
|
|
69
|
-
* avatar: "https://example.com/avatar.jpg"
|
|
70
|
+
* avatar: "https://example.com/avatar.jpg",
|
|
71
|
+
* phone: "+1234567890"
|
|
70
72
|
* };
|
|
71
73
|
*
|
|
72
74
|
* users
|
|
@@ -114,9 +116,10 @@ declare class Users {
|
|
|
114
116
|
*
|
|
115
117
|
* @param {UpdateUserRequest} request - The request object that contains the necessary information to update a User
|
|
116
118
|
* @param {string} request.ref - The reference of the User to update
|
|
117
|
-
* @param {string} request.name - The name of the User
|
|
118
|
-
* @param {string} request.password - The password of the User
|
|
119
|
-
* @param {string} request.avatar - The avatar of the User
|
|
119
|
+
* @param {string} [request.name] - The name of the User
|
|
120
|
+
* @param {string} [request.password] - The password of the User
|
|
121
|
+
* @param {string} [request.avatar] - The avatar of the User
|
|
122
|
+
* @param {string} [request.phone] - The phone number of the User (optional)
|
|
120
123
|
* @return {Promise<BaseApiObject>} - The response object that contains the reference to the updated User
|
|
121
124
|
* @example
|
|
122
125
|
* const users = new SDK.Users(client); // Existing client object
|
|
@@ -125,7 +128,8 @@ declare class Users {
|
|
|
125
128
|
* ref: "00000000-0000-0000-0000-000000000000",
|
|
126
129
|
* name: "John Doe",
|
|
127
130
|
* password: "password",
|
|
128
|
-
* avatar: "https://example.com/avatar.jpg"
|
|
131
|
+
* avatar: "https://example.com/avatar.jpg",
|
|
132
|
+
* phone: "+1234567890"
|
|
129
133
|
* };
|
|
130
134
|
*
|
|
131
135
|
* users
|
package/dist/node/Users.js
CHANGED
|
@@ -45,6 +45,7 @@ class Users {
|
|
|
45
45
|
* @param {string} request.email - The email of the User
|
|
46
46
|
* @param {string} request.password - The password of the User
|
|
47
47
|
* @param {string} request.avatar - The avatar of the User
|
|
48
|
+
* @param {string} [request.phone] - The phone number of the User (optional)
|
|
48
49
|
* @return {Promise<BaseApiObject>} - The response object that contains the reference to the created User
|
|
49
50
|
* @example
|
|
50
51
|
* const users = new SDK.Users(client); // Existing client object
|
|
@@ -53,7 +54,8 @@ class Users {
|
|
|
53
54
|
* name: "John Doe",
|
|
54
55
|
* email: "john.doe@example.com",
|
|
55
56
|
* password: "password",
|
|
56
|
-
* avatar: "https://example.com/avatar.jpg"
|
|
57
|
+
* avatar: "https://example.com/avatar.jpg",
|
|
58
|
+
* phone: "+1234567890"
|
|
57
59
|
* };
|
|
58
60
|
*
|
|
59
61
|
* users
|
|
@@ -125,9 +127,10 @@ class Users {
|
|
|
125
127
|
*
|
|
126
128
|
* @param {UpdateUserRequest} request - The request object that contains the necessary information to update a User
|
|
127
129
|
* @param {string} request.ref - The reference of the User to update
|
|
128
|
-
* @param {string} request.name - The name of the User
|
|
129
|
-
* @param {string} request.password - The password of the User
|
|
130
|
-
* @param {string} request.avatar - The avatar of the User
|
|
130
|
+
* @param {string} [request.name] - The name of the User
|
|
131
|
+
* @param {string} [request.password] - The password of the User
|
|
132
|
+
* @param {string} [request.avatar] - The avatar of the User
|
|
133
|
+
* @param {string} [request.phone] - The phone number of the User (optional)
|
|
131
134
|
* @return {Promise<BaseApiObject>} - The response object that contains the reference to the updated User
|
|
132
135
|
* @example
|
|
133
136
|
* const users = new SDK.Users(client); // Existing client object
|
|
@@ -136,7 +139,8 @@ class Users {
|
|
|
136
139
|
* ref: "00000000-0000-0000-0000-000000000000",
|
|
137
140
|
* name: "John Doe",
|
|
138
141
|
* password: "password",
|
|
139
|
-
* avatar: "https://example.com/avatar.jpg"
|
|
142
|
+
* avatar: "https://example.com/avatar.jpg",
|
|
143
|
+
* phone: "+1234567890"
|
|
140
144
|
* };
|
|
141
145
|
*
|
|
142
146
|
* users
|
|
@@ -4302,6 +4302,7 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.toObject = function(
|
|
|
4302
4302
|
proto.fonoster.identity.v1beta2.CreateUserRequest.toObject = function(includeInstance, msg) {
|
|
4303
4303
|
var f, obj = {
|
|
4304
4304
|
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4305
|
+
phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
4305
4306
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4306
4307
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4307
4308
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
@@ -4345,6 +4346,10 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.deserializeBinaryFromReader =
|
|
|
4345
4346
|
var value = /** @type {string} */ (reader.readString());
|
|
4346
4347
|
msg.setEmail(value);
|
|
4347
4348
|
break;
|
|
4349
|
+
case 5:
|
|
4350
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4351
|
+
msg.setPhone(value);
|
|
4352
|
+
break;
|
|
4348
4353
|
case 2:
|
|
4349
4354
|
var value = /** @type {string} */ (reader.readString());
|
|
4350
4355
|
msg.setPassword(value);
|
|
@@ -4393,6 +4398,13 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.serializeBinaryToWriter = func
|
|
|
4393
4398
|
f
|
|
4394
4399
|
);
|
|
4395
4400
|
}
|
|
4401
|
+
f = message.getPhone();
|
|
4402
|
+
if (f.length > 0) {
|
|
4403
|
+
writer.writeString(
|
|
4404
|
+
5,
|
|
4405
|
+
f
|
|
4406
|
+
);
|
|
4407
|
+
}
|
|
4396
4408
|
f = message.getPassword();
|
|
4397
4409
|
if (f.length > 0) {
|
|
4398
4410
|
writer.writeString(
|
|
@@ -4435,6 +4447,24 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.setEmail = function(
|
|
|
4435
4447
|
};
|
|
4436
4448
|
|
|
4437
4449
|
|
|
4450
|
+
/**
|
|
4451
|
+
* optional string phone = 5;
|
|
4452
|
+
* @return {string}
|
|
4453
|
+
*/
|
|
4454
|
+
proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.getPhone = function() {
|
|
4455
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4456
|
+
};
|
|
4457
|
+
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* @param {string} value
|
|
4461
|
+
* @return {!proto.fonoster.identity.v1beta2.CreateUserRequest} returns this
|
|
4462
|
+
*/
|
|
4463
|
+
proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.setPhone = function(value) {
|
|
4464
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
4465
|
+
};
|
|
4466
|
+
|
|
4467
|
+
|
|
4438
4468
|
/**
|
|
4439
4469
|
* optional string password = 2;
|
|
4440
4470
|
* @return {string}
|
|
@@ -4913,6 +4943,7 @@ proto.fonoster.identity.v1beta2.User.toObject = function(includeInstance, msg) {
|
|
|
4913
4943
|
var f, obj = {
|
|
4914
4944
|
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4915
4945
|
email: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4946
|
+
phone: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
4916
4947
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4917
4948
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4918
4949
|
createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
@@ -4961,6 +4992,10 @@ proto.fonoster.identity.v1beta2.User.deserializeBinaryFromReader = function(msg,
|
|
|
4961
4992
|
var value = /** @type {string} */ (reader.readString());
|
|
4962
4993
|
msg.setEmail(value);
|
|
4963
4994
|
break;
|
|
4995
|
+
case 7:
|
|
4996
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4997
|
+
msg.setPhone(value);
|
|
4998
|
+
break;
|
|
4964
4999
|
case 3:
|
|
4965
5000
|
var value = /** @type {string} */ (reader.readString());
|
|
4966
5001
|
msg.setName(value);
|
|
@@ -5020,6 +5055,13 @@ proto.fonoster.identity.v1beta2.User.serializeBinaryToWriter = function(message,
|
|
|
5020
5055
|
f
|
|
5021
5056
|
);
|
|
5022
5057
|
}
|
|
5058
|
+
f = message.getPhone();
|
|
5059
|
+
if (f.length > 0) {
|
|
5060
|
+
writer.writeString(
|
|
5061
|
+
7,
|
|
5062
|
+
f
|
|
5063
|
+
);
|
|
5064
|
+
}
|
|
5023
5065
|
f = message.getName();
|
|
5024
5066
|
if (f.length > 0) {
|
|
5025
5067
|
writer.writeString(
|
|
@@ -5087,6 +5129,24 @@ proto.fonoster.identity.v1beta2.User.prototype.setEmail = function(value) {
|
|
|
5087
5129
|
};
|
|
5088
5130
|
|
|
5089
5131
|
|
|
5132
|
+
/**
|
|
5133
|
+
* optional string phone = 7;
|
|
5134
|
+
* @return {string}
|
|
5135
|
+
*/
|
|
5136
|
+
proto.fonoster.identity.v1beta2.User.prototype.getPhone = function() {
|
|
5137
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
5138
|
+
};
|
|
5139
|
+
|
|
5140
|
+
|
|
5141
|
+
/**
|
|
5142
|
+
* @param {string} value
|
|
5143
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
5144
|
+
*/
|
|
5145
|
+
proto.fonoster.identity.v1beta2.User.prototype.setPhone = function(value) {
|
|
5146
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
5147
|
+
};
|
|
5148
|
+
|
|
5149
|
+
|
|
5090
5150
|
/**
|
|
5091
5151
|
* optional string name = 3;
|
|
5092
5152
|
* @return {string}
|
|
@@ -5194,7 +5254,8 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.toObject = function(includeIns
|
|
|
5194
5254
|
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5195
5255
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
5196
5256
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5197
|
-
avatar: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
5257
|
+
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
5258
|
+
phone: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
5198
5259
|
};
|
|
5199
5260
|
|
|
5200
5261
|
if (includeInstance) {
|
|
@@ -5247,6 +5308,10 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.deserializeBinaryFromReader =
|
|
|
5247
5308
|
var value = /** @type {string} */ (reader.readString());
|
|
5248
5309
|
msg.setAvatar(value);
|
|
5249
5310
|
break;
|
|
5311
|
+
case 5:
|
|
5312
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5313
|
+
msg.setPhone(value);
|
|
5314
|
+
break;
|
|
5250
5315
|
default:
|
|
5251
5316
|
reader.skipField();
|
|
5252
5317
|
break;
|
|
@@ -5304,6 +5369,13 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.serializeBinaryToWriter = func
|
|
|
5304
5369
|
f
|
|
5305
5370
|
);
|
|
5306
5371
|
}
|
|
5372
|
+
f = message.getPhone();
|
|
5373
|
+
if (f.length > 0) {
|
|
5374
|
+
writer.writeString(
|
|
5375
|
+
5,
|
|
5376
|
+
f
|
|
5377
|
+
);
|
|
5378
|
+
}
|
|
5307
5379
|
};
|
|
5308
5380
|
|
|
5309
5381
|
|
|
@@ -5379,6 +5451,24 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.prototype.setAvatar = function
|
|
|
5379
5451
|
};
|
|
5380
5452
|
|
|
5381
5453
|
|
|
5454
|
+
/**
|
|
5455
|
+
* optional string phone = 5;
|
|
5456
|
+
* @return {string}
|
|
5457
|
+
*/
|
|
5458
|
+
proto.fonoster.identity.v1beta2.UpdateUserRequest.prototype.getPhone = function() {
|
|
5459
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
5460
|
+
};
|
|
5461
|
+
|
|
5462
|
+
|
|
5463
|
+
/**
|
|
5464
|
+
* @param {string} value
|
|
5465
|
+
* @return {!proto.fonoster.identity.v1beta2.UpdateUserRequest} returns this
|
|
5466
|
+
*/
|
|
5467
|
+
proto.fonoster.identity.v1beta2.UpdateUserRequest.prototype.setPhone = function(value) {
|
|
5468
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
5469
|
+
};
|
|
5470
|
+
|
|
5471
|
+
|
|
5382
5472
|
|
|
5383
5473
|
|
|
5384
5474
|
|
|
@@ -429,6 +429,9 @@ export class CreateUserRequest extends jspb.Message {
|
|
|
429
429
|
getEmail(): string;
|
|
430
430
|
setEmail(value: string): CreateUserRequest;
|
|
431
431
|
|
|
432
|
+
getPhone(): string;
|
|
433
|
+
setPhone(value: string): CreateUserRequest;
|
|
434
|
+
|
|
432
435
|
getPassword(): string;
|
|
433
436
|
setPassword(value: string): CreateUserRequest;
|
|
434
437
|
|
|
@@ -449,6 +452,7 @@ export class CreateUserRequest extends jspb.Message {
|
|
|
449
452
|
export namespace CreateUserRequest {
|
|
450
453
|
export type AsObject = {
|
|
451
454
|
email: string,
|
|
455
|
+
phone: string,
|
|
452
456
|
password: string,
|
|
453
457
|
name: string,
|
|
454
458
|
avatar: string,
|
|
@@ -516,6 +520,9 @@ export class User extends jspb.Message {
|
|
|
516
520
|
getEmail(): string;
|
|
517
521
|
setEmail(value: string): User;
|
|
518
522
|
|
|
523
|
+
getPhone(): string;
|
|
524
|
+
setPhone(value: string): User;
|
|
525
|
+
|
|
519
526
|
getName(): string;
|
|
520
527
|
setName(value: string): User;
|
|
521
528
|
|
|
@@ -540,6 +547,7 @@ export namespace User {
|
|
|
540
547
|
export type AsObject = {
|
|
541
548
|
ref: string,
|
|
542
549
|
email: string,
|
|
550
|
+
phone: string,
|
|
543
551
|
name: string,
|
|
544
552
|
avatar: string,
|
|
545
553
|
createdAt: number,
|
|
@@ -560,6 +568,9 @@ export class UpdateUserRequest extends jspb.Message {
|
|
|
560
568
|
getAvatar(): string;
|
|
561
569
|
setAvatar(value: string): UpdateUserRequest;
|
|
562
570
|
|
|
571
|
+
getPhone(): string;
|
|
572
|
+
setPhone(value: string): UpdateUserRequest;
|
|
573
|
+
|
|
563
574
|
serializeBinary(): Uint8Array;
|
|
564
575
|
toObject(includeInstance?: boolean): UpdateUserRequest.AsObject;
|
|
565
576
|
static toObject(includeInstance: boolean, msg: UpdateUserRequest): UpdateUserRequest.AsObject;
|
|
@@ -574,6 +585,7 @@ export namespace UpdateUserRequest {
|
|
|
574
585
|
password: string,
|
|
575
586
|
name: string,
|
|
576
587
|
avatar: string,
|
|
588
|
+
phone: string,
|
|
577
589
|
}
|
|
578
590
|
}
|
|
579
591
|
|
|
@@ -4302,6 +4302,7 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.toObject = function(
|
|
|
4302
4302
|
proto.fonoster.identity.v1beta2.CreateUserRequest.toObject = function(includeInstance, msg) {
|
|
4303
4303
|
var f, obj = {
|
|
4304
4304
|
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4305
|
+
phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
4305
4306
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4306
4307
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4307
4308
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
@@ -4345,6 +4346,10 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.deserializeBinaryFromReader =
|
|
|
4345
4346
|
var value = /** @type {string} */ (reader.readString());
|
|
4346
4347
|
msg.setEmail(value);
|
|
4347
4348
|
break;
|
|
4349
|
+
case 5:
|
|
4350
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4351
|
+
msg.setPhone(value);
|
|
4352
|
+
break;
|
|
4348
4353
|
case 2:
|
|
4349
4354
|
var value = /** @type {string} */ (reader.readString());
|
|
4350
4355
|
msg.setPassword(value);
|
|
@@ -4393,6 +4398,13 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.serializeBinaryToWriter = func
|
|
|
4393
4398
|
f
|
|
4394
4399
|
);
|
|
4395
4400
|
}
|
|
4401
|
+
f = message.getPhone();
|
|
4402
|
+
if (f.length > 0) {
|
|
4403
|
+
writer.writeString(
|
|
4404
|
+
5,
|
|
4405
|
+
f
|
|
4406
|
+
);
|
|
4407
|
+
}
|
|
4396
4408
|
f = message.getPassword();
|
|
4397
4409
|
if (f.length > 0) {
|
|
4398
4410
|
writer.writeString(
|
|
@@ -4435,6 +4447,24 @@ proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.setEmail = function(
|
|
|
4435
4447
|
};
|
|
4436
4448
|
|
|
4437
4449
|
|
|
4450
|
+
/**
|
|
4451
|
+
* optional string phone = 5;
|
|
4452
|
+
* @return {string}
|
|
4453
|
+
*/
|
|
4454
|
+
proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.getPhone = function() {
|
|
4455
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4456
|
+
};
|
|
4457
|
+
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* @param {string} value
|
|
4461
|
+
* @return {!proto.fonoster.identity.v1beta2.CreateUserRequest} returns this
|
|
4462
|
+
*/
|
|
4463
|
+
proto.fonoster.identity.v1beta2.CreateUserRequest.prototype.setPhone = function(value) {
|
|
4464
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
4465
|
+
};
|
|
4466
|
+
|
|
4467
|
+
|
|
4438
4468
|
/**
|
|
4439
4469
|
* optional string password = 2;
|
|
4440
4470
|
* @return {string}
|
|
@@ -4913,6 +4943,7 @@ proto.fonoster.identity.v1beta2.User.toObject = function(includeInstance, msg) {
|
|
|
4913
4943
|
var f, obj = {
|
|
4914
4944
|
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4915
4945
|
email: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4946
|
+
phone: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
4916
4947
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4917
4948
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4918
4949
|
createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
@@ -4961,6 +4992,10 @@ proto.fonoster.identity.v1beta2.User.deserializeBinaryFromReader = function(msg,
|
|
|
4961
4992
|
var value = /** @type {string} */ (reader.readString());
|
|
4962
4993
|
msg.setEmail(value);
|
|
4963
4994
|
break;
|
|
4995
|
+
case 7:
|
|
4996
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4997
|
+
msg.setPhone(value);
|
|
4998
|
+
break;
|
|
4964
4999
|
case 3:
|
|
4965
5000
|
var value = /** @type {string} */ (reader.readString());
|
|
4966
5001
|
msg.setName(value);
|
|
@@ -5020,6 +5055,13 @@ proto.fonoster.identity.v1beta2.User.serializeBinaryToWriter = function(message,
|
|
|
5020
5055
|
f
|
|
5021
5056
|
);
|
|
5022
5057
|
}
|
|
5058
|
+
f = message.getPhone();
|
|
5059
|
+
if (f.length > 0) {
|
|
5060
|
+
writer.writeString(
|
|
5061
|
+
7,
|
|
5062
|
+
f
|
|
5063
|
+
);
|
|
5064
|
+
}
|
|
5023
5065
|
f = message.getName();
|
|
5024
5066
|
if (f.length > 0) {
|
|
5025
5067
|
writer.writeString(
|
|
@@ -5087,6 +5129,24 @@ proto.fonoster.identity.v1beta2.User.prototype.setEmail = function(value) {
|
|
|
5087
5129
|
};
|
|
5088
5130
|
|
|
5089
5131
|
|
|
5132
|
+
/**
|
|
5133
|
+
* optional string phone = 7;
|
|
5134
|
+
* @return {string}
|
|
5135
|
+
*/
|
|
5136
|
+
proto.fonoster.identity.v1beta2.User.prototype.getPhone = function() {
|
|
5137
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
5138
|
+
};
|
|
5139
|
+
|
|
5140
|
+
|
|
5141
|
+
/**
|
|
5142
|
+
* @param {string} value
|
|
5143
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
5144
|
+
*/
|
|
5145
|
+
proto.fonoster.identity.v1beta2.User.prototype.setPhone = function(value) {
|
|
5146
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
5147
|
+
};
|
|
5148
|
+
|
|
5149
|
+
|
|
5090
5150
|
/**
|
|
5091
5151
|
* optional string name = 3;
|
|
5092
5152
|
* @return {string}
|
|
@@ -5194,7 +5254,8 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.toObject = function(includeIns
|
|
|
5194
5254
|
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5195
5255
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
5196
5256
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5197
|
-
avatar: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
5257
|
+
avatar: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
5258
|
+
phone: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
5198
5259
|
};
|
|
5199
5260
|
|
|
5200
5261
|
if (includeInstance) {
|
|
@@ -5247,6 +5308,10 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.deserializeBinaryFromReader =
|
|
|
5247
5308
|
var value = /** @type {string} */ (reader.readString());
|
|
5248
5309
|
msg.setAvatar(value);
|
|
5249
5310
|
break;
|
|
5311
|
+
case 5:
|
|
5312
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5313
|
+
msg.setPhone(value);
|
|
5314
|
+
break;
|
|
5250
5315
|
default:
|
|
5251
5316
|
reader.skipField();
|
|
5252
5317
|
break;
|
|
@@ -5304,6 +5369,13 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.serializeBinaryToWriter = func
|
|
|
5304
5369
|
f
|
|
5305
5370
|
);
|
|
5306
5371
|
}
|
|
5372
|
+
f = message.getPhone();
|
|
5373
|
+
if (f.length > 0) {
|
|
5374
|
+
writer.writeString(
|
|
5375
|
+
5,
|
|
5376
|
+
f
|
|
5377
|
+
);
|
|
5378
|
+
}
|
|
5307
5379
|
};
|
|
5308
5380
|
|
|
5309
5381
|
|
|
@@ -5379,6 +5451,24 @@ proto.fonoster.identity.v1beta2.UpdateUserRequest.prototype.setAvatar = function
|
|
|
5379
5451
|
};
|
|
5380
5452
|
|
|
5381
5453
|
|
|
5454
|
+
/**
|
|
5455
|
+
* optional string phone = 5;
|
|
5456
|
+
* @return {string}
|
|
5457
|
+
*/
|
|
5458
|
+
proto.fonoster.identity.v1beta2.UpdateUserRequest.prototype.getPhone = function() {
|
|
5459
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
5460
|
+
};
|
|
5461
|
+
|
|
5462
|
+
|
|
5463
|
+
/**
|
|
5464
|
+
* @param {string} value
|
|
5465
|
+
* @return {!proto.fonoster.identity.v1beta2.UpdateUserRequest} returns this
|
|
5466
|
+
*/
|
|
5467
|
+
proto.fonoster.identity.v1beta2.UpdateUserRequest.prototype.setPhone = function(value) {
|
|
5468
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
5469
|
+
};
|
|
5470
|
+
|
|
5471
|
+
|
|
5382
5472
|
|
|
5383
5473
|
|
|
5384
5474
|
|