@headspace/protos-events 1.415.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 CHANGED
@@ -10037,6 +10037,9 @@ export namespace b2b {
10037
10037
 
10038
10038
  /** Organization orgSlug */
10039
10039
  orgSlug?: (string|null);
10040
+
10041
+ /** Organization orgAddons */
10042
+ orgAddons?: (b2b.AddOn[]|null);
10040
10043
  }
10041
10044
 
10042
10045
  /** Represents an Organization. */
@@ -10087,6 +10090,9 @@ export namespace b2b {
10087
10090
  /** Organization orgSlug. */
10088
10091
  public orgSlug: string;
10089
10092
 
10093
+ /** Organization orgAddons. */
10094
+ public orgAddons: b2b.AddOn[];
10095
+
10090
10096
  /**
10091
10097
  * Creates a new Organization instance using the specified properties.
10092
10098
  * @param [properties] Properties to set
@@ -10363,6 +10369,14 @@ export namespace b2b {
10363
10369
  SUBSCRIPTION_OFFERING_HEADSPACE = 1,
10364
10370
  SUBSCRIPTION_OFFERING_GINGER = 2
10365
10371
  }
10372
+
10373
+ /** AddOn enum. */
10374
+ enum AddOn {
10375
+ ADD_ON_UNKNOWN = 0,
10376
+ ADD_ON_EAP = 1,
10377
+ ADD_ON_WPO = 2,
10378
+ ADD_ON_R3C = 3
10379
+ }
10366
10380
  }
10367
10381
 
10368
10382
  /** Namespace community. */
@@ -29105,7 +29119,7 @@ export enum GoalType {
29105
29119
  export interface IB2BChallengeCreated {
29106
29120
 
29107
29121
  /** B2BChallengeCreated b2bOrgId */
29108
- b2bOrgId?: (string|null);
29122
+ b2bOrgId?: (number|Long|null);
29109
29123
 
29110
29124
  /** B2BChallengeCreated headspaceHealthId */
29111
29125
  headspaceHealthId?: (string|null);
@@ -29139,7 +29153,7 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
29139
29153
  constructor(properties?: IB2BChallengeCreated);
29140
29154
 
29141
29155
  /** B2BChallengeCreated b2bOrgId. */
29142
- public b2bOrgId: string;
29156
+ public b2bOrgId: (number|Long);
29143
29157
 
29144
29158
  /** B2BChallengeCreated headspaceHealthId. */
29145
29159
  public headspaceHealthId: string;
package/lib/index.js CHANGED
@@ -23947,6 +23947,7 @@ $root.b2b = (function() {
23947
23947
  * @property {string|null} [headspaceHealthId] Organization headspaceHealthId
23948
23948
  * @property {boolean|null} [mfaEnabled] Organization mfaEnabled
23949
23949
  * @property {string|null} [orgSlug] Organization orgSlug
23950
+ * @property {Array.<b2b.AddOn>|null} [orgAddons] Organization orgAddons
23950
23951
  */
23951
23952
 
23952
23953
  /**
@@ -23958,6 +23959,7 @@ $root.b2b = (function() {
23958
23959
  * @param {b2b.IOrganization=} [properties] Properties to set
23959
23960
  */
23960
23961
  function Organization(properties) {
23962
+ this.orgAddons = [];
23961
23963
  if (properties)
23962
23964
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23963
23965
  if (properties[keys[i]] != null)
@@ -24068,6 +24070,14 @@ $root.b2b = (function() {
24068
24070
  */
24069
24071
  Organization.prototype.orgSlug = "";
24070
24072
 
24073
+ /**
24074
+ * Organization orgAddons.
24075
+ * @member {Array.<b2b.AddOn>} orgAddons
24076
+ * @memberof b2b.Organization
24077
+ * @instance
24078
+ */
24079
+ Organization.prototype.orgAddons = $util.emptyArray;
24080
+
24071
24081
  /**
24072
24082
  * Creates a new Organization instance using the specified properties.
24073
24083
  * @function create
@@ -24118,6 +24128,12 @@ $root.b2b = (function() {
24118
24128
  writer.uint32(/* id 12, wireType 0 =*/96).bool(message.mfaEnabled);
24119
24129
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
24120
24130
  writer.uint32(/* id 13, wireType 2 =*/106).string(message.orgSlug);
24131
+ if (message.orgAddons != null && message.orgAddons.length) {
24132
+ writer.uint32(/* id 14, wireType 2 =*/114).fork();
24133
+ for (var i = 0; i < message.orgAddons.length; ++i)
24134
+ writer.int32(message.orgAddons[i]);
24135
+ writer.ldelim();
24136
+ }
24121
24137
  return writer;
24122
24138
  };
24123
24139
 
@@ -24191,6 +24207,16 @@ $root.b2b = (function() {
24191
24207
  case 13:
24192
24208
  message.orgSlug = reader.string();
24193
24209
  break;
24210
+ case 14:
24211
+ if (!(message.orgAddons && message.orgAddons.length))
24212
+ message.orgAddons = [];
24213
+ if ((tag & 7) === 2) {
24214
+ var end2 = reader.uint32() + reader.pos;
24215
+ while (reader.pos < end2)
24216
+ message.orgAddons.push(reader.int32());
24217
+ } else
24218
+ message.orgAddons.push(reader.int32());
24219
+ break;
24194
24220
  default:
24195
24221
  reader.skipType(tag & 7);
24196
24222
  break;
@@ -24288,6 +24314,20 @@ $root.b2b = (function() {
24288
24314
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
24289
24315
  if (!$util.isString(message.orgSlug))
24290
24316
  return "orgSlug: string expected";
24317
+ if (message.orgAddons != null && message.hasOwnProperty("orgAddons")) {
24318
+ if (!Array.isArray(message.orgAddons))
24319
+ return "orgAddons: array expected";
24320
+ for (var i = 0; i < message.orgAddons.length; ++i)
24321
+ switch (message.orgAddons[i]) {
24322
+ default:
24323
+ return "orgAddons: enum value[] expected";
24324
+ case 0:
24325
+ case 1:
24326
+ case 2:
24327
+ case 3:
24328
+ break;
24329
+ }
24330
+ }
24291
24331
  return null;
24292
24332
  };
24293
24333
 
@@ -24397,6 +24437,31 @@ $root.b2b = (function() {
24397
24437
  message.mfaEnabled = Boolean(object.mfaEnabled);
24398
24438
  if (object.orgSlug != null)
24399
24439
  message.orgSlug = String(object.orgSlug);
24440
+ if (object.orgAddons) {
24441
+ if (!Array.isArray(object.orgAddons))
24442
+ throw TypeError(".b2b.Organization.orgAddons: array expected");
24443
+ message.orgAddons = [];
24444
+ for (var i = 0; i < object.orgAddons.length; ++i)
24445
+ switch (object.orgAddons[i]) {
24446
+ default:
24447
+ case "ADD_ON_UNKNOWN":
24448
+ case 0:
24449
+ message.orgAddons[i] = 0;
24450
+ break;
24451
+ case "ADD_ON_EAP":
24452
+ case 1:
24453
+ message.orgAddons[i] = 1;
24454
+ break;
24455
+ case "ADD_ON_WPO":
24456
+ case 2:
24457
+ message.orgAddons[i] = 2;
24458
+ break;
24459
+ case "ADD_ON_R3C":
24460
+ case 3:
24461
+ message.orgAddons[i] = 3;
24462
+ break;
24463
+ }
24464
+ }
24400
24465
  return message;
24401
24466
  };
24402
24467
 
@@ -24413,6 +24478,8 @@ $root.b2b = (function() {
24413
24478
  if (!options)
24414
24479
  options = {};
24415
24480
  var object = {};
24481
+ if (options.arrays || options.defaults)
24482
+ object.orgAddons = [];
24416
24483
  if (options.defaults) {
24417
24484
  object.orgId = 0;
24418
24485
  object.orgName = "";
@@ -24454,6 +24521,11 @@ $root.b2b = (function() {
24454
24521
  object.mfaEnabled = message.mfaEnabled;
24455
24522
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
24456
24523
  object.orgSlug = message.orgSlug;
24524
+ if (message.orgAddons && message.orgAddons.length) {
24525
+ object.orgAddons = [];
24526
+ for (var j = 0; j < message.orgAddons.length; ++j)
24527
+ object.orgAddons[j] = options.enums === String ? $root.b2b.AddOn[message.orgAddons[j]] : message.orgAddons[j];
24528
+ }
24457
24529
  return object;
24458
24530
  };
24459
24531
 
@@ -25094,6 +25166,24 @@ $root.b2b = (function() {
25094
25166
  return values;
25095
25167
  })();
25096
25168
 
25169
+ /**
25170
+ * AddOn enum.
25171
+ * @name b2b.AddOn
25172
+ * @enum {string}
25173
+ * @property {number} ADD_ON_UNKNOWN=0 ADD_ON_UNKNOWN value
25174
+ * @property {number} ADD_ON_EAP=1 ADD_ON_EAP value
25175
+ * @property {number} ADD_ON_WPO=2 ADD_ON_WPO value
25176
+ * @property {number} ADD_ON_R3C=3 ADD_ON_R3C value
25177
+ */
25178
+ b2b.AddOn = (function() {
25179
+ var valuesById = {}, values = Object.create(valuesById);
25180
+ values[valuesById[0] = "ADD_ON_UNKNOWN"] = 0;
25181
+ values[valuesById[1] = "ADD_ON_EAP"] = 1;
25182
+ values[valuesById[2] = "ADD_ON_WPO"] = 2;
25183
+ values[valuesById[3] = "ADD_ON_R3C"] = 3;
25184
+ return values;
25185
+ })();
25186
+
25097
25187
  return b2b;
25098
25188
  })();
25099
25189
 
@@ -80707,7 +80797,7 @@ $root.B2BChallengeCreated = (function() {
80707
80797
  * Properties of a B2BChallengeCreated.
80708
80798
  * @exports IB2BChallengeCreated
80709
80799
  * @interface IB2BChallengeCreated
80710
- * @property {string|null} [b2bOrgId] B2BChallengeCreated b2bOrgId
80800
+ * @property {number|Long|null} [b2bOrgId] B2BChallengeCreated b2bOrgId
80711
80801
  * @property {string|null} [headspaceHealthId] B2BChallengeCreated headspaceHealthId
80712
80802
  * @property {string|null} [orgName] B2BChallengeCreated orgName
80713
80803
  * @property {ChallengeType|null} [challengeType] B2BChallengeCreated challengeType
@@ -80734,11 +80824,11 @@ $root.B2BChallengeCreated = (function() {
80734
80824
 
80735
80825
  /**
80736
80826
  * B2BChallengeCreated b2bOrgId.
80737
- * @member {string} b2bOrgId
80827
+ * @member {number|Long} b2bOrgId
80738
80828
  * @memberof B2BChallengeCreated
80739
80829
  * @instance
80740
80830
  */
80741
- B2BChallengeCreated.prototype.b2bOrgId = "";
80831
+ B2BChallengeCreated.prototype.b2bOrgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80742
80832
 
80743
80833
  /**
80744
80834
  * B2BChallengeCreated headspaceHealthId.
@@ -80821,7 +80911,7 @@ $root.B2BChallengeCreated = (function() {
80821
80911
  if (!writer)
80822
80912
  writer = $Writer.create();
80823
80913
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80824
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.b2bOrgId);
80914
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.b2bOrgId);
80825
80915
  if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
80826
80916
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceHealthId);
80827
80917
  if (message.orgName != null && message.hasOwnProperty("orgName"))
@@ -80871,7 +80961,7 @@ $root.B2BChallengeCreated = (function() {
80871
80961
  var tag = reader.uint32();
80872
80962
  switch (tag >>> 3) {
80873
80963
  case 1:
80874
- message.b2bOrgId = reader.string();
80964
+ message.b2bOrgId = reader.uint64();
80875
80965
  break;
80876
80966
  case 2:
80877
80967
  message.headspaceHealthId = reader.string();
@@ -80930,8 +81020,8 @@ $root.B2BChallengeCreated = (function() {
80930
81020
  if (typeof message !== "object" || message === null)
80931
81021
  return "object expected";
80932
81022
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
80933
- if (!$util.isString(message.b2bOrgId))
80934
- return "b2bOrgId: string expected";
81023
+ if (!$util.isInteger(message.b2bOrgId) && !(message.b2bOrgId && $util.isInteger(message.b2bOrgId.low) && $util.isInteger(message.b2bOrgId.high)))
81024
+ return "b2bOrgId: integer|Long expected";
80935
81025
  if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
80936
81026
  if (!$util.isString(message.headspaceHealthId))
80937
81027
  return "headspaceHealthId: string expected";
@@ -80982,7 +81072,14 @@ $root.B2BChallengeCreated = (function() {
80982
81072
  return object;
80983
81073
  var message = new $root.B2BChallengeCreated();
80984
81074
  if (object.b2bOrgId != null)
80985
- message.b2bOrgId = String(object.b2bOrgId);
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);
80986
81083
  if (object.headspaceHealthId != null)
80987
81084
  message.headspaceHealthId = String(object.headspaceHealthId);
80988
81085
  if (object.orgName != null)
@@ -81056,7 +81153,11 @@ $root.B2BChallengeCreated = (function() {
81056
81153
  options = {};
81057
81154
  var object = {};
81058
81155
  if (options.defaults) {
81059
- object.b2bOrgId = "";
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;
81060
81161
  object.headspaceHealthId = "";
81061
81162
  object.orgName = "";
81062
81163
  object.challengeType = options.enums === String ? "MEDITATION" : 0;
@@ -81074,7 +81175,10 @@ $root.B2BChallengeCreated = (function() {
81074
81175
  object.goalTarget = options.longs === String ? "0" : 0;
81075
81176
  }
81076
81177
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
81077
- object.b2bOrgId = message.b2bOrgId;
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;
81078
81182
  if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
81079
81183
  object.headspaceHealthId = message.headspaceHealthId;
81080
81184
  if (message.orgName != null && message.hasOwnProperty("orgName"))
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.415.0"
19
+ "version": "1.417.0"
20
20
  }