@headspace/protos-events 1.80.0 → 1.81.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 +130 -0
- package/lib/index.js +405 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2271,6 +2271,22 @@ export namespace userdomain {
|
|
|
2271
2271
|
ALEXA = 4,
|
|
2272
2272
|
GOOGLE_ASSISTANT = 5
|
|
2273
2273
|
}
|
|
2274
|
+
|
|
2275
|
+
/** LoginStatus enum. */
|
|
2276
|
+
enum LoginStatus {
|
|
2277
|
+
LOGIN_UNKNOWN = 0,
|
|
2278
|
+
LOGIN_SUCCESS = 1,
|
|
2279
|
+
LOGIN_FAIL = 2
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
/** ConnectionSource enum. */
|
|
2283
|
+
enum ConnectionSource {
|
|
2284
|
+
CONNSRC_UNKNOWN = 0,
|
|
2285
|
+
CONNSRC_EMAIL = 1,
|
|
2286
|
+
CONNSRC_FACEBOOK = 2,
|
|
2287
|
+
CONNSRC_SPOTIFY = 3,
|
|
2288
|
+
CONNSRC_APPLE = 4
|
|
2289
|
+
}
|
|
2274
2290
|
}
|
|
2275
2291
|
|
|
2276
2292
|
/** Properties of a UserRoleUpdated. */
|
|
@@ -2879,6 +2895,120 @@ export class UserDomainDeleted implements IUserDomainDeleted {
|
|
|
2879
2895
|
public toJSON(): { [k: string]: any };
|
|
2880
2896
|
}
|
|
2881
2897
|
|
|
2898
|
+
/** Properties of a UserDomainLoggedIn. */
|
|
2899
|
+
export interface IUserDomainLoggedIn {
|
|
2900
|
+
|
|
2901
|
+
/** UserDomainLoggedIn hsId */
|
|
2902
|
+
hsId?: (string|null);
|
|
2903
|
+
|
|
2904
|
+
/** UserDomainLoggedIn loginTimestamp */
|
|
2905
|
+
loginTimestamp?: (number|Long|null);
|
|
2906
|
+
|
|
2907
|
+
/** UserDomainLoggedIn loginStatus */
|
|
2908
|
+
loginStatus?: (userdomain.LoginStatus|null);
|
|
2909
|
+
|
|
2910
|
+
/** UserDomainLoggedIn loginPlatform */
|
|
2911
|
+
loginPlatform?: (userdomain.Platform|null);
|
|
2912
|
+
|
|
2913
|
+
/** UserDomainLoggedIn loginConnectionSource */
|
|
2914
|
+
loginConnectionSource?: (userdomain.ConnectionSource|null);
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
/** Represents a UserDomainLoggedIn. */
|
|
2918
|
+
export class UserDomainLoggedIn implements IUserDomainLoggedIn {
|
|
2919
|
+
|
|
2920
|
+
/**
|
|
2921
|
+
* Constructs a new UserDomainLoggedIn.
|
|
2922
|
+
* @param [properties] Properties to set
|
|
2923
|
+
*/
|
|
2924
|
+
constructor(properties?: IUserDomainLoggedIn);
|
|
2925
|
+
|
|
2926
|
+
/** UserDomainLoggedIn hsId. */
|
|
2927
|
+
public hsId: string;
|
|
2928
|
+
|
|
2929
|
+
/** UserDomainLoggedIn loginTimestamp. */
|
|
2930
|
+
public loginTimestamp: (number|Long);
|
|
2931
|
+
|
|
2932
|
+
/** UserDomainLoggedIn loginStatus. */
|
|
2933
|
+
public loginStatus: userdomain.LoginStatus;
|
|
2934
|
+
|
|
2935
|
+
/** UserDomainLoggedIn loginPlatform. */
|
|
2936
|
+
public loginPlatform: userdomain.Platform;
|
|
2937
|
+
|
|
2938
|
+
/** UserDomainLoggedIn loginConnectionSource. */
|
|
2939
|
+
public loginConnectionSource: userdomain.ConnectionSource;
|
|
2940
|
+
|
|
2941
|
+
/**
|
|
2942
|
+
* Creates a new UserDomainLoggedIn instance using the specified properties.
|
|
2943
|
+
* @param [properties] Properties to set
|
|
2944
|
+
* @returns UserDomainLoggedIn instance
|
|
2945
|
+
*/
|
|
2946
|
+
public static create(properties?: IUserDomainLoggedIn): UserDomainLoggedIn;
|
|
2947
|
+
|
|
2948
|
+
/**
|
|
2949
|
+
* Encodes the specified UserDomainLoggedIn message. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
2950
|
+
* @param message UserDomainLoggedIn message or plain object to encode
|
|
2951
|
+
* @param [writer] Writer to encode to
|
|
2952
|
+
* @returns Writer
|
|
2953
|
+
*/
|
|
2954
|
+
public static encode(message: IUserDomainLoggedIn, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2955
|
+
|
|
2956
|
+
/**
|
|
2957
|
+
* Encodes the specified UserDomainLoggedIn message, length delimited. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
2958
|
+
* @param message UserDomainLoggedIn message or plain object to encode
|
|
2959
|
+
* @param [writer] Writer to encode to
|
|
2960
|
+
* @returns Writer
|
|
2961
|
+
*/
|
|
2962
|
+
public static encodeDelimited(message: IUserDomainLoggedIn, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* Decodes a UserDomainLoggedIn message from the specified reader or buffer.
|
|
2966
|
+
* @param reader Reader or buffer to decode from
|
|
2967
|
+
* @param [length] Message length if known beforehand
|
|
2968
|
+
* @returns UserDomainLoggedIn
|
|
2969
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2970
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2971
|
+
*/
|
|
2972
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDomainLoggedIn;
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* Decodes a UserDomainLoggedIn message from the specified reader or buffer, length delimited.
|
|
2976
|
+
* @param reader Reader or buffer to decode from
|
|
2977
|
+
* @returns UserDomainLoggedIn
|
|
2978
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2979
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2980
|
+
*/
|
|
2981
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDomainLoggedIn;
|
|
2982
|
+
|
|
2983
|
+
/**
|
|
2984
|
+
* Verifies a UserDomainLoggedIn message.
|
|
2985
|
+
* @param message Plain object to verify
|
|
2986
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2987
|
+
*/
|
|
2988
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Creates a UserDomainLoggedIn message from a plain object. Also converts values to their respective internal types.
|
|
2992
|
+
* @param object Plain object
|
|
2993
|
+
* @returns UserDomainLoggedIn
|
|
2994
|
+
*/
|
|
2995
|
+
public static fromObject(object: { [k: string]: any }): UserDomainLoggedIn;
|
|
2996
|
+
|
|
2997
|
+
/**
|
|
2998
|
+
* Creates a plain object from a UserDomainLoggedIn message. Also converts values to other types if specified.
|
|
2999
|
+
* @param message UserDomainLoggedIn
|
|
3000
|
+
* @param [options] Conversion options
|
|
3001
|
+
* @returns Plain object
|
|
3002
|
+
*/
|
|
3003
|
+
public static toObject(message: UserDomainLoggedIn, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* Converts this UserDomainLoggedIn to JSON.
|
|
3007
|
+
* @returns JSON object
|
|
3008
|
+
*/
|
|
3009
|
+
public toJSON(): { [k: string]: any };
|
|
3010
|
+
}
|
|
3011
|
+
|
|
2882
3012
|
/** Properties of a UserPasswordResetCreated. */
|
|
2883
3013
|
export interface IUserPasswordResetCreated {
|
|
2884
3014
|
|
package/lib/index.js
CHANGED
|
@@ -5559,6 +5559,42 @@ $root.userdomain = (function() {
|
|
|
5559
5559
|
return values;
|
|
5560
5560
|
})();
|
|
5561
5561
|
|
|
5562
|
+
/**
|
|
5563
|
+
* LoginStatus enum.
|
|
5564
|
+
* @name userdomain.LoginStatus
|
|
5565
|
+
* @enum {string}
|
|
5566
|
+
* @property {number} LOGIN_UNKNOWN=0 LOGIN_UNKNOWN value
|
|
5567
|
+
* @property {number} LOGIN_SUCCESS=1 LOGIN_SUCCESS value
|
|
5568
|
+
* @property {number} LOGIN_FAIL=2 LOGIN_FAIL value
|
|
5569
|
+
*/
|
|
5570
|
+
userdomain.LoginStatus = (function() {
|
|
5571
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
5572
|
+
values[valuesById[0] = "LOGIN_UNKNOWN"] = 0;
|
|
5573
|
+
values[valuesById[1] = "LOGIN_SUCCESS"] = 1;
|
|
5574
|
+
values[valuesById[2] = "LOGIN_FAIL"] = 2;
|
|
5575
|
+
return values;
|
|
5576
|
+
})();
|
|
5577
|
+
|
|
5578
|
+
/**
|
|
5579
|
+
* ConnectionSource enum.
|
|
5580
|
+
* @name userdomain.ConnectionSource
|
|
5581
|
+
* @enum {string}
|
|
5582
|
+
* @property {number} CONNSRC_UNKNOWN=0 CONNSRC_UNKNOWN value
|
|
5583
|
+
* @property {number} CONNSRC_EMAIL=1 CONNSRC_EMAIL value
|
|
5584
|
+
* @property {number} CONNSRC_FACEBOOK=2 CONNSRC_FACEBOOK value
|
|
5585
|
+
* @property {number} CONNSRC_SPOTIFY=3 CONNSRC_SPOTIFY value
|
|
5586
|
+
* @property {number} CONNSRC_APPLE=4 CONNSRC_APPLE value
|
|
5587
|
+
*/
|
|
5588
|
+
userdomain.ConnectionSource = (function() {
|
|
5589
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
5590
|
+
values[valuesById[0] = "CONNSRC_UNKNOWN"] = 0;
|
|
5591
|
+
values[valuesById[1] = "CONNSRC_EMAIL"] = 1;
|
|
5592
|
+
values[valuesById[2] = "CONNSRC_FACEBOOK"] = 2;
|
|
5593
|
+
values[valuesById[3] = "CONNSRC_SPOTIFY"] = 3;
|
|
5594
|
+
values[valuesById[4] = "CONNSRC_APPLE"] = 4;
|
|
5595
|
+
return values;
|
|
5596
|
+
})();
|
|
5597
|
+
|
|
5562
5598
|
return userdomain;
|
|
5563
5599
|
})();
|
|
5564
5600
|
|
|
@@ -7026,6 +7062,375 @@ $root.UserDomainDeleted = (function() {
|
|
|
7026
7062
|
return UserDomainDeleted;
|
|
7027
7063
|
})();
|
|
7028
7064
|
|
|
7065
|
+
$root.UserDomainLoggedIn = (function() {
|
|
7066
|
+
|
|
7067
|
+
/**
|
|
7068
|
+
* Properties of a UserDomainLoggedIn.
|
|
7069
|
+
* @exports IUserDomainLoggedIn
|
|
7070
|
+
* @interface IUserDomainLoggedIn
|
|
7071
|
+
* @property {string|null} [hsId] UserDomainLoggedIn hsId
|
|
7072
|
+
* @property {number|Long|null} [loginTimestamp] UserDomainLoggedIn loginTimestamp
|
|
7073
|
+
* @property {userdomain.LoginStatus|null} [loginStatus] UserDomainLoggedIn loginStatus
|
|
7074
|
+
* @property {userdomain.Platform|null} [loginPlatform] UserDomainLoggedIn loginPlatform
|
|
7075
|
+
* @property {userdomain.ConnectionSource|null} [loginConnectionSource] UserDomainLoggedIn loginConnectionSource
|
|
7076
|
+
*/
|
|
7077
|
+
|
|
7078
|
+
/**
|
|
7079
|
+
* Constructs a new UserDomainLoggedIn.
|
|
7080
|
+
* @exports UserDomainLoggedIn
|
|
7081
|
+
* @classdesc Represents a UserDomainLoggedIn.
|
|
7082
|
+
* @implements IUserDomainLoggedIn
|
|
7083
|
+
* @constructor
|
|
7084
|
+
* @param {IUserDomainLoggedIn=} [properties] Properties to set
|
|
7085
|
+
*/
|
|
7086
|
+
function UserDomainLoggedIn(properties) {
|
|
7087
|
+
if (properties)
|
|
7088
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7089
|
+
if (properties[keys[i]] != null)
|
|
7090
|
+
this[keys[i]] = properties[keys[i]];
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7093
|
+
/**
|
|
7094
|
+
* UserDomainLoggedIn hsId.
|
|
7095
|
+
* @member {string} hsId
|
|
7096
|
+
* @memberof UserDomainLoggedIn
|
|
7097
|
+
* @instance
|
|
7098
|
+
*/
|
|
7099
|
+
UserDomainLoggedIn.prototype.hsId = "";
|
|
7100
|
+
|
|
7101
|
+
/**
|
|
7102
|
+
* UserDomainLoggedIn loginTimestamp.
|
|
7103
|
+
* @member {number|Long} loginTimestamp
|
|
7104
|
+
* @memberof UserDomainLoggedIn
|
|
7105
|
+
* @instance
|
|
7106
|
+
*/
|
|
7107
|
+
UserDomainLoggedIn.prototype.loginTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
7108
|
+
|
|
7109
|
+
/**
|
|
7110
|
+
* UserDomainLoggedIn loginStatus.
|
|
7111
|
+
* @member {userdomain.LoginStatus} loginStatus
|
|
7112
|
+
* @memberof UserDomainLoggedIn
|
|
7113
|
+
* @instance
|
|
7114
|
+
*/
|
|
7115
|
+
UserDomainLoggedIn.prototype.loginStatus = 0;
|
|
7116
|
+
|
|
7117
|
+
/**
|
|
7118
|
+
* UserDomainLoggedIn loginPlatform.
|
|
7119
|
+
* @member {userdomain.Platform} loginPlatform
|
|
7120
|
+
* @memberof UserDomainLoggedIn
|
|
7121
|
+
* @instance
|
|
7122
|
+
*/
|
|
7123
|
+
UserDomainLoggedIn.prototype.loginPlatform = 0;
|
|
7124
|
+
|
|
7125
|
+
/**
|
|
7126
|
+
* UserDomainLoggedIn loginConnectionSource.
|
|
7127
|
+
* @member {userdomain.ConnectionSource} loginConnectionSource
|
|
7128
|
+
* @memberof UserDomainLoggedIn
|
|
7129
|
+
* @instance
|
|
7130
|
+
*/
|
|
7131
|
+
UserDomainLoggedIn.prototype.loginConnectionSource = 0;
|
|
7132
|
+
|
|
7133
|
+
/**
|
|
7134
|
+
* Creates a new UserDomainLoggedIn instance using the specified properties.
|
|
7135
|
+
* @function create
|
|
7136
|
+
* @memberof UserDomainLoggedIn
|
|
7137
|
+
* @static
|
|
7138
|
+
* @param {IUserDomainLoggedIn=} [properties] Properties to set
|
|
7139
|
+
* @returns {UserDomainLoggedIn} UserDomainLoggedIn instance
|
|
7140
|
+
*/
|
|
7141
|
+
UserDomainLoggedIn.create = function create(properties) {
|
|
7142
|
+
return new UserDomainLoggedIn(properties);
|
|
7143
|
+
};
|
|
7144
|
+
|
|
7145
|
+
/**
|
|
7146
|
+
* Encodes the specified UserDomainLoggedIn message. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
7147
|
+
* @function encode
|
|
7148
|
+
* @memberof UserDomainLoggedIn
|
|
7149
|
+
* @static
|
|
7150
|
+
* @param {IUserDomainLoggedIn} message UserDomainLoggedIn message or plain object to encode
|
|
7151
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7152
|
+
* @returns {$protobuf.Writer} Writer
|
|
7153
|
+
*/
|
|
7154
|
+
UserDomainLoggedIn.encode = function encode(message, writer) {
|
|
7155
|
+
if (!writer)
|
|
7156
|
+
writer = $Writer.create();
|
|
7157
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
7158
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
7159
|
+
if (message.loginTimestamp != null && message.hasOwnProperty("loginTimestamp"))
|
|
7160
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.loginTimestamp);
|
|
7161
|
+
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
7162
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.loginStatus);
|
|
7163
|
+
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
7164
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.loginPlatform);
|
|
7165
|
+
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
7166
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.loginConnectionSource);
|
|
7167
|
+
return writer;
|
|
7168
|
+
};
|
|
7169
|
+
|
|
7170
|
+
/**
|
|
7171
|
+
* Encodes the specified UserDomainLoggedIn message, length delimited. Does not implicitly {@link UserDomainLoggedIn.verify|verify} messages.
|
|
7172
|
+
* @function encodeDelimited
|
|
7173
|
+
* @memberof UserDomainLoggedIn
|
|
7174
|
+
* @static
|
|
7175
|
+
* @param {IUserDomainLoggedIn} message UserDomainLoggedIn message or plain object to encode
|
|
7176
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7177
|
+
* @returns {$protobuf.Writer} Writer
|
|
7178
|
+
*/
|
|
7179
|
+
UserDomainLoggedIn.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7180
|
+
return this.encode(message, writer).ldelim();
|
|
7181
|
+
};
|
|
7182
|
+
|
|
7183
|
+
/**
|
|
7184
|
+
* Decodes a UserDomainLoggedIn message from the specified reader or buffer.
|
|
7185
|
+
* @function decode
|
|
7186
|
+
* @memberof UserDomainLoggedIn
|
|
7187
|
+
* @static
|
|
7188
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7189
|
+
* @param {number} [length] Message length if known beforehand
|
|
7190
|
+
* @returns {UserDomainLoggedIn} UserDomainLoggedIn
|
|
7191
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7192
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7193
|
+
*/
|
|
7194
|
+
UserDomainLoggedIn.decode = function decode(reader, length) {
|
|
7195
|
+
if (!(reader instanceof $Reader))
|
|
7196
|
+
reader = $Reader.create(reader);
|
|
7197
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainLoggedIn();
|
|
7198
|
+
while (reader.pos < end) {
|
|
7199
|
+
var tag = reader.uint32();
|
|
7200
|
+
switch (tag >>> 3) {
|
|
7201
|
+
case 1:
|
|
7202
|
+
message.hsId = reader.string();
|
|
7203
|
+
break;
|
|
7204
|
+
case 2:
|
|
7205
|
+
message.loginTimestamp = reader.uint64();
|
|
7206
|
+
break;
|
|
7207
|
+
case 3:
|
|
7208
|
+
message.loginStatus = reader.int32();
|
|
7209
|
+
break;
|
|
7210
|
+
case 4:
|
|
7211
|
+
message.loginPlatform = reader.int32();
|
|
7212
|
+
break;
|
|
7213
|
+
case 5:
|
|
7214
|
+
message.loginConnectionSource = reader.int32();
|
|
7215
|
+
break;
|
|
7216
|
+
default:
|
|
7217
|
+
reader.skipType(tag & 7);
|
|
7218
|
+
break;
|
|
7219
|
+
}
|
|
7220
|
+
}
|
|
7221
|
+
return message;
|
|
7222
|
+
};
|
|
7223
|
+
|
|
7224
|
+
/**
|
|
7225
|
+
* Decodes a UserDomainLoggedIn message from the specified reader or buffer, length delimited.
|
|
7226
|
+
* @function decodeDelimited
|
|
7227
|
+
* @memberof UserDomainLoggedIn
|
|
7228
|
+
* @static
|
|
7229
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7230
|
+
* @returns {UserDomainLoggedIn} UserDomainLoggedIn
|
|
7231
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7232
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7233
|
+
*/
|
|
7234
|
+
UserDomainLoggedIn.decodeDelimited = function decodeDelimited(reader) {
|
|
7235
|
+
if (!(reader instanceof $Reader))
|
|
7236
|
+
reader = new $Reader(reader);
|
|
7237
|
+
return this.decode(reader, reader.uint32());
|
|
7238
|
+
};
|
|
7239
|
+
|
|
7240
|
+
/**
|
|
7241
|
+
* Verifies a UserDomainLoggedIn message.
|
|
7242
|
+
* @function verify
|
|
7243
|
+
* @memberof UserDomainLoggedIn
|
|
7244
|
+
* @static
|
|
7245
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7246
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7247
|
+
*/
|
|
7248
|
+
UserDomainLoggedIn.verify = function verify(message) {
|
|
7249
|
+
if (typeof message !== "object" || message === null)
|
|
7250
|
+
return "object expected";
|
|
7251
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
7252
|
+
if (!$util.isString(message.hsId))
|
|
7253
|
+
return "hsId: string expected";
|
|
7254
|
+
if (message.loginTimestamp != null && message.hasOwnProperty("loginTimestamp"))
|
|
7255
|
+
if (!$util.isInteger(message.loginTimestamp) && !(message.loginTimestamp && $util.isInteger(message.loginTimestamp.low) && $util.isInteger(message.loginTimestamp.high)))
|
|
7256
|
+
return "loginTimestamp: integer|Long expected";
|
|
7257
|
+
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
7258
|
+
switch (message.loginStatus) {
|
|
7259
|
+
default:
|
|
7260
|
+
return "loginStatus: enum value expected";
|
|
7261
|
+
case 0:
|
|
7262
|
+
case 1:
|
|
7263
|
+
case 2:
|
|
7264
|
+
break;
|
|
7265
|
+
}
|
|
7266
|
+
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
7267
|
+
switch (message.loginPlatform) {
|
|
7268
|
+
default:
|
|
7269
|
+
return "loginPlatform: enum value expected";
|
|
7270
|
+
case 0:
|
|
7271
|
+
case 1:
|
|
7272
|
+
case 2:
|
|
7273
|
+
case 3:
|
|
7274
|
+
case 4:
|
|
7275
|
+
case 5:
|
|
7276
|
+
break;
|
|
7277
|
+
}
|
|
7278
|
+
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
7279
|
+
switch (message.loginConnectionSource) {
|
|
7280
|
+
default:
|
|
7281
|
+
return "loginConnectionSource: enum value expected";
|
|
7282
|
+
case 0:
|
|
7283
|
+
case 1:
|
|
7284
|
+
case 2:
|
|
7285
|
+
case 3:
|
|
7286
|
+
case 4:
|
|
7287
|
+
break;
|
|
7288
|
+
}
|
|
7289
|
+
return null;
|
|
7290
|
+
};
|
|
7291
|
+
|
|
7292
|
+
/**
|
|
7293
|
+
* Creates a UserDomainLoggedIn message from a plain object. Also converts values to their respective internal types.
|
|
7294
|
+
* @function fromObject
|
|
7295
|
+
* @memberof UserDomainLoggedIn
|
|
7296
|
+
* @static
|
|
7297
|
+
* @param {Object.<string,*>} object Plain object
|
|
7298
|
+
* @returns {UserDomainLoggedIn} UserDomainLoggedIn
|
|
7299
|
+
*/
|
|
7300
|
+
UserDomainLoggedIn.fromObject = function fromObject(object) {
|
|
7301
|
+
if (object instanceof $root.UserDomainLoggedIn)
|
|
7302
|
+
return object;
|
|
7303
|
+
var message = new $root.UserDomainLoggedIn();
|
|
7304
|
+
if (object.hsId != null)
|
|
7305
|
+
message.hsId = String(object.hsId);
|
|
7306
|
+
if (object.loginTimestamp != null)
|
|
7307
|
+
if ($util.Long)
|
|
7308
|
+
(message.loginTimestamp = $util.Long.fromValue(object.loginTimestamp)).unsigned = true;
|
|
7309
|
+
else if (typeof object.loginTimestamp === "string")
|
|
7310
|
+
message.loginTimestamp = parseInt(object.loginTimestamp, 10);
|
|
7311
|
+
else if (typeof object.loginTimestamp === "number")
|
|
7312
|
+
message.loginTimestamp = object.loginTimestamp;
|
|
7313
|
+
else if (typeof object.loginTimestamp === "object")
|
|
7314
|
+
message.loginTimestamp = new $util.LongBits(object.loginTimestamp.low >>> 0, object.loginTimestamp.high >>> 0).toNumber(true);
|
|
7315
|
+
switch (object.loginStatus) {
|
|
7316
|
+
case "LOGIN_UNKNOWN":
|
|
7317
|
+
case 0:
|
|
7318
|
+
message.loginStatus = 0;
|
|
7319
|
+
break;
|
|
7320
|
+
case "LOGIN_SUCCESS":
|
|
7321
|
+
case 1:
|
|
7322
|
+
message.loginStatus = 1;
|
|
7323
|
+
break;
|
|
7324
|
+
case "LOGIN_FAIL":
|
|
7325
|
+
case 2:
|
|
7326
|
+
message.loginStatus = 2;
|
|
7327
|
+
break;
|
|
7328
|
+
}
|
|
7329
|
+
switch (object.loginPlatform) {
|
|
7330
|
+
case "UNKNOWN_PLATFORM":
|
|
7331
|
+
case 0:
|
|
7332
|
+
message.loginPlatform = 0;
|
|
7333
|
+
break;
|
|
7334
|
+
case "DESKTOP":
|
|
7335
|
+
case 1:
|
|
7336
|
+
message.loginPlatform = 1;
|
|
7337
|
+
break;
|
|
7338
|
+
case "IOS":
|
|
7339
|
+
case 2:
|
|
7340
|
+
message.loginPlatform = 2;
|
|
7341
|
+
break;
|
|
7342
|
+
case "ANDROID":
|
|
7343
|
+
case 3:
|
|
7344
|
+
message.loginPlatform = 3;
|
|
7345
|
+
break;
|
|
7346
|
+
case "ALEXA":
|
|
7347
|
+
case 4:
|
|
7348
|
+
message.loginPlatform = 4;
|
|
7349
|
+
break;
|
|
7350
|
+
case "GOOGLE_ASSISTANT":
|
|
7351
|
+
case 5:
|
|
7352
|
+
message.loginPlatform = 5;
|
|
7353
|
+
break;
|
|
7354
|
+
}
|
|
7355
|
+
switch (object.loginConnectionSource) {
|
|
7356
|
+
case "CONNSRC_UNKNOWN":
|
|
7357
|
+
case 0:
|
|
7358
|
+
message.loginConnectionSource = 0;
|
|
7359
|
+
break;
|
|
7360
|
+
case "CONNSRC_EMAIL":
|
|
7361
|
+
case 1:
|
|
7362
|
+
message.loginConnectionSource = 1;
|
|
7363
|
+
break;
|
|
7364
|
+
case "CONNSRC_FACEBOOK":
|
|
7365
|
+
case 2:
|
|
7366
|
+
message.loginConnectionSource = 2;
|
|
7367
|
+
break;
|
|
7368
|
+
case "CONNSRC_SPOTIFY":
|
|
7369
|
+
case 3:
|
|
7370
|
+
message.loginConnectionSource = 3;
|
|
7371
|
+
break;
|
|
7372
|
+
case "CONNSRC_APPLE":
|
|
7373
|
+
case 4:
|
|
7374
|
+
message.loginConnectionSource = 4;
|
|
7375
|
+
break;
|
|
7376
|
+
}
|
|
7377
|
+
return message;
|
|
7378
|
+
};
|
|
7379
|
+
|
|
7380
|
+
/**
|
|
7381
|
+
* Creates a plain object from a UserDomainLoggedIn message. Also converts values to other types if specified.
|
|
7382
|
+
* @function toObject
|
|
7383
|
+
* @memberof UserDomainLoggedIn
|
|
7384
|
+
* @static
|
|
7385
|
+
* @param {UserDomainLoggedIn} message UserDomainLoggedIn
|
|
7386
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7387
|
+
* @returns {Object.<string,*>} Plain object
|
|
7388
|
+
*/
|
|
7389
|
+
UserDomainLoggedIn.toObject = function toObject(message, options) {
|
|
7390
|
+
if (!options)
|
|
7391
|
+
options = {};
|
|
7392
|
+
var object = {};
|
|
7393
|
+
if (options.defaults) {
|
|
7394
|
+
object.hsId = "";
|
|
7395
|
+
if ($util.Long) {
|
|
7396
|
+
var long = new $util.Long(0, 0, true);
|
|
7397
|
+
object.loginTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
7398
|
+
} else
|
|
7399
|
+
object.loginTimestamp = options.longs === String ? "0" : 0;
|
|
7400
|
+
object.loginStatus = options.enums === String ? "LOGIN_UNKNOWN" : 0;
|
|
7401
|
+
object.loginPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
7402
|
+
object.loginConnectionSource = options.enums === String ? "CONNSRC_UNKNOWN" : 0;
|
|
7403
|
+
}
|
|
7404
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
7405
|
+
object.hsId = message.hsId;
|
|
7406
|
+
if (message.loginTimestamp != null && message.hasOwnProperty("loginTimestamp"))
|
|
7407
|
+
if (typeof message.loginTimestamp === "number")
|
|
7408
|
+
object.loginTimestamp = options.longs === String ? String(message.loginTimestamp) : message.loginTimestamp;
|
|
7409
|
+
else
|
|
7410
|
+
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;
|
|
7411
|
+
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
7412
|
+
object.loginStatus = options.enums === String ? $root.userdomain.LoginStatus[message.loginStatus] : message.loginStatus;
|
|
7413
|
+
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
7414
|
+
object.loginPlatform = options.enums === String ? $root.userdomain.Platform[message.loginPlatform] : message.loginPlatform;
|
|
7415
|
+
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
7416
|
+
object.loginConnectionSource = options.enums === String ? $root.userdomain.ConnectionSource[message.loginConnectionSource] : message.loginConnectionSource;
|
|
7417
|
+
return object;
|
|
7418
|
+
};
|
|
7419
|
+
|
|
7420
|
+
/**
|
|
7421
|
+
* Converts this UserDomainLoggedIn to JSON.
|
|
7422
|
+
* @function toJSON
|
|
7423
|
+
* @memberof UserDomainLoggedIn
|
|
7424
|
+
* @instance
|
|
7425
|
+
* @returns {Object.<string,*>} JSON object
|
|
7426
|
+
*/
|
|
7427
|
+
UserDomainLoggedIn.prototype.toJSON = function toJSON() {
|
|
7428
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7429
|
+
};
|
|
7430
|
+
|
|
7431
|
+
return UserDomainLoggedIn;
|
|
7432
|
+
})();
|
|
7433
|
+
|
|
7029
7434
|
$root.UserPasswordResetCreated = (function() {
|
|
7030
7435
|
|
|
7031
7436
|
/**
|
package/package.json
CHANGED