@headspace/protos-events 1.835.0 → 1.837.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 +235 -6
- package/lib/index.js +791 -12
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -67128,7 +67128,7 @@ $root.coaching = (function() {
|
|
|
67128
67128
|
* @property {string|null} [hsUserId] ListenerCoachingExperimentalChatRatingCreated hsUserId
|
|
67129
67129
|
* @property {number|Long|null} [scheduledSessionId] ListenerCoachingExperimentalChatRatingCreated scheduledSessionId
|
|
67130
67130
|
* @property {number|Long|null} [dropinSessionId] ListenerCoachingExperimentalChatRatingCreated dropinSessionId
|
|
67131
|
-
* @property {
|
|
67131
|
+
* @property {CoachingSessionFormat|null} [sessionFormat] ListenerCoachingExperimentalChatRatingCreated sessionFormat
|
|
67132
67132
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
67133
67133
|
*/
|
|
67134
67134
|
|
|
@@ -67302,7 +67302,7 @@ $root.coaching = (function() {
|
|
|
67302
67302
|
|
|
67303
67303
|
/**
|
|
67304
67304
|
* ListenerCoachingExperimentalChatRatingCreated sessionFormat.
|
|
67305
|
-
* @member {
|
|
67305
|
+
* @member {CoachingSessionFormat} sessionFormat
|
|
67306
67306
|
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
67307
67307
|
* @instance
|
|
67308
67308
|
*/
|
|
@@ -67780,7 +67780,7 @@ $root.coaching = (function() {
|
|
|
67780
67780
|
message.dropinSessionId = object.dropinSessionId;
|
|
67781
67781
|
else if (typeof object.dropinSessionId === "object")
|
|
67782
67782
|
message.dropinSessionId = new $util.LongBits(object.dropinSessionId.low >>> 0, object.dropinSessionId.high >>> 0).toNumber(true);
|
|
67783
|
-
if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.
|
|
67783
|
+
if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.CoachingSessionFormat[object.sessionFormat] !== 0))
|
|
67784
67784
|
switch (object.sessionFormat) {
|
|
67785
67785
|
default:
|
|
67786
67786
|
if (typeof object.sessionFormat === "number") {
|
|
@@ -67896,7 +67896,7 @@ $root.coaching = (function() {
|
|
|
67896
67896
|
else
|
|
67897
67897
|
object.dropinSessionId = options.longs === String ? $util.Long.prototype.toString.call(message.dropinSessionId) : options.longs === Number ? new $util.LongBits(message.dropinSessionId.low >>> 0, message.dropinSessionId.high >>> 0).toNumber(true) : message.dropinSessionId;
|
|
67898
67898
|
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
67899
|
-
object.sessionFormat = options.enums === String ? $root.
|
|
67899
|
+
object.sessionFormat = options.enums === String ? $root.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
|
|
67900
67900
|
return object;
|
|
67901
67901
|
};
|
|
67902
67902
|
|
|
@@ -67953,7 +67953,7 @@ $root.coaching = (function() {
|
|
|
67953
67953
|
* a new record is created for the new date/time
|
|
67954
67954
|
* @property {string|null} [chatConversationId] A conversation between a Listener and a Caller is represented by a unique ChatConversation
|
|
67955
67955
|
* See apps.listenerapp.models.ChatConversation
|
|
67956
|
-
* @property {
|
|
67956
|
+
* @property {CoachingSessionFormat|null} [sessionFormat] The medium format of the session.
|
|
67957
67957
|
* @property {number|Long|null} [engagedAt] ScheduledCoachingSession engagedAt
|
|
67958
67958
|
* @property {number|Long|null} [closedAt] ScheduledCoachingSession closedAt
|
|
67959
67959
|
* @property {boolean|null} [memberCancelled] ScheduledCoachingSession memberCancelled
|
|
@@ -68112,7 +68112,7 @@ $root.coaching = (function() {
|
|
|
68112
68112
|
|
|
68113
68113
|
/**
|
|
68114
68114
|
* The medium format of the session.
|
|
68115
|
-
* @member {
|
|
68115
|
+
* @member {CoachingSessionFormat} sessionFormat
|
|
68116
68116
|
* @memberof coaching.ScheduledCoachingSession
|
|
68117
68117
|
* @instance
|
|
68118
68118
|
*/
|
|
@@ -68700,7 +68700,7 @@ $root.coaching = (function() {
|
|
|
68700
68700
|
if (object.chatConversationId != null)
|
|
68701
68701
|
if (typeof object.chatConversationId !== "string" || object.chatConversationId.length)
|
|
68702
68702
|
message.chatConversationId = String(object.chatConversationId);
|
|
68703
|
-
if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.
|
|
68703
|
+
if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.CoachingSessionFormat[object.sessionFormat] !== 0))
|
|
68704
68704
|
switch (object.sessionFormat) {
|
|
68705
68705
|
default:
|
|
68706
68706
|
if (typeof object.sessionFormat === "number") {
|
|
@@ -68880,7 +68880,7 @@ $root.coaching = (function() {
|
|
|
68880
68880
|
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
68881
68881
|
object.chatConversationId = message.chatConversationId;
|
|
68882
68882
|
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
68883
|
-
object.sessionFormat = options.enums === String ? $root.
|
|
68883
|
+
object.sessionFormat = options.enums === String ? $root.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
|
|
68884
68884
|
if (message.engagedAt != null && message.hasOwnProperty("engagedAt"))
|
|
68885
68885
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
68886
68886
|
object.engagedAt = typeof message.engagedAt === "number" ? BigInt(message.engagedAt) : $util.Long.fromBits(message.engagedAt.low >>> 0, message.engagedAt.high >>> 0, true).toBigInt();
|
|
@@ -70790,7 +70790,7 @@ $root.coaching = (function() {
|
|
|
70790
70790
|
* @property {string|null} [memberHsUserId] CoachingChatRating memberHsUserId
|
|
70791
70791
|
* @property {number|Long|null} [scheduledSessionId] CoachingChatRating scheduledSessionId
|
|
70792
70792
|
* @property {number|Long|null} [dropinSessionId] CoachingChatRating dropinSessionId
|
|
70793
|
-
* @property {
|
|
70793
|
+
* @property {CoachingSessionFormat|null} [sessionFormat] CoachingChatRating sessionFormat
|
|
70794
70794
|
* @property {number|null} [understoodRating] CoachingChatRating understoodRating
|
|
70795
70795
|
* @property {number|null} [feltSupportedRating] CoachingChatRating feltSupportedRating
|
|
70796
70796
|
* @property {number|null} [approachRating] CoachingChatRating approachRating
|
|
@@ -70908,7 +70908,7 @@ $root.coaching = (function() {
|
|
|
70908
70908
|
|
|
70909
70909
|
/**
|
|
70910
70910
|
* CoachingChatRating sessionFormat.
|
|
70911
|
-
* @member {
|
|
70911
|
+
* @member {CoachingSessionFormat} sessionFormat
|
|
70912
70912
|
* @memberof coaching.CoachingChatRating
|
|
70913
70913
|
* @instance
|
|
70914
70914
|
*/
|
|
@@ -71348,7 +71348,7 @@ $root.coaching = (function() {
|
|
|
71348
71348
|
message.dropinSessionId = object.dropinSessionId;
|
|
71349
71349
|
else if (typeof object.dropinSessionId === "object")
|
|
71350
71350
|
message.dropinSessionId = new $util.LongBits(object.dropinSessionId.low >>> 0, object.dropinSessionId.high >>> 0).toNumber(true);
|
|
71351
|
-
if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.
|
|
71351
|
+
if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.CoachingSessionFormat[object.sessionFormat] !== 0))
|
|
71352
71352
|
switch (object.sessionFormat) {
|
|
71353
71353
|
default:
|
|
71354
71354
|
if (typeof object.sessionFormat === "number") {
|
|
@@ -71462,7 +71462,7 @@ $root.coaching = (function() {
|
|
|
71462
71462
|
else
|
|
71463
71463
|
object.dropinSessionId = options.longs === String ? $util.Long.prototype.toString.call(message.dropinSessionId) : options.longs === Number ? new $util.LongBits(message.dropinSessionId.low >>> 0, message.dropinSessionId.high >>> 0).toNumber(true) : message.dropinSessionId;
|
|
71464
71464
|
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
71465
|
-
object.sessionFormat = options.enums === String ? $root.
|
|
71465
|
+
object.sessionFormat = options.enums === String ? $root.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
|
|
71466
71466
|
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
71467
71467
|
object.understoodRating = message.understoodRating;
|
|
71468
71468
|
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
@@ -231462,6 +231462,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
231462
231462
|
* @property {Array.<TaggedCustomField.$Properties>|null} [taggedCustomFields] EnterpriseUserEnrollmentCreated taggedCustomFields
|
|
231463
231463
|
* @property {boolean|null} [isTextCoachingDisabled] EnterpriseUserEnrollmentCreated isTextCoachingDisabled
|
|
231464
231464
|
* @property {UtmParams.$Properties|null} [utmParams] EnterpriseUserEnrollmentCreated utmParams
|
|
231465
|
+
* @property {boolean|null} [isUngatedDependent] EnterpriseUserEnrollmentCreated isUngatedDependent
|
|
231465
231466
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
231466
231467
|
*/
|
|
231467
231468
|
|
|
@@ -231950,6 +231951,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
231950
231951
|
*/
|
|
231951
231952
|
EnterpriseUserEnrollmentCreated.prototype.utmParams = null;
|
|
231952
231953
|
|
|
231954
|
+
/**
|
|
231955
|
+
* EnterpriseUserEnrollmentCreated isUngatedDependent.
|
|
231956
|
+
* @member {boolean} isUngatedDependent
|
|
231957
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
231958
|
+
* @instance
|
|
231959
|
+
*/
|
|
231960
|
+
EnterpriseUserEnrollmentCreated.prototype.isUngatedDependent = false;
|
|
231961
|
+
|
|
231953
231962
|
/**
|
|
231954
231963
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
231955
231964
|
* @function create
|
|
@@ -232093,6 +232102,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
232093
232102
|
writer.uint32(/* id 61, wireType 0 =*/488).bool(message.isTextCoachingDisabled);
|
|
232094
232103
|
if (message.utmParams != null && Object.hasOwnProperty.call(message, "utmParams"))
|
|
232095
232104
|
$root.UtmParams.encode(message.utmParams, writer.uint32(/* id 62, wireType 2 =*/498).fork()).ldelim();
|
|
232105
|
+
if (message.isUngatedDependent != null && Object.hasOwnProperty.call(message, "isUngatedDependent"))
|
|
232106
|
+
writer.uint32(/* id 63, wireType 0 =*/504).bool(message.isUngatedDependent);
|
|
232096
232107
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
232097
232108
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
232098
232109
|
writer.raw(message.$unknowns[i]);
|
|
@@ -232649,6 +232660,15 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
232649
232660
|
message.utmParams = $root.UtmParams.decode(reader, reader.uint32(), undefined, _depth + 1, message.utmParams);
|
|
232650
232661
|
continue;
|
|
232651
232662
|
}
|
|
232663
|
+
case 63: {
|
|
232664
|
+
if (wireType !== 0)
|
|
232665
|
+
break;
|
|
232666
|
+
if (value = reader.bool())
|
|
232667
|
+
message.isUngatedDependent = value;
|
|
232668
|
+
else
|
|
232669
|
+
delete message.isUngatedDependent;
|
|
232670
|
+
continue;
|
|
232671
|
+
}
|
|
232652
232672
|
}
|
|
232653
232673
|
reader.skipType(wireType, _depth, tag);
|
|
232654
232674
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -232944,6 +232964,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
232944
232964
|
if (error)
|
|
232945
232965
|
return "utmParams." + error;
|
|
232946
232966
|
}
|
|
232967
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
232968
|
+
if (typeof message.isUngatedDependent !== "boolean")
|
|
232969
|
+
return "isUngatedDependent: boolean expected";
|
|
232947
232970
|
return null;
|
|
232948
232971
|
};
|
|
232949
232972
|
|
|
@@ -233418,6 +233441,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
233418
233441
|
throw TypeError(".EnterpriseUserEnrollmentCreated.utmParams: object expected");
|
|
233419
233442
|
message.utmParams = $root.UtmParams.fromObject(object.utmParams, _depth + 1);
|
|
233420
233443
|
}
|
|
233444
|
+
if (object.isUngatedDependent != null)
|
|
233445
|
+
if (object.isUngatedDependent)
|
|
233446
|
+
message.isUngatedDependent = Boolean(object.isUngatedDependent);
|
|
233421
233447
|
return message;
|
|
233422
233448
|
};
|
|
233423
233449
|
|
|
@@ -233513,6 +233539,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
233513
233539
|
object.brandLogoUrl = "";
|
|
233514
233540
|
object.isTextCoachingDisabled = false;
|
|
233515
233541
|
object.utmParams = null;
|
|
233542
|
+
object.isUngatedDependent = false;
|
|
233516
233543
|
}
|
|
233517
233544
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
233518
233545
|
object.userId = message.userId;
|
|
@@ -233656,6 +233683,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
233656
233683
|
object.isTextCoachingDisabled = message.isTextCoachingDisabled;
|
|
233657
233684
|
if (message.utmParams != null && message.hasOwnProperty("utmParams"))
|
|
233658
233685
|
object.utmParams = $root.UtmParams.toObject(message.utmParams, options);
|
|
233686
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
233687
|
+
object.isUngatedDependent = message.isUngatedDependent;
|
|
233659
233688
|
return object;
|
|
233660
233689
|
};
|
|
233661
233690
|
|
|
@@ -233736,6 +233765,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
233736
233765
|
* @property {string|null} [externalClientId] EnterpriseUserEnrollmentRemoved externalClientId
|
|
233737
233766
|
* @property {string|null} [brandLogoUrl] EnterpriseUserEnrollmentRemoved brandLogoUrl
|
|
233738
233767
|
* @property {Array.<TaggedCustomField.$Properties>|null} [taggedCustomFields] EnterpriseUserEnrollmentRemoved taggedCustomFields
|
|
233768
|
+
* @property {boolean|null} [isUngatedDependent] EnterpriseUserEnrollmentRemoved isUngatedDependent
|
|
233739
233769
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
233740
233770
|
*/
|
|
233741
233771
|
|
|
@@ -234120,6 +234150,14 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
234120
234150
|
*/
|
|
234121
234151
|
EnterpriseUserEnrollmentRemoved.prototype.taggedCustomFields = $util.emptyArray;
|
|
234122
234152
|
|
|
234153
|
+
/**
|
|
234154
|
+
* EnterpriseUserEnrollmentRemoved isUngatedDependent.
|
|
234155
|
+
* @member {boolean} isUngatedDependent
|
|
234156
|
+
* @memberof EnterpriseUserEnrollmentRemoved
|
|
234157
|
+
* @instance
|
|
234158
|
+
*/
|
|
234159
|
+
EnterpriseUserEnrollmentRemoved.prototype.isUngatedDependent = false;
|
|
234160
|
+
|
|
234123
234161
|
/**
|
|
234124
234162
|
* Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
|
|
234125
234163
|
* @function create
|
|
@@ -234237,6 +234275,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
234237
234275
|
if (message.taggedCustomFields != null && message.taggedCustomFields.length)
|
|
234238
234276
|
for (var i = 0; i < message.taggedCustomFields.length; ++i)
|
|
234239
234277
|
$root.TaggedCustomField.encode(message.taggedCustomFields[i], writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
|
|
234278
|
+
if (message.isUngatedDependent != null && Object.hasOwnProperty.call(message, "isUngatedDependent"))
|
|
234279
|
+
writer.uint32(/* id 51, wireType 0 =*/408).bool(message.isUngatedDependent);
|
|
234240
234280
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
234241
234281
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
234242
234282
|
writer.raw(message.$unknowns[i]);
|
|
@@ -234679,6 +234719,15 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
234679
234719
|
message.taggedCustomFields.push($root.TaggedCustomField.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
234680
234720
|
continue;
|
|
234681
234721
|
}
|
|
234722
|
+
case 51: {
|
|
234723
|
+
if (wireType !== 0)
|
|
234724
|
+
break;
|
|
234725
|
+
if (value = reader.bool())
|
|
234726
|
+
message.isUngatedDependent = value;
|
|
234727
|
+
else
|
|
234728
|
+
delete message.isUngatedDependent;
|
|
234729
|
+
continue;
|
|
234730
|
+
}
|
|
234682
234731
|
}
|
|
234683
234732
|
reader.skipType(wireType, _depth, tag);
|
|
234684
234733
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -234939,6 +234988,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
234939
234988
|
return "taggedCustomFields." + error;
|
|
234940
234989
|
}
|
|
234941
234990
|
}
|
|
234991
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
234992
|
+
if (typeof message.isUngatedDependent !== "boolean")
|
|
234993
|
+
return "isUngatedDependent: boolean expected";
|
|
234942
234994
|
return null;
|
|
234943
234995
|
};
|
|
234944
234996
|
|
|
@@ -235396,6 +235448,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
235396
235448
|
message.taggedCustomFields[i] = $root.TaggedCustomField.fromObject(object.taggedCustomFields[i], _depth + 1);
|
|
235397
235449
|
}
|
|
235398
235450
|
}
|
|
235451
|
+
if (object.isUngatedDependent != null)
|
|
235452
|
+
if (object.isUngatedDependent)
|
|
235453
|
+
message.isUngatedDependent = Boolean(object.isUngatedDependent);
|
|
235399
235454
|
return message;
|
|
235400
235455
|
};
|
|
235401
235456
|
|
|
@@ -235478,6 +235533,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
235478
235533
|
object.externalEligibility = "";
|
|
235479
235534
|
object.externalClientId = "";
|
|
235480
235535
|
object.brandLogoUrl = "";
|
|
235536
|
+
object.isUngatedDependent = false;
|
|
235481
235537
|
}
|
|
235482
235538
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
235483
235539
|
object.userId = message.userId;
|
|
@@ -235595,6 +235651,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
235595
235651
|
for (var j = 0; j < message.taggedCustomFields.length; ++j)
|
|
235596
235652
|
object.taggedCustomFields[j] = $root.TaggedCustomField.toObject(message.taggedCustomFields[j], options);
|
|
235597
235653
|
}
|
|
235654
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
235655
|
+
object.isUngatedDependent = message.isUngatedDependent;
|
|
235598
235656
|
return object;
|
|
235599
235657
|
};
|
|
235600
235658
|
|
|
@@ -235683,6 +235741,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
235683
235741
|
* @property {string|null} [brandLogoUrl] EnterpriseUserEnrollmentAmended brandLogoUrl
|
|
235684
235742
|
* @property {boolean|null} [isTextCoachingDisabled] EnterpriseUserEnrollmentAmended isTextCoachingDisabled
|
|
235685
235743
|
* @property {Array.<TaggedCustomField.$Properties>|null} [taggedCustomFields] EnterpriseUserEnrollmentAmended taggedCustomFields
|
|
235744
|
+
* @property {boolean|null} [isUngatedDependent] EnterpriseUserEnrollmentAmended isUngatedDependent
|
|
235686
235745
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
235687
235746
|
*/
|
|
235688
235747
|
|
|
@@ -236131,6 +236190,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
236131
236190
|
*/
|
|
236132
236191
|
EnterpriseUserEnrollmentAmended.prototype.taggedCustomFields = $util.emptyArray;
|
|
236133
236192
|
|
|
236193
|
+
/**
|
|
236194
|
+
* EnterpriseUserEnrollmentAmended isUngatedDependent.
|
|
236195
|
+
* @member {boolean} isUngatedDependent
|
|
236196
|
+
* @memberof EnterpriseUserEnrollmentAmended
|
|
236197
|
+
* @instance
|
|
236198
|
+
*/
|
|
236199
|
+
EnterpriseUserEnrollmentAmended.prototype.isUngatedDependent = false;
|
|
236200
|
+
|
|
236134
236201
|
/**
|
|
236135
236202
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
236136
236203
|
* @function create
|
|
@@ -236264,6 +236331,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
236264
236331
|
if (message.taggedCustomFields != null && message.taggedCustomFields.length)
|
|
236265
236332
|
for (var i = 0; i < message.taggedCustomFields.length; ++i)
|
|
236266
236333
|
$root.TaggedCustomField.encode(message.taggedCustomFields[i], writer.uint32(/* id 58, wireType 2 =*/466).fork()).ldelim();
|
|
236334
|
+
if (message.isUngatedDependent != null && Object.hasOwnProperty.call(message, "isUngatedDependent"))
|
|
236335
|
+
writer.uint32(/* id 59, wireType 0 =*/472).bool(message.isUngatedDependent);
|
|
236267
236336
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
236268
236337
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
236269
236338
|
writer.raw(message.$unknowns[i]);
|
|
@@ -236778,6 +236847,15 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
236778
236847
|
message.taggedCustomFields.push($root.TaggedCustomField.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
236779
236848
|
continue;
|
|
236780
236849
|
}
|
|
236850
|
+
case 59: {
|
|
236851
|
+
if (wireType !== 0)
|
|
236852
|
+
break;
|
|
236853
|
+
if (value = reader.bool())
|
|
236854
|
+
message.isUngatedDependent = value;
|
|
236855
|
+
else
|
|
236856
|
+
delete message.isUngatedDependent;
|
|
236857
|
+
continue;
|
|
236858
|
+
}
|
|
236781
236859
|
}
|
|
236782
236860
|
reader.skipType(wireType, _depth, tag);
|
|
236783
236861
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -237047,6 +237125,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
237047
237125
|
return "taggedCustomFields." + error;
|
|
237048
237126
|
}
|
|
237049
237127
|
}
|
|
237128
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
237129
|
+
if (typeof message.isUngatedDependent !== "boolean")
|
|
237130
|
+
return "isUngatedDependent: boolean expected";
|
|
237050
237131
|
return null;
|
|
237051
237132
|
};
|
|
237052
237133
|
|
|
@@ -237474,6 +237555,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
237474
237555
|
message.taggedCustomFields[i] = $root.TaggedCustomField.fromObject(object.taggedCustomFields[i], _depth + 1);
|
|
237475
237556
|
}
|
|
237476
237557
|
}
|
|
237558
|
+
if (object.isUngatedDependent != null)
|
|
237559
|
+
if (object.isUngatedDependent)
|
|
237560
|
+
message.isUngatedDependent = Boolean(object.isUngatedDependent);
|
|
237477
237561
|
return message;
|
|
237478
237562
|
};
|
|
237479
237563
|
|
|
@@ -237564,6 +237648,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
237564
237648
|
object.externalClientId = "";
|
|
237565
237649
|
object.brandLogoUrl = "";
|
|
237566
237650
|
object.isTextCoachingDisabled = false;
|
|
237651
|
+
object.isUngatedDependent = false;
|
|
237567
237652
|
}
|
|
237568
237653
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
237569
237654
|
object.userId = message.userId;
|
|
@@ -237697,6 +237782,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
237697
237782
|
for (var j = 0; j < message.taggedCustomFields.length; ++j)
|
|
237698
237783
|
object.taggedCustomFields[j] = $root.TaggedCustomField.toObject(message.taggedCustomFields[j], options);
|
|
237699
237784
|
}
|
|
237785
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
237786
|
+
object.isUngatedDependent = message.isUngatedDependent;
|
|
237700
237787
|
return object;
|
|
237701
237788
|
};
|
|
237702
237789
|
|
|
@@ -237750,6 +237837,7 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
237750
237837
|
* @property {boolean|null} [b2bAreEnrollmentCommsEnabled] EnterpriseUserEnrollmentInitiated b2bAreEnrollmentCommsEnabled
|
|
237751
237838
|
* @property {boolean|null} [suppressCoachingCommunications] EnterpriseUserEnrollmentInitiated suppressCoachingCommunications
|
|
237752
237839
|
* @property {Array.<TaggedCustomField.$Properties>|null} [taggedCustomFields] EnterpriseUserEnrollmentInitiated taggedCustomFields
|
|
237840
|
+
* @property {boolean|null} [isUngatedDependent] EnterpriseUserEnrollmentInitiated isUngatedDependent
|
|
237753
237841
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
237754
237842
|
*/
|
|
237755
237843
|
|
|
@@ -237918,6 +238006,14 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
237918
238006
|
*/
|
|
237919
238007
|
EnterpriseUserEnrollmentInitiated.prototype.taggedCustomFields = $util.emptyArray;
|
|
237920
238008
|
|
|
238009
|
+
/**
|
|
238010
|
+
* EnterpriseUserEnrollmentInitiated isUngatedDependent.
|
|
238011
|
+
* @member {boolean} isUngatedDependent
|
|
238012
|
+
* @memberof EnterpriseUserEnrollmentInitiated
|
|
238013
|
+
* @instance
|
|
238014
|
+
*/
|
|
238015
|
+
EnterpriseUserEnrollmentInitiated.prototype.isUngatedDependent = false;
|
|
238016
|
+
|
|
237921
238017
|
/**
|
|
237922
238018
|
* Creates a new EnterpriseUserEnrollmentInitiated instance using the specified properties.
|
|
237923
238019
|
* @function create
|
|
@@ -237981,6 +238077,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
237981
238077
|
if (message.taggedCustomFields != null && message.taggedCustomFields.length)
|
|
237982
238078
|
for (var i = 0; i < message.taggedCustomFields.length; ++i)
|
|
237983
238079
|
$root.TaggedCustomField.encode(message.taggedCustomFields[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
238080
|
+
if (message.isUngatedDependent != null && Object.hasOwnProperty.call(message, "isUngatedDependent"))
|
|
238081
|
+
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isUngatedDependent);
|
|
237984
238082
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
237985
238083
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
237986
238084
|
writer.raw(message.$unknowns[i]);
|
|
@@ -238180,6 +238278,15 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
238180
238278
|
message.taggedCustomFields.push($root.TaggedCustomField.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
238181
238279
|
continue;
|
|
238182
238280
|
}
|
|
238281
|
+
case 18: {
|
|
238282
|
+
if (wireType !== 0)
|
|
238283
|
+
break;
|
|
238284
|
+
if (value = reader.bool())
|
|
238285
|
+
message.isUngatedDependent = value;
|
|
238286
|
+
else
|
|
238287
|
+
delete message.isUngatedDependent;
|
|
238288
|
+
continue;
|
|
238289
|
+
}
|
|
238183
238290
|
}
|
|
238184
238291
|
reader.skipType(wireType, _depth, tag);
|
|
238185
238292
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -238278,6 +238385,9 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
238278
238385
|
return "taggedCustomFields." + error;
|
|
238279
238386
|
}
|
|
238280
238387
|
}
|
|
238388
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
238389
|
+
if (typeof message.isUngatedDependent !== "boolean")
|
|
238390
|
+
return "isUngatedDependent: boolean expected";
|
|
238281
238391
|
return null;
|
|
238282
238392
|
};
|
|
238283
238393
|
|
|
@@ -238362,6 +238472,9 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
238362
238472
|
message.taggedCustomFields[i] = $root.TaggedCustomField.fromObject(object.taggedCustomFields[i], _depth + 1);
|
|
238363
238473
|
}
|
|
238364
238474
|
}
|
|
238475
|
+
if (object.isUngatedDependent != null)
|
|
238476
|
+
if (object.isUngatedDependent)
|
|
238477
|
+
message.isUngatedDependent = Boolean(object.isUngatedDependent);
|
|
238365
238478
|
return message;
|
|
238366
238479
|
};
|
|
238367
238480
|
|
|
@@ -238401,6 +238514,7 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
238401
238514
|
object.b2bAreNonmemberCommsEnabled = false;
|
|
238402
238515
|
object.b2bAreEnrollmentCommsEnabled = false;
|
|
238403
238516
|
object.suppressCoachingCommunications = false;
|
|
238517
|
+
object.isUngatedDependent = false;
|
|
238404
238518
|
}
|
|
238405
238519
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
238406
238520
|
object.hsUserId = message.hsUserId;
|
|
@@ -238444,6 +238558,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
238444
238558
|
for (var j = 0; j < message.taggedCustomFields.length; ++j)
|
|
238445
238559
|
object.taggedCustomFields[j] = $root.TaggedCustomField.toObject(message.taggedCustomFields[j], options);
|
|
238446
238560
|
}
|
|
238561
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
238562
|
+
object.isUngatedDependent = message.isUngatedDependent;
|
|
238447
238563
|
return object;
|
|
238448
238564
|
};
|
|
238449
238565
|
|
|
@@ -238490,6 +238606,7 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
238490
238606
|
* @property {number|null} [overlappedCareOrgId] EnterpriseUserEnrollmentUpgraded overlappedCareOrgId
|
|
238491
238607
|
* @property {boolean|null} [isTextCoachingDisabled] EnterpriseUserEnrollmentUpgraded isTextCoachingDisabled
|
|
238492
238608
|
* @property {Array.<TaggedCustomField.$Properties>|null} [taggedCustomFields] EnterpriseUserEnrollmentUpgraded taggedCustomFields
|
|
238609
|
+
* @property {boolean|null} [isUngatedDependent] EnterpriseUserEnrollmentUpgraded isUngatedDependent
|
|
238493
238610
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
238494
238611
|
*/
|
|
238495
238612
|
|
|
@@ -238602,6 +238719,14 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
238602
238719
|
*/
|
|
238603
238720
|
EnterpriseUserEnrollmentUpgraded.prototype.taggedCustomFields = $util.emptyArray;
|
|
238604
238721
|
|
|
238722
|
+
/**
|
|
238723
|
+
* EnterpriseUserEnrollmentUpgraded isUngatedDependent.
|
|
238724
|
+
* @member {boolean} isUngatedDependent
|
|
238725
|
+
* @memberof EnterpriseUserEnrollmentUpgraded
|
|
238726
|
+
* @instance
|
|
238727
|
+
*/
|
|
238728
|
+
EnterpriseUserEnrollmentUpgraded.prototype.isUngatedDependent = false;
|
|
238729
|
+
|
|
238605
238730
|
/**
|
|
238606
238731
|
* Creates a new EnterpriseUserEnrollmentUpgraded instance using the specified properties.
|
|
238607
238732
|
* @function create
|
|
@@ -238651,6 +238776,8 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
238651
238776
|
if (message.taggedCustomFields != null && message.taggedCustomFields.length)
|
|
238652
238777
|
for (var i = 0; i < message.taggedCustomFields.length; ++i)
|
|
238653
238778
|
$root.TaggedCustomField.encode(message.taggedCustomFields[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
238779
|
+
if (message.isUngatedDependent != null && Object.hasOwnProperty.call(message, "isUngatedDependent"))
|
|
238780
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isUngatedDependent);
|
|
238654
238781
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
238655
238782
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
238656
238783
|
writer.raw(message.$unknowns[i]);
|
|
@@ -238787,6 +238914,15 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
238787
238914
|
message.taggedCustomFields.push($root.TaggedCustomField.decode(reader, reader.uint32(), undefined, _depth + 1));
|
|
238788
238915
|
continue;
|
|
238789
238916
|
}
|
|
238917
|
+
case 11: {
|
|
238918
|
+
if (wireType !== 0)
|
|
238919
|
+
break;
|
|
238920
|
+
if (value = reader.bool())
|
|
238921
|
+
message.isUngatedDependent = value;
|
|
238922
|
+
else
|
|
238923
|
+
delete message.isUngatedDependent;
|
|
238924
|
+
continue;
|
|
238925
|
+
}
|
|
238790
238926
|
}
|
|
238791
238927
|
reader.skipType(wireType, _depth, tag);
|
|
238792
238928
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -238882,6 +239018,9 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
238882
239018
|
return "taggedCustomFields." + error;
|
|
238883
239019
|
}
|
|
238884
239020
|
}
|
|
239021
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
239022
|
+
if (typeof message.isUngatedDependent !== "boolean")
|
|
239023
|
+
return "isUngatedDependent: boolean expected";
|
|
238885
239024
|
return null;
|
|
238886
239025
|
};
|
|
238887
239026
|
|
|
@@ -239005,6 +239144,9 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
239005
239144
|
message.taggedCustomFields[i] = $root.TaggedCustomField.fromObject(object.taggedCustomFields[i], _depth + 1);
|
|
239006
239145
|
}
|
|
239007
239146
|
}
|
|
239147
|
+
if (object.isUngatedDependent != null)
|
|
239148
|
+
if (object.isUngatedDependent)
|
|
239149
|
+
message.isUngatedDependent = Boolean(object.isUngatedDependent);
|
|
239008
239150
|
return message;
|
|
239009
239151
|
};
|
|
239010
239152
|
|
|
@@ -239037,6 +239179,7 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
239037
239179
|
object.enrollmentOrgId = 0;
|
|
239038
239180
|
object.overlappedCareOrgId = 0;
|
|
239039
239181
|
object.isTextCoachingDisabled = false;
|
|
239182
|
+
object.isUngatedDependent = false;
|
|
239040
239183
|
}
|
|
239041
239184
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
239042
239185
|
object.userId = message.userId;
|
|
@@ -239066,6 +239209,8 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
|
|
|
239066
239209
|
for (var j = 0; j < message.taggedCustomFields.length; ++j)
|
|
239067
239210
|
object.taggedCustomFields[j] = $root.TaggedCustomField.toObject(message.taggedCustomFields[j], options);
|
|
239068
239211
|
}
|
|
239212
|
+
if (message.isUngatedDependent != null && message.hasOwnProperty("isUngatedDependent"))
|
|
239213
|
+
object.isUngatedDependent = message.isUngatedDependent;
|
|
239069
239214
|
return object;
|
|
239070
239215
|
};
|
|
239071
239216
|
|
|
@@ -260485,6 +260630,640 @@ $root.GingerClinicalNoteExported = (function() {
|
|
|
260485
260630
|
return GingerClinicalNoteExported;
|
|
260486
260631
|
})();
|
|
260487
260632
|
|
|
260633
|
+
/**
|
|
260634
|
+
* EncounterStatus enum.
|
|
260635
|
+
* @name EncounterStatus
|
|
260636
|
+
* @enum {number}
|
|
260637
|
+
* @property {number} ENCOUNTER_STATUS_UNKNOWN=0 ENCOUNTER_STATUS_UNKNOWN value
|
|
260638
|
+
* @property {number} ENCOUNTER_STATUS_FINISHED=1 ENCOUNTER_STATUS_FINISHED value
|
|
260639
|
+
*/
|
|
260640
|
+
$root.EncounterStatus = (function() {
|
|
260641
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
260642
|
+
values[valuesById[0] = "ENCOUNTER_STATUS_UNKNOWN"] = 0;
|
|
260643
|
+
values[valuesById[1] = "ENCOUNTER_STATUS_FINISHED"] = 1;
|
|
260644
|
+
return values;
|
|
260645
|
+
})();
|
|
260646
|
+
|
|
260647
|
+
/**
|
|
260648
|
+
* CoachingSessionFormat enum.
|
|
260649
|
+
* @name CoachingSessionFormat
|
|
260650
|
+
* @enum {number}
|
|
260651
|
+
* @property {number} COACHING_SESSION_FORMAT_UNKNOWN=0 COACHING_SESSION_FORMAT_UNKNOWN value
|
|
260652
|
+
* @property {number} COACHING_SESSION_FORMAT_CHAT=1 COACHING_SESSION_FORMAT_CHAT value
|
|
260653
|
+
* @property {number} COACHING_SESSION_FORMAT_VIDEO=2 COACHING_SESSION_FORMAT_VIDEO value
|
|
260654
|
+
*/
|
|
260655
|
+
$root.CoachingSessionFormat = (function() {
|
|
260656
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
260657
|
+
values[valuesById[0] = "COACHING_SESSION_FORMAT_UNKNOWN"] = 0;
|
|
260658
|
+
values[valuesById[1] = "COACHING_SESSION_FORMAT_CHAT"] = 1;
|
|
260659
|
+
values[valuesById[2] = "COACHING_SESSION_FORMAT_VIDEO"] = 2;
|
|
260660
|
+
return values;
|
|
260661
|
+
})();
|
|
260662
|
+
|
|
260663
|
+
$root.CoachingEncounterExported = (function() {
|
|
260664
|
+
|
|
260665
|
+
/**
|
|
260666
|
+
* Properties of a CoachingEncounterExported.
|
|
260667
|
+
* @typedef {Object} CoachingEncounterExported.$Properties
|
|
260668
|
+
* @property {string|null} [coachGivenName] CoachingEncounterExported coachGivenName
|
|
260669
|
+
* @property {string|null} [coachFamilyName] CoachingEncounterExported coachFamilyName
|
|
260670
|
+
* @property {string|null} [coachIdentifier] CoachingEncounterExported coachIdentifier
|
|
260671
|
+
* @property {string|null} [encounterId] CoachingEncounterExported encounterId
|
|
260672
|
+
* @property {EncounterStatus|null} [encounterStatus] CoachingEncounterExported encounterStatus
|
|
260673
|
+
* @property {number|Long|null} [encounterStart] CoachingEncounterExported encounterStart
|
|
260674
|
+
* @property {number|Long|null} [encounterEnd] CoachingEncounterExported encounterEnd
|
|
260675
|
+
* @property {string|null} [hsUserId] CoachingEncounterExported hsUserId
|
|
260676
|
+
* @property {CoachingSessionFormat|null} [sessionFormat] CoachingEncounterExported sessionFormat
|
|
260677
|
+
* @property {number|Long|null} [timestamp] CoachingEncounterExported timestamp
|
|
260678
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260679
|
+
*/
|
|
260680
|
+
|
|
260681
|
+
/**
|
|
260682
|
+
* Properties of a CoachingEncounterExported.
|
|
260683
|
+
* @name ICoachingEncounterExported
|
|
260684
|
+
* @interface ICoachingEncounterExported
|
|
260685
|
+
* @augments CoachingEncounterExported.$Properties
|
|
260686
|
+
* @deprecated Use CoachingEncounterExported.$Properties instead.
|
|
260687
|
+
*/
|
|
260688
|
+
|
|
260689
|
+
/**
|
|
260690
|
+
* Shape of a CoachingEncounterExported.
|
|
260691
|
+
* @typedef {CoachingEncounterExported.$Properties} CoachingEncounterExported.$Shape
|
|
260692
|
+
*/
|
|
260693
|
+
|
|
260694
|
+
/**
|
|
260695
|
+
* Constructs a new CoachingEncounterExported.
|
|
260696
|
+
* @name CoachingEncounterExported
|
|
260697
|
+
* @classdesc Published when listener-server has a closed coaching session ready for
|
|
260698
|
+
* hs-hie-service to compose a FHIR Encounter for HIE delivery. Light
|
|
260699
|
+
* encounter metadata only -- no clinical note content. encounter_id correlates
|
|
260700
|
+
* to HieDeliverySucceeded/Failed.source_event_id.
|
|
260701
|
+
* @constructor
|
|
260702
|
+
* @param {CoachingEncounterExported.$Properties=} [properties] Properties to set
|
|
260703
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260704
|
+
*/
|
|
260705
|
+
function CoachingEncounterExported(properties) {
|
|
260706
|
+
if (properties)
|
|
260707
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
260708
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
260709
|
+
this[keys[i]] = properties[keys[i]];
|
|
260710
|
+
}
|
|
260711
|
+
|
|
260712
|
+
/**
|
|
260713
|
+
* CoachingEncounterExported coachGivenName.
|
|
260714
|
+
* @member {string} coachGivenName
|
|
260715
|
+
* @memberof CoachingEncounterExported
|
|
260716
|
+
* @instance
|
|
260717
|
+
*/
|
|
260718
|
+
CoachingEncounterExported.prototype.coachGivenName = "";
|
|
260719
|
+
|
|
260720
|
+
/**
|
|
260721
|
+
* CoachingEncounterExported coachFamilyName.
|
|
260722
|
+
* @member {string} coachFamilyName
|
|
260723
|
+
* @memberof CoachingEncounterExported
|
|
260724
|
+
* @instance
|
|
260725
|
+
*/
|
|
260726
|
+
CoachingEncounterExported.prototype.coachFamilyName = "";
|
|
260727
|
+
|
|
260728
|
+
/**
|
|
260729
|
+
* CoachingEncounterExported coachIdentifier.
|
|
260730
|
+
* @member {string} coachIdentifier
|
|
260731
|
+
* @memberof CoachingEncounterExported
|
|
260732
|
+
* @instance
|
|
260733
|
+
*/
|
|
260734
|
+
CoachingEncounterExported.prototype.coachIdentifier = "";
|
|
260735
|
+
|
|
260736
|
+
/**
|
|
260737
|
+
* CoachingEncounterExported encounterId.
|
|
260738
|
+
* @member {string} encounterId
|
|
260739
|
+
* @memberof CoachingEncounterExported
|
|
260740
|
+
* @instance
|
|
260741
|
+
*/
|
|
260742
|
+
CoachingEncounterExported.prototype.encounterId = "";
|
|
260743
|
+
|
|
260744
|
+
/**
|
|
260745
|
+
* CoachingEncounterExported encounterStatus.
|
|
260746
|
+
* @member {EncounterStatus} encounterStatus
|
|
260747
|
+
* @memberof CoachingEncounterExported
|
|
260748
|
+
* @instance
|
|
260749
|
+
*/
|
|
260750
|
+
CoachingEncounterExported.prototype.encounterStatus = 0;
|
|
260751
|
+
|
|
260752
|
+
/**
|
|
260753
|
+
* CoachingEncounterExported encounterStart.
|
|
260754
|
+
* @member {number|Long} encounterStart
|
|
260755
|
+
* @memberof CoachingEncounterExported
|
|
260756
|
+
* @instance
|
|
260757
|
+
*/
|
|
260758
|
+
CoachingEncounterExported.prototype.encounterStart = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
260759
|
+
|
|
260760
|
+
/**
|
|
260761
|
+
* CoachingEncounterExported encounterEnd.
|
|
260762
|
+
* @member {number|Long} encounterEnd
|
|
260763
|
+
* @memberof CoachingEncounterExported
|
|
260764
|
+
* @instance
|
|
260765
|
+
*/
|
|
260766
|
+
CoachingEncounterExported.prototype.encounterEnd = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
260767
|
+
|
|
260768
|
+
/**
|
|
260769
|
+
* CoachingEncounterExported hsUserId.
|
|
260770
|
+
* @member {string} hsUserId
|
|
260771
|
+
* @memberof CoachingEncounterExported
|
|
260772
|
+
* @instance
|
|
260773
|
+
*/
|
|
260774
|
+
CoachingEncounterExported.prototype.hsUserId = "";
|
|
260775
|
+
|
|
260776
|
+
/**
|
|
260777
|
+
* CoachingEncounterExported sessionFormat.
|
|
260778
|
+
* @member {CoachingSessionFormat} sessionFormat
|
|
260779
|
+
* @memberof CoachingEncounterExported
|
|
260780
|
+
* @instance
|
|
260781
|
+
*/
|
|
260782
|
+
CoachingEncounterExported.prototype.sessionFormat = 0;
|
|
260783
|
+
|
|
260784
|
+
/**
|
|
260785
|
+
* CoachingEncounterExported timestamp.
|
|
260786
|
+
* @member {number|Long} timestamp
|
|
260787
|
+
* @memberof CoachingEncounterExported
|
|
260788
|
+
* @instance
|
|
260789
|
+
*/
|
|
260790
|
+
CoachingEncounterExported.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
260791
|
+
|
|
260792
|
+
/**
|
|
260793
|
+
* Creates a new CoachingEncounterExported instance using the specified properties.
|
|
260794
|
+
* @function create
|
|
260795
|
+
* @memberof CoachingEncounterExported
|
|
260796
|
+
* @static
|
|
260797
|
+
* @param {CoachingEncounterExported.$Properties=} [properties] Properties to set
|
|
260798
|
+
* @returns {CoachingEncounterExported} CoachingEncounterExported instance
|
|
260799
|
+
* @type {{
|
|
260800
|
+
* (properties: CoachingEncounterExported.$Shape): CoachingEncounterExported & CoachingEncounterExported.$Shape;
|
|
260801
|
+
* (properties?: CoachingEncounterExported.$Properties): CoachingEncounterExported;
|
|
260802
|
+
* }}
|
|
260803
|
+
*/
|
|
260804
|
+
CoachingEncounterExported.create = function create(properties) {
|
|
260805
|
+
return new CoachingEncounterExported(properties);
|
|
260806
|
+
};
|
|
260807
|
+
|
|
260808
|
+
/**
|
|
260809
|
+
* Encodes the specified CoachingEncounterExported message. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
|
|
260810
|
+
* @function encode
|
|
260811
|
+
* @memberof CoachingEncounterExported
|
|
260812
|
+
* @static
|
|
260813
|
+
* @param {CoachingEncounterExported.$Properties} message CoachingEncounterExported message or plain object to encode
|
|
260814
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260815
|
+
* @returns {$protobuf.Writer} Writer
|
|
260816
|
+
*/
|
|
260817
|
+
CoachingEncounterExported.encode = function encode(message, writer) {
|
|
260818
|
+
if (!writer)
|
|
260819
|
+
writer = $Writer.create();
|
|
260820
|
+
if (message.coachGivenName != null && Object.hasOwnProperty.call(message, "coachGivenName"))
|
|
260821
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.coachGivenName);
|
|
260822
|
+
if (message.coachFamilyName != null && Object.hasOwnProperty.call(message, "coachFamilyName"))
|
|
260823
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.coachFamilyName);
|
|
260824
|
+
if (message.coachIdentifier != null && Object.hasOwnProperty.call(message, "coachIdentifier"))
|
|
260825
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.coachIdentifier);
|
|
260826
|
+
if (message.encounterId != null && Object.hasOwnProperty.call(message, "encounterId"))
|
|
260827
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.encounterId);
|
|
260828
|
+
if (message.encounterStatus != null && Object.hasOwnProperty.call(message, "encounterStatus"))
|
|
260829
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.encounterStatus);
|
|
260830
|
+
if (message.encounterStart != null && Object.hasOwnProperty.call(message, "encounterStart"))
|
|
260831
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.encounterStart);
|
|
260832
|
+
if (message.encounterEnd != null && Object.hasOwnProperty.call(message, "encounterEnd"))
|
|
260833
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.encounterEnd);
|
|
260834
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
260835
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.hsUserId);
|
|
260836
|
+
if (message.sessionFormat != null && Object.hasOwnProperty.call(message, "sessionFormat"))
|
|
260837
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.sessionFormat);
|
|
260838
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
260839
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.timestamp);
|
|
260840
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
260841
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
260842
|
+
writer.raw(message.$unknowns[i]);
|
|
260843
|
+
return writer;
|
|
260844
|
+
};
|
|
260845
|
+
|
|
260846
|
+
/**
|
|
260847
|
+
* Encodes the specified CoachingEncounterExported message, length delimited. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
|
|
260848
|
+
* @function encodeDelimited
|
|
260849
|
+
* @memberof CoachingEncounterExported
|
|
260850
|
+
* @static
|
|
260851
|
+
* @param {CoachingEncounterExported.$Properties} message CoachingEncounterExported message or plain object to encode
|
|
260852
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260853
|
+
* @returns {$protobuf.Writer} Writer
|
|
260854
|
+
*/
|
|
260855
|
+
CoachingEncounterExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
260856
|
+
return this.encode(message, writer).ldelim();
|
|
260857
|
+
};
|
|
260858
|
+
|
|
260859
|
+
/**
|
|
260860
|
+
* Decodes a CoachingEncounterExported message from the specified reader or buffer.
|
|
260861
|
+
* @function decode
|
|
260862
|
+
* @memberof CoachingEncounterExported
|
|
260863
|
+
* @static
|
|
260864
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260865
|
+
* @param {number} [length] Message length if known beforehand
|
|
260866
|
+
* @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
|
|
260867
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260868
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260869
|
+
*/
|
|
260870
|
+
CoachingEncounterExported.decode = function decode(reader, length, _end, _depth, _target) {
|
|
260871
|
+
if (!(reader instanceof $Reader))
|
|
260872
|
+
reader = $Reader.create(reader);
|
|
260873
|
+
if (_depth === undefined)
|
|
260874
|
+
_depth = 0;
|
|
260875
|
+
if (_depth > $Reader.recursionLimit)
|
|
260876
|
+
throw Error("max depth exceeded");
|
|
260877
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CoachingEncounterExported(), value;
|
|
260878
|
+
while (reader.pos < end) {
|
|
260879
|
+
var start = reader.pos;
|
|
260880
|
+
var tag = reader.tag();
|
|
260881
|
+
if (tag === _end) {
|
|
260882
|
+
_end = undefined;
|
|
260883
|
+
break;
|
|
260884
|
+
}
|
|
260885
|
+
var wireType = tag & 7;
|
|
260886
|
+
switch (tag >>>= 3) {
|
|
260887
|
+
case 1: {
|
|
260888
|
+
if (wireType !== 2)
|
|
260889
|
+
break;
|
|
260890
|
+
if ((value = reader.string()).length)
|
|
260891
|
+
message.coachGivenName = value;
|
|
260892
|
+
else
|
|
260893
|
+
delete message.coachGivenName;
|
|
260894
|
+
continue;
|
|
260895
|
+
}
|
|
260896
|
+
case 2: {
|
|
260897
|
+
if (wireType !== 2)
|
|
260898
|
+
break;
|
|
260899
|
+
if ((value = reader.string()).length)
|
|
260900
|
+
message.coachFamilyName = value;
|
|
260901
|
+
else
|
|
260902
|
+
delete message.coachFamilyName;
|
|
260903
|
+
continue;
|
|
260904
|
+
}
|
|
260905
|
+
case 3: {
|
|
260906
|
+
if (wireType !== 2)
|
|
260907
|
+
break;
|
|
260908
|
+
if ((value = reader.string()).length)
|
|
260909
|
+
message.coachIdentifier = value;
|
|
260910
|
+
else
|
|
260911
|
+
delete message.coachIdentifier;
|
|
260912
|
+
continue;
|
|
260913
|
+
}
|
|
260914
|
+
case 4: {
|
|
260915
|
+
if (wireType !== 2)
|
|
260916
|
+
break;
|
|
260917
|
+
if ((value = reader.string()).length)
|
|
260918
|
+
message.encounterId = value;
|
|
260919
|
+
else
|
|
260920
|
+
delete message.encounterId;
|
|
260921
|
+
continue;
|
|
260922
|
+
}
|
|
260923
|
+
case 5: {
|
|
260924
|
+
if (wireType !== 0)
|
|
260925
|
+
break;
|
|
260926
|
+
if (value = reader.int32())
|
|
260927
|
+
message.encounterStatus = value;
|
|
260928
|
+
else
|
|
260929
|
+
delete message.encounterStatus;
|
|
260930
|
+
continue;
|
|
260931
|
+
}
|
|
260932
|
+
case 6: {
|
|
260933
|
+
if (wireType !== 0)
|
|
260934
|
+
break;
|
|
260935
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
260936
|
+
message.encounterStart = value;
|
|
260937
|
+
else
|
|
260938
|
+
delete message.encounterStart;
|
|
260939
|
+
continue;
|
|
260940
|
+
}
|
|
260941
|
+
case 7: {
|
|
260942
|
+
if (wireType !== 0)
|
|
260943
|
+
break;
|
|
260944
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
260945
|
+
message.encounterEnd = value;
|
|
260946
|
+
else
|
|
260947
|
+
delete message.encounterEnd;
|
|
260948
|
+
continue;
|
|
260949
|
+
}
|
|
260950
|
+
case 8: {
|
|
260951
|
+
if (wireType !== 2)
|
|
260952
|
+
break;
|
|
260953
|
+
if ((value = reader.string()).length)
|
|
260954
|
+
message.hsUserId = value;
|
|
260955
|
+
else
|
|
260956
|
+
delete message.hsUserId;
|
|
260957
|
+
continue;
|
|
260958
|
+
}
|
|
260959
|
+
case 9: {
|
|
260960
|
+
if (wireType !== 0)
|
|
260961
|
+
break;
|
|
260962
|
+
if (value = reader.int32())
|
|
260963
|
+
message.sessionFormat = value;
|
|
260964
|
+
else
|
|
260965
|
+
delete message.sessionFormat;
|
|
260966
|
+
continue;
|
|
260967
|
+
}
|
|
260968
|
+
case 10: {
|
|
260969
|
+
if (wireType !== 0)
|
|
260970
|
+
break;
|
|
260971
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
260972
|
+
message.timestamp = value;
|
|
260973
|
+
else
|
|
260974
|
+
delete message.timestamp;
|
|
260975
|
+
continue;
|
|
260976
|
+
}
|
|
260977
|
+
}
|
|
260978
|
+
reader.skipType(wireType, _depth, tag);
|
|
260979
|
+
$util.makeProp(message, "$unknowns", false);
|
|
260980
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
260981
|
+
}
|
|
260982
|
+
if (_end !== undefined)
|
|
260983
|
+
throw Error("missing end group");
|
|
260984
|
+
return message;
|
|
260985
|
+
};
|
|
260986
|
+
|
|
260987
|
+
/**
|
|
260988
|
+
* Decodes a CoachingEncounterExported message from the specified reader or buffer, length delimited.
|
|
260989
|
+
* @function decodeDelimited
|
|
260990
|
+
* @memberof CoachingEncounterExported
|
|
260991
|
+
* @static
|
|
260992
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260993
|
+
* @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
|
|
260994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260996
|
+
*/
|
|
260997
|
+
CoachingEncounterExported.decodeDelimited = function decodeDelimited(reader) {
|
|
260998
|
+
if (!(reader instanceof $Reader))
|
|
260999
|
+
reader = new $Reader(reader);
|
|
261000
|
+
return this.decode(reader, reader.uint32());
|
|
261001
|
+
};
|
|
261002
|
+
|
|
261003
|
+
/**
|
|
261004
|
+
* Verifies a CoachingEncounterExported message.
|
|
261005
|
+
* @function verify
|
|
261006
|
+
* @memberof CoachingEncounterExported
|
|
261007
|
+
* @static
|
|
261008
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
261009
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
261010
|
+
*/
|
|
261011
|
+
CoachingEncounterExported.verify = function verify(message, _depth) {
|
|
261012
|
+
if (typeof message !== "object" || message === null)
|
|
261013
|
+
return "object expected";
|
|
261014
|
+
if (_depth === undefined)
|
|
261015
|
+
_depth = 0;
|
|
261016
|
+
if (_depth > $util.recursionLimit)
|
|
261017
|
+
return "max depth exceeded";
|
|
261018
|
+
if (message.coachGivenName != null && message.hasOwnProperty("coachGivenName"))
|
|
261019
|
+
if (!$util.isString(message.coachGivenName))
|
|
261020
|
+
return "coachGivenName: string expected";
|
|
261021
|
+
if (message.coachFamilyName != null && message.hasOwnProperty("coachFamilyName"))
|
|
261022
|
+
if (!$util.isString(message.coachFamilyName))
|
|
261023
|
+
return "coachFamilyName: string expected";
|
|
261024
|
+
if (message.coachIdentifier != null && message.hasOwnProperty("coachIdentifier"))
|
|
261025
|
+
if (!$util.isString(message.coachIdentifier))
|
|
261026
|
+
return "coachIdentifier: string expected";
|
|
261027
|
+
if (message.encounterId != null && message.hasOwnProperty("encounterId"))
|
|
261028
|
+
if (!$util.isString(message.encounterId))
|
|
261029
|
+
return "encounterId: string expected";
|
|
261030
|
+
if (message.encounterStatus != null && message.hasOwnProperty("encounterStatus"))
|
|
261031
|
+
switch (message.encounterStatus) {
|
|
261032
|
+
default:
|
|
261033
|
+
return "encounterStatus: enum value expected";
|
|
261034
|
+
case 0:
|
|
261035
|
+
case 1:
|
|
261036
|
+
break;
|
|
261037
|
+
}
|
|
261038
|
+
if (message.encounterStart != null && message.hasOwnProperty("encounterStart"))
|
|
261039
|
+
if (!$util.isInteger(message.encounterStart) && !(message.encounterStart && $util.isInteger(message.encounterStart.low) && $util.isInteger(message.encounterStart.high)))
|
|
261040
|
+
return "encounterStart: integer|Long expected";
|
|
261041
|
+
if (message.encounterEnd != null && message.hasOwnProperty("encounterEnd"))
|
|
261042
|
+
if (!$util.isInteger(message.encounterEnd) && !(message.encounterEnd && $util.isInteger(message.encounterEnd.low) && $util.isInteger(message.encounterEnd.high)))
|
|
261043
|
+
return "encounterEnd: integer|Long expected";
|
|
261044
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
261045
|
+
if (!$util.isString(message.hsUserId))
|
|
261046
|
+
return "hsUserId: string expected";
|
|
261047
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
261048
|
+
switch (message.sessionFormat) {
|
|
261049
|
+
default:
|
|
261050
|
+
return "sessionFormat: enum value expected";
|
|
261051
|
+
case 0:
|
|
261052
|
+
case 1:
|
|
261053
|
+
case 2:
|
|
261054
|
+
break;
|
|
261055
|
+
}
|
|
261056
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
261057
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
261058
|
+
return "timestamp: integer|Long expected";
|
|
261059
|
+
return null;
|
|
261060
|
+
};
|
|
261061
|
+
|
|
261062
|
+
/**
|
|
261063
|
+
* Creates a CoachingEncounterExported message from a plain object. Also converts values to their respective internal types.
|
|
261064
|
+
* @function fromObject
|
|
261065
|
+
* @memberof CoachingEncounterExported
|
|
261066
|
+
* @static
|
|
261067
|
+
* @param {Object.<string,*>} object Plain object
|
|
261068
|
+
* @returns {CoachingEncounterExported} CoachingEncounterExported
|
|
261069
|
+
*/
|
|
261070
|
+
CoachingEncounterExported.fromObject = function fromObject(object, _depth) {
|
|
261071
|
+
if (object instanceof $root.CoachingEncounterExported)
|
|
261072
|
+
return object;
|
|
261073
|
+
if (_depth === undefined)
|
|
261074
|
+
_depth = 0;
|
|
261075
|
+
if (_depth > $util.recursionLimit)
|
|
261076
|
+
throw Error("max depth exceeded");
|
|
261077
|
+
var message = new $root.CoachingEncounterExported();
|
|
261078
|
+
if (object.coachGivenName != null)
|
|
261079
|
+
if (typeof object.coachGivenName !== "string" || object.coachGivenName.length)
|
|
261080
|
+
message.coachGivenName = String(object.coachGivenName);
|
|
261081
|
+
if (object.coachFamilyName != null)
|
|
261082
|
+
if (typeof object.coachFamilyName !== "string" || object.coachFamilyName.length)
|
|
261083
|
+
message.coachFamilyName = String(object.coachFamilyName);
|
|
261084
|
+
if (object.coachIdentifier != null)
|
|
261085
|
+
if (typeof object.coachIdentifier !== "string" || object.coachIdentifier.length)
|
|
261086
|
+
message.coachIdentifier = String(object.coachIdentifier);
|
|
261087
|
+
if (object.encounterId != null)
|
|
261088
|
+
if (typeof object.encounterId !== "string" || object.encounterId.length)
|
|
261089
|
+
message.encounterId = String(object.encounterId);
|
|
261090
|
+
if (object.encounterStatus !== 0 && (typeof object.encounterStatus !== "string" || $root.EncounterStatus[object.encounterStatus] !== 0))
|
|
261091
|
+
switch (object.encounterStatus) {
|
|
261092
|
+
default:
|
|
261093
|
+
if (typeof object.encounterStatus === "number") {
|
|
261094
|
+
message.encounterStatus = object.encounterStatus;
|
|
261095
|
+
break;
|
|
261096
|
+
}
|
|
261097
|
+
break;
|
|
261098
|
+
case "ENCOUNTER_STATUS_UNKNOWN":
|
|
261099
|
+
case 0:
|
|
261100
|
+
message.encounterStatus = 0;
|
|
261101
|
+
break;
|
|
261102
|
+
case "ENCOUNTER_STATUS_FINISHED":
|
|
261103
|
+
case 1:
|
|
261104
|
+
message.encounterStatus = 1;
|
|
261105
|
+
break;
|
|
261106
|
+
}
|
|
261107
|
+
if (object.encounterStart != null)
|
|
261108
|
+
if (typeof object.encounterStart === "object" ? object.encounterStart.low || object.encounterStart.high : Number(object.encounterStart) !== 0)
|
|
261109
|
+
if ($util.Long)
|
|
261110
|
+
(message.encounterStart = $util.Long.fromValue(object.encounterStart)).unsigned = true;
|
|
261111
|
+
else if (typeof object.encounterStart === "string")
|
|
261112
|
+
message.encounterStart = parseInt(object.encounterStart, 10);
|
|
261113
|
+
else if (typeof object.encounterStart === "number")
|
|
261114
|
+
message.encounterStart = object.encounterStart;
|
|
261115
|
+
else if (typeof object.encounterStart === "object")
|
|
261116
|
+
message.encounterStart = new $util.LongBits(object.encounterStart.low >>> 0, object.encounterStart.high >>> 0).toNumber(true);
|
|
261117
|
+
if (object.encounterEnd != null)
|
|
261118
|
+
if (typeof object.encounterEnd === "object" ? object.encounterEnd.low || object.encounterEnd.high : Number(object.encounterEnd) !== 0)
|
|
261119
|
+
if ($util.Long)
|
|
261120
|
+
(message.encounterEnd = $util.Long.fromValue(object.encounterEnd)).unsigned = true;
|
|
261121
|
+
else if (typeof object.encounterEnd === "string")
|
|
261122
|
+
message.encounterEnd = parseInt(object.encounterEnd, 10);
|
|
261123
|
+
else if (typeof object.encounterEnd === "number")
|
|
261124
|
+
message.encounterEnd = object.encounterEnd;
|
|
261125
|
+
else if (typeof object.encounterEnd === "object")
|
|
261126
|
+
message.encounterEnd = new $util.LongBits(object.encounterEnd.low >>> 0, object.encounterEnd.high >>> 0).toNumber(true);
|
|
261127
|
+
if (object.hsUserId != null)
|
|
261128
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
261129
|
+
message.hsUserId = String(object.hsUserId);
|
|
261130
|
+
if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.CoachingSessionFormat[object.sessionFormat] !== 0))
|
|
261131
|
+
switch (object.sessionFormat) {
|
|
261132
|
+
default:
|
|
261133
|
+
if (typeof object.sessionFormat === "number") {
|
|
261134
|
+
message.sessionFormat = object.sessionFormat;
|
|
261135
|
+
break;
|
|
261136
|
+
}
|
|
261137
|
+
break;
|
|
261138
|
+
case "COACHING_SESSION_FORMAT_UNKNOWN":
|
|
261139
|
+
case 0:
|
|
261140
|
+
message.sessionFormat = 0;
|
|
261141
|
+
break;
|
|
261142
|
+
case "COACHING_SESSION_FORMAT_CHAT":
|
|
261143
|
+
case 1:
|
|
261144
|
+
message.sessionFormat = 1;
|
|
261145
|
+
break;
|
|
261146
|
+
case "COACHING_SESSION_FORMAT_VIDEO":
|
|
261147
|
+
case 2:
|
|
261148
|
+
message.sessionFormat = 2;
|
|
261149
|
+
break;
|
|
261150
|
+
}
|
|
261151
|
+
if (object.timestamp != null)
|
|
261152
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
261153
|
+
if ($util.Long)
|
|
261154
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
261155
|
+
else if (typeof object.timestamp === "string")
|
|
261156
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
261157
|
+
else if (typeof object.timestamp === "number")
|
|
261158
|
+
message.timestamp = object.timestamp;
|
|
261159
|
+
else if (typeof object.timestamp === "object")
|
|
261160
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
261161
|
+
return message;
|
|
261162
|
+
};
|
|
261163
|
+
|
|
261164
|
+
/**
|
|
261165
|
+
* Creates a plain object from a CoachingEncounterExported message. Also converts values to other types if specified.
|
|
261166
|
+
* @function toObject
|
|
261167
|
+
* @memberof CoachingEncounterExported
|
|
261168
|
+
* @static
|
|
261169
|
+
* @param {CoachingEncounterExported} message CoachingEncounterExported
|
|
261170
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
261171
|
+
* @returns {Object.<string,*>} Plain object
|
|
261172
|
+
*/
|
|
261173
|
+
CoachingEncounterExported.toObject = function toObject(message, options) {
|
|
261174
|
+
if (!options)
|
|
261175
|
+
options = {};
|
|
261176
|
+
var object = {};
|
|
261177
|
+
if (options.defaults) {
|
|
261178
|
+
object.coachGivenName = "";
|
|
261179
|
+
object.coachFamilyName = "";
|
|
261180
|
+
object.coachIdentifier = "";
|
|
261181
|
+
object.encounterId = "";
|
|
261182
|
+
object.encounterStatus = options.enums === String ? "ENCOUNTER_STATUS_UNKNOWN" : 0;
|
|
261183
|
+
if ($util.Long) {
|
|
261184
|
+
var long = new $util.Long(0, 0, true);
|
|
261185
|
+
object.encounterStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
261186
|
+
} else
|
|
261187
|
+
object.encounterStart = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
261188
|
+
if ($util.Long) {
|
|
261189
|
+
var long = new $util.Long(0, 0, true);
|
|
261190
|
+
object.encounterEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
261191
|
+
} else
|
|
261192
|
+
object.encounterEnd = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
261193
|
+
object.hsUserId = "";
|
|
261194
|
+
object.sessionFormat = options.enums === String ? "COACHING_SESSION_FORMAT_UNKNOWN" : 0;
|
|
261195
|
+
if ($util.Long) {
|
|
261196
|
+
var long = new $util.Long(0, 0, true);
|
|
261197
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
261198
|
+
} else
|
|
261199
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
261200
|
+
}
|
|
261201
|
+
if (message.coachGivenName != null && message.hasOwnProperty("coachGivenName"))
|
|
261202
|
+
object.coachGivenName = message.coachGivenName;
|
|
261203
|
+
if (message.coachFamilyName != null && message.hasOwnProperty("coachFamilyName"))
|
|
261204
|
+
object.coachFamilyName = message.coachFamilyName;
|
|
261205
|
+
if (message.coachIdentifier != null && message.hasOwnProperty("coachIdentifier"))
|
|
261206
|
+
object.coachIdentifier = message.coachIdentifier;
|
|
261207
|
+
if (message.encounterId != null && message.hasOwnProperty("encounterId"))
|
|
261208
|
+
object.encounterId = message.encounterId;
|
|
261209
|
+
if (message.encounterStatus != null && message.hasOwnProperty("encounterStatus"))
|
|
261210
|
+
object.encounterStatus = options.enums === String ? $root.EncounterStatus[message.encounterStatus] === undefined ? message.encounterStatus : $root.EncounterStatus[message.encounterStatus] : message.encounterStatus;
|
|
261211
|
+
if (message.encounterStart != null && message.hasOwnProperty("encounterStart"))
|
|
261212
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
261213
|
+
object.encounterStart = typeof message.encounterStart === "number" ? BigInt(message.encounterStart) : $util.Long.fromBits(message.encounterStart.low >>> 0, message.encounterStart.high >>> 0, true).toBigInt();
|
|
261214
|
+
else if (typeof message.encounterStart === "number")
|
|
261215
|
+
object.encounterStart = options.longs === String ? String(message.encounterStart) : message.encounterStart;
|
|
261216
|
+
else
|
|
261217
|
+
object.encounterStart = options.longs === String ? $util.Long.prototype.toString.call(message.encounterStart) : options.longs === Number ? new $util.LongBits(message.encounterStart.low >>> 0, message.encounterStart.high >>> 0).toNumber(true) : message.encounterStart;
|
|
261218
|
+
if (message.encounterEnd != null && message.hasOwnProperty("encounterEnd"))
|
|
261219
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
261220
|
+
object.encounterEnd = typeof message.encounterEnd === "number" ? BigInt(message.encounterEnd) : $util.Long.fromBits(message.encounterEnd.low >>> 0, message.encounterEnd.high >>> 0, true).toBigInt();
|
|
261221
|
+
else if (typeof message.encounterEnd === "number")
|
|
261222
|
+
object.encounterEnd = options.longs === String ? String(message.encounterEnd) : message.encounterEnd;
|
|
261223
|
+
else
|
|
261224
|
+
object.encounterEnd = options.longs === String ? $util.Long.prototype.toString.call(message.encounterEnd) : options.longs === Number ? new $util.LongBits(message.encounterEnd.low >>> 0, message.encounterEnd.high >>> 0).toNumber(true) : message.encounterEnd;
|
|
261225
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
261226
|
+
object.hsUserId = message.hsUserId;
|
|
261227
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
261228
|
+
object.sessionFormat = options.enums === String ? $root.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
|
|
261229
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
261230
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
261231
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
261232
|
+
else if (typeof message.timestamp === "number")
|
|
261233
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
261234
|
+
else
|
|
261235
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
261236
|
+
return object;
|
|
261237
|
+
};
|
|
261238
|
+
|
|
261239
|
+
/**
|
|
261240
|
+
* Converts this CoachingEncounterExported to JSON.
|
|
261241
|
+
* @function toJSON
|
|
261242
|
+
* @memberof CoachingEncounterExported
|
|
261243
|
+
* @instance
|
|
261244
|
+
* @returns {Object.<string,*>} JSON object
|
|
261245
|
+
*/
|
|
261246
|
+
CoachingEncounterExported.prototype.toJSON = function toJSON() {
|
|
261247
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
261248
|
+
};
|
|
261249
|
+
|
|
261250
|
+
/**
|
|
261251
|
+
* Gets the type url for CoachingEncounterExported
|
|
261252
|
+
* @function getTypeUrl
|
|
261253
|
+
* @memberof CoachingEncounterExported
|
|
261254
|
+
* @static
|
|
261255
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
261256
|
+
* @returns {string} The type url
|
|
261257
|
+
*/
|
|
261258
|
+
CoachingEncounterExported.getTypeUrl = function getTypeUrl(prefix) {
|
|
261259
|
+
if (prefix === undefined)
|
|
261260
|
+
prefix = "type.googleapis.com";
|
|
261261
|
+
return prefix + "/CoachingEncounterExported";
|
|
261262
|
+
};
|
|
261263
|
+
|
|
261264
|
+
return CoachingEncounterExported;
|
|
261265
|
+
})();
|
|
261266
|
+
|
|
260488
261267
|
/**
|
|
260489
261268
|
* GingerClinicalNoteType enum.
|
|
260490
261269
|
* @name GingerClinicalNoteType
|