@headspace/protos-events 1.92.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 +300 -267
- package/lib/index.js +902 -748
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2728,6 +2728,7 @@ $root.subscription = (function() {
|
|
|
2728
2728
|
* @property {number} SUBMEMTYPE_NONE=1 SUBMEMTYPE_NONE value
|
|
2729
2729
|
* @property {number} SUBMEMTYPE_B2B=2 SUBMEMTYPE_B2B value
|
|
2730
2730
|
* @property {number} SUBMEMTYPE_B2C=3 SUBMEMTYPE_B2C value
|
|
2731
|
+
* @property {number} SUBMEMTYPE_HEALTH_PARTNERSHIP=4 SUBMEMTYPE_HEALTH_PARTNERSHIP value
|
|
2731
2732
|
*/
|
|
2732
2733
|
subscription.SubscriptionMemberType = (function() {
|
|
2733
2734
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -2735,6 +2736,7 @@ $root.subscription = (function() {
|
|
|
2735
2736
|
values[valuesById[1] = "SUBMEMTYPE_NONE"] = 1;
|
|
2736
2737
|
values[valuesById[2] = "SUBMEMTYPE_B2B"] = 2;
|
|
2737
2738
|
values[valuesById[3] = "SUBMEMTYPE_B2C"] = 3;
|
|
2739
|
+
values[valuesById[4] = "SUBMEMTYPE_HEALTH_PARTNERSHIP"] = 4;
|
|
2738
2740
|
return values;
|
|
2739
2741
|
})();
|
|
2740
2742
|
|
|
@@ -5328,778 +5330,915 @@ $root.userdomain = (function() {
|
|
|
5328
5330
|
*/
|
|
5329
5331
|
var userdomain = {};
|
|
5330
5332
|
|
|
5331
|
-
userdomain.
|
|
5333
|
+
userdomain.roles = (function() {
|
|
5332
5334
|
|
|
5333
5335
|
/**
|
|
5334
|
-
*
|
|
5336
|
+
* Namespace roles.
|
|
5335
5337
|
* @memberof userdomain
|
|
5336
|
-
* @
|
|
5337
|
-
|
|
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
|
-
* Creates a new UserRole instance using the specified properties.
|
|
5366
|
-
* @function create
|
|
5367
|
-
* @memberof userdomain.UserRole
|
|
5368
|
-
* @static
|
|
5369
|
-
* @param {userdomain.IUserRole=} [properties] Properties to set
|
|
5370
|
-
* @returns {userdomain.UserRole} UserRole instance
|
|
5371
|
-
*/
|
|
5372
|
-
UserRole.create = function create(properties) {
|
|
5373
|
-
return new UserRole(properties);
|
|
5374
|
-
};
|
|
5375
|
-
|
|
5376
|
-
/**
|
|
5377
|
-
* Encodes the specified UserRole message. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
|
|
5378
|
-
* @function encode
|
|
5379
|
-
* @memberof userdomain.UserRole
|
|
5380
|
-
* @static
|
|
5381
|
-
* @param {userdomain.IUserRole} message UserRole message or plain object to encode
|
|
5382
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5383
|
-
* @returns {$protobuf.Writer} Writer
|
|
5384
|
-
*/
|
|
5385
|
-
UserRole.encode = function encode(message, writer) {
|
|
5386
|
-
if (!writer)
|
|
5387
|
-
writer = $Writer.create();
|
|
5388
|
-
if (message.roles != null && message.roles.length) {
|
|
5389
|
-
writer.uint32(/* id 1, wireType 2 =*/10).fork();
|
|
5390
|
-
for (var i = 0; i < message.roles.length; ++i)
|
|
5391
|
-
writer.int32(message.roles[i]);
|
|
5392
|
-
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]];
|
|
5393
5365
|
}
|
|
5394
|
-
return writer;
|
|
5395
|
-
};
|
|
5396
|
-
|
|
5397
|
-
/**
|
|
5398
|
-
* Encodes the specified UserRole message, length delimited. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
|
|
5399
|
-
* @function encodeDelimited
|
|
5400
|
-
* @memberof userdomain.UserRole
|
|
5401
|
-
* @static
|
|
5402
|
-
* @param {userdomain.IUserRole} message UserRole message or plain object to encode
|
|
5403
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5404
|
-
* @returns {$protobuf.Writer} Writer
|
|
5405
|
-
*/
|
|
5406
|
-
UserRole.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5407
|
-
return this.encode(message, writer).ldelim();
|
|
5408
|
-
};
|
|
5409
5366
|
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
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
|
|
5434
5447
|
message.roles.push(reader.int32());
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
break;
|
|
5448
|
+
break;
|
|
5449
|
+
default:
|
|
5450
|
+
reader.skipType(tag & 7);
|
|
5451
|
+
break;
|
|
5452
|
+
}
|
|
5441
5453
|
}
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
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
|
+
})();
|
|
5445
5640
|
|
|
5446
|
-
|
|
5447
|
-
* Decodes a UserRole message from the specified reader or buffer, length delimited.
|
|
5448
|
-
* @function decodeDelimited
|
|
5449
|
-
* @memberof userdomain.UserRole
|
|
5450
|
-
* @static
|
|
5451
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5452
|
-
* @returns {userdomain.UserRole} UserRole
|
|
5453
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5454
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5455
|
-
*/
|
|
5456
|
-
UserRole.decodeDelimited = function decodeDelimited(reader) {
|
|
5457
|
-
if (!(reader instanceof $Reader))
|
|
5458
|
-
reader = new $Reader(reader);
|
|
5459
|
-
return this.decode(reader, reader.uint32());
|
|
5460
|
-
};
|
|
5641
|
+
userdomain.users = (function() {
|
|
5461
5642
|
|
|
5462
5643
|
/**
|
|
5463
|
-
*
|
|
5464
|
-
* @
|
|
5465
|
-
* @
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
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) {
|
|
5481
5874
|
case 1:
|
|
5875
|
+
message.hsId = reader.string();
|
|
5876
|
+
break;
|
|
5482
5877
|
case 2:
|
|
5878
|
+
message.auth0Id = reader.string();
|
|
5879
|
+
break;
|
|
5483
5880
|
case 3:
|
|
5881
|
+
message.firstName = reader.string();
|
|
5882
|
+
break;
|
|
5484
5883
|
case 4:
|
|
5884
|
+
message.lastName = reader.string();
|
|
5885
|
+
break;
|
|
5485
5886
|
case 5:
|
|
5887
|
+
message.email = reader.string();
|
|
5888
|
+
break;
|
|
5486
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);
|
|
5487
5915
|
break;
|
|
5488
5916
|
}
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
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) {
|
|
5511
5971
|
default:
|
|
5512
|
-
|
|
5972
|
+
return "signupPlatform: enum value expected";
|
|
5513
5973
|
case 0:
|
|
5514
|
-
message.roles[i] = 0;
|
|
5515
|
-
break;
|
|
5516
|
-
case "ROLEADMIN":
|
|
5517
5974
|
case 1:
|
|
5518
|
-
message.roles[i] = 1;
|
|
5519
|
-
break;
|
|
5520
|
-
case "NORMALUSER":
|
|
5521
5975
|
case 2:
|
|
5522
|
-
message.roles[i] = 2;
|
|
5523
|
-
break;
|
|
5524
|
-
case "CONTENTADMIN":
|
|
5525
5976
|
case 3:
|
|
5526
|
-
message.roles[i] = 3;
|
|
5527
|
-
break;
|
|
5528
|
-
case "USERADMIN":
|
|
5529
5977
|
case 4:
|
|
5530
|
-
message.roles[i] = 4;
|
|
5531
|
-
break;
|
|
5532
|
-
case "CORPORATEADMIN":
|
|
5533
5978
|
case 5:
|
|
5534
|
-
message.roles[i] = 5;
|
|
5535
5979
|
break;
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
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:
|
|
5539
6002
|
break;
|
|
5540
6003
|
}
|
|
5541
|
-
|
|
5542
|
-
|
|
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
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5577
|
-
};
|
|
5578
|
-
|
|
5579
|
-
return UserRole;
|
|
5580
|
-
})();
|
|
5581
|
-
|
|
5582
|
-
/**
|
|
5583
|
-
* Role enum.
|
|
5584
|
-
* @name userdomain.Role
|
|
5585
|
-
* @enum {string}
|
|
5586
|
-
* @property {number} UNKNOWN_ROLE=0 UNKNOWN_ROLE value
|
|
5587
|
-
* @property {number} ROLEADMIN=1 ROLEADMIN value
|
|
5588
|
-
* @property {number} NORMALUSER=2 NORMALUSER value
|
|
5589
|
-
* @property {number} CONTENTADMIN=3 CONTENTADMIN value
|
|
5590
|
-
* @property {number} USERADMIN=4 USERADMIN value
|
|
5591
|
-
* @property {number} CORPORATEADMIN=5 CORPORATEADMIN value
|
|
5592
|
-
* @property {number} SPECIALADMIN=6 SPECIALADMIN value
|
|
5593
|
-
*/
|
|
5594
|
-
userdomain.Role = (function() {
|
|
5595
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
5596
|
-
values[valuesById[0] = "UNKNOWN_ROLE"] = 0;
|
|
5597
|
-
values[valuesById[1] = "ROLEADMIN"] = 1;
|
|
5598
|
-
values[valuesById[2] = "NORMALUSER"] = 2;
|
|
5599
|
-
values[valuesById[3] = "CONTENTADMIN"] = 3;
|
|
5600
|
-
values[valuesById[4] = "USERADMIN"] = 4;
|
|
5601
|
-
values[valuesById[5] = "CORPORATEADMIN"] = 5;
|
|
5602
|
-
values[valuesById[6] = "SPECIALADMIN"] = 6;
|
|
5603
|
-
return values;
|
|
5604
|
-
})();
|
|
5605
|
-
|
|
5606
|
-
userdomain.User = (function() {
|
|
5607
|
-
|
|
5608
|
-
/**
|
|
5609
|
-
* Properties of a User.
|
|
5610
|
-
* @memberof userdomain
|
|
5611
|
-
* @interface IUser
|
|
5612
|
-
* @property {string|null} [hsId] User hsId
|
|
5613
|
-
* @property {string|null} [auth0Id] User auth0Id
|
|
5614
|
-
* @property {string|null} [firstName] User firstName
|
|
5615
|
-
* @property {string|null} [lastName] User lastName
|
|
5616
|
-
* @property {string|null} [email] User email
|
|
5617
|
-
* @property {string|null} [countryCode] User countryCode
|
|
5618
|
-
* @property {string|null} [stateCode] User stateCode
|
|
5619
|
-
* @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
|
|
5620
|
-
* @property {string|null} [facebookId] User facebookId
|
|
5621
|
-
* @property {string|null} [appleId] User appleId
|
|
5622
|
-
* @property {string|null} [spotifyId] User spotifyId
|
|
5623
|
-
*/
|
|
5624
|
-
|
|
5625
|
-
/**
|
|
5626
|
-
* Constructs a new User.
|
|
5627
|
-
* @memberof userdomain
|
|
5628
|
-
* @classdesc Represents a User.
|
|
5629
|
-
* @implements IUser
|
|
5630
|
-
* @constructor
|
|
5631
|
-
* @param {userdomain.IUser=} [properties] Properties to set
|
|
5632
|
-
*/
|
|
5633
|
-
function User(properties) {
|
|
5634
|
-
if (properties)
|
|
5635
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5636
|
-
if (properties[keys[i]] != null)
|
|
5637
|
-
this[keys[i]] = properties[keys[i]];
|
|
5638
|
-
}
|
|
5639
|
-
|
|
5640
|
-
/**
|
|
5641
|
-
* User hsId.
|
|
5642
|
-
* @member {string} hsId
|
|
5643
|
-
* @memberof userdomain.User
|
|
5644
|
-
* @instance
|
|
5645
|
-
*/
|
|
5646
|
-
User.prototype.hsId = "";
|
|
5647
|
-
|
|
5648
|
-
/**
|
|
5649
|
-
* User auth0Id.
|
|
5650
|
-
* @member {string} auth0Id
|
|
5651
|
-
* @memberof userdomain.User
|
|
5652
|
-
* @instance
|
|
5653
|
-
*/
|
|
5654
|
-
User.prototype.auth0Id = "";
|
|
5655
|
-
|
|
5656
|
-
/**
|
|
5657
|
-
* User firstName.
|
|
5658
|
-
* @member {string} firstName
|
|
5659
|
-
* @memberof userdomain.User
|
|
5660
|
-
* @instance
|
|
5661
|
-
*/
|
|
5662
|
-
User.prototype.firstName = "";
|
|
5663
|
-
|
|
5664
|
-
/**
|
|
5665
|
-
* User lastName.
|
|
5666
|
-
* @member {string} lastName
|
|
5667
|
-
* @memberof userdomain.User
|
|
5668
|
-
* @instance
|
|
5669
|
-
*/
|
|
5670
|
-
User.prototype.lastName = "";
|
|
5671
|
-
|
|
5672
|
-
/**
|
|
5673
|
-
* User email.
|
|
5674
|
-
* @member {string} email
|
|
5675
|
-
* @memberof userdomain.User
|
|
5676
|
-
* @instance
|
|
5677
|
-
*/
|
|
5678
|
-
User.prototype.email = "";
|
|
5679
|
-
|
|
5680
|
-
/**
|
|
5681
|
-
* User countryCode.
|
|
5682
|
-
* @member {string} countryCode
|
|
5683
|
-
* @memberof userdomain.User
|
|
5684
|
-
* @instance
|
|
5685
|
-
*/
|
|
5686
|
-
User.prototype.countryCode = "";
|
|
5687
|
-
|
|
5688
|
-
/**
|
|
5689
|
-
* User stateCode.
|
|
5690
|
-
* @member {string} stateCode
|
|
5691
|
-
* @memberof userdomain.User
|
|
5692
|
-
* @instance
|
|
5693
|
-
*/
|
|
5694
|
-
User.prototype.stateCode = "";
|
|
5695
|
-
|
|
5696
|
-
/**
|
|
5697
|
-
* User signupPlatform.
|
|
5698
|
-
* @member {userdomain.Platform} signupPlatform
|
|
5699
|
-
* @memberof userdomain.User
|
|
5700
|
-
* @instance
|
|
5701
|
-
*/
|
|
5702
|
-
User.prototype.signupPlatform = 0;
|
|
5703
|
-
|
|
5704
|
-
/**
|
|
5705
|
-
* User facebookId.
|
|
5706
|
-
* @member {string} facebookId
|
|
5707
|
-
* @memberof userdomain.User
|
|
5708
|
-
* @instance
|
|
5709
|
-
*/
|
|
5710
|
-
User.prototype.facebookId = "";
|
|
5711
|
-
|
|
5712
|
-
/**
|
|
5713
|
-
* User appleId.
|
|
5714
|
-
* @member {string} appleId
|
|
5715
|
-
* @memberof userdomain.User
|
|
5716
|
-
* @instance
|
|
5717
|
-
*/
|
|
5718
|
-
User.prototype.appleId = "";
|
|
5719
|
-
|
|
5720
|
-
/**
|
|
5721
|
-
* User spotifyId.
|
|
5722
|
-
* @member {string} spotifyId
|
|
5723
|
-
* @memberof userdomain.User
|
|
5724
|
-
* @instance
|
|
5725
|
-
*/
|
|
5726
|
-
User.prototype.spotifyId = "";
|
|
5727
|
-
|
|
5728
|
-
/**
|
|
5729
|
-
* Creates a new User instance using the specified properties.
|
|
5730
|
-
* @function create
|
|
5731
|
-
* @memberof userdomain.User
|
|
5732
|
-
* @static
|
|
5733
|
-
* @param {userdomain.IUser=} [properties] Properties to set
|
|
5734
|
-
* @returns {userdomain.User} User instance
|
|
5735
|
-
*/
|
|
5736
|
-
User.create = function create(properties) {
|
|
5737
|
-
return new User(properties);
|
|
5738
|
-
};
|
|
5739
|
-
|
|
5740
|
-
/**
|
|
5741
|
-
* Encodes the specified User message. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
5742
|
-
* @function encode
|
|
5743
|
-
* @memberof userdomain.User
|
|
5744
|
-
* @static
|
|
5745
|
-
* @param {userdomain.IUser} message User message or plain object to encode
|
|
5746
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5747
|
-
* @returns {$protobuf.Writer} Writer
|
|
5748
|
-
*/
|
|
5749
|
-
User.encode = function encode(message, writer) {
|
|
5750
|
-
if (!writer)
|
|
5751
|
-
writer = $Writer.create();
|
|
5752
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5753
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
5754
|
-
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
5755
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.auth0Id);
|
|
5756
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
5757
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.firstName);
|
|
5758
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
5759
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
|
|
5760
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
5761
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.email);
|
|
5762
|
-
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
5763
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.countryCode);
|
|
5764
|
-
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
5765
|
-
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
5766
|
-
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5767
|
-
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
5768
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5769
|
-
writer.uint32(/* id 9, wireType 2 =*/74).string(message.facebookId);
|
|
5770
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5771
|
-
writer.uint32(/* id 10, wireType 2 =*/82).string(message.appleId);
|
|
5772
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5773
|
-
writer.uint32(/* id 11, wireType 2 =*/90).string(message.spotifyId);
|
|
5774
|
-
return writer;
|
|
5775
|
-
};
|
|
5776
|
-
|
|
5777
|
-
/**
|
|
5778
|
-
* Encodes the specified User message, length delimited. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
5779
|
-
* @function encodeDelimited
|
|
5780
|
-
* @memberof userdomain.User
|
|
5781
|
-
* @static
|
|
5782
|
-
* @param {userdomain.IUser} message User message or plain object to encode
|
|
5783
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5784
|
-
* @returns {$protobuf.Writer} Writer
|
|
5785
|
-
*/
|
|
5786
|
-
User.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5787
|
-
return this.encode(message, writer).ldelim();
|
|
5788
|
-
};
|
|
5789
|
-
|
|
5790
|
-
/**
|
|
5791
|
-
* Decodes a User message from the specified reader or buffer.
|
|
5792
|
-
* @function decode
|
|
5793
|
-
* @memberof userdomain.User
|
|
5794
|
-
* @static
|
|
5795
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5796
|
-
* @param {number} [length] Message length if known beforehand
|
|
5797
|
-
* @returns {userdomain.User} User
|
|
5798
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5799
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5800
|
-
*/
|
|
5801
|
-
User.decode = function decode(reader, length) {
|
|
5802
|
-
if (!(reader instanceof $Reader))
|
|
5803
|
-
reader = $Reader.create(reader);
|
|
5804
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.userdomain.User();
|
|
5805
|
-
while (reader.pos < end) {
|
|
5806
|
-
var tag = reader.uint32();
|
|
5807
|
-
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":
|
|
5808
6039
|
case 1:
|
|
5809
|
-
message.
|
|
6040
|
+
message.signupPlatform = 1;
|
|
5810
6041
|
break;
|
|
6042
|
+
case "IOS":
|
|
5811
6043
|
case 2:
|
|
5812
|
-
message.
|
|
6044
|
+
message.signupPlatform = 2;
|
|
5813
6045
|
break;
|
|
6046
|
+
case "ANDROID":
|
|
5814
6047
|
case 3:
|
|
5815
|
-
message.
|
|
6048
|
+
message.signupPlatform = 3;
|
|
5816
6049
|
break;
|
|
6050
|
+
case "ALEXA":
|
|
5817
6051
|
case 4:
|
|
5818
|
-
message.
|
|
6052
|
+
message.signupPlatform = 4;
|
|
5819
6053
|
break;
|
|
6054
|
+
case "GOOGLE_ASSISTANT":
|
|
5820
6055
|
case 5:
|
|
5821
|
-
message.
|
|
5822
|
-
break;
|
|
5823
|
-
case 6:
|
|
5824
|
-
message.countryCode = reader.string();
|
|
5825
|
-
break;
|
|
5826
|
-
case 7:
|
|
5827
|
-
message.stateCode = reader.string();
|
|
5828
|
-
break;
|
|
5829
|
-
case 8:
|
|
5830
|
-
message.signupPlatform = reader.int32();
|
|
5831
|
-
break;
|
|
5832
|
-
case 9:
|
|
5833
|
-
message.facebookId = reader.string();
|
|
5834
|
-
break;
|
|
5835
|
-
case 10:
|
|
5836
|
-
message.appleId = reader.string();
|
|
5837
|
-
break;
|
|
5838
|
-
case 11:
|
|
5839
|
-
message.spotifyId = reader.string();
|
|
5840
|
-
break;
|
|
5841
|
-
default:
|
|
5842
|
-
reader.skipType(tag & 7);
|
|
6056
|
+
message.signupPlatform = 5;
|
|
5843
6057
|
break;
|
|
5844
6058
|
}
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
* @returns {userdomain.User} User
|
|
5856
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5857
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5858
|
-
*/
|
|
5859
|
-
User.decodeDelimited = function decodeDelimited(reader) {
|
|
5860
|
-
if (!(reader instanceof $Reader))
|
|
5861
|
-
reader = new $Reader(reader);
|
|
5862
|
-
return this.decode(reader, reader.uint32());
|
|
5863
|
-
};
|
|
5864
|
-
|
|
5865
|
-
/**
|
|
5866
|
-
* Verifies a User message.
|
|
5867
|
-
* @function verify
|
|
5868
|
-
* @memberof userdomain.User
|
|
5869
|
-
* @static
|
|
5870
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
5871
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5872
|
-
*/
|
|
5873
|
-
User.verify = function verify(message) {
|
|
5874
|
-
if (typeof message !== "object" || message === null)
|
|
5875
|
-
return "object expected";
|
|
5876
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5877
|
-
if (!$util.isString(message.hsId))
|
|
5878
|
-
return "hsId: string expected";
|
|
5879
|
-
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
5880
|
-
if (!$util.isString(message.auth0Id))
|
|
5881
|
-
return "auth0Id: string expected";
|
|
5882
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
5883
|
-
if (!$util.isString(message.firstName))
|
|
5884
|
-
return "firstName: string expected";
|
|
5885
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
5886
|
-
if (!$util.isString(message.lastName))
|
|
5887
|
-
return "lastName: string expected";
|
|
5888
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
5889
|
-
if (!$util.isString(message.email))
|
|
5890
|
-
return "email: string expected";
|
|
5891
|
-
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
5892
|
-
if (!$util.isString(message.countryCode))
|
|
5893
|
-
return "countryCode: string expected";
|
|
5894
|
-
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
5895
|
-
if (!$util.isString(message.stateCode))
|
|
5896
|
-
return "stateCode: string expected";
|
|
5897
|
-
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5898
|
-
switch (message.signupPlatform) {
|
|
5899
|
-
default:
|
|
5900
|
-
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":
|
|
5901
6069
|
case 0:
|
|
6070
|
+
message.userType = 0;
|
|
6071
|
+
break;
|
|
6072
|
+
case "CORE_USER":
|
|
5902
6073
|
case 1:
|
|
6074
|
+
message.userType = 1;
|
|
6075
|
+
break;
|
|
6076
|
+
case "HEALTH_ADMIN":
|
|
5903
6077
|
case 2:
|
|
6078
|
+
message.userType = 2;
|
|
6079
|
+
break;
|
|
6080
|
+
case "HEALTH_COACH":
|
|
5904
6081
|
case 3:
|
|
6082
|
+
message.userType = 3;
|
|
6083
|
+
break;
|
|
6084
|
+
case "HEALTH_USER":
|
|
5905
6085
|
case 4:
|
|
5906
|
-
|
|
6086
|
+
message.userType = 4;
|
|
5907
6087
|
break;
|
|
5908
6088
|
}
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
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;
|
|
5931
6146
|
return object;
|
|
5932
|
-
|
|
5933
|
-
|
|
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
|
-
object.appleId = message.appleId;
|
|
6028
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
6029
|
-
object.spotifyId = message.spotifyId;
|
|
6030
|
-
return object;
|
|
6031
|
-
};
|
|
6032
|
-
|
|
6033
|
-
/**
|
|
6034
|
-
* Converts this User to JSON.
|
|
6035
|
-
* @function toJSON
|
|
6036
|
-
* @memberof userdomain.User
|
|
6037
|
-
* @instance
|
|
6038
|
-
* @returns {Object.<string,*>} JSON object
|
|
6039
|
-
*/
|
|
6040
|
-
User.prototype.toJSON = function toJSON() {
|
|
6041
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6042
|
-
};
|
|
6043
|
-
|
|
6044
|
-
return User;
|
|
6045
|
-
})();
|
|
6046
|
-
|
|
6047
|
-
/**
|
|
6048
|
-
* Platform enum.
|
|
6049
|
-
* @name userdomain.Platform
|
|
6050
|
-
* @enum {string}
|
|
6051
|
-
* @property {number} UNKNOWN_PLATFORM=0 UNKNOWN_PLATFORM value
|
|
6052
|
-
* @property {number} DESKTOP=1 DESKTOP value
|
|
6053
|
-
* @property {number} IOS=2 IOS value
|
|
6054
|
-
* @property {number} ANDROID=3 ANDROID value
|
|
6055
|
-
* @property {number} ALEXA=4 ALEXA value
|
|
6056
|
-
* @property {number} GOOGLE_ASSISTANT=5 GOOGLE_ASSISTANT value
|
|
6057
|
-
*/
|
|
6058
|
-
userdomain.Platform = (function() {
|
|
6059
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
6060
|
-
values[valuesById[0] = "UNKNOWN_PLATFORM"] = 0;
|
|
6061
|
-
values[valuesById[1] = "DESKTOP"] = 1;
|
|
6062
|
-
values[valuesById[2] = "IOS"] = 2;
|
|
6063
|
-
values[valuesById[3] = "ANDROID"] = 3;
|
|
6064
|
-
values[valuesById[4] = "ALEXA"] = 4;
|
|
6065
|
-
values[valuesById[5] = "GOOGLE_ASSISTANT"] = 5;
|
|
6066
|
-
return values;
|
|
6067
|
-
})();
|
|
6068
|
-
|
|
6069
|
-
/**
|
|
6070
|
-
* LoginStatus enum.
|
|
6071
|
-
* @name userdomain.LoginStatus
|
|
6072
|
-
* @enum {string}
|
|
6073
|
-
* @property {number} LOGIN_UNKNOWN=0 LOGIN_UNKNOWN value
|
|
6074
|
-
* @property {number} LOGIN_SUCCESS=1 LOGIN_SUCCESS value
|
|
6075
|
-
* @property {number} LOGIN_FAIL=2 LOGIN_FAIL value
|
|
6076
|
-
*/
|
|
6077
|
-
userdomain.LoginStatus = (function() {
|
|
6078
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
6079
|
-
values[valuesById[0] = "LOGIN_UNKNOWN"] = 0;
|
|
6080
|
-
values[valuesById[1] = "LOGIN_SUCCESS"] = 1;
|
|
6081
|
-
values[valuesById[2] = "LOGIN_FAIL"] = 2;
|
|
6082
|
-
return values;
|
|
6083
|
-
})();
|
|
6084
|
-
|
|
6085
|
-
/**
|
|
6086
|
-
* ConnectionSource enum.
|
|
6087
|
-
* @name userdomain.ConnectionSource
|
|
6088
|
-
* @enum {string}
|
|
6089
|
-
* @property {number} CONNSRC_UNKNOWN=0 CONNSRC_UNKNOWN value
|
|
6090
|
-
* @property {number} CONNSRC_EMAIL=1 CONNSRC_EMAIL value
|
|
6091
|
-
* @property {number} CONNSRC_FACEBOOK=2 CONNSRC_FACEBOOK value
|
|
6092
|
-
* @property {number} CONNSRC_SPOTIFY=3 CONNSRC_SPOTIFY value
|
|
6093
|
-
* @property {number} CONNSRC_APPLE=4 CONNSRC_APPLE value
|
|
6094
|
-
*/
|
|
6095
|
-
userdomain.ConnectionSource = (function() {
|
|
6096
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
6097
|
-
values[valuesById[0] = "CONNSRC_UNKNOWN"] = 0;
|
|
6098
|
-
values[valuesById[1] = "CONNSRC_EMAIL"] = 1;
|
|
6099
|
-
values[valuesById[2] = "CONNSRC_FACEBOOK"] = 2;
|
|
6100
|
-
values[valuesById[3] = "CONNSRC_SPOTIFY"] = 3;
|
|
6101
|
-
values[valuesById[4] = "CONNSRC_APPLE"] = 4;
|
|
6102
|
-
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;
|
|
6103
6242
|
})();
|
|
6104
6243
|
|
|
6105
6244
|
return userdomain;
|
|
@@ -6112,7 +6251,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6112
6251
|
* @exports IUserRoleUpdated
|
|
6113
6252
|
* @interface IUserRoleUpdated
|
|
6114
6253
|
* @property {string|null} [hsId] UserRoleUpdated hsId
|
|
6115
|
-
* @property {userdomain.IUserRole|null} [userRole] UserRoleUpdated userRole
|
|
6254
|
+
* @property {userdomain.roles.IUserRole|null} [userRole] UserRoleUpdated userRole
|
|
6116
6255
|
* @property {number|Long|null} [updatedAt] UserRoleUpdated updatedAt
|
|
6117
6256
|
*/
|
|
6118
6257
|
|
|
@@ -6141,7 +6280,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6141
6280
|
|
|
6142
6281
|
/**
|
|
6143
6282
|
* UserRoleUpdated userRole.
|
|
6144
|
-
* @member {userdomain.IUserRole|null|undefined} userRole
|
|
6283
|
+
* @member {userdomain.roles.IUserRole|null|undefined} userRole
|
|
6145
6284
|
* @memberof UserRoleUpdated
|
|
6146
6285
|
* @instance
|
|
6147
6286
|
*/
|
|
@@ -6182,7 +6321,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6182
6321
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6183
6322
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
6184
6323
|
if (message.userRole != null && message.hasOwnProperty("userRole"))
|
|
6185
|
-
$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();
|
|
6186
6325
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
6187
6326
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
6188
6327
|
return writer;
|
|
@@ -6223,7 +6362,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6223
6362
|
message.hsId = reader.string();
|
|
6224
6363
|
break;
|
|
6225
6364
|
case 2:
|
|
6226
|
-
message.userRole = $root.userdomain.UserRole.decode(reader, reader.uint32());
|
|
6365
|
+
message.userRole = $root.userdomain.roles.UserRole.decode(reader, reader.uint32());
|
|
6227
6366
|
break;
|
|
6228
6367
|
case 3:
|
|
6229
6368
|
message.updatedAt = reader.uint64();
|
|
@@ -6267,7 +6406,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6267
6406
|
if (!$util.isString(message.hsId))
|
|
6268
6407
|
return "hsId: string expected";
|
|
6269
6408
|
if (message.userRole != null && message.hasOwnProperty("userRole")) {
|
|
6270
|
-
var error = $root.userdomain.UserRole.verify(message.userRole);
|
|
6409
|
+
var error = $root.userdomain.roles.UserRole.verify(message.userRole);
|
|
6271
6410
|
if (error)
|
|
6272
6411
|
return "userRole." + error;
|
|
6273
6412
|
}
|
|
@@ -6294,7 +6433,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6294
6433
|
if (object.userRole != null) {
|
|
6295
6434
|
if (typeof object.userRole !== "object")
|
|
6296
6435
|
throw TypeError(".UserRoleUpdated.userRole: object expected");
|
|
6297
|
-
message.userRole = $root.userdomain.UserRole.fromObject(object.userRole);
|
|
6436
|
+
message.userRole = $root.userdomain.roles.UserRole.fromObject(object.userRole);
|
|
6298
6437
|
}
|
|
6299
6438
|
if (object.updatedAt != null)
|
|
6300
6439
|
if ($util.Long)
|
|
@@ -6333,7 +6472,7 @@ $root.UserRoleUpdated = (function() {
|
|
|
6333
6472
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
6334
6473
|
object.hsId = message.hsId;
|
|
6335
6474
|
if (message.userRole != null && message.hasOwnProperty("userRole"))
|
|
6336
|
-
object.userRole = $root.userdomain.UserRole.toObject(message.userRole, options);
|
|
6475
|
+
object.userRole = $root.userdomain.roles.UserRole.toObject(message.userRole, options);
|
|
6337
6476
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
6338
6477
|
if (typeof message.updatedAt === "number")
|
|
6339
6478
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
@@ -6362,7 +6501,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6362
6501
|
* Properties of a UserDomainCreated.
|
|
6363
6502
|
* @exports IUserDomainCreated
|
|
6364
6503
|
* @interface IUserDomainCreated
|
|
6365
|
-
* @property {userdomain.IUser|null} [user] UserDomainCreated user
|
|
6504
|
+
* @property {userdomain.users.IUser|null} [user] UserDomainCreated user
|
|
6366
6505
|
* @property {number|Long|null} [createdAt] UserDomainCreated createdAt
|
|
6367
6506
|
*/
|
|
6368
6507
|
|
|
@@ -6383,7 +6522,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6383
6522
|
|
|
6384
6523
|
/**
|
|
6385
6524
|
* UserDomainCreated user.
|
|
6386
|
-
* @member {userdomain.IUser|null|undefined} user
|
|
6525
|
+
* @member {userdomain.users.IUser|null|undefined} user
|
|
6387
6526
|
* @memberof UserDomainCreated
|
|
6388
6527
|
* @instance
|
|
6389
6528
|
*/
|
|
@@ -6422,7 +6561,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6422
6561
|
if (!writer)
|
|
6423
6562
|
writer = $Writer.create();
|
|
6424
6563
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
6425
|
-
$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();
|
|
6426
6565
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6427
6566
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.createdAt);
|
|
6428
6567
|
return writer;
|
|
@@ -6460,7 +6599,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6460
6599
|
var tag = reader.uint32();
|
|
6461
6600
|
switch (tag >>> 3) {
|
|
6462
6601
|
case 1:
|
|
6463
|
-
message.user = $root.userdomain.User.decode(reader, reader.uint32());
|
|
6602
|
+
message.user = $root.userdomain.users.User.decode(reader, reader.uint32());
|
|
6464
6603
|
break;
|
|
6465
6604
|
case 2:
|
|
6466
6605
|
message.createdAt = reader.uint64();
|
|
@@ -6501,7 +6640,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6501
6640
|
if (typeof message !== "object" || message === null)
|
|
6502
6641
|
return "object expected";
|
|
6503
6642
|
if (message.user != null && message.hasOwnProperty("user")) {
|
|
6504
|
-
var error = $root.userdomain.User.verify(message.user);
|
|
6643
|
+
var error = $root.userdomain.users.User.verify(message.user);
|
|
6505
6644
|
if (error)
|
|
6506
6645
|
return "user." + error;
|
|
6507
6646
|
}
|
|
@@ -6526,7 +6665,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6526
6665
|
if (object.user != null) {
|
|
6527
6666
|
if (typeof object.user !== "object")
|
|
6528
6667
|
throw TypeError(".UserDomainCreated.user: object expected");
|
|
6529
|
-
message.user = $root.userdomain.User.fromObject(object.user);
|
|
6668
|
+
message.user = $root.userdomain.users.User.fromObject(object.user);
|
|
6530
6669
|
}
|
|
6531
6670
|
if (object.createdAt != null)
|
|
6532
6671
|
if ($util.Long)
|
|
@@ -6562,7 +6701,7 @@ $root.UserDomainCreated = (function() {
|
|
|
6562
6701
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
6563
6702
|
}
|
|
6564
6703
|
if (message.user != null && message.hasOwnProperty("user"))
|
|
6565
|
-
object.user = $root.userdomain.User.toObject(message.user, options);
|
|
6704
|
+
object.user = $root.userdomain.users.User.toObject(message.user, options);
|
|
6566
6705
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
6567
6706
|
if (typeof message.createdAt === "number")
|
|
6568
6707
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
@@ -7577,9 +7716,9 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7577
7716
|
* @interface IUserDomainLoggedIn
|
|
7578
7717
|
* @property {string|null} [hsId] UserDomainLoggedIn hsId
|
|
7579
7718
|
* @property {number|Long|null} [loginTimestamp] UserDomainLoggedIn loginTimestamp
|
|
7580
|
-
* @property {userdomain.LoginStatus|null} [loginStatus] UserDomainLoggedIn loginStatus
|
|
7581
|
-
* @property {userdomain.Platform|null} [loginPlatform] UserDomainLoggedIn loginPlatform
|
|
7582
|
-
* @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
|
|
7583
7722
|
*/
|
|
7584
7723
|
|
|
7585
7724
|
/**
|
|
@@ -7615,7 +7754,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7615
7754
|
|
|
7616
7755
|
/**
|
|
7617
7756
|
* UserDomainLoggedIn loginStatus.
|
|
7618
|
-
* @member {userdomain.LoginStatus} loginStatus
|
|
7757
|
+
* @member {userdomain.users.LoginStatus} loginStatus
|
|
7619
7758
|
* @memberof UserDomainLoggedIn
|
|
7620
7759
|
* @instance
|
|
7621
7760
|
*/
|
|
@@ -7623,7 +7762,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7623
7762
|
|
|
7624
7763
|
/**
|
|
7625
7764
|
* UserDomainLoggedIn loginPlatform.
|
|
7626
|
-
* @member {userdomain.Platform} loginPlatform
|
|
7765
|
+
* @member {userdomain.users.Platform} loginPlatform
|
|
7627
7766
|
* @memberof UserDomainLoggedIn
|
|
7628
7767
|
* @instance
|
|
7629
7768
|
*/
|
|
@@ -7631,7 +7770,7 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7631
7770
|
|
|
7632
7771
|
/**
|
|
7633
7772
|
* UserDomainLoggedIn loginConnectionSource.
|
|
7634
|
-
* @member {userdomain.ConnectionSource} loginConnectionSource
|
|
7773
|
+
* @member {userdomain.users.ConnectionSource} loginConnectionSource
|
|
7635
7774
|
* @memberof UserDomainLoggedIn
|
|
7636
7775
|
* @instance
|
|
7637
7776
|
*/
|
|
@@ -7916,11 +8055,11 @@ $root.UserDomainLoggedIn = (function() {
|
|
|
7916
8055
|
else
|
|
7917
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;
|
|
7918
8057
|
if (message.loginStatus != null && message.hasOwnProperty("loginStatus"))
|
|
7919
|
-
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;
|
|
7920
8059
|
if (message.loginPlatform != null && message.hasOwnProperty("loginPlatform"))
|
|
7921
|
-
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;
|
|
7922
8061
|
if (message.loginConnectionSource != null && message.hasOwnProperty("loginConnectionSource"))
|
|
7923
|
-
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;
|
|
7924
8063
|
return object;
|
|
7925
8064
|
};
|
|
7926
8065
|
|
|
@@ -25970,6 +26109,7 @@ $root.SubscriptionMemberSubscribed = (function() {
|
|
|
25970
26109
|
case 1:
|
|
25971
26110
|
case 2:
|
|
25972
26111
|
case 3:
|
|
26112
|
+
case 4:
|
|
25973
26113
|
break;
|
|
25974
26114
|
}
|
|
25975
26115
|
if (message.subscriptionMembership != null && message.hasOwnProperty("subscriptionMembership"))
|
|
@@ -26045,6 +26185,10 @@ $root.SubscriptionMemberSubscribed = (function() {
|
|
|
26045
26185
|
case 3:
|
|
26046
26186
|
message.memberType = 3;
|
|
26047
26187
|
break;
|
|
26188
|
+
case "SUBMEMTYPE_HEALTH_PARTNERSHIP":
|
|
26189
|
+
case 4:
|
|
26190
|
+
message.memberType = 4;
|
|
26191
|
+
break;
|
|
26048
26192
|
}
|
|
26049
26193
|
switch (object.subscriptionMembership) {
|
|
26050
26194
|
case "PRIMARY":
|
|
@@ -26324,6 +26468,7 @@ $root.SubscriptionMemberRenewed = (function() {
|
|
|
26324
26468
|
case 1:
|
|
26325
26469
|
case 2:
|
|
26326
26470
|
case 3:
|
|
26471
|
+
case 4:
|
|
26327
26472
|
break;
|
|
26328
26473
|
}
|
|
26329
26474
|
if (message.subscriptionMembership != null && message.hasOwnProperty("subscriptionMembership"))
|
|
@@ -26399,6 +26544,10 @@ $root.SubscriptionMemberRenewed = (function() {
|
|
|
26399
26544
|
case 3:
|
|
26400
26545
|
message.memberType = 3;
|
|
26401
26546
|
break;
|
|
26547
|
+
case "SUBMEMTYPE_HEALTH_PARTNERSHIP":
|
|
26548
|
+
case 4:
|
|
26549
|
+
message.memberType = 4;
|
|
26550
|
+
break;
|
|
26402
26551
|
}
|
|
26403
26552
|
switch (object.subscriptionMembership) {
|
|
26404
26553
|
case "PRIMARY":
|
|
@@ -26678,6 +26827,7 @@ $root.SubscriptionMemberChurned = (function() {
|
|
|
26678
26827
|
case 1:
|
|
26679
26828
|
case 2:
|
|
26680
26829
|
case 3:
|
|
26830
|
+
case 4:
|
|
26681
26831
|
break;
|
|
26682
26832
|
}
|
|
26683
26833
|
if (message.subscriptionMembership != null && message.hasOwnProperty("subscriptionMembership"))
|
|
@@ -26753,6 +26903,10 @@ $root.SubscriptionMemberChurned = (function() {
|
|
|
26753
26903
|
case 3:
|
|
26754
26904
|
message.memberType = 3;
|
|
26755
26905
|
break;
|
|
26906
|
+
case "SUBMEMTYPE_HEALTH_PARTNERSHIP":
|
|
26907
|
+
case 4:
|
|
26908
|
+
message.memberType = 4;
|
|
26909
|
+
break;
|
|
26756
26910
|
}
|
|
26757
26911
|
switch (object.subscriptionMembership) {
|
|
26758
26912
|
case "PRIMARY":
|