@sellout/models 0.0.49 → 0.0.51
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/graphql/fragments/event.fragment.d.ts +1 -0
- package/.dist/graphql/fragments/event.fragment.js +35 -9
- package/.dist/graphql/fragments/event.fragment.js.map +1 -1
- package/.dist/graphql/mutations/createEvent.mutation.js +15 -2
- package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateEvent.mutation.js +8 -2
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/queries/event.query.js +3 -1
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/profile.query.d.ts +2 -0
- package/.dist/graphql/queries/profile.query.js +89 -0
- package/.dist/graphql/queries/profile.query.js.map +1 -0
- package/.dist/graphql/queries/roles.query.d.ts +2 -0
- package/.dist/graphql/queries/roles.query.js +32 -0
- package/.dist/graphql/queries/roles.query.js.map +1 -0
- package/.dist/interfaces/IEventUpgrade.d.ts +6 -0
- package/.dist/interfaces/IEventUpgrade.js +7 -0
- package/.dist/interfaces/IEventUpgrade.js.map +1 -1
- package/.dist/schemas/Event.d.ts +20 -0
- package/.dist/schemas/Event.js +25 -5
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +55 -35
- package/.dist/schemas/Organization.js +2 -37
- package/.dist/schemas/Organization.js.map +1 -1
- package/.dist/schemas/User.d.ts +4 -0
- package/.dist/schemas/User.js +4 -0
- package/.dist/schemas/User.js.map +1 -1
- package/.dist/sellout-proto.js +1379 -146
- package/package.json +5 -5
- package/src/graphql/fragments/event.fragment.ts +36 -9
- package/src/graphql/mutations/createEvent.mutation.ts +16 -3
- package/src/graphql/mutations/updateEvent.mutation.ts +8 -2
- package/src/graphql/queries/event.query.ts +3 -1
- package/src/graphql/queries/profile.query.ts +85 -0
- package/src/graphql/queries/roles.query.ts +28 -0
- package/src/interfaces/IEventUpgrade.ts +7 -0
- package/src/proto/event.proto +1 -0
- package/src/proto/user.proto +30 -0
- package/src/schemas/Event.ts +25 -5
- package/src/schemas/Organization.ts +2 -37
- package/src/schemas/User.ts +4 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -28076,6 +28076,7 @@ $root.TicketType = (function() {
|
|
|
28076
28076
|
* @property {Array.<string>|null} [performanceIds] TicketType performanceIds
|
|
28077
28077
|
* @property {Array.<ITicketTier>|null} [tiers] TicketType tiers
|
|
28078
28078
|
* @property {boolean|null} [visible] TicketType visible
|
|
28079
|
+
* @property {string|null} [description] TicketType description
|
|
28079
28080
|
*/
|
|
28080
28081
|
|
|
28081
28082
|
/**
|
|
@@ -28159,6 +28160,14 @@ $root.TicketType = (function() {
|
|
|
28159
28160
|
*/
|
|
28160
28161
|
TicketType.prototype.visible = false;
|
|
28161
28162
|
|
|
28163
|
+
/**
|
|
28164
|
+
* TicketType description.
|
|
28165
|
+
* @member {string} description
|
|
28166
|
+
* @memberof TicketType
|
|
28167
|
+
* @instance
|
|
28168
|
+
*/
|
|
28169
|
+
TicketType.prototype.description = "";
|
|
28170
|
+
|
|
28162
28171
|
/**
|
|
28163
28172
|
* Creates a new TicketType instance using the specified properties.
|
|
28164
28173
|
* @function create
|
|
@@ -28201,6 +28210,8 @@ $root.TicketType = (function() {
|
|
|
28201
28210
|
$root.TicketTier.encode(message.tiers[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
28202
28211
|
if (message.visible != null && message.hasOwnProperty("visible"))
|
|
28203
28212
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.visible);
|
|
28213
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
28214
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.description);
|
|
28204
28215
|
return writer;
|
|
28205
28216
|
};
|
|
28206
28217
|
|
|
@@ -28263,6 +28274,9 @@ $root.TicketType = (function() {
|
|
|
28263
28274
|
case 8:
|
|
28264
28275
|
message.visible = reader.bool();
|
|
28265
28276
|
break;
|
|
28277
|
+
case 9:
|
|
28278
|
+
message.description = reader.string();
|
|
28279
|
+
break;
|
|
28266
28280
|
default:
|
|
28267
28281
|
reader.skipType(tag & 7);
|
|
28268
28282
|
break;
|
|
@@ -28332,6 +28346,9 @@ $root.TicketType = (function() {
|
|
|
28332
28346
|
if (message.visible != null && message.hasOwnProperty("visible"))
|
|
28333
28347
|
if (typeof message.visible !== "boolean")
|
|
28334
28348
|
return "visible: boolean expected";
|
|
28349
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
28350
|
+
if (!$util.isString(message.description))
|
|
28351
|
+
return "description: string expected";
|
|
28335
28352
|
return null;
|
|
28336
28353
|
};
|
|
28337
28354
|
|
|
@@ -28376,6 +28393,8 @@ $root.TicketType = (function() {
|
|
|
28376
28393
|
}
|
|
28377
28394
|
if (object.visible != null)
|
|
28378
28395
|
message.visible = Boolean(object.visible);
|
|
28396
|
+
if (object.description != null)
|
|
28397
|
+
message.description = String(object.description);
|
|
28379
28398
|
return message;
|
|
28380
28399
|
};
|
|
28381
28400
|
|
|
@@ -28403,6 +28422,7 @@ $root.TicketType = (function() {
|
|
|
28403
28422
|
object.remainingQty = 0;
|
|
28404
28423
|
object.purchaseLimit = 0;
|
|
28405
28424
|
object.visible = false;
|
|
28425
|
+
object.description = "";
|
|
28406
28426
|
}
|
|
28407
28427
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
28408
28428
|
object._id = message._id;
|
|
@@ -28426,6 +28446,8 @@ $root.TicketType = (function() {
|
|
|
28426
28446
|
}
|
|
28427
28447
|
if (message.visible != null && message.hasOwnProperty("visible"))
|
|
28428
28448
|
object.visible = message.visible;
|
|
28449
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
28450
|
+
object.description = message.description;
|
|
28429
28451
|
return object;
|
|
28430
28452
|
};
|
|
28431
28453
|
|
|
@@ -66420,6 +66442,7 @@ $root.User = (function() {
|
|
|
66420
66442
|
* @property {string|null} [phoneVerifyCode] User phoneVerifyCode
|
|
66421
66443
|
* @property {number|null} [authTimeOut] User authTimeOut
|
|
66422
66444
|
* @property {number|null} [authAttempts] User authAttempts
|
|
66445
|
+
* @property {Array.<string>|null} [secondaryEmails] User secondaryEmails
|
|
66423
66446
|
*/
|
|
66424
66447
|
|
|
66425
66448
|
/**
|
|
@@ -66431,6 +66454,7 @@ $root.User = (function() {
|
|
|
66431
66454
|
* @param {IUser=} [properties] Properties to set
|
|
66432
66455
|
*/
|
|
66433
66456
|
function User(properties) {
|
|
66457
|
+
this.secondaryEmails = [];
|
|
66434
66458
|
if (properties)
|
|
66435
66459
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66436
66460
|
if (properties[keys[i]] != null)
|
|
@@ -66605,6 +66629,14 @@ $root.User = (function() {
|
|
|
66605
66629
|
*/
|
|
66606
66630
|
User.prototype.authAttempts = 0;
|
|
66607
66631
|
|
|
66632
|
+
/**
|
|
66633
|
+
* User secondaryEmails.
|
|
66634
|
+
* @member {Array.<string>} secondaryEmails
|
|
66635
|
+
* @memberof User
|
|
66636
|
+
* @instance
|
|
66637
|
+
*/
|
|
66638
|
+
User.prototype.secondaryEmails = $util.emptyArray;
|
|
66639
|
+
|
|
66608
66640
|
/**
|
|
66609
66641
|
* Creates a new User instance using the specified properties.
|
|
66610
66642
|
* @function create
|
|
@@ -66671,6 +66703,9 @@ $root.User = (function() {
|
|
|
66671
66703
|
writer.uint32(/* id 20, wireType 0 =*/160).int32(message.authTimeOut);
|
|
66672
66704
|
if (message.authAttempts != null && message.hasOwnProperty("authAttempts"))
|
|
66673
66705
|
writer.uint32(/* id 21, wireType 0 =*/168).int32(message.authAttempts);
|
|
66706
|
+
if (message.secondaryEmails != null && message.secondaryEmails.length)
|
|
66707
|
+
for (var i = 0; i < message.secondaryEmails.length; ++i)
|
|
66708
|
+
writer.uint32(/* id 22, wireType 2 =*/178).string(message.secondaryEmails[i]);
|
|
66674
66709
|
return writer;
|
|
66675
66710
|
};
|
|
66676
66711
|
|
|
@@ -66768,6 +66803,11 @@ $root.User = (function() {
|
|
|
66768
66803
|
case 21:
|
|
66769
66804
|
message.authAttempts = reader.int32();
|
|
66770
66805
|
break;
|
|
66806
|
+
case 22:
|
|
66807
|
+
if (!(message.secondaryEmails && message.secondaryEmails.length))
|
|
66808
|
+
message.secondaryEmails = [];
|
|
66809
|
+
message.secondaryEmails.push(reader.string());
|
|
66810
|
+
break;
|
|
66771
66811
|
default:
|
|
66772
66812
|
reader.skipType(tag & 7);
|
|
66773
66813
|
break;
|
|
@@ -66866,6 +66906,13 @@ $root.User = (function() {
|
|
|
66866
66906
|
if (message.authAttempts != null && message.hasOwnProperty("authAttempts"))
|
|
66867
66907
|
if (!$util.isInteger(message.authAttempts))
|
|
66868
66908
|
return "authAttempts: integer expected";
|
|
66909
|
+
if (message.secondaryEmails != null && message.hasOwnProperty("secondaryEmails")) {
|
|
66910
|
+
if (!Array.isArray(message.secondaryEmails))
|
|
66911
|
+
return "secondaryEmails: array expected";
|
|
66912
|
+
for (var i = 0; i < message.secondaryEmails.length; ++i)
|
|
66913
|
+
if (!$util.isString(message.secondaryEmails[i]))
|
|
66914
|
+
return "secondaryEmails: string[] expected";
|
|
66915
|
+
}
|
|
66869
66916
|
return null;
|
|
66870
66917
|
};
|
|
66871
66918
|
|
|
@@ -66923,6 +66970,13 @@ $root.User = (function() {
|
|
|
66923
66970
|
message.authTimeOut = object.authTimeOut | 0;
|
|
66924
66971
|
if (object.authAttempts != null)
|
|
66925
66972
|
message.authAttempts = object.authAttempts | 0;
|
|
66973
|
+
if (object.secondaryEmails) {
|
|
66974
|
+
if (!Array.isArray(object.secondaryEmails))
|
|
66975
|
+
throw TypeError(".User.secondaryEmails: array expected");
|
|
66976
|
+
message.secondaryEmails = [];
|
|
66977
|
+
for (var i = 0; i < object.secondaryEmails.length; ++i)
|
|
66978
|
+
message.secondaryEmails[i] = String(object.secondaryEmails[i]);
|
|
66979
|
+
}
|
|
66926
66980
|
return message;
|
|
66927
66981
|
};
|
|
66928
66982
|
|
|
@@ -66939,6 +66993,8 @@ $root.User = (function() {
|
|
|
66939
66993
|
if (!options)
|
|
66940
66994
|
options = {};
|
|
66941
66995
|
var object = {};
|
|
66996
|
+
if (options.arrays || options.defaults)
|
|
66997
|
+
object.secondaryEmails = [];
|
|
66942
66998
|
if (options.defaults) {
|
|
66943
66999
|
object._id = "";
|
|
66944
67000
|
object.email = "";
|
|
@@ -67004,6 +67060,11 @@ $root.User = (function() {
|
|
|
67004
67060
|
object.authTimeOut = message.authTimeOut;
|
|
67005
67061
|
if (message.authAttempts != null && message.hasOwnProperty("authAttempts"))
|
|
67006
67062
|
object.authAttempts = message.authAttempts;
|
|
67063
|
+
if (message.secondaryEmails && message.secondaryEmails.length) {
|
|
67064
|
+
object.secondaryEmails = [];
|
|
67065
|
+
for (var j = 0; j < message.secondaryEmails.length; ++j)
|
|
67066
|
+
object.secondaryEmails[j] = message.secondaryEmails[j];
|
|
67067
|
+
}
|
|
67007
67068
|
return object;
|
|
67008
67069
|
};
|
|
67009
67070
|
|
|
@@ -72778,6 +72839,534 @@ $root.ResetUserPasswordResponse = (function() {
|
|
|
72778
72839
|
return ResetUserPasswordResponse;
|
|
72779
72840
|
})();
|
|
72780
72841
|
|
|
72842
|
+
$root.ResetUserPasswordInAppRequest = (function() {
|
|
72843
|
+
|
|
72844
|
+
/**
|
|
72845
|
+
* Properties of a ResetUserPasswordInAppRequest.
|
|
72846
|
+
* @exports IResetUserPasswordInAppRequest
|
|
72847
|
+
* @interface IResetUserPasswordInAppRequest
|
|
72848
|
+
* @property {string|null} [spanContext] ResetUserPasswordInAppRequest spanContext
|
|
72849
|
+
* @property {string|null} [userId] ResetUserPasswordInAppRequest userId
|
|
72850
|
+
* @property {string|null} [oldPassword] ResetUserPasswordInAppRequest oldPassword
|
|
72851
|
+
* @property {string|null} [newPassword] ResetUserPasswordInAppRequest newPassword
|
|
72852
|
+
*/
|
|
72853
|
+
|
|
72854
|
+
/**
|
|
72855
|
+
* Constructs a new ResetUserPasswordInAppRequest.
|
|
72856
|
+
* @exports ResetUserPasswordInAppRequest
|
|
72857
|
+
* @classdesc Represents a ResetUserPasswordInAppRequest.
|
|
72858
|
+
* @implements IResetUserPasswordInAppRequest
|
|
72859
|
+
* @constructor
|
|
72860
|
+
* @param {IResetUserPasswordInAppRequest=} [properties] Properties to set
|
|
72861
|
+
*/
|
|
72862
|
+
function ResetUserPasswordInAppRequest(properties) {
|
|
72863
|
+
if (properties)
|
|
72864
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
72865
|
+
if (properties[keys[i]] != null)
|
|
72866
|
+
this[keys[i]] = properties[keys[i]];
|
|
72867
|
+
}
|
|
72868
|
+
|
|
72869
|
+
/**
|
|
72870
|
+
* ResetUserPasswordInAppRequest spanContext.
|
|
72871
|
+
* @member {string} spanContext
|
|
72872
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72873
|
+
* @instance
|
|
72874
|
+
*/
|
|
72875
|
+
ResetUserPasswordInAppRequest.prototype.spanContext = "";
|
|
72876
|
+
|
|
72877
|
+
/**
|
|
72878
|
+
* ResetUserPasswordInAppRequest userId.
|
|
72879
|
+
* @member {string} userId
|
|
72880
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72881
|
+
* @instance
|
|
72882
|
+
*/
|
|
72883
|
+
ResetUserPasswordInAppRequest.prototype.userId = "";
|
|
72884
|
+
|
|
72885
|
+
/**
|
|
72886
|
+
* ResetUserPasswordInAppRequest oldPassword.
|
|
72887
|
+
* @member {string} oldPassword
|
|
72888
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72889
|
+
* @instance
|
|
72890
|
+
*/
|
|
72891
|
+
ResetUserPasswordInAppRequest.prototype.oldPassword = "";
|
|
72892
|
+
|
|
72893
|
+
/**
|
|
72894
|
+
* ResetUserPasswordInAppRequest newPassword.
|
|
72895
|
+
* @member {string} newPassword
|
|
72896
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72897
|
+
* @instance
|
|
72898
|
+
*/
|
|
72899
|
+
ResetUserPasswordInAppRequest.prototype.newPassword = "";
|
|
72900
|
+
|
|
72901
|
+
/**
|
|
72902
|
+
* Creates a new ResetUserPasswordInAppRequest instance using the specified properties.
|
|
72903
|
+
* @function create
|
|
72904
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72905
|
+
* @static
|
|
72906
|
+
* @param {IResetUserPasswordInAppRequest=} [properties] Properties to set
|
|
72907
|
+
* @returns {ResetUserPasswordInAppRequest} ResetUserPasswordInAppRequest instance
|
|
72908
|
+
*/
|
|
72909
|
+
ResetUserPasswordInAppRequest.create = function create(properties) {
|
|
72910
|
+
return new ResetUserPasswordInAppRequest(properties);
|
|
72911
|
+
};
|
|
72912
|
+
|
|
72913
|
+
/**
|
|
72914
|
+
* Encodes the specified ResetUserPasswordInAppRequest message. Does not implicitly {@link ResetUserPasswordInAppRequest.verify|verify} messages.
|
|
72915
|
+
* @function encode
|
|
72916
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72917
|
+
* @static
|
|
72918
|
+
* @param {IResetUserPasswordInAppRequest} message ResetUserPasswordInAppRequest message or plain object to encode
|
|
72919
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72920
|
+
* @returns {$protobuf.Writer} Writer
|
|
72921
|
+
*/
|
|
72922
|
+
ResetUserPasswordInAppRequest.encode = function encode(message, writer) {
|
|
72923
|
+
if (!writer)
|
|
72924
|
+
writer = $Writer.create();
|
|
72925
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
72926
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
|
|
72927
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
72928
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
72929
|
+
if (message.oldPassword != null && message.hasOwnProperty("oldPassword"))
|
|
72930
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.oldPassword);
|
|
72931
|
+
if (message.newPassword != null && message.hasOwnProperty("newPassword"))
|
|
72932
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.newPassword);
|
|
72933
|
+
return writer;
|
|
72934
|
+
};
|
|
72935
|
+
|
|
72936
|
+
/**
|
|
72937
|
+
* Encodes the specified ResetUserPasswordInAppRequest message, length delimited. Does not implicitly {@link ResetUserPasswordInAppRequest.verify|verify} messages.
|
|
72938
|
+
* @function encodeDelimited
|
|
72939
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72940
|
+
* @static
|
|
72941
|
+
* @param {IResetUserPasswordInAppRequest} message ResetUserPasswordInAppRequest message or plain object to encode
|
|
72942
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72943
|
+
* @returns {$protobuf.Writer} Writer
|
|
72944
|
+
*/
|
|
72945
|
+
ResetUserPasswordInAppRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
72946
|
+
return this.encode(message, writer).ldelim();
|
|
72947
|
+
};
|
|
72948
|
+
|
|
72949
|
+
/**
|
|
72950
|
+
* Decodes a ResetUserPasswordInAppRequest message from the specified reader or buffer.
|
|
72951
|
+
* @function decode
|
|
72952
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72953
|
+
* @static
|
|
72954
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72955
|
+
* @param {number} [length] Message length if known beforehand
|
|
72956
|
+
* @returns {ResetUserPasswordInAppRequest} ResetUserPasswordInAppRequest
|
|
72957
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72958
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72959
|
+
*/
|
|
72960
|
+
ResetUserPasswordInAppRequest.decode = function decode(reader, length) {
|
|
72961
|
+
if (!(reader instanceof $Reader))
|
|
72962
|
+
reader = $Reader.create(reader);
|
|
72963
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ResetUserPasswordInAppRequest();
|
|
72964
|
+
while (reader.pos < end) {
|
|
72965
|
+
var tag = reader.uint32();
|
|
72966
|
+
switch (tag >>> 3) {
|
|
72967
|
+
case 1:
|
|
72968
|
+
message.spanContext = reader.string();
|
|
72969
|
+
break;
|
|
72970
|
+
case 2:
|
|
72971
|
+
message.userId = reader.string();
|
|
72972
|
+
break;
|
|
72973
|
+
case 3:
|
|
72974
|
+
message.oldPassword = reader.string();
|
|
72975
|
+
break;
|
|
72976
|
+
case 4:
|
|
72977
|
+
message.newPassword = reader.string();
|
|
72978
|
+
break;
|
|
72979
|
+
default:
|
|
72980
|
+
reader.skipType(tag & 7);
|
|
72981
|
+
break;
|
|
72982
|
+
}
|
|
72983
|
+
}
|
|
72984
|
+
return message;
|
|
72985
|
+
};
|
|
72986
|
+
|
|
72987
|
+
/**
|
|
72988
|
+
* Decodes a ResetUserPasswordInAppRequest message from the specified reader or buffer, length delimited.
|
|
72989
|
+
* @function decodeDelimited
|
|
72990
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
72991
|
+
* @static
|
|
72992
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72993
|
+
* @returns {ResetUserPasswordInAppRequest} ResetUserPasswordInAppRequest
|
|
72994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72996
|
+
*/
|
|
72997
|
+
ResetUserPasswordInAppRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
72998
|
+
if (!(reader instanceof $Reader))
|
|
72999
|
+
reader = new $Reader(reader);
|
|
73000
|
+
return this.decode(reader, reader.uint32());
|
|
73001
|
+
};
|
|
73002
|
+
|
|
73003
|
+
/**
|
|
73004
|
+
* Verifies a ResetUserPasswordInAppRequest message.
|
|
73005
|
+
* @function verify
|
|
73006
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
73007
|
+
* @static
|
|
73008
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
73009
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
73010
|
+
*/
|
|
73011
|
+
ResetUserPasswordInAppRequest.verify = function verify(message) {
|
|
73012
|
+
if (typeof message !== "object" || message === null)
|
|
73013
|
+
return "object expected";
|
|
73014
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
73015
|
+
if (!$util.isString(message.spanContext))
|
|
73016
|
+
return "spanContext: string expected";
|
|
73017
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
73018
|
+
if (!$util.isString(message.userId))
|
|
73019
|
+
return "userId: string expected";
|
|
73020
|
+
if (message.oldPassword != null && message.hasOwnProperty("oldPassword"))
|
|
73021
|
+
if (!$util.isString(message.oldPassword))
|
|
73022
|
+
return "oldPassword: string expected";
|
|
73023
|
+
if (message.newPassword != null && message.hasOwnProperty("newPassword"))
|
|
73024
|
+
if (!$util.isString(message.newPassword))
|
|
73025
|
+
return "newPassword: string expected";
|
|
73026
|
+
return null;
|
|
73027
|
+
};
|
|
73028
|
+
|
|
73029
|
+
/**
|
|
73030
|
+
* Creates a ResetUserPasswordInAppRequest message from a plain object. Also converts values to their respective internal types.
|
|
73031
|
+
* @function fromObject
|
|
73032
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
73033
|
+
* @static
|
|
73034
|
+
* @param {Object.<string,*>} object Plain object
|
|
73035
|
+
* @returns {ResetUserPasswordInAppRequest} ResetUserPasswordInAppRequest
|
|
73036
|
+
*/
|
|
73037
|
+
ResetUserPasswordInAppRequest.fromObject = function fromObject(object) {
|
|
73038
|
+
if (object instanceof $root.ResetUserPasswordInAppRequest)
|
|
73039
|
+
return object;
|
|
73040
|
+
var message = new $root.ResetUserPasswordInAppRequest();
|
|
73041
|
+
if (object.spanContext != null)
|
|
73042
|
+
message.spanContext = String(object.spanContext);
|
|
73043
|
+
if (object.userId != null)
|
|
73044
|
+
message.userId = String(object.userId);
|
|
73045
|
+
if (object.oldPassword != null)
|
|
73046
|
+
message.oldPassword = String(object.oldPassword);
|
|
73047
|
+
if (object.newPassword != null)
|
|
73048
|
+
message.newPassword = String(object.newPassword);
|
|
73049
|
+
return message;
|
|
73050
|
+
};
|
|
73051
|
+
|
|
73052
|
+
/**
|
|
73053
|
+
* Creates a plain object from a ResetUserPasswordInAppRequest message. Also converts values to other types if specified.
|
|
73054
|
+
* @function toObject
|
|
73055
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
73056
|
+
* @static
|
|
73057
|
+
* @param {ResetUserPasswordInAppRequest} message ResetUserPasswordInAppRequest
|
|
73058
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73059
|
+
* @returns {Object.<string,*>} Plain object
|
|
73060
|
+
*/
|
|
73061
|
+
ResetUserPasswordInAppRequest.toObject = function toObject(message, options) {
|
|
73062
|
+
if (!options)
|
|
73063
|
+
options = {};
|
|
73064
|
+
var object = {};
|
|
73065
|
+
if (options.defaults) {
|
|
73066
|
+
object.spanContext = "";
|
|
73067
|
+
object.userId = "";
|
|
73068
|
+
object.oldPassword = "";
|
|
73069
|
+
object.newPassword = "";
|
|
73070
|
+
}
|
|
73071
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
73072
|
+
object.spanContext = message.spanContext;
|
|
73073
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
73074
|
+
object.userId = message.userId;
|
|
73075
|
+
if (message.oldPassword != null && message.hasOwnProperty("oldPassword"))
|
|
73076
|
+
object.oldPassword = message.oldPassword;
|
|
73077
|
+
if (message.newPassword != null && message.hasOwnProperty("newPassword"))
|
|
73078
|
+
object.newPassword = message.newPassword;
|
|
73079
|
+
return object;
|
|
73080
|
+
};
|
|
73081
|
+
|
|
73082
|
+
/**
|
|
73083
|
+
* Converts this ResetUserPasswordInAppRequest to JSON.
|
|
73084
|
+
* @function toJSON
|
|
73085
|
+
* @memberof ResetUserPasswordInAppRequest
|
|
73086
|
+
* @instance
|
|
73087
|
+
* @returns {Object.<string,*>} JSON object
|
|
73088
|
+
*/
|
|
73089
|
+
ResetUserPasswordInAppRequest.prototype.toJSON = function toJSON() {
|
|
73090
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73091
|
+
};
|
|
73092
|
+
|
|
73093
|
+
return ResetUserPasswordInAppRequest;
|
|
73094
|
+
})();
|
|
73095
|
+
|
|
73096
|
+
$root.ResetUserPasswordInAppResponse = (function() {
|
|
73097
|
+
|
|
73098
|
+
/**
|
|
73099
|
+
* Properties of a ResetUserPasswordInAppResponse.
|
|
73100
|
+
* @exports IResetUserPasswordInAppResponse
|
|
73101
|
+
* @interface IResetUserPasswordInAppResponse
|
|
73102
|
+
* @property {StatusCode|null} [status] ResetUserPasswordInAppResponse status
|
|
73103
|
+
* @property {Array.<IError>|null} [errors] ResetUserPasswordInAppResponse errors
|
|
73104
|
+
*/
|
|
73105
|
+
|
|
73106
|
+
/**
|
|
73107
|
+
* Constructs a new ResetUserPasswordInAppResponse.
|
|
73108
|
+
* @exports ResetUserPasswordInAppResponse
|
|
73109
|
+
* @classdesc Represents a ResetUserPasswordInAppResponse.
|
|
73110
|
+
* @implements IResetUserPasswordInAppResponse
|
|
73111
|
+
* @constructor
|
|
73112
|
+
* @param {IResetUserPasswordInAppResponse=} [properties] Properties to set
|
|
73113
|
+
*/
|
|
73114
|
+
function ResetUserPasswordInAppResponse(properties) {
|
|
73115
|
+
this.errors = [];
|
|
73116
|
+
if (properties)
|
|
73117
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
73118
|
+
if (properties[keys[i]] != null)
|
|
73119
|
+
this[keys[i]] = properties[keys[i]];
|
|
73120
|
+
}
|
|
73121
|
+
|
|
73122
|
+
/**
|
|
73123
|
+
* ResetUserPasswordInAppResponse status.
|
|
73124
|
+
* @member {StatusCode} status
|
|
73125
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73126
|
+
* @instance
|
|
73127
|
+
*/
|
|
73128
|
+
ResetUserPasswordInAppResponse.prototype.status = 0;
|
|
73129
|
+
|
|
73130
|
+
/**
|
|
73131
|
+
* ResetUserPasswordInAppResponse errors.
|
|
73132
|
+
* @member {Array.<IError>} errors
|
|
73133
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73134
|
+
* @instance
|
|
73135
|
+
*/
|
|
73136
|
+
ResetUserPasswordInAppResponse.prototype.errors = $util.emptyArray;
|
|
73137
|
+
|
|
73138
|
+
/**
|
|
73139
|
+
* Creates a new ResetUserPasswordInAppResponse instance using the specified properties.
|
|
73140
|
+
* @function create
|
|
73141
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73142
|
+
* @static
|
|
73143
|
+
* @param {IResetUserPasswordInAppResponse=} [properties] Properties to set
|
|
73144
|
+
* @returns {ResetUserPasswordInAppResponse} ResetUserPasswordInAppResponse instance
|
|
73145
|
+
*/
|
|
73146
|
+
ResetUserPasswordInAppResponse.create = function create(properties) {
|
|
73147
|
+
return new ResetUserPasswordInAppResponse(properties);
|
|
73148
|
+
};
|
|
73149
|
+
|
|
73150
|
+
/**
|
|
73151
|
+
* Encodes the specified ResetUserPasswordInAppResponse message. Does not implicitly {@link ResetUserPasswordInAppResponse.verify|verify} messages.
|
|
73152
|
+
* @function encode
|
|
73153
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73154
|
+
* @static
|
|
73155
|
+
* @param {IResetUserPasswordInAppResponse} message ResetUserPasswordInAppResponse message or plain object to encode
|
|
73156
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73157
|
+
* @returns {$protobuf.Writer} Writer
|
|
73158
|
+
*/
|
|
73159
|
+
ResetUserPasswordInAppResponse.encode = function encode(message, writer) {
|
|
73160
|
+
if (!writer)
|
|
73161
|
+
writer = $Writer.create();
|
|
73162
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
73163
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
73164
|
+
if (message.errors != null && message.errors.length)
|
|
73165
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
73166
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
73167
|
+
return writer;
|
|
73168
|
+
};
|
|
73169
|
+
|
|
73170
|
+
/**
|
|
73171
|
+
* Encodes the specified ResetUserPasswordInAppResponse message, length delimited. Does not implicitly {@link ResetUserPasswordInAppResponse.verify|verify} messages.
|
|
73172
|
+
* @function encodeDelimited
|
|
73173
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73174
|
+
* @static
|
|
73175
|
+
* @param {IResetUserPasswordInAppResponse} message ResetUserPasswordInAppResponse message or plain object to encode
|
|
73176
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73177
|
+
* @returns {$protobuf.Writer} Writer
|
|
73178
|
+
*/
|
|
73179
|
+
ResetUserPasswordInAppResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
73180
|
+
return this.encode(message, writer).ldelim();
|
|
73181
|
+
};
|
|
73182
|
+
|
|
73183
|
+
/**
|
|
73184
|
+
* Decodes a ResetUserPasswordInAppResponse message from the specified reader or buffer.
|
|
73185
|
+
* @function decode
|
|
73186
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73187
|
+
* @static
|
|
73188
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73189
|
+
* @param {number} [length] Message length if known beforehand
|
|
73190
|
+
* @returns {ResetUserPasswordInAppResponse} ResetUserPasswordInAppResponse
|
|
73191
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73192
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73193
|
+
*/
|
|
73194
|
+
ResetUserPasswordInAppResponse.decode = function decode(reader, length) {
|
|
73195
|
+
if (!(reader instanceof $Reader))
|
|
73196
|
+
reader = $Reader.create(reader);
|
|
73197
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ResetUserPasswordInAppResponse();
|
|
73198
|
+
while (reader.pos < end) {
|
|
73199
|
+
var tag = reader.uint32();
|
|
73200
|
+
switch (tag >>> 3) {
|
|
73201
|
+
case 1:
|
|
73202
|
+
message.status = reader.int32();
|
|
73203
|
+
break;
|
|
73204
|
+
case 2:
|
|
73205
|
+
if (!(message.errors && message.errors.length))
|
|
73206
|
+
message.errors = [];
|
|
73207
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
73208
|
+
break;
|
|
73209
|
+
default:
|
|
73210
|
+
reader.skipType(tag & 7);
|
|
73211
|
+
break;
|
|
73212
|
+
}
|
|
73213
|
+
}
|
|
73214
|
+
return message;
|
|
73215
|
+
};
|
|
73216
|
+
|
|
73217
|
+
/**
|
|
73218
|
+
* Decodes a ResetUserPasswordInAppResponse message from the specified reader or buffer, length delimited.
|
|
73219
|
+
* @function decodeDelimited
|
|
73220
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73221
|
+
* @static
|
|
73222
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73223
|
+
* @returns {ResetUserPasswordInAppResponse} ResetUserPasswordInAppResponse
|
|
73224
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73225
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73226
|
+
*/
|
|
73227
|
+
ResetUserPasswordInAppResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
73228
|
+
if (!(reader instanceof $Reader))
|
|
73229
|
+
reader = new $Reader(reader);
|
|
73230
|
+
return this.decode(reader, reader.uint32());
|
|
73231
|
+
};
|
|
73232
|
+
|
|
73233
|
+
/**
|
|
73234
|
+
* Verifies a ResetUserPasswordInAppResponse message.
|
|
73235
|
+
* @function verify
|
|
73236
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73237
|
+
* @static
|
|
73238
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
73239
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
73240
|
+
*/
|
|
73241
|
+
ResetUserPasswordInAppResponse.verify = function verify(message) {
|
|
73242
|
+
if (typeof message !== "object" || message === null)
|
|
73243
|
+
return "object expected";
|
|
73244
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
73245
|
+
switch (message.status) {
|
|
73246
|
+
default:
|
|
73247
|
+
return "status: enum value expected";
|
|
73248
|
+
case 0:
|
|
73249
|
+
case 200:
|
|
73250
|
+
case 400:
|
|
73251
|
+
case 401:
|
|
73252
|
+
case 403:
|
|
73253
|
+
case 422:
|
|
73254
|
+
case 500:
|
|
73255
|
+
case 504:
|
|
73256
|
+
break;
|
|
73257
|
+
}
|
|
73258
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
73259
|
+
if (!Array.isArray(message.errors))
|
|
73260
|
+
return "errors: array expected";
|
|
73261
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
73262
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
73263
|
+
if (error)
|
|
73264
|
+
return "errors." + error;
|
|
73265
|
+
}
|
|
73266
|
+
}
|
|
73267
|
+
return null;
|
|
73268
|
+
};
|
|
73269
|
+
|
|
73270
|
+
/**
|
|
73271
|
+
* Creates a ResetUserPasswordInAppResponse message from a plain object. Also converts values to their respective internal types.
|
|
73272
|
+
* @function fromObject
|
|
73273
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73274
|
+
* @static
|
|
73275
|
+
* @param {Object.<string,*>} object Plain object
|
|
73276
|
+
* @returns {ResetUserPasswordInAppResponse} ResetUserPasswordInAppResponse
|
|
73277
|
+
*/
|
|
73278
|
+
ResetUserPasswordInAppResponse.fromObject = function fromObject(object) {
|
|
73279
|
+
if (object instanceof $root.ResetUserPasswordInAppResponse)
|
|
73280
|
+
return object;
|
|
73281
|
+
var message = new $root.ResetUserPasswordInAppResponse();
|
|
73282
|
+
switch (object.status) {
|
|
73283
|
+
case "UNKNOWN_CODE":
|
|
73284
|
+
case 0:
|
|
73285
|
+
message.status = 0;
|
|
73286
|
+
break;
|
|
73287
|
+
case "OK":
|
|
73288
|
+
case 200:
|
|
73289
|
+
message.status = 200;
|
|
73290
|
+
break;
|
|
73291
|
+
case "BAD_REQUEST":
|
|
73292
|
+
case 400:
|
|
73293
|
+
message.status = 400;
|
|
73294
|
+
break;
|
|
73295
|
+
case "UNAUTHORIZED":
|
|
73296
|
+
case 401:
|
|
73297
|
+
message.status = 401;
|
|
73298
|
+
break;
|
|
73299
|
+
case "FORBIDDEN":
|
|
73300
|
+
case 403:
|
|
73301
|
+
message.status = 403;
|
|
73302
|
+
break;
|
|
73303
|
+
case "UNPROCESSABLE_ENTITY":
|
|
73304
|
+
case 422:
|
|
73305
|
+
message.status = 422;
|
|
73306
|
+
break;
|
|
73307
|
+
case "INTERNAL_SERVER_ERROR":
|
|
73308
|
+
case 500:
|
|
73309
|
+
message.status = 500;
|
|
73310
|
+
break;
|
|
73311
|
+
case "GATEWAY_TIMEOUT":
|
|
73312
|
+
case 504:
|
|
73313
|
+
message.status = 504;
|
|
73314
|
+
break;
|
|
73315
|
+
}
|
|
73316
|
+
if (object.errors) {
|
|
73317
|
+
if (!Array.isArray(object.errors))
|
|
73318
|
+
throw TypeError(".ResetUserPasswordInAppResponse.errors: array expected");
|
|
73319
|
+
message.errors = [];
|
|
73320
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
73321
|
+
if (typeof object.errors[i] !== "object")
|
|
73322
|
+
throw TypeError(".ResetUserPasswordInAppResponse.errors: object expected");
|
|
73323
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
73324
|
+
}
|
|
73325
|
+
}
|
|
73326
|
+
return message;
|
|
73327
|
+
};
|
|
73328
|
+
|
|
73329
|
+
/**
|
|
73330
|
+
* Creates a plain object from a ResetUserPasswordInAppResponse message. Also converts values to other types if specified.
|
|
73331
|
+
* @function toObject
|
|
73332
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73333
|
+
* @static
|
|
73334
|
+
* @param {ResetUserPasswordInAppResponse} message ResetUserPasswordInAppResponse
|
|
73335
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73336
|
+
* @returns {Object.<string,*>} Plain object
|
|
73337
|
+
*/
|
|
73338
|
+
ResetUserPasswordInAppResponse.toObject = function toObject(message, options) {
|
|
73339
|
+
if (!options)
|
|
73340
|
+
options = {};
|
|
73341
|
+
var object = {};
|
|
73342
|
+
if (options.arrays || options.defaults)
|
|
73343
|
+
object.errors = [];
|
|
73344
|
+
if (options.defaults)
|
|
73345
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
73346
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
73347
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
73348
|
+
if (message.errors && message.errors.length) {
|
|
73349
|
+
object.errors = [];
|
|
73350
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
73351
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
73352
|
+
}
|
|
73353
|
+
return object;
|
|
73354
|
+
};
|
|
73355
|
+
|
|
73356
|
+
/**
|
|
73357
|
+
* Converts this ResetUserPasswordInAppResponse to JSON.
|
|
73358
|
+
* @function toJSON
|
|
73359
|
+
* @memberof ResetUserPasswordInAppResponse
|
|
73360
|
+
* @instance
|
|
73361
|
+
* @returns {Object.<string,*>} JSON object
|
|
73362
|
+
*/
|
|
73363
|
+
ResetUserPasswordInAppResponse.prototype.toJSON = function toJSON() {
|
|
73364
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73365
|
+
};
|
|
73366
|
+
|
|
73367
|
+
return ResetUserPasswordInAppResponse;
|
|
73368
|
+
})();
|
|
73369
|
+
|
|
72781
73370
|
$root.SetUserPasswordRequest = (function() {
|
|
72782
73371
|
|
|
72783
73372
|
/**
|
|
@@ -73763,32 +74352,544 @@ $root.FindUserByIdResponse = (function() {
|
|
|
73763
74352
|
}
|
|
73764
74353
|
if (object.errors) {
|
|
73765
74354
|
if (!Array.isArray(object.errors))
|
|
73766
|
-
throw TypeError(".FindUserByIdResponse.errors: array expected");
|
|
74355
|
+
throw TypeError(".FindUserByIdResponse.errors: array expected");
|
|
74356
|
+
message.errors = [];
|
|
74357
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
74358
|
+
if (typeof object.errors[i] !== "object")
|
|
74359
|
+
throw TypeError(".FindUserByIdResponse.errors: object expected");
|
|
74360
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
74361
|
+
}
|
|
74362
|
+
}
|
|
74363
|
+
if (object.user != null) {
|
|
74364
|
+
if (typeof object.user !== "object")
|
|
74365
|
+
throw TypeError(".FindUserByIdResponse.user: object expected");
|
|
74366
|
+
message.user = $root.User.fromObject(object.user);
|
|
74367
|
+
}
|
|
74368
|
+
return message;
|
|
74369
|
+
};
|
|
74370
|
+
|
|
74371
|
+
/**
|
|
74372
|
+
* Creates a plain object from a FindUserByIdResponse message. Also converts values to other types if specified.
|
|
74373
|
+
* @function toObject
|
|
74374
|
+
* @memberof FindUserByIdResponse
|
|
74375
|
+
* @static
|
|
74376
|
+
* @param {FindUserByIdResponse} message FindUserByIdResponse
|
|
74377
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
74378
|
+
* @returns {Object.<string,*>} Plain object
|
|
74379
|
+
*/
|
|
74380
|
+
FindUserByIdResponse.toObject = function toObject(message, options) {
|
|
74381
|
+
if (!options)
|
|
74382
|
+
options = {};
|
|
74383
|
+
var object = {};
|
|
74384
|
+
if (options.arrays || options.defaults)
|
|
74385
|
+
object.errors = [];
|
|
74386
|
+
if (options.defaults) {
|
|
74387
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
74388
|
+
object.user = null;
|
|
74389
|
+
}
|
|
74390
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
74391
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
74392
|
+
if (message.errors && message.errors.length) {
|
|
74393
|
+
object.errors = [];
|
|
74394
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
74395
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
74396
|
+
}
|
|
74397
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
74398
|
+
object.user = $root.User.toObject(message.user, options);
|
|
74399
|
+
return object;
|
|
74400
|
+
};
|
|
74401
|
+
|
|
74402
|
+
/**
|
|
74403
|
+
* Converts this FindUserByIdResponse to JSON.
|
|
74404
|
+
* @function toJSON
|
|
74405
|
+
* @memberof FindUserByIdResponse
|
|
74406
|
+
* @instance
|
|
74407
|
+
* @returns {Object.<string,*>} JSON object
|
|
74408
|
+
*/
|
|
74409
|
+
FindUserByIdResponse.prototype.toJSON = function toJSON() {
|
|
74410
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
74411
|
+
};
|
|
74412
|
+
|
|
74413
|
+
return FindUserByIdResponse;
|
|
74414
|
+
})();
|
|
74415
|
+
|
|
74416
|
+
$root.FindUserByEmailRequest = (function() {
|
|
74417
|
+
|
|
74418
|
+
/**
|
|
74419
|
+
* Properties of a FindUserByEmailRequest.
|
|
74420
|
+
* @exports IFindUserByEmailRequest
|
|
74421
|
+
* @interface IFindUserByEmailRequest
|
|
74422
|
+
* @property {string|null} [spanContext] FindUserByEmailRequest spanContext
|
|
74423
|
+
* @property {string|null} [email] FindUserByEmailRequest email
|
|
74424
|
+
*/
|
|
74425
|
+
|
|
74426
|
+
/**
|
|
74427
|
+
* Constructs a new FindUserByEmailRequest.
|
|
74428
|
+
* @exports FindUserByEmailRequest
|
|
74429
|
+
* @classdesc Represents a FindUserByEmailRequest.
|
|
74430
|
+
* @implements IFindUserByEmailRequest
|
|
74431
|
+
* @constructor
|
|
74432
|
+
* @param {IFindUserByEmailRequest=} [properties] Properties to set
|
|
74433
|
+
*/
|
|
74434
|
+
function FindUserByEmailRequest(properties) {
|
|
74435
|
+
if (properties)
|
|
74436
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
74437
|
+
if (properties[keys[i]] != null)
|
|
74438
|
+
this[keys[i]] = properties[keys[i]];
|
|
74439
|
+
}
|
|
74440
|
+
|
|
74441
|
+
/**
|
|
74442
|
+
* FindUserByEmailRequest spanContext.
|
|
74443
|
+
* @member {string} spanContext
|
|
74444
|
+
* @memberof FindUserByEmailRequest
|
|
74445
|
+
* @instance
|
|
74446
|
+
*/
|
|
74447
|
+
FindUserByEmailRequest.prototype.spanContext = "";
|
|
74448
|
+
|
|
74449
|
+
/**
|
|
74450
|
+
* FindUserByEmailRequest email.
|
|
74451
|
+
* @member {string} email
|
|
74452
|
+
* @memberof FindUserByEmailRequest
|
|
74453
|
+
* @instance
|
|
74454
|
+
*/
|
|
74455
|
+
FindUserByEmailRequest.prototype.email = "";
|
|
74456
|
+
|
|
74457
|
+
/**
|
|
74458
|
+
* Creates a new FindUserByEmailRequest instance using the specified properties.
|
|
74459
|
+
* @function create
|
|
74460
|
+
* @memberof FindUserByEmailRequest
|
|
74461
|
+
* @static
|
|
74462
|
+
* @param {IFindUserByEmailRequest=} [properties] Properties to set
|
|
74463
|
+
* @returns {FindUserByEmailRequest} FindUserByEmailRequest instance
|
|
74464
|
+
*/
|
|
74465
|
+
FindUserByEmailRequest.create = function create(properties) {
|
|
74466
|
+
return new FindUserByEmailRequest(properties);
|
|
74467
|
+
};
|
|
74468
|
+
|
|
74469
|
+
/**
|
|
74470
|
+
* Encodes the specified FindUserByEmailRequest message. Does not implicitly {@link FindUserByEmailRequest.verify|verify} messages.
|
|
74471
|
+
* @function encode
|
|
74472
|
+
* @memberof FindUserByEmailRequest
|
|
74473
|
+
* @static
|
|
74474
|
+
* @param {IFindUserByEmailRequest} message FindUserByEmailRequest message or plain object to encode
|
|
74475
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74476
|
+
* @returns {$protobuf.Writer} Writer
|
|
74477
|
+
*/
|
|
74478
|
+
FindUserByEmailRequest.encode = function encode(message, writer) {
|
|
74479
|
+
if (!writer)
|
|
74480
|
+
writer = $Writer.create();
|
|
74481
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
74482
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
|
|
74483
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
74484
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
74485
|
+
return writer;
|
|
74486
|
+
};
|
|
74487
|
+
|
|
74488
|
+
/**
|
|
74489
|
+
* Encodes the specified FindUserByEmailRequest message, length delimited. Does not implicitly {@link FindUserByEmailRequest.verify|verify} messages.
|
|
74490
|
+
* @function encodeDelimited
|
|
74491
|
+
* @memberof FindUserByEmailRequest
|
|
74492
|
+
* @static
|
|
74493
|
+
* @param {IFindUserByEmailRequest} message FindUserByEmailRequest message or plain object to encode
|
|
74494
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74495
|
+
* @returns {$protobuf.Writer} Writer
|
|
74496
|
+
*/
|
|
74497
|
+
FindUserByEmailRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
74498
|
+
return this.encode(message, writer).ldelim();
|
|
74499
|
+
};
|
|
74500
|
+
|
|
74501
|
+
/**
|
|
74502
|
+
* Decodes a FindUserByEmailRequest message from the specified reader or buffer.
|
|
74503
|
+
* @function decode
|
|
74504
|
+
* @memberof FindUserByEmailRequest
|
|
74505
|
+
* @static
|
|
74506
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74507
|
+
* @param {number} [length] Message length if known beforehand
|
|
74508
|
+
* @returns {FindUserByEmailRequest} FindUserByEmailRequest
|
|
74509
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74510
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74511
|
+
*/
|
|
74512
|
+
FindUserByEmailRequest.decode = function decode(reader, length) {
|
|
74513
|
+
if (!(reader instanceof $Reader))
|
|
74514
|
+
reader = $Reader.create(reader);
|
|
74515
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FindUserByEmailRequest();
|
|
74516
|
+
while (reader.pos < end) {
|
|
74517
|
+
var tag = reader.uint32();
|
|
74518
|
+
switch (tag >>> 3) {
|
|
74519
|
+
case 1:
|
|
74520
|
+
message.spanContext = reader.string();
|
|
74521
|
+
break;
|
|
74522
|
+
case 2:
|
|
74523
|
+
message.email = reader.string();
|
|
74524
|
+
break;
|
|
74525
|
+
default:
|
|
74526
|
+
reader.skipType(tag & 7);
|
|
74527
|
+
break;
|
|
74528
|
+
}
|
|
74529
|
+
}
|
|
74530
|
+
return message;
|
|
74531
|
+
};
|
|
74532
|
+
|
|
74533
|
+
/**
|
|
74534
|
+
* Decodes a FindUserByEmailRequest message from the specified reader or buffer, length delimited.
|
|
74535
|
+
* @function decodeDelimited
|
|
74536
|
+
* @memberof FindUserByEmailRequest
|
|
74537
|
+
* @static
|
|
74538
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74539
|
+
* @returns {FindUserByEmailRequest} FindUserByEmailRequest
|
|
74540
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74541
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74542
|
+
*/
|
|
74543
|
+
FindUserByEmailRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
74544
|
+
if (!(reader instanceof $Reader))
|
|
74545
|
+
reader = new $Reader(reader);
|
|
74546
|
+
return this.decode(reader, reader.uint32());
|
|
74547
|
+
};
|
|
74548
|
+
|
|
74549
|
+
/**
|
|
74550
|
+
* Verifies a FindUserByEmailRequest message.
|
|
74551
|
+
* @function verify
|
|
74552
|
+
* @memberof FindUserByEmailRequest
|
|
74553
|
+
* @static
|
|
74554
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
74555
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
74556
|
+
*/
|
|
74557
|
+
FindUserByEmailRequest.verify = function verify(message) {
|
|
74558
|
+
if (typeof message !== "object" || message === null)
|
|
74559
|
+
return "object expected";
|
|
74560
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
74561
|
+
if (!$util.isString(message.spanContext))
|
|
74562
|
+
return "spanContext: string expected";
|
|
74563
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
74564
|
+
if (!$util.isString(message.email))
|
|
74565
|
+
return "email: string expected";
|
|
74566
|
+
return null;
|
|
74567
|
+
};
|
|
74568
|
+
|
|
74569
|
+
/**
|
|
74570
|
+
* Creates a FindUserByEmailRequest message from a plain object. Also converts values to their respective internal types.
|
|
74571
|
+
* @function fromObject
|
|
74572
|
+
* @memberof FindUserByEmailRequest
|
|
74573
|
+
* @static
|
|
74574
|
+
* @param {Object.<string,*>} object Plain object
|
|
74575
|
+
* @returns {FindUserByEmailRequest} FindUserByEmailRequest
|
|
74576
|
+
*/
|
|
74577
|
+
FindUserByEmailRequest.fromObject = function fromObject(object) {
|
|
74578
|
+
if (object instanceof $root.FindUserByEmailRequest)
|
|
74579
|
+
return object;
|
|
74580
|
+
var message = new $root.FindUserByEmailRequest();
|
|
74581
|
+
if (object.spanContext != null)
|
|
74582
|
+
message.spanContext = String(object.spanContext);
|
|
74583
|
+
if (object.email != null)
|
|
74584
|
+
message.email = String(object.email);
|
|
74585
|
+
return message;
|
|
74586
|
+
};
|
|
74587
|
+
|
|
74588
|
+
/**
|
|
74589
|
+
* Creates a plain object from a FindUserByEmailRequest message. Also converts values to other types if specified.
|
|
74590
|
+
* @function toObject
|
|
74591
|
+
* @memberof FindUserByEmailRequest
|
|
74592
|
+
* @static
|
|
74593
|
+
* @param {FindUserByEmailRequest} message FindUserByEmailRequest
|
|
74594
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
74595
|
+
* @returns {Object.<string,*>} Plain object
|
|
74596
|
+
*/
|
|
74597
|
+
FindUserByEmailRequest.toObject = function toObject(message, options) {
|
|
74598
|
+
if (!options)
|
|
74599
|
+
options = {};
|
|
74600
|
+
var object = {};
|
|
74601
|
+
if (options.defaults) {
|
|
74602
|
+
object.spanContext = "";
|
|
74603
|
+
object.email = "";
|
|
74604
|
+
}
|
|
74605
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
74606
|
+
object.spanContext = message.spanContext;
|
|
74607
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
74608
|
+
object.email = message.email;
|
|
74609
|
+
return object;
|
|
74610
|
+
};
|
|
74611
|
+
|
|
74612
|
+
/**
|
|
74613
|
+
* Converts this FindUserByEmailRequest to JSON.
|
|
74614
|
+
* @function toJSON
|
|
74615
|
+
* @memberof FindUserByEmailRequest
|
|
74616
|
+
* @instance
|
|
74617
|
+
* @returns {Object.<string,*>} JSON object
|
|
74618
|
+
*/
|
|
74619
|
+
FindUserByEmailRequest.prototype.toJSON = function toJSON() {
|
|
74620
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
74621
|
+
};
|
|
74622
|
+
|
|
74623
|
+
return FindUserByEmailRequest;
|
|
74624
|
+
})();
|
|
74625
|
+
|
|
74626
|
+
$root.FindUserByEmailResponse = (function() {
|
|
74627
|
+
|
|
74628
|
+
/**
|
|
74629
|
+
* Properties of a FindUserByEmailResponse.
|
|
74630
|
+
* @exports IFindUserByEmailResponse
|
|
74631
|
+
* @interface IFindUserByEmailResponse
|
|
74632
|
+
* @property {StatusCode|null} [status] FindUserByEmailResponse status
|
|
74633
|
+
* @property {Array.<IError>|null} [errors] FindUserByEmailResponse errors
|
|
74634
|
+
* @property {IUser|null} [user] FindUserByEmailResponse user
|
|
74635
|
+
*/
|
|
74636
|
+
|
|
74637
|
+
/**
|
|
74638
|
+
* Constructs a new FindUserByEmailResponse.
|
|
74639
|
+
* @exports FindUserByEmailResponse
|
|
74640
|
+
* @classdesc Represents a FindUserByEmailResponse.
|
|
74641
|
+
* @implements IFindUserByEmailResponse
|
|
74642
|
+
* @constructor
|
|
74643
|
+
* @param {IFindUserByEmailResponse=} [properties] Properties to set
|
|
74644
|
+
*/
|
|
74645
|
+
function FindUserByEmailResponse(properties) {
|
|
74646
|
+
this.errors = [];
|
|
74647
|
+
if (properties)
|
|
74648
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
74649
|
+
if (properties[keys[i]] != null)
|
|
74650
|
+
this[keys[i]] = properties[keys[i]];
|
|
74651
|
+
}
|
|
74652
|
+
|
|
74653
|
+
/**
|
|
74654
|
+
* FindUserByEmailResponse status.
|
|
74655
|
+
* @member {StatusCode} status
|
|
74656
|
+
* @memberof FindUserByEmailResponse
|
|
74657
|
+
* @instance
|
|
74658
|
+
*/
|
|
74659
|
+
FindUserByEmailResponse.prototype.status = 0;
|
|
74660
|
+
|
|
74661
|
+
/**
|
|
74662
|
+
* FindUserByEmailResponse errors.
|
|
74663
|
+
* @member {Array.<IError>} errors
|
|
74664
|
+
* @memberof FindUserByEmailResponse
|
|
74665
|
+
* @instance
|
|
74666
|
+
*/
|
|
74667
|
+
FindUserByEmailResponse.prototype.errors = $util.emptyArray;
|
|
74668
|
+
|
|
74669
|
+
/**
|
|
74670
|
+
* FindUserByEmailResponse user.
|
|
74671
|
+
* @member {IUser|null|undefined} user
|
|
74672
|
+
* @memberof FindUserByEmailResponse
|
|
74673
|
+
* @instance
|
|
74674
|
+
*/
|
|
74675
|
+
FindUserByEmailResponse.prototype.user = null;
|
|
74676
|
+
|
|
74677
|
+
/**
|
|
74678
|
+
* Creates a new FindUserByEmailResponse instance using the specified properties.
|
|
74679
|
+
* @function create
|
|
74680
|
+
* @memberof FindUserByEmailResponse
|
|
74681
|
+
* @static
|
|
74682
|
+
* @param {IFindUserByEmailResponse=} [properties] Properties to set
|
|
74683
|
+
* @returns {FindUserByEmailResponse} FindUserByEmailResponse instance
|
|
74684
|
+
*/
|
|
74685
|
+
FindUserByEmailResponse.create = function create(properties) {
|
|
74686
|
+
return new FindUserByEmailResponse(properties);
|
|
74687
|
+
};
|
|
74688
|
+
|
|
74689
|
+
/**
|
|
74690
|
+
* Encodes the specified FindUserByEmailResponse message. Does not implicitly {@link FindUserByEmailResponse.verify|verify} messages.
|
|
74691
|
+
* @function encode
|
|
74692
|
+
* @memberof FindUserByEmailResponse
|
|
74693
|
+
* @static
|
|
74694
|
+
* @param {IFindUserByEmailResponse} message FindUserByEmailResponse message or plain object to encode
|
|
74695
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74696
|
+
* @returns {$protobuf.Writer} Writer
|
|
74697
|
+
*/
|
|
74698
|
+
FindUserByEmailResponse.encode = function encode(message, writer) {
|
|
74699
|
+
if (!writer)
|
|
74700
|
+
writer = $Writer.create();
|
|
74701
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
74702
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
74703
|
+
if (message.errors != null && message.errors.length)
|
|
74704
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
74705
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
74706
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
74707
|
+
$root.User.encode(message.user, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
74708
|
+
return writer;
|
|
74709
|
+
};
|
|
74710
|
+
|
|
74711
|
+
/**
|
|
74712
|
+
* Encodes the specified FindUserByEmailResponse message, length delimited. Does not implicitly {@link FindUserByEmailResponse.verify|verify} messages.
|
|
74713
|
+
* @function encodeDelimited
|
|
74714
|
+
* @memberof FindUserByEmailResponse
|
|
74715
|
+
* @static
|
|
74716
|
+
* @param {IFindUserByEmailResponse} message FindUserByEmailResponse message or plain object to encode
|
|
74717
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74718
|
+
* @returns {$protobuf.Writer} Writer
|
|
74719
|
+
*/
|
|
74720
|
+
FindUserByEmailResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
74721
|
+
return this.encode(message, writer).ldelim();
|
|
74722
|
+
};
|
|
74723
|
+
|
|
74724
|
+
/**
|
|
74725
|
+
* Decodes a FindUserByEmailResponse message from the specified reader or buffer.
|
|
74726
|
+
* @function decode
|
|
74727
|
+
* @memberof FindUserByEmailResponse
|
|
74728
|
+
* @static
|
|
74729
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74730
|
+
* @param {number} [length] Message length if known beforehand
|
|
74731
|
+
* @returns {FindUserByEmailResponse} FindUserByEmailResponse
|
|
74732
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74733
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74734
|
+
*/
|
|
74735
|
+
FindUserByEmailResponse.decode = function decode(reader, length) {
|
|
74736
|
+
if (!(reader instanceof $Reader))
|
|
74737
|
+
reader = $Reader.create(reader);
|
|
74738
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FindUserByEmailResponse();
|
|
74739
|
+
while (reader.pos < end) {
|
|
74740
|
+
var tag = reader.uint32();
|
|
74741
|
+
switch (tag >>> 3) {
|
|
74742
|
+
case 1:
|
|
74743
|
+
message.status = reader.int32();
|
|
74744
|
+
break;
|
|
74745
|
+
case 2:
|
|
74746
|
+
if (!(message.errors && message.errors.length))
|
|
74747
|
+
message.errors = [];
|
|
74748
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
74749
|
+
break;
|
|
74750
|
+
case 3:
|
|
74751
|
+
message.user = $root.User.decode(reader, reader.uint32());
|
|
74752
|
+
break;
|
|
74753
|
+
default:
|
|
74754
|
+
reader.skipType(tag & 7);
|
|
74755
|
+
break;
|
|
74756
|
+
}
|
|
74757
|
+
}
|
|
74758
|
+
return message;
|
|
74759
|
+
};
|
|
74760
|
+
|
|
74761
|
+
/**
|
|
74762
|
+
* Decodes a FindUserByEmailResponse message from the specified reader or buffer, length delimited.
|
|
74763
|
+
* @function decodeDelimited
|
|
74764
|
+
* @memberof FindUserByEmailResponse
|
|
74765
|
+
* @static
|
|
74766
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74767
|
+
* @returns {FindUserByEmailResponse} FindUserByEmailResponse
|
|
74768
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74769
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74770
|
+
*/
|
|
74771
|
+
FindUserByEmailResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
74772
|
+
if (!(reader instanceof $Reader))
|
|
74773
|
+
reader = new $Reader(reader);
|
|
74774
|
+
return this.decode(reader, reader.uint32());
|
|
74775
|
+
};
|
|
74776
|
+
|
|
74777
|
+
/**
|
|
74778
|
+
* Verifies a FindUserByEmailResponse message.
|
|
74779
|
+
* @function verify
|
|
74780
|
+
* @memberof FindUserByEmailResponse
|
|
74781
|
+
* @static
|
|
74782
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
74783
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
74784
|
+
*/
|
|
74785
|
+
FindUserByEmailResponse.verify = function verify(message) {
|
|
74786
|
+
if (typeof message !== "object" || message === null)
|
|
74787
|
+
return "object expected";
|
|
74788
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
74789
|
+
switch (message.status) {
|
|
74790
|
+
default:
|
|
74791
|
+
return "status: enum value expected";
|
|
74792
|
+
case 0:
|
|
74793
|
+
case 200:
|
|
74794
|
+
case 400:
|
|
74795
|
+
case 401:
|
|
74796
|
+
case 403:
|
|
74797
|
+
case 422:
|
|
74798
|
+
case 500:
|
|
74799
|
+
case 504:
|
|
74800
|
+
break;
|
|
74801
|
+
}
|
|
74802
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
74803
|
+
if (!Array.isArray(message.errors))
|
|
74804
|
+
return "errors: array expected";
|
|
74805
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
74806
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
74807
|
+
if (error)
|
|
74808
|
+
return "errors." + error;
|
|
74809
|
+
}
|
|
74810
|
+
}
|
|
74811
|
+
if (message.user != null && message.hasOwnProperty("user")) {
|
|
74812
|
+
var error = $root.User.verify(message.user);
|
|
74813
|
+
if (error)
|
|
74814
|
+
return "user." + error;
|
|
74815
|
+
}
|
|
74816
|
+
return null;
|
|
74817
|
+
};
|
|
74818
|
+
|
|
74819
|
+
/**
|
|
74820
|
+
* Creates a FindUserByEmailResponse message from a plain object. Also converts values to their respective internal types.
|
|
74821
|
+
* @function fromObject
|
|
74822
|
+
* @memberof FindUserByEmailResponse
|
|
74823
|
+
* @static
|
|
74824
|
+
* @param {Object.<string,*>} object Plain object
|
|
74825
|
+
* @returns {FindUserByEmailResponse} FindUserByEmailResponse
|
|
74826
|
+
*/
|
|
74827
|
+
FindUserByEmailResponse.fromObject = function fromObject(object) {
|
|
74828
|
+
if (object instanceof $root.FindUserByEmailResponse)
|
|
74829
|
+
return object;
|
|
74830
|
+
var message = new $root.FindUserByEmailResponse();
|
|
74831
|
+
switch (object.status) {
|
|
74832
|
+
case "UNKNOWN_CODE":
|
|
74833
|
+
case 0:
|
|
74834
|
+
message.status = 0;
|
|
74835
|
+
break;
|
|
74836
|
+
case "OK":
|
|
74837
|
+
case 200:
|
|
74838
|
+
message.status = 200;
|
|
74839
|
+
break;
|
|
74840
|
+
case "BAD_REQUEST":
|
|
74841
|
+
case 400:
|
|
74842
|
+
message.status = 400;
|
|
74843
|
+
break;
|
|
74844
|
+
case "UNAUTHORIZED":
|
|
74845
|
+
case 401:
|
|
74846
|
+
message.status = 401;
|
|
74847
|
+
break;
|
|
74848
|
+
case "FORBIDDEN":
|
|
74849
|
+
case 403:
|
|
74850
|
+
message.status = 403;
|
|
74851
|
+
break;
|
|
74852
|
+
case "UNPROCESSABLE_ENTITY":
|
|
74853
|
+
case 422:
|
|
74854
|
+
message.status = 422;
|
|
74855
|
+
break;
|
|
74856
|
+
case "INTERNAL_SERVER_ERROR":
|
|
74857
|
+
case 500:
|
|
74858
|
+
message.status = 500;
|
|
74859
|
+
break;
|
|
74860
|
+
case "GATEWAY_TIMEOUT":
|
|
74861
|
+
case 504:
|
|
74862
|
+
message.status = 504;
|
|
74863
|
+
break;
|
|
74864
|
+
}
|
|
74865
|
+
if (object.errors) {
|
|
74866
|
+
if (!Array.isArray(object.errors))
|
|
74867
|
+
throw TypeError(".FindUserByEmailResponse.errors: array expected");
|
|
73767
74868
|
message.errors = [];
|
|
73768
74869
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
73769
74870
|
if (typeof object.errors[i] !== "object")
|
|
73770
|
-
throw TypeError(".
|
|
74871
|
+
throw TypeError(".FindUserByEmailResponse.errors: object expected");
|
|
73771
74872
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
73772
74873
|
}
|
|
73773
74874
|
}
|
|
73774
74875
|
if (object.user != null) {
|
|
73775
74876
|
if (typeof object.user !== "object")
|
|
73776
|
-
throw TypeError(".
|
|
74877
|
+
throw TypeError(".FindUserByEmailResponse.user: object expected");
|
|
73777
74878
|
message.user = $root.User.fromObject(object.user);
|
|
73778
74879
|
}
|
|
73779
74880
|
return message;
|
|
73780
74881
|
};
|
|
73781
74882
|
|
|
73782
74883
|
/**
|
|
73783
|
-
* Creates a plain object from a
|
|
74884
|
+
* Creates a plain object from a FindUserByEmailResponse message. Also converts values to other types if specified.
|
|
73784
74885
|
* @function toObject
|
|
73785
|
-
* @memberof
|
|
74886
|
+
* @memberof FindUserByEmailResponse
|
|
73786
74887
|
* @static
|
|
73787
|
-
* @param {
|
|
74888
|
+
* @param {FindUserByEmailResponse} message FindUserByEmailResponse
|
|
73788
74889
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73789
74890
|
* @returns {Object.<string,*>} Plain object
|
|
73790
74891
|
*/
|
|
73791
|
-
|
|
74892
|
+
FindUserByEmailResponse.toObject = function toObject(message, options) {
|
|
73792
74893
|
if (!options)
|
|
73793
74894
|
options = {};
|
|
73794
74895
|
var object = {};
|
|
@@ -73811,38 +74912,41 @@ $root.FindUserByIdResponse = (function() {
|
|
|
73811
74912
|
};
|
|
73812
74913
|
|
|
73813
74914
|
/**
|
|
73814
|
-
* Converts this
|
|
74915
|
+
* Converts this FindUserByEmailResponse to JSON.
|
|
73815
74916
|
* @function toJSON
|
|
73816
|
-
* @memberof
|
|
74917
|
+
* @memberof FindUserByEmailResponse
|
|
73817
74918
|
* @instance
|
|
73818
74919
|
* @returns {Object.<string,*>} JSON object
|
|
73819
74920
|
*/
|
|
73820
|
-
|
|
74921
|
+
FindUserByEmailResponse.prototype.toJSON = function toJSON() {
|
|
73821
74922
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73822
74923
|
};
|
|
73823
74924
|
|
|
73824
|
-
return
|
|
74925
|
+
return FindUserByEmailResponse;
|
|
73825
74926
|
})();
|
|
73826
74927
|
|
|
73827
|
-
$root.
|
|
74928
|
+
$root.UpdateBasicUserInfoRequest = (function() {
|
|
73828
74929
|
|
|
73829
74930
|
/**
|
|
73830
|
-
* Properties of
|
|
73831
|
-
* @exports
|
|
73832
|
-
* @interface
|
|
73833
|
-
* @property {string|null} [spanContext]
|
|
73834
|
-
* @property {string|null} [
|
|
74931
|
+
* Properties of an UpdateBasicUserInfoRequest.
|
|
74932
|
+
* @exports IUpdateBasicUserInfoRequest
|
|
74933
|
+
* @interface IUpdateBasicUserInfoRequest
|
|
74934
|
+
* @property {string|null} [spanContext] UpdateBasicUserInfoRequest spanContext
|
|
74935
|
+
* @property {string|null} [userId] UpdateBasicUserInfoRequest userId
|
|
74936
|
+
* @property {string|null} [firstName] UpdateBasicUserInfoRequest firstName
|
|
74937
|
+
* @property {string|null} [lastName] UpdateBasicUserInfoRequest lastName
|
|
74938
|
+
* @property {string|null} [imageUrl] UpdateBasicUserInfoRequest imageUrl
|
|
73835
74939
|
*/
|
|
73836
74940
|
|
|
73837
74941
|
/**
|
|
73838
|
-
* Constructs a new
|
|
73839
|
-
* @exports
|
|
73840
|
-
* @classdesc Represents
|
|
73841
|
-
* @implements
|
|
74942
|
+
* Constructs a new UpdateBasicUserInfoRequest.
|
|
74943
|
+
* @exports UpdateBasicUserInfoRequest
|
|
74944
|
+
* @classdesc Represents an UpdateBasicUserInfoRequest.
|
|
74945
|
+
* @implements IUpdateBasicUserInfoRequest
|
|
73842
74946
|
* @constructor
|
|
73843
|
-
* @param {
|
|
74947
|
+
* @param {IUpdateBasicUserInfoRequest=} [properties] Properties to set
|
|
73844
74948
|
*/
|
|
73845
|
-
function
|
|
74949
|
+
function UpdateBasicUserInfoRequest(properties) {
|
|
73846
74950
|
if (properties)
|
|
73847
74951
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
73848
74952
|
if (properties[keys[i]] != null)
|
|
@@ -73850,80 +74954,110 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
73850
74954
|
}
|
|
73851
74955
|
|
|
73852
74956
|
/**
|
|
73853
|
-
*
|
|
74957
|
+
* UpdateBasicUserInfoRequest spanContext.
|
|
73854
74958
|
* @member {string} spanContext
|
|
73855
|
-
* @memberof
|
|
74959
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73856
74960
|
* @instance
|
|
73857
74961
|
*/
|
|
73858
|
-
|
|
74962
|
+
UpdateBasicUserInfoRequest.prototype.spanContext = "";
|
|
73859
74963
|
|
|
73860
74964
|
/**
|
|
73861
|
-
*
|
|
73862
|
-
* @member {string}
|
|
73863
|
-
* @memberof
|
|
74965
|
+
* UpdateBasicUserInfoRequest userId.
|
|
74966
|
+
* @member {string} userId
|
|
74967
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73864
74968
|
* @instance
|
|
73865
74969
|
*/
|
|
73866
|
-
|
|
74970
|
+
UpdateBasicUserInfoRequest.prototype.userId = "";
|
|
73867
74971
|
|
|
73868
74972
|
/**
|
|
73869
|
-
*
|
|
74973
|
+
* UpdateBasicUserInfoRequest firstName.
|
|
74974
|
+
* @member {string} firstName
|
|
74975
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
74976
|
+
* @instance
|
|
74977
|
+
*/
|
|
74978
|
+
UpdateBasicUserInfoRequest.prototype.firstName = "";
|
|
74979
|
+
|
|
74980
|
+
/**
|
|
74981
|
+
* UpdateBasicUserInfoRequest lastName.
|
|
74982
|
+
* @member {string} lastName
|
|
74983
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
74984
|
+
* @instance
|
|
74985
|
+
*/
|
|
74986
|
+
UpdateBasicUserInfoRequest.prototype.lastName = "";
|
|
74987
|
+
|
|
74988
|
+
/**
|
|
74989
|
+
* UpdateBasicUserInfoRequest imageUrl.
|
|
74990
|
+
* @member {string} imageUrl
|
|
74991
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
74992
|
+
* @instance
|
|
74993
|
+
*/
|
|
74994
|
+
UpdateBasicUserInfoRequest.prototype.imageUrl = "";
|
|
74995
|
+
|
|
74996
|
+
/**
|
|
74997
|
+
* Creates a new UpdateBasicUserInfoRequest instance using the specified properties.
|
|
73870
74998
|
* @function create
|
|
73871
|
-
* @memberof
|
|
74999
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73872
75000
|
* @static
|
|
73873
|
-
* @param {
|
|
73874
|
-
* @returns {
|
|
75001
|
+
* @param {IUpdateBasicUserInfoRequest=} [properties] Properties to set
|
|
75002
|
+
* @returns {UpdateBasicUserInfoRequest} UpdateBasicUserInfoRequest instance
|
|
73875
75003
|
*/
|
|
73876
|
-
|
|
73877
|
-
return new
|
|
75004
|
+
UpdateBasicUserInfoRequest.create = function create(properties) {
|
|
75005
|
+
return new UpdateBasicUserInfoRequest(properties);
|
|
73878
75006
|
};
|
|
73879
75007
|
|
|
73880
75008
|
/**
|
|
73881
|
-
* Encodes the specified
|
|
75009
|
+
* Encodes the specified UpdateBasicUserInfoRequest message. Does not implicitly {@link UpdateBasicUserInfoRequest.verify|verify} messages.
|
|
73882
75010
|
* @function encode
|
|
73883
|
-
* @memberof
|
|
75011
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73884
75012
|
* @static
|
|
73885
|
-
* @param {
|
|
75013
|
+
* @param {IUpdateBasicUserInfoRequest} message UpdateBasicUserInfoRequest message or plain object to encode
|
|
73886
75014
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73887
75015
|
* @returns {$protobuf.Writer} Writer
|
|
73888
75016
|
*/
|
|
73889
|
-
|
|
75017
|
+
UpdateBasicUserInfoRequest.encode = function encode(message, writer) {
|
|
73890
75018
|
if (!writer)
|
|
73891
75019
|
writer = $Writer.create();
|
|
73892
75020
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
73893
75021
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
|
|
73894
|
-
if (message.
|
|
73895
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.
|
|
75022
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
75023
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
75024
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
75025
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.firstName);
|
|
75026
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
75027
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
|
|
75028
|
+
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
75029
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageUrl);
|
|
73896
75030
|
return writer;
|
|
73897
75031
|
};
|
|
73898
75032
|
|
|
73899
75033
|
/**
|
|
73900
|
-
* Encodes the specified
|
|
75034
|
+
* Encodes the specified UpdateBasicUserInfoRequest message, length delimited. Does not implicitly {@link UpdateBasicUserInfoRequest.verify|verify} messages.
|
|
73901
75035
|
* @function encodeDelimited
|
|
73902
|
-
* @memberof
|
|
75036
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73903
75037
|
* @static
|
|
73904
|
-
* @param {
|
|
75038
|
+
* @param {IUpdateBasicUserInfoRequest} message UpdateBasicUserInfoRequest message or plain object to encode
|
|
73905
75039
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73906
75040
|
* @returns {$protobuf.Writer} Writer
|
|
73907
75041
|
*/
|
|
73908
|
-
|
|
75042
|
+
UpdateBasicUserInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
73909
75043
|
return this.encode(message, writer).ldelim();
|
|
73910
75044
|
};
|
|
73911
75045
|
|
|
73912
75046
|
/**
|
|
73913
|
-
* Decodes
|
|
75047
|
+
* Decodes an UpdateBasicUserInfoRequest message from the specified reader or buffer.
|
|
73914
75048
|
* @function decode
|
|
73915
|
-
* @memberof
|
|
75049
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73916
75050
|
* @static
|
|
73917
75051
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73918
75052
|
* @param {number} [length] Message length if known beforehand
|
|
73919
|
-
* @returns {
|
|
75053
|
+
* @returns {UpdateBasicUserInfoRequest} UpdateBasicUserInfoRequest
|
|
73920
75054
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73921
75055
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73922
75056
|
*/
|
|
73923
|
-
|
|
75057
|
+
UpdateBasicUserInfoRequest.decode = function decode(reader, length) {
|
|
73924
75058
|
if (!(reader instanceof $Reader))
|
|
73925
75059
|
reader = $Reader.create(reader);
|
|
73926
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
75060
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateBasicUserInfoRequest();
|
|
73927
75061
|
while (reader.pos < end) {
|
|
73928
75062
|
var tag = reader.uint32();
|
|
73929
75063
|
switch (tag >>> 3) {
|
|
@@ -73931,7 +75065,16 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
73931
75065
|
message.spanContext = reader.string();
|
|
73932
75066
|
break;
|
|
73933
75067
|
case 2:
|
|
73934
|
-
message.
|
|
75068
|
+
message.userId = reader.string();
|
|
75069
|
+
break;
|
|
75070
|
+
case 3:
|
|
75071
|
+
message.firstName = reader.string();
|
|
75072
|
+
break;
|
|
75073
|
+
case 4:
|
|
75074
|
+
message.lastName = reader.string();
|
|
75075
|
+
break;
|
|
75076
|
+
case 5:
|
|
75077
|
+
message.imageUrl = reader.string();
|
|
73935
75078
|
break;
|
|
73936
75079
|
default:
|
|
73937
75080
|
reader.skipType(tag & 7);
|
|
@@ -73942,118 +75085,142 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
73942
75085
|
};
|
|
73943
75086
|
|
|
73944
75087
|
/**
|
|
73945
|
-
* Decodes
|
|
75088
|
+
* Decodes an UpdateBasicUserInfoRequest message from the specified reader or buffer, length delimited.
|
|
73946
75089
|
* @function decodeDelimited
|
|
73947
|
-
* @memberof
|
|
75090
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73948
75091
|
* @static
|
|
73949
75092
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73950
|
-
* @returns {
|
|
75093
|
+
* @returns {UpdateBasicUserInfoRequest} UpdateBasicUserInfoRequest
|
|
73951
75094
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73952
75095
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73953
75096
|
*/
|
|
73954
|
-
|
|
75097
|
+
UpdateBasicUserInfoRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
73955
75098
|
if (!(reader instanceof $Reader))
|
|
73956
75099
|
reader = new $Reader(reader);
|
|
73957
75100
|
return this.decode(reader, reader.uint32());
|
|
73958
75101
|
};
|
|
73959
75102
|
|
|
73960
75103
|
/**
|
|
73961
|
-
* Verifies
|
|
75104
|
+
* Verifies an UpdateBasicUserInfoRequest message.
|
|
73962
75105
|
* @function verify
|
|
73963
|
-
* @memberof
|
|
75106
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73964
75107
|
* @static
|
|
73965
75108
|
* @param {Object.<string,*>} message Plain object to verify
|
|
73966
75109
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
73967
75110
|
*/
|
|
73968
|
-
|
|
75111
|
+
UpdateBasicUserInfoRequest.verify = function verify(message) {
|
|
73969
75112
|
if (typeof message !== "object" || message === null)
|
|
73970
75113
|
return "object expected";
|
|
73971
75114
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
73972
75115
|
if (!$util.isString(message.spanContext))
|
|
73973
75116
|
return "spanContext: string expected";
|
|
73974
|
-
if (message.
|
|
73975
|
-
if (!$util.isString(message.
|
|
73976
|
-
return "
|
|
75117
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
75118
|
+
if (!$util.isString(message.userId))
|
|
75119
|
+
return "userId: string expected";
|
|
75120
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
75121
|
+
if (!$util.isString(message.firstName))
|
|
75122
|
+
return "firstName: string expected";
|
|
75123
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
75124
|
+
if (!$util.isString(message.lastName))
|
|
75125
|
+
return "lastName: string expected";
|
|
75126
|
+
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
75127
|
+
if (!$util.isString(message.imageUrl))
|
|
75128
|
+
return "imageUrl: string expected";
|
|
73977
75129
|
return null;
|
|
73978
75130
|
};
|
|
73979
75131
|
|
|
73980
75132
|
/**
|
|
73981
|
-
* Creates
|
|
75133
|
+
* Creates an UpdateBasicUserInfoRequest message from a plain object. Also converts values to their respective internal types.
|
|
73982
75134
|
* @function fromObject
|
|
73983
|
-
* @memberof
|
|
75135
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
73984
75136
|
* @static
|
|
73985
75137
|
* @param {Object.<string,*>} object Plain object
|
|
73986
|
-
* @returns {
|
|
75138
|
+
* @returns {UpdateBasicUserInfoRequest} UpdateBasicUserInfoRequest
|
|
73987
75139
|
*/
|
|
73988
|
-
|
|
73989
|
-
if (object instanceof $root.
|
|
75140
|
+
UpdateBasicUserInfoRequest.fromObject = function fromObject(object) {
|
|
75141
|
+
if (object instanceof $root.UpdateBasicUserInfoRequest)
|
|
73990
75142
|
return object;
|
|
73991
|
-
var message = new $root.
|
|
75143
|
+
var message = new $root.UpdateBasicUserInfoRequest();
|
|
73992
75144
|
if (object.spanContext != null)
|
|
73993
75145
|
message.spanContext = String(object.spanContext);
|
|
73994
|
-
if (object.
|
|
73995
|
-
message.
|
|
75146
|
+
if (object.userId != null)
|
|
75147
|
+
message.userId = String(object.userId);
|
|
75148
|
+
if (object.firstName != null)
|
|
75149
|
+
message.firstName = String(object.firstName);
|
|
75150
|
+
if (object.lastName != null)
|
|
75151
|
+
message.lastName = String(object.lastName);
|
|
75152
|
+
if (object.imageUrl != null)
|
|
75153
|
+
message.imageUrl = String(object.imageUrl);
|
|
73996
75154
|
return message;
|
|
73997
75155
|
};
|
|
73998
75156
|
|
|
73999
75157
|
/**
|
|
74000
|
-
* Creates a plain object from
|
|
75158
|
+
* Creates a plain object from an UpdateBasicUserInfoRequest message. Also converts values to other types if specified.
|
|
74001
75159
|
* @function toObject
|
|
74002
|
-
* @memberof
|
|
75160
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
74003
75161
|
* @static
|
|
74004
|
-
* @param {
|
|
75162
|
+
* @param {UpdateBasicUserInfoRequest} message UpdateBasicUserInfoRequest
|
|
74005
75163
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
74006
75164
|
* @returns {Object.<string,*>} Plain object
|
|
74007
75165
|
*/
|
|
74008
|
-
|
|
75166
|
+
UpdateBasicUserInfoRequest.toObject = function toObject(message, options) {
|
|
74009
75167
|
if (!options)
|
|
74010
75168
|
options = {};
|
|
74011
75169
|
var object = {};
|
|
74012
75170
|
if (options.defaults) {
|
|
74013
75171
|
object.spanContext = "";
|
|
74014
|
-
object.
|
|
75172
|
+
object.userId = "";
|
|
75173
|
+
object.firstName = "";
|
|
75174
|
+
object.lastName = "";
|
|
75175
|
+
object.imageUrl = "";
|
|
74015
75176
|
}
|
|
74016
75177
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
74017
75178
|
object.spanContext = message.spanContext;
|
|
74018
|
-
if (message.
|
|
74019
|
-
object.
|
|
75179
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
75180
|
+
object.userId = message.userId;
|
|
75181
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
75182
|
+
object.firstName = message.firstName;
|
|
75183
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
75184
|
+
object.lastName = message.lastName;
|
|
75185
|
+
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
75186
|
+
object.imageUrl = message.imageUrl;
|
|
74020
75187
|
return object;
|
|
74021
75188
|
};
|
|
74022
75189
|
|
|
74023
75190
|
/**
|
|
74024
|
-
* Converts this
|
|
75191
|
+
* Converts this UpdateBasicUserInfoRequest to JSON.
|
|
74025
75192
|
* @function toJSON
|
|
74026
|
-
* @memberof
|
|
75193
|
+
* @memberof UpdateBasicUserInfoRequest
|
|
74027
75194
|
* @instance
|
|
74028
75195
|
* @returns {Object.<string,*>} JSON object
|
|
74029
75196
|
*/
|
|
74030
|
-
|
|
75197
|
+
UpdateBasicUserInfoRequest.prototype.toJSON = function toJSON() {
|
|
74031
75198
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
74032
75199
|
};
|
|
74033
75200
|
|
|
74034
|
-
return
|
|
75201
|
+
return UpdateBasicUserInfoRequest;
|
|
74035
75202
|
})();
|
|
74036
75203
|
|
|
74037
|
-
$root.
|
|
75204
|
+
$root.UpdateBasicUserInfoResponse = (function() {
|
|
74038
75205
|
|
|
74039
75206
|
/**
|
|
74040
|
-
* Properties of
|
|
74041
|
-
* @exports
|
|
74042
|
-
* @interface
|
|
74043
|
-
* @property {StatusCode|null} [status]
|
|
74044
|
-
* @property {Array.<IError>|null} [errors]
|
|
74045
|
-
* @property {IUser|null} [user]
|
|
75207
|
+
* Properties of an UpdateBasicUserInfoResponse.
|
|
75208
|
+
* @exports IUpdateBasicUserInfoResponse
|
|
75209
|
+
* @interface IUpdateBasicUserInfoResponse
|
|
75210
|
+
* @property {StatusCode|null} [status] UpdateBasicUserInfoResponse status
|
|
75211
|
+
* @property {Array.<IError>|null} [errors] UpdateBasicUserInfoResponse errors
|
|
75212
|
+
* @property {IUser|null} [user] UpdateBasicUserInfoResponse user
|
|
74046
75213
|
*/
|
|
74047
75214
|
|
|
74048
75215
|
/**
|
|
74049
|
-
* Constructs a new
|
|
74050
|
-
* @exports
|
|
74051
|
-
* @classdesc Represents
|
|
74052
|
-
* @implements
|
|
75216
|
+
* Constructs a new UpdateBasicUserInfoResponse.
|
|
75217
|
+
* @exports UpdateBasicUserInfoResponse
|
|
75218
|
+
* @classdesc Represents an UpdateBasicUserInfoResponse.
|
|
75219
|
+
* @implements IUpdateBasicUserInfoResponse
|
|
74053
75220
|
* @constructor
|
|
74054
|
-
* @param {
|
|
75221
|
+
* @param {IUpdateBasicUserInfoResponse=} [properties] Properties to set
|
|
74055
75222
|
*/
|
|
74056
|
-
function
|
|
75223
|
+
function UpdateBasicUserInfoResponse(properties) {
|
|
74057
75224
|
this.errors = [];
|
|
74058
75225
|
if (properties)
|
|
74059
75226
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -74062,51 +75229,51 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
74062
75229
|
}
|
|
74063
75230
|
|
|
74064
75231
|
/**
|
|
74065
|
-
*
|
|
75232
|
+
* UpdateBasicUserInfoResponse status.
|
|
74066
75233
|
* @member {StatusCode} status
|
|
74067
|
-
* @memberof
|
|
75234
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74068
75235
|
* @instance
|
|
74069
75236
|
*/
|
|
74070
|
-
|
|
75237
|
+
UpdateBasicUserInfoResponse.prototype.status = 0;
|
|
74071
75238
|
|
|
74072
75239
|
/**
|
|
74073
|
-
*
|
|
75240
|
+
* UpdateBasicUserInfoResponse errors.
|
|
74074
75241
|
* @member {Array.<IError>} errors
|
|
74075
|
-
* @memberof
|
|
75242
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74076
75243
|
* @instance
|
|
74077
75244
|
*/
|
|
74078
|
-
|
|
75245
|
+
UpdateBasicUserInfoResponse.prototype.errors = $util.emptyArray;
|
|
74079
75246
|
|
|
74080
75247
|
/**
|
|
74081
|
-
*
|
|
75248
|
+
* UpdateBasicUserInfoResponse user.
|
|
74082
75249
|
* @member {IUser|null|undefined} user
|
|
74083
|
-
* @memberof
|
|
75250
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74084
75251
|
* @instance
|
|
74085
75252
|
*/
|
|
74086
|
-
|
|
75253
|
+
UpdateBasicUserInfoResponse.prototype.user = null;
|
|
74087
75254
|
|
|
74088
75255
|
/**
|
|
74089
|
-
* Creates a new
|
|
75256
|
+
* Creates a new UpdateBasicUserInfoResponse instance using the specified properties.
|
|
74090
75257
|
* @function create
|
|
74091
|
-
* @memberof
|
|
75258
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74092
75259
|
* @static
|
|
74093
|
-
* @param {
|
|
74094
|
-
* @returns {
|
|
75260
|
+
* @param {IUpdateBasicUserInfoResponse=} [properties] Properties to set
|
|
75261
|
+
* @returns {UpdateBasicUserInfoResponse} UpdateBasicUserInfoResponse instance
|
|
74095
75262
|
*/
|
|
74096
|
-
|
|
74097
|
-
return new
|
|
75263
|
+
UpdateBasicUserInfoResponse.create = function create(properties) {
|
|
75264
|
+
return new UpdateBasicUserInfoResponse(properties);
|
|
74098
75265
|
};
|
|
74099
75266
|
|
|
74100
75267
|
/**
|
|
74101
|
-
* Encodes the specified
|
|
75268
|
+
* Encodes the specified UpdateBasicUserInfoResponse message. Does not implicitly {@link UpdateBasicUserInfoResponse.verify|verify} messages.
|
|
74102
75269
|
* @function encode
|
|
74103
|
-
* @memberof
|
|
75270
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74104
75271
|
* @static
|
|
74105
|
-
* @param {
|
|
75272
|
+
* @param {IUpdateBasicUserInfoResponse} message UpdateBasicUserInfoResponse message or plain object to encode
|
|
74106
75273
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74107
75274
|
* @returns {$protobuf.Writer} Writer
|
|
74108
75275
|
*/
|
|
74109
|
-
|
|
75276
|
+
UpdateBasicUserInfoResponse.encode = function encode(message, writer) {
|
|
74110
75277
|
if (!writer)
|
|
74111
75278
|
writer = $Writer.create();
|
|
74112
75279
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
@@ -74120,33 +75287,33 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
74120
75287
|
};
|
|
74121
75288
|
|
|
74122
75289
|
/**
|
|
74123
|
-
* Encodes the specified
|
|
75290
|
+
* Encodes the specified UpdateBasicUserInfoResponse message, length delimited. Does not implicitly {@link UpdateBasicUserInfoResponse.verify|verify} messages.
|
|
74124
75291
|
* @function encodeDelimited
|
|
74125
|
-
* @memberof
|
|
75292
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74126
75293
|
* @static
|
|
74127
|
-
* @param {
|
|
75294
|
+
* @param {IUpdateBasicUserInfoResponse} message UpdateBasicUserInfoResponse message or plain object to encode
|
|
74128
75295
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74129
75296
|
* @returns {$protobuf.Writer} Writer
|
|
74130
75297
|
*/
|
|
74131
|
-
|
|
75298
|
+
UpdateBasicUserInfoResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
74132
75299
|
return this.encode(message, writer).ldelim();
|
|
74133
75300
|
};
|
|
74134
75301
|
|
|
74135
75302
|
/**
|
|
74136
|
-
* Decodes
|
|
75303
|
+
* Decodes an UpdateBasicUserInfoResponse message from the specified reader or buffer.
|
|
74137
75304
|
* @function decode
|
|
74138
|
-
* @memberof
|
|
75305
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74139
75306
|
* @static
|
|
74140
75307
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74141
75308
|
* @param {number} [length] Message length if known beforehand
|
|
74142
|
-
* @returns {
|
|
75309
|
+
* @returns {UpdateBasicUserInfoResponse} UpdateBasicUserInfoResponse
|
|
74143
75310
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74144
75311
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74145
75312
|
*/
|
|
74146
|
-
|
|
75313
|
+
UpdateBasicUserInfoResponse.decode = function decode(reader, length) {
|
|
74147
75314
|
if (!(reader instanceof $Reader))
|
|
74148
75315
|
reader = $Reader.create(reader);
|
|
74149
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
75316
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateBasicUserInfoResponse();
|
|
74150
75317
|
while (reader.pos < end) {
|
|
74151
75318
|
var tag = reader.uint32();
|
|
74152
75319
|
switch (tag >>> 3) {
|
|
@@ -74170,30 +75337,30 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
74170
75337
|
};
|
|
74171
75338
|
|
|
74172
75339
|
/**
|
|
74173
|
-
* Decodes
|
|
75340
|
+
* Decodes an UpdateBasicUserInfoResponse message from the specified reader or buffer, length delimited.
|
|
74174
75341
|
* @function decodeDelimited
|
|
74175
|
-
* @memberof
|
|
75342
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74176
75343
|
* @static
|
|
74177
75344
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74178
|
-
* @returns {
|
|
75345
|
+
* @returns {UpdateBasicUserInfoResponse} UpdateBasicUserInfoResponse
|
|
74179
75346
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74180
75347
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74181
75348
|
*/
|
|
74182
|
-
|
|
75349
|
+
UpdateBasicUserInfoResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
74183
75350
|
if (!(reader instanceof $Reader))
|
|
74184
75351
|
reader = new $Reader(reader);
|
|
74185
75352
|
return this.decode(reader, reader.uint32());
|
|
74186
75353
|
};
|
|
74187
75354
|
|
|
74188
75355
|
/**
|
|
74189
|
-
* Verifies
|
|
75356
|
+
* Verifies an UpdateBasicUserInfoResponse message.
|
|
74190
75357
|
* @function verify
|
|
74191
|
-
* @memberof
|
|
75358
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74192
75359
|
* @static
|
|
74193
75360
|
* @param {Object.<string,*>} message Plain object to verify
|
|
74194
75361
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
74195
75362
|
*/
|
|
74196
|
-
|
|
75363
|
+
UpdateBasicUserInfoResponse.verify = function verify(message) {
|
|
74197
75364
|
if (typeof message !== "object" || message === null)
|
|
74198
75365
|
return "object expected";
|
|
74199
75366
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
@@ -74228,17 +75395,17 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
74228
75395
|
};
|
|
74229
75396
|
|
|
74230
75397
|
/**
|
|
74231
|
-
* Creates
|
|
75398
|
+
* Creates an UpdateBasicUserInfoResponse message from a plain object. Also converts values to their respective internal types.
|
|
74232
75399
|
* @function fromObject
|
|
74233
|
-
* @memberof
|
|
75400
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74234
75401
|
* @static
|
|
74235
75402
|
* @param {Object.<string,*>} object Plain object
|
|
74236
|
-
* @returns {
|
|
75403
|
+
* @returns {UpdateBasicUserInfoResponse} UpdateBasicUserInfoResponse
|
|
74237
75404
|
*/
|
|
74238
|
-
|
|
74239
|
-
if (object instanceof $root.
|
|
75405
|
+
UpdateBasicUserInfoResponse.fromObject = function fromObject(object) {
|
|
75406
|
+
if (object instanceof $root.UpdateBasicUserInfoResponse)
|
|
74240
75407
|
return object;
|
|
74241
|
-
var message = new $root.
|
|
75408
|
+
var message = new $root.UpdateBasicUserInfoResponse();
|
|
74242
75409
|
switch (object.status) {
|
|
74243
75410
|
case "UNKNOWN_CODE":
|
|
74244
75411
|
case 0:
|
|
@@ -74275,32 +75442,32 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
74275
75442
|
}
|
|
74276
75443
|
if (object.errors) {
|
|
74277
75444
|
if (!Array.isArray(object.errors))
|
|
74278
|
-
throw TypeError(".
|
|
75445
|
+
throw TypeError(".UpdateBasicUserInfoResponse.errors: array expected");
|
|
74279
75446
|
message.errors = [];
|
|
74280
75447
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
74281
75448
|
if (typeof object.errors[i] !== "object")
|
|
74282
|
-
throw TypeError(".
|
|
75449
|
+
throw TypeError(".UpdateBasicUserInfoResponse.errors: object expected");
|
|
74283
75450
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
74284
75451
|
}
|
|
74285
75452
|
}
|
|
74286
75453
|
if (object.user != null) {
|
|
74287
75454
|
if (typeof object.user !== "object")
|
|
74288
|
-
throw TypeError(".
|
|
75455
|
+
throw TypeError(".UpdateBasicUserInfoResponse.user: object expected");
|
|
74289
75456
|
message.user = $root.User.fromObject(object.user);
|
|
74290
75457
|
}
|
|
74291
75458
|
return message;
|
|
74292
75459
|
};
|
|
74293
75460
|
|
|
74294
75461
|
/**
|
|
74295
|
-
* Creates a plain object from
|
|
75462
|
+
* Creates a plain object from an UpdateBasicUserInfoResponse message. Also converts values to other types if specified.
|
|
74296
75463
|
* @function toObject
|
|
74297
|
-
* @memberof
|
|
75464
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74298
75465
|
* @static
|
|
74299
|
-
* @param {
|
|
75466
|
+
* @param {UpdateBasicUserInfoResponse} message UpdateBasicUserInfoResponse
|
|
74300
75467
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
74301
75468
|
* @returns {Object.<string,*>} Plain object
|
|
74302
75469
|
*/
|
|
74303
|
-
|
|
75470
|
+
UpdateBasicUserInfoResponse.toObject = function toObject(message, options) {
|
|
74304
75471
|
if (!options)
|
|
74305
75472
|
options = {};
|
|
74306
75473
|
var object = {};
|
|
@@ -74323,17 +75490,17 @@ $root.FindUserByEmailResponse = (function() {
|
|
|
74323
75490
|
};
|
|
74324
75491
|
|
|
74325
75492
|
/**
|
|
74326
|
-
* Converts this
|
|
75493
|
+
* Converts this UpdateBasicUserInfoResponse to JSON.
|
|
74327
75494
|
* @function toJSON
|
|
74328
|
-
* @memberof
|
|
75495
|
+
* @memberof UpdateBasicUserInfoResponse
|
|
74329
75496
|
* @instance
|
|
74330
75497
|
* @returns {Object.<string,*>} JSON object
|
|
74331
75498
|
*/
|
|
74332
|
-
|
|
75499
|
+
UpdateBasicUserInfoResponse.prototype.toJSON = function toJSON() {
|
|
74333
75500
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
74334
75501
|
};
|
|
74335
75502
|
|
|
74336
|
-
return
|
|
75503
|
+
return UpdateBasicUserInfoResponse;
|
|
74337
75504
|
})();
|
|
74338
75505
|
|
|
74339
75506
|
$root.UpdateUserPhoneNumberRequest = (function() {
|
|
@@ -76950,6 +78117,39 @@ $root.UserService = (function() {
|
|
|
76950
78117
|
* @variation 2
|
|
76951
78118
|
*/
|
|
76952
78119
|
|
|
78120
|
+
/**
|
|
78121
|
+
* Callback as used by {@link UserService#updateBasicUserInfo}.
|
|
78122
|
+
* @memberof UserService
|
|
78123
|
+
* @typedef updateBasicUserInfoCallback
|
|
78124
|
+
* @type {function}
|
|
78125
|
+
* @param {Error|null} error Error, if any
|
|
78126
|
+
* @param {UpdateBasicUserInfoResponse} [response] UpdateBasicUserInfoResponse
|
|
78127
|
+
*/
|
|
78128
|
+
|
|
78129
|
+
/**
|
|
78130
|
+
* Calls updateBasicUserInfo.
|
|
78131
|
+
* @function updateBasicUserInfo
|
|
78132
|
+
* @memberof UserService
|
|
78133
|
+
* @instance
|
|
78134
|
+
* @param {IUpdateBasicUserInfoRequest} request UpdateBasicUserInfoRequest message or plain object
|
|
78135
|
+
* @param {UserService.updateBasicUserInfoCallback} callback Node-style callback called with the error, if any, and UpdateBasicUserInfoResponse
|
|
78136
|
+
* @returns {undefined}
|
|
78137
|
+
* @variation 1
|
|
78138
|
+
*/
|
|
78139
|
+
Object.defineProperty(UserService.prototype.updateBasicUserInfo = function updateBasicUserInfo(request, callback) {
|
|
78140
|
+
return this.rpcCall(updateBasicUserInfo, $root.UpdateBasicUserInfoRequest, $root.UpdateBasicUserInfoResponse, request, callback);
|
|
78141
|
+
}, "name", { value: "updateBasicUserInfo" });
|
|
78142
|
+
|
|
78143
|
+
/**
|
|
78144
|
+
* Calls updateBasicUserInfo.
|
|
78145
|
+
* @function updateBasicUserInfo
|
|
78146
|
+
* @memberof UserService
|
|
78147
|
+
* @instance
|
|
78148
|
+
* @param {IUpdateBasicUserInfoRequest} request UpdateBasicUserInfoRequest message or plain object
|
|
78149
|
+
* @returns {Promise<UpdateBasicUserInfoResponse>} Promise
|
|
78150
|
+
* @variation 2
|
|
78151
|
+
*/
|
|
78152
|
+
|
|
76953
78153
|
/**
|
|
76954
78154
|
* Callback as used by {@link UserService#updateUserPhoneNumber}.
|
|
76955
78155
|
* @memberof UserService
|
|
@@ -77082,6 +78282,39 @@ $root.UserService = (function() {
|
|
|
77082
78282
|
* @variation 2
|
|
77083
78283
|
*/
|
|
77084
78284
|
|
|
78285
|
+
/**
|
|
78286
|
+
* Callback as used by {@link UserService#resetUserPasswordInApp}.
|
|
78287
|
+
* @memberof UserService
|
|
78288
|
+
* @typedef resetUserPasswordInAppCallback
|
|
78289
|
+
* @type {function}
|
|
78290
|
+
* @param {Error|null} error Error, if any
|
|
78291
|
+
* @param {ResetUserPasswordInAppResponse} [response] ResetUserPasswordInAppResponse
|
|
78292
|
+
*/
|
|
78293
|
+
|
|
78294
|
+
/**
|
|
78295
|
+
* Calls resetUserPasswordInApp.
|
|
78296
|
+
* @function resetUserPasswordInApp
|
|
78297
|
+
* @memberof UserService
|
|
78298
|
+
* @instance
|
|
78299
|
+
* @param {IResetUserPasswordInAppRequest} request ResetUserPasswordInAppRequest message or plain object
|
|
78300
|
+
* @param {UserService.resetUserPasswordInAppCallback} callback Node-style callback called with the error, if any, and ResetUserPasswordInAppResponse
|
|
78301
|
+
* @returns {undefined}
|
|
78302
|
+
* @variation 1
|
|
78303
|
+
*/
|
|
78304
|
+
Object.defineProperty(UserService.prototype.resetUserPasswordInApp = function resetUserPasswordInApp(request, callback) {
|
|
78305
|
+
return this.rpcCall(resetUserPasswordInApp, $root.ResetUserPasswordInAppRequest, $root.ResetUserPasswordInAppResponse, request, callback);
|
|
78306
|
+
}, "name", { value: "resetUserPasswordInApp" });
|
|
78307
|
+
|
|
78308
|
+
/**
|
|
78309
|
+
* Calls resetUserPasswordInApp.
|
|
78310
|
+
* @function resetUserPasswordInApp
|
|
78311
|
+
* @memberof UserService
|
|
78312
|
+
* @instance
|
|
78313
|
+
* @param {IResetUserPasswordInAppRequest} request ResetUserPasswordInAppRequest message or plain object
|
|
78314
|
+
* @returns {Promise<ResetUserPasswordInAppResponse>} Promise
|
|
78315
|
+
* @variation 2
|
|
78316
|
+
*/
|
|
78317
|
+
|
|
77085
78318
|
/**
|
|
77086
78319
|
* Callback as used by {@link UserService#deleteUnverifiedUser}.
|
|
77087
78320
|
* @memberof UserService
|