@headspace/protos-events 1.419.0 → 1.421.0
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/lib/index.d.ts +0 -239
- package/lib/index.js +0 -685
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -12848,23 +12848,6 @@ export namespace userdomain {
|
|
|
12848
12848
|
HEALTH_USER = 4
|
|
12849
12849
|
}
|
|
12850
12850
|
|
|
12851
|
-
/** LoginStatus enum. */
|
|
12852
|
-
enum LoginStatus {
|
|
12853
|
-
LOGIN_UNKNOWN = 0,
|
|
12854
|
-
LOGIN_SUCCESS = 1,
|
|
12855
|
-
LOGIN_FAIL = 2
|
|
12856
|
-
}
|
|
12857
|
-
|
|
12858
|
-
/** ConnectionSource enum. */
|
|
12859
|
-
enum ConnectionSource {
|
|
12860
|
-
CONNSRC_UNKNOWN = 0,
|
|
12861
|
-
CONNSRC_EMAIL = 1,
|
|
12862
|
-
CONNSRC_FACEBOOK = 2,
|
|
12863
|
-
CONNSRC_SPOTIFY = 3,
|
|
12864
|
-
CONNSRC_APPLE = 4,
|
|
12865
|
-
CONNSRC_GOOGLE = 5
|
|
12866
|
-
}
|
|
12867
|
-
|
|
12868
12851
|
/** UserDeleteReason enum. */
|
|
12869
12852
|
enum UserDeleteReason {
|
|
12870
12853
|
UNKNOWN_REASON = 0,
|
|
@@ -22964,120 +22947,6 @@ export class UserDomainIsAnonymousUserUpdated implements IUserDomainIsAnonymousU
|
|
|
22964
22947
|
public toJSON(): { [k: string]: any };
|
|
22965
22948
|
}
|
|
22966
22949
|
|
|
22967
|
-
/** Properties of a UserDomainLoggedIn. */
|
|
22968
|
-
export interface IUserDomainLoggedIn {
|
|
22969
|
-
|
|
22970
|
-
/** UserDomainLoggedIn hsId */
|
|
22971
|
-
hsId?: (string|null);
|
|
22972
|
-
|
|
22973
|
-
/** UserDomainLoggedIn loginTimestamp */
|
|
22974
|
-
loginTimestamp?: (number|Long|null);
|
|
22975
|
-
|
|
22976
|
-
/** UserDomainLoggedIn loginStatus */
|
|
22977
|
-
loginStatus?: (userdomain.users.LoginStatus|null);
|
|
22978
|
-
|
|
22979
|
-
/** UserDomainLoggedIn loginPlatform */
|
|
22980
|
-
loginPlatform?: (userdomain.users.Platform|null);
|
|
22981
|
-
|
|
22982
|
-
/** UserDomainLoggedIn loginConnectionSource */
|
|
22983
|
-
loginConnectionSource?: (userdomain.users.ConnectionSource|null);
|
|
22984
|
-
}
|
|
22985
|
-
|
|
22986
|
-
/** Represents a UserDomainLoggedIn. */
|
|
22987
|
-
export class UserDomainLoggedIn implements IUserDomainLoggedIn {
|
|
22988
|
-
|
|
22989
|
-
/**
|
|
22990
|
-
* Constructs a new UserDomainLoggedIn.
|
|
22991
|
-
* @param [properties] Properties to set
|
|
22992
|
-
*/
|
|
22993
|
-
constructor(properties?: IUserDomainLoggedIn);
|
|
22994
|
-
|
|
22995
|
-
/** UserDomainLoggedIn hsId. */
|
|
22996
|
-
public hsId: string;
|
|
22997
|
-
|
|
22998
|
-
/** UserDomainLoggedIn loginTimestamp. */
|
|
22999
|
-
public loginTimestamp: (number|Long);
|
|
23000
|
-
|
|
23001
|
-
/** UserDomainLoggedIn loginStatus. */
|
|
23002
|
-
public loginStatus: userdomain.users.LoginStatus;
|
|
23003
|
-
|
|
23004
|
-
/** UserDomainLoggedIn loginPlatform. */
|
|
23005
|
-
public loginPlatform: userdomain.users.Platform;
|
|
23006
|
-
|
|
23007
|
-
/** UserDomainLoggedIn loginConnectionSource. */
|
|
23008
|
-
public loginConnectionSource: userdomain.users.ConnectionSource;
|
|
23009
|
-
|
|
23010
|
-
/**
|
|
23011
|
-
* Creates a new UserDomainLoggedIn instance using the specified properties.
|
|
23012
|
-
* @param [properties] Properties to set
|
|
23013
|
-
* @returns UserDomainLoggedIn instance
|
|
23014
|
-
*/
|
|
23015
|
-
public static create(properties?: IUserDomainLoggedIn): UserDomainLoggedIn;
|
|
23016
|
-
|
|
23017
|
-
/**
|
|
23018
|
-
* Encodes the specified UserDomainLoggedIn message. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
23019
|
-
* @param message UserDomainLoggedIn message or plain object to encode
|
|
23020
|
-
* @param [writer] Writer to encode to
|
|
23021
|
-
* @returns Writer
|
|
23022
|
-
*/
|
|
23023
|
-
public static encode(message: IUserDomainLoggedIn, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23024
|
-
|
|
23025
|
-
/**
|
|
23026
|
-
* Encodes the specified UserDomainLoggedIn message, length delimited. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
23027
|
-
* @param message UserDomainLoggedIn message or plain object to encode
|
|
23028
|
-
* @param [writer] Writer to encode to
|
|
23029
|
-
* @returns Writer
|
|
23030
|
-
*/
|
|
23031
|
-
public static encodeDelimited(message: IUserDomainLoggedIn, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23032
|
-
|
|
23033
|
-
/**
|
|
23034
|
-
* Decodes a UserDomainLoggedIn message from the specified reader or buffer.
|
|
23035
|
-
* @param reader Reader or buffer to decode from
|
|
23036
|
-
* @param [length] Message length if known beforehand
|
|
23037
|
-
* @returns UserDomainLoggedIn
|
|
23038
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23039
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23040
|
-
*/
|
|
23041
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDomainLoggedIn;
|
|
23042
|
-
|
|
23043
|
-
/**
|
|
23044
|
-
* Decodes a UserDomainLoggedIn message from the specified reader or buffer, length delimited.
|
|
23045
|
-
* @param reader Reader or buffer to decode from
|
|
23046
|
-
* @returns UserDomainLoggedIn
|
|
23047
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23048
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23049
|
-
*/
|
|
23050
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDomainLoggedIn;
|
|
23051
|
-
|
|
23052
|
-
/**
|
|
23053
|
-
* Verifies a UserDomainLoggedIn message.
|
|
23054
|
-
* @param message Plain object to verify
|
|
23055
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
23056
|
-
*/
|
|
23057
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
23058
|
-
|
|
23059
|
-
/**
|
|
23060
|
-
* Creates a UserDomainLoggedIn message from a plain object. Also converts values to their respective internal types.
|
|
23061
|
-
* @param object Plain object
|
|
23062
|
-
* @returns UserDomainLoggedIn
|
|
23063
|
-
*/
|
|
23064
|
-
public static fromObject(object: { [k: string]: any }): UserDomainLoggedIn;
|
|
23065
|
-
|
|
23066
|
-
/**
|
|
23067
|
-
* Creates a plain object from a UserDomainLoggedIn message. Also converts values to other types if specified.
|
|
23068
|
-
* @param message UserDomainLoggedIn
|
|
23069
|
-
* @param [options] Conversion options
|
|
23070
|
-
* @returns Plain object
|
|
23071
|
-
*/
|
|
23072
|
-
public static toObject(message: UserDomainLoggedIn, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
23073
|
-
|
|
23074
|
-
/**
|
|
23075
|
-
* Converts this UserDomainLoggedIn to JSON.
|
|
23076
|
-
* @returns JSON object
|
|
23077
|
-
*/
|
|
23078
|
-
public toJSON(): { [k: string]: any };
|
|
23079
|
-
}
|
|
23080
|
-
|
|
23081
22950
|
/** Properties of a UserPasswordResetCompleted. */
|
|
23082
22951
|
export interface IUserPasswordResetCompleted {
|
|
23083
22952
|
|
|
@@ -42333,114 +42202,6 @@ export class UserEmailUpdated implements IUserEmailUpdated {
|
|
|
42333
42202
|
public toJSON(): { [k: string]: any };
|
|
42334
42203
|
}
|
|
42335
42204
|
|
|
42336
|
-
/** Properties of a UserEmailVerificationRequested. */
|
|
42337
|
-
export interface IUserEmailVerificationRequested {
|
|
42338
|
-
|
|
42339
|
-
/** UserEmailVerificationRequested userId */
|
|
42340
|
-
userId?: (string|null);
|
|
42341
|
-
|
|
42342
|
-
/** UserEmailVerificationRequested verificationCode */
|
|
42343
|
-
verificationCode?: (string|null);
|
|
42344
|
-
|
|
42345
|
-
/** UserEmailVerificationRequested timestamp */
|
|
42346
|
-
timestamp?: (number|Long|null);
|
|
42347
|
-
|
|
42348
|
-
/** UserEmailVerificationRequested optIn */
|
|
42349
|
-
optIn?: (boolean|null);
|
|
42350
|
-
}
|
|
42351
|
-
|
|
42352
|
-
/** Represents a UserEmailVerificationRequested. */
|
|
42353
|
-
export class UserEmailVerificationRequested implements IUserEmailVerificationRequested {
|
|
42354
|
-
|
|
42355
|
-
/**
|
|
42356
|
-
* Constructs a new UserEmailVerificationRequested.
|
|
42357
|
-
* @param [properties] Properties to set
|
|
42358
|
-
*/
|
|
42359
|
-
constructor(properties?: IUserEmailVerificationRequested);
|
|
42360
|
-
|
|
42361
|
-
/** UserEmailVerificationRequested userId. */
|
|
42362
|
-
public userId: string;
|
|
42363
|
-
|
|
42364
|
-
/** UserEmailVerificationRequested verificationCode. */
|
|
42365
|
-
public verificationCode: string;
|
|
42366
|
-
|
|
42367
|
-
/** UserEmailVerificationRequested timestamp. */
|
|
42368
|
-
public timestamp: (number|Long);
|
|
42369
|
-
|
|
42370
|
-
/** UserEmailVerificationRequested optIn. */
|
|
42371
|
-
public optIn: boolean;
|
|
42372
|
-
|
|
42373
|
-
/**
|
|
42374
|
-
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
42375
|
-
* @param [properties] Properties to set
|
|
42376
|
-
* @returns UserEmailVerificationRequested instance
|
|
42377
|
-
*/
|
|
42378
|
-
public static create(properties?: IUserEmailVerificationRequested): UserEmailVerificationRequested;
|
|
42379
|
-
|
|
42380
|
-
/**
|
|
42381
|
-
* Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
42382
|
-
* @param message UserEmailVerificationRequested message or plain object to encode
|
|
42383
|
-
* @param [writer] Writer to encode to
|
|
42384
|
-
* @returns Writer
|
|
42385
|
-
*/
|
|
42386
|
-
public static encode(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42387
|
-
|
|
42388
|
-
/**
|
|
42389
|
-
* Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
42390
|
-
* @param message UserEmailVerificationRequested message or plain object to encode
|
|
42391
|
-
* @param [writer] Writer to encode to
|
|
42392
|
-
* @returns Writer
|
|
42393
|
-
*/
|
|
42394
|
-
public static encodeDelimited(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42395
|
-
|
|
42396
|
-
/**
|
|
42397
|
-
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
|
|
42398
|
-
* @param reader Reader or buffer to decode from
|
|
42399
|
-
* @param [length] Message length if known beforehand
|
|
42400
|
-
* @returns UserEmailVerificationRequested
|
|
42401
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42402
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42403
|
-
*/
|
|
42404
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailVerificationRequested;
|
|
42405
|
-
|
|
42406
|
-
/**
|
|
42407
|
-
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
|
|
42408
|
-
* @param reader Reader or buffer to decode from
|
|
42409
|
-
* @returns UserEmailVerificationRequested
|
|
42410
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42411
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42412
|
-
*/
|
|
42413
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailVerificationRequested;
|
|
42414
|
-
|
|
42415
|
-
/**
|
|
42416
|
-
* Verifies a UserEmailVerificationRequested message.
|
|
42417
|
-
* @param message Plain object to verify
|
|
42418
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
42419
|
-
*/
|
|
42420
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
42421
|
-
|
|
42422
|
-
/**
|
|
42423
|
-
* Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
|
|
42424
|
-
* @param object Plain object
|
|
42425
|
-
* @returns UserEmailVerificationRequested
|
|
42426
|
-
*/
|
|
42427
|
-
public static fromObject(object: { [k: string]: any }): UserEmailVerificationRequested;
|
|
42428
|
-
|
|
42429
|
-
/**
|
|
42430
|
-
* Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
|
|
42431
|
-
* @param message UserEmailVerificationRequested
|
|
42432
|
-
* @param [options] Conversion options
|
|
42433
|
-
* @returns Plain object
|
|
42434
|
-
*/
|
|
42435
|
-
public static toObject(message: UserEmailVerificationRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
42436
|
-
|
|
42437
|
-
/**
|
|
42438
|
-
* Converts this UserEmailVerificationRequested to JSON.
|
|
42439
|
-
* @returns JSON object
|
|
42440
|
-
*/
|
|
42441
|
-
public toJSON(): { [k: string]: any };
|
|
42442
|
-
}
|
|
42443
|
-
|
|
42444
42205
|
/** Properties of a UserEmailVerificationCompleted. */
|
|
42445
42206
|
export interface IUserEmailVerificationCompleted {
|
|
42446
42207
|
|
package/lib/index.js
CHANGED
|
@@ -31693,44 +31693,6 @@ $root.userdomain = (function() {
|
|
|
31693
31693
|
return values;
|
|
31694
31694
|
})();
|
|
31695
31695
|
|
|
31696
|
-
/**
|
|
31697
|
-
* LoginStatus enum.
|
|
31698
|
-
* @name userdomain.users.LoginStatus
|
|
31699
|
-
* @enum {string}
|
|
31700
|
-
* @property {number} LOGIN_UNKNOWN=0 LOGIN_UNKNOWN value
|
|
31701
|
-
* @property {number} LOGIN_SUCCESS=1 LOGIN_SUCCESS value
|
|
31702
|
-
* @property {number} LOGIN_FAIL=2 LOGIN_FAIL value
|
|
31703
|
-
*/
|
|
31704
|
-
users.LoginStatus = (function() {
|
|
31705
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
31706
|
-
values[valuesById[0] = "LOGIN_UNKNOWN"] = 0;
|
|
31707
|
-
values[valuesById[1] = "LOGIN_SUCCESS"] = 1;
|
|
31708
|
-
values[valuesById[2] = "LOGIN_FAIL"] = 2;
|
|
31709
|
-
return values;
|
|
31710
|
-
})();
|
|
31711
|
-
|
|
31712
|
-
/**
|
|
31713
|
-
* ConnectionSource enum.
|
|
31714
|
-
* @name userdomain.users.ConnectionSource
|
|
31715
|
-
* @enum {string}
|
|
31716
|
-
* @property {number} CONNSRC_UNKNOWN=0 CONNSRC_UNKNOWN value
|
|
31717
|
-
* @property {number} CONNSRC_EMAIL=1 CONNSRC_EMAIL value
|
|
31718
|
-
* @property {number} CONNSRC_FACEBOOK=2 CONNSRC_FACEBOOK value
|
|
31719
|
-
* @property {number} CONNSRC_SPOTIFY=3 CONNSRC_SPOTIFY value
|
|
31720
|
-
* @property {number} CONNSRC_APPLE=4 CONNSRC_APPLE value
|
|
31721
|
-
* @property {number} CONNSRC_GOOGLE=5 CONNSRC_GOOGLE value
|
|
31722
|
-
*/
|
|
31723
|
-
users.ConnectionSource = (function() {
|
|
31724
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
31725
|
-
values[valuesById[0] = "CONNSRC_UNKNOWN"] = 0;
|
|
31726
|
-
values[valuesById[1] = "CONNSRC_EMAIL"] = 1;
|
|
31727
|
-
values[valuesById[2] = "CONNSRC_FACEBOOK"] = 2;
|
|
31728
|
-
values[valuesById[3] = "CONNSRC_SPOTIFY"] = 3;
|
|
31729
|
-
values[valuesById[4] = "CONNSRC_APPLE"] = 4;
|
|
31730
|
-
values[valuesById[5] = "CONNSRC_GOOGLE"] = 5;
|
|
31731
|
-
return values;
|
|
31732
|
-
})();
|
|
31733
|
-
|
|
31734
31696
|
/**
|
|
31735
31697
|
* UserDeleteReason enum.
|
|
31736
31698
|
* @name userdomain.users.UserDeleteReason
|
|
@@ -62472,385 +62434,6 @@ $root.UserDomainIsAnonymousUserUpdated = (function() {
|
|
|
62472
62434
|
return UserDomainIsAnonymousUserUpdated;
|
|
62473
62435
|
})();
|
|
62474
62436
|
|
|
62475
|
-
$root.UserDomainLoggedIn = (function() {
|
|
62476
|
-
|
|
62477
|
-
/**
|
|
62478
|
-
* Properties of a UserDomainLoggedIn.
|
|
62479
|
-
* @exports IUserDomainLoggedIn
|
|
62480
|
-
* @interface IUserDomainLoggedIn
|
|
62481
|
-
* @property {string|null} [hsId] UserDomainLoggedIn hsId
|
|
62482
|
-
* @property {number|Long|null} [loginTimestamp] UserDomainLoggedIn loginTimestamp
|
|
62483
|
-
* @property {userdomain.users.LoginStatus|null} [loginStatus] UserDomainLoggedIn loginStatus
|
|
62484
|
-
* @property {userdomain.users.Platform|null} [loginPlatform] UserDomainLoggedIn loginPlatform
|
|
62485
|
-
* @property {userdomain.users.ConnectionSource|null} [loginConnectionSource] UserDomainLoggedIn loginConnectionSource
|
|
62486
|
-
*/
|
|
62487
|
-
|
|
62488
|
-
/**
|
|
62489
|
-
* Constructs a new UserDomainLoggedIn.
|
|
62490
|
-
* @exports UserDomainLoggedIn
|
|
62491
|
-
* @classdesc Represents a UserDomainLoggedIn.
|
|
62492
|
-
* @implements IUserDomainLoggedIn
|
|
62493
|
-
* @constructor
|
|
62494
|
-
* @param {IUserDomainLoggedIn=} [properties] Properties to set
|
|
62495
|
-
*/
|
|
62496
|
-
function UserDomainLoggedIn(properties) {
|
|
62497
|
-
if (properties)
|
|
62498
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62499
|
-
if (properties[keys[i]] != null)
|
|
62500
|
-
this[keys[i]] = properties[keys[i]];
|
|
62501
|
-
}
|
|
62502
|
-
|
|
62503
|
-
/**
|
|
62504
|
-
* UserDomainLoggedIn hsId.
|
|
62505
|
-
* @member {string} hsId
|
|
62506
|
-
* @memberof UserDomainLoggedIn
|
|
62507
|
-
* @instance
|
|
62508
|
-
*/
|
|
62509
|
-
UserDomainLoggedIn.prototype.hsId = "";
|
|
62510
|
-
|
|
62511
|
-
/**
|
|
62512
|
-
* UserDomainLoggedIn loginTimestamp.
|
|
62513
|
-
* @member {number|Long} loginTimestamp
|
|
62514
|
-
* @memberof UserDomainLoggedIn
|
|
62515
|
-
* @instance
|
|
62516
|
-
*/
|
|
62517
|
-
UserDomainLoggedIn.prototype.loginTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62518
|
-
|
|
62519
|
-
/**
|
|
62520
|
-
* UserDomainLoggedIn loginStatus.
|
|
62521
|
-
* @member {userdomain.users.LoginStatus} loginStatus
|
|
62522
|
-
* @memberof UserDomainLoggedIn
|
|
62523
|
-
* @instance
|
|
62524
|
-
*/
|
|
62525
|
-
UserDomainLoggedIn.prototype.loginStatus = 0;
|
|
62526
|
-
|
|
62527
|
-
/**
|
|
62528
|
-
* UserDomainLoggedIn loginPlatform.
|
|
62529
|
-
* @member {userdomain.users.Platform} loginPlatform
|
|
62530
|
-
* @memberof UserDomainLoggedIn
|
|
62531
|
-
* @instance
|
|
62532
|
-
*/
|
|
62533
|
-
UserDomainLoggedIn.prototype.loginPlatform = 0;
|
|
62534
|
-
|
|
62535
|
-
/**
|
|
62536
|
-
* UserDomainLoggedIn loginConnectionSource.
|
|
62537
|
-
* @member {userdomain.users.ConnectionSource} loginConnectionSource
|
|
62538
|
-
* @memberof UserDomainLoggedIn
|
|
62539
|
-
* @instance
|
|
62540
|
-
*/
|
|
62541
|
-
UserDomainLoggedIn.prototype.loginConnectionSource = 0;
|
|
62542
|
-
|
|
62543
|
-
/**
|
|
62544
|
-
* Creates a new UserDomainLoggedIn instance using the specified properties.
|
|
62545
|
-
* @function create
|
|
62546
|
-
* @memberof UserDomainLoggedIn
|
|
62547
|
-
* @static
|
|
62548
|
-
* @param {IUserDomainLoggedIn=} [properties] Properties to set
|
|
62549
|
-
* @returns {UserDomainLoggedIn} UserDomainLoggedIn instance
|
|
62550
|
-
*/
|
|
62551
|
-
UserDomainLoggedIn.create = function create(properties) {
|
|
62552
|
-
return new UserDomainLoggedIn(properties);
|
|
62553
|
-
};
|
|
62554
|
-
|
|
62555
|
-
/**
|
|
62556
|
-
* Encodes the specified UserDomainLoggedIn message. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
62557
|
-
* @function encode
|
|
62558
|
-
* @memberof UserDomainLoggedIn
|
|
62559
|
-
* @static
|
|
62560
|
-
* @param {IUserDomainLoggedIn} message UserDomainLoggedIn message or plain object to encode
|
|
62561
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62562
|
-
* @returns {$protobuf.Writer} Writer
|
|
62563
|
-
*/
|
|
62564
|
-
UserDomainLoggedIn.encode = function encode(message, writer) {
|
|
62565
|
-
if (!writer)
|
|
62566
|
-
writer = $Writer.create();
|
|
62567
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
62568
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
62569
|
-
if (message.loginTimestamp != null && message.hasOwnProperty("loginTimestamp"))
|
|
62570
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.loginTimestamp);
|
|
62571
|
-
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
62572
|
-
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.loginStatus);
|
|
62573
|
-
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
62574
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.loginPlatform);
|
|
62575
|
-
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
62576
|
-
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.loginConnectionSource);
|
|
62577
|
-
return writer;
|
|
62578
|
-
};
|
|
62579
|
-
|
|
62580
|
-
/**
|
|
62581
|
-
* Encodes the specified UserDomainLoggedIn message, length delimited. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
62582
|
-
* @function encodeDelimited
|
|
62583
|
-
* @memberof UserDomainLoggedIn
|
|
62584
|
-
* @static
|
|
62585
|
-
* @param {IUserDomainLoggedIn} message UserDomainLoggedIn message or plain object to encode
|
|
62586
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62587
|
-
* @returns {$protobuf.Writer} Writer
|
|
62588
|
-
*/
|
|
62589
|
-
UserDomainLoggedIn.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62590
|
-
return this.encode(message, writer).ldelim();
|
|
62591
|
-
};
|
|
62592
|
-
|
|
62593
|
-
/**
|
|
62594
|
-
* Decodes a UserDomainLoggedIn message from the specified reader or buffer.
|
|
62595
|
-
* @function decode
|
|
62596
|
-
* @memberof UserDomainLoggedIn
|
|
62597
|
-
* @static
|
|
62598
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62599
|
-
* @param {number} [length] Message length if known beforehand
|
|
62600
|
-
* @returns {UserDomainLoggedIn} UserDomainLoggedIn
|
|
62601
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62602
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62603
|
-
*/
|
|
62604
|
-
UserDomainLoggedIn.decode = function decode(reader, length) {
|
|
62605
|
-
if (!(reader instanceof $Reader))
|
|
62606
|
-
reader = $Reader.create(reader);
|
|
62607
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainLoggedIn();
|
|
62608
|
-
while (reader.pos < end) {
|
|
62609
|
-
var tag = reader.uint32();
|
|
62610
|
-
switch (tag >>> 3) {
|
|
62611
|
-
case 1:
|
|
62612
|
-
message.hsId = reader.string();
|
|
62613
|
-
break;
|
|
62614
|
-
case 2:
|
|
62615
|
-
message.loginTimestamp = reader.uint64();
|
|
62616
|
-
break;
|
|
62617
|
-
case 3:
|
|
62618
|
-
message.loginStatus = reader.int32();
|
|
62619
|
-
break;
|
|
62620
|
-
case 4:
|
|
62621
|
-
message.loginPlatform = reader.int32();
|
|
62622
|
-
break;
|
|
62623
|
-
case 5:
|
|
62624
|
-
message.loginConnectionSource = reader.int32();
|
|
62625
|
-
break;
|
|
62626
|
-
default:
|
|
62627
|
-
reader.skipType(tag & 7);
|
|
62628
|
-
break;
|
|
62629
|
-
}
|
|
62630
|
-
}
|
|
62631
|
-
return message;
|
|
62632
|
-
};
|
|
62633
|
-
|
|
62634
|
-
/**
|
|
62635
|
-
* Decodes a UserDomainLoggedIn message from the specified reader or buffer, length delimited.
|
|
62636
|
-
* @function decodeDelimited
|
|
62637
|
-
* @memberof UserDomainLoggedIn
|
|
62638
|
-
* @static
|
|
62639
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62640
|
-
* @returns {UserDomainLoggedIn} UserDomainLoggedIn
|
|
62641
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62642
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62643
|
-
*/
|
|
62644
|
-
UserDomainLoggedIn.decodeDelimited = function decodeDelimited(reader) {
|
|
62645
|
-
if (!(reader instanceof $Reader))
|
|
62646
|
-
reader = new $Reader(reader);
|
|
62647
|
-
return this.decode(reader, reader.uint32());
|
|
62648
|
-
};
|
|
62649
|
-
|
|
62650
|
-
/**
|
|
62651
|
-
* Verifies a UserDomainLoggedIn message.
|
|
62652
|
-
* @function verify
|
|
62653
|
-
* @memberof UserDomainLoggedIn
|
|
62654
|
-
* @static
|
|
62655
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
62656
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62657
|
-
*/
|
|
62658
|
-
UserDomainLoggedIn.verify = function verify(message) {
|
|
62659
|
-
if (typeof message !== "object" || message === null)
|
|
62660
|
-
return "object expected";
|
|
62661
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
62662
|
-
if (!$util.isString(message.hsId))
|
|
62663
|
-
return "hsId: string expected";
|
|
62664
|
-
if (message.loginTimestamp != null && message.hasOwnProperty("loginTimestamp"))
|
|
62665
|
-
if (!$util.isInteger(message.loginTimestamp) && !(message.loginTimestamp && $util.isInteger(message.loginTimestamp.low) && $util.isInteger(message.loginTimestamp.high)))
|
|
62666
|
-
return "loginTimestamp: integer|Long expected";
|
|
62667
|
-
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
62668
|
-
switch (message.loginStatus) {
|
|
62669
|
-
default:
|
|
62670
|
-
return "loginStatus: enum value expected";
|
|
62671
|
-
case 0:
|
|
62672
|
-
case 1:
|
|
62673
|
-
case 2:
|
|
62674
|
-
break;
|
|
62675
|
-
}
|
|
62676
|
-
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
62677
|
-
switch (message.loginPlatform) {
|
|
62678
|
-
default:
|
|
62679
|
-
return "loginPlatform: enum value expected";
|
|
62680
|
-
case 0:
|
|
62681
|
-
case 1:
|
|
62682
|
-
case 2:
|
|
62683
|
-
case 3:
|
|
62684
|
-
case 4:
|
|
62685
|
-
case 5:
|
|
62686
|
-
case 6:
|
|
62687
|
-
break;
|
|
62688
|
-
}
|
|
62689
|
-
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
62690
|
-
switch (message.loginConnectionSource) {
|
|
62691
|
-
default:
|
|
62692
|
-
return "loginConnectionSource: enum value expected";
|
|
62693
|
-
case 0:
|
|
62694
|
-
case 1:
|
|
62695
|
-
case 2:
|
|
62696
|
-
case 3:
|
|
62697
|
-
case 4:
|
|
62698
|
-
case 5:
|
|
62699
|
-
break;
|
|
62700
|
-
}
|
|
62701
|
-
return null;
|
|
62702
|
-
};
|
|
62703
|
-
|
|
62704
|
-
/**
|
|
62705
|
-
* Creates a UserDomainLoggedIn message from a plain object. Also converts values to their respective internal types.
|
|
62706
|
-
* @function fromObject
|
|
62707
|
-
* @memberof UserDomainLoggedIn
|
|
62708
|
-
* @static
|
|
62709
|
-
* @param {Object.<string,*>} object Plain object
|
|
62710
|
-
* @returns {UserDomainLoggedIn} UserDomainLoggedIn
|
|
62711
|
-
*/
|
|
62712
|
-
UserDomainLoggedIn.fromObject = function fromObject(object) {
|
|
62713
|
-
if (object instanceof $root.UserDomainLoggedIn)
|
|
62714
|
-
return object;
|
|
62715
|
-
var message = new $root.UserDomainLoggedIn();
|
|
62716
|
-
if (object.hsId != null)
|
|
62717
|
-
message.hsId = String(object.hsId);
|
|
62718
|
-
if (object.loginTimestamp != null)
|
|
62719
|
-
if ($util.Long)
|
|
62720
|
-
(message.loginTimestamp = $util.Long.fromValue(object.loginTimestamp)).unsigned = true;
|
|
62721
|
-
else if (typeof object.loginTimestamp === "string")
|
|
62722
|
-
message.loginTimestamp = parseInt(object.loginTimestamp, 10);
|
|
62723
|
-
else if (typeof object.loginTimestamp === "number")
|
|
62724
|
-
message.loginTimestamp = object.loginTimestamp;
|
|
62725
|
-
else if (typeof object.loginTimestamp === "object")
|
|
62726
|
-
message.loginTimestamp = new $util.LongBits(object.loginTimestamp.low >>> 0, object.loginTimestamp.high >>> 0).toNumber(true);
|
|
62727
|
-
switch (object.loginStatus) {
|
|
62728
|
-
case "LOGIN_UNKNOWN":
|
|
62729
|
-
case 0:
|
|
62730
|
-
message.loginStatus = 0;
|
|
62731
|
-
break;
|
|
62732
|
-
case "LOGIN_SUCCESS":
|
|
62733
|
-
case 1:
|
|
62734
|
-
message.loginStatus = 1;
|
|
62735
|
-
break;
|
|
62736
|
-
case "LOGIN_FAIL":
|
|
62737
|
-
case 2:
|
|
62738
|
-
message.loginStatus = 2;
|
|
62739
|
-
break;
|
|
62740
|
-
}
|
|
62741
|
-
switch (object.loginPlatform) {
|
|
62742
|
-
case "UNKNOWN_PLATFORM":
|
|
62743
|
-
case 0:
|
|
62744
|
-
message.loginPlatform = 0;
|
|
62745
|
-
break;
|
|
62746
|
-
case "DESKTOP":
|
|
62747
|
-
case 1:
|
|
62748
|
-
message.loginPlatform = 1;
|
|
62749
|
-
break;
|
|
62750
|
-
case "IOS":
|
|
62751
|
-
case 2:
|
|
62752
|
-
message.loginPlatform = 2;
|
|
62753
|
-
break;
|
|
62754
|
-
case "ANDROID":
|
|
62755
|
-
case 3:
|
|
62756
|
-
message.loginPlatform = 3;
|
|
62757
|
-
break;
|
|
62758
|
-
case "ALEXA":
|
|
62759
|
-
case 4:
|
|
62760
|
-
message.loginPlatform = 4;
|
|
62761
|
-
break;
|
|
62762
|
-
case "GOOGLE_ASSISTANT":
|
|
62763
|
-
case 5:
|
|
62764
|
-
message.loginPlatform = 5;
|
|
62765
|
-
break;
|
|
62766
|
-
case "IOS_WATCH":
|
|
62767
|
-
case 6:
|
|
62768
|
-
message.loginPlatform = 6;
|
|
62769
|
-
break;
|
|
62770
|
-
}
|
|
62771
|
-
switch (object.loginConnectionSource) {
|
|
62772
|
-
case "CONNSRC_UNKNOWN":
|
|
62773
|
-
case 0:
|
|
62774
|
-
message.loginConnectionSource = 0;
|
|
62775
|
-
break;
|
|
62776
|
-
case "CONNSRC_EMAIL":
|
|
62777
|
-
case 1:
|
|
62778
|
-
message.loginConnectionSource = 1;
|
|
62779
|
-
break;
|
|
62780
|
-
case "CONNSRC_FACEBOOK":
|
|
62781
|
-
case 2:
|
|
62782
|
-
message.loginConnectionSource = 2;
|
|
62783
|
-
break;
|
|
62784
|
-
case "CONNSRC_SPOTIFY":
|
|
62785
|
-
case 3:
|
|
62786
|
-
message.loginConnectionSource = 3;
|
|
62787
|
-
break;
|
|
62788
|
-
case "CONNSRC_APPLE":
|
|
62789
|
-
case 4:
|
|
62790
|
-
message.loginConnectionSource = 4;
|
|
62791
|
-
break;
|
|
62792
|
-
case "CONNSRC_GOOGLE":
|
|
62793
|
-
case 5:
|
|
62794
|
-
message.loginConnectionSource = 5;
|
|
62795
|
-
break;
|
|
62796
|
-
}
|
|
62797
|
-
return message;
|
|
62798
|
-
};
|
|
62799
|
-
|
|
62800
|
-
/**
|
|
62801
|
-
* Creates a plain object from a UserDomainLoggedIn message. Also converts values to other types if specified.
|
|
62802
|
-
* @function toObject
|
|
62803
|
-
* @memberof UserDomainLoggedIn
|
|
62804
|
-
* @static
|
|
62805
|
-
* @param {UserDomainLoggedIn} message UserDomainLoggedIn
|
|
62806
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62807
|
-
* @returns {Object.<string,*>} Plain object
|
|
62808
|
-
*/
|
|
62809
|
-
UserDomainLoggedIn.toObject = function toObject(message, options) {
|
|
62810
|
-
if (!options)
|
|
62811
|
-
options = {};
|
|
62812
|
-
var object = {};
|
|
62813
|
-
if (options.defaults) {
|
|
62814
|
-
object.hsId = "";
|
|
62815
|
-
if ($util.Long) {
|
|
62816
|
-
var long = new $util.Long(0, 0, true);
|
|
62817
|
-
object.loginTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62818
|
-
} else
|
|
62819
|
-
object.loginTimestamp = options.longs === String ? "0" : 0;
|
|
62820
|
-
object.loginStatus = options.enums === String ? "LOGIN_UNKNOWN" : 0;
|
|
62821
|
-
object.loginPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
62822
|
-
object.loginConnectionSource = options.enums === String ? "CONNSRC_UNKNOWN" : 0;
|
|
62823
|
-
}
|
|
62824
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
62825
|
-
object.hsId = message.hsId;
|
|
62826
|
-
if (message.loginTimestamp != null && message.hasOwnProperty("loginTimestamp"))
|
|
62827
|
-
if (typeof message.loginTimestamp === "number")
|
|
62828
|
-
object.loginTimestamp = options.longs === String ? String(message.loginTimestamp) : message.loginTimestamp;
|
|
62829
|
-
else
|
|
62830
|
-
object.loginTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.loginTimestamp) : options.longs === Number ? new $util.LongBits(message.loginTimestamp.low >>> 0, message.loginTimestamp.high >>> 0).toNumber(true) : message.loginTimestamp;
|
|
62831
|
-
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
62832
|
-
object.loginStatus = options.enums === String ? $root.userdomain.users.LoginStatus[message.loginStatus] : message.loginStatus;
|
|
62833
|
-
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
62834
|
-
object.loginPlatform = options.enums === String ? $root.userdomain.users.Platform[message.loginPlatform] : message.loginPlatform;
|
|
62835
|
-
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
62836
|
-
object.loginConnectionSource = options.enums === String ? $root.userdomain.users.ConnectionSource[message.loginConnectionSource] : message.loginConnectionSource;
|
|
62837
|
-
return object;
|
|
62838
|
-
};
|
|
62839
|
-
|
|
62840
|
-
/**
|
|
62841
|
-
* Converts this UserDomainLoggedIn to JSON.
|
|
62842
|
-
* @function toJSON
|
|
62843
|
-
* @memberof UserDomainLoggedIn
|
|
62844
|
-
* @instance
|
|
62845
|
-
* @returns {Object.<string,*>} JSON object
|
|
62846
|
-
*/
|
|
62847
|
-
UserDomainLoggedIn.prototype.toJSON = function toJSON() {
|
|
62848
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62849
|
-
};
|
|
62850
|
-
|
|
62851
|
-
return UserDomainLoggedIn;
|
|
62852
|
-
})();
|
|
62853
|
-
|
|
62854
62437
|
$root.UserPasswordResetCompleted = (function() {
|
|
62855
62438
|
|
|
62856
62439
|
/**
|
|
@@ -120440,274 +120023,6 @@ $root.UserEmailUpdated = (function() {
|
|
|
120440
120023
|
return UserEmailUpdated;
|
|
120441
120024
|
})();
|
|
120442
120025
|
|
|
120443
|
-
$root.UserEmailVerificationRequested = (function() {
|
|
120444
|
-
|
|
120445
|
-
/**
|
|
120446
|
-
* Properties of a UserEmailVerificationRequested.
|
|
120447
|
-
* @exports IUserEmailVerificationRequested
|
|
120448
|
-
* @interface IUserEmailVerificationRequested
|
|
120449
|
-
* @property {string|null} [userId] UserEmailVerificationRequested userId
|
|
120450
|
-
* @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
|
|
120451
|
-
* @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
|
|
120452
|
-
* @property {boolean|null} [optIn] UserEmailVerificationRequested optIn
|
|
120453
|
-
*/
|
|
120454
|
-
|
|
120455
|
-
/**
|
|
120456
|
-
* Constructs a new UserEmailVerificationRequested.
|
|
120457
|
-
* @exports UserEmailVerificationRequested
|
|
120458
|
-
* @classdesc Represents a UserEmailVerificationRequested.
|
|
120459
|
-
* @implements IUserEmailVerificationRequested
|
|
120460
|
-
* @constructor
|
|
120461
|
-
* @param {IUserEmailVerificationRequested=} [properties] Properties to set
|
|
120462
|
-
*/
|
|
120463
|
-
function UserEmailVerificationRequested(properties) {
|
|
120464
|
-
if (properties)
|
|
120465
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
120466
|
-
if (properties[keys[i]] != null)
|
|
120467
|
-
this[keys[i]] = properties[keys[i]];
|
|
120468
|
-
}
|
|
120469
|
-
|
|
120470
|
-
/**
|
|
120471
|
-
* UserEmailVerificationRequested userId.
|
|
120472
|
-
* @member {string} userId
|
|
120473
|
-
* @memberof UserEmailVerificationRequested
|
|
120474
|
-
* @instance
|
|
120475
|
-
*/
|
|
120476
|
-
UserEmailVerificationRequested.prototype.userId = "";
|
|
120477
|
-
|
|
120478
|
-
/**
|
|
120479
|
-
* UserEmailVerificationRequested verificationCode.
|
|
120480
|
-
* @member {string} verificationCode
|
|
120481
|
-
* @memberof UserEmailVerificationRequested
|
|
120482
|
-
* @instance
|
|
120483
|
-
*/
|
|
120484
|
-
UserEmailVerificationRequested.prototype.verificationCode = "";
|
|
120485
|
-
|
|
120486
|
-
/**
|
|
120487
|
-
* UserEmailVerificationRequested timestamp.
|
|
120488
|
-
* @member {number|Long} timestamp
|
|
120489
|
-
* @memberof UserEmailVerificationRequested
|
|
120490
|
-
* @instance
|
|
120491
|
-
*/
|
|
120492
|
-
UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
120493
|
-
|
|
120494
|
-
/**
|
|
120495
|
-
* UserEmailVerificationRequested optIn.
|
|
120496
|
-
* @member {boolean} optIn
|
|
120497
|
-
* @memberof UserEmailVerificationRequested
|
|
120498
|
-
* @instance
|
|
120499
|
-
*/
|
|
120500
|
-
UserEmailVerificationRequested.prototype.optIn = false;
|
|
120501
|
-
|
|
120502
|
-
/**
|
|
120503
|
-
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
120504
|
-
* @function create
|
|
120505
|
-
* @memberof UserEmailVerificationRequested
|
|
120506
|
-
* @static
|
|
120507
|
-
* @param {IUserEmailVerificationRequested=} [properties] Properties to set
|
|
120508
|
-
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested instance
|
|
120509
|
-
*/
|
|
120510
|
-
UserEmailVerificationRequested.create = function create(properties) {
|
|
120511
|
-
return new UserEmailVerificationRequested(properties);
|
|
120512
|
-
};
|
|
120513
|
-
|
|
120514
|
-
/**
|
|
120515
|
-
* Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
120516
|
-
* @function encode
|
|
120517
|
-
* @memberof UserEmailVerificationRequested
|
|
120518
|
-
* @static
|
|
120519
|
-
* @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
|
|
120520
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
120521
|
-
* @returns {$protobuf.Writer} Writer
|
|
120522
|
-
*/
|
|
120523
|
-
UserEmailVerificationRequested.encode = function encode(message, writer) {
|
|
120524
|
-
if (!writer)
|
|
120525
|
-
writer = $Writer.create();
|
|
120526
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
120527
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
120528
|
-
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
120529
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
|
|
120530
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
120531
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
120532
|
-
if (message.optIn != null && message.hasOwnProperty("optIn"))
|
|
120533
|
-
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.optIn);
|
|
120534
|
-
return writer;
|
|
120535
|
-
};
|
|
120536
|
-
|
|
120537
|
-
/**
|
|
120538
|
-
* Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
|
|
120539
|
-
* @function encodeDelimited
|
|
120540
|
-
* @memberof UserEmailVerificationRequested
|
|
120541
|
-
* @static
|
|
120542
|
-
* @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
|
|
120543
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
120544
|
-
* @returns {$protobuf.Writer} Writer
|
|
120545
|
-
*/
|
|
120546
|
-
UserEmailVerificationRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
120547
|
-
return this.encode(message, writer).ldelim();
|
|
120548
|
-
};
|
|
120549
|
-
|
|
120550
|
-
/**
|
|
120551
|
-
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
|
|
120552
|
-
* @function decode
|
|
120553
|
-
* @memberof UserEmailVerificationRequested
|
|
120554
|
-
* @static
|
|
120555
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
120556
|
-
* @param {number} [length] Message length if known beforehand
|
|
120557
|
-
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
120558
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
120559
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
120560
|
-
*/
|
|
120561
|
-
UserEmailVerificationRequested.decode = function decode(reader, length) {
|
|
120562
|
-
if (!(reader instanceof $Reader))
|
|
120563
|
-
reader = $Reader.create(reader);
|
|
120564
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationRequested();
|
|
120565
|
-
while (reader.pos < end) {
|
|
120566
|
-
var tag = reader.uint32();
|
|
120567
|
-
switch (tag >>> 3) {
|
|
120568
|
-
case 1:
|
|
120569
|
-
message.userId = reader.string();
|
|
120570
|
-
break;
|
|
120571
|
-
case 2:
|
|
120572
|
-
message.verificationCode = reader.string();
|
|
120573
|
-
break;
|
|
120574
|
-
case 3:
|
|
120575
|
-
message.timestamp = reader.uint64();
|
|
120576
|
-
break;
|
|
120577
|
-
case 4:
|
|
120578
|
-
message.optIn = reader.bool();
|
|
120579
|
-
break;
|
|
120580
|
-
default:
|
|
120581
|
-
reader.skipType(tag & 7);
|
|
120582
|
-
break;
|
|
120583
|
-
}
|
|
120584
|
-
}
|
|
120585
|
-
return message;
|
|
120586
|
-
};
|
|
120587
|
-
|
|
120588
|
-
/**
|
|
120589
|
-
* Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
|
|
120590
|
-
* @function decodeDelimited
|
|
120591
|
-
* @memberof UserEmailVerificationRequested
|
|
120592
|
-
* @static
|
|
120593
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
120594
|
-
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
120595
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
120596
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
120597
|
-
*/
|
|
120598
|
-
UserEmailVerificationRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
120599
|
-
if (!(reader instanceof $Reader))
|
|
120600
|
-
reader = new $Reader(reader);
|
|
120601
|
-
return this.decode(reader, reader.uint32());
|
|
120602
|
-
};
|
|
120603
|
-
|
|
120604
|
-
/**
|
|
120605
|
-
* Verifies a UserEmailVerificationRequested message.
|
|
120606
|
-
* @function verify
|
|
120607
|
-
* @memberof UserEmailVerificationRequested
|
|
120608
|
-
* @static
|
|
120609
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
120610
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
120611
|
-
*/
|
|
120612
|
-
UserEmailVerificationRequested.verify = function verify(message) {
|
|
120613
|
-
if (typeof message !== "object" || message === null)
|
|
120614
|
-
return "object expected";
|
|
120615
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
120616
|
-
if (!$util.isString(message.userId))
|
|
120617
|
-
return "userId: string expected";
|
|
120618
|
-
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
120619
|
-
if (!$util.isString(message.verificationCode))
|
|
120620
|
-
return "verificationCode: string expected";
|
|
120621
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
120622
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
120623
|
-
return "timestamp: integer|Long expected";
|
|
120624
|
-
if (message.optIn != null && message.hasOwnProperty("optIn"))
|
|
120625
|
-
if (typeof message.optIn !== "boolean")
|
|
120626
|
-
return "optIn: boolean expected";
|
|
120627
|
-
return null;
|
|
120628
|
-
};
|
|
120629
|
-
|
|
120630
|
-
/**
|
|
120631
|
-
* Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
|
|
120632
|
-
* @function fromObject
|
|
120633
|
-
* @memberof UserEmailVerificationRequested
|
|
120634
|
-
* @static
|
|
120635
|
-
* @param {Object.<string,*>} object Plain object
|
|
120636
|
-
* @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
|
|
120637
|
-
*/
|
|
120638
|
-
UserEmailVerificationRequested.fromObject = function fromObject(object) {
|
|
120639
|
-
if (object instanceof $root.UserEmailVerificationRequested)
|
|
120640
|
-
return object;
|
|
120641
|
-
var message = new $root.UserEmailVerificationRequested();
|
|
120642
|
-
if (object.userId != null)
|
|
120643
|
-
message.userId = String(object.userId);
|
|
120644
|
-
if (object.verificationCode != null)
|
|
120645
|
-
message.verificationCode = String(object.verificationCode);
|
|
120646
|
-
if (object.timestamp != null)
|
|
120647
|
-
if ($util.Long)
|
|
120648
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
120649
|
-
else if (typeof object.timestamp === "string")
|
|
120650
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
120651
|
-
else if (typeof object.timestamp === "number")
|
|
120652
|
-
message.timestamp = object.timestamp;
|
|
120653
|
-
else if (typeof object.timestamp === "object")
|
|
120654
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
120655
|
-
if (object.optIn != null)
|
|
120656
|
-
message.optIn = Boolean(object.optIn);
|
|
120657
|
-
return message;
|
|
120658
|
-
};
|
|
120659
|
-
|
|
120660
|
-
/**
|
|
120661
|
-
* Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
|
|
120662
|
-
* @function toObject
|
|
120663
|
-
* @memberof UserEmailVerificationRequested
|
|
120664
|
-
* @static
|
|
120665
|
-
* @param {UserEmailVerificationRequested} message UserEmailVerificationRequested
|
|
120666
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
120667
|
-
* @returns {Object.<string,*>} Plain object
|
|
120668
|
-
*/
|
|
120669
|
-
UserEmailVerificationRequested.toObject = function toObject(message, options) {
|
|
120670
|
-
if (!options)
|
|
120671
|
-
options = {};
|
|
120672
|
-
var object = {};
|
|
120673
|
-
if (options.defaults) {
|
|
120674
|
-
object.userId = "";
|
|
120675
|
-
object.verificationCode = "";
|
|
120676
|
-
if ($util.Long) {
|
|
120677
|
-
var long = new $util.Long(0, 0, true);
|
|
120678
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
120679
|
-
} else
|
|
120680
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
120681
|
-
object.optIn = false;
|
|
120682
|
-
}
|
|
120683
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
120684
|
-
object.userId = message.userId;
|
|
120685
|
-
if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
|
|
120686
|
-
object.verificationCode = message.verificationCode;
|
|
120687
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
120688
|
-
if (typeof message.timestamp === "number")
|
|
120689
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
120690
|
-
else
|
|
120691
|
-
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
120692
|
-
if (message.optIn != null && message.hasOwnProperty("optIn"))
|
|
120693
|
-
object.optIn = message.optIn;
|
|
120694
|
-
return object;
|
|
120695
|
-
};
|
|
120696
|
-
|
|
120697
|
-
/**
|
|
120698
|
-
* Converts this UserEmailVerificationRequested to JSON.
|
|
120699
|
-
* @function toJSON
|
|
120700
|
-
* @memberof UserEmailVerificationRequested
|
|
120701
|
-
* @instance
|
|
120702
|
-
* @returns {Object.<string,*>} JSON object
|
|
120703
|
-
*/
|
|
120704
|
-
UserEmailVerificationRequested.prototype.toJSON = function toJSON() {
|
|
120705
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
120706
|
-
};
|
|
120707
|
-
|
|
120708
|
-
return UserEmailVerificationRequested;
|
|
120709
|
-
})();
|
|
120710
|
-
|
|
120711
120026
|
$root.UserEmailVerificationCompleted = (function() {
|
|
120712
120027
|
|
|
120713
120028
|
/**
|
package/package.json
CHANGED