@headspace/protos-events 1.707.0 → 1.709.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
@@ -58328,7 +58328,8 @@ export namespace clinical {
58328
58328
  CLINICAL_APPOINTMENT_STATUS_LATE_CANCELLED = 13,
58329
58329
  CLINICAL_APPOINTMENT_STATUS_DELETED = 14,
58330
58330
  CLINICAL_APPOINTMENT_STATUS_CHECKED_IN_ONLINE = 15,
58331
- CLINICAL_APPOINTMENT_STATUS_PROVIDER_NO_SHOW = 16
58331
+ CLINICAL_APPOINTMENT_STATUS_PROVIDER_NO_SHOW = 16,
58332
+ CLINICAL_APPOINTMENT_STATUS_CANCELLED_NO_INTAKE = 17
58332
58333
  }
58333
58334
 
58334
58335
  /** ClinicalAppointmentType enum. */
@@ -59718,8 +59719,8 @@ export namespace coaching {
59718
59719
  /** PreferredModalitySet source */
59719
59720
  source?: (coaching.ModalityUpdateSourceType|null);
59720
59721
 
59721
- /** PreferredModalitySet timestamp */
59722
- timestamp?: (number|Long|null);
59722
+ /** PreferredModalitySet eventDetail */
59723
+ eventDetail?: (IEventDetail|null);
59723
59724
  }
59724
59725
 
59725
59726
  /**
@@ -59744,8 +59745,8 @@ export namespace coaching {
59744
59745
  /** PreferredModalitySet source. */
59745
59746
  public source: coaching.ModalityUpdateSourceType;
59746
59747
 
59747
- /** PreferredModalitySet timestamp. */
59748
- public timestamp: (number|Long);
59748
+ /** PreferredModalitySet eventDetail. */
59749
+ public eventDetail?: (IEventDetail|null);
59749
59750
 
59750
59751
  /**
59751
59752
  * Creates a new PreferredModalitySet instance using the specified properties.
package/lib/index.js CHANGED
@@ -12547,6 +12547,7 @@ $root.ClinicalAppointment = (function() {
12547
12547
  case 14:
12548
12548
  case 15:
12549
12549
  case 16:
12550
+ case 17:
12550
12551
  break;
12551
12552
  }
12552
12553
  if (message.dateStatusUpdatedTime != null && message.hasOwnProperty("dateStatusUpdatedTime"))
@@ -12859,6 +12860,10 @@ $root.ClinicalAppointment = (function() {
12859
12860
  case 16:
12860
12861
  message.appointmentStatus = 16;
12861
12862
  break;
12863
+ case "CLINICAL_APPOINTMENT_STATUS_CANCELLED_NO_INTAKE":
12864
+ case 17:
12865
+ message.appointmentStatus = 17;
12866
+ break;
12862
12867
  }
12863
12868
  if (object.dateStatusUpdatedTime != null)
12864
12869
  if ($util.Long)
@@ -167806,6 +167811,7 @@ $root.clinical = (function() {
167806
167811
  * @property {number} CLINICAL_APPOINTMENT_STATUS_DELETED=14 CLINICAL_APPOINTMENT_STATUS_DELETED value
167807
167812
  * @property {number} CLINICAL_APPOINTMENT_STATUS_CHECKED_IN_ONLINE=15 CLINICAL_APPOINTMENT_STATUS_CHECKED_IN_ONLINE value
167808
167813
  * @property {number} CLINICAL_APPOINTMENT_STATUS_PROVIDER_NO_SHOW=16 CLINICAL_APPOINTMENT_STATUS_PROVIDER_NO_SHOW value
167814
+ * @property {number} CLINICAL_APPOINTMENT_STATUS_CANCELLED_NO_INTAKE=17 CLINICAL_APPOINTMENT_STATUS_CANCELLED_NO_INTAKE value
167809
167815
  */
167810
167816
  clinical.ClinicalAppointmentStatus = (function() {
167811
167817
  var valuesById = {}, values = Object.create(valuesById);
@@ -167826,6 +167832,7 @@ $root.clinical = (function() {
167826
167832
  values[valuesById[14] = "CLINICAL_APPOINTMENT_STATUS_DELETED"] = 14;
167827
167833
  values[valuesById[15] = "CLINICAL_APPOINTMENT_STATUS_CHECKED_IN_ONLINE"] = 15;
167828
167834
  values[valuesById[16] = "CLINICAL_APPOINTMENT_STATUS_PROVIDER_NO_SHOW"] = 16;
167835
+ values[valuesById[17] = "CLINICAL_APPOINTMENT_STATUS_CANCELLED_NO_INTAKE"] = 17;
167829
167836
  return values;
167830
167837
  })();
167831
167838
 
@@ -171887,7 +171894,7 @@ $root.coaching = (function() {
171887
171894
  * @property {string|null} [hsUserId] PreferredModalitySet hsUserId
171888
171895
  * @property {coaching.SessionModality|null} [modality] PreferredModalitySet modality
171889
171896
  * @property {coaching.ModalityUpdateSourceType|null} [source] PreferredModalitySet source
171890
- * @property {number|Long|null} [timestamp] PreferredModalitySet timestamp
171897
+ * @property {IEventDetail|null} [eventDetail] PreferredModalitySet eventDetail
171891
171898
  */
171892
171899
 
171893
171900
  /**
@@ -171932,12 +171939,12 @@ $root.coaching = (function() {
171932
171939
  PreferredModalitySet.prototype.source = 0;
171933
171940
 
171934
171941
  /**
171935
- * PreferredModalitySet timestamp.
171936
- * @member {number|Long} timestamp
171942
+ * PreferredModalitySet eventDetail.
171943
+ * @member {IEventDetail|null|undefined} eventDetail
171937
171944
  * @memberof coaching.PreferredModalitySet
171938
171945
  * @instance
171939
171946
  */
171940
- PreferredModalitySet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
171947
+ PreferredModalitySet.prototype.eventDetail = null;
171941
171948
 
171942
171949
  /**
171943
171950
  * Creates a new PreferredModalitySet instance using the specified properties.
@@ -171969,8 +171976,8 @@ $root.coaching = (function() {
171969
171976
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.modality);
171970
171977
  if (message.source != null && message.hasOwnProperty("source"))
171971
171978
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.source);
171972
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
171973
- writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
171979
+ if (message.eventDetail != null && message.hasOwnProperty("eventDetail"))
171980
+ $root.EventDetail.encode(message.eventDetail, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
171974
171981
  return writer;
171975
171982
  };
171976
171983
 
@@ -172014,8 +172021,8 @@ $root.coaching = (function() {
172014
172021
  case 3:
172015
172022
  message.source = reader.int32();
172016
172023
  break;
172017
- case 4:
172018
- message.timestamp = reader.uint64();
172024
+ case 5:
172025
+ message.eventDetail = $root.EventDetail.decode(reader, reader.uint32());
172019
172026
  break;
172020
172027
  default:
172021
172028
  reader.skipType(tag & 7);
@@ -172073,9 +172080,11 @@ $root.coaching = (function() {
172073
172080
  case 2:
172074
172081
  break;
172075
172082
  }
172076
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
172077
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
172078
- return "timestamp: integer|Long expected";
172083
+ if (message.eventDetail != null && message.hasOwnProperty("eventDetail")) {
172084
+ var error = $root.EventDetail.verify(message.eventDetail);
172085
+ if (error)
172086
+ return "eventDetail." + error;
172087
+ }
172079
172088
  return null;
172080
172089
  };
172081
172090
 
@@ -172121,15 +172130,11 @@ $root.coaching = (function() {
172121
172130
  message.source = 2;
172122
172131
  break;
172123
172132
  }
172124
- if (object.timestamp != null)
172125
- if ($util.Long)
172126
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
172127
- else if (typeof object.timestamp === "string")
172128
- message.timestamp = parseInt(object.timestamp, 10);
172129
- else if (typeof object.timestamp === "number")
172130
- message.timestamp = object.timestamp;
172131
- else if (typeof object.timestamp === "object")
172132
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
172133
+ if (object.eventDetail != null) {
172134
+ if (typeof object.eventDetail !== "object")
172135
+ throw TypeError(".coaching.PreferredModalitySet.eventDetail: object expected");
172136
+ message.eventDetail = $root.EventDetail.fromObject(object.eventDetail);
172137
+ }
172133
172138
  return message;
172134
172139
  };
172135
172140
 
@@ -172150,11 +172155,7 @@ $root.coaching = (function() {
172150
172155
  object.hsUserId = "";
172151
172156
  object.modality = options.enums === String ? "SESSION_MODALITY_UNKNOWN" : 0;
172152
172157
  object.source = options.enums === String ? "MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN" : 0;
172153
- if ($util.Long) {
172154
- var long = new $util.Long(0, 0, true);
172155
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172156
- } else
172157
- object.timestamp = options.longs === String ? "0" : 0;
172158
+ object.eventDetail = null;
172158
172159
  }
172159
172160
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
172160
172161
  object.hsUserId = message.hsUserId;
@@ -172162,11 +172163,8 @@ $root.coaching = (function() {
172162
172163
  object.modality = options.enums === String ? $root.coaching.SessionModality[message.modality] : message.modality;
172163
172164
  if (message.source != null && message.hasOwnProperty("source"))
172164
172165
  object.source = options.enums === String ? $root.coaching.ModalityUpdateSourceType[message.source] : message.source;
172165
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
172166
- if (typeof message.timestamp === "number")
172167
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
172168
- else
172169
- 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;
172166
+ if (message.eventDetail != null && message.hasOwnProperty("eventDetail"))
172167
+ object.eventDetail = $root.EventDetail.toObject(message.eventDetail, options);
172170
172168
  return object;
172171
172169
  };
172172
172170
 
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.707.0"
19
+ "version": "1.709.0"
20
20
  }