@headspace/protos-events 1.398.0 → 1.400.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
@@ -179,7 +179,8 @@ export namespace auth0 {
179
179
  HEADSPACE_E2E_OKTA_SSO = 26,
180
180
  MICROSOFT_AZURE_SSO = 27,
181
181
  HOOTSUITE_OKTA_SSO = 28,
182
- MOONPAY_OKTA_SSO = 29
182
+ MOONPAY_OKTA_SSO = 29,
183
+ ROOT_INSURANCE_OKTA_SSO = 30
183
184
  }
184
185
 
185
186
  /** ConnectionType enum. */
@@ -10340,6 +10341,13 @@ export namespace b2b {
10340
10341
  CONNECTION_SET = 1,
10341
10342
  CONNECTION_UNSET = 2
10342
10343
  }
10344
+
10345
+ /** SubscriptionOffering enum. */
10346
+ enum SubscriptionOffering {
10347
+ SUBSCRIPTION_OFFERING_UNKNOWN = 0,
10348
+ SUBSCRIPTION_OFFERING_HEADSPACE = 1,
10349
+ SUBSCRIPTION_OFFERING_GINGER = 2
10350
+ }
10343
10351
  }
10344
10352
 
10345
10353
  /** Namespace community. */
@@ -32132,6 +32140,9 @@ export interface IElfRecordPresent {
32132
32140
  /** ElfRecordPresent customFields */
32133
32141
  customFields?: (string|null);
32134
32142
 
32143
+ /** ElfRecordPresent offerings */
32144
+ offerings?: (b2b.SubscriptionOffering[]|null);
32145
+
32135
32146
  /** ElfRecordPresent isDryRun */
32136
32147
  isDryRun?: (boolean|null);
32137
32148
 
@@ -32205,6 +32216,9 @@ export class ElfRecordPresent implements IElfRecordPresent {
32205
32216
  /** ElfRecordPresent customFields. */
32206
32217
  public customFields: string;
32207
32218
 
32219
+ /** ElfRecordPresent offerings. */
32220
+ public offerings: b2b.SubscriptionOffering[];
32221
+
32208
32222
  /** ElfRecordPresent isDryRun. */
32209
32223
  public isDryRun: boolean;
32210
32224
 
package/lib/index.js CHANGED
@@ -389,6 +389,7 @@ $root.auth0 = (function() {
389
389
  * @property {number} MICROSOFT_AZURE_SSO=27 MICROSOFT_AZURE_SSO value
390
390
  * @property {number} HOOTSUITE_OKTA_SSO=28 HOOTSUITE_OKTA_SSO value
391
391
  * @property {number} MOONPAY_OKTA_SSO=29 MOONPAY_OKTA_SSO value
392
+ * @property {number} ROOT_INSURANCE_OKTA_SSO=30 ROOT_INSURANCE_OKTA_SSO value
392
393
  */
393
394
  connections.Connection = (function() {
394
395
  var valuesById = {}, values = Object.create(valuesById);
@@ -421,6 +422,7 @@ $root.auth0 = (function() {
421
422
  values[valuesById[27] = "MICROSOFT_AZURE_SSO"] = 27;
422
423
  values[valuesById[28] = "HOOTSUITE_OKTA_SSO"] = 28;
423
424
  values[valuesById[29] = "MOONPAY_OKTA_SSO"] = 29;
425
+ values[valuesById[30] = "ROOT_INSURANCE_OKTA_SSO"] = 30;
424
426
  return values;
425
427
  })();
426
428
 
@@ -24989,6 +24991,22 @@ $root.b2b = (function() {
24989
24991
  return values;
24990
24992
  })();
24991
24993
 
24994
+ /**
24995
+ * SubscriptionOffering enum.
24996
+ * @name b2b.SubscriptionOffering
24997
+ * @enum {string}
24998
+ * @property {number} SUBSCRIPTION_OFFERING_UNKNOWN=0 SUBSCRIPTION_OFFERING_UNKNOWN value
24999
+ * @property {number} SUBSCRIPTION_OFFERING_HEADSPACE=1 SUBSCRIPTION_OFFERING_HEADSPACE value
25000
+ * @property {number} SUBSCRIPTION_OFFERING_GINGER=2 SUBSCRIPTION_OFFERING_GINGER value
25001
+ */
25002
+ b2b.SubscriptionOffering = (function() {
25003
+ var valuesById = {}, values = Object.create(valuesById);
25004
+ values[valuesById[0] = "SUBSCRIPTION_OFFERING_UNKNOWN"] = 0;
25005
+ values[valuesById[1] = "SUBSCRIPTION_OFFERING_HEADSPACE"] = 1;
25006
+ values[valuesById[2] = "SUBSCRIPTION_OFFERING_GINGER"] = 2;
25007
+ return values;
25008
+ })();
25009
+
24992
25010
  return b2b;
24993
25011
  })();
24994
25012
 
@@ -32140,6 +32158,7 @@ $root.SuccessfulUserLogin = (function() {
32140
32158
  case 27:
32141
32159
  case 28:
32142
32160
  case 29:
32161
+ case 30:
32143
32162
  break;
32144
32163
  }
32145
32164
  return null;
@@ -32339,6 +32358,10 @@ $root.SuccessfulUserLogin = (function() {
32339
32358
  case 29:
32340
32359
  message.connection = 29;
32341
32360
  break;
32361
+ case "ROOT_INSURANCE_OKTA_SSO":
32362
+ case 30:
32363
+ message.connection = 30;
32364
+ break;
32342
32365
  }
32343
32366
  return message;
32344
32367
  };
@@ -32616,6 +32639,7 @@ $root.UnlinkedConnection = (function() {
32616
32639
  case 27:
32617
32640
  case 28:
32618
32641
  case 29:
32642
+ case 30:
32619
32643
  break;
32620
32644
  }
32621
32645
  if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
@@ -32768,6 +32792,10 @@ $root.UnlinkedConnection = (function() {
32768
32792
  case 29:
32769
32793
  message.connection = 29;
32770
32794
  break;
32795
+ case "ROOT_INSURANCE_OKTA_SSO":
32796
+ case 30:
32797
+ message.connection = 30;
32798
+ break;
32771
32799
  }
32772
32800
  if (object.unlinkedAt != null)
32773
32801
  if ($util.Long)
@@ -33105,6 +33133,7 @@ $root.ConnectionLinked = (function() {
33105
33133
  case 27:
33106
33134
  case 28:
33107
33135
  case 29:
33136
+ case 30:
33108
33137
  break;
33109
33138
  }
33110
33139
  if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
@@ -33263,6 +33292,10 @@ $root.ConnectionLinked = (function() {
33263
33292
  case 29:
33264
33293
  message.connection = 29;
33265
33294
  break;
33295
+ case "ROOT_INSURANCE_OKTA_SSO":
33296
+ case 30:
33297
+ message.connection = 30;
33298
+ break;
33266
33299
  }
33267
33300
  if (object.linkedAt != null)
33268
33301
  if ($util.Long)
@@ -89086,6 +89119,7 @@ $root.ElfRecordPresent = (function() {
89086
89119
  * @property {string|null} [department] ElfRecordPresent department
89087
89120
  * @property {string|null} [language] ElfRecordPresent language
89088
89121
  * @property {string|null} [customFields] ElfRecordPresent customFields
89122
+ * @property {Array.<b2b.SubscriptionOffering>|null} [offerings] ElfRecordPresent offerings
89089
89123
  * @property {boolean|null} [isDryRun] ElfRecordPresent isDryRun
89090
89124
  * @property {boolean|null} [gingerShouldProcess] ElfRecordPresent gingerShouldProcess
89091
89125
  * @property {boolean|null} [headspaceShouldProcess] ElfRecordPresent headspaceShouldProcess
@@ -89100,6 +89134,7 @@ $root.ElfRecordPresent = (function() {
89100
89134
  * @param {IElfRecordPresent=} [properties] Properties to set
89101
89135
  */
89102
89136
  function ElfRecordPresent(properties) {
89137
+ this.offerings = [];
89103
89138
  if (properties)
89104
89139
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
89105
89140
  if (properties[keys[i]] != null)
@@ -89250,6 +89285,14 @@ $root.ElfRecordPresent = (function() {
89250
89285
  */
89251
89286
  ElfRecordPresent.prototype.customFields = "";
89252
89287
 
89288
+ /**
89289
+ * ElfRecordPresent offerings.
89290
+ * @member {Array.<b2b.SubscriptionOffering>} offerings
89291
+ * @memberof ElfRecordPresent
89292
+ * @instance
89293
+ */
89294
+ ElfRecordPresent.prototype.offerings = $util.emptyArray;
89295
+
89253
89296
  /**
89254
89297
  * ElfRecordPresent isDryRun.
89255
89298
  * @member {boolean} isDryRun
@@ -89340,6 +89383,12 @@ $root.ElfRecordPresent = (function() {
89340
89383
  writer.uint32(/* id 20, wireType 0 =*/160).bool(message.headspaceShouldProcess);
89341
89384
  if (message.customFields != null && message.hasOwnProperty("customFields"))
89342
89385
  writer.uint32(/* id 21, wireType 2 =*/170).string(message.customFields);
89386
+ if (message.offerings != null && message.offerings.length) {
89387
+ writer.uint32(/* id 22, wireType 2 =*/178).fork();
89388
+ for (var i = 0; i < message.offerings.length; ++i)
89389
+ writer.int32(message.offerings[i]);
89390
+ writer.ldelim();
89391
+ }
89343
89392
  return writer;
89344
89393
  };
89345
89394
 
@@ -89428,6 +89477,16 @@ $root.ElfRecordPresent = (function() {
89428
89477
  case 21:
89429
89478
  message.customFields = reader.string();
89430
89479
  break;
89480
+ case 22:
89481
+ if (!(message.offerings && message.offerings.length))
89482
+ message.offerings = [];
89483
+ if ((tag & 7) === 2) {
89484
+ var end2 = reader.uint32() + reader.pos;
89485
+ while (reader.pos < end2)
89486
+ message.offerings.push(reader.int32());
89487
+ } else
89488
+ message.offerings.push(reader.int32());
89489
+ break;
89431
89490
  case 18:
89432
89491
  message.isDryRun = reader.bool();
89433
89492
  break;
@@ -89531,6 +89590,19 @@ $root.ElfRecordPresent = (function() {
89531
89590
  if (message.customFields != null && message.hasOwnProperty("customFields"))
89532
89591
  if (!$util.isString(message.customFields))
89533
89592
  return "customFields: string expected";
89593
+ if (message.offerings != null && message.hasOwnProperty("offerings")) {
89594
+ if (!Array.isArray(message.offerings))
89595
+ return "offerings: array expected";
89596
+ for (var i = 0; i < message.offerings.length; ++i)
89597
+ switch (message.offerings[i]) {
89598
+ default:
89599
+ return "offerings: enum value[] expected";
89600
+ case 0:
89601
+ case 1:
89602
+ case 2:
89603
+ break;
89604
+ }
89605
+ }
89534
89606
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89535
89607
  if (typeof message.isDryRun !== "boolean")
89536
89608
  return "isDryRun: boolean expected";
@@ -89606,6 +89678,27 @@ $root.ElfRecordPresent = (function() {
89606
89678
  message.language = String(object.language);
89607
89679
  if (object.customFields != null)
89608
89680
  message.customFields = String(object.customFields);
89681
+ if (object.offerings) {
89682
+ if (!Array.isArray(object.offerings))
89683
+ throw TypeError(".ElfRecordPresent.offerings: array expected");
89684
+ message.offerings = [];
89685
+ for (var i = 0; i < object.offerings.length; ++i)
89686
+ switch (object.offerings[i]) {
89687
+ default:
89688
+ case "SUBSCRIPTION_OFFERING_UNKNOWN":
89689
+ case 0:
89690
+ message.offerings[i] = 0;
89691
+ break;
89692
+ case "SUBSCRIPTION_OFFERING_HEADSPACE":
89693
+ case 1:
89694
+ message.offerings[i] = 1;
89695
+ break;
89696
+ case "SUBSCRIPTION_OFFERING_GINGER":
89697
+ case 2:
89698
+ message.offerings[i] = 2;
89699
+ break;
89700
+ }
89701
+ }
89609
89702
  if (object.isDryRun != null)
89610
89703
  message.isDryRun = Boolean(object.isDryRun);
89611
89704
  if (object.gingerShouldProcess != null)
@@ -89628,6 +89721,8 @@ $root.ElfRecordPresent = (function() {
89628
89721
  if (!options)
89629
89722
  options = {};
89630
89723
  var object = {};
89724
+ if (options.arrays || options.defaults)
89725
+ object.offerings = [];
89631
89726
  if (options.defaults) {
89632
89727
  object.headspaceHealthOrgId = "";
89633
89728
  object.b2bOrgId = "";
@@ -89700,6 +89795,11 @@ $root.ElfRecordPresent = (function() {
89700
89795
  object.headspaceShouldProcess = message.headspaceShouldProcess;
89701
89796
  if (message.customFields != null && message.hasOwnProperty("customFields"))
89702
89797
  object.customFields = message.customFields;
89798
+ if (message.offerings && message.offerings.length) {
89799
+ object.offerings = [];
89800
+ for (var j = 0; j < message.offerings.length; ++j)
89801
+ object.offerings[j] = options.enums === String ? $root.b2b.SubscriptionOffering[message.offerings[j]] : message.offerings[j];
89802
+ }
89703
89803
  return object;
89704
89804
  };
89705
89805
 
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.398.0"
19
+ "version": "1.400.0"
20
20
  }