@headspace/protos-events 1.631.0 → 1.632.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
@@ -3298,6 +3298,9 @@ export namespace coaching {
3298
3298
  * See apps.listenerapp.models.ChatConversation
3299
3299
  */
3300
3300
  chatConversationId?: (string|null);
3301
+
3302
+ /** The medium format of the session. */
3303
+ sessionFormat?: (coaching.CoachingSessionFormat|null);
3301
3304
  }
3302
3305
 
3303
3306
  /**
@@ -3369,6 +3372,9 @@ export namespace coaching {
3369
3372
  */
3370
3373
  public chatConversationId: string;
3371
3374
 
3375
+ /** The medium format of the session. */
3376
+ public sessionFormat: coaching.CoachingSessionFormat;
3377
+
3372
3378
  /**
3373
3379
  * Creates a new ScheduledCoachingSession instance using the specified properties.
3374
3380
  * @param [properties] Properties to set
@@ -3448,6 +3454,13 @@ export namespace coaching {
3448
3454
  COACHING_SESSION_EVENT_TYPE_REMINDER = 3
3449
3455
  }
3450
3456
 
3457
+ /** The medium used for a coaching session. */
3458
+ enum CoachingSessionFormat {
3459
+ COACHING_SESSION_FORMAT_UNKNOWN = 0,
3460
+ COACHING_SESSION_FORMAT_CHAT = 1,
3461
+ COACHING_SESSION_FORMAT_VIDEO = 2
3462
+ }
3463
+
3451
3464
  /** Properties of a SuicidalIdeationAlert. */
3452
3465
  interface ISuicidalIdeationAlert {
3453
3466
 
package/lib/index.js CHANGED
@@ -10574,6 +10574,7 @@ $root.coaching = (function() {
10574
10574
  * a new record is created for the new date/time
10575
10575
  * @property {string|null} [chatConversationId] A conversation between a Listener and a Caller is represented by a unique ChatConversation
10576
10576
  * See apps.listenerapp.models.ChatConversation
10577
+ * @property {coaching.CoachingSessionFormat|null} [sessionFormat] The medium format of the session.
10577
10578
  */
10578
10579
 
10579
10580
  /**
@@ -10710,6 +10711,14 @@ $root.coaching = (function() {
10710
10711
  */
10711
10712
  ScheduledCoachingSession.prototype.chatConversationId = "";
10712
10713
 
10714
+ /**
10715
+ * The medium format of the session.
10716
+ * @member {coaching.CoachingSessionFormat} sessionFormat
10717
+ * @memberof coaching.ScheduledCoachingSession
10718
+ * @instance
10719
+ */
10720
+ ScheduledCoachingSession.prototype.sessionFormat = 0;
10721
+
10713
10722
  /**
10714
10723
  * Creates a new ScheduledCoachingSession instance using the specified properties.
10715
10724
  * @function create
@@ -10760,6 +10769,8 @@ $root.coaching = (function() {
10760
10769
  writer.uint32(/* id 12, wireType 0 =*/96).bool(message.rescheduled);
10761
10770
  if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
10762
10771
  writer.uint32(/* id 13, wireType 2 =*/106).string(message.chatConversationId);
10772
+ if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
10773
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.sessionFormat);
10763
10774
  return writer;
10764
10775
  };
10765
10776
 
@@ -10833,6 +10844,9 @@ $root.coaching = (function() {
10833
10844
  case 13:
10834
10845
  message.chatConversationId = reader.string();
10835
10846
  break;
10847
+ case 14:
10848
+ message.sessionFormat = reader.int32();
10849
+ break;
10836
10850
  default:
10837
10851
  reader.skipType(tag & 7);
10838
10852
  break;
@@ -10914,6 +10928,15 @@ $root.coaching = (function() {
10914
10928
  if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
10915
10929
  if (!$util.isString(message.chatConversationId))
10916
10930
  return "chatConversationId: string expected";
10931
+ if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
10932
+ switch (message.sessionFormat) {
10933
+ default:
10934
+ return "sessionFormat: enum value expected";
10935
+ case 0:
10936
+ case 1:
10937
+ case 2:
10938
+ break;
10939
+ }
10917
10940
  return null;
10918
10941
  };
10919
10942
 
@@ -11006,6 +11029,20 @@ $root.coaching = (function() {
11006
11029
  message.rescheduled = Boolean(object.rescheduled);
11007
11030
  if (object.chatConversationId != null)
11008
11031
  message.chatConversationId = String(object.chatConversationId);
11032
+ switch (object.sessionFormat) {
11033
+ case "COACHING_SESSION_FORMAT_UNKNOWN":
11034
+ case 0:
11035
+ message.sessionFormat = 0;
11036
+ break;
11037
+ case "COACHING_SESSION_FORMAT_CHAT":
11038
+ case 1:
11039
+ message.sessionFormat = 1;
11040
+ break;
11041
+ case "COACHING_SESSION_FORMAT_VIDEO":
11042
+ case 2:
11043
+ message.sessionFormat = 2;
11044
+ break;
11045
+ }
11009
11046
  return message;
11010
11047
  };
11011
11048
 
@@ -11056,6 +11093,7 @@ $root.coaching = (function() {
11056
11093
  object.eventType = options.enums === String ? "COACHING_SESSION_EVENT_TYPE_UNKNOWN" : 0;
11057
11094
  object.rescheduled = false;
11058
11095
  object.chatConversationId = "";
11096
+ object.sessionFormat = options.enums === String ? "COACHING_SESSION_FORMAT_UNKNOWN" : 0;
11059
11097
  }
11060
11098
  if (message.id != null && message.hasOwnProperty("id"))
11061
11099
  object.id = message.id;
@@ -11098,6 +11136,8 @@ $root.coaching = (function() {
11098
11136
  object.rescheduled = message.rescheduled;
11099
11137
  if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
11100
11138
  object.chatConversationId = message.chatConversationId;
11139
+ if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
11140
+ object.sessionFormat = options.enums === String ? $root.coaching.CoachingSessionFormat[message.sessionFormat] : message.sessionFormat;
11101
11141
  return object;
11102
11142
  };
11103
11143
 
@@ -11133,6 +11173,22 @@ $root.coaching = (function() {
11133
11173
  return values;
11134
11174
  })();
11135
11175
 
11176
+ /**
11177
+ * The medium used for a coaching session.
11178
+ * @name coaching.CoachingSessionFormat
11179
+ * @enum {string}
11180
+ * @property {number} COACHING_SESSION_FORMAT_UNKNOWN=0 COACHING_SESSION_FORMAT_UNKNOWN value
11181
+ * @property {number} COACHING_SESSION_FORMAT_CHAT=1 COACHING_SESSION_FORMAT_CHAT value
11182
+ * @property {number} COACHING_SESSION_FORMAT_VIDEO=2 COACHING_SESSION_FORMAT_VIDEO value
11183
+ */
11184
+ coaching.CoachingSessionFormat = (function() {
11185
+ var valuesById = {}, values = Object.create(valuesById);
11186
+ values[valuesById[0] = "COACHING_SESSION_FORMAT_UNKNOWN"] = 0;
11187
+ values[valuesById[1] = "COACHING_SESSION_FORMAT_CHAT"] = 1;
11188
+ values[valuesById[2] = "COACHING_SESSION_FORMAT_VIDEO"] = 2;
11189
+ return values;
11190
+ })();
11191
+
11136
11192
  coaching.SuicidalIdeationAlert = (function() {
11137
11193
 
11138
11194
  /**
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.631.0"
19
+ "version": "1.632.0"
20
20
  }