@headspace/protos-events 1.328.0 → 1.330.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
@@ -9854,6 +9854,9 @@ export namespace b2b {
9854
9854
 
9855
9855
  /** Organization gingerId */
9856
9856
  gingerId?: (string|null);
9857
+
9858
+ /** Organization headspaceHealthId */
9859
+ headspaceHealthId?: (string|null);
9857
9860
  }
9858
9861
 
9859
9862
  /** Represents an Organization. */
@@ -9895,6 +9898,9 @@ export namespace b2b {
9895
9898
  /** Organization gingerId. */
9896
9899
  public gingerId: string;
9897
9900
 
9901
+ /** Organization headspaceHealthId. */
9902
+ public headspaceHealthId: string;
9903
+
9898
9904
  /**
9899
9905
  * Creates a new Organization instance using the specified properties.
9900
9906
  * @param [properties] Properties to set
@@ -28674,6 +28680,9 @@ export interface IEligibilityFileProcessed {
28674
28680
 
28675
28681
  /** EligibilityFileProcessed orgRestrictBy */
28676
28682
  orgRestrictBy?: (b2b.OrgRestrictBy|null);
28683
+
28684
+ /** EligibilityFileProcessed orgHeadspaceHealthId */
28685
+ orgHeadspaceHealthId?: (string|null);
28677
28686
  }
28678
28687
 
28679
28688
  /** Represents an EligibilityFileProcessed. */
@@ -28724,6 +28733,9 @@ export class EligibilityFileProcessed implements IEligibilityFileProcessed {
28724
28733
  /** EligibilityFileProcessed orgRestrictBy. */
28725
28734
  public orgRestrictBy: b2b.OrgRestrictBy;
28726
28735
 
28736
+ /** EligibilityFileProcessed orgHeadspaceHealthId. */
28737
+ public orgHeadspaceHealthId: string;
28738
+
28727
28739
  /**
28728
28740
  * Creates a new EligibilityFileProcessed instance using the specified properties.
28729
28741
  * @param [properties] Properties to set
@@ -31623,6 +31635,9 @@ export interface IEnterpriseUserEnrollmentCreated {
31623
31635
 
31624
31636
  /** EnterpriseUserEnrollmentCreated orgSlug */
31625
31637
  orgSlug?: (string|null);
31638
+
31639
+ /** EnterpriseUserEnrollmentCreated orgHeadspaceHealthId */
31640
+ orgHeadspaceHealthId?: (string|null);
31626
31641
  }
31627
31642
 
31628
31643
  /** Represents an EnterpriseUserEnrollmentCreated. */
@@ -31706,6 +31721,9 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
31706
31721
  /** EnterpriseUserEnrollmentCreated orgSlug. */
31707
31722
  public orgSlug: string;
31708
31723
 
31724
+ /** EnterpriseUserEnrollmentCreated orgHeadspaceHealthId. */
31725
+ public orgHeadspaceHealthId: string;
31726
+
31709
31727
  /**
31710
31728
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
31711
31729
  * @param [properties] Properties to set
@@ -31854,6 +31872,9 @@ export interface IEnterpriseUserEnrollmentRemoved {
31854
31872
 
31855
31873
  /** EnterpriseUserEnrollmentRemoved orgSlug */
31856
31874
  orgSlug?: (string|null);
31875
+
31876
+ /** EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId */
31877
+ orgHeadspaceHealthId?: (string|null);
31857
31878
  }
31858
31879
 
31859
31880
  /** Represents an EnterpriseUserEnrollmentRemoved. */
@@ -31940,6 +31961,9 @@ export class EnterpriseUserEnrollmentRemoved implements IEnterpriseUserEnrollmen
31940
31961
  /** EnterpriseUserEnrollmentRemoved orgSlug. */
31941
31962
  public orgSlug: string;
31942
31963
 
31964
+ /** EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId. */
31965
+ public orgHeadspaceHealthId: string;
31966
+
31943
31967
  /**
31944
31968
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
31945
31969
  * @param [properties] Properties to set
@@ -32085,6 +32109,9 @@ export interface IEnterpriseUserEnrollmentAmended {
32085
32109
 
32086
32110
  /** EnterpriseUserEnrollmentAmended orgSlug */
32087
32111
  orgSlug?: (string|null);
32112
+
32113
+ /** EnterpriseUserEnrollmentAmended orgHeadspaceHealthId */
32114
+ orgHeadspaceHealthId?: (string|null);
32088
32115
  }
32089
32116
 
32090
32117
  /** Represents an EnterpriseUserEnrollmentAmended. */
@@ -32168,6 +32195,9 @@ export class EnterpriseUserEnrollmentAmended implements IEnterpriseUserEnrollmen
32168
32195
  /** EnterpriseUserEnrollmentAmended orgSlug. */
32169
32196
  public orgSlug: string;
32170
32197
 
32198
+ /** EnterpriseUserEnrollmentAmended orgHeadspaceHealthId. */
32199
+ public orgHeadspaceHealthId: string;
32200
+
32171
32201
  /**
32172
32202
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
32173
32203
  * @param [properties] Properties to set
@@ -41809,7 +41839,7 @@ export class UserLanguagePreferenceUpdated implements IUserLanguagePreferenceUpd
41809
41839
  * @param [properties] Properties to set
41810
41840
  * @returns UserLanguagePreferenceUpdated instance
41811
41841
  */
41812
- public static create(properties?: IUserLanguagePreferenceUpdated): UserLanguagePreferenceUpdated;
41842
+ public static create(properties?: IUserLanguagePreferencleUpdated): UserLanguagePreferenceUpdated;
41813
41843
 
41814
41844
  /**
41815
41845
  * Encodes the specified UserLanguagePreferenceUpdated message. Does not implicitly {@link UserLanguagePreferenceUpdated.verify|verify} messages.
@@ -42264,3 +42294,109 @@ export class VirginPulseAccountLinked implements IVirginPulseAccountLinked {
42264
42294
  */
42265
42295
  public toJSON(): { [k: string]: any };
42266
42296
  }
42297
+
42298
+ /** Properties of a UserMFAEnrollmentInitiated. */
42299
+ export interface IUserMFAEnrollmentInitiated {
42300
+
42301
+ /** UserMFAEnrollmentInitiated mfa_enabled */
42302
+ mfa_enabled?: (string|null);
42303
+
42304
+ /** UserMFAEnrollmentInitiated userId */
42305
+ userId?: (string|null);
42306
+ }
42307
+
42308
+ /** Properties of a UserMFAEnrollmentInitiated. */
42309
+ export interface IUserMFAEnrollmentInitiated {
42310
+
42311
+ /** UserMFAEnrollmentInitiated mfa_enabled */
42312
+ mfa_enabled?: (string|null);
42313
+
42314
+ /** UserMFAEnrollmentInitiated userId */
42315
+ userId?: (string|null);
42316
+ }
42317
+
42318
+ /** Represents a UserMFAEnrollmentInitiated. */
42319
+ export class UserMFAEnrollmentInitiated implements IUserMFAEnrollmentInitiated {
42320
+
42321
+ /**
42322
+ * Constructs a new UserMFAEnrollmentInitiated.
42323
+ * @param [properties] Properties to set
42324
+ */
42325
+ constructor(properties?: IUserMFAEnrollmentInitiated);
42326
+
42327
+ /** UserMFAEnrollmentInitiated mfa_enabled. */
42328
+ public mfa_enabled: string;
42329
+
42330
+ /** UserMFAEnrollmentInitiated userId. */
42331
+ public userId: string;
42332
+
42333
+ /**
42334
+ * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
42335
+ * @param [properties] Properties to set
42336
+ * @returns UserMFAEnrollmentInitiated instance
42337
+ */
42338
+ public static create(properties?: IUserMFAEnrollmentInitiated): UserMFAEnrollmentInitiated;
42339
+
42340
+ /**
42341
+ * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
42342
+ * @param message UserMFAEnrollmentInitiated message or plain object to encode
42343
+ * @param [writer] Writer to encode to
42344
+ * @returns Writer
42345
+ */
42346
+ public static encode(message: IVUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
42347
+
42348
+ /**
42349
+ * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
42350
+ * @param message UserMFAEnrollmentInitiated message or plain object to encode
42351
+ * @param [writer] Writer to encode to
42352
+ * @returns Writer
42353
+ */
42354
+ public static encodeDelimited(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
42355
+
42356
+ /**
42357
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
42358
+ * @param reader Reader or buffer to decode from
42359
+ * @param [length] Message length if known beforehand
42360
+ * @returns UserMFAEnrollmentInitiated
42361
+ * @throws {Error} If the payload is not a reader or valid buffer
42362
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42363
+ */
42364
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMFAEnrollmentInitiated;
42365
+
42366
+ /**
42367
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
42368
+ * @param reader Reader or buffer to decode from
42369
+ * @returns UserMFAEnrollmentInitiated
42370
+ * @throws {Error} If the payload is not a reader or valid buffer
42371
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42372
+ */
42373
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMFAEnrollmentInitiated;
42374
+
42375
+ /**
42376
+ * Verifies a UserMFAEnrollmentInitiated message.
42377
+ * @param message Plain object to verify
42378
+ * @returns `null` if valid, otherwise the reason why it is not
42379
+ */
42380
+ public static verify(message: { [k: string]: any }): (string|null);
42381
+
42382
+ /**
42383
+ * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
42384
+ * @param object Plain object
42385
+ * @returns UserMFAEnrollmentInitiated
42386
+ */
42387
+ public static fromObject(object: { [k: string]: any }): UserMFAEnrollmentInitiated;
42388
+
42389
+ /**
42390
+ * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
42391
+ * @param message UserMFAEnrollmentInitiated
42392
+ * @param [options] Conversion options
42393
+ * @returns Plain object
42394
+ */
42395
+ public static toObject(message: UserMFAEnrollmentInitiated, options?: $protobuf.IConversionOptions): { [k: string]: any };
42396
+
42397
+ /**
42398
+ * Converts this UserMFAEnrollmentInitiated to JSON.
42399
+ * @returns JSON object
42400
+ */
42401
+ public toJSON(): { [k: string]: any };
42402
+ }
package/lib/index.js CHANGED
@@ -23538,6 +23538,7 @@ $root.b2b = (function() {
23538
23538
  * @property {string|null} [healthHubName] Organization healthHubName
23539
23539
  * @property {b2b.OrgRestrictBy|null} [restrictBy] Organization restrictBy
23540
23540
  * @property {string|null} [gingerId] Organization gingerId
23541
+ * @property {string|null} [headspaceHealthId] Organization headspaceHealthId
23541
23542
  */
23542
23543
 
23543
23544
  /**
@@ -23635,6 +23636,14 @@ $root.b2b = (function() {
23635
23636
  */
23636
23637
  Organization.prototype.gingerId = "";
23637
23638
 
23639
+ /**
23640
+ * Organization headspaceHealthId.
23641
+ * @member {string} headspaceHealthId
23642
+ * @memberof b2b.Organization
23643
+ * @instance
23644
+ */
23645
+ Organization.prototype.headspaceHealthId = "";
23646
+
23638
23647
  /**
23639
23648
  * Creates a new Organization instance using the specified properties.
23640
23649
  * @function create
@@ -23679,6 +23688,8 @@ $root.b2b = (function() {
23679
23688
  writer.uint32(/* id 9, wireType 0 =*/72).int32(message.restrictBy);
23680
23689
  if (message.gingerId != null && message.hasOwnProperty("gingerId"))
23681
23690
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.gingerId);
23691
+ if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
23692
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.headspaceHealthId);
23682
23693
  return writer;
23683
23694
  };
23684
23695
 
@@ -23743,6 +23754,9 @@ $root.b2b = (function() {
23743
23754
  case 10:
23744
23755
  message.gingerId = reader.string();
23745
23756
  break;
23757
+ case 11:
23758
+ message.headspaceHealthId = reader.string();
23759
+ break;
23746
23760
  default:
23747
23761
  reader.skipType(tag & 7);
23748
23762
  break;
@@ -23831,6 +23845,9 @@ $root.b2b = (function() {
23831
23845
  if (message.gingerId != null && message.hasOwnProperty("gingerId"))
23832
23846
  if (!$util.isString(message.gingerId))
23833
23847
  return "gingerId: string expected";
23848
+ if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
23849
+ if (!$util.isString(message.headspaceHealthId))
23850
+ return "headspaceHealthId: string expected";
23834
23851
  return null;
23835
23852
  };
23836
23853
 
@@ -23934,6 +23951,8 @@ $root.b2b = (function() {
23934
23951
  }
23935
23952
  if (object.gingerId != null)
23936
23953
  message.gingerId = String(object.gingerId);
23954
+ if (object.headspaceHealthId != null)
23955
+ message.headspaceHealthId = String(object.headspaceHealthId);
23937
23956
  return message;
23938
23957
  };
23939
23958
 
@@ -23961,6 +23980,7 @@ $root.b2b = (function() {
23961
23980
  object.healthHubName = "";
23962
23981
  object.restrictBy = options.enums === String ? "ORG_RESTRICT_BY_UNKNOWN" : 0;
23963
23982
  object.gingerId = "";
23983
+ object.headspaceHealthId = "";
23964
23984
  }
23965
23985
  if (message.orgId != null && message.hasOwnProperty("orgId"))
23966
23986
  object.orgId = message.orgId;
@@ -23982,6 +24002,8 @@ $root.b2b = (function() {
23982
24002
  object.restrictBy = options.enums === String ? $root.b2b.OrgRestrictBy[message.restrictBy] : message.restrictBy;
23983
24003
  if (message.gingerId != null && message.hasOwnProperty("gingerId"))
23984
24004
  object.gingerId = message.gingerId;
24005
+ if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
24006
+ object.headspaceHealthId = message.headspaceHealthId;
23985
24007
  return object;
23986
24008
  };
23987
24009
 
@@ -79387,6 +79409,7 @@ $root.EligibilityFileProcessed = (function() {
79387
79409
  * @property {number|null} [numMembersProcessed] EligibilityFileProcessed numMembersProcessed
79388
79410
  * @property {number|null} [dashboardUserId] EligibilityFileProcessed dashboardUserId
79389
79411
  * @property {b2b.OrgRestrictBy|null} [orgRestrictBy] EligibilityFileProcessed orgRestrictBy
79412
+ * @property {string|null} [orgHeadspaceHealthId] EligibilityFileProcessed orgHeadspaceHealthId
79390
79413
  */
79391
79414
 
79392
79415
  /**
@@ -79509,6 +79532,14 @@ $root.EligibilityFileProcessed = (function() {
79509
79532
  */
79510
79533
  EligibilityFileProcessed.prototype.orgRestrictBy = 0;
79511
79534
 
79535
+ /**
79536
+ * EligibilityFileProcessed orgHeadspaceHealthId.
79537
+ * @member {string} orgHeadspaceHealthId
79538
+ * @memberof EligibilityFileProcessed
79539
+ * @instance
79540
+ */
79541
+ EligibilityFileProcessed.prototype.orgHeadspaceHealthId = "";
79542
+
79512
79543
  /**
79513
79544
  * Creates a new EligibilityFileProcessed instance using the specified properties.
79514
79545
  * @function create
@@ -79560,6 +79591,8 @@ $root.EligibilityFileProcessed = (function() {
79560
79591
  writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.dashboardUserId);
79561
79592
  if (message.orgRestrictBy != null && message.hasOwnProperty("orgRestrictBy"))
79562
79593
  writer.uint32(/* id 13, wireType 0 =*/104).int32(message.orgRestrictBy);
79594
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
79595
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.orgHeadspaceHealthId);
79563
79596
  return writer;
79564
79597
  };
79565
79598
 
@@ -79638,6 +79671,9 @@ $root.EligibilityFileProcessed = (function() {
79638
79671
  case 13:
79639
79672
  message.orgRestrictBy = reader.int32();
79640
79673
  break;
79674
+ case 14:
79675
+ message.orgHeadspaceHealthId = reader.string();
79676
+ break;
79641
79677
  default:
79642
79678
  reader.skipType(tag & 7);
79643
79679
  break;
@@ -79732,6 +79768,9 @@ $root.EligibilityFileProcessed = (function() {
79732
79768
  case 9:
79733
79769
  break;
79734
79770
  }
79771
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
79772
+ if (!$util.isString(message.orgHeadspaceHealthId))
79773
+ return "orgHeadspaceHealthId: string expected";
79735
79774
  return null;
79736
79775
  };
79737
79776
 
@@ -79828,6 +79867,8 @@ $root.EligibilityFileProcessed = (function() {
79828
79867
  message.orgRestrictBy = 9;
79829
79868
  break;
79830
79869
  }
79870
+ if (object.orgHeadspaceHealthId != null)
79871
+ message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
79831
79872
  return message;
79832
79873
  };
79833
79874
 
@@ -79863,6 +79904,7 @@ $root.EligibilityFileProcessed = (function() {
79863
79904
  object.numMembersProcessed = 0;
79864
79905
  object.dashboardUserId = 0;
79865
79906
  object.orgRestrictBy = options.enums === String ? "ORG_RESTRICT_BY_UNKNOWN" : 0;
79907
+ object.orgHeadspaceHealthId = "";
79866
79908
  }
79867
79909
  if (message.email != null && message.hasOwnProperty("email"))
79868
79910
  object.email = $root.Email.toObject(message.email, options);
@@ -79897,6 +79939,8 @@ $root.EligibilityFileProcessed = (function() {
79897
79939
  object.dashboardUserId = message.dashboardUserId;
79898
79940
  if (message.orgRestrictBy != null && message.hasOwnProperty("orgRestrictBy"))
79899
79941
  object.orgRestrictBy = options.enums === String ? $root.b2b.OrgRestrictBy[message.orgRestrictBy] : message.orgRestrictBy;
79942
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
79943
+ object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
79900
79944
  return object;
79901
79945
  };
79902
79946
 
@@ -87269,6 +87313,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87269
87313
  * @property {string|null} [employeeId] EnterpriseUserEnrollmentCreated employeeId
87270
87314
  * @property {string|null} [employeeEmailHash] EnterpriseUserEnrollmentCreated employeeEmailHash
87271
87315
  * @property {string|null} [orgSlug] EnterpriseUserEnrollmentCreated orgSlug
87316
+ * @property {string|null} [orgHeadspaceHealthId] EnterpriseUserEnrollmentCreated orgHeadspaceHealthId
87272
87317
  */
87273
87318
 
87274
87319
  /**
@@ -87478,6 +87523,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87478
87523
  */
87479
87524
  EnterpriseUserEnrollmentCreated.prototype.orgSlug = "";
87480
87525
 
87526
+ /**
87527
+ * EnterpriseUserEnrollmentCreated orgHeadspaceHealthId.
87528
+ * @member {string} orgHeadspaceHealthId
87529
+ * @memberof EnterpriseUserEnrollmentCreated
87530
+ * @instance
87531
+ */
87532
+ EnterpriseUserEnrollmentCreated.prototype.orgHeadspaceHealthId = "";
87533
+
87481
87534
  /**
87482
87535
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
87483
87536
  * @function create
@@ -87550,6 +87603,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87550
87603
  writer.uint32(/* id 26, wireType 2 =*/210).string(message.employeeEmailHash);
87551
87604
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
87552
87605
  writer.uint32(/* id 27, wireType 2 =*/218).string(message.orgSlug);
87606
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
87607
+ writer.uint32(/* id 28, wireType 2 =*/226).string(message.orgHeadspaceHealthId);
87553
87608
  return writer;
87554
87609
  };
87555
87610
 
@@ -87656,6 +87711,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87656
87711
  case 27:
87657
87712
  message.orgSlug = reader.string();
87658
87713
  break;
87714
+ case 28:
87715
+ message.orgHeadspaceHealthId = reader.string();
87716
+ break;
87659
87717
  default:
87660
87718
  reader.skipType(tag & 7);
87661
87719
  break;
@@ -87785,6 +87843,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87785
87843
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
87786
87844
  if (!$util.isString(message.orgSlug))
87787
87845
  return "orgSlug: string expected";
87846
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
87847
+ if (!$util.isString(message.orgHeadspaceHealthId))
87848
+ return "orgHeadspaceHealthId: string expected";
87788
87849
  return null;
87789
87850
  };
87790
87851
 
@@ -87935,6 +87996,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87935
87996
  message.employeeEmailHash = String(object.employeeEmailHash);
87936
87997
  if (object.orgSlug != null)
87937
87998
  message.orgSlug = String(object.orgSlug);
87999
+ if (object.orgHeadspaceHealthId != null)
88000
+ message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
87938
88001
  return message;
87939
88002
  };
87940
88003
 
@@ -87996,6 +88059,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
87996
88059
  object.employeeId = "";
87997
88060
  object.employeeEmailHash = "";
87998
88061
  object.orgSlug = "";
88062
+ object.orgHeadspaceHealthId = "";
87999
88063
  }
88000
88064
  if (message.userId != null && message.hasOwnProperty("userId"))
88001
88065
  object.userId = message.userId;
@@ -88060,6 +88124,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
88060
88124
  object.employeeEmailHash = message.employeeEmailHash;
88061
88125
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
88062
88126
  object.orgSlug = message.orgSlug;
88127
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
88128
+ object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
88063
88129
  return object;
88064
88130
  };
88065
88131
 
@@ -88108,6 +88174,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88108
88174
  * @property {string|null} [employeeId] EnterpriseUserEnrollmentRemoved employeeId
88109
88175
  * @property {string|null} [employeeEmailHash] EnterpriseUserEnrollmentRemoved employeeEmailHash
88110
88176
  * @property {string|null} [orgSlug] EnterpriseUserEnrollmentRemoved orgSlug
88177
+ * @property {string|null} [orgHeadspaceHealthId] EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId
88111
88178
  */
88112
88179
 
88113
88180
  /**
@@ -88325,6 +88392,14 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88325
88392
  */
88326
88393
  EnterpriseUserEnrollmentRemoved.prototype.orgSlug = "";
88327
88394
 
88395
+ /**
88396
+ * EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId.
88397
+ * @member {string} orgHeadspaceHealthId
88398
+ * @memberof EnterpriseUserEnrollmentRemoved
88399
+ * @instance
88400
+ */
88401
+ EnterpriseUserEnrollmentRemoved.prototype.orgHeadspaceHealthId = "";
88402
+
88328
88403
  /**
88329
88404
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
88330
88405
  * @function create
@@ -88399,6 +88474,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88399
88474
  writer.uint32(/* id 27, wireType 2 =*/218).string(message.employeeEmailHash);
88400
88475
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
88401
88476
  writer.uint32(/* id 28, wireType 2 =*/226).string(message.orgSlug);
88477
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
88478
+ writer.uint32(/* id 29, wireType 2 =*/234).string(message.orgHeadspaceHealthId);
88402
88479
  return writer;
88403
88480
  };
88404
88481
 
@@ -88508,6 +88585,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88508
88585
  case 28:
88509
88586
  message.orgSlug = reader.string();
88510
88587
  break;
88588
+ case 29:
88589
+ message.orgHeadspaceHealthId = reader.string();
88590
+ break;
88511
88591
  default:
88512
88592
  reader.skipType(tag & 7);
88513
88593
  break;
@@ -88654,6 +88734,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88654
88734
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
88655
88735
  if (!$util.isString(message.orgSlug))
88656
88736
  return "orgSlug: string expected";
88737
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
88738
+ if (!$util.isString(message.orgHeadspaceHealthId))
88739
+ return "orgHeadspaceHealthId: string expected";
88657
88740
  return null;
88658
88741
  };
88659
88742
 
@@ -88850,6 +88933,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88850
88933
  message.employeeEmailHash = String(object.employeeEmailHash);
88851
88934
  if (object.orgSlug != null)
88852
88935
  message.orgSlug = String(object.orgSlug);
88936
+ if (object.orgHeadspaceHealthId != null)
88937
+ message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
88853
88938
  return message;
88854
88939
  };
88855
88940
 
@@ -88912,6 +88997,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88912
88997
  object.employeeId = "";
88913
88998
  object.employeeEmailHash = "";
88914
88999
  object.orgSlug = "";
89000
+ object.orgHeadspaceHealthId = "";
88915
89001
  }
88916
89002
  if (message.userId != null && message.hasOwnProperty("userId"))
88917
89003
  object.userId = message.userId;
@@ -88978,6 +89064,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
88978
89064
  object.employeeEmailHash = message.employeeEmailHash;
88979
89065
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
88980
89066
  object.orgSlug = message.orgSlug;
89067
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
89068
+ object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
88981
89069
  return object;
88982
89070
  };
88983
89071
 
@@ -89025,6 +89113,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89025
89113
  * @property {string|null} [employeeId] EnterpriseUserEnrollmentAmended employeeId
89026
89114
  * @property {string|null} [employeeEmailHash] EnterpriseUserEnrollmentAmended employeeEmailHash
89027
89115
  * @property {string|null} [orgSlug] EnterpriseUserEnrollmentAmended orgSlug
89116
+ * @property {string|null} [orgHeadspaceHealthId] EnterpriseUserEnrollmentAmended orgHeadspaceHealthId
89028
89117
  */
89029
89118
 
89030
89119
  /**
@@ -89234,6 +89323,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89234
89323
  */
89235
89324
  EnterpriseUserEnrollmentAmended.prototype.orgSlug = "";
89236
89325
 
89326
+ /**
89327
+ * EnterpriseUserEnrollmentAmended orgHeadspaceHealthId.
89328
+ * @member {string} orgHeadspaceHealthId
89329
+ * @memberof EnterpriseUserEnrollmentAmended
89330
+ * @instance
89331
+ */
89332
+ EnterpriseUserEnrollmentAmended.prototype.orgHeadspaceHealthId = "";
89333
+
89237
89334
  /**
89238
89335
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
89239
89336
  * @function create
@@ -89306,6 +89403,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89306
89403
  writer.uint32(/* id 26, wireType 2 =*/210).string(message.employeeEmailHash);
89307
89404
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
89308
89405
  writer.uint32(/* id 27, wireType 2 =*/218).string(message.orgSlug);
89406
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
89407
+ writer.uint32(/* id 28, wireType 2 =*/226).string(message.orgHeadspaceHealthId);
89309
89408
  return writer;
89310
89409
  };
89311
89410
 
@@ -89412,6 +89511,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89412
89511
  case 27:
89413
89512
  message.orgSlug = reader.string();
89414
89513
  break;
89514
+ case 28:
89515
+ message.orgHeadspaceHealthId = reader.string();
89516
+ break;
89415
89517
  default:
89416
89518
  reader.skipType(tag & 7);
89417
89519
  break;
@@ -89541,6 +89643,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89541
89643
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
89542
89644
  if (!$util.isString(message.orgSlug))
89543
89645
  return "orgSlug: string expected";
89646
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
89647
+ if (!$util.isString(message.orgHeadspaceHealthId))
89648
+ return "orgHeadspaceHealthId: string expected";
89544
89649
  return null;
89545
89650
  };
89546
89651
 
@@ -89691,6 +89796,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89691
89796
  message.employeeEmailHash = String(object.employeeEmailHash);
89692
89797
  if (object.orgSlug != null)
89693
89798
  message.orgSlug = String(object.orgSlug);
89799
+ if (object.orgHeadspaceHealthId != null)
89800
+ message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
89694
89801
  return message;
89695
89802
  };
89696
89803
 
@@ -89752,6 +89859,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89752
89859
  object.employeeId = "";
89753
89860
  object.employeeEmailHash = "";
89754
89861
  object.orgSlug = "";
89862
+ object.orgHeadspaceHealthId = "";
89755
89863
  }
89756
89864
  if (message.userId != null && message.hasOwnProperty("userId"))
89757
89865
  object.userId = message.userId;
@@ -89816,6 +89924,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
89816
89924
  object.employeeEmailHash = message.employeeEmailHash;
89817
89925
  if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
89818
89926
  object.orgSlug = message.orgSlug;
89927
+ if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
89928
+ object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
89819
89929
  return object;
89820
89930
  };
89821
89931
 
@@ -119090,4 +119200,214 @@ $root.VirginPulseAccountLinked = (function() {
119090
119200
  return VirginPulseAccountLinked;
119091
119201
  })();
119092
119202
 
119203
+ $root.UserMFAEnrollmentInitiated = (function() {
119204
+
119205
+ /**
119206
+ * Properties of a UserMFAEnrollmentInitiated.
119207
+ * @exports IUserMFAEnrollmentInitiated
119208
+ * @interface IUserMFAEnrollmentInitiated
119209
+ * @property {string|null} [mfa_enabled] UserMFAEnrollmentInitiated mfa_enabled
119210
+ * @property {string|null} [userId] UserMFAEnrollmentInitiated userId
119211
+ */
119212
+
119213
+ /**
119214
+ * Constructs a new UserMFAEnrollmentInitiated.
119215
+ * @exports UserMFAEnrollmentInitiated
119216
+ * @classdesc Represents a UserMFAEnrollmentInitiated.
119217
+ * @implements IUserMFAEnrollmentInitiated
119218
+ * @constructor
119219
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
119220
+ */
119221
+ function UserMFAEnrollmentInitiated(properties) {
119222
+ if (properties)
119223
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
119224
+ if (properties[keys[i]] != null)
119225
+ this[keys[i]] = properties[keys[i]];
119226
+ }
119227
+
119228
+ /**
119229
+ * UserMFAEnrollmentInitiated timestamp.
119230
+ * @member {string} mfa_enabled
119231
+ * @memberof UserMFAEnrollmentInitiated
119232
+ * @instance
119233
+ */
119234
+ UserMFAEnrollmentInitiated.prototype.mfa_enabled = "";
119235
+
119236
+ /**
119237
+ * UserMFAEnrollmentInitiated userId.
119238
+ * @member {string} userId
119239
+ * @memberof UserMFAEnrollmentInitiated
119240
+ * @instance
119241
+ */
119242
+ UserMFAEnrollmentInitiated.prototype.userId = "";
119243
+
119244
+ /**
119245
+ * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
119246
+ * @function create
119247
+ * @memberof UserMFAEnrollmentInitiated
119248
+ * @static
119249
+ * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
119250
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
119251
+ */
119252
+ UserMFAEnrollmentInitiated.create = function create(properties) {
119253
+ return new UserMFAEnrollmentInitiated(properties);
119254
+ };
119255
+
119256
+ /**
119257
+ * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
119258
+ * @function encode
119259
+ * @memberof UserMFAEnrollmentInitiated
119260
+ * @static
119261
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
119262
+ * @param {$protobuf.Writer} [writer] Writer to encode to
119263
+ * @returns {$protobuf.Writer} Writer
119264
+ */
119265
+ UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
119266
+ if (!writer)
119267
+ writer = $Writer.create();
119268
+ if (message.mfa_enabled != null && message.hasOwnProperty("mfa_enabled"))
119269
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.mfa_enabled);
119270
+ if (message.userId != null && message.hasOwnProperty("userId"))
119271
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
119272
+ return writer;
119273
+ };
119274
+
119275
+ /**
119276
+ * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
119277
+ * @function encodeDelimited
119278
+ * @memberof UserMFAEnrollmentInitiated
119279
+ * @static
119280
+ * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
119281
+ * @param {$protobuf.Writer} [writer] Writer to encode to
119282
+ * @returns {$protobuf.Writer} Writer
119283
+ */
119284
+ UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
119285
+ return this.encode(message, writer).ldelim();
119286
+ };
119287
+
119288
+ /**
119289
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
119290
+ * @function decode
119291
+ * @memberof UserMFAEnrollmentInitiated
119292
+ * @static
119293
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
119294
+ * @param {string} [length] Message length if known beforehand
119295
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
119296
+ * @throws {Error} If the payload is not a reader or valid buffer
119297
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
119298
+ */
119299
+ UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
119300
+ if (!(reader instanceof $Reader))
119301
+ reader = $Reader.create(reader);
119302
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
119303
+ while (reader.pos < end) {
119304
+ var tag = reader.uint32();
119305
+ switch (tag >>> 3) {
119306
+ case 1:
119307
+ message.mfa_enabled = reader.string();
119308
+ break;
119309
+ case 2:
119310
+ message.userId = reader.string();
119311
+ break;
119312
+ default:
119313
+ reader.skipType(tag & 7);
119314
+ break;
119315
+ }
119316
+ }
119317
+ return message;
119318
+ };
119319
+
119320
+ /**
119321
+ * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
119322
+ * @function decodeDelimited
119323
+ * @memberof UserMFAEnrollmentInitiated
119324
+ * @static
119325
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
119326
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
119327
+ * @throws {Error} If the payload is not a reader or valid buffer
119328
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
119329
+ */
119330
+ UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
119331
+ if (!(reader instanceof $Reader))
119332
+ reader = new $Reader(reader);
119333
+ return this.decode(reader, reader.uint32());
119334
+ };
119335
+
119336
+ /**
119337
+ * Verifies a UserMFAEnrollmentInitiated message.
119338
+ * @function verify
119339
+ * @memberof UserMFAEnrollmentInitiated
119340
+ * @static
119341
+ * @param {Object.<string,*>} message Plain object to verify
119342
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
119343
+ */
119344
+ UserMFAEnrollmentInitiated.verify = function verify(message) {
119345
+ if (typeof message !== "object" || message === null)
119346
+ return "object expected";
119347
+ if (message.mfa_enabled != null && message.hasOwnProperty("mfa_enabled"))
119348
+ if (!$util.isString(message.mfa_enabled))
119349
+ return "mfa_enabled: string expected";
119350
+ if (message.userId != null && message.hasOwnProperty("userId"))
119351
+ if (!$util.isString(message.userId))
119352
+ return "userId: string expected";
119353
+ return null;
119354
+ };
119355
+
119356
+ /**
119357
+ * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
119358
+ * @function fromObject
119359
+ * @memberof UserMFAEnrollmentInitiated
119360
+ * @static
119361
+ * @param {Object.<string,*>} object Plain object
119362
+ * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
119363
+ */
119364
+ UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
119365
+ if (object instanceof $root.UserMFAEnrollmentInitiated)
119366
+ return object;
119367
+ var message = new $root.UserMFAEnrollmentInitiated();
119368
+ if (object.mfa_enabled != null)
119369
+ message.mfa_enabled = String(object.mfa_enabled);
119370
+ if (object.userId != null)
119371
+ message.userId = String(object.userId);
119372
+ return message;
119373
+ };
119374
+
119375
+ /**
119376
+ * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
119377
+ * @function toObject
119378
+ * @memberof UserMFAEnrollmentInitiated
119379
+ * @static
119380
+ * @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
119381
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
119382
+ * @returns {Object.<string,*>} Plain object
119383
+ */
119384
+ UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
119385
+ if (!options)
119386
+ options = {};
119387
+ var object = {};
119388
+ if (options.defaults) {
119389
+ object.mfa_enabled = "";
119390
+ object.userId = "";
119391
+ }
119392
+ if (message.mfa_enabled != null && message.hasOwnProperty("mfa_enabled"))
119393
+ object.userId = message.mfa_enabled;
119394
+ if (message.userId != null && message.hasOwnProperty("userId"))
119395
+ object.userId = message.userId;
119396
+ return object;
119397
+ };
119398
+
119399
+ /**
119400
+ * Converts this UserMFAEnrollmentInitiated to JSON.
119401
+ * @function toJSON
119402
+ * @memberof UserMFAEnrollmentInitiated
119403
+ * @instance
119404
+ * @returns {Object.<string,*>} JSON object
119405
+ */
119406
+ UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
119407
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
119408
+ };
119409
+
119410
+ return UserMFAEnrollmentInitiated;
119411
+ })();
119412
+
119093
119413
  module.exports = $root;
package/package.json CHANGED
@@ -6,15 +6,15 @@
6
6
  },
7
7
  "devDependencies": {
8
8
  "babel-core": "^6.26.3",
9
- "babel-jest": "^23.6.0",
10
- "jest": "^23.6.0",
11
- "jest-junit": "^5.1.0",
12
- "ts-jest": "^23.10.0-beta.4",
9
+ "babel-jest": "^27.5.1",
10
+ "jest": "^27.5.1",
11
+ "jest-junit": "^13.0.0",
12
+ "ts-jest": "^27.1.3",
13
13
  "tslint": "^5.11.0",
14
14
  "typescript": "^3.0.1"
15
15
  },
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.328.0"
19
+ "version": "1.330.0"
20
20
  }