@headspace/protos-events 1.708.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
@@ -59719,8 +59719,8 @@ export namespace coaching {
59719
59719
  /** PreferredModalitySet source */
59720
59720
  source?: (coaching.ModalityUpdateSourceType|null);
59721
59721
 
59722
- /** PreferredModalitySet timestamp */
59723
- timestamp?: (number|Long|null);
59722
+ /** PreferredModalitySet eventDetail */
59723
+ eventDetail?: (IEventDetail|null);
59724
59724
  }
59725
59725
 
59726
59726
  /**
@@ -59745,8 +59745,8 @@ export namespace coaching {
59745
59745
  /** PreferredModalitySet source. */
59746
59746
  public source: coaching.ModalityUpdateSourceType;
59747
59747
 
59748
- /** PreferredModalitySet timestamp. */
59749
- public timestamp: (number|Long);
59748
+ /** PreferredModalitySet eventDetail. */
59749
+ public eventDetail?: (IEventDetail|null);
59750
59750
 
59751
59751
  /**
59752
59752
  * Creates a new PreferredModalitySet instance using the specified properties.
package/lib/index.js CHANGED
@@ -171894,7 +171894,7 @@ $root.coaching = (function() {
171894
171894
  * @property {string|null} [hsUserId] PreferredModalitySet hsUserId
171895
171895
  * @property {coaching.SessionModality|null} [modality] PreferredModalitySet modality
171896
171896
  * @property {coaching.ModalityUpdateSourceType|null} [source] PreferredModalitySet source
171897
- * @property {number|Long|null} [timestamp] PreferredModalitySet timestamp
171897
+ * @property {IEventDetail|null} [eventDetail] PreferredModalitySet eventDetail
171898
171898
  */
171899
171899
 
171900
171900
  /**
@@ -171939,12 +171939,12 @@ $root.coaching = (function() {
171939
171939
  PreferredModalitySet.prototype.source = 0;
171940
171940
 
171941
171941
  /**
171942
- * PreferredModalitySet timestamp.
171943
- * @member {number|Long} timestamp
171942
+ * PreferredModalitySet eventDetail.
171943
+ * @member {IEventDetail|null|undefined} eventDetail
171944
171944
  * @memberof coaching.PreferredModalitySet
171945
171945
  * @instance
171946
171946
  */
171947
- PreferredModalitySet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
171947
+ PreferredModalitySet.prototype.eventDetail = null;
171948
171948
 
171949
171949
  /**
171950
171950
  * Creates a new PreferredModalitySet instance using the specified properties.
@@ -171976,8 +171976,8 @@ $root.coaching = (function() {
171976
171976
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.modality);
171977
171977
  if (message.source != null && message.hasOwnProperty("source"))
171978
171978
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.source);
171979
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
171980
- 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();
171981
171981
  return writer;
171982
171982
  };
171983
171983
 
@@ -172021,8 +172021,8 @@ $root.coaching = (function() {
172021
172021
  case 3:
172022
172022
  message.source = reader.int32();
172023
172023
  break;
172024
- case 4:
172025
- message.timestamp = reader.uint64();
172024
+ case 5:
172025
+ message.eventDetail = $root.EventDetail.decode(reader, reader.uint32());
172026
172026
  break;
172027
172027
  default:
172028
172028
  reader.skipType(tag & 7);
@@ -172080,9 +172080,11 @@ $root.coaching = (function() {
172080
172080
  case 2:
172081
172081
  break;
172082
172082
  }
172083
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
172084
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
172085
- 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
+ }
172086
172088
  return null;
172087
172089
  };
172088
172090
 
@@ -172128,15 +172130,11 @@ $root.coaching = (function() {
172128
172130
  message.source = 2;
172129
172131
  break;
172130
172132
  }
172131
- if (object.timestamp != null)
172132
- if ($util.Long)
172133
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
172134
- else if (typeof object.timestamp === "string")
172135
- message.timestamp = parseInt(object.timestamp, 10);
172136
- else if (typeof object.timestamp === "number")
172137
- message.timestamp = object.timestamp;
172138
- else if (typeof object.timestamp === "object")
172139
- 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
+ }
172140
172138
  return message;
172141
172139
  };
172142
172140
 
@@ -172157,11 +172155,7 @@ $root.coaching = (function() {
172157
172155
  object.hsUserId = "";
172158
172156
  object.modality = options.enums === String ? "SESSION_MODALITY_UNKNOWN" : 0;
172159
172157
  object.source = options.enums === String ? "MODALITY_UPDATE_SOURCE_TYPE_UNKNOWN" : 0;
172160
- if ($util.Long) {
172161
- var long = new $util.Long(0, 0, true);
172162
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
172163
- } else
172164
- object.timestamp = options.longs === String ? "0" : 0;
172158
+ object.eventDetail = null;
172165
172159
  }
172166
172160
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
172167
172161
  object.hsUserId = message.hsUserId;
@@ -172169,11 +172163,8 @@ $root.coaching = (function() {
172169
172163
  object.modality = options.enums === String ? $root.coaching.SessionModality[message.modality] : message.modality;
172170
172164
  if (message.source != null && message.hasOwnProperty("source"))
172171
172165
  object.source = options.enums === String ? $root.coaching.ModalityUpdateSourceType[message.source] : message.source;
172172
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
172173
- if (typeof message.timestamp === "number")
172174
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
172175
- else
172176
- 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);
172177
172168
  return object;
172178
172169
  };
172179
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.708.0"
19
+ "version": "1.709.0"
20
20
  }