@headspace/protos-events 1.93.0 → 1.94.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 +298 -266
- package/lib/index.js +885 -748
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5330,778 +5330,915 @@ $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
5366
|
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
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
5979
|
break;
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5980
|
+
}
|
|
5981
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5982
|
+
if (!$util.isString(message.facebookId))
|
|
5983
|
+
return "facebookId: string expected";
|
|
5984
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5985
|
+
if (!$util.isString(message.appleId))
|
|
5986
|
+
return "appleId: string expected";
|
|
5987
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5988
|
+
if (!$util.isString(message.spotifyId))
|
|
5989
|
+
return "spotifyId: string expected";
|
|
5990
|
+
if (message.oneloginId != null && message.hasOwnProperty("oneloginId"))
|
|
5991
|
+
if (!$util.isString(message.oneloginId))
|
|
5992
|
+
return "oneloginId: string expected";
|
|
5993
|
+
if (message.userType != null && message.hasOwnProperty("userType"))
|
|
5994
|
+
switch (message.userType) {
|
|
5995
|
+
default:
|
|
5996
|
+
return "userType: enum value expected";
|
|
5997
|
+
case 0:
|
|
5998
|
+
case 1:
|
|
5999
|
+
case 2:
|
|
6000
|
+
case 3:
|
|
6001
|
+
case 4:
|
|
5541
6002
|
break;
|
|
5542
6003
|
}
|
|
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
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5579
|
-
};
|
|
5580
|
-
|
|
5581
|
-
return UserRole;
|
|
5582
|
-
})();
|
|
5583
|
-
|
|
5584
|
-
/**
|
|
5585
|
-
* Role enum.
|
|
5586
|
-
* @name userdomain.Role
|
|
5587
|
-
* @enum {string}
|
|
5588
|
-
* @property {number} UNKNOWN_ROLE=0 UNKNOWN_ROLE value
|
|
5589
|
-
* @property {number} ROLEADMIN=1 ROLEADMIN value
|
|
5590
|
-
* @property {number} NORMALUSER=2 NORMALUSER value
|
|
5591
|
-
* @property {number} CONTENTADMIN=3 CONTENTADMIN value
|
|
5592
|
-
* @property {number} USERADMIN=4 USERADMIN value
|
|
5593
|
-
* @property {number} CORPORATEADMIN=5 CORPORATEADMIN value
|
|
5594
|
-
* @property {number} SPECIALADMIN=6 SPECIALADMIN value
|
|
5595
|
-
*/
|
|
5596
|
-
userdomain.Role = (function() {
|
|
5597
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
5598
|
-
values[valuesById[0] = "UNKNOWN_ROLE"] = 0;
|
|
5599
|
-
values[valuesById[1] = "ROLEADMIN"] = 1;
|
|
5600
|
-
values[valuesById[2] = "NORMALUSER"] = 2;
|
|
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) {
|
|
6004
|
+
return null;
|
|
6005
|
+
};
|
|
6006
|
+
|
|
6007
|
+
/**
|
|
6008
|
+
* Creates a User message from a plain object. Also converts values to their respective internal types.
|
|
6009
|
+
* @function fromObject
|
|
6010
|
+
* @memberof userdomain.users.User
|
|
6011
|
+
* @static
|
|
6012
|
+
* @param {Object.<string,*>} object Plain object
|
|
6013
|
+
* @returns {userdomain.users.User} User
|
|
6014
|
+
*/
|
|
6015
|
+
User.fromObject = function fromObject(object) {
|
|
6016
|
+
if (object instanceof $root.userdomain.users.User)
|
|
6017
|
+
return object;
|
|
6018
|
+
var message = new $root.userdomain.users.User();
|
|
6019
|
+
if (object.hsId != null)
|
|
6020
|
+
message.hsId = String(object.hsId);
|
|
6021
|
+
if (object.auth0Id != null)
|
|
6022
|
+
message.auth0Id = String(object.auth0Id);
|
|
6023
|
+
if (object.firstName != null)
|
|
6024
|
+
message.firstName = String(object.firstName);
|
|
6025
|
+
if (object.lastName != null)
|
|
6026
|
+
message.lastName = String(object.lastName);
|
|
6027
|
+
if (object.email != null)
|
|
6028
|
+
message.email = String(object.email);
|
|
6029
|
+
if (object.countryCode != null)
|
|
6030
|
+
message.countryCode = String(object.countryCode);
|
|
6031
|
+
if (object.stateCode != null)
|
|
6032
|
+
message.stateCode = String(object.stateCode);
|
|
6033
|
+
switch (object.signupPlatform) {
|
|
6034
|
+
case "UNKNOWN_PLATFORM":
|
|
6035
|
+
case 0:
|
|
6036
|
+
message.signupPlatform = 0;
|
|
6037
|
+
break;
|
|
6038
|
+
case "DESKTOP":
|
|
5810
6039
|
case 1:
|
|
5811
|
-
message.
|
|
6040
|
+
message.signupPlatform = 1;
|
|
5812
6041
|
break;
|
|
6042
|
+
case "IOS":
|
|
5813
6043
|
case 2:
|
|
5814
|
-
message.
|
|
6044
|
+
message.signupPlatform = 2;
|
|
5815
6045
|
break;
|
|
6046
|
+
case "ANDROID":
|
|
5816
6047
|
case 3:
|
|
5817
|
-
message.
|
|
6048
|
+
message.signupPlatform = 3;
|
|
5818
6049
|
break;
|
|
6050
|
+
case "ALEXA":
|
|
5819
6051
|
case 4:
|
|
5820
|
-
message.
|
|
6052
|
+
message.signupPlatform = 4;
|
|
5821
6053
|
break;
|
|
6054
|
+
case "GOOGLE_ASSISTANT":
|
|
5822
6055
|
case 5:
|
|
5823
|
-
message.
|
|
5824
|
-
break;
|
|
5825
|
-
case 6:
|
|
5826
|
-
message.countryCode = reader.string();
|
|
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);
|
|
6056
|
+
message.signupPlatform = 5;
|
|
5845
6057
|
break;
|
|
5846
6058
|
}
|
|
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";
|
|
6059
|
+
if (object.facebookId != null)
|
|
6060
|
+
message.facebookId = String(object.facebookId);
|
|
6061
|
+
if (object.appleId != null)
|
|
6062
|
+
message.appleId = String(object.appleId);
|
|
6063
|
+
if (object.spotifyId != null)
|
|
6064
|
+
message.spotifyId = String(object.spotifyId);
|
|
6065
|
+
if (object.oneloginId != null)
|
|
6066
|
+
message.oneloginId = String(object.oneloginId);
|
|
6067
|
+
switch (object.userType) {
|
|
6068
|
+
case "CORE_ADMIN":
|
|
5903
6069
|
case 0:
|
|
6070
|
+
message.userType = 0;
|
|
6071
|
+
break;
|
|
6072
|
+
case "CORE_USER":
|
|
5904
6073
|
case 1:
|
|
6074
|
+
message.userType = 1;
|
|
6075
|
+
break;
|
|
6076
|
+
case "HEALTH_ADMIN":
|
|
5905
6077
|
case 2:
|
|
6078
|
+
message.userType = 2;
|
|
6079
|
+
break;
|
|
6080
|
+
case "HEALTH_COACH":
|
|
5906
6081
|
case 3:
|
|
6082
|
+
message.userType = 3;
|
|
6083
|
+
break;
|
|
6084
|
+
case "HEALTH_USER":
|
|
5907
6085
|
case 4:
|
|
5908
|
-
|
|
6086
|
+
message.userType = 4;
|
|
5909
6087
|
break;
|
|
5910
6088
|
}
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
6089
|
+
return message;
|
|
6090
|
+
};
|
|
6091
|
+
|
|
6092
|
+
/**
|
|
6093
|
+
* Creates a plain object from a User message. Also converts values to other types if specified.
|
|
6094
|
+
* @function toObject
|
|
6095
|
+
* @memberof userdomain.users.User
|
|
6096
|
+
* @static
|
|
6097
|
+
* @param {userdomain.users.User} message User
|
|
6098
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6099
|
+
* @returns {Object.<string,*>} Plain object
|
|
6100
|
+
*/
|
|
6101
|
+
User.toObject = function toObject(message, options) {
|
|
6102
|
+
if (!options)
|
|
6103
|
+
options = {};
|
|
6104
|
+
var object = {};
|
|
6105
|
+
if (options.defaults) {
|
|
6106
|
+
object.hsId = "";
|
|
6107
|
+
object.auth0Id = "";
|
|
6108
|
+
object.firstName = "";
|
|
6109
|
+
object.lastName = "";
|
|
6110
|
+
object.email = "";
|
|
6111
|
+
object.countryCode = "";
|
|
6112
|
+
object.stateCode = "";
|
|
6113
|
+
object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
6114
|
+
object.facebookId = "";
|
|
6115
|
+
object.appleId = "";
|
|
6116
|
+
object.spotifyId = "";
|
|
6117
|
+
object.oneloginId = "";
|
|
6118
|
+
object.userType = options.enums === String ? "CORE_ADMIN" : 0;
|
|
6119
|
+
}
|
|
6120
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6121
|
+
object.hsId = message.hsId;
|
|
6122
|
+
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
6123
|
+
object.auth0Id = message.auth0Id;
|
|
6124
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
6125
|
+
object.firstName = message.firstName;
|
|
6126
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
6127
|
+
object.lastName = message.lastName;
|
|
6128
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
6129
|
+
object.email = message.email;
|
|
6130
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
6131
|
+
object.countryCode = message.countryCode;
|
|
6132
|
+
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
6133
|
+
object.stateCode = message.stateCode;
|
|
6134
|
+
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
6135
|
+
object.signupPlatform = options.enums === String ? $root.userdomain.users.Platform[message.signupPlatform] : message.signupPlatform;
|
|
6136
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
6137
|
+
object.facebookId = message.facebookId;
|
|
6138
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
6139
|
+
object.appleId = message.appleId;
|
|
6140
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
6141
|
+
object.spotifyId = message.spotifyId;
|
|
6142
|
+
if (message.oneloginId != null && message.hasOwnProperty("oneloginId"))
|
|
6143
|
+
object.oneloginId = message.oneloginId;
|
|
6144
|
+
if (message.userType != null && message.hasOwnProperty("userType"))
|
|
6145
|
+
object.userType = options.enums === String ? $root.userdomain.users.UserType[message.userType] : message.userType;
|
|
5933
6146
|
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
|
-
object.appleId = message.appleId;
|
|
6030
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
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;
|
|
6147
|
+
};
|
|
6148
|
+
|
|
6149
|
+
/**
|
|
6150
|
+
* Converts this User to JSON.
|
|
6151
|
+
* @function toJSON
|
|
6152
|
+
* @memberof userdomain.users.User
|
|
6153
|
+
* @instance
|
|
6154
|
+
* @returns {Object.<string,*>} JSON object
|
|
6155
|
+
*/
|
|
6156
|
+
User.prototype.toJSON = function toJSON() {
|
|
6157
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6158
|
+
};
|
|
6159
|
+
|
|
6160
|
+
return User;
|
|
6161
|
+
})();
|
|
6162
|
+
|
|
6163
|
+
/**
|
|
6164
|
+
* Platform enum.
|
|
6165
|
+
* @name userdomain.users.Platform
|
|
6166
|
+
* @enum {string}
|
|
6167
|
+
* @property {number} UNKNOWN_PLATFORM=0 UNKNOWN_PLATFORM value
|
|
6168
|
+
* @property {number} DESKTOP=1 DESKTOP value
|
|
6169
|
+
* @property {number} IOS=2 IOS value
|
|
6170
|
+
* @property {number} ANDROID=3 ANDROID value
|
|
6171
|
+
* @property {number} ALEXA=4 ALEXA value
|
|
6172
|
+
* @property {number} GOOGLE_ASSISTANT=5 GOOGLE_ASSISTANT value
|
|
6173
|
+
*/
|
|
6174
|
+
users.Platform = (function() {
|
|
6175
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6176
|
+
values[valuesById[0] = "UNKNOWN_PLATFORM"] = 0;
|
|
6177
|
+
values[valuesById[1] = "DESKTOP"] = 1;
|
|
6178
|
+
values[valuesById[2] = "IOS"] = 2;
|
|
6179
|
+
values[valuesById[3] = "ANDROID"] = 3;
|
|
6180
|
+
values[valuesById[4] = "ALEXA"] = 4;
|
|
6181
|
+
values[valuesById[5] = "GOOGLE_ASSISTANT"] = 5;
|
|
6182
|
+
return values;
|
|
6183
|
+
})();
|
|
6184
|
+
|
|
6185
|
+
/**
|
|
6186
|
+
* UserType enum.
|
|
6187
|
+
* @name userdomain.users.UserType
|
|
6188
|
+
* @enum {string}
|
|
6189
|
+
* @property {number} CORE_ADMIN=0 CORE_ADMIN value
|
|
6190
|
+
* @property {number} CORE_USER=1 CORE_USER value
|
|
6191
|
+
* @property {number} HEALTH_ADMIN=2 HEALTH_ADMIN value
|
|
6192
|
+
* @property {number} HEALTH_COACH=3 HEALTH_COACH value
|
|
6193
|
+
* @property {number} HEALTH_USER=4 HEALTH_USER value
|
|
6194
|
+
*/
|
|
6195
|
+
users.UserType = (function() {
|
|
6196
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6197
|
+
values[valuesById[0] = "CORE_ADMIN"] = 0;
|
|
6198
|
+
values[valuesById[1] = "CORE_USER"] = 1;
|
|
6199
|
+
values[valuesById[2] = "HEALTH_ADMIN"] = 2;
|
|
6200
|
+
values[valuesById[3] = "HEALTH_COACH"] = 3;
|
|
6201
|
+
values[valuesById[4] = "HEALTH_USER"] = 4;
|
|
6202
|
+
return values;
|
|
6203
|
+
})();
|
|
6204
|
+
|
|
6205
|
+
/**
|
|
6206
|
+
* LoginStatus enum.
|
|
6207
|
+
* @name userdomain.users.LoginStatus
|
|
6208
|
+
* @enum {string}
|
|
6209
|
+
* @property {number} LOGIN_UNKNOWN=0 LOGIN_UNKNOWN value
|
|
6210
|
+
* @property {number} LOGIN_SUCCESS=1 LOGIN_SUCCESS value
|
|
6211
|
+
* @property {number} LOGIN_FAIL=2 LOGIN_FAIL value
|
|
6212
|
+
*/
|
|
6213
|
+
users.LoginStatus = (function() {
|
|
6214
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6215
|
+
values[valuesById[0] = "LOGIN_UNKNOWN"] = 0;
|
|
6216
|
+
values[valuesById[1] = "LOGIN_SUCCESS"] = 1;
|
|
6217
|
+
values[valuesById[2] = "LOGIN_FAIL"] = 2;
|
|
6218
|
+
return values;
|
|
6219
|
+
})();
|
|
6220
|
+
|
|
6221
|
+
/**
|
|
6222
|
+
* ConnectionSource enum.
|
|
6223
|
+
* @name userdomain.users.ConnectionSource
|
|
6224
|
+
* @enum {string}
|
|
6225
|
+
* @property {number} CONNSRC_UNKNOWN=0 CONNSRC_UNKNOWN value
|
|
6226
|
+
* @property {number} CONNSRC_EMAIL=1 CONNSRC_EMAIL value
|
|
6227
|
+
* @property {number} CONNSRC_FACEBOOK=2 CONNSRC_FACEBOOK value
|
|
6228
|
+
* @property {number} CONNSRC_SPOTIFY=3 CONNSRC_SPOTIFY value
|
|
6229
|
+
* @property {number} CONNSRC_APPLE=4 CONNSRC_APPLE value
|
|
6230
|
+
*/
|
|
6231
|
+
users.ConnectionSource = (function() {
|
|
6232
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6233
|
+
values[valuesById[0] = "CONNSRC_UNKNOWN"] = 0;
|
|
6234
|
+
values[valuesById[1] = "CONNSRC_EMAIL"] = 1;
|
|
6235
|
+
values[valuesById[2] = "CONNSRC_FACEBOOK"] = 2;
|
|
6236
|
+
values[valuesById[3] = "CONNSRC_SPOTIFY"] = 3;
|
|
6237
|
+
values[valuesById[4] = "CONNSRC_APPLE"] = 4;
|
|
6238
|
+
return values;
|
|
6239
|
+
})();
|
|
6240
|
+
|
|
6241
|
+
return users;
|
|
6105
6242
|
})();
|
|
6106
6243
|
|
|
6107
6244
|
return userdomain;
|
|
@@ -6114,7 +6251,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6114
6251
|
* @exports IUserRoleUpdated
|
|
6115
6252
|
* @interface IUserRoleUpdated
|
|
6116
6253
|
* @property {string|null} [hsId] UserRoleUpdated hsId
|
|
6117
|
-
* @property {userdomain.IUserRole|null} [userRole] UserRoleUpdated userRole
|
|
6254
|
+
* @property {userdomain.roles.IUserRole|null} [userRole] UserRoleUpdated userRole
|
|
6118
6255
|
* @property {number|Long|null} [updatedAt] UserRoleUpdated updatedAt
|
|
6119
6256
|
*/
|
|
6120
6257
|
|
|
@@ -6143,7 +6280,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6143
6280
|
|
|
6144
6281
|
/**
|
|
6145
6282
|
* UserRoleUpdated userRole.
|
|
6146
|
-
* @member {userdomain.IUserRole|null|undefined} userRole
|
|
6283
|
+
* @member {userdomain.roles.IUserRole|null|undefined} userRole
|
|
6147
6284
|
* @memberof UserRoleUpdated
|
|
6148
6285
|
* @instance
|
|
6149
6286
|
*/
|
|
@@ -6184,7 +6321,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6184
6321
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6185
6322
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
6186
6323
|
if (message.userRole != null && message.hasOwnProperty("userRole"))
|
|
6187
|
-
$root.userdomain.UserRole.encode(message.userRole, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
6324
|
+
$root.userdomain.roles.UserRole.encode(message.userRole, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
6188
6325
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
6189
6326
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
6190
6327
|
return writer;
|
|
@@ -6225,7 +6362,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6225
6362
|
message.hsId = reader.string();
|
|
6226
6363
|
break;
|
|
6227
6364
|
case 2:
|
|
6228
|
-
message.userRole = $root.userdomain.UserRole.decode(reader, reader.uint32());
|
|
6365
|
+
message.userRole = $root.userdomain.roles.UserRole.decode(reader, reader.uint32());
|
|
6229
6366
|
break;
|
|
6230
6367
|
case 3:
|
|
6231
6368
|
message.updatedAt = reader.uint64();
|
|
@@ -6269,7 +6406,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6269
6406
|
if (!$util.isString(message.hsId))
|
|
6270
6407
|
return "hsId: string expected";
|
|
6271
6408
|
if (message.userRole != null && message.hasOwnProperty("userRole")) {
|
|
6272
|
-
var error = $root.userdomain.UserRole.verify(message.userRole);
|
|
6409
|
+
var error = $root.userdomain.roles.UserRole.verify(message.userRole);
|
|
6273
6410
|
if (error)
|
|
6274
6411
|
return "userRole." + error;
|
|
6275
6412
|
}
|
|
@@ -6296,7 +6433,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6296
6433
|
if (object.userRole != null) {
|
|
6297
6434
|
if (typeof object.userRole !== "object")
|
|
6298
6435
|
throw TypeError(".UserRoleUpdated.userRole: object expected");
|
|
6299
|
-
message.userRole = $root.userdomain.UserRole.fromObject(object.userRole);
|
|
6436
|
+
message.userRole = $root.userdomain.roles.UserRole.fromObject(object.userRole);
|
|
6300
6437
|
}
|
|
6301
6438
|
if (object.updatedAt != null)
|
|
6302
6439
|
if ($util.Long)
|
|
@@ -6335,7 +6472,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6335
6472
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6336
6473
|
object.hsId = message.hsId;
|
|
6337
6474
|
if (message.userRole != null && message.hasOwnProperty("userRole"))
|
|
6338
|
-
object.userRole = $root.userdomain.UserRole.toObject(message.userRole, options);
|
|
6475
|
+
object.userRole = $root.userdomain.roles.UserRole.toObject(message.userRole, options);
|
|
6339
6476
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
6340
6477
|
if (typeof message.updatedAt === "number")
|
|
6341
6478
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
@@ -6364,7 +6501,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6364
6501
|
* Properties of a UserDomainCreated.
|
|
6365
6502
|
* @exports IUserDomainCreated
|
|
6366
6503
|
* @interface IUserDomainCreated
|
|
6367
|
-
* @property {userdomain.IUser|null} [user] UserDomainCreated user
|
|
6504
|
+
* @property {userdomain.users.IUser|null} [user] UserDomainCreated user
|
|
6368
6505
|
* @property {number|Long|null} [createdAt] UserDomainCreated createdAt
|
|
6369
6506
|
*/
|
|
6370
6507
|
|
|
@@ -6385,7 +6522,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6385
6522
|
|
|
6386
6523
|
/**
|
|
6387
6524
|
* UserDomainCreated user.
|
|
6388
|
-
* @member {userdomain.IUser|null|undefined} user
|
|
6525
|
+
* @member {userdomain.users.IUser|null|undefined} user
|
|
6389
6526
|
* @memberof UserDomainCreated
|
|
6390
6527
|
* @instance
|
|
6391
6528
|
*/
|
|
@@ -6424,7 +6561,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6424
6561
|
if (!writer)
|
|
6425
6562
|
writer = $Writer.create();
|
|
6426
6563
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
6427
|
-
$root.userdomain.User.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6564
|
+
$root.userdomain.users.User.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6428
6565
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6429
6566
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.createdAt);
|
|
6430
6567
|
return writer;
|
|
@@ -6462,7 +6599,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6462
6599
|
var tag = reader.uint32();
|
|
6463
6600
|
switch (tag >>> 3) {
|
|
6464
6601
|
case 1:
|
|
6465
|
-
message.user = $root.userdomain.User.decode(reader, reader.uint32());
|
|
6602
|
+
message.user = $root.userdomain.users.User.decode(reader, reader.uint32());
|
|
6466
6603
|
break;
|
|
6467
6604
|
case 2:
|
|
6468
6605
|
message.createdAt = reader.uint64();
|
|
@@ -6503,7 +6640,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6503
6640
|
if (typeof message !== "object" || message === null)
|
|
6504
6641
|
return "object expected";
|
|
6505
6642
|
if (message.user != null && message.hasOwnProperty("user")) {
|
|
6506
|
-
var error = $root.userdomain.User.verify(message.user);
|
|
6643
|
+
var error = $root.userdomain.users.User.verify(message.user);
|
|
6507
6644
|
if (error)
|
|
6508
6645
|
return "user." + error;
|
|
6509
6646
|
}
|
|
@@ -6528,7 +6665,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6528
6665
|
if (object.user != null) {
|
|
6529
6666
|
if (typeof object.user !== "object")
|
|
6530
6667
|
throw TypeError(".UserDomainCreated.user: object expected");
|
|
6531
|
-
message.user = $root.userdomain.User.fromObject(object.user);
|
|
6668
|
+
message.user = $root.userdomain.users.User.fromObject(object.user);
|
|
6532
6669
|
}
|
|
6533
6670
|
if (object.createdAt != null)
|
|
6534
6671
|
if ($util.Long)
|
|
@@ -6564,7 +6701,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6564
6701
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
6565
6702
|
}
|
|
6566
6703
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
6567
|
-
object.user = $root.userdomain.User.toObject(message.user, options);
|
|
6704
|
+
object.user = $root.userdomain.users.User.toObject(message.user, options);
|
|
6568
6705
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6569
6706
|
if (typeof message.createdAt === "number")
|
|
6570
6707
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
@@ -7579,9 +7716,9 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7579
7716
|
* @interface IUserDomainLoggedIn
|
|
7580
7717
|
* @property {string|null} [hsId] UserDomainLoggedIn hsId
|
|
7581
7718
|
* @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
|
|
7719
|
+
* @property {userdomain.users.LoginStatus|null} [loginStatus] UserDomainLoggedIn loginStatus
|
|
7720
|
+
* @property {userdomain.users.Platform|null} [loginPlatform] UserDomainLoggedIn loginPlatform
|
|
7721
|
+
* @property {userdomain.users.ConnectionSource|null} [loginConnectionSource] UserDomainLoggedIn loginConnectionSource
|
|
7585
7722
|
*/
|
|
7586
7723
|
|
|
7587
7724
|
/**
|
|
@@ -7617,7 +7754,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7617
7754
|
|
|
7618
7755
|
/**
|
|
7619
7756
|
* UserDomainLoggedIn loginStatus.
|
|
7620
|
-
* @member {userdomain.LoginStatus} loginStatus
|
|
7757
|
+
* @member {userdomain.users.LoginStatus} loginStatus
|
|
7621
7758
|
* @memberof UserDomainLoggedIn
|
|
7622
7759
|
* @instance
|
|
7623
7760
|
*/
|
|
@@ -7625,7 +7762,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7625
7762
|
|
|
7626
7763
|
/**
|
|
7627
7764
|
* UserDomainLoggedIn loginPlatform.
|
|
7628
|
-
* @member {userdomain.Platform} loginPlatform
|
|
7765
|
+
* @member {userdomain.users.Platform} loginPlatform
|
|
7629
7766
|
* @memberof UserDomainLoggedIn
|
|
7630
7767
|
* @instance
|
|
7631
7768
|
*/
|
|
@@ -7633,7 +7770,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7633
7770
|
|
|
7634
7771
|
/**
|
|
7635
7772
|
* UserDomainLoggedIn loginConnectionSource.
|
|
7636
|
-
* @member {userdomain.ConnectionSource} loginConnectionSource
|
|
7773
|
+
* @member {userdomain.users.ConnectionSource} loginConnectionSource
|
|
7637
7774
|
* @memberof UserDomainLoggedIn
|
|
7638
7775
|
* @instance
|
|
7639
7776
|
*/
|
|
@@ -7918,11 +8055,11 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7918
8055
|
else
|
|
7919
8056
|
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
8057
|
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
7921
|
-
object.loginStatus = options.enums === String ? $root.userdomain.LoginStatus[message.loginStatus] : message.loginStatus;
|
|
8058
|
+
object.loginStatus = options.enums === String ? $root.userdomain.users.LoginStatus[message.loginStatus] : message.loginStatus;
|
|
7922
8059
|
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
7923
|
-
object.loginPlatform = options.enums === String ? $root.userdomain.Platform[message.loginPlatform] : message.loginPlatform;
|
|
8060
|
+
object.loginPlatform = options.enums === String ? $root.userdomain.users.Platform[message.loginPlatform] : message.loginPlatform;
|
|
7924
8061
|
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
7925
|
-
object.loginConnectionSource = options.enums === String ? $root.userdomain.ConnectionSource[message.loginConnectionSource] : message.loginConnectionSource;
|
|
8062
|
+
object.loginConnectionSource = options.enums === String ? $root.userdomain.users.ConnectionSource[message.loginConnectionSource] : message.loginConnectionSource;
|
|
7926
8063
|
return object;
|
|
7927
8064
|
};
|
|
7928
8065
|
|