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