@headspace/protos-events 1.836.0 → 1.838.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 +211 -6
  2. package/lib/index.js +675 -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);
@@ -82009,6 +82009,9 @@ export class ExperienceOverrideTagsUpdated {
82009
82009
  /** ExperienceOverrideTagsUpdated overrideTagsStringified. */
82010
82010
  overrideTagsStringified: string;
82011
82011
 
82012
+ /** ExperienceOverrideTagsUpdated contentSlug. */
82013
+ contentSlug: string;
82014
+
82012
82015
  /**
82013
82016
  * Creates a new ExperienceOverrideTagsUpdated instance using the specified properties.
82014
82017
  * @param [properties] Properties to set
@@ -82099,6 +82102,9 @@ export namespace ExperienceOverrideTagsUpdated {
82099
82102
  /** ExperienceOverrideTagsUpdated overrideTagsStringified */
82100
82103
  overrideTagsStringified?: (string|null);
82101
82104
 
82105
+ /** ExperienceOverrideTagsUpdated contentSlug */
82106
+ contentSlug?: (string|null);
82107
+
82102
82108
  /** Unknown fields preserved while decoding */
82103
82109
  $unknowns?: Uint8Array[];
82104
82110
  }
@@ -88550,6 +88556,205 @@ export namespace GingerClinicalNoteExported {
88550
88556
  type $Shape = GingerClinicalNoteExported.$Properties;
88551
88557
  }
88552
88558
 
88559
+ /** EncounterStatus enum. */
88560
+ export enum EncounterStatus {
88561
+
88562
+ /** ENCOUNTER_STATUS_UNKNOWN value */
88563
+ ENCOUNTER_STATUS_UNKNOWN = 0,
88564
+
88565
+ /** ENCOUNTER_STATUS_FINISHED value */
88566
+ ENCOUNTER_STATUS_FINISHED = 1
88567
+ }
88568
+
88569
+ /** CoachingSessionFormat enum. */
88570
+ export enum CoachingSessionFormat {
88571
+
88572
+ /** COACHING_SESSION_FORMAT_UNKNOWN value */
88573
+ COACHING_SESSION_FORMAT_UNKNOWN = 0,
88574
+
88575
+ /** COACHING_SESSION_FORMAT_CHAT value */
88576
+ COACHING_SESSION_FORMAT_CHAT = 1,
88577
+
88578
+ /** COACHING_SESSION_FORMAT_VIDEO value */
88579
+ COACHING_SESSION_FORMAT_VIDEO = 2
88580
+ }
88581
+
88582
+ /**
88583
+ * Properties of a CoachingEncounterExported.
88584
+ * @deprecated Use CoachingEncounterExported.$Properties instead.
88585
+ */
88586
+ export interface ICoachingEncounterExported extends CoachingEncounterExported.$Properties {
88587
+ }
88588
+
88589
+ /**
88590
+ * Published when listener-server has a closed coaching session ready for
88591
+ * hs-hie-service to compose a FHIR Encounter for HIE delivery. Light
88592
+ * encounter metadata only -- no clinical note content. encounter_id correlates
88593
+ * to HieDeliverySucceeded/Failed.source_event_id.
88594
+ */
88595
+ export class CoachingEncounterExported {
88596
+
88597
+ /**
88598
+ * Constructs a new CoachingEncounterExported.
88599
+ * @param [properties] Properties to set
88600
+ */
88601
+ constructor(properties?: CoachingEncounterExported.$Properties);
88602
+
88603
+ /** Unknown fields preserved while decoding */
88604
+ $unknowns?: Uint8Array[];
88605
+
88606
+ /** CoachingEncounterExported coachGivenName. */
88607
+ coachGivenName: string;
88608
+
88609
+ /** CoachingEncounterExported coachFamilyName. */
88610
+ coachFamilyName: string;
88611
+
88612
+ /** CoachingEncounterExported coachIdentifier. */
88613
+ coachIdentifier: string;
88614
+
88615
+ /** CoachingEncounterExported encounterId. */
88616
+ encounterId: string;
88617
+
88618
+ /** CoachingEncounterExported encounterStatus. */
88619
+ encounterStatus: EncounterStatus;
88620
+
88621
+ /** CoachingEncounterExported encounterStart. */
88622
+ encounterStart: (number|Long);
88623
+
88624
+ /** CoachingEncounterExported encounterEnd. */
88625
+ encounterEnd: (number|Long);
88626
+
88627
+ /** CoachingEncounterExported hsUserId. */
88628
+ hsUserId: string;
88629
+
88630
+ /** CoachingEncounterExported sessionFormat. */
88631
+ sessionFormat: CoachingSessionFormat;
88632
+
88633
+ /** CoachingEncounterExported timestamp. */
88634
+ timestamp: (number|Long);
88635
+
88636
+ /**
88637
+ * Creates a new CoachingEncounterExported instance using the specified properties.
88638
+ * @param [properties] Properties to set
88639
+ * @returns CoachingEncounterExported instance
88640
+ */
88641
+ static create(properties: CoachingEncounterExported.$Shape): CoachingEncounterExported & CoachingEncounterExported.$Shape;
88642
+ static create(properties?: CoachingEncounterExported.$Properties): CoachingEncounterExported;
88643
+
88644
+ /**
88645
+ * Encodes the specified CoachingEncounterExported message. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
88646
+ * @param message CoachingEncounterExported message or plain object to encode
88647
+ * @param [writer] Writer to encode to
88648
+ * @returns Writer
88649
+ */
88650
+ static encode(message: CoachingEncounterExported.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
88651
+
88652
+ /**
88653
+ * Encodes the specified CoachingEncounterExported message, length delimited. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
88654
+ * @param message CoachingEncounterExported message or plain object to encode
88655
+ * @param [writer] Writer to encode to
88656
+ * @returns Writer
88657
+ */
88658
+ static encodeDelimited(message: CoachingEncounterExported.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
88659
+
88660
+ /**
88661
+ * Decodes a CoachingEncounterExported message from the specified reader or buffer.
88662
+ * @param reader Reader or buffer to decode from
88663
+ * @param [length] Message length if known beforehand
88664
+ * @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
88665
+ * @throws {Error} If the payload is not a reader or valid buffer
88666
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88667
+ */
88668
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CoachingEncounterExported & CoachingEncounterExported.$Shape;
88669
+
88670
+ /**
88671
+ * Decodes a CoachingEncounterExported message from the specified reader or buffer, length delimited.
88672
+ * @param reader Reader or buffer to decode from
88673
+ * @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
88674
+ * @throws {Error} If the payload is not a reader or valid buffer
88675
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88676
+ */
88677
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CoachingEncounterExported & CoachingEncounterExported.$Shape;
88678
+
88679
+ /**
88680
+ * Verifies a CoachingEncounterExported message.
88681
+ * @param message Plain object to verify
88682
+ * @returns `null` if valid, otherwise the reason why it is not
88683
+ */
88684
+ static verify(message: { [k: string]: any }): (string|null);
88685
+
88686
+ /**
88687
+ * Creates a CoachingEncounterExported message from a plain object. Also converts values to their respective internal types.
88688
+ * @param object Plain object
88689
+ * @returns CoachingEncounterExported
88690
+ */
88691
+ static fromObject(object: { [k: string]: any }): CoachingEncounterExported;
88692
+
88693
+ /**
88694
+ * Creates a plain object from a CoachingEncounterExported message. Also converts values to other types if specified.
88695
+ * @param message CoachingEncounterExported
88696
+ * @param [options] Conversion options
88697
+ * @returns Plain object
88698
+ */
88699
+ static toObject(message: CoachingEncounterExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
88700
+
88701
+ /**
88702
+ * Converts this CoachingEncounterExported to JSON.
88703
+ * @returns JSON object
88704
+ */
88705
+ toJSON(): { [k: string]: any };
88706
+
88707
+ /**
88708
+ * Gets the type url for CoachingEncounterExported
88709
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
88710
+ * @returns The type url
88711
+ */
88712
+ static getTypeUrl(prefix?: string): string;
88713
+ }
88714
+
88715
+ export namespace CoachingEncounterExported {
88716
+
88717
+ /** Properties of a CoachingEncounterExported. */
88718
+ interface $Properties {
88719
+
88720
+ /** CoachingEncounterExported coachGivenName */
88721
+ coachGivenName?: (string|null);
88722
+
88723
+ /** CoachingEncounterExported coachFamilyName */
88724
+ coachFamilyName?: (string|null);
88725
+
88726
+ /** CoachingEncounterExported coachIdentifier */
88727
+ coachIdentifier?: (string|null);
88728
+
88729
+ /** CoachingEncounterExported encounterId */
88730
+ encounterId?: (string|null);
88731
+
88732
+ /** CoachingEncounterExported encounterStatus */
88733
+ encounterStatus?: (EncounterStatus|null);
88734
+
88735
+ /** CoachingEncounterExported encounterStart */
88736
+ encounterStart?: (number|Long|null);
88737
+
88738
+ /** CoachingEncounterExported encounterEnd */
88739
+ encounterEnd?: (number|Long|null);
88740
+
88741
+ /** CoachingEncounterExported hsUserId */
88742
+ hsUserId?: (string|null);
88743
+
88744
+ /** CoachingEncounterExported sessionFormat */
88745
+ sessionFormat?: (CoachingSessionFormat|null);
88746
+
88747
+ /** CoachingEncounterExported timestamp */
88748
+ timestamp?: (number|Long|null);
88749
+
88750
+ /** Unknown fields preserved while decoding */
88751
+ $unknowns?: Uint8Array[];
88752
+ }
88753
+
88754
+ /** Shape of a CoachingEncounterExported. */
88755
+ type $Shape = CoachingEncounterExported.$Properties;
88756
+ }
88757
+
88553
88758
  /** GingerClinicalNoteType enum. */
88554
88759
  export enum GingerClinicalNoteType {
88555
88760
 
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"))
@@ -240502,6 +240502,7 @@ $root.ExperienceOverrideTagsUpdated = (function() {
240502
240502
  * @typedef {Object} ExperienceOverrideTagsUpdated.$Properties
240503
240503
  * @property {string|null} [experienceId] ExperienceOverrideTagsUpdated experienceId
240504
240504
  * @property {string|null} [overrideTagsStringified] ExperienceOverrideTagsUpdated overrideTagsStringified
240505
+ * @property {string|null} [contentSlug] ExperienceOverrideTagsUpdated contentSlug
240505
240506
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
240506
240507
  */
240507
240508
 
@@ -240552,6 +240553,14 @@ $root.ExperienceOverrideTagsUpdated = (function() {
240552
240553
  */
240553
240554
  ExperienceOverrideTagsUpdated.prototype.overrideTagsStringified = "";
240554
240555
 
240556
+ /**
240557
+ * ExperienceOverrideTagsUpdated contentSlug.
240558
+ * @member {string} contentSlug
240559
+ * @memberof ExperienceOverrideTagsUpdated
240560
+ * @instance
240561
+ */
240562
+ ExperienceOverrideTagsUpdated.prototype.contentSlug = "";
240563
+
240555
240564
  /**
240556
240565
  * Creates a new ExperienceOverrideTagsUpdated instance using the specified properties.
240557
240566
  * @function create
@@ -240584,6 +240593,8 @@ $root.ExperienceOverrideTagsUpdated = (function() {
240584
240593
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.experienceId);
240585
240594
  if (message.overrideTagsStringified != null && Object.hasOwnProperty.call(message, "overrideTagsStringified"))
240586
240595
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.overrideTagsStringified);
240596
+ if (message.contentSlug != null && Object.hasOwnProperty.call(message, "contentSlug"))
240597
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentSlug);
240587
240598
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
240588
240599
  for (var i = 0; i < message.$unknowns.length; ++i)
240589
240600
  writer.raw(message.$unknowns[i]);
@@ -240649,6 +240660,15 @@ $root.ExperienceOverrideTagsUpdated = (function() {
240649
240660
  delete message.overrideTagsStringified;
240650
240661
  continue;
240651
240662
  }
240663
+ case 3: {
240664
+ if (wireType !== 2)
240665
+ break;
240666
+ if ((value = reader.string()).length)
240667
+ message.contentSlug = value;
240668
+ else
240669
+ delete message.contentSlug;
240670
+ continue;
240671
+ }
240652
240672
  }
240653
240673
  reader.skipType(wireType, _depth, tag);
240654
240674
  $util.makeProp(message, "$unknowns", false);
@@ -240696,6 +240716,9 @@ $root.ExperienceOverrideTagsUpdated = (function() {
240696
240716
  if (message.overrideTagsStringified != null && message.hasOwnProperty("overrideTagsStringified"))
240697
240717
  if (!$util.isString(message.overrideTagsStringified))
240698
240718
  return "overrideTagsStringified: string expected";
240719
+ if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
240720
+ if (!$util.isString(message.contentSlug))
240721
+ return "contentSlug: string expected";
240699
240722
  return null;
240700
240723
  };
240701
240724
 
@@ -240721,6 +240744,9 @@ $root.ExperienceOverrideTagsUpdated = (function() {
240721
240744
  if (object.overrideTagsStringified != null)
240722
240745
  if (typeof object.overrideTagsStringified !== "string" || object.overrideTagsStringified.length)
240723
240746
  message.overrideTagsStringified = String(object.overrideTagsStringified);
240747
+ if (object.contentSlug != null)
240748
+ if (typeof object.contentSlug !== "string" || object.contentSlug.length)
240749
+ message.contentSlug = String(object.contentSlug);
240724
240750
  return message;
240725
240751
  };
240726
240752
 
@@ -240740,11 +240766,14 @@ $root.ExperienceOverrideTagsUpdated = (function() {
240740
240766
  if (options.defaults) {
240741
240767
  object.experienceId = "";
240742
240768
  object.overrideTagsStringified = "";
240769
+ object.contentSlug = "";
240743
240770
  }
240744
240771
  if (message.experienceId != null && message.hasOwnProperty("experienceId"))
240745
240772
  object.experienceId = message.experienceId;
240746
240773
  if (message.overrideTagsStringified != null && message.hasOwnProperty("overrideTagsStringified"))
240747
240774
  object.overrideTagsStringified = message.overrideTagsStringified;
240775
+ if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
240776
+ object.contentSlug = message.contentSlug;
240748
240777
  return object;
240749
240778
  };
240750
240779
 
@@ -260630,6 +260659,640 @@ $root.GingerClinicalNoteExported = (function() {
260630
260659
  return GingerClinicalNoteExported;
260631
260660
  })();
260632
260661
 
260662
+ /**
260663
+ * EncounterStatus enum.
260664
+ * @name EncounterStatus
260665
+ * @enum {number}
260666
+ * @property {number} ENCOUNTER_STATUS_UNKNOWN=0 ENCOUNTER_STATUS_UNKNOWN value
260667
+ * @property {number} ENCOUNTER_STATUS_FINISHED=1 ENCOUNTER_STATUS_FINISHED value
260668
+ */
260669
+ $root.EncounterStatus = (function() {
260670
+ var valuesById = {}, values = Object.create(valuesById);
260671
+ values[valuesById[0] = "ENCOUNTER_STATUS_UNKNOWN"] = 0;
260672
+ values[valuesById[1] = "ENCOUNTER_STATUS_FINISHED"] = 1;
260673
+ return values;
260674
+ })();
260675
+
260676
+ /**
260677
+ * CoachingSessionFormat enum.
260678
+ * @name CoachingSessionFormat
260679
+ * @enum {number}
260680
+ * @property {number} COACHING_SESSION_FORMAT_UNKNOWN=0 COACHING_SESSION_FORMAT_UNKNOWN value
260681
+ * @property {number} COACHING_SESSION_FORMAT_CHAT=1 COACHING_SESSION_FORMAT_CHAT value
260682
+ * @property {number} COACHING_SESSION_FORMAT_VIDEO=2 COACHING_SESSION_FORMAT_VIDEO value
260683
+ */
260684
+ $root.CoachingSessionFormat = (function() {
260685
+ var valuesById = {}, values = Object.create(valuesById);
260686
+ values[valuesById[0] = "COACHING_SESSION_FORMAT_UNKNOWN"] = 0;
260687
+ values[valuesById[1] = "COACHING_SESSION_FORMAT_CHAT"] = 1;
260688
+ values[valuesById[2] = "COACHING_SESSION_FORMAT_VIDEO"] = 2;
260689
+ return values;
260690
+ })();
260691
+
260692
+ $root.CoachingEncounterExported = (function() {
260693
+
260694
+ /**
260695
+ * Properties of a CoachingEncounterExported.
260696
+ * @typedef {Object} CoachingEncounterExported.$Properties
260697
+ * @property {string|null} [coachGivenName] CoachingEncounterExported coachGivenName
260698
+ * @property {string|null} [coachFamilyName] CoachingEncounterExported coachFamilyName
260699
+ * @property {string|null} [coachIdentifier] CoachingEncounterExported coachIdentifier
260700
+ * @property {string|null} [encounterId] CoachingEncounterExported encounterId
260701
+ * @property {EncounterStatus|null} [encounterStatus] CoachingEncounterExported encounterStatus
260702
+ * @property {number|Long|null} [encounterStart] CoachingEncounterExported encounterStart
260703
+ * @property {number|Long|null} [encounterEnd] CoachingEncounterExported encounterEnd
260704
+ * @property {string|null} [hsUserId] CoachingEncounterExported hsUserId
260705
+ * @property {CoachingSessionFormat|null} [sessionFormat] CoachingEncounterExported sessionFormat
260706
+ * @property {number|Long|null} [timestamp] CoachingEncounterExported timestamp
260707
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
260708
+ */
260709
+
260710
+ /**
260711
+ * Properties of a CoachingEncounterExported.
260712
+ * @name ICoachingEncounterExported
260713
+ * @interface ICoachingEncounterExported
260714
+ * @augments CoachingEncounterExported.$Properties
260715
+ * @deprecated Use CoachingEncounterExported.$Properties instead.
260716
+ */
260717
+
260718
+ /**
260719
+ * Shape of a CoachingEncounterExported.
260720
+ * @typedef {CoachingEncounterExported.$Properties} CoachingEncounterExported.$Shape
260721
+ */
260722
+
260723
+ /**
260724
+ * Constructs a new CoachingEncounterExported.
260725
+ * @name CoachingEncounterExported
260726
+ * @classdesc Published when listener-server has a closed coaching session ready for
260727
+ * hs-hie-service to compose a FHIR Encounter for HIE delivery. Light
260728
+ * encounter metadata only -- no clinical note content. encounter_id correlates
260729
+ * to HieDeliverySucceeded/Failed.source_event_id.
260730
+ * @constructor
260731
+ * @param {CoachingEncounterExported.$Properties=} [properties] Properties to set
260732
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
260733
+ */
260734
+ function CoachingEncounterExported(properties) {
260735
+ if (properties)
260736
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
260737
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
260738
+ this[keys[i]] = properties[keys[i]];
260739
+ }
260740
+
260741
+ /**
260742
+ * CoachingEncounterExported coachGivenName.
260743
+ * @member {string} coachGivenName
260744
+ * @memberof CoachingEncounterExported
260745
+ * @instance
260746
+ */
260747
+ CoachingEncounterExported.prototype.coachGivenName = "";
260748
+
260749
+ /**
260750
+ * CoachingEncounterExported coachFamilyName.
260751
+ * @member {string} coachFamilyName
260752
+ * @memberof CoachingEncounterExported
260753
+ * @instance
260754
+ */
260755
+ CoachingEncounterExported.prototype.coachFamilyName = "";
260756
+
260757
+ /**
260758
+ * CoachingEncounterExported coachIdentifier.
260759
+ * @member {string} coachIdentifier
260760
+ * @memberof CoachingEncounterExported
260761
+ * @instance
260762
+ */
260763
+ CoachingEncounterExported.prototype.coachIdentifier = "";
260764
+
260765
+ /**
260766
+ * CoachingEncounterExported encounterId.
260767
+ * @member {string} encounterId
260768
+ * @memberof CoachingEncounterExported
260769
+ * @instance
260770
+ */
260771
+ CoachingEncounterExported.prototype.encounterId = "";
260772
+
260773
+ /**
260774
+ * CoachingEncounterExported encounterStatus.
260775
+ * @member {EncounterStatus} encounterStatus
260776
+ * @memberof CoachingEncounterExported
260777
+ * @instance
260778
+ */
260779
+ CoachingEncounterExported.prototype.encounterStatus = 0;
260780
+
260781
+ /**
260782
+ * CoachingEncounterExported encounterStart.
260783
+ * @member {number|Long} encounterStart
260784
+ * @memberof CoachingEncounterExported
260785
+ * @instance
260786
+ */
260787
+ CoachingEncounterExported.prototype.encounterStart = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
260788
+
260789
+ /**
260790
+ * CoachingEncounterExported encounterEnd.
260791
+ * @member {number|Long} encounterEnd
260792
+ * @memberof CoachingEncounterExported
260793
+ * @instance
260794
+ */
260795
+ CoachingEncounterExported.prototype.encounterEnd = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
260796
+
260797
+ /**
260798
+ * CoachingEncounterExported hsUserId.
260799
+ * @member {string} hsUserId
260800
+ * @memberof CoachingEncounterExported
260801
+ * @instance
260802
+ */
260803
+ CoachingEncounterExported.prototype.hsUserId = "";
260804
+
260805
+ /**
260806
+ * CoachingEncounterExported sessionFormat.
260807
+ * @member {CoachingSessionFormat} sessionFormat
260808
+ * @memberof CoachingEncounterExported
260809
+ * @instance
260810
+ */
260811
+ CoachingEncounterExported.prototype.sessionFormat = 0;
260812
+
260813
+ /**
260814
+ * CoachingEncounterExported timestamp.
260815
+ * @member {number|Long} timestamp
260816
+ * @memberof CoachingEncounterExported
260817
+ * @instance
260818
+ */
260819
+ CoachingEncounterExported.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
260820
+
260821
+ /**
260822
+ * Creates a new CoachingEncounterExported instance using the specified properties.
260823
+ * @function create
260824
+ * @memberof CoachingEncounterExported
260825
+ * @static
260826
+ * @param {CoachingEncounterExported.$Properties=} [properties] Properties to set
260827
+ * @returns {CoachingEncounterExported} CoachingEncounterExported instance
260828
+ * @type {{
260829
+ * (properties: CoachingEncounterExported.$Shape): CoachingEncounterExported & CoachingEncounterExported.$Shape;
260830
+ * (properties?: CoachingEncounterExported.$Properties): CoachingEncounterExported;
260831
+ * }}
260832
+ */
260833
+ CoachingEncounterExported.create = function create(properties) {
260834
+ return new CoachingEncounterExported(properties);
260835
+ };
260836
+
260837
+ /**
260838
+ * Encodes the specified CoachingEncounterExported message. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
260839
+ * @function encode
260840
+ * @memberof CoachingEncounterExported
260841
+ * @static
260842
+ * @param {CoachingEncounterExported.$Properties} message CoachingEncounterExported message or plain object to encode
260843
+ * @param {$protobuf.Writer} [writer] Writer to encode to
260844
+ * @returns {$protobuf.Writer} Writer
260845
+ */
260846
+ CoachingEncounterExported.encode = function encode(message, writer) {
260847
+ if (!writer)
260848
+ writer = $Writer.create();
260849
+ if (message.coachGivenName != null && Object.hasOwnProperty.call(message, "coachGivenName"))
260850
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.coachGivenName);
260851
+ if (message.coachFamilyName != null && Object.hasOwnProperty.call(message, "coachFamilyName"))
260852
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.coachFamilyName);
260853
+ if (message.coachIdentifier != null && Object.hasOwnProperty.call(message, "coachIdentifier"))
260854
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.coachIdentifier);
260855
+ if (message.encounterId != null && Object.hasOwnProperty.call(message, "encounterId"))
260856
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.encounterId);
260857
+ if (message.encounterStatus != null && Object.hasOwnProperty.call(message, "encounterStatus"))
260858
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.encounterStatus);
260859
+ if (message.encounterStart != null && Object.hasOwnProperty.call(message, "encounterStart"))
260860
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.encounterStart);
260861
+ if (message.encounterEnd != null && Object.hasOwnProperty.call(message, "encounterEnd"))
260862
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.encounterEnd);
260863
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
260864
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.hsUserId);
260865
+ if (message.sessionFormat != null && Object.hasOwnProperty.call(message, "sessionFormat"))
260866
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.sessionFormat);
260867
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
260868
+ writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.timestamp);
260869
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
260870
+ for (var i = 0; i < message.$unknowns.length; ++i)
260871
+ writer.raw(message.$unknowns[i]);
260872
+ return writer;
260873
+ };
260874
+
260875
+ /**
260876
+ * Encodes the specified CoachingEncounterExported message, length delimited. Does not implicitly {@link CoachingEncounterExported.verify|verify} messages.
260877
+ * @function encodeDelimited
260878
+ * @memberof CoachingEncounterExported
260879
+ * @static
260880
+ * @param {CoachingEncounterExported.$Properties} message CoachingEncounterExported message or plain object to encode
260881
+ * @param {$protobuf.Writer} [writer] Writer to encode to
260882
+ * @returns {$protobuf.Writer} Writer
260883
+ */
260884
+ CoachingEncounterExported.encodeDelimited = function encodeDelimited(message, writer) {
260885
+ return this.encode(message, writer).ldelim();
260886
+ };
260887
+
260888
+ /**
260889
+ * Decodes a CoachingEncounterExported message from the specified reader or buffer.
260890
+ * @function decode
260891
+ * @memberof CoachingEncounterExported
260892
+ * @static
260893
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
260894
+ * @param {number} [length] Message length if known beforehand
260895
+ * @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
260896
+ * @throws {Error} If the payload is not a reader or valid buffer
260897
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
260898
+ */
260899
+ CoachingEncounterExported.decode = function decode(reader, length, _end, _depth, _target) {
260900
+ if (!(reader instanceof $Reader))
260901
+ reader = $Reader.create(reader);
260902
+ if (_depth === undefined)
260903
+ _depth = 0;
260904
+ if (_depth > $Reader.recursionLimit)
260905
+ throw Error("max depth exceeded");
260906
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CoachingEncounterExported(), value;
260907
+ while (reader.pos < end) {
260908
+ var start = reader.pos;
260909
+ var tag = reader.tag();
260910
+ if (tag === _end) {
260911
+ _end = undefined;
260912
+ break;
260913
+ }
260914
+ var wireType = tag & 7;
260915
+ switch (tag >>>= 3) {
260916
+ case 1: {
260917
+ if (wireType !== 2)
260918
+ break;
260919
+ if ((value = reader.string()).length)
260920
+ message.coachGivenName = value;
260921
+ else
260922
+ delete message.coachGivenName;
260923
+ continue;
260924
+ }
260925
+ case 2: {
260926
+ if (wireType !== 2)
260927
+ break;
260928
+ if ((value = reader.string()).length)
260929
+ message.coachFamilyName = value;
260930
+ else
260931
+ delete message.coachFamilyName;
260932
+ continue;
260933
+ }
260934
+ case 3: {
260935
+ if (wireType !== 2)
260936
+ break;
260937
+ if ((value = reader.string()).length)
260938
+ message.coachIdentifier = value;
260939
+ else
260940
+ delete message.coachIdentifier;
260941
+ continue;
260942
+ }
260943
+ case 4: {
260944
+ if (wireType !== 2)
260945
+ break;
260946
+ if ((value = reader.string()).length)
260947
+ message.encounterId = value;
260948
+ else
260949
+ delete message.encounterId;
260950
+ continue;
260951
+ }
260952
+ case 5: {
260953
+ if (wireType !== 0)
260954
+ break;
260955
+ if (value = reader.int32())
260956
+ message.encounterStatus = value;
260957
+ else
260958
+ delete message.encounterStatus;
260959
+ continue;
260960
+ }
260961
+ case 6: {
260962
+ if (wireType !== 0)
260963
+ break;
260964
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
260965
+ message.encounterStart = value;
260966
+ else
260967
+ delete message.encounterStart;
260968
+ continue;
260969
+ }
260970
+ case 7: {
260971
+ if (wireType !== 0)
260972
+ break;
260973
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
260974
+ message.encounterEnd = value;
260975
+ else
260976
+ delete message.encounterEnd;
260977
+ continue;
260978
+ }
260979
+ case 8: {
260980
+ if (wireType !== 2)
260981
+ break;
260982
+ if ((value = reader.string()).length)
260983
+ message.hsUserId = value;
260984
+ else
260985
+ delete message.hsUserId;
260986
+ continue;
260987
+ }
260988
+ case 9: {
260989
+ if (wireType !== 0)
260990
+ break;
260991
+ if (value = reader.int32())
260992
+ message.sessionFormat = value;
260993
+ else
260994
+ delete message.sessionFormat;
260995
+ continue;
260996
+ }
260997
+ case 10: {
260998
+ if (wireType !== 0)
260999
+ break;
261000
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
261001
+ message.timestamp = value;
261002
+ else
261003
+ delete message.timestamp;
261004
+ continue;
261005
+ }
261006
+ }
261007
+ reader.skipType(wireType, _depth, tag);
261008
+ $util.makeProp(message, "$unknowns", false);
261009
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
261010
+ }
261011
+ if (_end !== undefined)
261012
+ throw Error("missing end group");
261013
+ return message;
261014
+ };
261015
+
261016
+ /**
261017
+ * Decodes a CoachingEncounterExported message from the specified reader or buffer, length delimited.
261018
+ * @function decodeDelimited
261019
+ * @memberof CoachingEncounterExported
261020
+ * @static
261021
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
261022
+ * @returns {CoachingEncounterExported & CoachingEncounterExported.$Shape} CoachingEncounterExported
261023
+ * @throws {Error} If the payload is not a reader or valid buffer
261024
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
261025
+ */
261026
+ CoachingEncounterExported.decodeDelimited = function decodeDelimited(reader) {
261027
+ if (!(reader instanceof $Reader))
261028
+ reader = new $Reader(reader);
261029
+ return this.decode(reader, reader.uint32());
261030
+ };
261031
+
261032
+ /**
261033
+ * Verifies a CoachingEncounterExported message.
261034
+ * @function verify
261035
+ * @memberof CoachingEncounterExported
261036
+ * @static
261037
+ * @param {Object.<string,*>} message Plain object to verify
261038
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
261039
+ */
261040
+ CoachingEncounterExported.verify = function verify(message, _depth) {
261041
+ if (typeof message !== "object" || message === null)
261042
+ return "object expected";
261043
+ if (_depth === undefined)
261044
+ _depth = 0;
261045
+ if (_depth > $util.recursionLimit)
261046
+ return "max depth exceeded";
261047
+ if (message.coachGivenName != null && message.hasOwnProperty("coachGivenName"))
261048
+ if (!$util.isString(message.coachGivenName))
261049
+ return "coachGivenName: string expected";
261050
+ if (message.coachFamilyName != null && message.hasOwnProperty("coachFamilyName"))
261051
+ if (!$util.isString(message.coachFamilyName))
261052
+ return "coachFamilyName: string expected";
261053
+ if (message.coachIdentifier != null && message.hasOwnProperty("coachIdentifier"))
261054
+ if (!$util.isString(message.coachIdentifier))
261055
+ return "coachIdentifier: string expected";
261056
+ if (message.encounterId != null && message.hasOwnProperty("encounterId"))
261057
+ if (!$util.isString(message.encounterId))
261058
+ return "encounterId: string expected";
261059
+ if (message.encounterStatus != null && message.hasOwnProperty("encounterStatus"))
261060
+ switch (message.encounterStatus) {
261061
+ default:
261062
+ return "encounterStatus: enum value expected";
261063
+ case 0:
261064
+ case 1:
261065
+ break;
261066
+ }
261067
+ if (message.encounterStart != null && message.hasOwnProperty("encounterStart"))
261068
+ if (!$util.isInteger(message.encounterStart) && !(message.encounterStart && $util.isInteger(message.encounterStart.low) && $util.isInteger(message.encounterStart.high)))
261069
+ return "encounterStart: integer|Long expected";
261070
+ if (message.encounterEnd != null && message.hasOwnProperty("encounterEnd"))
261071
+ if (!$util.isInteger(message.encounterEnd) && !(message.encounterEnd && $util.isInteger(message.encounterEnd.low) && $util.isInteger(message.encounterEnd.high)))
261072
+ return "encounterEnd: integer|Long expected";
261073
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
261074
+ if (!$util.isString(message.hsUserId))
261075
+ return "hsUserId: string expected";
261076
+ if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
261077
+ switch (message.sessionFormat) {
261078
+ default:
261079
+ return "sessionFormat: enum value expected";
261080
+ case 0:
261081
+ case 1:
261082
+ case 2:
261083
+ break;
261084
+ }
261085
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
261086
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
261087
+ return "timestamp: integer|Long expected";
261088
+ return null;
261089
+ };
261090
+
261091
+ /**
261092
+ * Creates a CoachingEncounterExported message from a plain object. Also converts values to their respective internal types.
261093
+ * @function fromObject
261094
+ * @memberof CoachingEncounterExported
261095
+ * @static
261096
+ * @param {Object.<string,*>} object Plain object
261097
+ * @returns {CoachingEncounterExported} CoachingEncounterExported
261098
+ */
261099
+ CoachingEncounterExported.fromObject = function fromObject(object, _depth) {
261100
+ if (object instanceof $root.CoachingEncounterExported)
261101
+ return object;
261102
+ if (_depth === undefined)
261103
+ _depth = 0;
261104
+ if (_depth > $util.recursionLimit)
261105
+ throw Error("max depth exceeded");
261106
+ var message = new $root.CoachingEncounterExported();
261107
+ if (object.coachGivenName != null)
261108
+ if (typeof object.coachGivenName !== "string" || object.coachGivenName.length)
261109
+ message.coachGivenName = String(object.coachGivenName);
261110
+ if (object.coachFamilyName != null)
261111
+ if (typeof object.coachFamilyName !== "string" || object.coachFamilyName.length)
261112
+ message.coachFamilyName = String(object.coachFamilyName);
261113
+ if (object.coachIdentifier != null)
261114
+ if (typeof object.coachIdentifier !== "string" || object.coachIdentifier.length)
261115
+ message.coachIdentifier = String(object.coachIdentifier);
261116
+ if (object.encounterId != null)
261117
+ if (typeof object.encounterId !== "string" || object.encounterId.length)
261118
+ message.encounterId = String(object.encounterId);
261119
+ if (object.encounterStatus !== 0 && (typeof object.encounterStatus !== "string" || $root.EncounterStatus[object.encounterStatus] !== 0))
261120
+ switch (object.encounterStatus) {
261121
+ default:
261122
+ if (typeof object.encounterStatus === "number") {
261123
+ message.encounterStatus = object.encounterStatus;
261124
+ break;
261125
+ }
261126
+ break;
261127
+ case "ENCOUNTER_STATUS_UNKNOWN":
261128
+ case 0:
261129
+ message.encounterStatus = 0;
261130
+ break;
261131
+ case "ENCOUNTER_STATUS_FINISHED":
261132
+ case 1:
261133
+ message.encounterStatus = 1;
261134
+ break;
261135
+ }
261136
+ if (object.encounterStart != null)
261137
+ if (typeof object.encounterStart === "object" ? object.encounterStart.low || object.encounterStart.high : Number(object.encounterStart) !== 0)
261138
+ if ($util.Long)
261139
+ (message.encounterStart = $util.Long.fromValue(object.encounterStart)).unsigned = true;
261140
+ else if (typeof object.encounterStart === "string")
261141
+ message.encounterStart = parseInt(object.encounterStart, 10);
261142
+ else if (typeof object.encounterStart === "number")
261143
+ message.encounterStart = object.encounterStart;
261144
+ else if (typeof object.encounterStart === "object")
261145
+ message.encounterStart = new $util.LongBits(object.encounterStart.low >>> 0, object.encounterStart.high >>> 0).toNumber(true);
261146
+ if (object.encounterEnd != null)
261147
+ if (typeof object.encounterEnd === "object" ? object.encounterEnd.low || object.encounterEnd.high : Number(object.encounterEnd) !== 0)
261148
+ if ($util.Long)
261149
+ (message.encounterEnd = $util.Long.fromValue(object.encounterEnd)).unsigned = true;
261150
+ else if (typeof object.encounterEnd === "string")
261151
+ message.encounterEnd = parseInt(object.encounterEnd, 10);
261152
+ else if (typeof object.encounterEnd === "number")
261153
+ message.encounterEnd = object.encounterEnd;
261154
+ else if (typeof object.encounterEnd === "object")
261155
+ message.encounterEnd = new $util.LongBits(object.encounterEnd.low >>> 0, object.encounterEnd.high >>> 0).toNumber(true);
261156
+ if (object.hsUserId != null)
261157
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
261158
+ message.hsUserId = String(object.hsUserId);
261159
+ if (object.sessionFormat !== 0 && (typeof object.sessionFormat !== "string" || $root.CoachingSessionFormat[object.sessionFormat] !== 0))
261160
+ switch (object.sessionFormat) {
261161
+ default:
261162
+ if (typeof object.sessionFormat === "number") {
261163
+ message.sessionFormat = object.sessionFormat;
261164
+ break;
261165
+ }
261166
+ break;
261167
+ case "COACHING_SESSION_FORMAT_UNKNOWN":
261168
+ case 0:
261169
+ message.sessionFormat = 0;
261170
+ break;
261171
+ case "COACHING_SESSION_FORMAT_CHAT":
261172
+ case 1:
261173
+ message.sessionFormat = 1;
261174
+ break;
261175
+ case "COACHING_SESSION_FORMAT_VIDEO":
261176
+ case 2:
261177
+ message.sessionFormat = 2;
261178
+ break;
261179
+ }
261180
+ if (object.timestamp != null)
261181
+ if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
261182
+ if ($util.Long)
261183
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
261184
+ else if (typeof object.timestamp === "string")
261185
+ message.timestamp = parseInt(object.timestamp, 10);
261186
+ else if (typeof object.timestamp === "number")
261187
+ message.timestamp = object.timestamp;
261188
+ else if (typeof object.timestamp === "object")
261189
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
261190
+ return message;
261191
+ };
261192
+
261193
+ /**
261194
+ * Creates a plain object from a CoachingEncounterExported message. Also converts values to other types if specified.
261195
+ * @function toObject
261196
+ * @memberof CoachingEncounterExported
261197
+ * @static
261198
+ * @param {CoachingEncounterExported} message CoachingEncounterExported
261199
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
261200
+ * @returns {Object.<string,*>} Plain object
261201
+ */
261202
+ CoachingEncounterExported.toObject = function toObject(message, options) {
261203
+ if (!options)
261204
+ options = {};
261205
+ var object = {};
261206
+ if (options.defaults) {
261207
+ object.coachGivenName = "";
261208
+ object.coachFamilyName = "";
261209
+ object.coachIdentifier = "";
261210
+ object.encounterId = "";
261211
+ object.encounterStatus = options.enums === String ? "ENCOUNTER_STATUS_UNKNOWN" : 0;
261212
+ if ($util.Long) {
261213
+ var long = new $util.Long(0, 0, true);
261214
+ object.encounterStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
261215
+ } else
261216
+ object.encounterStart = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
261217
+ if ($util.Long) {
261218
+ var long = new $util.Long(0, 0, true);
261219
+ object.encounterEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
261220
+ } else
261221
+ object.encounterEnd = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
261222
+ object.hsUserId = "";
261223
+ object.sessionFormat = options.enums === String ? "COACHING_SESSION_FORMAT_UNKNOWN" : 0;
261224
+ if ($util.Long) {
261225
+ var long = new $util.Long(0, 0, true);
261226
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
261227
+ } else
261228
+ object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
261229
+ }
261230
+ if (message.coachGivenName != null && message.hasOwnProperty("coachGivenName"))
261231
+ object.coachGivenName = message.coachGivenName;
261232
+ if (message.coachFamilyName != null && message.hasOwnProperty("coachFamilyName"))
261233
+ object.coachFamilyName = message.coachFamilyName;
261234
+ if (message.coachIdentifier != null && message.hasOwnProperty("coachIdentifier"))
261235
+ object.coachIdentifier = message.coachIdentifier;
261236
+ if (message.encounterId != null && message.hasOwnProperty("encounterId"))
261237
+ object.encounterId = message.encounterId;
261238
+ if (message.encounterStatus != null && message.hasOwnProperty("encounterStatus"))
261239
+ object.encounterStatus = options.enums === String ? $root.EncounterStatus[message.encounterStatus] === undefined ? message.encounterStatus : $root.EncounterStatus[message.encounterStatus] : message.encounterStatus;
261240
+ if (message.encounterStart != null && message.hasOwnProperty("encounterStart"))
261241
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
261242
+ object.encounterStart = typeof message.encounterStart === "number" ? BigInt(message.encounterStart) : $util.Long.fromBits(message.encounterStart.low >>> 0, message.encounterStart.high >>> 0, true).toBigInt();
261243
+ else if (typeof message.encounterStart === "number")
261244
+ object.encounterStart = options.longs === String ? String(message.encounterStart) : message.encounterStart;
261245
+ else
261246
+ 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;
261247
+ if (message.encounterEnd != null && message.hasOwnProperty("encounterEnd"))
261248
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
261249
+ object.encounterEnd = typeof message.encounterEnd === "number" ? BigInt(message.encounterEnd) : $util.Long.fromBits(message.encounterEnd.low >>> 0, message.encounterEnd.high >>> 0, true).toBigInt();
261250
+ else if (typeof message.encounterEnd === "number")
261251
+ object.encounterEnd = options.longs === String ? String(message.encounterEnd) : message.encounterEnd;
261252
+ else
261253
+ 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;
261254
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
261255
+ object.hsUserId = message.hsUserId;
261256
+ if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
261257
+ object.sessionFormat = options.enums === String ? $root.CoachingSessionFormat[message.sessionFormat] === undefined ? message.sessionFormat : $root.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
261258
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
261259
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
261260
+ object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
261261
+ else if (typeof message.timestamp === "number")
261262
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
261263
+ else
261264
+ 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;
261265
+ return object;
261266
+ };
261267
+
261268
+ /**
261269
+ * Converts this CoachingEncounterExported to JSON.
261270
+ * @function toJSON
261271
+ * @memberof CoachingEncounterExported
261272
+ * @instance
261273
+ * @returns {Object.<string,*>} JSON object
261274
+ */
261275
+ CoachingEncounterExported.prototype.toJSON = function toJSON() {
261276
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
261277
+ };
261278
+
261279
+ /**
261280
+ * Gets the type url for CoachingEncounterExported
261281
+ * @function getTypeUrl
261282
+ * @memberof CoachingEncounterExported
261283
+ * @static
261284
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
261285
+ * @returns {string} The type url
261286
+ */
261287
+ CoachingEncounterExported.getTypeUrl = function getTypeUrl(prefix) {
261288
+ if (prefix === undefined)
261289
+ prefix = "type.googleapis.com";
261290
+ return prefix + "/CoachingEncounterExported";
261291
+ };
261292
+
261293
+ return CoachingEncounterExported;
261294
+ })();
261295
+
260633
261296
  /**
260634
261297
  * GingerClinicalNoteType enum.
260635
261298
  * @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.838.0"
20
20
  }