@headspace/protos-events 1.416.0 → 1.418.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 +8 -2
- package/lib/index.js +46 -10
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -29119,7 +29119,7 @@ export enum GoalType {
|
|
|
29119
29119
|
export interface IB2BChallengeCreated {
|
|
29120
29120
|
|
|
29121
29121
|
/** B2BChallengeCreated b2bOrgId */
|
|
29122
|
-
b2bOrgId?: (
|
|
29122
|
+
b2bOrgId?: (number|Long|null);
|
|
29123
29123
|
|
|
29124
29124
|
/** B2BChallengeCreated headspaceHealthId */
|
|
29125
29125
|
headspaceHealthId?: (string|null);
|
|
@@ -29153,7 +29153,7 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
|
|
|
29153
29153
|
constructor(properties?: IB2BChallengeCreated);
|
|
29154
29154
|
|
|
29155
29155
|
/** B2BChallengeCreated b2bOrgId. */
|
|
29156
|
-
public b2bOrgId:
|
|
29156
|
+
public b2bOrgId: (number|Long);
|
|
29157
29157
|
|
|
29158
29158
|
/** B2BChallengeCreated headspaceHealthId. */
|
|
29159
29159
|
public headspaceHealthId: string;
|
|
@@ -39986,6 +39986,9 @@ export interface ISoleraMemberEnrolled {
|
|
|
39986
39986
|
|
|
39987
39987
|
/** SoleraMemberEnrolled timestamp */
|
|
39988
39988
|
timestamp?: (number|Long|null);
|
|
39989
|
+
|
|
39990
|
+
/** SoleraMemberEnrolled soleraEnrollmentId */
|
|
39991
|
+
soleraEnrollmentId?: (string|null);
|
|
39989
39992
|
}
|
|
39990
39993
|
|
|
39991
39994
|
/** Represents a SoleraMemberEnrolled. */
|
|
@@ -40006,6 +40009,9 @@ export class SoleraMemberEnrolled implements ISoleraMemberEnrolled {
|
|
|
40006
40009
|
/** SoleraMemberEnrolled timestamp. */
|
|
40007
40010
|
public timestamp: (number|Long);
|
|
40008
40011
|
|
|
40012
|
+
/** SoleraMemberEnrolled soleraEnrollmentId. */
|
|
40013
|
+
public soleraEnrollmentId: string;
|
|
40014
|
+
|
|
40009
40015
|
/**
|
|
40010
40016
|
* Creates a new SoleraMemberEnrolled instance using the specified properties.
|
|
40011
40017
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -80797,7 +80797,7 @@ $root.B2BChallengeCreated = (function() {
|
|
|
80797
80797
|
* Properties of a B2BChallengeCreated.
|
|
80798
80798
|
* @exports IB2BChallengeCreated
|
|
80799
80799
|
* @interface IB2BChallengeCreated
|
|
80800
|
-
* @property {
|
|
80800
|
+
* @property {number|Long|null} [b2bOrgId] B2BChallengeCreated b2bOrgId
|
|
80801
80801
|
* @property {string|null} [headspaceHealthId] B2BChallengeCreated headspaceHealthId
|
|
80802
80802
|
* @property {string|null} [orgName] B2BChallengeCreated orgName
|
|
80803
80803
|
* @property {ChallengeType|null} [challengeType] B2BChallengeCreated challengeType
|
|
@@ -80824,11 +80824,11 @@ $root.B2BChallengeCreated = (function() {
|
|
|
80824
80824
|
|
|
80825
80825
|
/**
|
|
80826
80826
|
* B2BChallengeCreated b2bOrgId.
|
|
80827
|
-
* @member {
|
|
80827
|
+
* @member {number|Long} b2bOrgId
|
|
80828
80828
|
* @memberof B2BChallengeCreated
|
|
80829
80829
|
* @instance
|
|
80830
80830
|
*/
|
|
80831
|
-
B2BChallengeCreated.prototype.b2bOrgId =
|
|
80831
|
+
B2BChallengeCreated.prototype.b2bOrgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80832
80832
|
|
|
80833
80833
|
/**
|
|
80834
80834
|
* B2BChallengeCreated headspaceHealthId.
|
|
@@ -80911,7 +80911,7 @@ $root.B2BChallengeCreated = (function() {
|
|
|
80911
80911
|
if (!writer)
|
|
80912
80912
|
writer = $Writer.create();
|
|
80913
80913
|
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
80914
|
-
writer.uint32(/* id 1, wireType
|
|
80914
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.b2bOrgId);
|
|
80915
80915
|
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
80916
80916
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceHealthId);
|
|
80917
80917
|
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
@@ -80961,7 +80961,7 @@ $root.B2BChallengeCreated = (function() {
|
|
|
80961
80961
|
var tag = reader.uint32();
|
|
80962
80962
|
switch (tag >>> 3) {
|
|
80963
80963
|
case 1:
|
|
80964
|
-
message.b2bOrgId = reader.
|
|
80964
|
+
message.b2bOrgId = reader.uint64();
|
|
80965
80965
|
break;
|
|
80966
80966
|
case 2:
|
|
80967
80967
|
message.headspaceHealthId = reader.string();
|
|
@@ -81020,8 +81020,8 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81020
81020
|
if (typeof message !== "object" || message === null)
|
|
81021
81021
|
return "object expected";
|
|
81022
81022
|
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
81023
|
-
if (!$util.
|
|
81024
|
-
return "b2bOrgId:
|
|
81023
|
+
if (!$util.isInteger(message.b2bOrgId) && !(message.b2bOrgId && $util.isInteger(message.b2bOrgId.low) && $util.isInteger(message.b2bOrgId.high)))
|
|
81024
|
+
return "b2bOrgId: integer|Long expected";
|
|
81025
81025
|
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
81026
81026
|
if (!$util.isString(message.headspaceHealthId))
|
|
81027
81027
|
return "headspaceHealthId: string expected";
|
|
@@ -81072,7 +81072,14 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81072
81072
|
return object;
|
|
81073
81073
|
var message = new $root.B2BChallengeCreated();
|
|
81074
81074
|
if (object.b2bOrgId != null)
|
|
81075
|
-
|
|
81075
|
+
if ($util.Long)
|
|
81076
|
+
(message.b2bOrgId = $util.Long.fromValue(object.b2bOrgId)).unsigned = true;
|
|
81077
|
+
else if (typeof object.b2bOrgId === "string")
|
|
81078
|
+
message.b2bOrgId = parseInt(object.b2bOrgId, 10);
|
|
81079
|
+
else if (typeof object.b2bOrgId === "number")
|
|
81080
|
+
message.b2bOrgId = object.b2bOrgId;
|
|
81081
|
+
else if (typeof object.b2bOrgId === "object")
|
|
81082
|
+
message.b2bOrgId = new $util.LongBits(object.b2bOrgId.low >>> 0, object.b2bOrgId.high >>> 0).toNumber(true);
|
|
81076
81083
|
if (object.headspaceHealthId != null)
|
|
81077
81084
|
message.headspaceHealthId = String(object.headspaceHealthId);
|
|
81078
81085
|
if (object.orgName != null)
|
|
@@ -81146,7 +81153,11 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81146
81153
|
options = {};
|
|
81147
81154
|
var object = {};
|
|
81148
81155
|
if (options.defaults) {
|
|
81149
|
-
|
|
81156
|
+
if ($util.Long) {
|
|
81157
|
+
var long = new $util.Long(0, 0, true);
|
|
81158
|
+
object.b2bOrgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
81159
|
+
} else
|
|
81160
|
+
object.b2bOrgId = options.longs === String ? "0" : 0;
|
|
81150
81161
|
object.headspaceHealthId = "";
|
|
81151
81162
|
object.orgName = "";
|
|
81152
81163
|
object.challengeType = options.enums === String ? "MEDITATION" : 0;
|
|
@@ -81164,7 +81175,10 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81164
81175
|
object.goalTarget = options.longs === String ? "0" : 0;
|
|
81165
81176
|
}
|
|
81166
81177
|
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
81167
|
-
|
|
81178
|
+
if (typeof message.b2bOrgId === "number")
|
|
81179
|
+
object.b2bOrgId = options.longs === String ? String(message.b2bOrgId) : message.b2bOrgId;
|
|
81180
|
+
else
|
|
81181
|
+
object.b2bOrgId = options.longs === String ? $util.Long.prototype.toString.call(message.b2bOrgId) : options.longs === Number ? new $util.LongBits(message.b2bOrgId.low >>> 0, message.b2bOrgId.high >>> 0).toNumber(true) : message.b2bOrgId;
|
|
81168
81182
|
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
81169
81183
|
object.headspaceHealthId = message.headspaceHealthId;
|
|
81170
81184
|
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
@@ -111930,6 +111944,7 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
111930
111944
|
* @property {string|null} [userId] SoleraMemberEnrolled userId
|
|
111931
111945
|
* @property {string|null} [soleraUserId] SoleraMemberEnrolled soleraUserId
|
|
111932
111946
|
* @property {number|Long|null} [timestamp] SoleraMemberEnrolled timestamp
|
|
111947
|
+
* @property {string|null} [soleraEnrollmentId] SoleraMemberEnrolled soleraEnrollmentId
|
|
111933
111948
|
*/
|
|
111934
111949
|
|
|
111935
111950
|
/**
|
|
@@ -111971,6 +111986,14 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
111971
111986
|
*/
|
|
111972
111987
|
SoleraMemberEnrolled.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
111973
111988
|
|
|
111989
|
+
/**
|
|
111990
|
+
* SoleraMemberEnrolled soleraEnrollmentId.
|
|
111991
|
+
* @member {string} soleraEnrollmentId
|
|
111992
|
+
* @memberof SoleraMemberEnrolled
|
|
111993
|
+
* @instance
|
|
111994
|
+
*/
|
|
111995
|
+
SoleraMemberEnrolled.prototype.soleraEnrollmentId = "";
|
|
111996
|
+
|
|
111974
111997
|
/**
|
|
111975
111998
|
* Creates a new SoleraMemberEnrolled instance using the specified properties.
|
|
111976
111999
|
* @function create
|
|
@@ -112001,6 +112024,8 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
112001
112024
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.soleraUserId);
|
|
112002
112025
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
112003
112026
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
112027
|
+
if (message.soleraEnrollmentId != null && message.hasOwnProperty("soleraEnrollmentId"))
|
|
112028
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.soleraEnrollmentId);
|
|
112004
112029
|
return writer;
|
|
112005
112030
|
};
|
|
112006
112031
|
|
|
@@ -112044,6 +112069,9 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
112044
112069
|
case 3:
|
|
112045
112070
|
message.timestamp = reader.uint64();
|
|
112046
112071
|
break;
|
|
112072
|
+
case 4:
|
|
112073
|
+
message.soleraEnrollmentId = reader.string();
|
|
112074
|
+
break;
|
|
112047
112075
|
default:
|
|
112048
112076
|
reader.skipType(tag & 7);
|
|
112049
112077
|
break;
|
|
@@ -112088,6 +112116,9 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
112088
112116
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
112089
112117
|
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
112090
112118
|
return "timestamp: integer|Long expected";
|
|
112119
|
+
if (message.soleraEnrollmentId != null && message.hasOwnProperty("soleraEnrollmentId"))
|
|
112120
|
+
if (!$util.isString(message.soleraEnrollmentId))
|
|
112121
|
+
return "soleraEnrollmentId: string expected";
|
|
112091
112122
|
return null;
|
|
112092
112123
|
};
|
|
112093
112124
|
|
|
@@ -112116,6 +112147,8 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
112116
112147
|
message.timestamp = object.timestamp;
|
|
112117
112148
|
else if (typeof object.timestamp === "object")
|
|
112118
112149
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
112150
|
+
if (object.soleraEnrollmentId != null)
|
|
112151
|
+
message.soleraEnrollmentId = String(object.soleraEnrollmentId);
|
|
112119
112152
|
return message;
|
|
112120
112153
|
};
|
|
112121
112154
|
|
|
@@ -112140,6 +112173,7 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
112140
112173
|
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
112141
112174
|
} else
|
|
112142
112175
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
112176
|
+
object.soleraEnrollmentId = "";
|
|
112143
112177
|
}
|
|
112144
112178
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
112145
112179
|
object.userId = message.userId;
|
|
@@ -112150,6 +112184,8 @@ $root.SoleraMemberEnrolled = (function() {
|
|
|
112150
112184
|
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
112151
112185
|
else
|
|
112152
112186
|
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;
|
|
112187
|
+
if (message.soleraEnrollmentId != null && message.hasOwnProperty("soleraEnrollmentId"))
|
|
112188
|
+
object.soleraEnrollmentId = message.soleraEnrollmentId;
|
|
112153
112189
|
return object;
|
|
112154
112190
|
};
|
|
112155
112191
|
|
package/package.json
CHANGED