@headspace/protos-events 1.836.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +205 -6
  2. package/lib/index.js +646 -12
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -22249,7 +22249,7 @@ export namespace coaching {
22249
22249
  dropinSessionId: (number|Long);
22250
22250
 
22251
22251
  /** ListenerCoachingExperimentalChatRatingCreated sessionFormat. */
22252
- sessionFormat: coaching.CoachingSessionFormat;
22252
+ sessionFormat: CoachingSessionFormat;
22253
22253
 
22254
22254
  /**
22255
22255
  * Creates a new ListenerCoachingExperimentalChatRatingCreated instance using the specified properties.
@@ -22384,7 +22384,7 @@ export namespace coaching {
22384
22384
  dropinSessionId?: (number|Long|null);
22385
22385
 
22386
22386
  /** ListenerCoachingExperimentalChatRatingCreated sessionFormat */
22387
- sessionFormat?: (coaching.CoachingSessionFormat|null);
22387
+ sessionFormat?: (CoachingSessionFormat|null);
22388
22388
 
22389
22389
  /** Unknown fields preserved while decoding */
22390
22390
  $unknowns?: Uint8Array[];
@@ -22474,7 +22474,7 @@ export namespace coaching {
22474
22474
  chatConversationId: string;
22475
22475
 
22476
22476
  /** The medium format of the session. */
22477
- sessionFormat: coaching.CoachingSessionFormat;
22477
+ sessionFormat: CoachingSessionFormat;
22478
22478
 
22479
22479
  /** ScheduledCoachingSession engagedAt. */
22480
22480
  engagedAt: (number|Long);
@@ -22629,7 +22629,7 @@ export namespace coaching {
22629
22629
  chatConversationId?: (string|null);
22630
22630
 
22631
22631
  /** The medium format of the session. */
22632
- sessionFormat?: (coaching.CoachingSessionFormat|null);
22632
+ sessionFormat?: (CoachingSessionFormat|null);
22633
22633
 
22634
22634
  /** ScheduledCoachingSession engagedAt */
22635
22635
  engagedAt?: (number|Long|null);
@@ -23338,7 +23338,7 @@ export namespace coaching {
23338
23338
  dropinSessionId: (number|Long);
23339
23339
 
23340
23340
  /** CoachingChatRating sessionFormat. */
23341
- sessionFormat: coaching.CoachingSessionFormat;
23341
+ sessionFormat: CoachingSessionFormat;
23342
23342
 
23343
23343
  /** CoachingChatRating understoodRating. */
23344
23344
  understoodRating: number;
@@ -23467,7 +23467,7 @@ export namespace coaching {
23467
23467
  dropinSessionId?: (number|Long|null);
23468
23468
 
23469
23469
  /** CoachingChatRating sessionFormat */
23470
- sessionFormat?: (coaching.CoachingSessionFormat|null);
23470
+ sessionFormat?: (CoachingSessionFormat|null);
23471
23471
 
23472
23472
  /** CoachingChatRating understoodRating */
23473
23473
  understoodRating?: (number|null);
@@ -88550,6 +88550,205 @@ export namespace GingerClinicalNoteExported {
88550
88550
  type $Shape = GingerClinicalNoteExported.$Properties;
88551
88551
  }
88552
88552
 
88553
+ /** EncounterStatus enum. */
88554
+ export enum EncounterStatus {
88555
+
88556
+ /** ENCOUNTER_STATUS_UNKNOWN value */
88557
+ ENCOUNTER_STATUS_UNKNOWN = 0,
88558
+
88559
+ /** ENCOUNTER_STATUS_FINISHED value */
88560
+ ENCOUNTER_STATUS_FINISHED = 1
88561
+ }
88562
+
88563
+ /** CoachingSessionFormat enum. */
88564
+ export enum CoachingSessionFormat {
88565
+
88566
+ /** COACHING_SESSION_FORMAT_UNKNOWN value */
88567
+ COACHING_SESSION_FORMAT_UNKNOWN = 0,
88568
+
88569
+ /** COACHING_SESSION_FORMAT_CHAT value */
88570
+ COACHING_SESSION_FORMAT_CHAT = 1,
88571
+
88572
+ /** COACHING_SESSION_FORMAT_VIDEO value */
88573
+ COACHING_SESSION_FORMAT_VIDEO = 2
88574
+ }
88575
+
88576
+ /**
88577
+ * Properties of a CoachingEncounterExported.
88578
+ * @deprecated Use CoachingEncounterExported.$Properties instead.
88579
+ */
88580
+ export interface ICoachingEncounterExported extends CoachingEncounterExported.$Properties {
88581
+ }
88582
+
88583
+ /**
88584
+ * Published when listener-server has a closed coaching session ready for
88585
+ * hs-hie-service to compose a FHIR Encounter for HIE delivery. Light
88586
+ * encounter metadata only -- no clinical note content. encounter_id correlates
88587
+ * to HieDeliverySucceeded/Failed.source_event_id.
88588
+ */
88589
+ export class CoachingEncounterExported {
88590
+
88591
+ /**
88592
+ * Constructs a new CoachingEncounterExported.
88593
+ * @param [properties] Properties to set
88594
+ */
88595
+ constructor(properties?: CoachingEncounterExported.$Properties);
88596
+
88597
+ /** Unknown fields preserved while decoding */
88598
+ $unknowns?: Uint8Array[];
88599
+
88600
+ /** CoachingEncounterExported coachGivenName. */
88601
+ coachGivenName: string;
88602
+
88603
+ /** CoachingEncounterExported coachFamilyName. */
88604
+ coachFamilyName: string;
88605
+
88606
+ /** CoachingEncounterExported coachIdentifier. */
88607
+ coachIdentifier: string;
88608
+
88609
+ /** CoachingEncounterExported encounterId. */
88610
+ encounterId: string;
88611
+
88612
+ /** CoachingEncounterExported encounterStatus. */
88613
+ encounterStatus: EncounterStatus;
88614
+
88615
+ /** CoachingEncounterExported encounterStart. */
88616
+ encounterStart: (number|Long);
88617
+
88618
+ /** CoachingEncounterExported encounterEnd. */
88619
+ encounterEnd: (number|Long);
88620
+
88621
+ /** CoachingEncounterExported hsUserId. */
88622
+ hsUserId: string;
88623
+
88624
+ /** CoachingEncounterExported sessionFormat. */
88625
+ sessionFormat: CoachingSessionFormat;
88626
+
88627
+ /** CoachingEncounterExported timestamp. */
88628
+ timestamp: (number|Long);
88629
+
88630
+ /**
88631
+ * Creates a new CoachingEncounterExported instance using the specified properties.
88632
+ * @param [properties] Properties to set
88633
+ * @returns CoachingEncounterExported instance
88634
+ */
88635
+ static create(properties: CoachingEncounterExported.$Shape): CoachingEncounterExported & CoachingEncounterExported.$Shape;
88636
+ static create(properties?: CoachingEncounterExported.$Properties): CoachingEncounterExported;
88637
+
88638
+ /**
88639
+ * Encodes the specified CoachingEncounterExported message. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
88640
+ * @param message CoachingEncounterExported message or plain object to encode
88641
+ * @param [writer] Writer to encode to
88642
+ * @returns Writer
88643
+ */
88644
+ static encode(message: CoachingEncounterExported.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
88645
+
88646
+ /**
88647
+ * Encodes the specified CoachingEncounterExported message, length delimited. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
88648
+ * @param message CoachingEncounterExported message or plain object to encode
88649
+ * @param [writer] Writer to encode to
88650
+ * @returns Writer
88651
+ */
88652
+ static encodeDelimited(message: CoachingEncounterExported.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
88653
+
88654
+ /**
88655
+ * Decodes a CoachingEncounterExported message from the specified reader or buffer.
88656
+ * @param reader Reader or buffer to decode from
88657
+ * @param [length] Message length if known beforehand
88658
+ * @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
88659
+ * @throws {Error} If the payload is not a reader or valid buffer
88660
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88661
+ */
88662
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CoachingEncounterExported & CoachingEncounterExported.$Shape;
88663
+
88664
+ /**
88665
+ * Decodes a CoachingEncounterExported message from the specified reader or buffer, length delimited.
88666
+ * @param reader Reader or buffer to decode from
88667
+ * @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
88668
+ * @throws {Error} If the payload is not a reader or valid buffer
88669
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88670
+ */
88671
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CoachingEncounterExported & CoachingEncounterExported.$Shape;
88672
+
88673
+ /**
88674
+ * Verifies a CoachingEncounterExported message.
88675
+ * @param message Plain object to verify
88676
+ * @returns `null` if valid, otherwise the reason why it is not
88677
+ */
88678
+ static verify(message: { [k: string]: any }): (string|null);
88679
+
88680
+ /**
88681
+ * Creates a CoachingEncounterExported message from a plain object. Also converts values to their respective internal types.
88682
+ * @param object Plain object
88683
+ * @returns CoachingEncounterExported
88684
+ */
88685
+ static fromObject(object: { [k: string]: any }): CoachingEncounterExported;
88686
+
88687
+ /**
88688
+ * Creates a plain object from a CoachingEncounterExported message. Also converts values to other types if specified.
88689
+ * @param message CoachingEncounterExported
88690
+ * @param [options] Conversion options
88691
+ * @returns Plain object
88692
+ */
88693
+ static toObject(message: CoachingEncounterExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
88694
+
88695
+ /**
88696
+ * Converts this CoachingEncounterExported to JSON.
88697
+ * @returns JSON object
88698
+ */
88699
+ toJSON(): { [k: string]: any };
88700
+
88701
+ /**
88702
+ * Gets the type url for CoachingEncounterExported
88703
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
88704
+ * @returns The type url
88705
+ */
88706
+ static getTypeUrl(prefix?: string): string;
88707
+ }
88708
+
88709
+ export namespace CoachingEncounterExported {
88710
+
88711
+ /** Properties of a CoachingEncounterExported. */
88712
+ interface $Properties {
88713
+
88714
+ /** CoachingEncounterExported coachGivenName */
88715
+ coachGivenName?: (string|null);
88716
+
88717
+ /** CoachingEncounterExported coachFamilyName */
88718
+ coachFamilyName?: (string|null);
88719
+
88720
+ /** CoachingEncounterExported coachIdentifier */
88721
+ coachIdentifier?: (string|null);
88722
+
88723
+ /** CoachingEncounterExported encounterId */
88724
+ encounterId?: (string|null);
88725
+
88726
+ /** CoachingEncounterExported encounterStatus */
88727
+ encounterStatus?: (EncounterStatus|null);
88728
+
88729
+ /** CoachingEncounterExported encounterStart */
88730
+ encounterStart?: (number|Long|null);
88731
+
88732
+ /** CoachingEncounterExported encounterEnd */
88733
+ encounterEnd?: (number|Long|null);
88734
+
88735
+ /** CoachingEncounterExported hsUserId */
88736
+ hsUserId?: (string|null);
88737
+
88738
+ /** CoachingEncounterExported sessionFormat */
88739
+ sessionFormat?: (CoachingSessionFormat|null);
88740
+
88741
+ /** CoachingEncounterExported timestamp */
88742
+ timestamp?: (number|Long|null);
88743
+
88744
+ /** Unknown fields preserved while decoding */
88745
+ $unknowns?: Uint8Array[];
88746
+ }
88747
+
88748
+ /** Shape of a CoachingEncounterExported. */
88749
+ type $Shape = CoachingEncounterExported.$Properties;
88750
+ }
88751
+
88553
88752
  /** GingerClinicalNoteType enum. */
88554
88753
  export enum GingerClinicalNoteType {
88555
88754
 
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 {coaching.CoachingSessionFormat|null} [sessionFormat] ListenerCoachingExperimentalChatRatingCreated sessionFormat
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 {coaching.CoachingSessionFormat} sessionFormat
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.coaching.CoachingSessionFormat[object.sessionFormat] !== 0))
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.coaching.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.coaching.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
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 {coaching.CoachingSessionFormat|null} [sessionFormat] The medium format of the session.
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 {coaching.CoachingSessionFormat} sessionFormat
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.coaching.CoachingSessionFormat[object.sessionFormat] !== 0))
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.coaching.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.coaching.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
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 {coaching.CoachingSessionFormat|null} [sessionFormat] CoachingChatRating sessionFormat
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 {coaching.CoachingSessionFormat} sessionFormat
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.coaching.CoachingSessionFormat[object.sessionFormat] !== 0))
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.coaching.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.coaching.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
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"))
@@ -260630,6 +260630,640 @@ $root.GingerClinicalNoteExported = (function() {
260630
260630
  return GingerClinicalNoteExported;
260631
260631
  })();
260632
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
+
260633
261267
  /**
260634
261268
  * GingerClinicalNoteType enum.
260635
261269
  * @name GingerClinicalNoteType
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.836.0"
19
+ "version": "1.837.0"
20
20
  }