@headspace/protos-events 1.516.0 → 1.517.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
@@ -48197,3 +48197,105 @@ export class VirginPulseAccountLinked implements IVirginPulseAccountLinked {
48197
48197
  */
48198
48198
  public toJSON(): { [k: string]: any };
48199
48199
  }
48200
+
48201
+ /** Properties of a CareCoachingInteractionStarted. */
48202
+ export interface ICareCoachingInteractionStarted {
48203
+
48204
+ /** CareCoachingInteractionStarted userId */
48205
+ userId?: (string|null);
48206
+
48207
+ /** CareCoachingInteractionStarted coachingSessionCount */
48208
+ coachingSessionCount?: (number|null);
48209
+
48210
+ /** CareCoachingInteractionStarted timestamp */
48211
+ timestamp?: (number|Long|null);
48212
+ }
48213
+
48214
+ /** Represents a CareCoachingInteractionStarted. */
48215
+ export class CareCoachingInteractionStarted implements ICareCoachingInteractionStarted {
48216
+
48217
+ /**
48218
+ * Constructs a new CareCoachingInteractionStarted.
48219
+ * @param [properties] Properties to set
48220
+ */
48221
+ constructor(properties?: ICareCoachingInteractionStarted);
48222
+
48223
+ /** CareCoachingInteractionStarted userId. */
48224
+ public userId: string;
48225
+
48226
+ /** CareCoachingInteractionStarted coachingSessionCount. */
48227
+ public coachingSessionCount: number;
48228
+
48229
+ /** CareCoachingInteractionStarted timestamp. */
48230
+ public timestamp: (number|Long);
48231
+
48232
+ /**
48233
+ * Creates a new CareCoachingInteractionStarted instance using the specified properties.
48234
+ * @param [properties] Properties to set
48235
+ * @returns CareCoachingInteractionStarted instance
48236
+ */
48237
+ public static create(properties?: ICareCoachingInteractionStarted): CareCoachingInteractionStarted;
48238
+
48239
+ /**
48240
+ * Encodes the specified CareCoachingInteractionStarted message. Does not implicitly {@link CareCoachingInteractionStarted.verify|verify} messages.
48241
+ * @param message CareCoachingInteractionStarted message or plain object to encode
48242
+ * @param [writer] Writer to encode to
48243
+ * @returns Writer
48244
+ */
48245
+ public static encode(message: ICareCoachingInteractionStarted, writer?: $protobuf.Writer): $protobuf.Writer;
48246
+
48247
+ /**
48248
+ * Encodes the specified CareCoachingInteractionStarted message, length delimited. Does not implicitly {@link CareCoachingInteractionStarted.verify|verify} messages.
48249
+ * @param message CareCoachingInteractionStarted message or plain object to encode
48250
+ * @param [writer] Writer to encode to
48251
+ * @returns Writer
48252
+ */
48253
+ public static encodeDelimited(message: ICareCoachingInteractionStarted, writer?: $protobuf.Writer): $protobuf.Writer;
48254
+
48255
+ /**
48256
+ * Decodes a CareCoachingInteractionStarted message from the specified reader or buffer.
48257
+ * @param reader Reader or buffer to decode from
48258
+ * @param [length] Message length if known beforehand
48259
+ * @returns CareCoachingInteractionStarted
48260
+ * @throws {Error} If the payload is not a reader or valid buffer
48261
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48262
+ */
48263
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CareCoachingInteractionStarted;
48264
+
48265
+ /**
48266
+ * Decodes a CareCoachingInteractionStarted message from the specified reader or buffer, length delimited.
48267
+ * @param reader Reader or buffer to decode from
48268
+ * @returns CareCoachingInteractionStarted
48269
+ * @throws {Error} If the payload is not a reader or valid buffer
48270
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48271
+ */
48272
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CareCoachingInteractionStarted;
48273
+
48274
+ /**
48275
+ * Verifies a CareCoachingInteractionStarted message.
48276
+ * @param message Plain object to verify
48277
+ * @returns `null` if valid, otherwise the reason why it is not
48278
+ */
48279
+ public static verify(message: { [k: string]: any }): (string|null);
48280
+
48281
+ /**
48282
+ * Creates a CareCoachingInteractionStarted message from a plain object. Also converts values to their respective internal types.
48283
+ * @param object Plain object
48284
+ * @returns CareCoachingInteractionStarted
48285
+ */
48286
+ public static fromObject(object: { [k: string]: any }): CareCoachingInteractionStarted;
48287
+
48288
+ /**
48289
+ * Creates a plain object from a CareCoachingInteractionStarted message. Also converts values to other types if specified.
48290
+ * @param message CareCoachingInteractionStarted
48291
+ * @param [options] Conversion options
48292
+ * @returns Plain object
48293
+ */
48294
+ public static toObject(message: CareCoachingInteractionStarted, options?: $protobuf.IConversionOptions): { [k: string]: any };
48295
+
48296
+ /**
48297
+ * Converts this CareCoachingInteractionStarted to JSON.
48298
+ * @returns JSON object
48299
+ */
48300
+ public toJSON(): { [k: string]: any };
48301
+ }
package/lib/index.js CHANGED
@@ -136817,4 +136817,250 @@ $root.VirginPulseAccountLinked = (function() {
136817
136817
  return VirginPulseAccountLinked;
136818
136818
  })();
136819
136819
 
136820
+ $root.CareCoachingInteractionStarted = (function() {
136821
+
136822
+ /**
136823
+ * Properties of a CareCoachingInteractionStarted.
136824
+ * @name ICareCoachingInteractionStarted
136825
+ * @interface ICareCoachingInteractionStarted
136826
+ * @property {string|null} [userId] CareCoachingInteractionStarted userId
136827
+ * @property {number|null} [coachingSessionCount] CareCoachingInteractionStarted coachingSessionCount
136828
+ * @property {number|Long|null} [timestamp] CareCoachingInteractionStarted timestamp
136829
+ */
136830
+
136831
+ /**
136832
+ * Constructs a new CareCoachingInteractionStarted.
136833
+ * @name CareCoachingInteractionStarted
136834
+ * @classdesc Represents a CareCoachingInteractionStarted.
136835
+ * @implements ICareCoachingInteractionStarted
136836
+ * @constructor
136837
+ * @param {ICareCoachingInteractionStarted=} [properties] Properties to set
136838
+ */
136839
+ function CareCoachingInteractionStarted(properties) {
136840
+ if (properties)
136841
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
136842
+ if (properties[keys[i]] != null)
136843
+ this[keys[i]] = properties[keys[i]];
136844
+ }
136845
+
136846
+ /**
136847
+ * CareCoachingInteractionStarted userId.
136848
+ * @member {string} userId
136849
+ * @memberof CareCoachingInteractionStarted
136850
+ * @instance
136851
+ */
136852
+ CareCoachingInteractionStarted.prototype.userId = "";
136853
+
136854
+ /**
136855
+ * CareCoachingInteractionStarted coachingSessionCount.
136856
+ * @member {number} coachingSessionCount
136857
+ * @memberof CareCoachingInteractionStarted
136858
+ * @instance
136859
+ */
136860
+ CareCoachingInteractionStarted.prototype.coachingSessionCount = 0;
136861
+
136862
+ /**
136863
+ * CareCoachingInteractionStarted timestamp.
136864
+ * @member {number|Long} timestamp
136865
+ * @memberof CareCoachingInteractionStarted
136866
+ * @instance
136867
+ */
136868
+ CareCoachingInteractionStarted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
136869
+
136870
+ /**
136871
+ * Creates a new CareCoachingInteractionStarted instance using the specified properties.
136872
+ * @function create
136873
+ * @memberof CareCoachingInteractionStarted
136874
+ * @static
136875
+ * @param {ICareCoachingInteractionStarted=} [properties] Properties to set
136876
+ * @returns {CareCoachingInteractionStarted} CareCoachingInteractionStarted instance
136877
+ */
136878
+ CareCoachingInteractionStarted.create = function create(properties) {
136879
+ return new CareCoachingInteractionStarted(properties);
136880
+ };
136881
+
136882
+ /**
136883
+ * Encodes the specified CareCoachingInteractionStarted message. Does not implicitly {@link CareCoachingInteractionStarted.verify|verify} messages.
136884
+ * @function encode
136885
+ * @memberof CareCoachingInteractionStarted
136886
+ * @static
136887
+ * @param {ICareCoachingInteractionStarted} message CareCoachingInteractionStarted message or plain object to encode
136888
+ * @param {$protobuf.Writer} [writer] Writer to encode to
136889
+ * @returns {$protobuf.Writer} Writer
136890
+ */
136891
+ CareCoachingInteractionStarted.encode = function encode(message, writer) {
136892
+ if (!writer)
136893
+ writer = $Writer.create();
136894
+ if (message.userId != null && message.hasOwnProperty("userId"))
136895
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
136896
+ if (message.coachingSessionCount != null && message.hasOwnProperty("coachingSessionCount"))
136897
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.coachingSessionCount);
136898
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
136899
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
136900
+ return writer;
136901
+ };
136902
+
136903
+ /**
136904
+ * Encodes the specified CareCoachingInteractionStarted message, length delimited. Does not implicitly {@link CareCoachingInteractionStarted.verify|verify} messages.
136905
+ * @function encodeDelimited
136906
+ * @memberof CareCoachingInteractionStarted
136907
+ * @static
136908
+ * @param {ICareCoachingInteractionStarted} message CareCoachingInteractionStarted message or plain object to encode
136909
+ * @param {$protobuf.Writer} [writer] Writer to encode to
136910
+ * @returns {$protobuf.Writer} Writer
136911
+ */
136912
+ CareCoachingInteractionStarted.encodeDelimited = function encodeDelimited(message, writer) {
136913
+ return this.encode(message, writer).ldelim();
136914
+ };
136915
+
136916
+ /**
136917
+ * Decodes a CareCoachingInteractionStarted message from the specified reader or buffer.
136918
+ * @function decode
136919
+ * @memberof CareCoachingInteractionStarted
136920
+ * @static
136921
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
136922
+ * @param {number} [length] Message length if known beforehand
136923
+ * @returns {CareCoachingInteractionStarted} CareCoachingInteractionStarted
136924
+ * @throws {Error} If the payload is not a reader or valid buffer
136925
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
136926
+ */
136927
+ CareCoachingInteractionStarted.decode = function decode(reader, length) {
136928
+ if (!(reader instanceof $Reader))
136929
+ reader = $Reader.create(reader);
136930
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CareCoachingInteractionStarted();
136931
+ while (reader.pos < end) {
136932
+ var tag = reader.uint32();
136933
+ switch (tag >>> 3) {
136934
+ case 1:
136935
+ message.userId = reader.string();
136936
+ break;
136937
+ case 2:
136938
+ message.coachingSessionCount = reader.int32();
136939
+ break;
136940
+ case 3:
136941
+ message.timestamp = reader.uint64();
136942
+ break;
136943
+ default:
136944
+ reader.skipType(tag & 7);
136945
+ break;
136946
+ }
136947
+ }
136948
+ return message;
136949
+ };
136950
+
136951
+ /**
136952
+ * Decodes a CareCoachingInteractionStarted message from the specified reader or buffer, length delimited.
136953
+ * @function decodeDelimited
136954
+ * @memberof CareCoachingInteractionStarted
136955
+ * @static
136956
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
136957
+ * @returns {CareCoachingInteractionStarted} CareCoachingInteractionStarted
136958
+ * @throws {Error} If the payload is not a reader or valid buffer
136959
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
136960
+ */
136961
+ CareCoachingInteractionStarted.decodeDelimited = function decodeDelimited(reader) {
136962
+ if (!(reader instanceof $Reader))
136963
+ reader = new $Reader(reader);
136964
+ return this.decode(reader, reader.uint32());
136965
+ };
136966
+
136967
+ /**
136968
+ * Verifies a CareCoachingInteractionStarted message.
136969
+ * @function verify
136970
+ * @memberof CareCoachingInteractionStarted
136971
+ * @static
136972
+ * @param {Object.<string,*>} message Plain object to verify
136973
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
136974
+ */
136975
+ CareCoachingInteractionStarted.verify = function verify(message) {
136976
+ if (typeof message !== "object" || message === null)
136977
+ return "object expected";
136978
+ if (message.userId != null && message.hasOwnProperty("userId"))
136979
+ if (!$util.isString(message.userId))
136980
+ return "userId: string expected";
136981
+ if (message.coachingSessionCount != null && message.hasOwnProperty("coachingSessionCount"))
136982
+ if (!$util.isInteger(message.coachingSessionCount))
136983
+ return "coachingSessionCount: integer expected";
136984
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
136985
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
136986
+ return "timestamp: integer|Long expected";
136987
+ return null;
136988
+ };
136989
+
136990
+ /**
136991
+ * Creates a CareCoachingInteractionStarted message from a plain object. Also converts values to their respective internal types.
136992
+ * @function fromObject
136993
+ * @memberof CareCoachingInteractionStarted
136994
+ * @static
136995
+ * @param {Object.<string,*>} object Plain object
136996
+ * @returns {CareCoachingInteractionStarted} CareCoachingInteractionStarted
136997
+ */
136998
+ CareCoachingInteractionStarted.fromObject = function fromObject(object) {
136999
+ if (object instanceof $root.CareCoachingInteractionStarted)
137000
+ return object;
137001
+ var message = new $root.CareCoachingInteractionStarted();
137002
+ if (object.userId != null)
137003
+ message.userId = String(object.userId);
137004
+ if (object.coachingSessionCount != null)
137005
+ message.coachingSessionCount = object.coachingSessionCount | 0;
137006
+ if (object.timestamp != null)
137007
+ if ($util.Long)
137008
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
137009
+ else if (typeof object.timestamp === "string")
137010
+ message.timestamp = parseInt(object.timestamp, 10);
137011
+ else if (typeof object.timestamp === "number")
137012
+ message.timestamp = object.timestamp;
137013
+ else if (typeof object.timestamp === "object")
137014
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
137015
+ return message;
137016
+ };
137017
+
137018
+ /**
137019
+ * Creates a plain object from a CareCoachingInteractionStarted message. Also converts values to other types if specified.
137020
+ * @function toObject
137021
+ * @memberof CareCoachingInteractionStarted
137022
+ * @static
137023
+ * @param {CareCoachingInteractionStarted} message CareCoachingInteractionStarted
137024
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
137025
+ * @returns {Object.<string,*>} Plain object
137026
+ */
137027
+ CareCoachingInteractionStarted.toObject = function toObject(message, options) {
137028
+ if (!options)
137029
+ options = {};
137030
+ var object = {};
137031
+ if (options.defaults) {
137032
+ object.userId = "";
137033
+ object.coachingSessionCount = 0;
137034
+ if ($util.Long) {
137035
+ var long = new $util.Long(0, 0, true);
137036
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
137037
+ } else
137038
+ object.timestamp = options.longs === String ? "0" : 0;
137039
+ }
137040
+ if (message.userId != null && message.hasOwnProperty("userId"))
137041
+ object.userId = message.userId;
137042
+ if (message.coachingSessionCount != null && message.hasOwnProperty("coachingSessionCount"))
137043
+ object.coachingSessionCount = message.coachingSessionCount;
137044
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
137045
+ if (typeof message.timestamp === "number")
137046
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
137047
+ else
137048
+ 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;
137049
+ return object;
137050
+ };
137051
+
137052
+ /**
137053
+ * Converts this CareCoachingInteractionStarted to JSON.
137054
+ * @function toJSON
137055
+ * @memberof CareCoachingInteractionStarted
137056
+ * @instance
137057
+ * @returns {Object.<string,*>} JSON object
137058
+ */
137059
+ CareCoachingInteractionStarted.prototype.toJSON = function toJSON() {
137060
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
137061
+ };
137062
+
137063
+ return CareCoachingInteractionStarted;
137064
+ })();
137065
+
136820
137066
  module.exports = $root;
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.516.0"
19
+ "version": "1.517.0"
20
20
  }