@headspace/protos-events 1.93.0 → 1.95.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 +299 -266
- package/lib/index.js +895 -746
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5330,778 +5330,922 @@ $root.userdomain = (function() {
|
|
|
5330
5330
|
*/
|
|
5331
5331
|
var userdomain = {};
|
|
5332
5332
|
|
|
5333
|
-
userdomain.
|
|
5333
|
+
userdomain.roles = (function() {
|
|
5334
5334
|
|
|
5335
5335
|
/**
|
|
5336
|
-
*
|
|
5336
|
+
* Namespace roles.
|
|
5337
5337
|
* @memberof userdomain
|
|
5338
|
-
* @
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
/**
|
|
5367
|
-
* Creates a new UserRole instance using the specified properties.
|
|
5368
|
-
* @function create
|
|
5369
|
-
* @memberof userdomain.UserRole
|
|
5370
|
-
* @static
|
|
5371
|
-
* @param {userdomain.IUserRole=} [properties] Properties to set
|
|
5372
|
-
* @returns {userdomain.UserRole} UserRole instance
|
|
5373
|
-
*/
|
|
5374
|
-
UserRole.create = function create(properties) {
|
|
5375
|
-
return new UserRole(properties);
|
|
5376
|
-
};
|
|
5377
|
-
|
|
5378
|
-
/**
|
|
5379
|
-
* Encodes the specified UserRole message. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
|
|
5380
|
-
* @function encode
|
|
5381
|
-
* @memberof userdomain.UserRole
|
|
5382
|
-
* @static
|
|
5383
|
-
* @param {userdomain.IUserRole} message UserRole message or plain object to encode
|
|
5384
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5385
|
-
* @returns {$protobuf.Writer} Writer
|
|
5386
|
-
*/
|
|
5387
|
-
UserRole.encode = function encode(message, writer) {
|
|
5388
|
-
if (!writer)
|
|
5389
|
-
writer = $Writer.create();
|
|
5390
|
-
if (message.roles != null && message.roles.length) {
|
|
5391
|
-
writer.uint32(/* id 1, wireType 2 =*/10).fork();
|
|
5392
|
-
for (var i = 0; i < message.roles.length; ++i)
|
|
5393
|
-
writer.int32(message.roles[i]);
|
|
5394
|
-
writer.ldelim();
|
|
5338
|
+
* @namespace
|
|
5339
|
+
*/
|
|
5340
|
+
var roles = {};
|
|
5341
|
+
|
|
5342
|
+
roles.UserRole = (function() {
|
|
5343
|
+
|
|
5344
|
+
/**
|
|
5345
|
+
* Properties of a UserRole.
|
|
5346
|
+
* @memberof userdomain.roles
|
|
5347
|
+
* @interface IUserRole
|
|
5348
|
+
* @property {Array.<userdomain.roles.Role>|null} [roles] UserRole roles
|
|
5349
|
+
*/
|
|
5350
|
+
|
|
5351
|
+
/**
|
|
5352
|
+
* Constructs a new UserRole.
|
|
5353
|
+
* @memberof userdomain.roles
|
|
5354
|
+
* @classdesc Represents a UserRole.
|
|
5355
|
+
* @implements IUserRole
|
|
5356
|
+
* @constructor
|
|
5357
|
+
* @param {userdomain.roles.IUserRole=} [properties] Properties to set
|
|
5358
|
+
*/
|
|
5359
|
+
function UserRole(properties) {
|
|
5360
|
+
this.roles = [];
|
|
5361
|
+
if (properties)
|
|
5362
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5363
|
+
if (properties[keys[i]] != null)
|
|
5364
|
+
this[keys[i]] = properties[keys[i]];
|
|
5395
5365
|
}
|
|
5396
|
-
return writer;
|
|
5397
|
-
};
|
|
5398
|
-
|
|
5399
|
-
/**
|
|
5400
|
-
* Encodes the specified UserRole message, length delimited. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
|
|
5401
|
-
* @function encodeDelimited
|
|
5402
|
-
* @memberof userdomain.UserRole
|
|
5403
|
-
* @static
|
|
5404
|
-
* @param {userdomain.IUserRole} message UserRole message or plain object to encode
|
|
5405
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5406
|
-
* @returns {$protobuf.Writer} Writer
|
|
5407
|
-
*/
|
|
5408
|
-
UserRole.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5409
|
-
return this.encode(message, writer).ldelim();
|
|
5410
|
-
};
|
|
5411
5366
|
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5367
|
+
/**
|
|
5368
|
+
* UserRole roles.
|
|
5369
|
+
* @member {Array.<userdomain.roles.Role>} roles
|
|
5370
|
+
* @memberof userdomain.roles.UserRole
|
|
5371
|
+
* @instance
|
|
5372
|
+
*/
|
|
5373
|
+
UserRole.prototype.roles = $util.emptyArray;
|
|
5374
|
+
|
|
5375
|
+
/**
|
|
5376
|
+
* Creates a new UserRole instance using the specified properties.
|
|
5377
|
+
* @function create
|
|
5378
|
+
* @memberof userdomain.roles.UserRole
|
|
5379
|
+
* @static
|
|
5380
|
+
* @param {userdomain.roles.IUserRole=} [properties] Properties to set
|
|
5381
|
+
* @returns {userdomain.roles.UserRole} UserRole instance
|
|
5382
|
+
*/
|
|
5383
|
+
UserRole.create = function create(properties) {
|
|
5384
|
+
return new UserRole(properties);
|
|
5385
|
+
};
|
|
5386
|
+
|
|
5387
|
+
/**
|
|
5388
|
+
* Encodes the specified UserRole message. Does not implicitly {@link userdomain.roles.UserRole.verify|verify} messages.
|
|
5389
|
+
* @function encode
|
|
5390
|
+
* @memberof userdomain.roles.UserRole
|
|
5391
|
+
* @static
|
|
5392
|
+
* @param {userdomain.roles.IUserRole} message UserRole message or plain object to encode
|
|
5393
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5394
|
+
* @returns {$protobuf.Writer} Writer
|
|
5395
|
+
*/
|
|
5396
|
+
UserRole.encode = function encode(message, writer) {
|
|
5397
|
+
if (!writer)
|
|
5398
|
+
writer = $Writer.create();
|
|
5399
|
+
if (message.roles != null && message.roles.length) {
|
|
5400
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork();
|
|
5401
|
+
for (var i = 0; i < message.roles.length; ++i)
|
|
5402
|
+
writer.int32(message.roles[i]);
|
|
5403
|
+
writer.ldelim();
|
|
5404
|
+
}
|
|
5405
|
+
return writer;
|
|
5406
|
+
};
|
|
5407
|
+
|
|
5408
|
+
/**
|
|
5409
|
+
* Encodes the specified UserRole message, length delimited. Does not implicitly {@link userdomain.roles.UserRole.verify|verify} messages.
|
|
5410
|
+
* @function encodeDelimited
|
|
5411
|
+
* @memberof userdomain.roles.UserRole
|
|
5412
|
+
* @static
|
|
5413
|
+
* @param {userdomain.roles.IUserRole} message UserRole message or plain object to encode
|
|
5414
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5415
|
+
* @returns {$protobuf.Writer} Writer
|
|
5416
|
+
*/
|
|
5417
|
+
UserRole.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5418
|
+
return this.encode(message, writer).ldelim();
|
|
5419
|
+
};
|
|
5420
|
+
|
|
5421
|
+
/**
|
|
5422
|
+
* Decodes a UserRole message from the specified reader or buffer.
|
|
5423
|
+
* @function decode
|
|
5424
|
+
* @memberof userdomain.roles.UserRole
|
|
5425
|
+
* @static
|
|
5426
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5427
|
+
* @param {number} [length] Message length if known beforehand
|
|
5428
|
+
* @returns {userdomain.roles.UserRole} UserRole
|
|
5429
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5430
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5431
|
+
*/
|
|
5432
|
+
UserRole.decode = function decode(reader, length) {
|
|
5433
|
+
if (!(reader instanceof $Reader))
|
|
5434
|
+
reader = $Reader.create(reader);
|
|
5435
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.userdomain.roles.UserRole();
|
|
5436
|
+
while (reader.pos < end) {
|
|
5437
|
+
var tag = reader.uint32();
|
|
5438
|
+
switch (tag >>> 3) {
|
|
5439
|
+
case 1:
|
|
5440
|
+
if (!(message.roles && message.roles.length))
|
|
5441
|
+
message.roles = [];
|
|
5442
|
+
if ((tag & 7) === 2) {
|
|
5443
|
+
var end2 = reader.uint32() + reader.pos;
|
|
5444
|
+
while (reader.pos < end2)
|
|
5445
|
+
message.roles.push(reader.int32());
|
|
5446
|
+
} else
|
|
5436
5447
|
message.roles.push(reader.int32());
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
break;
|
|
5448
|
+
break;
|
|
5449
|
+
default:
|
|
5450
|
+
reader.skipType(tag & 7);
|
|
5451
|
+
break;
|
|
5452
|
+
}
|
|
5443
5453
|
}
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5454
|
+
return message;
|
|
5455
|
+
};
|
|
5456
|
+
|
|
5457
|
+
/**
|
|
5458
|
+
* Decodes a UserRole message from the specified reader or buffer, length delimited.
|
|
5459
|
+
* @function decodeDelimited
|
|
5460
|
+
* @memberof userdomain.roles.UserRole
|
|
5461
|
+
* @static
|
|
5462
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5463
|
+
* @returns {userdomain.roles.UserRole} UserRole
|
|
5464
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5465
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5466
|
+
*/
|
|
5467
|
+
UserRole.decodeDelimited = function decodeDelimited(reader) {
|
|
5468
|
+
if (!(reader instanceof $Reader))
|
|
5469
|
+
reader = new $Reader(reader);
|
|
5470
|
+
return this.decode(reader, reader.uint32());
|
|
5471
|
+
};
|
|
5472
|
+
|
|
5473
|
+
/**
|
|
5474
|
+
* Verifies a UserRole message.
|
|
5475
|
+
* @function verify
|
|
5476
|
+
* @memberof userdomain.roles.UserRole
|
|
5477
|
+
* @static
|
|
5478
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5479
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5480
|
+
*/
|
|
5481
|
+
UserRole.verify = function verify(message) {
|
|
5482
|
+
if (typeof message !== "object" || message === null)
|
|
5483
|
+
return "object expected";
|
|
5484
|
+
if (message.roles != null && message.hasOwnProperty("roles")) {
|
|
5485
|
+
if (!Array.isArray(message.roles))
|
|
5486
|
+
return "roles: array expected";
|
|
5487
|
+
for (var i = 0; i < message.roles.length; ++i)
|
|
5488
|
+
switch (message.roles[i]) {
|
|
5489
|
+
default:
|
|
5490
|
+
return "roles: enum value[] expected";
|
|
5491
|
+
case 0:
|
|
5492
|
+
case 1:
|
|
5493
|
+
case 2:
|
|
5494
|
+
case 3:
|
|
5495
|
+
case 4:
|
|
5496
|
+
case 5:
|
|
5497
|
+
case 6:
|
|
5498
|
+
case 7:
|
|
5499
|
+
case 8:
|
|
5500
|
+
case 9:
|
|
5501
|
+
break;
|
|
5502
|
+
}
|
|
5503
|
+
}
|
|
5504
|
+
return null;
|
|
5505
|
+
};
|
|
5506
|
+
|
|
5507
|
+
/**
|
|
5508
|
+
* Creates a UserRole message from a plain object. Also converts values to their respective internal types.
|
|
5509
|
+
* @function fromObject
|
|
5510
|
+
* @memberof userdomain.roles.UserRole
|
|
5511
|
+
* @static
|
|
5512
|
+
* @param {Object.<string,*>} object Plain object
|
|
5513
|
+
* @returns {userdomain.roles.UserRole} UserRole
|
|
5514
|
+
*/
|
|
5515
|
+
UserRole.fromObject = function fromObject(object) {
|
|
5516
|
+
if (object instanceof $root.userdomain.roles.UserRole)
|
|
5517
|
+
return object;
|
|
5518
|
+
var message = new $root.userdomain.roles.UserRole();
|
|
5519
|
+
if (object.roles) {
|
|
5520
|
+
if (!Array.isArray(object.roles))
|
|
5521
|
+
throw TypeError(".userdomain.roles.UserRole.roles: array expected");
|
|
5522
|
+
message.roles = [];
|
|
5523
|
+
for (var i = 0; i < object.roles.length; ++i)
|
|
5524
|
+
switch (object.roles[i]) {
|
|
5525
|
+
default:
|
|
5526
|
+
case "UNKNOWN_ROLE":
|
|
5527
|
+
case 0:
|
|
5528
|
+
message.roles[i] = 0;
|
|
5529
|
+
break;
|
|
5530
|
+
case "ROLEADMIN":
|
|
5531
|
+
case 1:
|
|
5532
|
+
message.roles[i] = 1;
|
|
5533
|
+
break;
|
|
5534
|
+
case "NORMALUSER":
|
|
5535
|
+
case 2:
|
|
5536
|
+
message.roles[i] = 2;
|
|
5537
|
+
break;
|
|
5538
|
+
case "CONTENTADMIN":
|
|
5539
|
+
case 3:
|
|
5540
|
+
message.roles[i] = 3;
|
|
5541
|
+
break;
|
|
5542
|
+
case "USERADMIN":
|
|
5543
|
+
case 4:
|
|
5544
|
+
message.roles[i] = 4;
|
|
5545
|
+
break;
|
|
5546
|
+
case "CORPORATEADMIN":
|
|
5547
|
+
case 5:
|
|
5548
|
+
message.roles[i] = 5;
|
|
5549
|
+
break;
|
|
5550
|
+
case "SPECIALADMIN":
|
|
5551
|
+
case 6:
|
|
5552
|
+
message.roles[i] = 6;
|
|
5553
|
+
break;
|
|
5554
|
+
case "HEALTH_ADMIN":
|
|
5555
|
+
case 7:
|
|
5556
|
+
message.roles[i] = 7;
|
|
5557
|
+
break;
|
|
5558
|
+
case "HEALTH_COACH":
|
|
5559
|
+
case 8:
|
|
5560
|
+
message.roles[i] = 8;
|
|
5561
|
+
break;
|
|
5562
|
+
case "HEALTH_PATIENT":
|
|
5563
|
+
case 9:
|
|
5564
|
+
message.roles[i] = 9;
|
|
5565
|
+
break;
|
|
5566
|
+
}
|
|
5567
|
+
}
|
|
5568
|
+
return message;
|
|
5569
|
+
};
|
|
5570
|
+
|
|
5571
|
+
/**
|
|
5572
|
+
* Creates a plain object from a UserRole message. Also converts values to other types if specified.
|
|
5573
|
+
* @function toObject
|
|
5574
|
+
* @memberof userdomain.roles.UserRole
|
|
5575
|
+
* @static
|
|
5576
|
+
* @param {userdomain.roles.UserRole} message UserRole
|
|
5577
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5578
|
+
* @returns {Object.<string,*>} Plain object
|
|
5579
|
+
*/
|
|
5580
|
+
UserRole.toObject = function toObject(message, options) {
|
|
5581
|
+
if (!options)
|
|
5582
|
+
options = {};
|
|
5583
|
+
var object = {};
|
|
5584
|
+
if (options.arrays || options.defaults)
|
|
5585
|
+
object.roles = [];
|
|
5586
|
+
if (message.roles && message.roles.length) {
|
|
5587
|
+
object.roles = [];
|
|
5588
|
+
for (var j = 0; j < message.roles.length; ++j)
|
|
5589
|
+
object.roles[j] = options.enums === String ? $root.userdomain.roles.Role[message.roles[j]] : message.roles[j];
|
|
5590
|
+
}
|
|
5591
|
+
return object;
|
|
5592
|
+
};
|
|
5593
|
+
|
|
5594
|
+
/**
|
|
5595
|
+
* Converts this UserRole to JSON.
|
|
5596
|
+
* @function toJSON
|
|
5597
|
+
* @memberof userdomain.roles.UserRole
|
|
5598
|
+
* @instance
|
|
5599
|
+
* @returns {Object.<string,*>} JSON object
|
|
5600
|
+
*/
|
|
5601
|
+
UserRole.prototype.toJSON = function toJSON() {
|
|
5602
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5603
|
+
};
|
|
5604
|
+
|
|
5605
|
+
return UserRole;
|
|
5606
|
+
})();
|
|
5607
|
+
|
|
5608
|
+
/**
|
|
5609
|
+
* Role enum.
|
|
5610
|
+
* @name userdomain.roles.Role
|
|
5611
|
+
* @enum {string}
|
|
5612
|
+
* @property {number} UNKNOWN_ROLE=0 UNKNOWN_ROLE value
|
|
5613
|
+
* @property {number} ROLEADMIN=1 ROLEADMIN value
|
|
5614
|
+
* @property {number} NORMALUSER=2 NORMALUSER value
|
|
5615
|
+
* @property {number} CONTENTADMIN=3 CONTENTADMIN value
|
|
5616
|
+
* @property {number} USERADMIN=4 USERADMIN value
|
|
5617
|
+
* @property {number} CORPORATEADMIN=5 CORPORATEADMIN value
|
|
5618
|
+
* @property {number} SPECIALADMIN=6 SPECIALADMIN value
|
|
5619
|
+
* @property {number} HEALTH_ADMIN=7 HEALTH_ADMIN value
|
|
5620
|
+
* @property {number} HEALTH_COACH=8 HEALTH_COACH value
|
|
5621
|
+
* @property {number} HEALTH_PATIENT=9 HEALTH_PATIENT value
|
|
5622
|
+
*/
|
|
5623
|
+
roles.Role = (function() {
|
|
5624
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
5625
|
+
values[valuesById[0] = "UNKNOWN_ROLE"] = 0;
|
|
5626
|
+
values[valuesById[1] = "ROLEADMIN"] = 1;
|
|
5627
|
+
values[valuesById[2] = "NORMALUSER"] = 2;
|
|
5628
|
+
values[valuesById[3] = "CONTENTADMIN"] = 3;
|
|
5629
|
+
values[valuesById[4] = "USERADMIN"] = 4;
|
|
5630
|
+
values[valuesById[5] = "CORPORATEADMIN"] = 5;
|
|
5631
|
+
values[valuesById[6] = "SPECIALADMIN"] = 6;
|
|
5632
|
+
values[valuesById[7] = "HEALTH_ADMIN"] = 7;
|
|
5633
|
+
values[valuesById[8] = "HEALTH_COACH"] = 8;
|
|
5634
|
+
values[valuesById[9] = "HEALTH_PATIENT"] = 9;
|
|
5635
|
+
return values;
|
|
5636
|
+
})();
|
|
5637
|
+
|
|
5638
|
+
return roles;
|
|
5639
|
+
})();
|
|
5447
5640
|
|
|
5448
|
-
|
|
5449
|
-
* Decodes a UserRole message from the specified reader or buffer, length delimited.
|
|
5450
|
-
* @function decodeDelimited
|
|
5451
|
-
* @memberof userdomain.UserRole
|
|
5452
|
-
* @static
|
|
5453
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5454
|
-
* @returns {userdomain.UserRole} UserRole
|
|
5455
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5456
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5457
|
-
*/
|
|
5458
|
-
UserRole.decodeDelimited = function decodeDelimited(reader) {
|
|
5459
|
-
if (!(reader instanceof $Reader))
|
|
5460
|
-
reader = new $Reader(reader);
|
|
5461
|
-
return this.decode(reader, reader.uint32());
|
|
5462
|
-
};
|
|
5641
|
+
userdomain.users = (function() {
|
|
5463
5642
|
|
|
5464
5643
|
/**
|
|
5465
|
-
*
|
|
5466
|
-
* @
|
|
5467
|
-
* @
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5644
|
+
* Namespace users.
|
|
5645
|
+
* @memberof userdomain
|
|
5646
|
+
* @namespace
|
|
5647
|
+
*/
|
|
5648
|
+
var users = {};
|
|
5649
|
+
|
|
5650
|
+
users.User = (function() {
|
|
5651
|
+
|
|
5652
|
+
/**
|
|
5653
|
+
* Properties of a User.
|
|
5654
|
+
* @memberof userdomain.users
|
|
5655
|
+
* @interface IUser
|
|
5656
|
+
* @property {string|null} [hsId] User hsId
|
|
5657
|
+
* @property {string|null} [auth0Id] User auth0Id
|
|
5658
|
+
* @property {string|null} [firstName] User firstName
|
|
5659
|
+
* @property {string|null} [lastName] User lastName
|
|
5660
|
+
* @property {string|null} [email] User email
|
|
5661
|
+
* @property {string|null} [countryCode] User countryCode
|
|
5662
|
+
* @property {string|null} [stateCode] User stateCode
|
|
5663
|
+
* @property {userdomain.users.Platform|null} [signupPlatform] User signupPlatform
|
|
5664
|
+
* @property {string|null} [facebookId] User facebookId
|
|
5665
|
+
* @property {string|null} [appleId] User appleId
|
|
5666
|
+
* @property {string|null} [spotifyId] User spotifyId
|
|
5667
|
+
* @property {string|null} [oneloginId] User oneloginId
|
|
5668
|
+
* @property {userdomain.users.UserType|null} [userType] User userType
|
|
5669
|
+
*/
|
|
5670
|
+
|
|
5671
|
+
/**
|
|
5672
|
+
* Constructs a new User.
|
|
5673
|
+
* @memberof userdomain.users
|
|
5674
|
+
* @classdesc Represents a User.
|
|
5675
|
+
* @implements IUser
|
|
5676
|
+
* @constructor
|
|
5677
|
+
* @param {userdomain.users.IUser=} [properties] Properties to set
|
|
5678
|
+
*/
|
|
5679
|
+
function User(properties) {
|
|
5680
|
+
if (properties)
|
|
5681
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5682
|
+
if (properties[keys[i]] != null)
|
|
5683
|
+
this[keys[i]] = properties[keys[i]];
|
|
5684
|
+
}
|
|
5685
|
+
|
|
5686
|
+
/**
|
|
5687
|
+
* User hsId.
|
|
5688
|
+
* @member {string} hsId
|
|
5689
|
+
* @memberof userdomain.users.User
|
|
5690
|
+
* @instance
|
|
5691
|
+
*/
|
|
5692
|
+
User.prototype.hsId = "";
|
|
5693
|
+
|
|
5694
|
+
/**
|
|
5695
|
+
* User auth0Id.
|
|
5696
|
+
* @member {string} auth0Id
|
|
5697
|
+
* @memberof userdomain.users.User
|
|
5698
|
+
* @instance
|
|
5699
|
+
*/
|
|
5700
|
+
User.prototype.auth0Id = "";
|
|
5701
|
+
|
|
5702
|
+
/**
|
|
5703
|
+
* User firstName.
|
|
5704
|
+
* @member {string} firstName
|
|
5705
|
+
* @memberof userdomain.users.User
|
|
5706
|
+
* @instance
|
|
5707
|
+
*/
|
|
5708
|
+
User.prototype.firstName = "";
|
|
5709
|
+
|
|
5710
|
+
/**
|
|
5711
|
+
* User lastName.
|
|
5712
|
+
* @member {string} lastName
|
|
5713
|
+
* @memberof userdomain.users.User
|
|
5714
|
+
* @instance
|
|
5715
|
+
*/
|
|
5716
|
+
User.prototype.lastName = "";
|
|
5717
|
+
|
|
5718
|
+
/**
|
|
5719
|
+
* User email.
|
|
5720
|
+
* @member {string} email
|
|
5721
|
+
* @memberof userdomain.users.User
|
|
5722
|
+
* @instance
|
|
5723
|
+
*/
|
|
5724
|
+
User.prototype.email = "";
|
|
5725
|
+
|
|
5726
|
+
/**
|
|
5727
|
+
* User countryCode.
|
|
5728
|
+
* @member {string} countryCode
|
|
5729
|
+
* @memberof userdomain.users.User
|
|
5730
|
+
* @instance
|
|
5731
|
+
*/
|
|
5732
|
+
User.prototype.countryCode = "";
|
|
5733
|
+
|
|
5734
|
+
/**
|
|
5735
|
+
* User stateCode.
|
|
5736
|
+
* @member {string} stateCode
|
|
5737
|
+
* @memberof userdomain.users.User
|
|
5738
|
+
* @instance
|
|
5739
|
+
*/
|
|
5740
|
+
User.prototype.stateCode = "";
|
|
5741
|
+
|
|
5742
|
+
/**
|
|
5743
|
+
* User signupPlatform.
|
|
5744
|
+
* @member {userdomain.users.Platform} signupPlatform
|
|
5745
|
+
* @memberof userdomain.users.User
|
|
5746
|
+
* @instance
|
|
5747
|
+
*/
|
|
5748
|
+
User.prototype.signupPlatform = 0;
|
|
5749
|
+
|
|
5750
|
+
/**
|
|
5751
|
+
* User facebookId.
|
|
5752
|
+
* @member {string} facebookId
|
|
5753
|
+
* @memberof userdomain.users.User
|
|
5754
|
+
* @instance
|
|
5755
|
+
*/
|
|
5756
|
+
User.prototype.facebookId = "";
|
|
5757
|
+
|
|
5758
|
+
/**
|
|
5759
|
+
* User appleId.
|
|
5760
|
+
* @member {string} appleId
|
|
5761
|
+
* @memberof userdomain.users.User
|
|
5762
|
+
* @instance
|
|
5763
|
+
*/
|
|
5764
|
+
User.prototype.appleId = "";
|
|
5765
|
+
|
|
5766
|
+
/**
|
|
5767
|
+
* User spotifyId.
|
|
5768
|
+
* @member {string} spotifyId
|
|
5769
|
+
* @memberof userdomain.users.User
|
|
5770
|
+
* @instance
|
|
5771
|
+
*/
|
|
5772
|
+
User.prototype.spotifyId = "";
|
|
5773
|
+
|
|
5774
|
+
/**
|
|
5775
|
+
* User oneloginId.
|
|
5776
|
+
* @member {string} oneloginId
|
|
5777
|
+
* @memberof userdomain.users.User
|
|
5778
|
+
* @instance
|
|
5779
|
+
*/
|
|
5780
|
+
User.prototype.oneloginId = "";
|
|
5781
|
+
|
|
5782
|
+
/**
|
|
5783
|
+
* User userType.
|
|
5784
|
+
* @member {userdomain.users.UserType} userType
|
|
5785
|
+
* @memberof userdomain.users.User
|
|
5786
|
+
* @instance
|
|
5787
|
+
*/
|
|
5788
|
+
User.prototype.userType = 0;
|
|
5789
|
+
|
|
5790
|
+
/**
|
|
5791
|
+
* Creates a new User instance using the specified properties.
|
|
5792
|
+
* @function create
|
|
5793
|
+
* @memberof userdomain.users.User
|
|
5794
|
+
* @static
|
|
5795
|
+
* @param {userdomain.users.IUser=} [properties] Properties to set
|
|
5796
|
+
* @returns {userdomain.users.User} User instance
|
|
5797
|
+
*/
|
|
5798
|
+
User.create = function create(properties) {
|
|
5799
|
+
return new User(properties);
|
|
5800
|
+
};
|
|
5801
|
+
|
|
5802
|
+
/**
|
|
5803
|
+
* Encodes the specified User message. Does not implicitly {@link userdomain.users.User.verify|verify} messages.
|
|
5804
|
+
* @function encode
|
|
5805
|
+
* @memberof userdomain.users.User
|
|
5806
|
+
* @static
|
|
5807
|
+
* @param {userdomain.users.IUser} message User message or plain object to encode
|
|
5808
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5809
|
+
* @returns {$protobuf.Writer} Writer
|
|
5810
|
+
*/
|
|
5811
|
+
User.encode = function encode(message, writer) {
|
|
5812
|
+
if (!writer)
|
|
5813
|
+
writer = $Writer.create();
|
|
5814
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5815
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
5816
|
+
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
5817
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.auth0Id);
|
|
5818
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
5819
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.firstName);
|
|
5820
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
5821
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
|
|
5822
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
5823
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.email);
|
|
5824
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
5825
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.countryCode);
|
|
5826
|
+
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
5827
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
5828
|
+
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5829
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
5830
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5831
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.facebookId);
|
|
5832
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5833
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.appleId);
|
|
5834
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5835
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.spotifyId);
|
|
5836
|
+
if (message.oneloginId != null && message.hasOwnProperty("oneloginId"))
|
|
5837
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.oneloginId);
|
|
5838
|
+
if (message.userType != null && message.hasOwnProperty("userType"))
|
|
5839
|
+
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.userType);
|
|
5840
|
+
return writer;
|
|
5841
|
+
};
|
|
5842
|
+
|
|
5843
|
+
/**
|
|
5844
|
+
* Encodes the specified User message, length delimited. Does not implicitly {@link userdomain.users.User.verify|verify} messages.
|
|
5845
|
+
* @function encodeDelimited
|
|
5846
|
+
* @memberof userdomain.users.User
|
|
5847
|
+
* @static
|
|
5848
|
+
* @param {userdomain.users.IUser} message User message or plain object to encode
|
|
5849
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5850
|
+
* @returns {$protobuf.Writer} Writer
|
|
5851
|
+
*/
|
|
5852
|
+
User.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5853
|
+
return this.encode(message, writer).ldelim();
|
|
5854
|
+
};
|
|
5855
|
+
|
|
5856
|
+
/**
|
|
5857
|
+
* Decodes a User message from the specified reader or buffer.
|
|
5858
|
+
* @function decode
|
|
5859
|
+
* @memberof userdomain.users.User
|
|
5860
|
+
* @static
|
|
5861
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5862
|
+
* @param {number} [length] Message length if known beforehand
|
|
5863
|
+
* @returns {userdomain.users.User} User
|
|
5864
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5865
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5866
|
+
*/
|
|
5867
|
+
User.decode = function decode(reader, length) {
|
|
5868
|
+
if (!(reader instanceof $Reader))
|
|
5869
|
+
reader = $Reader.create(reader);
|
|
5870
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.userdomain.users.User();
|
|
5871
|
+
while (reader.pos < end) {
|
|
5872
|
+
var tag = reader.uint32();
|
|
5873
|
+
switch (tag >>> 3) {
|
|
5483
5874
|
case 1:
|
|
5875
|
+
message.hsId = reader.string();
|
|
5876
|
+
break;
|
|
5484
5877
|
case 2:
|
|
5878
|
+
message.auth0Id = reader.string();
|
|
5879
|
+
break;
|
|
5485
5880
|
case 3:
|
|
5881
|
+
message.firstName = reader.string();
|
|
5882
|
+
break;
|
|
5486
5883
|
case 4:
|
|
5884
|
+
message.lastName = reader.string();
|
|
5885
|
+
break;
|
|
5487
5886
|
case 5:
|
|
5887
|
+
message.email = reader.string();
|
|
5888
|
+
break;
|
|
5488
5889
|
case 6:
|
|
5890
|
+
message.countryCode = reader.string();
|
|
5891
|
+
break;
|
|
5892
|
+
case 7:
|
|
5893
|
+
message.stateCode = reader.string();
|
|
5894
|
+
break;
|
|
5895
|
+
case 8:
|
|
5896
|
+
message.signupPlatform = reader.int32();
|
|
5897
|
+
break;
|
|
5898
|
+
case 9:
|
|
5899
|
+
message.facebookId = reader.string();
|
|
5900
|
+
break;
|
|
5901
|
+
case 10:
|
|
5902
|
+
message.appleId = reader.string();
|
|
5903
|
+
break;
|
|
5904
|
+
case 11:
|
|
5905
|
+
message.spotifyId = reader.string();
|
|
5906
|
+
break;
|
|
5907
|
+
case 12:
|
|
5908
|
+
message.oneloginId = reader.string();
|
|
5909
|
+
break;
|
|
5910
|
+
case 13:
|
|
5911
|
+
message.userType = reader.int32();
|
|
5912
|
+
break;
|
|
5913
|
+
default:
|
|
5914
|
+
reader.skipType(tag & 7);
|
|
5489
5915
|
break;
|
|
5490
5916
|
}
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5917
|
+
}
|
|
5918
|
+
return message;
|
|
5919
|
+
};
|
|
5920
|
+
|
|
5921
|
+
/**
|
|
5922
|
+
* Decodes a User message from the specified reader or buffer, length delimited.
|
|
5923
|
+
* @function decodeDelimited
|
|
5924
|
+
* @memberof userdomain.users.User
|
|
5925
|
+
* @static
|
|
5926
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5927
|
+
* @returns {userdomain.users.User} User
|
|
5928
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5929
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5930
|
+
*/
|
|
5931
|
+
User.decodeDelimited = function decodeDelimited(reader) {
|
|
5932
|
+
if (!(reader instanceof $Reader))
|
|
5933
|
+
reader = new $Reader(reader);
|
|
5934
|
+
return this.decode(reader, reader.uint32());
|
|
5935
|
+
};
|
|
5936
|
+
|
|
5937
|
+
/**
|
|
5938
|
+
* Verifies a User message.
|
|
5939
|
+
* @function verify
|
|
5940
|
+
* @memberof userdomain.users.User
|
|
5941
|
+
* @static
|
|
5942
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5943
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5944
|
+
*/
|
|
5945
|
+
User.verify = function verify(message) {
|
|
5946
|
+
if (typeof message !== "object" || message === null)
|
|
5947
|
+
return "object expected";
|
|
5948
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5949
|
+
if (!$util.isString(message.hsId))
|
|
5950
|
+
return "hsId: string expected";
|
|
5951
|
+
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
5952
|
+
if (!$util.isString(message.auth0Id))
|
|
5953
|
+
return "auth0Id: string expected";
|
|
5954
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
5955
|
+
if (!$util.isString(message.firstName))
|
|
5956
|
+
return "firstName: string expected";
|
|
5957
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
5958
|
+
if (!$util.isString(message.lastName))
|
|
5959
|
+
return "lastName: string expected";
|
|
5960
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
5961
|
+
if (!$util.isString(message.email))
|
|
5962
|
+
return "email: string expected";
|
|
5963
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
5964
|
+
if (!$util.isString(message.countryCode))
|
|
5965
|
+
return "countryCode: string expected";
|
|
5966
|
+
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
5967
|
+
if (!$util.isString(message.stateCode))
|
|
5968
|
+
return "stateCode: string expected";
|
|
5969
|
+
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5970
|
+
switch (message.signupPlatform) {
|
|
5513
5971
|
default:
|
|
5514
|
-
|
|
5972
|
+
return "signupPlatform: enum value expected";
|
|
5515
5973
|
case 0:
|
|
5516
|
-
message.roles[i] = 0;
|
|
5517
|
-
break;
|
|
5518
|
-
case "ROLEADMIN":
|
|
5519
5974
|
case 1:
|
|
5520
|
-
message.roles[i] = 1;
|
|
5521
|
-
break;
|
|
5522
|
-
case "NORMALUSER":
|
|
5523
5975
|
case 2:
|
|
5524
|
-
message.roles[i] = 2;
|
|
5525
|
-
break;
|
|
5526
|
-
case "CONTENTADMIN":
|
|
5527
5976
|
case 3:
|
|
5528
|
-
message.roles[i] = 3;
|
|
5529
|
-
break;
|
|
5530
|
-
case "USERADMIN":
|
|
5531
5977
|
case 4:
|
|
5532
|
-
message.roles[i] = 4;
|
|
5533
|
-
break;
|
|
5534
|
-
case "CORPORATEADMIN":
|
|
5535
5978
|
case 5:
|
|
5536
|
-
message.roles[i] = 5;
|
|
5537
|
-
break;
|
|
5538
|
-
case "SPECIALADMIN":
|
|
5539
5979
|
case 6:
|
|
5540
|
-
message.roles[i] = 6;
|
|
5541
5980
|
break;
|
|
5542
5981
|
}
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
values[valuesById[3] = "CONTENTADMIN"] = 3;
|
|
5602
|
-
values[valuesById[4] = "USERADMIN"] = 4;
|
|
5603
|
-
values[valuesById[5] = "CORPORATEADMIN"] = 5;
|
|
5604
|
-
values[valuesById[6] = "SPECIALADMIN"] = 6;
|
|
5605
|
-
return values;
|
|
5606
|
-
})();
|
|
5607
|
-
|
|
5608
|
-
userdomain.User = (function() {
|
|
5609
|
-
|
|
5610
|
-
/**
|
|
5611
|
-
* Properties of a User.
|
|
5612
|
-
* @memberof userdomain
|
|
5613
|
-
* @interface IUser
|
|
5614
|
-
* @property {string|null} [hsId] User hsId
|
|
5615
|
-
* @property {string|null} [auth0Id] User auth0Id
|
|
5616
|
-
* @property {string|null} [firstName] User firstName
|
|
5617
|
-
* @property {string|null} [lastName] User lastName
|
|
5618
|
-
* @property {string|null} [email] User email
|
|
5619
|
-
* @property {string|null} [countryCode] User countryCode
|
|
5620
|
-
* @property {string|null} [stateCode] User stateCode
|
|
5621
|
-
* @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
|
|
5622
|
-
* @property {string|null} [facebookId] User facebookId
|
|
5623
|
-
* @property {string|null} [appleId] User appleId
|
|
5624
|
-
* @property {string|null} [spotifyId] User spotifyId
|
|
5625
|
-
*/
|
|
5626
|
-
|
|
5627
|
-
/**
|
|
5628
|
-
* Constructs a new User.
|
|
5629
|
-
* @memberof userdomain
|
|
5630
|
-
* @classdesc Represents a User.
|
|
5631
|
-
* @implements IUser
|
|
5632
|
-
* @constructor
|
|
5633
|
-
* @param {userdomain.IUser=} [properties] Properties to set
|
|
5634
|
-
*/
|
|
5635
|
-
function User(properties) {
|
|
5636
|
-
if (properties)
|
|
5637
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5638
|
-
if (properties[keys[i]] != null)
|
|
5639
|
-
this[keys[i]] = properties[keys[i]];
|
|
5640
|
-
}
|
|
5641
|
-
|
|
5642
|
-
/**
|
|
5643
|
-
* User hsId.
|
|
5644
|
-
* @member {string} hsId
|
|
5645
|
-
* @memberof userdomain.User
|
|
5646
|
-
* @instance
|
|
5647
|
-
*/
|
|
5648
|
-
User.prototype.hsId = "";
|
|
5649
|
-
|
|
5650
|
-
/**
|
|
5651
|
-
* User auth0Id.
|
|
5652
|
-
* @member {string} auth0Id
|
|
5653
|
-
* @memberof userdomain.User
|
|
5654
|
-
* @instance
|
|
5655
|
-
*/
|
|
5656
|
-
User.prototype.auth0Id = "";
|
|
5657
|
-
|
|
5658
|
-
/**
|
|
5659
|
-
* User firstName.
|
|
5660
|
-
* @member {string} firstName
|
|
5661
|
-
* @memberof userdomain.User
|
|
5662
|
-
* @instance
|
|
5663
|
-
*/
|
|
5664
|
-
User.prototype.firstName = "";
|
|
5665
|
-
|
|
5666
|
-
/**
|
|
5667
|
-
* User lastName.
|
|
5668
|
-
* @member {string} lastName
|
|
5669
|
-
* @memberof userdomain.User
|
|
5670
|
-
* @instance
|
|
5671
|
-
*/
|
|
5672
|
-
User.prototype.lastName = "";
|
|
5673
|
-
|
|
5674
|
-
/**
|
|
5675
|
-
* User email.
|
|
5676
|
-
* @member {string} email
|
|
5677
|
-
* @memberof userdomain.User
|
|
5678
|
-
* @instance
|
|
5679
|
-
*/
|
|
5680
|
-
User.prototype.email = "";
|
|
5681
|
-
|
|
5682
|
-
/**
|
|
5683
|
-
* User countryCode.
|
|
5684
|
-
* @member {string} countryCode
|
|
5685
|
-
* @memberof userdomain.User
|
|
5686
|
-
* @instance
|
|
5687
|
-
*/
|
|
5688
|
-
User.prototype.countryCode = "";
|
|
5689
|
-
|
|
5690
|
-
/**
|
|
5691
|
-
* User stateCode.
|
|
5692
|
-
* @member {string} stateCode
|
|
5693
|
-
* @memberof userdomain.User
|
|
5694
|
-
* @instance
|
|
5695
|
-
*/
|
|
5696
|
-
User.prototype.stateCode = "";
|
|
5697
|
-
|
|
5698
|
-
/**
|
|
5699
|
-
* User signupPlatform.
|
|
5700
|
-
* @member {userdomain.Platform} signupPlatform
|
|
5701
|
-
* @memberof userdomain.User
|
|
5702
|
-
* @instance
|
|
5703
|
-
*/
|
|
5704
|
-
User.prototype.signupPlatform = 0;
|
|
5705
|
-
|
|
5706
|
-
/**
|
|
5707
|
-
* User facebookId.
|
|
5708
|
-
* @member {string} facebookId
|
|
5709
|
-
* @memberof userdomain.User
|
|
5710
|
-
* @instance
|
|
5711
|
-
*/
|
|
5712
|
-
User.prototype.facebookId = "";
|
|
5713
|
-
|
|
5714
|
-
/**
|
|
5715
|
-
* User appleId.
|
|
5716
|
-
* @member {string} appleId
|
|
5717
|
-
* @memberof userdomain.User
|
|
5718
|
-
* @instance
|
|
5719
|
-
*/
|
|
5720
|
-
User.prototype.appleId = "";
|
|
5721
|
-
|
|
5722
|
-
/**
|
|
5723
|
-
* User spotifyId.
|
|
5724
|
-
* @member {string} spotifyId
|
|
5725
|
-
* @memberof userdomain.User
|
|
5726
|
-
* @instance
|
|
5727
|
-
*/
|
|
5728
|
-
User.prototype.spotifyId = "";
|
|
5729
|
-
|
|
5730
|
-
/**
|
|
5731
|
-
* Creates a new User instance using the specified properties.
|
|
5732
|
-
* @function create
|
|
5733
|
-
* @memberof userdomain.User
|
|
5734
|
-
* @static
|
|
5735
|
-
* @param {userdomain.IUser=} [properties] Properties to set
|
|
5736
|
-
* @returns {userdomain.User} User instance
|
|
5737
|
-
*/
|
|
5738
|
-
User.create = function create(properties) {
|
|
5739
|
-
return new User(properties);
|
|
5740
|
-
};
|
|
5741
|
-
|
|
5742
|
-
/**
|
|
5743
|
-
* Encodes the specified User message. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
5744
|
-
* @function encode
|
|
5745
|
-
* @memberof userdomain.User
|
|
5746
|
-
* @static
|
|
5747
|
-
* @param {userdomain.IUser} message User message or plain object to encode
|
|
5748
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5749
|
-
* @returns {$protobuf.Writer} Writer
|
|
5750
|
-
*/
|
|
5751
|
-
User.encode = function encode(message, writer) {
|
|
5752
|
-
if (!writer)
|
|
5753
|
-
writer = $Writer.create();
|
|
5754
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5755
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
5756
|
-
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
5757
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.auth0Id);
|
|
5758
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
5759
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.firstName);
|
|
5760
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
5761
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
|
|
5762
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
5763
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.email);
|
|
5764
|
-
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
5765
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.countryCode);
|
|
5766
|
-
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
5767
|
-
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
5768
|
-
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5769
|
-
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
5770
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5771
|
-
writer.uint32(/* id 9, wireType 2 =*/74).string(message.facebookId);
|
|
5772
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5773
|
-
writer.uint32(/* id 10, wireType 2 =*/82).string(message.appleId);
|
|
5774
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5775
|
-
writer.uint32(/* id 11, wireType 2 =*/90).string(message.spotifyId);
|
|
5776
|
-
return writer;
|
|
5777
|
-
};
|
|
5778
|
-
|
|
5779
|
-
/**
|
|
5780
|
-
* Encodes the specified User message, length delimited. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
5781
|
-
* @function encodeDelimited
|
|
5782
|
-
* @memberof userdomain.User
|
|
5783
|
-
* @static
|
|
5784
|
-
* @param {userdomain.IUser} message User message or plain object to encode
|
|
5785
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5786
|
-
* @returns {$protobuf.Writer} Writer
|
|
5787
|
-
*/
|
|
5788
|
-
User.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5789
|
-
return this.encode(message, writer).ldelim();
|
|
5790
|
-
};
|
|
5791
|
-
|
|
5792
|
-
/**
|
|
5793
|
-
* Decodes a User message from the specified reader or buffer.
|
|
5794
|
-
* @function decode
|
|
5795
|
-
* @memberof userdomain.User
|
|
5796
|
-
* @static
|
|
5797
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5798
|
-
* @param {number} [length] Message length if known beforehand
|
|
5799
|
-
* @returns {userdomain.User} User
|
|
5800
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5801
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5802
|
-
*/
|
|
5803
|
-
User.decode = function decode(reader, length) {
|
|
5804
|
-
if (!(reader instanceof $Reader))
|
|
5805
|
-
reader = $Reader.create(reader);
|
|
5806
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.userdomain.User();
|
|
5807
|
-
while (reader.pos < end) {
|
|
5808
|
-
var tag = reader.uint32();
|
|
5809
|
-
switch (tag >>> 3) {
|
|
5982
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5983
|
+
if (!$util.isString(message.facebookId))
|
|
5984
|
+
return "facebookId: string expected";
|
|
5985
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5986
|
+
if (!$util.isString(message.appleId))
|
|
5987
|
+
return "appleId: string expected";
|
|
5988
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5989
|
+
if (!$util.isString(message.spotifyId))
|
|
5990
|
+
return "spotifyId: string expected";
|
|
5991
|
+
if (message.oneloginId != null && message.hasOwnProperty("oneloginId"))
|
|
5992
|
+
if (!$util.isString(message.oneloginId))
|
|
5993
|
+
return "oneloginId: string expected";
|
|
5994
|
+
if (message.userType != null && message.hasOwnProperty("userType"))
|
|
5995
|
+
switch (message.userType) {
|
|
5996
|
+
default:
|
|
5997
|
+
return "userType: enum value expected";
|
|
5998
|
+
case 0:
|
|
5999
|
+
case 1:
|
|
6000
|
+
case 2:
|
|
6001
|
+
case 3:
|
|
6002
|
+
case 4:
|
|
6003
|
+
break;
|
|
6004
|
+
}
|
|
6005
|
+
return null;
|
|
6006
|
+
};
|
|
6007
|
+
|
|
6008
|
+
/**
|
|
6009
|
+
* Creates a User message from a plain object. Also converts values to their respective internal types.
|
|
6010
|
+
* @function fromObject
|
|
6011
|
+
* @memberof userdomain.users.User
|
|
6012
|
+
* @static
|
|
6013
|
+
* @param {Object.<string,*>} object Plain object
|
|
6014
|
+
* @returns {userdomain.users.User} User
|
|
6015
|
+
*/
|
|
6016
|
+
User.fromObject = function fromObject(object) {
|
|
6017
|
+
if (object instanceof $root.userdomain.users.User)
|
|
6018
|
+
return object;
|
|
6019
|
+
var message = new $root.userdomain.users.User();
|
|
6020
|
+
if (object.hsId != null)
|
|
6021
|
+
message.hsId = String(object.hsId);
|
|
6022
|
+
if (object.auth0Id != null)
|
|
6023
|
+
message.auth0Id = String(object.auth0Id);
|
|
6024
|
+
if (object.firstName != null)
|
|
6025
|
+
message.firstName = String(object.firstName);
|
|
6026
|
+
if (object.lastName != null)
|
|
6027
|
+
message.lastName = String(object.lastName);
|
|
6028
|
+
if (object.email != null)
|
|
6029
|
+
message.email = String(object.email);
|
|
6030
|
+
if (object.countryCode != null)
|
|
6031
|
+
message.countryCode = String(object.countryCode);
|
|
6032
|
+
if (object.stateCode != null)
|
|
6033
|
+
message.stateCode = String(object.stateCode);
|
|
6034
|
+
switch (object.signupPlatform) {
|
|
6035
|
+
case "UNKNOWN_PLATFORM":
|
|
6036
|
+
case 0:
|
|
6037
|
+
message.signupPlatform = 0;
|
|
6038
|
+
break;
|
|
6039
|
+
case "DESKTOP":
|
|
5810
6040
|
case 1:
|
|
5811
|
-
message.
|
|
6041
|
+
message.signupPlatform = 1;
|
|
5812
6042
|
break;
|
|
6043
|
+
case "IOS":
|
|
5813
6044
|
case 2:
|
|
5814
|
-
message.
|
|
6045
|
+
message.signupPlatform = 2;
|
|
5815
6046
|
break;
|
|
6047
|
+
case "ANDROID":
|
|
5816
6048
|
case 3:
|
|
5817
|
-
message.
|
|
6049
|
+
message.signupPlatform = 3;
|
|
5818
6050
|
break;
|
|
6051
|
+
case "ALEXA":
|
|
5819
6052
|
case 4:
|
|
5820
|
-
message.
|
|
6053
|
+
message.signupPlatform = 4;
|
|
5821
6054
|
break;
|
|
6055
|
+
case "GOOGLE_ASSISTANT":
|
|
5822
6056
|
case 5:
|
|
5823
|
-
message.
|
|
6057
|
+
message.signupPlatform = 5;
|
|
5824
6058
|
break;
|
|
6059
|
+
case "IOS_WATCH":
|
|
5825
6060
|
case 6:
|
|
5826
|
-
message.
|
|
5827
|
-
break;
|
|
5828
|
-
case 7:
|
|
5829
|
-
message.stateCode = reader.string();
|
|
5830
|
-
break;
|
|
5831
|
-
case 8:
|
|
5832
|
-
message.signupPlatform = reader.int32();
|
|
5833
|
-
break;
|
|
5834
|
-
case 9:
|
|
5835
|
-
message.facebookId = reader.string();
|
|
5836
|
-
break;
|
|
5837
|
-
case 10:
|
|
5838
|
-
message.appleId = reader.string();
|
|
5839
|
-
break;
|
|
5840
|
-
case 11:
|
|
5841
|
-
message.spotifyId = reader.string();
|
|
5842
|
-
break;
|
|
5843
|
-
default:
|
|
5844
|
-
reader.skipType(tag & 7);
|
|
6061
|
+
message.signupPlatform = 6;
|
|
5845
6062
|
break;
|
|
5846
6063
|
}
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
* @returns {userdomain.User} User
|
|
5858
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5859
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5860
|
-
*/
|
|
5861
|
-
User.decodeDelimited = function decodeDelimited(reader) {
|
|
5862
|
-
if (!(reader instanceof $Reader))
|
|
5863
|
-
reader = new $Reader(reader);
|
|
5864
|
-
return this.decode(reader, reader.uint32());
|
|
5865
|
-
};
|
|
5866
|
-
|
|
5867
|
-
/**
|
|
5868
|
-
* Verifies a User message.
|
|
5869
|
-
* @function verify
|
|
5870
|
-
* @memberof userdomain.User
|
|
5871
|
-
* @static
|
|
5872
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
5873
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5874
|
-
*/
|
|
5875
|
-
User.verify = function verify(message) {
|
|
5876
|
-
if (typeof message !== "object" || message === null)
|
|
5877
|
-
return "object expected";
|
|
5878
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5879
|
-
if (!$util.isString(message.hsId))
|
|
5880
|
-
return "hsId: string expected";
|
|
5881
|
-
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
5882
|
-
if (!$util.isString(message.auth0Id))
|
|
5883
|
-
return "auth0Id: string expected";
|
|
5884
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
5885
|
-
if (!$util.isString(message.firstName))
|
|
5886
|
-
return "firstName: string expected";
|
|
5887
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
5888
|
-
if (!$util.isString(message.lastName))
|
|
5889
|
-
return "lastName: string expected";
|
|
5890
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
5891
|
-
if (!$util.isString(message.email))
|
|
5892
|
-
return "email: string expected";
|
|
5893
|
-
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
5894
|
-
if (!$util.isString(message.countryCode))
|
|
5895
|
-
return "countryCode: string expected";
|
|
5896
|
-
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
5897
|
-
if (!$util.isString(message.stateCode))
|
|
5898
|
-
return "stateCode: string expected";
|
|
5899
|
-
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5900
|
-
switch (message.signupPlatform) {
|
|
5901
|
-
default:
|
|
5902
|
-
return "signupPlatform: enum value expected";
|
|
6064
|
+
if (object.facebookId != null)
|
|
6065
|
+
message.facebookId = String(object.facebookId);
|
|
6066
|
+
if (object.appleId != null)
|
|
6067
|
+
message.appleId = String(object.appleId);
|
|
6068
|
+
if (object.spotifyId != null)
|
|
6069
|
+
message.spotifyId = String(object.spotifyId);
|
|
6070
|
+
if (object.oneloginId != null)
|
|
6071
|
+
message.oneloginId = String(object.oneloginId);
|
|
6072
|
+
switch (object.userType) {
|
|
6073
|
+
case "CORE_ADMIN":
|
|
5903
6074
|
case 0:
|
|
6075
|
+
message.userType = 0;
|
|
6076
|
+
break;
|
|
6077
|
+
case "CORE_USER":
|
|
5904
6078
|
case 1:
|
|
6079
|
+
message.userType = 1;
|
|
6080
|
+
break;
|
|
6081
|
+
case "HEALTH_ADMIN":
|
|
5905
6082
|
case 2:
|
|
6083
|
+
message.userType = 2;
|
|
6084
|
+
break;
|
|
6085
|
+
case "HEALTH_COACH":
|
|
5906
6086
|
case 3:
|
|
6087
|
+
message.userType = 3;
|
|
6088
|
+
break;
|
|
6089
|
+
case "HEALTH_USER":
|
|
5907
6090
|
case 4:
|
|
5908
|
-
|
|
6091
|
+
message.userType = 4;
|
|
5909
6092
|
break;
|
|
5910
6093
|
}
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
6094
|
+
return message;
|
|
6095
|
+
};
|
|
6096
|
+
|
|
6097
|
+
/**
|
|
6098
|
+
* Creates a plain object from a User message. Also converts values to other types if specified.
|
|
6099
|
+
* @function toObject
|
|
6100
|
+
* @memberof userdomain.users.User
|
|
6101
|
+
* @static
|
|
6102
|
+
* @param {userdomain.users.User} message User
|
|
6103
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6104
|
+
* @returns {Object.<string,*>} Plain object
|
|
6105
|
+
*/
|
|
6106
|
+
User.toObject = function toObject(message, options) {
|
|
6107
|
+
if (!options)
|
|
6108
|
+
options = {};
|
|
6109
|
+
var object = {};
|
|
6110
|
+
if (options.defaults) {
|
|
6111
|
+
object.hsId = "";
|
|
6112
|
+
object.auth0Id = "";
|
|
6113
|
+
object.firstName = "";
|
|
6114
|
+
object.lastName = "";
|
|
6115
|
+
object.email = "";
|
|
6116
|
+
object.countryCode = "";
|
|
6117
|
+
object.stateCode = "";
|
|
6118
|
+
object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
6119
|
+
object.facebookId = "";
|
|
6120
|
+
object.appleId = "";
|
|
6121
|
+
object.spotifyId = "";
|
|
6122
|
+
object.oneloginId = "";
|
|
6123
|
+
object.userType = options.enums === String ? "CORE_ADMIN" : 0;
|
|
6124
|
+
}
|
|
6125
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6126
|
+
object.hsId = message.hsId;
|
|
6127
|
+
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
6128
|
+
object.auth0Id = message.auth0Id;
|
|
6129
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
6130
|
+
object.firstName = message.firstName;
|
|
6131
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
6132
|
+
object.lastName = message.lastName;
|
|
6133
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
6134
|
+
object.email = message.email;
|
|
6135
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
6136
|
+
object.countryCode = message.countryCode;
|
|
6137
|
+
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
6138
|
+
object.stateCode = message.stateCode;
|
|
6139
|
+
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
6140
|
+
object.signupPlatform = options.enums === String ? $root.userdomain.users.Platform[message.signupPlatform] : message.signupPlatform;
|
|
6141
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
6142
|
+
object.facebookId = message.facebookId;
|
|
6143
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
6144
|
+
object.appleId = message.appleId;
|
|
6145
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
6146
|
+
object.spotifyId = message.spotifyId;
|
|
6147
|
+
if (message.oneloginId != null && message.hasOwnProperty("oneloginId"))
|
|
6148
|
+
object.oneloginId = message.oneloginId;
|
|
6149
|
+
if (message.userType != null && message.hasOwnProperty("userType"))
|
|
6150
|
+
object.userType = options.enums === String ? $root.userdomain.users.UserType[message.userType] : message.userType;
|
|
5933
6151
|
return object;
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
object.spotifyId = message.spotifyId;
|
|
6032
|
-
return object;
|
|
6033
|
-
};
|
|
6034
|
-
|
|
6035
|
-
/**
|
|
6036
|
-
* Converts this User to JSON.
|
|
6037
|
-
* @function toJSON
|
|
6038
|
-
* @memberof userdomain.User
|
|
6039
|
-
* @instance
|
|
6040
|
-
* @returns {Object.<string,*>} JSON object
|
|
6041
|
-
*/
|
|
6042
|
-
User.prototype.toJSON = function toJSON() {
|
|
6043
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6044
|
-
};
|
|
6045
|
-
|
|
6046
|
-
return User;
|
|
6047
|
-
})();
|
|
6048
|
-
|
|
6049
|
-
/**
|
|
6050
|
-
* Platform enum.
|
|
6051
|
-
* @name userdomain.Platform
|
|
6052
|
-
* @enum {string}
|
|
6053
|
-
* @property {number} UNKNOWN_PLATFORM=0 UNKNOWN_PLATFORM value
|
|
6054
|
-
* @property {number} DESKTOP=1 DESKTOP value
|
|
6055
|
-
* @property {number} IOS=2 IOS value
|
|
6056
|
-
* @property {number} ANDROID=3 ANDROID value
|
|
6057
|
-
* @property {number} ALEXA=4 ALEXA value
|
|
6058
|
-
* @property {number} GOOGLE_ASSISTANT=5 GOOGLE_ASSISTANT value
|
|
6059
|
-
*/
|
|
6060
|
-
userdomain.Platform = (function() {
|
|
6061
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
6062
|
-
values[valuesById[0] = "UNKNOWN_PLATFORM"] = 0;
|
|
6063
|
-
values[valuesById[1] = "DESKTOP"] = 1;
|
|
6064
|
-
values[valuesById[2] = "IOS"] = 2;
|
|
6065
|
-
values[valuesById[3] = "ANDROID"] = 3;
|
|
6066
|
-
values[valuesById[4] = "ALEXA"] = 4;
|
|
6067
|
-
values[valuesById[5] = "GOOGLE_ASSISTANT"] = 5;
|
|
6068
|
-
return values;
|
|
6069
|
-
})();
|
|
6070
|
-
|
|
6071
|
-
/**
|
|
6072
|
-
* LoginStatus enum.
|
|
6073
|
-
* @name userdomain.LoginStatus
|
|
6074
|
-
* @enum {string}
|
|
6075
|
-
* @property {number} LOGIN_UNKNOWN=0 LOGIN_UNKNOWN value
|
|
6076
|
-
* @property {number} LOGIN_SUCCESS=1 LOGIN_SUCCESS value
|
|
6077
|
-
* @property {number} LOGIN_FAIL=2 LOGIN_FAIL value
|
|
6078
|
-
*/
|
|
6079
|
-
userdomain.LoginStatus = (function() {
|
|
6080
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
6081
|
-
values[valuesById[0] = "LOGIN_UNKNOWN"] = 0;
|
|
6082
|
-
values[valuesById[1] = "LOGIN_SUCCESS"] = 1;
|
|
6083
|
-
values[valuesById[2] = "LOGIN_FAIL"] = 2;
|
|
6084
|
-
return values;
|
|
6085
|
-
})();
|
|
6086
|
-
|
|
6087
|
-
/**
|
|
6088
|
-
* ConnectionSource enum.
|
|
6089
|
-
* @name userdomain.ConnectionSource
|
|
6090
|
-
* @enum {string}
|
|
6091
|
-
* @property {number} CONNSRC_UNKNOWN=0 CONNSRC_UNKNOWN value
|
|
6092
|
-
* @property {number} CONNSRC_EMAIL=1 CONNSRC_EMAIL value
|
|
6093
|
-
* @property {number} CONNSRC_FACEBOOK=2 CONNSRC_FACEBOOK value
|
|
6094
|
-
* @property {number} CONNSRC_SPOTIFY=3 CONNSRC_SPOTIFY value
|
|
6095
|
-
* @property {number} CONNSRC_APPLE=4 CONNSRC_APPLE value
|
|
6096
|
-
*/
|
|
6097
|
-
userdomain.ConnectionSource = (function() {
|
|
6098
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
6099
|
-
values[valuesById[0] = "CONNSRC_UNKNOWN"] = 0;
|
|
6100
|
-
values[valuesById[1] = "CONNSRC_EMAIL"] = 1;
|
|
6101
|
-
values[valuesById[2] = "CONNSRC_FACEBOOK"] = 2;
|
|
6102
|
-
values[valuesById[3] = "CONNSRC_SPOTIFY"] = 3;
|
|
6103
|
-
values[valuesById[4] = "CONNSRC_APPLE"] = 4;
|
|
6104
|
-
return values;
|
|
6152
|
+
};
|
|
6153
|
+
|
|
6154
|
+
/**
|
|
6155
|
+
* Converts this User to JSON.
|
|
6156
|
+
* @function toJSON
|
|
6157
|
+
* @memberof userdomain.users.User
|
|
6158
|
+
* @instance
|
|
6159
|
+
* @returns {Object.<string,*>} JSON object
|
|
6160
|
+
*/
|
|
6161
|
+
User.prototype.toJSON = function toJSON() {
|
|
6162
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6163
|
+
};
|
|
6164
|
+
|
|
6165
|
+
return User;
|
|
6166
|
+
})();
|
|
6167
|
+
|
|
6168
|
+
/**
|
|
6169
|
+
* Platform enum.
|
|
6170
|
+
* @name userdomain.users.Platform
|
|
6171
|
+
* @enum {string}
|
|
6172
|
+
* @property {number} UNKNOWN_PLATFORM=0 UNKNOWN_PLATFORM value
|
|
6173
|
+
* @property {number} DESKTOP=1 DESKTOP value
|
|
6174
|
+
* @property {number} IOS=2 IOS value
|
|
6175
|
+
* @property {number} ANDROID=3 ANDROID value
|
|
6176
|
+
* @property {number} ALEXA=4 ALEXA value
|
|
6177
|
+
* @property {number} GOOGLE_ASSISTANT=5 GOOGLE_ASSISTANT value
|
|
6178
|
+
* @property {number} IOS_WATCH=6 IOS_WATCH value
|
|
6179
|
+
*/
|
|
6180
|
+
users.Platform = (function() {
|
|
6181
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6182
|
+
values[valuesById[0] = "UNKNOWN_PLATFORM"] = 0;
|
|
6183
|
+
values[valuesById[1] = "DESKTOP"] = 1;
|
|
6184
|
+
values[valuesById[2] = "IOS"] = 2;
|
|
6185
|
+
values[valuesById[3] = "ANDROID"] = 3;
|
|
6186
|
+
values[valuesById[4] = "ALEXA"] = 4;
|
|
6187
|
+
values[valuesById[5] = "GOOGLE_ASSISTANT"] = 5;
|
|
6188
|
+
values[valuesById[6] = "IOS_WATCH"] = 6;
|
|
6189
|
+
return values;
|
|
6190
|
+
})();
|
|
6191
|
+
|
|
6192
|
+
/**
|
|
6193
|
+
* UserType enum.
|
|
6194
|
+
* @name userdomain.users.UserType
|
|
6195
|
+
* @enum {string}
|
|
6196
|
+
* @property {number} CORE_ADMIN=0 CORE_ADMIN value
|
|
6197
|
+
* @property {number} CORE_USER=1 CORE_USER value
|
|
6198
|
+
* @property {number} HEALTH_ADMIN=2 HEALTH_ADMIN value
|
|
6199
|
+
* @property {number} HEALTH_COACH=3 HEALTH_COACH value
|
|
6200
|
+
* @property {number} HEALTH_USER=4 HEALTH_USER value
|
|
6201
|
+
*/
|
|
6202
|
+
users.UserType = (function() {
|
|
6203
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6204
|
+
values[valuesById[0] = "CORE_ADMIN"] = 0;
|
|
6205
|
+
values[valuesById[1] = "CORE_USER"] = 1;
|
|
6206
|
+
values[valuesById[2] = "HEALTH_ADMIN"] = 2;
|
|
6207
|
+
values[valuesById[3] = "HEALTH_COACH"] = 3;
|
|
6208
|
+
values[valuesById[4] = "HEALTH_USER"] = 4;
|
|
6209
|
+
return values;
|
|
6210
|
+
})();
|
|
6211
|
+
|
|
6212
|
+
/**
|
|
6213
|
+
* LoginStatus enum.
|
|
6214
|
+
* @name userdomain.users.LoginStatus
|
|
6215
|
+
* @enum {string}
|
|
6216
|
+
* @property {number} LOGIN_UNKNOWN=0 LOGIN_UNKNOWN value
|
|
6217
|
+
* @property {number} LOGIN_SUCCESS=1 LOGIN_SUCCESS value
|
|
6218
|
+
* @property {number} LOGIN_FAIL=2 LOGIN_FAIL value
|
|
6219
|
+
*/
|
|
6220
|
+
users.LoginStatus = (function() {
|
|
6221
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6222
|
+
values[valuesById[0] = "LOGIN_UNKNOWN"] = 0;
|
|
6223
|
+
values[valuesById[1] = "LOGIN_SUCCESS"] = 1;
|
|
6224
|
+
values[valuesById[2] = "LOGIN_FAIL"] = 2;
|
|
6225
|
+
return values;
|
|
6226
|
+
})();
|
|
6227
|
+
|
|
6228
|
+
/**
|
|
6229
|
+
* ConnectionSource enum.
|
|
6230
|
+
* @name userdomain.users.ConnectionSource
|
|
6231
|
+
* @enum {string}
|
|
6232
|
+
* @property {number} CONNSRC_UNKNOWN=0 CONNSRC_UNKNOWN value
|
|
6233
|
+
* @property {number} CONNSRC_EMAIL=1 CONNSRC_EMAIL value
|
|
6234
|
+
* @property {number} CONNSRC_FACEBOOK=2 CONNSRC_FACEBOOK value
|
|
6235
|
+
* @property {number} CONNSRC_SPOTIFY=3 CONNSRC_SPOTIFY value
|
|
6236
|
+
* @property {number} CONNSRC_APPLE=4 CONNSRC_APPLE value
|
|
6237
|
+
*/
|
|
6238
|
+
users.ConnectionSource = (function() {
|
|
6239
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6240
|
+
values[valuesById[0] = "CONNSRC_UNKNOWN"] = 0;
|
|
6241
|
+
values[valuesById[1] = "CONNSRC_EMAIL"] = 1;
|
|
6242
|
+
values[valuesById[2] = "CONNSRC_FACEBOOK"] = 2;
|
|
6243
|
+
values[valuesById[3] = "CONNSRC_SPOTIFY"] = 3;
|
|
6244
|
+
values[valuesById[4] = "CONNSRC_APPLE"] = 4;
|
|
6245
|
+
return values;
|
|
6246
|
+
})();
|
|
6247
|
+
|
|
6248
|
+
return users;
|
|
6105
6249
|
})();
|
|
6106
6250
|
|
|
6107
6251
|
return userdomain;
|
|
@@ -6114,7 +6258,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6114
6258
|
* @exports IUserRoleUpdated
|
|
6115
6259
|
* @interface IUserRoleUpdated
|
|
6116
6260
|
* @property {string|null} [hsId] UserRoleUpdated hsId
|
|
6117
|
-
* @property {userdomain.IUserRole|null} [userRole] UserRoleUpdated userRole
|
|
6261
|
+
* @property {userdomain.roles.IUserRole|null} [userRole] UserRoleUpdated userRole
|
|
6118
6262
|
* @property {number|Long|null} [updatedAt] UserRoleUpdated updatedAt
|
|
6119
6263
|
*/
|
|
6120
6264
|
|
|
@@ -6143,7 +6287,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6143
6287
|
|
|
6144
6288
|
/**
|
|
6145
6289
|
* UserRoleUpdated userRole.
|
|
6146
|
-
* @member {userdomain.IUserRole|null|undefined} userRole
|
|
6290
|
+
* @member {userdomain.roles.IUserRole|null|undefined} userRole
|
|
6147
6291
|
* @memberof UserRoleUpdated
|
|
6148
6292
|
* @instance
|
|
6149
6293
|
*/
|
|
@@ -6184,7 +6328,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6184
6328
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6185
6329
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
6186
6330
|
if (message.userRole != null && message.hasOwnProperty("userRole"))
|
|
6187
|
-
$root.userdomain.UserRole.encode(message.userRole, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
6331
|
+
$root.userdomain.roles.UserRole.encode(message.userRole, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
6188
6332
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
6189
6333
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
6190
6334
|
return writer;
|
|
@@ -6225,7 +6369,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6225
6369
|
message.hsId = reader.string();
|
|
6226
6370
|
break;
|
|
6227
6371
|
case 2:
|
|
6228
|
-
message.userRole = $root.userdomain.UserRole.decode(reader, reader.uint32());
|
|
6372
|
+
message.userRole = $root.userdomain.roles.UserRole.decode(reader, reader.uint32());
|
|
6229
6373
|
break;
|
|
6230
6374
|
case 3:
|
|
6231
6375
|
message.updatedAt = reader.uint64();
|
|
@@ -6269,7 +6413,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6269
6413
|
if (!$util.isString(message.hsId))
|
|
6270
6414
|
return "hsId: string expected";
|
|
6271
6415
|
if (message.userRole != null && message.hasOwnProperty("userRole")) {
|
|
6272
|
-
var error = $root.userdomain.UserRole.verify(message.userRole);
|
|
6416
|
+
var error = $root.userdomain.roles.UserRole.verify(message.userRole);
|
|
6273
6417
|
if (error)
|
|
6274
6418
|
return "userRole." + error;
|
|
6275
6419
|
}
|
|
@@ -6296,7 +6440,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6296
6440
|
if (object.userRole != null) {
|
|
6297
6441
|
if (typeof object.userRole !== "object")
|
|
6298
6442
|
throw TypeError(".UserRoleUpdated.userRole: object expected");
|
|
6299
|
-
message.userRole = $root.userdomain.UserRole.fromObject(object.userRole);
|
|
6443
|
+
message.userRole = $root.userdomain.roles.UserRole.fromObject(object.userRole);
|
|
6300
6444
|
}
|
|
6301
6445
|
if (object.updatedAt != null)
|
|
6302
6446
|
if ($util.Long)
|
|
@@ -6335,7 +6479,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6335
6479
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6336
6480
|
object.hsId = message.hsId;
|
|
6337
6481
|
if (message.userRole != null && message.hasOwnProperty("userRole"))
|
|
6338
|
-
object.userRole = $root.userdomain.UserRole.toObject(message.userRole, options);
|
|
6482
|
+
object.userRole = $root.userdomain.roles.UserRole.toObject(message.userRole, options);
|
|
6339
6483
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
6340
6484
|
if (typeof message.updatedAt === "number")
|
|
6341
6485
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
@@ -6364,7 +6508,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6364
6508
|
* Properties of a UserDomainCreated.
|
|
6365
6509
|
* @exports IUserDomainCreated
|
|
6366
6510
|
* @interface IUserDomainCreated
|
|
6367
|
-
* @property {userdomain.IUser|null} [user] UserDomainCreated user
|
|
6511
|
+
* @property {userdomain.users.IUser|null} [user] UserDomainCreated user
|
|
6368
6512
|
* @property {number|Long|null} [createdAt] UserDomainCreated createdAt
|
|
6369
6513
|
*/
|
|
6370
6514
|
|
|
@@ -6385,7 +6529,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6385
6529
|
|
|
6386
6530
|
/**
|
|
6387
6531
|
* UserDomainCreated user.
|
|
6388
|
-
* @member {userdomain.IUser|null|undefined} user
|
|
6532
|
+
* @member {userdomain.users.IUser|null|undefined} user
|
|
6389
6533
|
* @memberof UserDomainCreated
|
|
6390
6534
|
* @instance
|
|
6391
6535
|
*/
|
|
@@ -6424,7 +6568,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6424
6568
|
if (!writer)
|
|
6425
6569
|
writer = $Writer.create();
|
|
6426
6570
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
6427
|
-
$root.userdomain.User.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6571
|
+
$root.userdomain.users.User.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6428
6572
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6429
6573
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.createdAt);
|
|
6430
6574
|
return writer;
|
|
@@ -6462,7 +6606,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6462
6606
|
var tag = reader.uint32();
|
|
6463
6607
|
switch (tag >>> 3) {
|
|
6464
6608
|
case 1:
|
|
6465
|
-
message.user = $root.userdomain.User.decode(reader, reader.uint32());
|
|
6609
|
+
message.user = $root.userdomain.users.User.decode(reader, reader.uint32());
|
|
6466
6610
|
break;
|
|
6467
6611
|
case 2:
|
|
6468
6612
|
message.createdAt = reader.uint64();
|
|
@@ -6503,7 +6647,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6503
6647
|
if (typeof message !== "object" || message === null)
|
|
6504
6648
|
return "object expected";
|
|
6505
6649
|
if (message.user != null && message.hasOwnProperty("user")) {
|
|
6506
|
-
var error = $root.userdomain.User.verify(message.user);
|
|
6650
|
+
var error = $root.userdomain.users.User.verify(message.user);
|
|
6507
6651
|
if (error)
|
|
6508
6652
|
return "user." + error;
|
|
6509
6653
|
}
|
|
@@ -6528,7 +6672,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6528
6672
|
if (object.user != null) {
|
|
6529
6673
|
if (typeof object.user !== "object")
|
|
6530
6674
|
throw TypeError(".UserDomainCreated.user: object expected");
|
|
6531
|
-
message.user = $root.userdomain.User.fromObject(object.user);
|
|
6675
|
+
message.user = $root.userdomain.users.User.fromObject(object.user);
|
|
6532
6676
|
}
|
|
6533
6677
|
if (object.createdAt != null)
|
|
6534
6678
|
if ($util.Long)
|
|
@@ -6564,7 +6708,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6564
6708
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
6565
6709
|
}
|
|
6566
6710
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
6567
|
-
object.user = $root.userdomain.User.toObject(message.user, options);
|
|
6711
|
+
object.user = $root.userdomain.users.User.toObject(message.user, options);
|
|
6568
6712
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6569
6713
|
if (typeof message.createdAt === "number")
|
|
6570
6714
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
@@ -7579,9 +7723,9 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7579
7723
|
* @interface IUserDomainLoggedIn
|
|
7580
7724
|
* @property {string|null} [hsId] UserDomainLoggedIn hsId
|
|
7581
7725
|
* @property {number|Long|null} [loginTimestamp] UserDomainLoggedIn loginTimestamp
|
|
7582
|
-
* @property {userdomain.LoginStatus|null} [loginStatus] UserDomainLoggedIn loginStatus
|
|
7583
|
-
* @property {userdomain.Platform|null} [loginPlatform] UserDomainLoggedIn loginPlatform
|
|
7584
|
-
* @property {userdomain.ConnectionSource|null} [loginConnectionSource] UserDomainLoggedIn loginConnectionSource
|
|
7726
|
+
* @property {userdomain.users.LoginStatus|null} [loginStatus] UserDomainLoggedIn loginStatus
|
|
7727
|
+
* @property {userdomain.users.Platform|null} [loginPlatform] UserDomainLoggedIn loginPlatform
|
|
7728
|
+
* @property {userdomain.users.ConnectionSource|null} [loginConnectionSource] UserDomainLoggedIn loginConnectionSource
|
|
7585
7729
|
*/
|
|
7586
7730
|
|
|
7587
7731
|
/**
|
|
@@ -7617,7 +7761,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7617
7761
|
|
|
7618
7762
|
/**
|
|
7619
7763
|
* UserDomainLoggedIn loginStatus.
|
|
7620
|
-
* @member {userdomain.LoginStatus} loginStatus
|
|
7764
|
+
* @member {userdomain.users.LoginStatus} loginStatus
|
|
7621
7765
|
* @memberof UserDomainLoggedIn
|
|
7622
7766
|
* @instance
|
|
7623
7767
|
*/
|
|
@@ -7625,7 +7769,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7625
7769
|
|
|
7626
7770
|
/**
|
|
7627
7771
|
* UserDomainLoggedIn loginPlatform.
|
|
7628
|
-
* @member {userdomain.Platform} loginPlatform
|
|
7772
|
+
* @member {userdomain.users.Platform} loginPlatform
|
|
7629
7773
|
* @memberof UserDomainLoggedIn
|
|
7630
7774
|
* @instance
|
|
7631
7775
|
*/
|
|
@@ -7633,7 +7777,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7633
7777
|
|
|
7634
7778
|
/**
|
|
7635
7779
|
* UserDomainLoggedIn loginConnectionSource.
|
|
7636
|
-
* @member {userdomain.ConnectionSource} loginConnectionSource
|
|
7780
|
+
* @member {userdomain.users.ConnectionSource} loginConnectionSource
|
|
7637
7781
|
* @memberof UserDomainLoggedIn
|
|
7638
7782
|
* @instance
|
|
7639
7783
|
*/
|
|
@@ -7782,6 +7926,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7782
7926
|
case 3:
|
|
7783
7927
|
case 4:
|
|
7784
7928
|
case 5:
|
|
7929
|
+
case 6:
|
|
7785
7930
|
break;
|
|
7786
7931
|
}
|
|
7787
7932
|
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
@@ -7860,6 +8005,10 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7860
8005
|
case 5:
|
|
7861
8006
|
message.loginPlatform = 5;
|
|
7862
8007
|
break;
|
|
8008
|
+
case "IOS_WATCH":
|
|
8009
|
+
case 6:
|
|
8010
|
+
message.loginPlatform = 6;
|
|
8011
|
+
break;
|
|
7863
8012
|
}
|
|
7864
8013
|
switch (object.loginConnectionSource) {
|
|
7865
8014
|
case "CONNSRC_UNKNOWN":
|
|
@@ -7918,11 +8067,11 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7918
8067
|
else
|
|
7919
8068
|
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;
|
|
7920
8069
|
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
7921
|
-
object.loginStatus = options.enums === String ? $root.userdomain.LoginStatus[message.loginStatus] : message.loginStatus;
|
|
8070
|
+
object.loginStatus = options.enums === String ? $root.userdomain.users.LoginStatus[message.loginStatus] : message.loginStatus;
|
|
7922
8071
|
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
7923
|
-
object.loginPlatform = options.enums === String ? $root.userdomain.Platform[message.loginPlatform] : message.loginPlatform;
|
|
8072
|
+
object.loginPlatform = options.enums === String ? $root.userdomain.users.Platform[message.loginPlatform] : message.loginPlatform;
|
|
7924
8073
|
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
7925
|
-
object.loginConnectionSource = options.enums === String ? $root.userdomain.ConnectionSource[message.loginConnectionSource] : message.loginConnectionSource;
|
|
8074
|
+
object.loginConnectionSource = options.enums === String ? $root.userdomain.users.ConnectionSource[message.loginConnectionSource] : message.loginConnectionSource;
|
|
7926
8075
|
return object;
|
|
7927
8076
|
};
|
|
7928
8077
|
|