@headspace/protos-events 1.644.0 → 1.646.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +45 -96
  2. package/lib/index.js +236 -224
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -52431,6 +52431,12 @@ export interface IEligibilityRecordCreated {
52431
52431
 
52432
52432
  /** EligibilityRecordCreated uuid */
52433
52433
  uuid?: (string|null);
52434
+
52435
+ /** EligibilityRecordCreated source */
52436
+ source?: (EligibilitySourceType|null);
52437
+
52438
+ /** EligibilityRecordCreated externalId */
52439
+ externalId?: (string|null);
52434
52440
  }
52435
52441
 
52436
52442
  /** Represents an EligibilityRecordCreated. */
@@ -52451,6 +52457,12 @@ export class EligibilityRecordCreated implements IEligibilityRecordCreated {
52451
52457
  /** EligibilityRecordCreated uuid. */
52452
52458
  public uuid: string;
52453
52459
 
52460
+ /** EligibilityRecordCreated source. */
52461
+ public source: EligibilitySourceType;
52462
+
52463
+ /** EligibilityRecordCreated externalId. */
52464
+ public externalId: string;
52465
+
52454
52466
  /**
52455
52467
  * Creates a new EligibilityRecordCreated instance using the specified properties.
52456
52468
  * @param [properties] Properties to set
@@ -52533,6 +52545,12 @@ export interface IEligibilityRecordUpdated {
52533
52545
 
52534
52546
  /** EligibilityRecordUpdated uuid */
52535
52547
  uuid?: (string|null);
52548
+
52549
+ /** EligibilityRecordUpdated source */
52550
+ source?: (EligibilitySourceType|null);
52551
+
52552
+ /** EligibilityRecordUpdated externalId */
52553
+ externalId?: (string|null);
52536
52554
  }
52537
52555
 
52538
52556
  /** Represents an EligibilityRecordUpdated. */
@@ -52553,6 +52571,12 @@ export class EligibilityRecordUpdated implements IEligibilityRecordUpdated {
52553
52571
  /** EligibilityRecordUpdated uuid. */
52554
52572
  public uuid: string;
52555
52573
 
52574
+ /** EligibilityRecordUpdated source. */
52575
+ public source: EligibilitySourceType;
52576
+
52577
+ /** EligibilityRecordUpdated externalId. */
52578
+ public externalId: string;
52579
+
52556
52580
  /**
52557
52581
  * Creates a new EligibilityRecordUpdated instance using the specified properties.
52558
52582
  * @param [properties] Properties to set
@@ -52635,6 +52659,12 @@ export interface IEligibilityRecordRemoved {
52635
52659
 
52636
52660
  /** EligibilityRecordRemoved uuid */
52637
52661
  uuid?: (string|null);
52662
+
52663
+ /** EligibilityRecordRemoved source */
52664
+ source?: (EligibilitySourceType|null);
52665
+
52666
+ /** EligibilityRecordRemoved externalId */
52667
+ externalId?: (string|null);
52638
52668
  }
52639
52669
 
52640
52670
  /** Represents an EligibilityRecordRemoved. */
@@ -52655,6 +52685,12 @@ export class EligibilityRecordRemoved implements IEligibilityRecordRemoved {
52655
52685
  /** EligibilityRecordRemoved uuid. */
52656
52686
  public uuid: string;
52657
52687
 
52688
+ /** EligibilityRecordRemoved source. */
52689
+ public source: EligibilitySourceType;
52690
+
52691
+ /** EligibilityRecordRemoved externalId. */
52692
+ public externalId: string;
52693
+
52658
52694
  /**
52659
52695
  * Creates a new EligibilityRecordRemoved instance using the specified properties.
52660
52696
  * @param [properties] Properties to set
@@ -52962,6 +52998,15 @@ export class ChangedEnrollmentComparisonCompleted implements IChangedEnrollmentC
52962
52998
  public toJSON(): { [k: string]: any };
52963
52999
  }
52964
53000
 
53001
+ /** EligibilitySourceType enum. */
53002
+ export enum EligibilitySourceType {
53003
+ ELIGIBILITY_SOURCE_TYPE_UNKNOWN = 0,
53004
+ ELIGIBILITY_SOURCE_TYPE_ELF = 1,
53005
+ ELIGIBILITY_SOURCE_TYPE_SCIM = 2,
53006
+ ELIGIBILITY_SOURCE_TYPE_API = 3,
53007
+ ELIGIBILITY_SOURCE_TYPE_GINGER = 4
53008
+ }
53009
+
52965
53010
  /** Properties of a PartnershipMemberEnrolled. */
52966
53011
  export interface IPartnershipMemberEnrolled {
52967
53012
 
@@ -67426,102 +67471,6 @@ export enum UserServiceAppClient {
67426
67471
  USER_SERVICE_APP_CLIENT_CROCPIT = 3
67427
67472
  }
67428
67473
 
67429
- /** Properties of a VirginPulseAccountLinked. */
67430
- export interface IVirginPulseAccountLinked {
67431
-
67432
- /** VirginPulseAccountLinked timestamp */
67433
- timestamp?: (number|Long|null);
67434
-
67435
- /** VirginPulseAccountLinked userId */
67436
- userId?: (string|null);
67437
- }
67438
-
67439
- /** Represents a VirginPulseAccountLinked. */
67440
- export class VirginPulseAccountLinked implements IVirginPulseAccountLinked {
67441
-
67442
- /**
67443
- * Constructs a new VirginPulseAccountLinked.
67444
- * @param [properties] Properties to set
67445
- */
67446
- constructor(properties?: IVirginPulseAccountLinked);
67447
-
67448
- /** VirginPulseAccountLinked timestamp. */
67449
- public timestamp: (number|Long);
67450
-
67451
- /** VirginPulseAccountLinked userId. */
67452
- public userId: string;
67453
-
67454
- /**
67455
- * Creates a new VirginPulseAccountLinked instance using the specified properties.
67456
- * @param [properties] Properties to set
67457
- * @returns VirginPulseAccountLinked instance
67458
- */
67459
- public static create(properties?: IVirginPulseAccountLinked): VirginPulseAccountLinked;
67460
-
67461
- /**
67462
- * Encodes the specified VirginPulseAccountLinked message. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
67463
- * @param message VirginPulseAccountLinked message or plain object to encode
67464
- * @param [writer] Writer to encode to
67465
- * @returns Writer
67466
- */
67467
- public static encode(message: IVirginPulseAccountLinked, writer?: $protobuf.Writer): $protobuf.Writer;
67468
-
67469
- /**
67470
- * Encodes the specified VirginPulseAccountLinked message, length delimited. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
67471
- * @param message VirginPulseAccountLinked message or plain object to encode
67472
- * @param [writer] Writer to encode to
67473
- * @returns Writer
67474
- */
67475
- public static encodeDelimited(message: IVirginPulseAccountLinked, writer?: $protobuf.Writer): $protobuf.Writer;
67476
-
67477
- /**
67478
- * Decodes a VirginPulseAccountLinked message from the specified reader or buffer.
67479
- * @param reader Reader or buffer to decode from
67480
- * @param [length] Message length if known beforehand
67481
- * @returns VirginPulseAccountLinked
67482
- * @throws {Error} If the payload is not a reader or valid buffer
67483
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
67484
- */
67485
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VirginPulseAccountLinked;
67486
-
67487
- /**
67488
- * Decodes a VirginPulseAccountLinked message from the specified reader or buffer, length delimited.
67489
- * @param reader Reader or buffer to decode from
67490
- * @returns VirginPulseAccountLinked
67491
- * @throws {Error} If the payload is not a reader or valid buffer
67492
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
67493
- */
67494
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VirginPulseAccountLinked;
67495
-
67496
- /**
67497
- * Verifies a VirginPulseAccountLinked message.
67498
- * @param message Plain object to verify
67499
- * @returns `null` if valid, otherwise the reason why it is not
67500
- */
67501
- public static verify(message: { [k: string]: any }): (string|null);
67502
-
67503
- /**
67504
- * Creates a VirginPulseAccountLinked message from a plain object. Also converts values to their respective internal types.
67505
- * @param object Plain object
67506
- * @returns VirginPulseAccountLinked
67507
- */
67508
- public static fromObject(object: { [k: string]: any }): VirginPulseAccountLinked;
67509
-
67510
- /**
67511
- * Creates a plain object from a VirginPulseAccountLinked message. Also converts values to other types if specified.
67512
- * @param message VirginPulseAccountLinked
67513
- * @param [options] Conversion options
67514
- * @returns Plain object
67515
- */
67516
- public static toObject(message: VirginPulseAccountLinked, options?: $protobuf.IConversionOptions): { [k: string]: any };
67517
-
67518
- /**
67519
- * Converts this VirginPulseAccountLinked to JSON.
67520
- * @returns JSON object
67521
- */
67522
- public toJSON(): { [k: string]: any };
67523
- }
67524
-
67525
67474
  /** Properties of a CareCoachingInteractionStarted. */
67526
67475
  export interface ICareCoachingInteractionStarted {
67527
67476
 
package/lib/index.js CHANGED
@@ -145114,6 +145114,8 @@ $root.EligibilityRecordCreated = (function() {
145114
145114
  * @property {number|Long|null} [timestamp] EligibilityRecordCreated timestamp
145115
145115
  * @property {string|null} [collectiveUuid] EligibilityRecordCreated collectiveUuid
145116
145116
  * @property {string|null} [uuid] EligibilityRecordCreated uuid
145117
+ * @property {EligibilitySourceType|null} [source] EligibilityRecordCreated source
145118
+ * @property {string|null} [externalId] EligibilityRecordCreated externalId
145117
145119
  */
145118
145120
 
145119
145121
  /**
@@ -145155,6 +145157,22 @@ $root.EligibilityRecordCreated = (function() {
145155
145157
  */
145156
145158
  EligibilityRecordCreated.prototype.uuid = "";
145157
145159
 
145160
+ /**
145161
+ * EligibilityRecordCreated source.
145162
+ * @member {EligibilitySourceType} source
145163
+ * @memberof EligibilityRecordCreated
145164
+ * @instance
145165
+ */
145166
+ EligibilityRecordCreated.prototype.source = 0;
145167
+
145168
+ /**
145169
+ * EligibilityRecordCreated externalId.
145170
+ * @member {string} externalId
145171
+ * @memberof EligibilityRecordCreated
145172
+ * @instance
145173
+ */
145174
+ EligibilityRecordCreated.prototype.externalId = "";
145175
+
145158
145176
  /**
145159
145177
  * Creates a new EligibilityRecordCreated instance using the specified properties.
145160
145178
  * @function create
@@ -145185,6 +145203,10 @@ $root.EligibilityRecordCreated = (function() {
145185
145203
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
145186
145204
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145187
145205
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid);
145206
+ if (message.source != null && message.hasOwnProperty("source"))
145207
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
145208
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145209
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
145188
145210
  return writer;
145189
145211
  };
145190
145212
 
@@ -145228,6 +145250,12 @@ $root.EligibilityRecordCreated = (function() {
145228
145250
  case 3:
145229
145251
  message.uuid = reader.string();
145230
145252
  break;
145253
+ case 4:
145254
+ message.source = reader.int32();
145255
+ break;
145256
+ case 5:
145257
+ message.externalId = reader.string();
145258
+ break;
145231
145259
  default:
145232
145260
  reader.skipType(tag & 7);
145233
145261
  break;
@@ -145272,6 +145300,20 @@ $root.EligibilityRecordCreated = (function() {
145272
145300
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145273
145301
  if (!$util.isString(message.uuid))
145274
145302
  return "uuid: string expected";
145303
+ if (message.source != null && message.hasOwnProperty("source"))
145304
+ switch (message.source) {
145305
+ default:
145306
+ return "source: enum value expected";
145307
+ case 0:
145308
+ case 1:
145309
+ case 2:
145310
+ case 3:
145311
+ case 4:
145312
+ break;
145313
+ }
145314
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145315
+ if (!$util.isString(message.externalId))
145316
+ return "externalId: string expected";
145275
145317
  return null;
145276
145318
  };
145277
145319
 
@@ -145300,6 +145342,30 @@ $root.EligibilityRecordCreated = (function() {
145300
145342
  message.collectiveUuid = String(object.collectiveUuid);
145301
145343
  if (object.uuid != null)
145302
145344
  message.uuid = String(object.uuid);
145345
+ switch (object.source) {
145346
+ case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
145347
+ case 0:
145348
+ message.source = 0;
145349
+ break;
145350
+ case "ELIGIBILITY_SOURCE_TYPE_ELF":
145351
+ case 1:
145352
+ message.source = 1;
145353
+ break;
145354
+ case "ELIGIBILITY_SOURCE_TYPE_SCIM":
145355
+ case 2:
145356
+ message.source = 2;
145357
+ break;
145358
+ case "ELIGIBILITY_SOURCE_TYPE_API":
145359
+ case 3:
145360
+ message.source = 3;
145361
+ break;
145362
+ case "ELIGIBILITY_SOURCE_TYPE_GINGER":
145363
+ case 4:
145364
+ message.source = 4;
145365
+ break;
145366
+ }
145367
+ if (object.externalId != null)
145368
+ message.externalId = String(object.externalId);
145303
145369
  return message;
145304
145370
  };
145305
145371
 
@@ -145324,6 +145390,8 @@ $root.EligibilityRecordCreated = (function() {
145324
145390
  object.timestamp = options.longs === String ? "0" : 0;
145325
145391
  object.collectiveUuid = "";
145326
145392
  object.uuid = "";
145393
+ object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
145394
+ object.externalId = "";
145327
145395
  }
145328
145396
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
145329
145397
  if (typeof message.timestamp === "number")
@@ -145334,6 +145402,10 @@ $root.EligibilityRecordCreated = (function() {
145334
145402
  object.collectiveUuid = message.collectiveUuid;
145335
145403
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145336
145404
  object.uuid = message.uuid;
145405
+ if (message.source != null && message.hasOwnProperty("source"))
145406
+ object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
145407
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145408
+ object.externalId = message.externalId;
145337
145409
  return object;
145338
145410
  };
145339
145411
 
@@ -145360,6 +145432,8 @@ $root.EligibilityRecordUpdated = (function() {
145360
145432
  * @property {number|Long|null} [timestamp] EligibilityRecordUpdated timestamp
145361
145433
  * @property {string|null} [collectiveUuid] EligibilityRecordUpdated collectiveUuid
145362
145434
  * @property {string|null} [uuid] EligibilityRecordUpdated uuid
145435
+ * @property {EligibilitySourceType|null} [source] EligibilityRecordUpdated source
145436
+ * @property {string|null} [externalId] EligibilityRecordUpdated externalId
145363
145437
  */
145364
145438
 
145365
145439
  /**
@@ -145401,6 +145475,22 @@ $root.EligibilityRecordUpdated = (function() {
145401
145475
  */
145402
145476
  EligibilityRecordUpdated.prototype.uuid = "";
145403
145477
 
145478
+ /**
145479
+ * EligibilityRecordUpdated source.
145480
+ * @member {EligibilitySourceType} source
145481
+ * @memberof EligibilityRecordUpdated
145482
+ * @instance
145483
+ */
145484
+ EligibilityRecordUpdated.prototype.source = 0;
145485
+
145486
+ /**
145487
+ * EligibilityRecordUpdated externalId.
145488
+ * @member {string} externalId
145489
+ * @memberof EligibilityRecordUpdated
145490
+ * @instance
145491
+ */
145492
+ EligibilityRecordUpdated.prototype.externalId = "";
145493
+
145404
145494
  /**
145405
145495
  * Creates a new EligibilityRecordUpdated instance using the specified properties.
145406
145496
  * @function create
@@ -145431,6 +145521,10 @@ $root.EligibilityRecordUpdated = (function() {
145431
145521
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
145432
145522
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145433
145523
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid);
145524
+ if (message.source != null && message.hasOwnProperty("source"))
145525
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
145526
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145527
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
145434
145528
  return writer;
145435
145529
  };
145436
145530
 
@@ -145474,6 +145568,12 @@ $root.EligibilityRecordUpdated = (function() {
145474
145568
  case 3:
145475
145569
  message.uuid = reader.string();
145476
145570
  break;
145571
+ case 4:
145572
+ message.source = reader.int32();
145573
+ break;
145574
+ case 5:
145575
+ message.externalId = reader.string();
145576
+ break;
145477
145577
  default:
145478
145578
  reader.skipType(tag & 7);
145479
145579
  break;
@@ -145518,6 +145618,20 @@ $root.EligibilityRecordUpdated = (function() {
145518
145618
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145519
145619
  if (!$util.isString(message.uuid))
145520
145620
  return "uuid: string expected";
145621
+ if (message.source != null && message.hasOwnProperty("source"))
145622
+ switch (message.source) {
145623
+ default:
145624
+ return "source: enum value expected";
145625
+ case 0:
145626
+ case 1:
145627
+ case 2:
145628
+ case 3:
145629
+ case 4:
145630
+ break;
145631
+ }
145632
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145633
+ if (!$util.isString(message.externalId))
145634
+ return "externalId: string expected";
145521
145635
  return null;
145522
145636
  };
145523
145637
 
@@ -145546,6 +145660,30 @@ $root.EligibilityRecordUpdated = (function() {
145546
145660
  message.collectiveUuid = String(object.collectiveUuid);
145547
145661
  if (object.uuid != null)
145548
145662
  message.uuid = String(object.uuid);
145663
+ switch (object.source) {
145664
+ case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
145665
+ case 0:
145666
+ message.source = 0;
145667
+ break;
145668
+ case "ELIGIBILITY_SOURCE_TYPE_ELF":
145669
+ case 1:
145670
+ message.source = 1;
145671
+ break;
145672
+ case "ELIGIBILITY_SOURCE_TYPE_SCIM":
145673
+ case 2:
145674
+ message.source = 2;
145675
+ break;
145676
+ case "ELIGIBILITY_SOURCE_TYPE_API":
145677
+ case 3:
145678
+ message.source = 3;
145679
+ break;
145680
+ case "ELIGIBILITY_SOURCE_TYPE_GINGER":
145681
+ case 4:
145682
+ message.source = 4;
145683
+ break;
145684
+ }
145685
+ if (object.externalId != null)
145686
+ message.externalId = String(object.externalId);
145549
145687
  return message;
145550
145688
  };
145551
145689
 
@@ -145570,6 +145708,8 @@ $root.EligibilityRecordUpdated = (function() {
145570
145708
  object.timestamp = options.longs === String ? "0" : 0;
145571
145709
  object.collectiveUuid = "";
145572
145710
  object.uuid = "";
145711
+ object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
145712
+ object.externalId = "";
145573
145713
  }
145574
145714
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
145575
145715
  if (typeof message.timestamp === "number")
@@ -145580,6 +145720,10 @@ $root.EligibilityRecordUpdated = (function() {
145580
145720
  object.collectiveUuid = message.collectiveUuid;
145581
145721
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145582
145722
  object.uuid = message.uuid;
145723
+ if (message.source != null && message.hasOwnProperty("source"))
145724
+ object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
145725
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145726
+ object.externalId = message.externalId;
145583
145727
  return object;
145584
145728
  };
145585
145729
 
@@ -145606,6 +145750,8 @@ $root.EligibilityRecordRemoved = (function() {
145606
145750
  * @property {number|Long|null} [timestamp] EligibilityRecordRemoved timestamp
145607
145751
  * @property {string|null} [collectiveUuid] EligibilityRecordRemoved collectiveUuid
145608
145752
  * @property {string|null} [uuid] EligibilityRecordRemoved uuid
145753
+ * @property {EligibilitySourceType|null} [source] EligibilityRecordRemoved source
145754
+ * @property {string|null} [externalId] EligibilityRecordRemoved externalId
145609
145755
  */
145610
145756
 
145611
145757
  /**
@@ -145647,6 +145793,22 @@ $root.EligibilityRecordRemoved = (function() {
145647
145793
  */
145648
145794
  EligibilityRecordRemoved.prototype.uuid = "";
145649
145795
 
145796
+ /**
145797
+ * EligibilityRecordRemoved source.
145798
+ * @member {EligibilitySourceType} source
145799
+ * @memberof EligibilityRecordRemoved
145800
+ * @instance
145801
+ */
145802
+ EligibilityRecordRemoved.prototype.source = 0;
145803
+
145804
+ /**
145805
+ * EligibilityRecordRemoved externalId.
145806
+ * @member {string} externalId
145807
+ * @memberof EligibilityRecordRemoved
145808
+ * @instance
145809
+ */
145810
+ EligibilityRecordRemoved.prototype.externalId = "";
145811
+
145650
145812
  /**
145651
145813
  * Creates a new EligibilityRecordRemoved instance using the specified properties.
145652
145814
  * @function create
@@ -145677,6 +145839,10 @@ $root.EligibilityRecordRemoved = (function() {
145677
145839
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
145678
145840
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145679
145841
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid);
145842
+ if (message.source != null && message.hasOwnProperty("source"))
145843
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
145844
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145845
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
145680
145846
  return writer;
145681
145847
  };
145682
145848
 
@@ -145720,6 +145886,12 @@ $root.EligibilityRecordRemoved = (function() {
145720
145886
  case 3:
145721
145887
  message.uuid = reader.string();
145722
145888
  break;
145889
+ case 4:
145890
+ message.source = reader.int32();
145891
+ break;
145892
+ case 5:
145893
+ message.externalId = reader.string();
145894
+ break;
145723
145895
  default:
145724
145896
  reader.skipType(tag & 7);
145725
145897
  break;
@@ -145764,6 +145936,20 @@ $root.EligibilityRecordRemoved = (function() {
145764
145936
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145765
145937
  if (!$util.isString(message.uuid))
145766
145938
  return "uuid: string expected";
145939
+ if (message.source != null && message.hasOwnProperty("source"))
145940
+ switch (message.source) {
145941
+ default:
145942
+ return "source: enum value expected";
145943
+ case 0:
145944
+ case 1:
145945
+ case 2:
145946
+ case 3:
145947
+ case 4:
145948
+ break;
145949
+ }
145950
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
145951
+ if (!$util.isString(message.externalId))
145952
+ return "externalId: string expected";
145767
145953
  return null;
145768
145954
  };
145769
145955
 
@@ -145792,6 +145978,30 @@ $root.EligibilityRecordRemoved = (function() {
145792
145978
  message.collectiveUuid = String(object.collectiveUuid);
145793
145979
  if (object.uuid != null)
145794
145980
  message.uuid = String(object.uuid);
145981
+ switch (object.source) {
145982
+ case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
145983
+ case 0:
145984
+ message.source = 0;
145985
+ break;
145986
+ case "ELIGIBILITY_SOURCE_TYPE_ELF":
145987
+ case 1:
145988
+ message.source = 1;
145989
+ break;
145990
+ case "ELIGIBILITY_SOURCE_TYPE_SCIM":
145991
+ case 2:
145992
+ message.source = 2;
145993
+ break;
145994
+ case "ELIGIBILITY_SOURCE_TYPE_API":
145995
+ case 3:
145996
+ message.source = 3;
145997
+ break;
145998
+ case "ELIGIBILITY_SOURCE_TYPE_GINGER":
145999
+ case 4:
146000
+ message.source = 4;
146001
+ break;
146002
+ }
146003
+ if (object.externalId != null)
146004
+ message.externalId = String(object.externalId);
145795
146005
  return message;
145796
146006
  };
145797
146007
 
@@ -145816,6 +146026,8 @@ $root.EligibilityRecordRemoved = (function() {
145816
146026
  object.timestamp = options.longs === String ? "0" : 0;
145817
146027
  object.collectiveUuid = "";
145818
146028
  object.uuid = "";
146029
+ object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
146030
+ object.externalId = "";
145819
146031
  }
145820
146032
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
145821
146033
  if (typeof message.timestamp === "number")
@@ -145826,6 +146038,10 @@ $root.EligibilityRecordRemoved = (function() {
145826
146038
  object.collectiveUuid = message.collectiveUuid;
145827
146039
  if (message.uuid != null && message.hasOwnProperty("uuid"))
145828
146040
  object.uuid = message.uuid;
146041
+ if (message.source != null && message.hasOwnProperty("source"))
146042
+ object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
146043
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
146044
+ object.externalId = message.externalId;
145829
146045
  return object;
145830
146046
  };
145831
146047
 
@@ -146464,6 +146680,26 @@ $root.ChangedEnrollmentComparisonCompleted = (function() {
146464
146680
  return ChangedEnrollmentComparisonCompleted;
146465
146681
  })();
146466
146682
 
146683
+ /**
146684
+ * EligibilitySourceType enum.
146685
+ * @name EligibilitySourceType
146686
+ * @enum {string}
146687
+ * @property {number} ELIGIBILITY_SOURCE_TYPE_UNKNOWN=0 ELIGIBILITY_SOURCE_TYPE_UNKNOWN value
146688
+ * @property {number} ELIGIBILITY_SOURCE_TYPE_ELF=1 ELIGIBILITY_SOURCE_TYPE_ELF value
146689
+ * @property {number} ELIGIBILITY_SOURCE_TYPE_SCIM=2 ELIGIBILITY_SOURCE_TYPE_SCIM value
146690
+ * @property {number} ELIGIBILITY_SOURCE_TYPE_API=3 ELIGIBILITY_SOURCE_TYPE_API value
146691
+ * @property {number} ELIGIBILITY_SOURCE_TYPE_GINGER=4 ELIGIBILITY_SOURCE_TYPE_GINGER value
146692
+ */
146693
+ $root.EligibilitySourceType = (function() {
146694
+ var valuesById = {}, values = Object.create(valuesById);
146695
+ values[valuesById[0] = "ELIGIBILITY_SOURCE_TYPE_UNKNOWN"] = 0;
146696
+ values[valuesById[1] = "ELIGIBILITY_SOURCE_TYPE_ELF"] = 1;
146697
+ values[valuesById[2] = "ELIGIBILITY_SOURCE_TYPE_SCIM"] = 2;
146698
+ values[valuesById[3] = "ELIGIBILITY_SOURCE_TYPE_API"] = 3;
146699
+ values[valuesById[4] = "ELIGIBILITY_SOURCE_TYPE_GINGER"] = 4;
146700
+ return values;
146701
+ })();
146702
+
146467
146703
  $root.PartnershipMemberEnrolled = (function() {
146468
146704
 
146469
146705
  /**
@@ -189851,230 +190087,6 @@ $root.UserServiceAppClient = (function() {
189851
190087
  return values;
189852
190088
  })();
189853
190089
 
189854
- $root.VirginPulseAccountLinked = (function() {
189855
-
189856
- /**
189857
- * Properties of a VirginPulseAccountLinked.
189858
- * @name IVirginPulseAccountLinked
189859
- * @interface IVirginPulseAccountLinked
189860
- * @property {number|Long|null} [timestamp] VirginPulseAccountLinked timestamp
189861
- * @property {string|null} [userId] VirginPulseAccountLinked userId
189862
- */
189863
-
189864
- /**
189865
- * Constructs a new VirginPulseAccountLinked.
189866
- * @name VirginPulseAccountLinked
189867
- * @classdesc Represents a VirginPulseAccountLinked.
189868
- * @implements IVirginPulseAccountLinked
189869
- * @constructor
189870
- * @param {IVirginPulseAccountLinked=} [properties] Properties to set
189871
- */
189872
- function VirginPulseAccountLinked(properties) {
189873
- if (properties)
189874
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
189875
- if (properties[keys[i]] != null)
189876
- this[keys[i]] = properties[keys[i]];
189877
- }
189878
-
189879
- /**
189880
- * VirginPulseAccountLinked timestamp.
189881
- * @member {number|Long} timestamp
189882
- * @memberof VirginPulseAccountLinked
189883
- * @instance
189884
- */
189885
- VirginPulseAccountLinked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
189886
-
189887
- /**
189888
- * VirginPulseAccountLinked userId.
189889
- * @member {string} userId
189890
- * @memberof VirginPulseAccountLinked
189891
- * @instance
189892
- */
189893
- VirginPulseAccountLinked.prototype.userId = "";
189894
-
189895
- /**
189896
- * Creates a new VirginPulseAccountLinked instance using the specified properties.
189897
- * @function create
189898
- * @memberof VirginPulseAccountLinked
189899
- * @static
189900
- * @param {IVirginPulseAccountLinked=} [properties] Properties to set
189901
- * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked instance
189902
- */
189903
- VirginPulseAccountLinked.create = function create(properties) {
189904
- return new VirginPulseAccountLinked(properties);
189905
- };
189906
-
189907
- /**
189908
- * Encodes the specified VirginPulseAccountLinked message. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
189909
- * @function encode
189910
- * @memberof VirginPulseAccountLinked
189911
- * @static
189912
- * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
189913
- * @param {$protobuf.Writer} [writer] Writer to encode to
189914
- * @returns {$protobuf.Writer} Writer
189915
- */
189916
- VirginPulseAccountLinked.encode = function encode(message, writer) {
189917
- if (!writer)
189918
- writer = $Writer.create();
189919
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
189920
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
189921
- if (message.userId != null && message.hasOwnProperty("userId"))
189922
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
189923
- return writer;
189924
- };
189925
-
189926
- /**
189927
- * Encodes the specified VirginPulseAccountLinked message, length delimited. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
189928
- * @function encodeDelimited
189929
- * @memberof VirginPulseAccountLinked
189930
- * @static
189931
- * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
189932
- * @param {$protobuf.Writer} [writer] Writer to encode to
189933
- * @returns {$protobuf.Writer} Writer
189934
- */
189935
- VirginPulseAccountLinked.encodeDelimited = function encodeDelimited(message, writer) {
189936
- return this.encode(message, writer).ldelim();
189937
- };
189938
-
189939
- /**
189940
- * Decodes a VirginPulseAccountLinked message from the specified reader or buffer.
189941
- * @function decode
189942
- * @memberof VirginPulseAccountLinked
189943
- * @static
189944
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
189945
- * @param {number} [length] Message length if known beforehand
189946
- * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
189947
- * @throws {Error} If the payload is not a reader or valid buffer
189948
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
189949
- */
189950
- VirginPulseAccountLinked.decode = function decode(reader, length) {
189951
- if (!(reader instanceof $Reader))
189952
- reader = $Reader.create(reader);
189953
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VirginPulseAccountLinked();
189954
- while (reader.pos < end) {
189955
- var tag = reader.uint32();
189956
- switch (tag >>> 3) {
189957
- case 1:
189958
- message.timestamp = reader.uint64();
189959
- break;
189960
- case 2:
189961
- message.userId = reader.string();
189962
- break;
189963
- default:
189964
- reader.skipType(tag & 7);
189965
- break;
189966
- }
189967
- }
189968
- return message;
189969
- };
189970
-
189971
- /**
189972
- * Decodes a VirginPulseAccountLinked message from the specified reader or buffer, length delimited.
189973
- * @function decodeDelimited
189974
- * @memberof VirginPulseAccountLinked
189975
- * @static
189976
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
189977
- * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
189978
- * @throws {Error} If the payload is not a reader or valid buffer
189979
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
189980
- */
189981
- VirginPulseAccountLinked.decodeDelimited = function decodeDelimited(reader) {
189982
- if (!(reader instanceof $Reader))
189983
- reader = new $Reader(reader);
189984
- return this.decode(reader, reader.uint32());
189985
- };
189986
-
189987
- /**
189988
- * Verifies a VirginPulseAccountLinked message.
189989
- * @function verify
189990
- * @memberof VirginPulseAccountLinked
189991
- * @static
189992
- * @param {Object.<string,*>} message Plain object to verify
189993
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
189994
- */
189995
- VirginPulseAccountLinked.verify = function verify(message) {
189996
- if (typeof message !== "object" || message === null)
189997
- return "object expected";
189998
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
189999
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
190000
- return "timestamp: integer|Long expected";
190001
- if (message.userId != null && message.hasOwnProperty("userId"))
190002
- if (!$util.isString(message.userId))
190003
- return "userId: string expected";
190004
- return null;
190005
- };
190006
-
190007
- /**
190008
- * Creates a VirginPulseAccountLinked message from a plain object. Also converts values to their respective internal types.
190009
- * @function fromObject
190010
- * @memberof VirginPulseAccountLinked
190011
- * @static
190012
- * @param {Object.<string,*>} object Plain object
190013
- * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
190014
- */
190015
- VirginPulseAccountLinked.fromObject = function fromObject(object) {
190016
- if (object instanceof $root.VirginPulseAccountLinked)
190017
- return object;
190018
- var message = new $root.VirginPulseAccountLinked();
190019
- if (object.timestamp != null)
190020
- if ($util.Long)
190021
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
190022
- else if (typeof object.timestamp === "string")
190023
- message.timestamp = parseInt(object.timestamp, 10);
190024
- else if (typeof object.timestamp === "number")
190025
- message.timestamp = object.timestamp;
190026
- else if (typeof object.timestamp === "object")
190027
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
190028
- if (object.userId != null)
190029
- message.userId = String(object.userId);
190030
- return message;
190031
- };
190032
-
190033
- /**
190034
- * Creates a plain object from a VirginPulseAccountLinked message. Also converts values to other types if specified.
190035
- * @function toObject
190036
- * @memberof VirginPulseAccountLinked
190037
- * @static
190038
- * @param {VirginPulseAccountLinked} message VirginPulseAccountLinked
190039
- * @param {$protobuf.IConversionOptions} [options] Conversion options
190040
- * @returns {Object.<string,*>} Plain object
190041
- */
190042
- VirginPulseAccountLinked.toObject = function toObject(message, options) {
190043
- if (!options)
190044
- options = {};
190045
- var object = {};
190046
- if (options.defaults) {
190047
- if ($util.Long) {
190048
- var long = new $util.Long(0, 0, true);
190049
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
190050
- } else
190051
- object.timestamp = options.longs === String ? "0" : 0;
190052
- object.userId = "";
190053
- }
190054
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
190055
- if (typeof message.timestamp === "number")
190056
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
190057
- else
190058
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
190059
- if (message.userId != null && message.hasOwnProperty("userId"))
190060
- object.userId = message.userId;
190061
- return object;
190062
- };
190063
-
190064
- /**
190065
- * Converts this VirginPulseAccountLinked to JSON.
190066
- * @function toJSON
190067
- * @memberof VirginPulseAccountLinked
190068
- * @instance
190069
- * @returns {Object.<string,*>} JSON object
190070
- */
190071
- VirginPulseAccountLinked.prototype.toJSON = function toJSON() {
190072
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
190073
- };
190074
-
190075
- return VirginPulseAccountLinked;
190076
- })();
190077
-
190078
190090
  $root.CareCoachingInteractionStarted = (function() {
190079
190091
 
190080
190092
  /**
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.644.0"
19
+ "version": "1.646.0"
20
20
  }