@headspace/protos-events 1.416.0 → 1.417.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 +2 -2
- package/lib/index.js +24 -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;
|
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"))
|
package/package.json
CHANGED