@headspace/protos-events 1.582.0 → 1.584.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
@@ -10427,6 +10427,9 @@ export namespace b2b {
10427
10427
 
10428
10428
  /** B2BSubscriptionManagement elfDependentsEnabled */
10429
10429
  elfDependentsEnabled?: (boolean|null);
10430
+
10431
+ /** B2BSubscriptionManagement eapType */
10432
+ eapType?: (b2b.EapType|null);
10430
10433
  }
10431
10434
 
10432
10435
  /** Represents a B2BSubscriptionManagement. */
@@ -10474,6 +10477,9 @@ export namespace b2b {
10474
10477
  /** B2BSubscriptionManagement elfDependentsEnabled. */
10475
10478
  public elfDependentsEnabled: boolean;
10476
10479
 
10480
+ /** B2BSubscriptionManagement eapType. */
10481
+ public eapType: b2b.EapType;
10482
+
10477
10483
  /**
10478
10484
  * Creates a new B2BSubscriptionManagement instance using the specified properties.
10479
10485
  * @param [properties] Properties to set
@@ -10549,7 +10555,7 @@ export namespace b2b {
10549
10555
  interface IPartnerConsent {
10550
10556
 
10551
10557
  /** PartnerConsent partnerConsentId */
10552
- partnerConsentId?: (string|null);
10558
+ partnerConsentId?: (number|null);
10553
10559
 
10554
10560
  /** PartnerConsent useCase */
10555
10561
  useCase?: (string|null);
@@ -10577,7 +10583,7 @@ export namespace b2b {
10577
10583
  constructor(properties?: b2b.IPartnerConsent);
10578
10584
 
10579
10585
  /** PartnerConsent partnerConsentId. */
10580
- public partnerConsentId: string;
10586
+ public partnerConsentId: number;
10581
10587
 
10582
10588
  /** PartnerConsent useCase. */
10583
10589
  public useCase: string;
@@ -10771,6 +10777,13 @@ export namespace b2b {
10771
10777
  EAP_SERVICE_TYPE_THERAPY = 2,
10772
10778
  EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY = 3
10773
10779
  }
10780
+
10781
+ /** EapType enum. */
10782
+ enum EapType {
10783
+ EAP_TYPE_UNKNOWN = 0,
10784
+ EAP_TYPE_NONE = 1,
10785
+ EAP_TYPE_EAP_V2 = 2
10786
+ }
10774
10787
  }
10775
10788
 
10776
10789
  /** Namespace community. */
package/lib/index.js CHANGED
@@ -25244,6 +25244,7 @@ $root.b2b = (function() {
25244
25244
  * @property {Array.<b2b.SubscriptionOffering>|null} [offerings] B2BSubscriptionManagement offerings
25245
25245
  * @property {b2b.EnrollmentFlow|null} [enrollmentFlow] B2BSubscriptionManagement enrollmentFlow
25246
25246
  * @property {boolean|null} [elfDependentsEnabled] B2BSubscriptionManagement elfDependentsEnabled
25247
+ * @property {b2b.EapType|null} [eapType] B2BSubscriptionManagement eapType
25247
25248
  */
25248
25249
 
25249
25250
  /**
@@ -25358,6 +25359,14 @@ $root.b2b = (function() {
25358
25359
  */
25359
25360
  B2BSubscriptionManagement.prototype.elfDependentsEnabled = false;
25360
25361
 
25362
+ /**
25363
+ * B2BSubscriptionManagement eapType.
25364
+ * @member {b2b.EapType} eapType
25365
+ * @memberof b2b.B2BSubscriptionManagement
25366
+ * @instance
25367
+ */
25368
+ B2BSubscriptionManagement.prototype.eapType = 0;
25369
+
25361
25370
  /**
25362
25371
  * Creates a new B2BSubscriptionManagement instance using the specified properties.
25363
25372
  * @function create
@@ -25410,6 +25419,8 @@ $root.b2b = (function() {
25410
25419
  writer.uint32(/* id 12, wireType 0 =*/96).int32(message.enrollmentFlow);
25411
25420
  if (message.elfDependentsEnabled != null && message.hasOwnProperty("elfDependentsEnabled"))
25412
25421
  writer.uint32(/* id 13, wireType 0 =*/104).bool(message.elfDependentsEnabled);
25422
+ if (message.eapType != null && message.hasOwnProperty("eapType"))
25423
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.eapType);
25413
25424
  return writer;
25414
25425
  };
25415
25426
 
@@ -25487,6 +25498,9 @@ $root.b2b = (function() {
25487
25498
  case 13:
25488
25499
  message.elfDependentsEnabled = reader.bool();
25489
25500
  break;
25501
+ case 14:
25502
+ message.eapType = reader.int32();
25503
+ break;
25490
25504
  default:
25491
25505
  reader.skipType(tag & 7);
25492
25506
  break;
@@ -25577,6 +25591,15 @@ $root.b2b = (function() {
25577
25591
  if (message.elfDependentsEnabled != null && message.hasOwnProperty("elfDependentsEnabled"))
25578
25592
  if (typeof message.elfDependentsEnabled !== "boolean")
25579
25593
  return "elfDependentsEnabled: boolean expected";
25594
+ if (message.eapType != null && message.hasOwnProperty("eapType"))
25595
+ switch (message.eapType) {
25596
+ default:
25597
+ return "eapType: enum value expected";
25598
+ case 0:
25599
+ case 1:
25600
+ case 2:
25601
+ break;
25602
+ }
25580
25603
  return null;
25581
25604
  };
25582
25605
 
@@ -25687,6 +25710,20 @@ $root.b2b = (function() {
25687
25710
  }
25688
25711
  if (object.elfDependentsEnabled != null)
25689
25712
  message.elfDependentsEnabled = Boolean(object.elfDependentsEnabled);
25713
+ switch (object.eapType) {
25714
+ case "EAP_TYPE_UNKNOWN":
25715
+ case 0:
25716
+ message.eapType = 0;
25717
+ break;
25718
+ case "EAP_TYPE_NONE":
25719
+ case 1:
25720
+ message.eapType = 1;
25721
+ break;
25722
+ case "EAP_TYPE_EAP_V2":
25723
+ case 2:
25724
+ message.eapType = 2;
25725
+ break;
25726
+ }
25690
25727
  return message;
25691
25728
  };
25692
25729
 
@@ -25733,6 +25770,7 @@ $root.b2b = (function() {
25733
25770
  object.dependentSeats = options.longs === String ? "0" : 0;
25734
25771
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
25735
25772
  object.elfDependentsEnabled = false;
25773
+ object.eapType = options.enums === String ? "EAP_TYPE_UNKNOWN" : 0;
25736
25774
  }
25737
25775
  if (message.salesforceOpportunityId != null && message.hasOwnProperty("salesforceOpportunityId"))
25738
25776
  object.salesforceOpportunityId = message.salesforceOpportunityId;
@@ -25773,6 +25811,8 @@ $root.b2b = (function() {
25773
25811
  object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
25774
25812
  if (message.elfDependentsEnabled != null && message.hasOwnProperty("elfDependentsEnabled"))
25775
25813
  object.elfDependentsEnabled = message.elfDependentsEnabled;
25814
+ if (message.eapType != null && message.hasOwnProperty("eapType"))
25815
+ object.eapType = options.enums === String ? $root.b2b.EapType[message.eapType] : message.eapType;
25776
25816
  return object;
25777
25817
  };
25778
25818
 
@@ -25796,7 +25836,7 @@ $root.b2b = (function() {
25796
25836
  * Properties of a PartnerConsent.
25797
25837
  * @memberof b2b
25798
25838
  * @interface IPartnerConsent
25799
- * @property {string|null} [partnerConsentId] PartnerConsent partnerConsentId
25839
+ * @property {number|null} [partnerConsentId] PartnerConsent partnerConsentId
25800
25840
  * @property {string|null} [useCase] PartnerConsent useCase
25801
25841
  * @property {Array.<string>|null} [permissions] PartnerConsent permissions
25802
25842
  * @property {number|null} [version] PartnerConsent version
@@ -25822,11 +25862,11 @@ $root.b2b = (function() {
25822
25862
 
25823
25863
  /**
25824
25864
  * PartnerConsent partnerConsentId.
25825
- * @member {string} partnerConsentId
25865
+ * @member {number} partnerConsentId
25826
25866
  * @memberof b2b.PartnerConsent
25827
25867
  * @instance
25828
25868
  */
25829
- PartnerConsent.prototype.partnerConsentId = "";
25869
+ PartnerConsent.prototype.partnerConsentId = 0;
25830
25870
 
25831
25871
  /**
25832
25872
  * PartnerConsent useCase.
@@ -25893,7 +25933,7 @@ $root.b2b = (function() {
25893
25933
  if (!writer)
25894
25934
  writer = $Writer.create();
25895
25935
  if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
25896
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.partnerConsentId);
25936
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.partnerConsentId);
25897
25937
  if (message.useCase != null && message.hasOwnProperty("useCase"))
25898
25938
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.useCase);
25899
25939
  if (message.permissions != null && message.permissions.length)
@@ -25940,7 +25980,7 @@ $root.b2b = (function() {
25940
25980
  var tag = reader.uint32();
25941
25981
  switch (tag >>> 3) {
25942
25982
  case 1:
25943
- message.partnerConsentId = reader.string();
25983
+ message.partnerConsentId = reader.uint32();
25944
25984
  break;
25945
25985
  case 2:
25946
25986
  message.useCase = reader.string();
@@ -25995,8 +26035,8 @@ $root.b2b = (function() {
25995
26035
  if (typeof message !== "object" || message === null)
25996
26036
  return "object expected";
25997
26037
  if (message.partnerConsentId != null && message.hasOwnProperty("partnerConsentId"))
25998
- if (!$util.isString(message.partnerConsentId))
25999
- return "partnerConsentId: string expected";
26038
+ if (!$util.isInteger(message.partnerConsentId))
26039
+ return "partnerConsentId: integer expected";
26000
26040
  if (message.useCase != null && message.hasOwnProperty("useCase"))
26001
26041
  if (!$util.isString(message.useCase))
26002
26042
  return "useCase: string expected";
@@ -26032,7 +26072,7 @@ $root.b2b = (function() {
26032
26072
  return object;
26033
26073
  var message = new $root.b2b.PartnerConsent();
26034
26074
  if (object.partnerConsentId != null)
26035
- message.partnerConsentId = String(object.partnerConsentId);
26075
+ message.partnerConsentId = object.partnerConsentId >>> 0;
26036
26076
  if (object.useCase != null)
26037
26077
  message.useCase = String(object.useCase);
26038
26078
  if (object.permissions) {
@@ -26067,7 +26107,7 @@ $root.b2b = (function() {
26067
26107
  if (options.arrays || options.defaults)
26068
26108
  object.permissions = [];
26069
26109
  if (options.defaults) {
26070
- object.partnerConsentId = "";
26110
+ object.partnerConsentId = 0;
26071
26111
  object.useCase = "";
26072
26112
  object.version = 0;
26073
26113
  object.healthHubName = "";
@@ -26341,6 +26381,22 @@ $root.b2b = (function() {
26341
26381
  return values;
26342
26382
  })();
26343
26383
 
26384
+ /**
26385
+ * EapType enum.
26386
+ * @name b2b.EapType
26387
+ * @enum {string}
26388
+ * @property {number} EAP_TYPE_UNKNOWN=0 EAP_TYPE_UNKNOWN value
26389
+ * @property {number} EAP_TYPE_NONE=1 EAP_TYPE_NONE value
26390
+ * @property {number} EAP_TYPE_EAP_V2=2 EAP_TYPE_EAP_V2 value
26391
+ */
26392
+ b2b.EapType = (function() {
26393
+ var valuesById = {}, values = Object.create(valuesById);
26394
+ values[valuesById[0] = "EAP_TYPE_UNKNOWN"] = 0;
26395
+ values[valuesById[1] = "EAP_TYPE_NONE"] = 1;
26396
+ values[valuesById[2] = "EAP_TYPE_EAP_V2"] = 2;
26397
+ return values;
26398
+ })();
26399
+
26344
26400
  return b2b;
26345
26401
  })();
26346
26402
 
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.582.0"
19
+ "version": "1.584.0"
20
20
  }