@headspace/protos-events 1.403.0 → 1.404.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
@@ -10031,6 +10031,9 @@ export namespace b2b {
10031
10031
 
10032
10032
  /** Organization mfaEnabled */
10033
10033
  mfaEnabled?: (boolean|null);
10034
+
10035
+ /** Organization orgSlug */
10036
+ orgSlug?: (string|null);
10034
10037
  }
10035
10038
 
10036
10039
  /** Represents an Organization. */
@@ -10078,6 +10081,9 @@ export namespace b2b {
10078
10081
  /** Organization mfaEnabled. */
10079
10082
  public mfaEnabled: boolean;
10080
10083
 
10084
+ /** Organization orgSlug. */
10085
+ public orgSlug: string;
10086
+
10081
10087
  /**
10082
10088
  * Creates a new Organization instance using the specified properties.
10083
10089
  * @param [properties] Properties to set
@@ -10167,9 +10173,6 @@ export namespace b2b {
10167
10173
  /** B2BSubscriptionManagement dependentsPerEmployee */
10168
10174
  dependentsPerEmployee?: (number|Long|null);
10169
10175
 
10170
- /** B2BSubscriptionManagement dependentSeats */
10171
- dependentSeats?: (number|Long|null);
10172
-
10173
10176
  /** B2BSubscriptionManagement isPartialPay */
10174
10177
  isPartialPay?: (boolean|null);
10175
10178
 
@@ -10178,6 +10181,12 @@ export namespace b2b {
10178
10181
 
10179
10182
  /** B2BSubscriptionManagement orgSubscriptionId */
10180
10183
  orgSubscriptionId?: (number|null);
10184
+
10185
+ /** B2BSubscriptionManagement dependentSeats */
10186
+ dependentSeats?: (number|Long|null);
10187
+
10188
+ /** B2BSubscriptionManagement offerings */
10189
+ offerings?: (b2b.SubscriptionOffering[]|null);
10181
10190
  }
10182
10191
 
10183
10192
  /** Represents a B2BSubscriptionManagement. */
@@ -10204,9 +10213,6 @@ export namespace b2b {
10204
10213
  /** B2BSubscriptionManagement dependentsPerEmployee. */
10205
10214
  public dependentsPerEmployee: (number|Long);
10206
10215
 
10207
- /** B2BSubscriptionManagement dependentSeats. */
10208
- public dependentSeats: (number|Long);
10209
-
10210
10216
  /** B2BSubscriptionManagement isPartialPay. */
10211
10217
  public isPartialPay: boolean;
10212
10218
 
@@ -10216,6 +10222,12 @@ export namespace b2b {
10216
10222
  /** B2BSubscriptionManagement orgSubscriptionId. */
10217
10223
  public orgSubscriptionId: number;
10218
10224
 
10225
+ /** B2BSubscriptionManagement dependentSeats. */
10226
+ public dependentSeats: (number|Long);
10227
+
10228
+ /** B2BSubscriptionManagement offerings. */
10229
+ public offerings: b2b.SubscriptionOffering[];
10230
+
10219
10231
  /**
10220
10232
  * Creates a new B2BSubscriptionManagement instance using the specified properties.
10221
10233
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -23948,6 +23948,7 @@ $root.b2b = (function() {
23948
23948
  * @property {string|null} [gingerId] Organization gingerId
23949
23949
  * @property {string|null} [headspaceHealthId] Organization headspaceHealthId
23950
23950
  * @property {boolean|null} [mfaEnabled] Organization mfaEnabled
23951
+ * @property {string|null} [orgSlug] Organization orgSlug
23951
23952
  */
23952
23953
 
23953
23954
  /**
@@ -24061,6 +24062,14 @@ $root.b2b = (function() {
24061
24062
  */
24062
24063
  Organization.prototype.mfaEnabled = false;
24063
24064
 
24065
+ /**
24066
+ * Organization orgSlug.
24067
+ * @member {string} orgSlug
24068
+ * @memberof b2b.Organization
24069
+ * @instance
24070
+ */
24071
+ Organization.prototype.orgSlug = "";
24072
+
24064
24073
  /**
24065
24074
  * Creates a new Organization instance using the specified properties.
24066
24075
  * @function create
@@ -24109,6 +24118,8 @@ $root.b2b = (function() {
24109
24118
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.headspaceHealthId);
24110
24119
  if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
24111
24120
  writer.uint32(/* id 12, wireType 0 =*/96).bool(message.mfaEnabled);
24121
+ if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
24122
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.orgSlug);
24112
24123
  return writer;
24113
24124
  };
24114
24125
 
@@ -24179,6 +24190,9 @@ $root.b2b = (function() {
24179
24190
  case 12:
24180
24191
  message.mfaEnabled = reader.bool();
24181
24192
  break;
24193
+ case 13:
24194
+ message.orgSlug = reader.string();
24195
+ break;
24182
24196
  default:
24183
24197
  reader.skipType(tag & 7);
24184
24198
  break;
@@ -24273,6 +24287,9 @@ $root.b2b = (function() {
24273
24287
  if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
24274
24288
  if (typeof message.mfaEnabled !== "boolean")
24275
24289
  return "mfaEnabled: boolean expected";
24290
+ if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
24291
+ if (!$util.isString(message.orgSlug))
24292
+ return "orgSlug: string expected";
24276
24293
  return null;
24277
24294
  };
24278
24295
 
@@ -24380,6 +24397,8 @@ $root.b2b = (function() {
24380
24397
  message.headspaceHealthId = String(object.headspaceHealthId);
24381
24398
  if (object.mfaEnabled != null)
24382
24399
  message.mfaEnabled = Boolean(object.mfaEnabled);
24400
+ if (object.orgSlug != null)
24401
+ message.orgSlug = String(object.orgSlug);
24383
24402
  return message;
24384
24403
  };
24385
24404
 
@@ -24409,6 +24428,7 @@ $root.b2b = (function() {
24409
24428
  object.gingerId = "";
24410
24429
  object.headspaceHealthId = "";
24411
24430
  object.mfaEnabled = false;
24431
+ object.orgSlug = "";
24412
24432
  }
24413
24433
  if (message.orgId != null && message.hasOwnProperty("orgId"))
24414
24434
  object.orgId = message.orgId;
@@ -24434,6 +24454,8 @@ $root.b2b = (function() {
24434
24454
  object.headspaceHealthId = message.headspaceHealthId;
24435
24455
  if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
24436
24456
  object.mfaEnabled = message.mfaEnabled;
24457
+ if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
24458
+ object.orgSlug = message.orgSlug;
24437
24459
  return object;
24438
24460
  };
24439
24461
 
@@ -24462,10 +24484,11 @@ $root.b2b = (function() {
24462
24484
  * @property {number|Long|null} [orgSubscriptionEndDate] B2BSubscriptionManagement orgSubscriptionEndDate
24463
24485
  * @property {number|null} [seats] B2BSubscriptionManagement seats
24464
24486
  * @property {number|Long|null} [dependentsPerEmployee] B2BSubscriptionManagement dependentsPerEmployee
24465
- * @property {number|Long|null} [dependentSeats] B2BSubscriptionManagement dependentSeats
24466
24487
  * @property {boolean|null} [isPartialPay] B2BSubscriptionManagement isPartialPay
24467
24488
  * @property {boolean|null} [isPilot] B2BSubscriptionManagement isPilot
24468
24489
  * @property {number|null} [orgSubscriptionId] B2BSubscriptionManagement orgSubscriptionId
24490
+ * @property {number|Long|null} [dependentSeats] B2BSubscriptionManagement dependentSeats
24491
+ * @property {Array.<b2b.SubscriptionOffering>|null} [offerings] B2BSubscriptionManagement offerings
24469
24492
  */
24470
24493
 
24471
24494
  /**
@@ -24477,6 +24500,7 @@ $root.b2b = (function() {
24477
24500
  * @param {b2b.IB2BSubscriptionManagement=} [properties] Properties to set
24478
24501
  */
24479
24502
  function B2BSubscriptionManagement(properties) {
24503
+ this.offerings = [];
24480
24504
  if (properties)
24481
24505
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24482
24506
  if (properties[keys[i]] != null)
@@ -24523,14 +24547,6 @@ $root.b2b = (function() {
24523
24547
  */
24524
24548
  B2BSubscriptionManagement.prototype.dependentsPerEmployee = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
24525
24549
 
24526
- /**
24527
- * B2BSubscriptionManagement dependentSeats.
24528
- * @member {number|Long} dependentSeats
24529
- * @memberof b2b.B2BSubscriptionManagement
24530
- * @instance
24531
- */
24532
- B2BSubscriptionManagement.prototype.dependentSeats = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
24533
-
24534
24550
  /**
24535
24551
  * B2BSubscriptionManagement isPartialPay.
24536
24552
  * @member {boolean} isPartialPay
@@ -24555,6 +24571,22 @@ $root.b2b = (function() {
24555
24571
  */
24556
24572
  B2BSubscriptionManagement.prototype.orgSubscriptionId = 0;
24557
24573
 
24574
+ /**
24575
+ * B2BSubscriptionManagement dependentSeats.
24576
+ * @member {number|Long} dependentSeats
24577
+ * @memberof b2b.B2BSubscriptionManagement
24578
+ * @instance
24579
+ */
24580
+ B2BSubscriptionManagement.prototype.dependentSeats = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
24581
+
24582
+ /**
24583
+ * B2BSubscriptionManagement offerings.
24584
+ * @member {Array.<b2b.SubscriptionOffering>} offerings
24585
+ * @memberof b2b.B2BSubscriptionManagement
24586
+ * @instance
24587
+ */
24588
+ B2BSubscriptionManagement.prototype.offerings = $util.emptyArray;
24589
+
24558
24590
  /**
24559
24591
  * Creates a new B2BSubscriptionManagement instance using the specified properties.
24560
24592
  * @function create
@@ -24597,6 +24629,12 @@ $root.b2b = (function() {
24597
24629
  writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.orgSubscriptionId);
24598
24630
  if (message.dependentSeats != null && message.hasOwnProperty("dependentSeats"))
24599
24631
  writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.dependentSeats);
24632
+ if (message.offerings != null && message.offerings.length) {
24633
+ writer.uint32(/* id 10, wireType 2 =*/82).fork();
24634
+ for (var i = 0; i < message.offerings.length; ++i)
24635
+ writer.int32(message.offerings[i]);
24636
+ writer.ldelim();
24637
+ }
24600
24638
  return writer;
24601
24639
  };
24602
24640
 
@@ -24646,9 +24684,6 @@ $root.b2b = (function() {
24646
24684
  case 5:
24647
24685
  message.dependentsPerEmployee = reader.uint64();
24648
24686
  break;
24649
- case 9:
24650
- message.dependentSeats = reader.uint64();
24651
- break;
24652
24687
  case 6:
24653
24688
  message.isPartialPay = reader.bool();
24654
24689
  break;
@@ -24658,6 +24693,19 @@ $root.b2b = (function() {
24658
24693
  case 8:
24659
24694
  message.orgSubscriptionId = reader.uint32();
24660
24695
  break;
24696
+ case 9:
24697
+ message.dependentSeats = reader.uint64();
24698
+ break;
24699
+ case 10:
24700
+ if (!(message.offerings && message.offerings.length))
24701
+ message.offerings = [];
24702
+ if ((tag & 7) === 2) {
24703
+ var end2 = reader.uint32() + reader.pos;
24704
+ while (reader.pos < end2)
24705
+ message.offerings.push(reader.int32());
24706
+ } else
24707
+ message.offerings.push(reader.int32());
24708
+ break;
24661
24709
  default:
24662
24710
  reader.skipType(tag & 7);
24663
24711
  break;
@@ -24708,9 +24756,6 @@ $root.b2b = (function() {
24708
24756
  if (message.dependentsPerEmployee != null && message.hasOwnProperty("dependentsPerEmployee"))
24709
24757
  if (!$util.isInteger(message.dependentsPerEmployee) && !(message.dependentsPerEmployee && $util.isInteger(message.dependentsPerEmployee.low) && $util.isInteger(message.dependentsPerEmployee.high)))
24710
24758
  return "dependentsPerEmployee: integer|Long expected";
24711
- if (message.dependentSeats != null && message.hasOwnProperty("dependentSeats"))
24712
- if (!$util.isInteger(message.dependentSeats) && !(message.dependentSeats && $util.isInteger(message.dependentSeats.low) && $util.isInteger(message.dependentSeats.high)))
24713
- return "dependentSeats: integer|Long expected";
24714
24759
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
24715
24760
  if (typeof message.isPartialPay !== "boolean")
24716
24761
  return "isPartialPay: boolean expected";
@@ -24720,6 +24765,22 @@ $root.b2b = (function() {
24720
24765
  if (message.orgSubscriptionId != null && message.hasOwnProperty("orgSubscriptionId"))
24721
24766
  if (!$util.isInteger(message.orgSubscriptionId))
24722
24767
  return "orgSubscriptionId: integer expected";
24768
+ if (message.dependentSeats != null && message.hasOwnProperty("dependentSeats"))
24769
+ if (!$util.isInteger(message.dependentSeats) && !(message.dependentSeats && $util.isInteger(message.dependentSeats.low) && $util.isInteger(message.dependentSeats.high)))
24770
+ return "dependentSeats: integer|Long expected";
24771
+ if (message.offerings != null && message.hasOwnProperty("offerings")) {
24772
+ if (!Array.isArray(message.offerings))
24773
+ return "offerings: array expected";
24774
+ for (var i = 0; i < message.offerings.length; ++i)
24775
+ switch (message.offerings[i]) {
24776
+ default:
24777
+ return "offerings: enum value[] expected";
24778
+ case 0:
24779
+ case 1:
24780
+ case 2:
24781
+ break;
24782
+ }
24783
+ }
24723
24784
  return null;
24724
24785
  };
24725
24786
 
@@ -24766,6 +24827,12 @@ $root.b2b = (function() {
24766
24827
  message.dependentsPerEmployee = object.dependentsPerEmployee;
24767
24828
  else if (typeof object.dependentsPerEmployee === "object")
24768
24829
  message.dependentsPerEmployee = new $util.LongBits(object.dependentsPerEmployee.low >>> 0, object.dependentsPerEmployee.high >>> 0).toNumber(true);
24830
+ if (object.isPartialPay != null)
24831
+ message.isPartialPay = Boolean(object.isPartialPay);
24832
+ if (object.isPilot != null)
24833
+ message.isPilot = Boolean(object.isPilot);
24834
+ if (object.orgSubscriptionId != null)
24835
+ message.orgSubscriptionId = object.orgSubscriptionId >>> 0;
24769
24836
  if (object.dependentSeats != null)
24770
24837
  if ($util.Long)
24771
24838
  (message.dependentSeats = $util.Long.fromValue(object.dependentSeats)).unsigned = true;
@@ -24775,12 +24842,27 @@ $root.b2b = (function() {
24775
24842
  message.dependentSeats = object.dependentSeats;
24776
24843
  else if (typeof object.dependentSeats === "object")
24777
24844
  message.dependentSeats = new $util.LongBits(object.dependentSeats.low >>> 0, object.dependentSeats.high >>> 0).toNumber(true);
24778
- if (object.isPartialPay != null)
24779
- message.isPartialPay = Boolean(object.isPartialPay);
24780
- if (object.isPilot != null)
24781
- message.isPilot = Boolean(object.isPilot);
24782
- if (object.orgSubscriptionId != null)
24783
- message.orgSubscriptionId = object.orgSubscriptionId >>> 0;
24845
+ if (object.offerings) {
24846
+ if (!Array.isArray(object.offerings))
24847
+ throw TypeError(".b2b.B2BSubscriptionManagement.offerings: array expected");
24848
+ message.offerings = [];
24849
+ for (var i = 0; i < object.offerings.length; ++i)
24850
+ switch (object.offerings[i]) {
24851
+ default:
24852
+ case "SUBSCRIPTION_OFFERING_UNKNOWN":
24853
+ case 0:
24854
+ message.offerings[i] = 0;
24855
+ break;
24856
+ case "SUBSCRIPTION_OFFERING_HEADSPACE":
24857
+ case 1:
24858
+ message.offerings[i] = 1;
24859
+ break;
24860
+ case "SUBSCRIPTION_OFFERING_GINGER":
24861
+ case 2:
24862
+ message.offerings[i] = 2;
24863
+ break;
24864
+ }
24865
+ }
24784
24866
  return message;
24785
24867
  };
24786
24868
 
@@ -24797,6 +24879,8 @@ $root.b2b = (function() {
24797
24879
  if (!options)
24798
24880
  options = {};
24799
24881
  var object = {};
24882
+ if (options.arrays || options.defaults)
24883
+ object.offerings = [];
24800
24884
  if (options.defaults) {
24801
24885
  object.salesforceOpportunityId = "";
24802
24886
  if ($util.Long) {
@@ -24854,6 +24938,11 @@ $root.b2b = (function() {
24854
24938
  object.dependentSeats = options.longs === String ? String(message.dependentSeats) : message.dependentSeats;
24855
24939
  else
24856
24940
  object.dependentSeats = options.longs === String ? $util.Long.prototype.toString.call(message.dependentSeats) : options.longs === Number ? new $util.LongBits(message.dependentSeats.low >>> 0, message.dependentSeats.high >>> 0).toNumber(true) : message.dependentSeats;
24941
+ if (message.offerings && message.offerings.length) {
24942
+ object.offerings = [];
24943
+ for (var j = 0; j < message.offerings.length; ++j)
24944
+ object.offerings[j] = options.enums === String ? $root.b2b.SubscriptionOffering[message.offerings[j]] : message.offerings[j];
24945
+ }
24857
24946
  return object;
24858
24947
  };
24859
24948
 
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.403.0"
19
+ "version": "1.404.0"
20
20
  }