@headspace/protos-events 1.704.0 → 1.706.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -4978,6 +4978,9 @@ export interface IAppointmentRatingRequested {
4978
4978
 
4979
4979
  /** AppointmentRatingRequested requestedAt */
4980
4980
  requestedAt?: (number|Long|null);
4981
+
4982
+ /** AppointmentRatingRequested clinicianId */
4983
+ clinicianId?: (string|null);
4981
4984
  }
4982
4985
 
4983
4986
  /** Represents an AppointmentRatingRequested. */
@@ -5001,6 +5004,9 @@ export class AppointmentRatingRequested implements IAppointmentRatingRequested {
5001
5004
  /** AppointmentRatingRequested requestedAt. */
5002
5005
  public requestedAt: (number|Long);
5003
5006
 
5007
+ /** AppointmentRatingRequested clinicianId. */
5008
+ public clinicianId: string;
5009
+
5004
5010
  /**
5005
5011
  * Creates a new AppointmentRatingRequested instance using the specified properties.
5006
5012
  * @param [properties] Properties to set
@@ -5089,6 +5095,9 @@ export interface IAppointmentRatingDismissed {
5089
5095
 
5090
5096
  /** AppointmentRatingDismissed dismissedCount */
5091
5097
  dismissedCount?: (number|null);
5098
+
5099
+ /** AppointmentRatingDismissed clinicianId */
5100
+ clinicianId?: (string|null);
5092
5101
  }
5093
5102
 
5094
5103
  /** Represents an AppointmentRatingDismissed. */
@@ -5115,6 +5124,9 @@ export class AppointmentRatingDismissed implements IAppointmentRatingDismissed {
5115
5124
  /** AppointmentRatingDismissed dismissedCount. */
5116
5125
  public dismissedCount: number;
5117
5126
 
5127
+ /** AppointmentRatingDismissed clinicianId. */
5128
+ public clinicianId: string;
5129
+
5118
5130
  /**
5119
5131
  * Creates a new AppointmentRatingDismissed instance using the specified properties.
5120
5132
  * @param [properties] Properties to set
@@ -5212,6 +5224,9 @@ export interface IAppointmentRatingSubmitted {
5212
5224
 
5213
5225
  /** AppointmentRatingSubmitted submittedAt */
5214
5226
  submittedAt?: (number|Long|null);
5227
+
5228
+ /** AppointmentRatingSubmitted clinicianId */
5229
+ clinicianId?: (string|null);
5215
5230
  }
5216
5231
 
5217
5232
  /** Represents an AppointmentRatingSubmitted. */
@@ -5247,6 +5262,9 @@ export class AppointmentRatingSubmitted implements IAppointmentRatingSubmitted {
5247
5262
  /** AppointmentRatingSubmitted submittedAt. */
5248
5263
  public submittedAt: (number|Long);
5249
5264
 
5265
+ /** AppointmentRatingSubmitted clinicianId. */
5266
+ public clinicianId: string;
5267
+
5250
5268
  /**
5251
5269
  * Creates a new AppointmentRatingSubmitted instance using the specified properties.
5252
5270
  * @param [properties] Properties to set
@@ -59557,6 +59575,132 @@ export namespace coaching {
59557
59575
  COACHING_SESSION_FORMAT_VIDEO = 2
59558
59576
  }
59559
59577
 
59578
+ /** SessionModality enum. */
59579
+ enum SessionModality {
59580
+ SESSION_MODALITY_UNKNOWN = 0,
59581
+ SESSION_MODALITY_TYPE_CHAT = 1,
59582
+ SESSION_MODALITY_TYPE_VIDEO = 2
59583
+ }
59584
+
59585
+ /** ModalityUpdateSourceType enum. */
59586
+ enum ModalityUpdateSourceType {
59587
+ MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN = 0,
59588
+ MODALITY_UPDATE_SOURCE_TYPE_MEMBER = 1,
59589
+ MODALITY_UPDATE_SOURCE_TYPE_MEMBER_SERVICES = 2
59590
+ }
59591
+
59592
+ /** Properties of a PreferredModalitySet. */
59593
+ interface IPreferredModalitySet {
59594
+
59595
+ /** PreferredModalitySet hsUserId */
59596
+ hsUserId?: (string|null);
59597
+
59598
+ /** PreferredModalitySet modality */
59599
+ modality?: (coaching.SessionModality|null);
59600
+
59601
+ /** PreferredModalitySet source */
59602
+ source?: (coaching.ModalityUpdateSourceType|null);
59603
+
59604
+ /** PreferredModalitySet timestamp */
59605
+ timestamp?: (number|Long|null);
59606
+ }
59607
+
59608
+ /**
59609
+ * An instance of an event happening when an intake session is successfully booked and
59610
+ * the Caller model is updated OR when member support changes a lead coach for a
59611
+ * modality change request
59612
+ */
59613
+ class PreferredModalitySet implements IPreferredModalitySet {
59614
+
59615
+ /**
59616
+ * Constructs a new PreferredModalitySet.
59617
+ * @param [properties] Properties to set
59618
+ */
59619
+ constructor(properties?: coaching.IPreferredModalitySet);
59620
+
59621
+ /** PreferredModalitySet hsUserId. */
59622
+ public hsUserId: string;
59623
+
59624
+ /** PreferredModalitySet modality. */
59625
+ public modality: coaching.SessionModality;
59626
+
59627
+ /** PreferredModalitySet source. */
59628
+ public source: coaching.ModalityUpdateSourceType;
59629
+
59630
+ /** PreferredModalitySet timestamp. */
59631
+ public timestamp: (number|Long);
59632
+
59633
+ /**
59634
+ * Creates a new PreferredModalitySet instance using the specified properties.
59635
+ * @param [properties] Properties to set
59636
+ * @returns PreferredModalitySet instance
59637
+ */
59638
+ public static create(properties?: coaching.IPreferredModalitySet): coaching.PreferredModalitySet;
59639
+
59640
+ /**
59641
+ * Encodes the specified PreferredModalitySet message. Does not implicitly {@link coaching.PreferredModalitySet.verify|verify} messages.
59642
+ * @param message PreferredModalitySet message or plain object to encode
59643
+ * @param [writer] Writer to encode to
59644
+ * @returns Writer
59645
+ */
59646
+ public static encode(message: coaching.IPreferredModalitySet, writer?: $protobuf.Writer): $protobuf.Writer;
59647
+
59648
+ /**
59649
+ * Encodes the specified PreferredModalitySet message, length delimited. Does not implicitly {@link coaching.PreferredModalitySet.verify|verify} messages.
59650
+ * @param message PreferredModalitySet message or plain object to encode
59651
+ * @param [writer] Writer to encode to
59652
+ * @returns Writer
59653
+ */
59654
+ public static encodeDelimited(message: coaching.IPreferredModalitySet, writer?: $protobuf.Writer): $protobuf.Writer;
59655
+
59656
+ /**
59657
+ * Decodes a PreferredModalitySet message from the specified reader or buffer.
59658
+ * @param reader Reader or buffer to decode from
59659
+ * @param [length] Message length if known beforehand
59660
+ * @returns PreferredModalitySet
59661
+ * @throws {Error} If the payload is not a reader or valid buffer
59662
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59663
+ */
59664
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coaching.PreferredModalitySet;
59665
+
59666
+ /**
59667
+ * Decodes a PreferredModalitySet message from the specified reader or buffer, length delimited.
59668
+ * @param reader Reader or buffer to decode from
59669
+ * @returns PreferredModalitySet
59670
+ * @throws {Error} If the payload is not a reader or valid buffer
59671
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59672
+ */
59673
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coaching.PreferredModalitySet;
59674
+
59675
+ /**
59676
+ * Verifies a PreferredModalitySet message.
59677
+ * @param message Plain object to verify
59678
+ * @returns `null` if valid, otherwise the reason why it is not
59679
+ */
59680
+ public static verify(message: { [k: string]: any }): (string|null);
59681
+
59682
+ /**
59683
+ * Creates a PreferredModalitySet message from a plain object. Also converts values to their respective internal types.
59684
+ * @param object Plain object
59685
+ * @returns PreferredModalitySet
59686
+ */
59687
+ public static fromObject(object: { [k: string]: any }): coaching.PreferredModalitySet;
59688
+
59689
+ /**
59690
+ * Creates a plain object from a PreferredModalitySet message. Also converts values to other types if specified.
59691
+ * @param message PreferredModalitySet
59692
+ * @param [options] Conversion options
59693
+ * @returns Plain object
59694
+ */
59695
+ public static toObject(message: coaching.PreferredModalitySet, options?: $protobuf.IConversionOptions): { [k: string]: any };
59696
+
59697
+ /**
59698
+ * Converts this PreferredModalitySet to JSON.
59699
+ * @returns JSON object
59700
+ */
59701
+ public toJSON(): { [k: string]: any };
59702
+ }
59703
+
59560
59704
  /** Properties of a SuicidalIdeationAlert. */
59561
59705
  interface ISuicidalIdeationAlert {
59562
59706
 
package/lib/index.js CHANGED
@@ -15259,6 +15259,7 @@ $root.AppointmentRatingRequested = (function() {
15259
15259
  * @property {string|null} [gingerUserId] AppointmentRatingRequested gingerUserId
15260
15260
  * @property {string|null} [hsUserId] AppointmentRatingRequested hsUserId
15261
15261
  * @property {number|Long|null} [requestedAt] AppointmentRatingRequested requestedAt
15262
+ * @property {string|null} [clinicianId] AppointmentRatingRequested clinicianId
15262
15263
  */
15263
15264
 
15264
15265
  /**
@@ -15308,6 +15309,14 @@ $root.AppointmentRatingRequested = (function() {
15308
15309
  */
15309
15310
  AppointmentRatingRequested.prototype.requestedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
15310
15311
 
15312
+ /**
15313
+ * AppointmentRatingRequested clinicianId.
15314
+ * @member {string} clinicianId
15315
+ * @memberof AppointmentRatingRequested
15316
+ * @instance
15317
+ */
15318
+ AppointmentRatingRequested.prototype.clinicianId = "";
15319
+
15311
15320
  /**
15312
15321
  * Creates a new AppointmentRatingRequested instance using the specified properties.
15313
15322
  * @function create
@@ -15340,6 +15349,8 @@ $root.AppointmentRatingRequested = (function() {
15340
15349
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
15341
15350
  if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
15342
15351
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.requestedAt);
15352
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15353
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.clinicianId);
15343
15354
  return writer;
15344
15355
  };
15345
15356
 
@@ -15386,6 +15397,9 @@ $root.AppointmentRatingRequested = (function() {
15386
15397
  case 4:
15387
15398
  message.requestedAt = reader.uint64();
15388
15399
  break;
15400
+ case 5:
15401
+ message.clinicianId = reader.string();
15402
+ break;
15389
15403
  default:
15390
15404
  reader.skipType(tag & 7);
15391
15405
  break;
@@ -15433,6 +15447,9 @@ $root.AppointmentRatingRequested = (function() {
15433
15447
  if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
15434
15448
  if (!$util.isInteger(message.requestedAt) && !(message.requestedAt && $util.isInteger(message.requestedAt.low) && $util.isInteger(message.requestedAt.high)))
15435
15449
  return "requestedAt: integer|Long expected";
15450
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15451
+ if (!$util.isString(message.clinicianId))
15452
+ return "clinicianId: string expected";
15436
15453
  return null;
15437
15454
  };
15438
15455
 
@@ -15463,6 +15480,8 @@ $root.AppointmentRatingRequested = (function() {
15463
15480
  message.requestedAt = object.requestedAt;
15464
15481
  else if (typeof object.requestedAt === "object")
15465
15482
  message.requestedAt = new $util.LongBits(object.requestedAt.low >>> 0, object.requestedAt.high >>> 0).toNumber(true);
15483
+ if (object.clinicianId != null)
15484
+ message.clinicianId = String(object.clinicianId);
15466
15485
  return message;
15467
15486
  };
15468
15487
 
@@ -15488,6 +15507,7 @@ $root.AppointmentRatingRequested = (function() {
15488
15507
  object.requestedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
15489
15508
  } else
15490
15509
  object.requestedAt = options.longs === String ? "0" : 0;
15510
+ object.clinicianId = "";
15491
15511
  }
15492
15512
  if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
15493
15513
  object.appointmentId = message.appointmentId;
@@ -15500,6 +15520,8 @@ $root.AppointmentRatingRequested = (function() {
15500
15520
  object.requestedAt = options.longs === String ? String(message.requestedAt) : message.requestedAt;
15501
15521
  else
15502
15522
  object.requestedAt = options.longs === String ? $util.Long.prototype.toString.call(message.requestedAt) : options.longs === Number ? new $util.LongBits(message.requestedAt.low >>> 0, message.requestedAt.high >>> 0).toNumber(true) : message.requestedAt;
15523
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15524
+ object.clinicianId = message.clinicianId;
15503
15525
  return object;
15504
15526
  };
15505
15527
 
@@ -15528,6 +15550,7 @@ $root.AppointmentRatingDismissed = (function() {
15528
15550
  * @property {string|null} [hsUserId] AppointmentRatingDismissed hsUserId
15529
15551
  * @property {number|Long|null} [dismissedAt] AppointmentRatingDismissed dismissedAt
15530
15552
  * @property {number|null} [dismissedCount] AppointmentRatingDismissed dismissedCount
15553
+ * @property {string|null} [clinicianId] AppointmentRatingDismissed clinicianId
15531
15554
  */
15532
15555
 
15533
15556
  /**
@@ -15585,6 +15608,14 @@ $root.AppointmentRatingDismissed = (function() {
15585
15608
  */
15586
15609
  AppointmentRatingDismissed.prototype.dismissedCount = 0;
15587
15610
 
15611
+ /**
15612
+ * AppointmentRatingDismissed clinicianId.
15613
+ * @member {string} clinicianId
15614
+ * @memberof AppointmentRatingDismissed
15615
+ * @instance
15616
+ */
15617
+ AppointmentRatingDismissed.prototype.clinicianId = "";
15618
+
15588
15619
  /**
15589
15620
  * Creates a new AppointmentRatingDismissed instance using the specified properties.
15590
15621
  * @function create
@@ -15619,6 +15650,8 @@ $root.AppointmentRatingDismissed = (function() {
15619
15650
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.dismissedAt);
15620
15651
  if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
15621
15652
  writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.dismissedCount);
15653
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15654
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.clinicianId);
15622
15655
  return writer;
15623
15656
  };
15624
15657
 
@@ -15668,6 +15701,9 @@ $root.AppointmentRatingDismissed = (function() {
15668
15701
  case 5:
15669
15702
  message.dismissedCount = reader.uint32();
15670
15703
  break;
15704
+ case 6:
15705
+ message.clinicianId = reader.string();
15706
+ break;
15671
15707
  default:
15672
15708
  reader.skipType(tag & 7);
15673
15709
  break;
@@ -15718,6 +15754,9 @@ $root.AppointmentRatingDismissed = (function() {
15718
15754
  if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
15719
15755
  if (!$util.isInteger(message.dismissedCount))
15720
15756
  return "dismissedCount: integer expected";
15757
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15758
+ if (!$util.isString(message.clinicianId))
15759
+ return "clinicianId: string expected";
15721
15760
  return null;
15722
15761
  };
15723
15762
 
@@ -15750,6 +15789,8 @@ $root.AppointmentRatingDismissed = (function() {
15750
15789
  message.dismissedAt = new $util.LongBits(object.dismissedAt.low >>> 0, object.dismissedAt.high >>> 0).toNumber(true);
15751
15790
  if (object.dismissedCount != null)
15752
15791
  message.dismissedCount = object.dismissedCount >>> 0;
15792
+ if (object.clinicianId != null)
15793
+ message.clinicianId = String(object.clinicianId);
15753
15794
  return message;
15754
15795
  };
15755
15796
 
@@ -15776,6 +15817,7 @@ $root.AppointmentRatingDismissed = (function() {
15776
15817
  } else
15777
15818
  object.dismissedAt = options.longs === String ? "0" : 0;
15778
15819
  object.dismissedCount = 0;
15820
+ object.clinicianId = "";
15779
15821
  }
15780
15822
  if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
15781
15823
  object.appointmentId = message.appointmentId;
@@ -15790,6 +15832,8 @@ $root.AppointmentRatingDismissed = (function() {
15790
15832
  object.dismissedAt = options.longs === String ? $util.Long.prototype.toString.call(message.dismissedAt) : options.longs === Number ? new $util.LongBits(message.dismissedAt.low >>> 0, message.dismissedAt.high >>> 0).toNumber(true) : message.dismissedAt;
15791
15833
  if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
15792
15834
  object.dismissedCount = message.dismissedCount;
15835
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15836
+ object.clinicianId = message.clinicianId;
15793
15837
  return object;
15794
15838
  };
15795
15839
 
@@ -15821,6 +15865,7 @@ $root.AppointmentRatingSubmitted = (function() {
15821
15865
  * @property {number|null} [feltSupportedRating] AppointmentRatingSubmitted feltSupportedRating
15822
15866
  * @property {number|null} [approachRating] AppointmentRatingSubmitted approachRating
15823
15867
  * @property {number|Long|null} [submittedAt] AppointmentRatingSubmitted submittedAt
15868
+ * @property {string|null} [clinicianId] AppointmentRatingSubmitted clinicianId
15824
15869
  */
15825
15870
 
15826
15871
  /**
@@ -15902,6 +15947,14 @@ $root.AppointmentRatingSubmitted = (function() {
15902
15947
  */
15903
15948
  AppointmentRatingSubmitted.prototype.submittedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
15904
15949
 
15950
+ /**
15951
+ * AppointmentRatingSubmitted clinicianId.
15952
+ * @member {string} clinicianId
15953
+ * @memberof AppointmentRatingSubmitted
15954
+ * @instance
15955
+ */
15956
+ AppointmentRatingSubmitted.prototype.clinicianId = "";
15957
+
15905
15958
  /**
15906
15959
  * Creates a new AppointmentRatingSubmitted instance using the specified properties.
15907
15960
  * @function create
@@ -15942,6 +15995,8 @@ $root.AppointmentRatingSubmitted = (function() {
15942
15995
  writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.approachRating);
15943
15996
  if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
15944
15997
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.submittedAt);
15998
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
15999
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.clinicianId);
15945
16000
  return writer;
15946
16001
  };
15947
16002
 
@@ -16000,6 +16055,9 @@ $root.AppointmentRatingSubmitted = (function() {
16000
16055
  case 8:
16001
16056
  message.submittedAt = reader.uint64();
16002
16057
  break;
16058
+ case 9:
16059
+ message.clinicianId = reader.string();
16060
+ break;
16003
16061
  default:
16004
16062
  reader.skipType(tag & 7);
16005
16063
  break;
@@ -16059,6 +16117,9 @@ $root.AppointmentRatingSubmitted = (function() {
16059
16117
  if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
16060
16118
  if (!$util.isInteger(message.submittedAt) && !(message.submittedAt && $util.isInteger(message.submittedAt.low) && $util.isInteger(message.submittedAt.high)))
16061
16119
  return "submittedAt: integer|Long expected";
16120
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
16121
+ if (!$util.isString(message.clinicianId))
16122
+ return "clinicianId: string expected";
16062
16123
  return null;
16063
16124
  };
16064
16125
 
@@ -16097,6 +16158,8 @@ $root.AppointmentRatingSubmitted = (function() {
16097
16158
  message.submittedAt = object.submittedAt;
16098
16159
  else if (typeof object.submittedAt === "object")
16099
16160
  message.submittedAt = new $util.LongBits(object.submittedAt.low >>> 0, object.submittedAt.high >>> 0).toNumber(true);
16161
+ if (object.clinicianId != null)
16162
+ message.clinicianId = String(object.clinicianId);
16100
16163
  return message;
16101
16164
  };
16102
16165
 
@@ -16126,6 +16189,7 @@ $root.AppointmentRatingSubmitted = (function() {
16126
16189
  object.submittedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16127
16190
  } else
16128
16191
  object.submittedAt = options.longs === String ? "0" : 0;
16192
+ object.clinicianId = "";
16129
16193
  }
16130
16194
  if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
16131
16195
  object.appointmentId = message.appointmentId;
@@ -16146,6 +16210,8 @@ $root.AppointmentRatingSubmitted = (function() {
16146
16210
  object.submittedAt = options.longs === String ? String(message.submittedAt) : message.submittedAt;
16147
16211
  else
16148
16212
  object.submittedAt = options.longs === String ? $util.Long.prototype.toString.call(message.submittedAt) : options.longs === Number ? new $util.LongBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0).toNumber(true) : message.submittedAt;
16213
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
16214
+ object.clinicianId = message.clinicianId;
16149
16215
  return object;
16150
16216
  };
16151
16217
 
@@ -171464,6 +171530,344 @@ $root.coaching = (function() {
171464
171530
  return values;
171465
171531
  })();
171466
171532
 
171533
+ /**
171534
+ * SessionModality enum.
171535
+ * @name coaching.SessionModality
171536
+ * @enum {string}
171537
+ * @property {number} SESSION_MODALITY_UNKNOWN=0 SESSION_MODALITY_UNKNOWN value
171538
+ * @property {number} SESSION_MODALITY_TYPE_CHAT=1 SESSION_MODALITY_TYPE_CHAT value
171539
+ * @property {number} SESSION_MODALITY_TYPE_VIDEO=2 SESSION_MODALITY_TYPE_VIDEO value
171540
+ */
171541
+ coaching.SessionModality = (function() {
171542
+ var valuesById = {}, values = Object.create(valuesById);
171543
+ values[valuesById[0] = "SESSION_MODALITY_UNKNOWN"] = 0;
171544
+ values[valuesById[1] = "SESSION_MODALITY_TYPE_CHAT"] = 1;
171545
+ values[valuesById[2] = "SESSION_MODALITY_TYPE_VIDEO"] = 2;
171546
+ return values;
171547
+ })();
171548
+
171549
+ /**
171550
+ * ModalityUpdateSourceType enum.
171551
+ * @name coaching.ModalityUpdateSourceType
171552
+ * @enum {string}
171553
+ * @property {number} MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN=0 MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN value
171554
+ * @property {number} MODALITY_UPDATE_SOURCE_TYPE_MEMBER=1 MODALITY_UPDATE_SOURCE_TYPE_MEMBER value
171555
+ * @property {number} MODALITY_UPDATE_SOURCE_TYPE_MEMBER_SERVICES=2 MODALITY_UPDATE_SOURCE_TYPE_MEMBER_SERVICES value
171556
+ */
171557
+ coaching.ModalityUpdateSourceType = (function() {
171558
+ var valuesById = {}, values = Object.create(valuesById);
171559
+ values[valuesById[0] = "MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN"] = 0;
171560
+ values[valuesById[1] = "MODALITY_UPDATE_SOURCE_TYPE_MEMBER"] = 1;
171561
+ values[valuesById[2] = "MODALITY_UPDATE_SOURCE_TYPE_MEMBER_SERVICES"] = 2;
171562
+ return values;
171563
+ })();
171564
+
171565
+ coaching.PreferredModalitySet = (function() {
171566
+
171567
+ /**
171568
+ * Properties of a PreferredModalitySet.
171569
+ * @memberof coaching
171570
+ * @interface IPreferredModalitySet
171571
+ * @property {string|null} [hsUserId] PreferredModalitySet hsUserId
171572
+ * @property {coaching.SessionModality|null} [modality] PreferredModalitySet modality
171573
+ * @property {coaching.ModalityUpdateSourceType|null} [source] PreferredModalitySet source
171574
+ * @property {number|Long|null} [timestamp] PreferredModalitySet timestamp
171575
+ */
171576
+
171577
+ /**
171578
+ * Constructs a new PreferredModalitySet.
171579
+ * @memberof coaching
171580
+ * @classdesc An instance of an event happening when an intake session is successfully booked and
171581
+ * the Caller model is updated OR when member support changes a lead coach for a
171582
+ * modality change request
171583
+ * @implements IPreferredModalitySet
171584
+ * @constructor
171585
+ * @param {coaching.IPreferredModalitySet=} [properties] Properties to set
171586
+ */
171587
+ function PreferredModalitySet(properties) {
171588
+ if (properties)
171589
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
171590
+ if (properties[keys[i]] != null)
171591
+ this[keys[i]] = properties[keys[i]];
171592
+ }
171593
+
171594
+ /**
171595
+ * PreferredModalitySet hsUserId.
171596
+ * @member {string} hsUserId
171597
+ * @memberof coaching.PreferredModalitySet
171598
+ * @instance
171599
+ */
171600
+ PreferredModalitySet.prototype.hsUserId = "";
171601
+
171602
+ /**
171603
+ * PreferredModalitySet modality.
171604
+ * @member {coaching.SessionModality} modality
171605
+ * @memberof coaching.PreferredModalitySet
171606
+ * @instance
171607
+ */
171608
+ PreferredModalitySet.prototype.modality = 0;
171609
+
171610
+ /**
171611
+ * PreferredModalitySet source.
171612
+ * @member {coaching.ModalityUpdateSourceType} source
171613
+ * @memberof coaching.PreferredModalitySet
171614
+ * @instance
171615
+ */
171616
+ PreferredModalitySet.prototype.source = 0;
171617
+
171618
+ /**
171619
+ * PreferredModalitySet timestamp.
171620
+ * @member {number|Long} timestamp
171621
+ * @memberof coaching.PreferredModalitySet
171622
+ * @instance
171623
+ */
171624
+ PreferredModalitySet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
171625
+
171626
+ /**
171627
+ * Creates a new PreferredModalitySet instance using the specified properties.
171628
+ * @function create
171629
+ * @memberof coaching.PreferredModalitySet
171630
+ * @static
171631
+ * @param {coaching.IPreferredModalitySet=} [properties] Properties to set
171632
+ * @returns {coaching.PreferredModalitySet} PreferredModalitySet instance
171633
+ */
171634
+ PreferredModalitySet.create = function create(properties) {
171635
+ return new PreferredModalitySet(properties);
171636
+ };
171637
+
171638
+ /**
171639
+ * Encodes the specified PreferredModalitySet message. Does not implicitly {@link coaching.PreferredModalitySet.verify|verify} messages.
171640
+ * @function encode
171641
+ * @memberof coaching.PreferredModalitySet
171642
+ * @static
171643
+ * @param {coaching.IPreferredModalitySet} message PreferredModalitySet message or plain object to encode
171644
+ * @param {$protobuf.Writer} [writer] Writer to encode to
171645
+ * @returns {$protobuf.Writer} Writer
171646
+ */
171647
+ PreferredModalitySet.encode = function encode(message, writer) {
171648
+ if (!writer)
171649
+ writer = $Writer.create();
171650
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
171651
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
171652
+ if (message.modality != null && message.hasOwnProperty("modality"))
171653
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.modality);
171654
+ if (message.source != null && message.hasOwnProperty("source"))
171655
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.source);
171656
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
171657
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
171658
+ return writer;
171659
+ };
171660
+
171661
+ /**
171662
+ * Encodes the specified PreferredModalitySet message, length delimited. Does not implicitly {@link coaching.PreferredModalitySet.verify|verify} messages.
171663
+ * @function encodeDelimited
171664
+ * @memberof coaching.PreferredModalitySet
171665
+ * @static
171666
+ * @param {coaching.IPreferredModalitySet} message PreferredModalitySet message or plain object to encode
171667
+ * @param {$protobuf.Writer} [writer] Writer to encode to
171668
+ * @returns {$protobuf.Writer} Writer
171669
+ */
171670
+ PreferredModalitySet.encodeDelimited = function encodeDelimited(message, writer) {
171671
+ return this.encode(message, writer).ldelim();
171672
+ };
171673
+
171674
+ /**
171675
+ * Decodes a PreferredModalitySet message from the specified reader or buffer.
171676
+ * @function decode
171677
+ * @memberof coaching.PreferredModalitySet
171678
+ * @static
171679
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
171680
+ * @param {number} [length] Message length if known beforehand
171681
+ * @returns {coaching.PreferredModalitySet} PreferredModalitySet
171682
+ * @throws {Error} If the payload is not a reader or valid buffer
171683
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
171684
+ */
171685
+ PreferredModalitySet.decode = function decode(reader, length) {
171686
+ if (!(reader instanceof $Reader))
171687
+ reader = $Reader.create(reader);
171688
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coaching.PreferredModalitySet();
171689
+ while (reader.pos < end) {
171690
+ var tag = reader.uint32();
171691
+ switch (tag >>> 3) {
171692
+ case 1:
171693
+ message.hsUserId = reader.string();
171694
+ break;
171695
+ case 2:
171696
+ message.modality = reader.int32();
171697
+ break;
171698
+ case 3:
171699
+ message.source = reader.int32();
171700
+ break;
171701
+ case 4:
171702
+ message.timestamp = reader.uint64();
171703
+ break;
171704
+ default:
171705
+ reader.skipType(tag & 7);
171706
+ break;
171707
+ }
171708
+ }
171709
+ return message;
171710
+ };
171711
+
171712
+ /**
171713
+ * Decodes a PreferredModalitySet message from the specified reader or buffer, length delimited.
171714
+ * @function decodeDelimited
171715
+ * @memberof coaching.PreferredModalitySet
171716
+ * @static
171717
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
171718
+ * @returns {coaching.PreferredModalitySet} PreferredModalitySet
171719
+ * @throws {Error} If the payload is not a reader or valid buffer
171720
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
171721
+ */
171722
+ PreferredModalitySet.decodeDelimited = function decodeDelimited(reader) {
171723
+ if (!(reader instanceof $Reader))
171724
+ reader = new $Reader(reader);
171725
+ return this.decode(reader, reader.uint32());
171726
+ };
171727
+
171728
+ /**
171729
+ * Verifies a PreferredModalitySet message.
171730
+ * @function verify
171731
+ * @memberof coaching.PreferredModalitySet
171732
+ * @static
171733
+ * @param {Object.<string,*>} message Plain object to verify
171734
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
171735
+ */
171736
+ PreferredModalitySet.verify = function verify(message) {
171737
+ if (typeof message !== "object" || message === null)
171738
+ return "object expected";
171739
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
171740
+ if (!$util.isString(message.hsUserId))
171741
+ return "hsUserId: string expected";
171742
+ if (message.modality != null && message.hasOwnProperty("modality"))
171743
+ switch (message.modality) {
171744
+ default:
171745
+ return "modality: enum value expected";
171746
+ case 0:
171747
+ case 1:
171748
+ case 2:
171749
+ break;
171750
+ }
171751
+ if (message.source != null && message.hasOwnProperty("source"))
171752
+ switch (message.source) {
171753
+ default:
171754
+ return "source: enum value expected";
171755
+ case 0:
171756
+ case 1:
171757
+ case 2:
171758
+ break;
171759
+ }
171760
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
171761
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
171762
+ return "timestamp: integer|Long expected";
171763
+ return null;
171764
+ };
171765
+
171766
+ /**
171767
+ * Creates a PreferredModalitySet message from a plain object. Also converts values to their respective internal types.
171768
+ * @function fromObject
171769
+ * @memberof coaching.PreferredModalitySet
171770
+ * @static
171771
+ * @param {Object.<string,*>} object Plain object
171772
+ * @returns {coaching.PreferredModalitySet} PreferredModalitySet
171773
+ */
171774
+ PreferredModalitySet.fromObject = function fromObject(object) {
171775
+ if (object instanceof $root.coaching.PreferredModalitySet)
171776
+ return object;
171777
+ var message = new $root.coaching.PreferredModalitySet();
171778
+ if (object.hsUserId != null)
171779
+ message.hsUserId = String(object.hsUserId);
171780
+ switch (object.modality) {
171781
+ case "SESSION_MODALITY_UNKNOWN":
171782
+ case 0:
171783
+ message.modality = 0;
171784
+ break;
171785
+ case "SESSION_MODALITY_TYPE_CHAT":
171786
+ case 1:
171787
+ message.modality = 1;
171788
+ break;
171789
+ case "SESSION_MODALITY_TYPE_VIDEO":
171790
+ case 2:
171791
+ message.modality = 2;
171792
+ break;
171793
+ }
171794
+ switch (object.source) {
171795
+ case "MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN":
171796
+ case 0:
171797
+ message.source = 0;
171798
+ break;
171799
+ case "MODALITY_UPDATE_SOURCE_TYPE_MEMBER":
171800
+ case 1:
171801
+ message.source = 1;
171802
+ break;
171803
+ case "MODALITY_UPDATE_SOURCE_TYPE_MEMBER_SERVICES":
171804
+ case 2:
171805
+ message.source = 2;
171806
+ break;
171807
+ }
171808
+ if (object.timestamp != null)
171809
+ if ($util.Long)
171810
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
171811
+ else if (typeof object.timestamp === "string")
171812
+ message.timestamp = parseInt(object.timestamp, 10);
171813
+ else if (typeof object.timestamp === "number")
171814
+ message.timestamp = object.timestamp;
171815
+ else if (typeof object.timestamp === "object")
171816
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
171817
+ return message;
171818
+ };
171819
+
171820
+ /**
171821
+ * Creates a plain object from a PreferredModalitySet message. Also converts values to other types if specified.
171822
+ * @function toObject
171823
+ * @memberof coaching.PreferredModalitySet
171824
+ * @static
171825
+ * @param {coaching.PreferredModalitySet} message PreferredModalitySet
171826
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
171827
+ * @returns {Object.<string,*>} Plain object
171828
+ */
171829
+ PreferredModalitySet.toObject = function toObject(message, options) {
171830
+ if (!options)
171831
+ options = {};
171832
+ var object = {};
171833
+ if (options.defaults) {
171834
+ object.hsUserId = "";
171835
+ object.modality = options.enums === String ? "SESSION_MODALITY_UNKNOWN" : 0;
171836
+ object.source = options.enums === String ? "MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN" : 0;
171837
+ if ($util.Long) {
171838
+ var long = new $util.Long(0, 0, true);
171839
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
171840
+ } else
171841
+ object.timestamp = options.longs === String ? "0" : 0;
171842
+ }
171843
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
171844
+ object.hsUserId = message.hsUserId;
171845
+ if (message.modality != null && message.hasOwnProperty("modality"))
171846
+ object.modality = options.enums === String ? $root.coaching.SessionModality[message.modality] : message.modality;
171847
+ if (message.source != null && message.hasOwnProperty("source"))
171848
+ object.source = options.enums === String ? $root.coaching.ModalityUpdateSourceType[message.source] : message.source;
171849
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
171850
+ if (typeof message.timestamp === "number")
171851
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
171852
+ else
171853
+ 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;
171854
+ return object;
171855
+ };
171856
+
171857
+ /**
171858
+ * Converts this PreferredModalitySet to JSON.
171859
+ * @function toJSON
171860
+ * @memberof coaching.PreferredModalitySet
171861
+ * @instance
171862
+ * @returns {Object.<string,*>} JSON object
171863
+ */
171864
+ PreferredModalitySet.prototype.toJSON = function toJSON() {
171865
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
171866
+ };
171867
+
171868
+ return PreferredModalitySet;
171869
+ })();
171870
+
171467
171871
  coaching.SuicidalIdeationAlert = (function() {
171468
171872
 
171469
171873
  /**
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.704.0"
19
+ "version": "1.706.0"
20
20
  }