@headspace/protos-events 1.792.0 → 1.794.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
@@ -36893,6 +36893,106 @@ export class BrazeProxyChatMessageSent implements IBrazeProxyChatMessageSent {
36893
36893
  public toJSON(): { [k: string]: any };
36894
36894
  }
36895
36895
 
36896
+ /** Properties of a BrazeProxyAppleHapticNotificationSent. */
36897
+ export interface IBrazeProxyAppleHapticNotificationSent {
36898
+
36899
+ /** BrazeProxyAppleHapticNotificationSent hsUserId */
36900
+ hsUserId?: (string|null);
36901
+
36902
+ /** BrazeProxyAppleHapticNotificationSent timestamp */
36903
+ timestamp?: (number|Long|null);
36904
+ }
36905
+
36906
+ /**
36907
+ * Sent from the hs-user-service when a user's Apple Watch reading completes.
36908
+ * Responsible team: Consumer Growth
36909
+ *
36910
+ */
36911
+ export class BrazeProxyAppleHapticNotificationSent implements IBrazeProxyAppleHapticNotificationSent {
36912
+
36913
+ /**
36914
+ * Constructs a new BrazeProxyAppleHapticNotificationSent.
36915
+ * @param [properties] Properties to set
36916
+ */
36917
+ constructor(properties?: IBrazeProxyAppleHapticNotificationSent);
36918
+
36919
+ /** BrazeProxyAppleHapticNotificationSent hsUserId. */
36920
+ public hsUserId: string;
36921
+
36922
+ /** BrazeProxyAppleHapticNotificationSent timestamp. */
36923
+ public timestamp: (number|Long);
36924
+
36925
+ /**
36926
+ * Creates a new BrazeProxyAppleHapticNotificationSent instance using the specified properties.
36927
+ * @param [properties] Properties to set
36928
+ * @returns BrazeProxyAppleHapticNotificationSent instance
36929
+ */
36930
+ public static create(properties?: IBrazeProxyAppleHapticNotificationSent): BrazeProxyAppleHapticNotificationSent;
36931
+
36932
+ /**
36933
+ * Encodes the specified BrazeProxyAppleHapticNotificationSent message. Does not implicitly {@link BrazeProxyAppleHapticNotificationSent.verify|verify} messages.
36934
+ * @param message BrazeProxyAppleHapticNotificationSent message or plain object to encode
36935
+ * @param [writer] Writer to encode to
36936
+ * @returns Writer
36937
+ */
36938
+ public static encode(message: IBrazeProxyAppleHapticNotificationSent, writer?: $protobuf.Writer): $protobuf.Writer;
36939
+
36940
+ /**
36941
+ * Encodes the specified BrazeProxyAppleHapticNotificationSent message, length delimited. Does not implicitly {@link BrazeProxyAppleHapticNotificationSent.verify|verify} messages.
36942
+ * @param message BrazeProxyAppleHapticNotificationSent message or plain object to encode
36943
+ * @param [writer] Writer to encode to
36944
+ * @returns Writer
36945
+ */
36946
+ public static encodeDelimited(message: IBrazeProxyAppleHapticNotificationSent, writer?: $protobuf.Writer): $protobuf.Writer;
36947
+
36948
+ /**
36949
+ * Decodes a BrazeProxyAppleHapticNotificationSent message from the specified reader or buffer.
36950
+ * @param reader Reader or buffer to decode from
36951
+ * @param [length] Message length if known beforehand
36952
+ * @returns BrazeProxyAppleHapticNotificationSent
36953
+ * @throws {Error} If the payload is not a reader or valid buffer
36954
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36955
+ */
36956
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BrazeProxyAppleHapticNotificationSent;
36957
+
36958
+ /**
36959
+ * Decodes a BrazeProxyAppleHapticNotificationSent message from the specified reader or buffer, length delimited.
36960
+ * @param reader Reader or buffer to decode from
36961
+ * @returns BrazeProxyAppleHapticNotificationSent
36962
+ * @throws {Error} If the payload is not a reader or valid buffer
36963
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36964
+ */
36965
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BrazeProxyAppleHapticNotificationSent;
36966
+
36967
+ /**
36968
+ * Verifies a BrazeProxyAppleHapticNotificationSent message.
36969
+ * @param message Plain object to verify
36970
+ * @returns `null` if valid, otherwise the reason why it is not
36971
+ */
36972
+ public static verify(message: { [k: string]: any }): (string|null);
36973
+
36974
+ /**
36975
+ * Creates a BrazeProxyAppleHapticNotificationSent message from a plain object. Also converts values to their respective internal types.
36976
+ * @param object Plain object
36977
+ * @returns BrazeProxyAppleHapticNotificationSent
36978
+ */
36979
+ public static fromObject(object: { [k: string]: any }): BrazeProxyAppleHapticNotificationSent;
36980
+
36981
+ /**
36982
+ * Creates a plain object from a BrazeProxyAppleHapticNotificationSent message. Also converts values to other types if specified.
36983
+ * @param message BrazeProxyAppleHapticNotificationSent
36984
+ * @param [options] Conversion options
36985
+ * @returns Plain object
36986
+ */
36987
+ public static toObject(message: BrazeProxyAppleHapticNotificationSent, options?: $protobuf.IConversionOptions): { [k: string]: any };
36988
+
36989
+ /**
36990
+ * Converts this BrazeProxyAppleHapticNotificationSent to JSON.
36991
+ * @returns JSON object
36992
+ */
36993
+ public toJSON(): { [k: string]: any };
36994
+ }
36995
+
36896
36996
  /** Properties of a ClinicalIntakeAssigned. */
36897
36997
  export interface IClinicalIntakeAssigned {
36898
36998
 
package/lib/index.js CHANGED
@@ -103860,6 +103860,234 @@ $root.BrazeProxyChatMessageSent = (function() {
103860
103860
  return BrazeProxyChatMessageSent;
103861
103861
  })();
103862
103862
 
103863
+ $root.BrazeProxyAppleHapticNotificationSent = (function() {
103864
+
103865
+ /**
103866
+ * Properties of a BrazeProxyAppleHapticNotificationSent.
103867
+ * @name IBrazeProxyAppleHapticNotificationSent
103868
+ * @interface IBrazeProxyAppleHapticNotificationSent
103869
+ * @property {string|null} [hsUserId] BrazeProxyAppleHapticNotificationSent hsUserId
103870
+ * @property {number|Long|null} [timestamp] BrazeProxyAppleHapticNotificationSent timestamp
103871
+ */
103872
+
103873
+ /**
103874
+ * Constructs a new BrazeProxyAppleHapticNotificationSent.
103875
+ * @name BrazeProxyAppleHapticNotificationSent
103876
+ * @classdesc Sent from the hs-user-service when a user's Apple Watch reading completes.
103877
+ * Responsible team: Consumer Growth
103878
+ *
103879
+ * @example User finishes an HRV reading on their Apple Watch.
103880
+ * Related ticket: https://headspace.atlassian.net/browse/GROW-561
103881
+ * @implements IBrazeProxyAppleHapticNotificationSent
103882
+ * @constructor
103883
+ * @param {IBrazeProxyAppleHapticNotificationSent=} [properties] Properties to set
103884
+ */
103885
+ function BrazeProxyAppleHapticNotificationSent(properties) {
103886
+ if (properties)
103887
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
103888
+ if (properties[keys[i]] != null)
103889
+ this[keys[i]] = properties[keys[i]];
103890
+ }
103891
+
103892
+ /**
103893
+ * BrazeProxyAppleHapticNotificationSent hsUserId.
103894
+ * @member {string} hsUserId
103895
+ * @memberof BrazeProxyAppleHapticNotificationSent
103896
+ * @instance
103897
+ */
103898
+ BrazeProxyAppleHapticNotificationSent.prototype.hsUserId = "";
103899
+
103900
+ /**
103901
+ * BrazeProxyAppleHapticNotificationSent timestamp.
103902
+ * @member {number|Long} timestamp
103903
+ * @memberof BrazeProxyAppleHapticNotificationSent
103904
+ * @instance
103905
+ */
103906
+ BrazeProxyAppleHapticNotificationSent.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
103907
+
103908
+ /**
103909
+ * Creates a new BrazeProxyAppleHapticNotificationSent instance using the specified properties.
103910
+ * @function create
103911
+ * @memberof BrazeProxyAppleHapticNotificationSent
103912
+ * @static
103913
+ * @param {IBrazeProxyAppleHapticNotificationSent=} [properties] Properties to set
103914
+ * @returns {BrazeProxyAppleHapticNotificationSent} BrazeProxyAppleHapticNotificationSent instance
103915
+ */
103916
+ BrazeProxyAppleHapticNotificationSent.create = function create(properties) {
103917
+ return new BrazeProxyAppleHapticNotificationSent(properties);
103918
+ };
103919
+
103920
+ /**
103921
+ * Encodes the specified BrazeProxyAppleHapticNotificationSent message. Does not implicitly {@link BrazeProxyAppleHapticNotificationSent.verify|verify} messages.
103922
+ * @function encode
103923
+ * @memberof BrazeProxyAppleHapticNotificationSent
103924
+ * @static
103925
+ * @param {IBrazeProxyAppleHapticNotificationSent} message BrazeProxyAppleHapticNotificationSent message or plain object to encode
103926
+ * @param {$protobuf.Writer} [writer] Writer to encode to
103927
+ * @returns {$protobuf.Writer} Writer
103928
+ */
103929
+ BrazeProxyAppleHapticNotificationSent.encode = function encode(message, writer) {
103930
+ if (!writer)
103931
+ writer = $Writer.create();
103932
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
103933
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
103934
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
103935
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
103936
+ return writer;
103937
+ };
103938
+
103939
+ /**
103940
+ * Encodes the specified BrazeProxyAppleHapticNotificationSent message, length delimited. Does not implicitly {@link BrazeProxyAppleHapticNotificationSent.verify|verify} messages.
103941
+ * @function encodeDelimited
103942
+ * @memberof BrazeProxyAppleHapticNotificationSent
103943
+ * @static
103944
+ * @param {IBrazeProxyAppleHapticNotificationSent} message BrazeProxyAppleHapticNotificationSent message or plain object to encode
103945
+ * @param {$protobuf.Writer} [writer] Writer to encode to
103946
+ * @returns {$protobuf.Writer} Writer
103947
+ */
103948
+ BrazeProxyAppleHapticNotificationSent.encodeDelimited = function encodeDelimited(message, writer) {
103949
+ return this.encode(message, writer).ldelim();
103950
+ };
103951
+
103952
+ /**
103953
+ * Decodes a BrazeProxyAppleHapticNotificationSent message from the specified reader or buffer.
103954
+ * @function decode
103955
+ * @memberof BrazeProxyAppleHapticNotificationSent
103956
+ * @static
103957
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
103958
+ * @param {number} [length] Message length if known beforehand
103959
+ * @returns {BrazeProxyAppleHapticNotificationSent} BrazeProxyAppleHapticNotificationSent
103960
+ * @throws {Error} If the payload is not a reader or valid buffer
103961
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
103962
+ */
103963
+ BrazeProxyAppleHapticNotificationSent.decode = function decode(reader, length) {
103964
+ if (!(reader instanceof $Reader))
103965
+ reader = $Reader.create(reader);
103966
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BrazeProxyAppleHapticNotificationSent();
103967
+ while (reader.pos < end) {
103968
+ var tag = reader.uint32();
103969
+ switch (tag >>> 3) {
103970
+ case 1:
103971
+ message.hsUserId = reader.string();
103972
+ break;
103973
+ case 2:
103974
+ message.timestamp = reader.uint64();
103975
+ break;
103976
+ default:
103977
+ reader.skipType(tag & 7);
103978
+ break;
103979
+ }
103980
+ }
103981
+ return message;
103982
+ };
103983
+
103984
+ /**
103985
+ * Decodes a BrazeProxyAppleHapticNotificationSent message from the specified reader or buffer, length delimited.
103986
+ * @function decodeDelimited
103987
+ * @memberof BrazeProxyAppleHapticNotificationSent
103988
+ * @static
103989
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
103990
+ * @returns {BrazeProxyAppleHapticNotificationSent} BrazeProxyAppleHapticNotificationSent
103991
+ * @throws {Error} If the payload is not a reader or valid buffer
103992
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
103993
+ */
103994
+ BrazeProxyAppleHapticNotificationSent.decodeDelimited = function decodeDelimited(reader) {
103995
+ if (!(reader instanceof $Reader))
103996
+ reader = new $Reader(reader);
103997
+ return this.decode(reader, reader.uint32());
103998
+ };
103999
+
104000
+ /**
104001
+ * Verifies a BrazeProxyAppleHapticNotificationSent message.
104002
+ * @function verify
104003
+ * @memberof BrazeProxyAppleHapticNotificationSent
104004
+ * @static
104005
+ * @param {Object.<string,*>} message Plain object to verify
104006
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
104007
+ */
104008
+ BrazeProxyAppleHapticNotificationSent.verify = function verify(message) {
104009
+ if (typeof message !== "object" || message === null)
104010
+ return "object expected";
104011
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
104012
+ if (!$util.isString(message.hsUserId))
104013
+ return "hsUserId: string expected";
104014
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
104015
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
104016
+ return "timestamp: integer|Long expected";
104017
+ return null;
104018
+ };
104019
+
104020
+ /**
104021
+ * Creates a BrazeProxyAppleHapticNotificationSent message from a plain object. Also converts values to their respective internal types.
104022
+ * @function fromObject
104023
+ * @memberof BrazeProxyAppleHapticNotificationSent
104024
+ * @static
104025
+ * @param {Object.<string,*>} object Plain object
104026
+ * @returns {BrazeProxyAppleHapticNotificationSent} BrazeProxyAppleHapticNotificationSent
104027
+ */
104028
+ BrazeProxyAppleHapticNotificationSent.fromObject = function fromObject(object) {
104029
+ if (object instanceof $root.BrazeProxyAppleHapticNotificationSent)
104030
+ return object;
104031
+ var message = new $root.BrazeProxyAppleHapticNotificationSent();
104032
+ if (object.hsUserId != null)
104033
+ message.hsUserId = String(object.hsUserId);
104034
+ if (object.timestamp != null)
104035
+ if ($util.Long)
104036
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
104037
+ else if (typeof object.timestamp === "string")
104038
+ message.timestamp = parseInt(object.timestamp, 10);
104039
+ else if (typeof object.timestamp === "number")
104040
+ message.timestamp = object.timestamp;
104041
+ else if (typeof object.timestamp === "object")
104042
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
104043
+ return message;
104044
+ };
104045
+
104046
+ /**
104047
+ * Creates a plain object from a BrazeProxyAppleHapticNotificationSent message. Also converts values to other types if specified.
104048
+ * @function toObject
104049
+ * @memberof BrazeProxyAppleHapticNotificationSent
104050
+ * @static
104051
+ * @param {BrazeProxyAppleHapticNotificationSent} message BrazeProxyAppleHapticNotificationSent
104052
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
104053
+ * @returns {Object.<string,*>} Plain object
104054
+ */
104055
+ BrazeProxyAppleHapticNotificationSent.toObject = function toObject(message, options) {
104056
+ if (!options)
104057
+ options = {};
104058
+ var object = {};
104059
+ if (options.defaults) {
104060
+ object.hsUserId = "";
104061
+ if ($util.Long) {
104062
+ var long = new $util.Long(0, 0, true);
104063
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
104064
+ } else
104065
+ object.timestamp = options.longs === String ? "0" : 0;
104066
+ }
104067
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
104068
+ object.hsUserId = message.hsUserId;
104069
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
104070
+ if (typeof message.timestamp === "number")
104071
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
104072
+ else
104073
+ 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;
104074
+ return object;
104075
+ };
104076
+
104077
+ /**
104078
+ * Converts this BrazeProxyAppleHapticNotificationSent to JSON.
104079
+ * @function toJSON
104080
+ * @memberof BrazeProxyAppleHapticNotificationSent
104081
+ * @instance
104082
+ * @returns {Object.<string,*>} JSON object
104083
+ */
104084
+ BrazeProxyAppleHapticNotificationSent.prototype.toJSON = function toJSON() {
104085
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
104086
+ };
104087
+
104088
+ return BrazeProxyAppleHapticNotificationSent;
104089
+ })();
104090
+
103863
104091
  $root.ClinicalIntakeAssigned = (function() {
103864
104092
 
103865
104093
  /**
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.792.0"
19
+ "version": "1.794.0"
20
20
  }