@headspace/protos-events 1.604.0 → 1.606.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 +122 -1
- package/lib/index.js +312 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1231,6 +1231,12 @@ export namespace clinical {
|
|
|
1231
1231
|
|
|
1232
1232
|
/** Clinician email */
|
|
1233
1233
|
email?: (string|null);
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* ID of this clinician in Okta
|
|
1237
|
+
* TODO: Only two values expected here, one in Okta and one in web
|
|
1238
|
+
*/
|
|
1239
|
+
oktaIds?: (clinical.IAppUser[]|null);
|
|
1234
1240
|
}
|
|
1235
1241
|
|
|
1236
1242
|
/** Represents a Clinician. */
|
|
@@ -1299,6 +1305,12 @@ export namespace clinical {
|
|
|
1299
1305
|
/** Clinician email. */
|
|
1300
1306
|
public email: string;
|
|
1301
1307
|
|
|
1308
|
+
/**
|
|
1309
|
+
* ID of this clinician in Okta
|
|
1310
|
+
* TODO: Only two values expected here, one in Okta and one in web
|
|
1311
|
+
*/
|
|
1312
|
+
public oktaIds: clinical.IAppUser[];
|
|
1313
|
+
|
|
1302
1314
|
/**
|
|
1303
1315
|
* Creates a new Clinician instance using the specified properties.
|
|
1304
1316
|
* @param [properties] Properties to set
|
|
@@ -1421,6 +1433,102 @@ export namespace clinical {
|
|
|
1421
1433
|
NON_STANDARD_PROVIDER_ROLE_TEST = 6
|
|
1422
1434
|
}
|
|
1423
1435
|
|
|
1436
|
+
/** Properties of an AppUser. */
|
|
1437
|
+
interface IAppUser {
|
|
1438
|
+
|
|
1439
|
+
/** AppUser id */
|
|
1440
|
+
id?: (string|null);
|
|
1441
|
+
|
|
1442
|
+
/** AppUser appId */
|
|
1443
|
+
appId?: (string|null);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/** Represents an AppUser. */
|
|
1447
|
+
class AppUser implements IAppUser {
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Constructs a new AppUser.
|
|
1451
|
+
* @param [properties] Properties to set
|
|
1452
|
+
*/
|
|
1453
|
+
constructor(properties?: clinical.IAppUser);
|
|
1454
|
+
|
|
1455
|
+
/** AppUser id. */
|
|
1456
|
+
public id: string;
|
|
1457
|
+
|
|
1458
|
+
/** AppUser appId. */
|
|
1459
|
+
public appId: string;
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* Creates a new AppUser instance using the specified properties.
|
|
1463
|
+
* @param [properties] Properties to set
|
|
1464
|
+
* @returns AppUser instance
|
|
1465
|
+
*/
|
|
1466
|
+
public static create(properties?: clinical.IAppUser): clinical.AppUser;
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Encodes the specified AppUser message. Does not implicitly {@link clinical.AppUser.verify|verify} messages.
|
|
1470
|
+
* @param message AppUser message or plain object to encode
|
|
1471
|
+
* @param [writer] Writer to encode to
|
|
1472
|
+
* @returns Writer
|
|
1473
|
+
*/
|
|
1474
|
+
public static encode(message: clinical.IAppUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Encodes the specified AppUser message, length delimited. Does not implicitly {@link clinical.AppUser.verify|verify} messages.
|
|
1478
|
+
* @param message AppUser message or plain object to encode
|
|
1479
|
+
* @param [writer] Writer to encode to
|
|
1480
|
+
* @returns Writer
|
|
1481
|
+
*/
|
|
1482
|
+
public static encodeDelimited(message: clinical.IAppUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* Decodes an AppUser message from the specified reader or buffer.
|
|
1486
|
+
* @param reader Reader or buffer to decode from
|
|
1487
|
+
* @param [length] Message length if known beforehand
|
|
1488
|
+
* @returns AppUser
|
|
1489
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1490
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1491
|
+
*/
|
|
1492
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): clinical.AppUser;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Decodes an AppUser message from the specified reader or buffer, length delimited.
|
|
1496
|
+
* @param reader Reader or buffer to decode from
|
|
1497
|
+
* @returns AppUser
|
|
1498
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1499
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1500
|
+
*/
|
|
1501
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): clinical.AppUser;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Verifies an AppUser message.
|
|
1505
|
+
* @param message Plain object to verify
|
|
1506
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1507
|
+
*/
|
|
1508
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Creates an AppUser message from a plain object. Also converts values to their respective internal types.
|
|
1512
|
+
* @param object Plain object
|
|
1513
|
+
* @returns AppUser
|
|
1514
|
+
*/
|
|
1515
|
+
public static fromObject(object: { [k: string]: any }): clinical.AppUser;
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* Creates a plain object from an AppUser message. Also converts values to other types if specified.
|
|
1519
|
+
* @param message AppUser
|
|
1520
|
+
* @param [options] Conversion options
|
|
1521
|
+
* @returns Plain object
|
|
1522
|
+
*/
|
|
1523
|
+
public static toObject(message: clinical.AppUser, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Converts this AppUser to JSON.
|
|
1527
|
+
* @returns JSON object
|
|
1528
|
+
*/
|
|
1529
|
+
public toJSON(): { [k: string]: any };
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1424
1532
|
/** Properties of a Coach. */
|
|
1425
1533
|
interface ICoach {
|
|
1426
1534
|
|
|
@@ -1472,6 +1580,12 @@ export namespace clinical {
|
|
|
1472
1580
|
|
|
1473
1581
|
/** Coach roleDisplay */
|
|
1474
1582
|
roleDisplay?: (clinical.ICoachRoleDisplay|null);
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* ID of this coach in Okta
|
|
1586
|
+
* TODO: Only two values expected here, one in Okta and one in listener
|
|
1587
|
+
*/
|
|
1588
|
+
oktaIds?: (clinical.IAppUser[]|null);
|
|
1475
1589
|
}
|
|
1476
1590
|
|
|
1477
1591
|
/** Represents a Coach. */
|
|
@@ -1532,6 +1646,12 @@ export namespace clinical {
|
|
|
1532
1646
|
/** Coach roleDisplay. */
|
|
1533
1647
|
public roleDisplay?: (clinical.ICoachRoleDisplay|null);
|
|
1534
1648
|
|
|
1649
|
+
/**
|
|
1650
|
+
* ID of this coach in Okta
|
|
1651
|
+
* TODO: Only two values expected here, one in Okta and one in listener
|
|
1652
|
+
*/
|
|
1653
|
+
public oktaIds: clinical.IAppUser[];
|
|
1654
|
+
|
|
1535
1655
|
/**
|
|
1536
1656
|
* Creates a new Coach instance using the specified properties.
|
|
1537
1657
|
* @param [properties] Properties to set
|
|
@@ -1711,7 +1831,8 @@ export namespace clinical {
|
|
|
1711
1831
|
COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_QA_SPECIALIST = 7,
|
|
1712
1832
|
COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_PART_TIME = 8,
|
|
1713
1833
|
COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_D2C = 9,
|
|
1714
|
-
COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_TESTER = 10
|
|
1834
|
+
COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_TESTER = 10,
|
|
1835
|
+
COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_VIDEO_COACH = 11
|
|
1715
1836
|
}
|
|
1716
1837
|
|
|
1717
1838
|
/** Properties of a CoachRoleDisplay. */
|
package/lib/index.js
CHANGED
|
@@ -3561,6 +3561,8 @@ $root.clinical = (function() {
|
|
|
3561
3561
|
* @property {string|null} [aboutMe] Clinician aboutMe
|
|
3562
3562
|
* @property {string|null} [education] Clinician education
|
|
3563
3563
|
* @property {string|null} [email] Clinician email
|
|
3564
|
+
* @property {Array.<clinical.IAppUser>|null} [oktaIds] ID of this clinician in Okta
|
|
3565
|
+
* TODO: Only two values expected here, one in Okta and one in web
|
|
3564
3566
|
*/
|
|
3565
3567
|
|
|
3566
3568
|
/**
|
|
@@ -3574,6 +3576,7 @@ $root.clinical = (function() {
|
|
|
3574
3576
|
function Clinician(properties) {
|
|
3575
3577
|
this.validLicenses = [];
|
|
3576
3578
|
this.specializations = [];
|
|
3579
|
+
this.oktaIds = [];
|
|
3577
3580
|
if (properties)
|
|
3578
3581
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3579
3582
|
if (properties[keys[i]] != null)
|
|
@@ -3732,6 +3735,15 @@ $root.clinical = (function() {
|
|
|
3732
3735
|
*/
|
|
3733
3736
|
Clinician.prototype.email = "";
|
|
3734
3737
|
|
|
3738
|
+
/**
|
|
3739
|
+
* ID of this clinician in Okta
|
|
3740
|
+
* TODO: Only two values expected here, one in Okta and one in web
|
|
3741
|
+
* @member {Array.<clinical.IAppUser>} oktaIds
|
|
3742
|
+
* @memberof clinical.Clinician
|
|
3743
|
+
* @instance
|
|
3744
|
+
*/
|
|
3745
|
+
Clinician.prototype.oktaIds = $util.emptyArray;
|
|
3746
|
+
|
|
3735
3747
|
/**
|
|
3736
3748
|
* Creates a new Clinician instance using the specified properties.
|
|
3737
3749
|
* @function create
|
|
@@ -3796,6 +3808,9 @@ $root.clinical = (function() {
|
|
|
3796
3808
|
writer.uint32(/* id 18, wireType 2 =*/146).string(message.education);
|
|
3797
3809
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
3798
3810
|
writer.uint32(/* id 19, wireType 2 =*/154).string(message.email);
|
|
3811
|
+
if (message.oktaIds != null && message.oktaIds.length)
|
|
3812
|
+
for (var i = 0; i < message.oktaIds.length; ++i)
|
|
3813
|
+
$root.clinical.AppUser.encode(message.oktaIds[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
3799
3814
|
return writer;
|
|
3800
3815
|
};
|
|
3801
3816
|
|
|
@@ -3891,6 +3906,11 @@ $root.clinical = (function() {
|
|
|
3891
3906
|
case 19:
|
|
3892
3907
|
message.email = reader.string();
|
|
3893
3908
|
break;
|
|
3909
|
+
case 20:
|
|
3910
|
+
if (!(message.oktaIds && message.oktaIds.length))
|
|
3911
|
+
message.oktaIds = [];
|
|
3912
|
+
message.oktaIds.push($root.clinical.AppUser.decode(reader, reader.uint32()));
|
|
3913
|
+
break;
|
|
3894
3914
|
default:
|
|
3895
3915
|
reader.skipType(tag & 7);
|
|
3896
3916
|
break;
|
|
@@ -4038,6 +4058,15 @@ $root.clinical = (function() {
|
|
|
4038
4058
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
4039
4059
|
if (!$util.isString(message.email))
|
|
4040
4060
|
return "email: string expected";
|
|
4061
|
+
if (message.oktaIds != null && message.hasOwnProperty("oktaIds")) {
|
|
4062
|
+
if (!Array.isArray(message.oktaIds))
|
|
4063
|
+
return "oktaIds: array expected";
|
|
4064
|
+
for (var i = 0; i < message.oktaIds.length; ++i) {
|
|
4065
|
+
var error = $root.clinical.AppUser.verify(message.oktaIds[i]);
|
|
4066
|
+
if (error)
|
|
4067
|
+
return "oktaIds." + error;
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
4041
4070
|
return null;
|
|
4042
4071
|
};
|
|
4043
4072
|
|
|
@@ -4226,6 +4255,16 @@ $root.clinical = (function() {
|
|
|
4226
4255
|
message.education = String(object.education);
|
|
4227
4256
|
if (object.email != null)
|
|
4228
4257
|
message.email = String(object.email);
|
|
4258
|
+
if (object.oktaIds) {
|
|
4259
|
+
if (!Array.isArray(object.oktaIds))
|
|
4260
|
+
throw TypeError(".clinical.Clinician.oktaIds: array expected");
|
|
4261
|
+
message.oktaIds = [];
|
|
4262
|
+
for (var i = 0; i < object.oktaIds.length; ++i) {
|
|
4263
|
+
if (typeof object.oktaIds[i] !== "object")
|
|
4264
|
+
throw TypeError(".clinical.Clinician.oktaIds: object expected");
|
|
4265
|
+
message.oktaIds[i] = $root.clinical.AppUser.fromObject(object.oktaIds[i]);
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4229
4268
|
return message;
|
|
4230
4269
|
};
|
|
4231
4270
|
|
|
@@ -4245,6 +4284,7 @@ $root.clinical = (function() {
|
|
|
4245
4284
|
if (options.arrays || options.defaults) {
|
|
4246
4285
|
object.validLicenses = [];
|
|
4247
4286
|
object.specializations = [];
|
|
4287
|
+
object.oktaIds = [];
|
|
4248
4288
|
}
|
|
4249
4289
|
if (options.defaults) {
|
|
4250
4290
|
object.id = "";
|
|
@@ -4323,6 +4363,11 @@ $root.clinical = (function() {
|
|
|
4323
4363
|
object.education = message.education;
|
|
4324
4364
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
4325
4365
|
object.email = message.email;
|
|
4366
|
+
if (message.oktaIds && message.oktaIds.length) {
|
|
4367
|
+
object.oktaIds = [];
|
|
4368
|
+
for (var j = 0; j < message.oktaIds.length; ++j)
|
|
4369
|
+
object.oktaIds[j] = $root.clinical.AppUser.toObject(message.oktaIds[j], options);
|
|
4370
|
+
}
|
|
4326
4371
|
return object;
|
|
4327
4372
|
};
|
|
4328
4373
|
|
|
@@ -4455,6 +4500,216 @@ $root.clinical = (function() {
|
|
|
4455
4500
|
return values;
|
|
4456
4501
|
})();
|
|
4457
4502
|
|
|
4503
|
+
clinical.AppUser = (function() {
|
|
4504
|
+
|
|
4505
|
+
/**
|
|
4506
|
+
* Properties of an AppUser.
|
|
4507
|
+
* @memberof clinical
|
|
4508
|
+
* @interface IAppUser
|
|
4509
|
+
* @property {string|null} [id] AppUser id
|
|
4510
|
+
* @property {string|null} [appId] AppUser appId
|
|
4511
|
+
*/
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* Constructs a new AppUser.
|
|
4515
|
+
* @memberof clinical
|
|
4516
|
+
* @classdesc Represents an AppUser.
|
|
4517
|
+
* @implements IAppUser
|
|
4518
|
+
* @constructor
|
|
4519
|
+
* @param {clinical.IAppUser=} [properties] Properties to set
|
|
4520
|
+
*/
|
|
4521
|
+
function AppUser(properties) {
|
|
4522
|
+
if (properties)
|
|
4523
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4524
|
+
if (properties[keys[i]] != null)
|
|
4525
|
+
this[keys[i]] = properties[keys[i]];
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
/**
|
|
4529
|
+
* AppUser id.
|
|
4530
|
+
* @member {string} id
|
|
4531
|
+
* @memberof clinical.AppUser
|
|
4532
|
+
* @instance
|
|
4533
|
+
*/
|
|
4534
|
+
AppUser.prototype.id = "";
|
|
4535
|
+
|
|
4536
|
+
/**
|
|
4537
|
+
* AppUser appId.
|
|
4538
|
+
* @member {string} appId
|
|
4539
|
+
* @memberof clinical.AppUser
|
|
4540
|
+
* @instance
|
|
4541
|
+
*/
|
|
4542
|
+
AppUser.prototype.appId = "";
|
|
4543
|
+
|
|
4544
|
+
/**
|
|
4545
|
+
* Creates a new AppUser instance using the specified properties.
|
|
4546
|
+
* @function create
|
|
4547
|
+
* @memberof clinical.AppUser
|
|
4548
|
+
* @static
|
|
4549
|
+
* @param {clinical.IAppUser=} [properties] Properties to set
|
|
4550
|
+
* @returns {clinical.AppUser} AppUser instance
|
|
4551
|
+
*/
|
|
4552
|
+
AppUser.create = function create(properties) {
|
|
4553
|
+
return new AppUser(properties);
|
|
4554
|
+
};
|
|
4555
|
+
|
|
4556
|
+
/**
|
|
4557
|
+
* Encodes the specified AppUser message. Does not implicitly {@link clinical.AppUser.verify|verify} messages.
|
|
4558
|
+
* @function encode
|
|
4559
|
+
* @memberof clinical.AppUser
|
|
4560
|
+
* @static
|
|
4561
|
+
* @param {clinical.IAppUser} message AppUser message or plain object to encode
|
|
4562
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4563
|
+
* @returns {$protobuf.Writer} Writer
|
|
4564
|
+
*/
|
|
4565
|
+
AppUser.encode = function encode(message, writer) {
|
|
4566
|
+
if (!writer)
|
|
4567
|
+
writer = $Writer.create();
|
|
4568
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
4569
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
4570
|
+
if (message.appId != null && message.hasOwnProperty("appId"))
|
|
4571
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.appId);
|
|
4572
|
+
return writer;
|
|
4573
|
+
};
|
|
4574
|
+
|
|
4575
|
+
/**
|
|
4576
|
+
* Encodes the specified AppUser message, length delimited. Does not implicitly {@link clinical.AppUser.verify|verify} messages.
|
|
4577
|
+
* @function encodeDelimited
|
|
4578
|
+
* @memberof clinical.AppUser
|
|
4579
|
+
* @static
|
|
4580
|
+
* @param {clinical.IAppUser} message AppUser message or plain object to encode
|
|
4581
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4582
|
+
* @returns {$protobuf.Writer} Writer
|
|
4583
|
+
*/
|
|
4584
|
+
AppUser.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4585
|
+
return this.encode(message, writer).ldelim();
|
|
4586
|
+
};
|
|
4587
|
+
|
|
4588
|
+
/**
|
|
4589
|
+
* Decodes an AppUser message from the specified reader or buffer.
|
|
4590
|
+
* @function decode
|
|
4591
|
+
* @memberof clinical.AppUser
|
|
4592
|
+
* @static
|
|
4593
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4594
|
+
* @param {number} [length] Message length if known beforehand
|
|
4595
|
+
* @returns {clinical.AppUser} AppUser
|
|
4596
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4597
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4598
|
+
*/
|
|
4599
|
+
AppUser.decode = function decode(reader, length) {
|
|
4600
|
+
if (!(reader instanceof $Reader))
|
|
4601
|
+
reader = $Reader.create(reader);
|
|
4602
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.AppUser();
|
|
4603
|
+
while (reader.pos < end) {
|
|
4604
|
+
var tag = reader.uint32();
|
|
4605
|
+
switch (tag >>> 3) {
|
|
4606
|
+
case 1:
|
|
4607
|
+
message.id = reader.string();
|
|
4608
|
+
break;
|
|
4609
|
+
case 2:
|
|
4610
|
+
message.appId = reader.string();
|
|
4611
|
+
break;
|
|
4612
|
+
default:
|
|
4613
|
+
reader.skipType(tag & 7);
|
|
4614
|
+
break;
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4617
|
+
return message;
|
|
4618
|
+
};
|
|
4619
|
+
|
|
4620
|
+
/**
|
|
4621
|
+
* Decodes an AppUser message from the specified reader or buffer, length delimited.
|
|
4622
|
+
* @function decodeDelimited
|
|
4623
|
+
* @memberof clinical.AppUser
|
|
4624
|
+
* @static
|
|
4625
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4626
|
+
* @returns {clinical.AppUser} AppUser
|
|
4627
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4628
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4629
|
+
*/
|
|
4630
|
+
AppUser.decodeDelimited = function decodeDelimited(reader) {
|
|
4631
|
+
if (!(reader instanceof $Reader))
|
|
4632
|
+
reader = new $Reader(reader);
|
|
4633
|
+
return this.decode(reader, reader.uint32());
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4636
|
+
/**
|
|
4637
|
+
* Verifies an AppUser message.
|
|
4638
|
+
* @function verify
|
|
4639
|
+
* @memberof clinical.AppUser
|
|
4640
|
+
* @static
|
|
4641
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4642
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4643
|
+
*/
|
|
4644
|
+
AppUser.verify = function verify(message) {
|
|
4645
|
+
if (typeof message !== "object" || message === null)
|
|
4646
|
+
return "object expected";
|
|
4647
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
4648
|
+
if (!$util.isString(message.id))
|
|
4649
|
+
return "id: string expected";
|
|
4650
|
+
if (message.appId != null && message.hasOwnProperty("appId"))
|
|
4651
|
+
if (!$util.isString(message.appId))
|
|
4652
|
+
return "appId: string expected";
|
|
4653
|
+
return null;
|
|
4654
|
+
};
|
|
4655
|
+
|
|
4656
|
+
/**
|
|
4657
|
+
* Creates an AppUser message from a plain object. Also converts values to their respective internal types.
|
|
4658
|
+
* @function fromObject
|
|
4659
|
+
* @memberof clinical.AppUser
|
|
4660
|
+
* @static
|
|
4661
|
+
* @param {Object.<string,*>} object Plain object
|
|
4662
|
+
* @returns {clinical.AppUser} AppUser
|
|
4663
|
+
*/
|
|
4664
|
+
AppUser.fromObject = function fromObject(object) {
|
|
4665
|
+
if (object instanceof $root.clinical.AppUser)
|
|
4666
|
+
return object;
|
|
4667
|
+
var message = new $root.clinical.AppUser();
|
|
4668
|
+
if (object.id != null)
|
|
4669
|
+
message.id = String(object.id);
|
|
4670
|
+
if (object.appId != null)
|
|
4671
|
+
message.appId = String(object.appId);
|
|
4672
|
+
return message;
|
|
4673
|
+
};
|
|
4674
|
+
|
|
4675
|
+
/**
|
|
4676
|
+
* Creates a plain object from an AppUser message. Also converts values to other types if specified.
|
|
4677
|
+
* @function toObject
|
|
4678
|
+
* @memberof clinical.AppUser
|
|
4679
|
+
* @static
|
|
4680
|
+
* @param {clinical.AppUser} message AppUser
|
|
4681
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4682
|
+
* @returns {Object.<string,*>} Plain object
|
|
4683
|
+
*/
|
|
4684
|
+
AppUser.toObject = function toObject(message, options) {
|
|
4685
|
+
if (!options)
|
|
4686
|
+
options = {};
|
|
4687
|
+
var object = {};
|
|
4688
|
+
if (options.defaults) {
|
|
4689
|
+
object.id = "";
|
|
4690
|
+
object.appId = "";
|
|
4691
|
+
}
|
|
4692
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
4693
|
+
object.id = message.id;
|
|
4694
|
+
if (message.appId != null && message.hasOwnProperty("appId"))
|
|
4695
|
+
object.appId = message.appId;
|
|
4696
|
+
return object;
|
|
4697
|
+
};
|
|
4698
|
+
|
|
4699
|
+
/**
|
|
4700
|
+
* Converts this AppUser to JSON.
|
|
4701
|
+
* @function toJSON
|
|
4702
|
+
* @memberof clinical.AppUser
|
|
4703
|
+
* @instance
|
|
4704
|
+
* @returns {Object.<string,*>} JSON object
|
|
4705
|
+
*/
|
|
4706
|
+
AppUser.prototype.toJSON = function toJSON() {
|
|
4707
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4708
|
+
};
|
|
4709
|
+
|
|
4710
|
+
return AppUser;
|
|
4711
|
+
})();
|
|
4712
|
+
|
|
4458
4713
|
clinical.Coach = (function() {
|
|
4459
4714
|
|
|
4460
4715
|
/**
|
|
@@ -4480,6 +4735,8 @@ $root.clinical = (function() {
|
|
|
4480
4735
|
* @property {string|null} [fullName] Coach fullName
|
|
4481
4736
|
* @property {string|null} [email] Coach email
|
|
4482
4737
|
* @property {clinical.ICoachRoleDisplay|null} [roleDisplay] Coach roleDisplay
|
|
4738
|
+
* @property {Array.<clinical.IAppUser>|null} [oktaIds] ID of this coach in Okta
|
|
4739
|
+
* TODO: Only two values expected here, one in Okta and one in listener
|
|
4483
4740
|
*/
|
|
4484
4741
|
|
|
4485
4742
|
/**
|
|
@@ -4495,6 +4752,7 @@ $root.clinical = (function() {
|
|
|
4495
4752
|
this.roles = [];
|
|
4496
4753
|
this.specializations = [];
|
|
4497
4754
|
this.deprecatedSpecializations = [];
|
|
4755
|
+
this.oktaIds = [];
|
|
4498
4756
|
if (properties)
|
|
4499
4757
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4500
4758
|
if (properties[keys[i]] != null)
|
|
@@ -4611,6 +4869,15 @@ $root.clinical = (function() {
|
|
|
4611
4869
|
*/
|
|
4612
4870
|
Coach.prototype.roleDisplay = null;
|
|
4613
4871
|
|
|
4872
|
+
/**
|
|
4873
|
+
* ID of this coach in Okta
|
|
4874
|
+
* TODO: Only two values expected here, one in Okta and one in listener
|
|
4875
|
+
* @member {Array.<clinical.IAppUser>} oktaIds
|
|
4876
|
+
* @memberof clinical.Coach
|
|
4877
|
+
* @instance
|
|
4878
|
+
*/
|
|
4879
|
+
Coach.prototype.oktaIds = $util.emptyArray;
|
|
4880
|
+
|
|
4614
4881
|
/**
|
|
4615
4882
|
* Creates a new Coach instance using the specified properties.
|
|
4616
4883
|
* @function create
|
|
@@ -4671,6 +4938,9 @@ $root.clinical = (function() {
|
|
|
4671
4938
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.email);
|
|
4672
4939
|
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
|
|
4673
4940
|
$root.clinical.CoachRoleDisplay.encode(message.roleDisplay, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
4941
|
+
if (message.oktaIds != null && message.oktaIds.length)
|
|
4942
|
+
for (var i = 0; i < message.oktaIds.length; ++i)
|
|
4943
|
+
$root.clinical.AppUser.encode(message.oktaIds[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
4674
4944
|
return writer;
|
|
4675
4945
|
};
|
|
4676
4946
|
|
|
@@ -4762,6 +5032,11 @@ $root.clinical = (function() {
|
|
|
4762
5032
|
case 13:
|
|
4763
5033
|
message.roleDisplay = $root.clinical.CoachRoleDisplay.decode(reader, reader.uint32());
|
|
4764
5034
|
break;
|
|
5035
|
+
case 14:
|
|
5036
|
+
if (!(message.oktaIds && message.oktaIds.length))
|
|
5037
|
+
message.oktaIds = [];
|
|
5038
|
+
message.oktaIds.push($root.clinical.AppUser.decode(reader, reader.uint32()));
|
|
5039
|
+
break;
|
|
4765
5040
|
default:
|
|
4766
5041
|
reader.skipType(tag & 7);
|
|
4767
5042
|
break;
|
|
@@ -4935,6 +5210,7 @@ $root.clinical = (function() {
|
|
|
4935
5210
|
case 8:
|
|
4936
5211
|
case 9:
|
|
4937
5212
|
case 10:
|
|
5213
|
+
case 11:
|
|
4938
5214
|
break;
|
|
4939
5215
|
}
|
|
4940
5216
|
}
|
|
@@ -4967,6 +5243,15 @@ $root.clinical = (function() {
|
|
|
4967
5243
|
if (error)
|
|
4968
5244
|
return "roleDisplay." + error;
|
|
4969
5245
|
}
|
|
5246
|
+
if (message.oktaIds != null && message.hasOwnProperty("oktaIds")) {
|
|
5247
|
+
if (!Array.isArray(message.oktaIds))
|
|
5248
|
+
return "oktaIds: array expected";
|
|
5249
|
+
for (var i = 0; i < message.oktaIds.length; ++i) {
|
|
5250
|
+
var error = $root.clinical.AppUser.verify(message.oktaIds[i]);
|
|
5251
|
+
if (error)
|
|
5252
|
+
return "oktaIds." + error;
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
4970
5255
|
return null;
|
|
4971
5256
|
};
|
|
4972
5257
|
|
|
@@ -5440,6 +5725,10 @@ $root.clinical = (function() {
|
|
|
5440
5725
|
case 10:
|
|
5441
5726
|
message.specializations[i] = 10;
|
|
5442
5727
|
break;
|
|
5728
|
+
case "COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_VIDEO_COACH":
|
|
5729
|
+
case 11:
|
|
5730
|
+
message.specializations[i] = 11;
|
|
5731
|
+
break;
|
|
5443
5732
|
}
|
|
5444
5733
|
}
|
|
5445
5734
|
if (object.deprecatedSpecializations) {
|
|
@@ -5467,6 +5756,16 @@ $root.clinical = (function() {
|
|
|
5467
5756
|
throw TypeError(".clinical.Coach.roleDisplay: object expected");
|
|
5468
5757
|
message.roleDisplay = $root.clinical.CoachRoleDisplay.fromObject(object.roleDisplay);
|
|
5469
5758
|
}
|
|
5759
|
+
if (object.oktaIds) {
|
|
5760
|
+
if (!Array.isArray(object.oktaIds))
|
|
5761
|
+
throw TypeError(".clinical.Coach.oktaIds: array expected");
|
|
5762
|
+
message.oktaIds = [];
|
|
5763
|
+
for (var i = 0; i < object.oktaIds.length; ++i) {
|
|
5764
|
+
if (typeof object.oktaIds[i] !== "object")
|
|
5765
|
+
throw TypeError(".clinical.Coach.oktaIds: object expected");
|
|
5766
|
+
message.oktaIds[i] = $root.clinical.AppUser.fromObject(object.oktaIds[i]);
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5470
5769
|
return message;
|
|
5471
5770
|
};
|
|
5472
5771
|
|
|
@@ -5488,6 +5787,7 @@ $root.clinical = (function() {
|
|
|
5488
5787
|
object.specializations = [];
|
|
5489
5788
|
object.roles = [];
|
|
5490
5789
|
object.deprecatedSpecializations = [];
|
|
5790
|
+
object.oktaIds = [];
|
|
5491
5791
|
}
|
|
5492
5792
|
if (options.defaults) {
|
|
5493
5793
|
object.id = "";
|
|
@@ -5552,6 +5852,11 @@ $root.clinical = (function() {
|
|
|
5552
5852
|
object.email = message.email;
|
|
5553
5853
|
if (message.roleDisplay != null && message.hasOwnProperty("roleDisplay"))
|
|
5554
5854
|
object.roleDisplay = $root.clinical.CoachRoleDisplay.toObject(message.roleDisplay, options);
|
|
5855
|
+
if (message.oktaIds && message.oktaIds.length) {
|
|
5856
|
+
object.oktaIds = [];
|
|
5857
|
+
for (var j = 0; j < message.oktaIds.length; ++j)
|
|
5858
|
+
object.oktaIds[j] = $root.clinical.AppUser.toObject(message.oktaIds[j], options);
|
|
5859
|
+
}
|
|
5555
5860
|
return object;
|
|
5556
5861
|
};
|
|
5557
5862
|
|
|
@@ -5731,6 +6036,7 @@ $root.clinical = (function() {
|
|
|
5731
6036
|
case 8:
|
|
5732
6037
|
case 9:
|
|
5733
6038
|
case 10:
|
|
6039
|
+
case 11:
|
|
5734
6040
|
break;
|
|
5735
6041
|
}
|
|
5736
6042
|
return null;
|
|
@@ -5802,6 +6108,10 @@ $root.clinical = (function() {
|
|
|
5802
6108
|
case 10:
|
|
5803
6109
|
message.specialization = 10;
|
|
5804
6110
|
break;
|
|
6111
|
+
case "COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_VIDEO_COACH":
|
|
6112
|
+
case 11:
|
|
6113
|
+
message.specialization = 11;
|
|
6114
|
+
break;
|
|
5805
6115
|
}
|
|
5806
6116
|
return message;
|
|
5807
6117
|
};
|
|
@@ -5866,6 +6176,7 @@ $root.clinical = (function() {
|
|
|
5866
6176
|
* @property {number} COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_PART_TIME=8 COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_PART_TIME value
|
|
5867
6177
|
* @property {number} COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_D2C=9 COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_D2C value
|
|
5868
6178
|
* @property {number} COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_TESTER=10 COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_TESTER value
|
|
6179
|
+
* @property {number} COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_VIDEO_COACH=11 COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_VIDEO_COACH value
|
|
5869
6180
|
*/
|
|
5870
6181
|
clinical.CoachSpecializationType = (function() {
|
|
5871
6182
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -5880,6 +6191,7 @@ $root.clinical = (function() {
|
|
|
5880
6191
|
values[valuesById[8] = "COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_PART_TIME"] = 8;
|
|
5881
6192
|
values[valuesById[9] = "COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_D2C"] = 9;
|
|
5882
6193
|
values[valuesById[10] = "COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_TESTER"] = 10;
|
|
6194
|
+
values[valuesById[11] = "COACH_SPECIALIZATION_TYPE_COACH_SPECIALIZATION_VIDEO_COACH"] = 11;
|
|
5883
6195
|
return values;
|
|
5884
6196
|
})();
|
|
5885
6197
|
|
package/package.json
CHANGED