@headspace/protos-events 1.662.0 → 1.663.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 +193 -48
  2. package/lib/index.js +636 -261
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -145393,9 +145393,7 @@ $root.EligibilityRecordCreated = (function() {
145393
145393
  * @interface IEligibilityRecordCreated
145394
145394
  * @property {number|Long|null} [timestamp] EligibilityRecordCreated timestamp
145395
145395
  * @property {string|null} [collectiveUuid] EligibilityRecordCreated collectiveUuid
145396
- * @property {string|null} [uuid] EligibilityRecordCreated uuid
145397
- * @property {EligibilitySourceType|null} [source] EligibilityRecordCreated source
145398
- * @property {string|null} [externalId] EligibilityRecordCreated externalId
145396
+ * @property {IEligibilityRecord|null} [elgibilityRecord] EligibilityRecordCreated elgibilityRecord
145399
145397
  */
145400
145398
 
145401
145399
  /**
@@ -145430,28 +145428,12 @@ $root.EligibilityRecordCreated = (function() {
145430
145428
  EligibilityRecordCreated.prototype.collectiveUuid = "";
145431
145429
 
145432
145430
  /**
145433
- * EligibilityRecordCreated uuid.
145434
- * @member {string} uuid
145435
- * @memberof EligibilityRecordCreated
145436
- * @instance
145437
- */
145438
- EligibilityRecordCreated.prototype.uuid = "";
145439
-
145440
- /**
145441
- * EligibilityRecordCreated source.
145442
- * @member {EligibilitySourceType} source
145443
- * @memberof EligibilityRecordCreated
145444
- * @instance
145445
- */
145446
- EligibilityRecordCreated.prototype.source = 0;
145447
-
145448
- /**
145449
- * EligibilityRecordCreated externalId.
145450
- * @member {string} externalId
145431
+ * EligibilityRecordCreated elgibilityRecord.
145432
+ * @member {IEligibilityRecord|null|undefined} elgibilityRecord
145451
145433
  * @memberof EligibilityRecordCreated
145452
145434
  * @instance
145453
145435
  */
145454
- EligibilityRecordCreated.prototype.externalId = "";
145436
+ EligibilityRecordCreated.prototype.elgibilityRecord = null;
145455
145437
 
145456
145438
  /**
145457
145439
  * Creates a new EligibilityRecordCreated instance using the specified properties.
@@ -145481,12 +145463,8 @@ $root.EligibilityRecordCreated = (function() {
145481
145463
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
145482
145464
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
145483
145465
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
145484
- if (message.uuid != null && message.hasOwnProperty("uuid"))
145485
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid);
145486
- if (message.source != null && message.hasOwnProperty("source"))
145487
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
145488
- if (message.externalId != null && message.hasOwnProperty("externalId"))
145489
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
145466
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
145467
+ $root.EligibilityRecord.encode(message.elgibilityRecord, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
145490
145468
  return writer;
145491
145469
  };
145492
145470
 
@@ -145527,14 +145505,8 @@ $root.EligibilityRecordCreated = (function() {
145527
145505
  case 2:
145528
145506
  message.collectiveUuid = reader.string();
145529
145507
  break;
145530
- case 3:
145531
- message.uuid = reader.string();
145532
- break;
145533
- case 4:
145534
- message.source = reader.int32();
145535
- break;
145536
- case 5:
145537
- message.externalId = reader.string();
145508
+ case 6:
145509
+ message.elgibilityRecord = $root.EligibilityRecord.decode(reader, reader.uint32());
145538
145510
  break;
145539
145511
  default:
145540
145512
  reader.skipType(tag & 7);
@@ -145577,23 +145549,11 @@ $root.EligibilityRecordCreated = (function() {
145577
145549
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
145578
145550
  if (!$util.isString(message.collectiveUuid))
145579
145551
  return "collectiveUuid: string expected";
145580
- if (message.uuid != null && message.hasOwnProperty("uuid"))
145581
- if (!$util.isString(message.uuid))
145582
- return "uuid: string expected";
145583
- if (message.source != null && message.hasOwnProperty("source"))
145584
- switch (message.source) {
145585
- default:
145586
- return "source: enum value expected";
145587
- case 0:
145588
- case 1:
145589
- case 2:
145590
- case 3:
145591
- case 4:
145592
- break;
145593
- }
145594
- if (message.externalId != null && message.hasOwnProperty("externalId"))
145595
- if (!$util.isString(message.externalId))
145596
- return "externalId: string expected";
145552
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord")) {
145553
+ var error = $root.EligibilityRecord.verify(message.elgibilityRecord);
145554
+ if (error)
145555
+ return "elgibilityRecord." + error;
145556
+ }
145597
145557
  return null;
145598
145558
  };
145599
145559
 
@@ -145620,32 +145580,11 @@ $root.EligibilityRecordCreated = (function() {
145620
145580
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
145621
145581
  if (object.collectiveUuid != null)
145622
145582
  message.collectiveUuid = String(object.collectiveUuid);
145623
- if (object.uuid != null)
145624
- message.uuid = String(object.uuid);
145625
- switch (object.source) {
145626
- case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
145627
- case 0:
145628
- message.source = 0;
145629
- break;
145630
- case "ELIGIBILITY_SOURCE_TYPE_ELF":
145631
- case 1:
145632
- message.source = 1;
145633
- break;
145634
- case "ELIGIBILITY_SOURCE_TYPE_SCIM":
145635
- case 2:
145636
- message.source = 2;
145637
- break;
145638
- case "ELIGIBILITY_SOURCE_TYPE_API":
145639
- case 3:
145640
- message.source = 3;
145641
- break;
145642
- case "ELIGIBILITY_SOURCE_TYPE_GINGER":
145643
- case 4:
145644
- message.source = 4;
145645
- break;
145583
+ if (object.elgibilityRecord != null) {
145584
+ if (typeof object.elgibilityRecord !== "object")
145585
+ throw TypeError(".EligibilityRecordCreated.elgibilityRecord: object expected");
145586
+ message.elgibilityRecord = $root.EligibilityRecord.fromObject(object.elgibilityRecord);
145646
145587
  }
145647
- if (object.externalId != null)
145648
- message.externalId = String(object.externalId);
145649
145588
  return message;
145650
145589
  };
145651
145590
 
@@ -145669,9 +145608,7 @@ $root.EligibilityRecordCreated = (function() {
145669
145608
  } else
145670
145609
  object.timestamp = options.longs === String ? "0" : 0;
145671
145610
  object.collectiveUuid = "";
145672
- object.uuid = "";
145673
- object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
145674
- object.externalId = "";
145611
+ object.elgibilityRecord = null;
145675
145612
  }
145676
145613
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
145677
145614
  if (typeof message.timestamp === "number")
@@ -145680,12 +145617,8 @@ $root.EligibilityRecordCreated = (function() {
145680
145617
  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;
145681
145618
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
145682
145619
  object.collectiveUuid = message.collectiveUuid;
145683
- if (message.uuid != null && message.hasOwnProperty("uuid"))
145684
- object.uuid = message.uuid;
145685
- if (message.source != null && message.hasOwnProperty("source"))
145686
- object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
145687
- if (message.externalId != null && message.hasOwnProperty("externalId"))
145688
- object.externalId = message.externalId;
145620
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
145621
+ object.elgibilityRecord = $root.EligibilityRecord.toObject(message.elgibilityRecord, options);
145689
145622
  return object;
145690
145623
  };
145691
145624
 
@@ -145711,9 +145644,7 @@ $root.EligibilityRecordUpdated = (function() {
145711
145644
  * @interface IEligibilityRecordUpdated
145712
145645
  * @property {number|Long|null} [timestamp] EligibilityRecordUpdated timestamp
145713
145646
  * @property {string|null} [collectiveUuid] EligibilityRecordUpdated collectiveUuid
145714
- * @property {string|null} [uuid] EligibilityRecordUpdated uuid
145715
- * @property {EligibilitySourceType|null} [source] EligibilityRecordUpdated source
145716
- * @property {string|null} [externalId] EligibilityRecordUpdated externalId
145647
+ * @property {IEligibilityRecord|null} [elgibilityRecord] EligibilityRecordUpdated elgibilityRecord
145717
145648
  */
145718
145649
 
145719
145650
  /**
@@ -145748,28 +145679,12 @@ $root.EligibilityRecordUpdated = (function() {
145748
145679
  EligibilityRecordUpdated.prototype.collectiveUuid = "";
145749
145680
 
145750
145681
  /**
145751
- * EligibilityRecordUpdated uuid.
145752
- * @member {string} uuid
145753
- * @memberof EligibilityRecordUpdated
145754
- * @instance
145755
- */
145756
- EligibilityRecordUpdated.prototype.uuid = "";
145757
-
145758
- /**
145759
- * EligibilityRecordUpdated source.
145760
- * @member {EligibilitySourceType} source
145761
- * @memberof EligibilityRecordUpdated
145762
- * @instance
145763
- */
145764
- EligibilityRecordUpdated.prototype.source = 0;
145765
-
145766
- /**
145767
- * EligibilityRecordUpdated externalId.
145768
- * @member {string} externalId
145682
+ * EligibilityRecordUpdated elgibilityRecord.
145683
+ * @member {IEligibilityRecord|null|undefined} elgibilityRecord
145769
145684
  * @memberof EligibilityRecordUpdated
145770
145685
  * @instance
145771
145686
  */
145772
- EligibilityRecordUpdated.prototype.externalId = "";
145687
+ EligibilityRecordUpdated.prototype.elgibilityRecord = null;
145773
145688
 
145774
145689
  /**
145775
145690
  * Creates a new EligibilityRecordUpdated instance using the specified properties.
@@ -145799,12 +145714,8 @@ $root.EligibilityRecordUpdated = (function() {
145799
145714
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
145800
145715
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
145801
145716
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
145802
- if (message.uuid != null && message.hasOwnProperty("uuid"))
145803
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid);
145804
- if (message.source != null && message.hasOwnProperty("source"))
145805
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
145806
- if (message.externalId != null && message.hasOwnProperty("externalId"))
145807
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
145717
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
145718
+ $root.EligibilityRecord.encode(message.elgibilityRecord, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
145808
145719
  return writer;
145809
145720
  };
145810
145721
 
@@ -145845,14 +145756,8 @@ $root.EligibilityRecordUpdated = (function() {
145845
145756
  case 2:
145846
145757
  message.collectiveUuid = reader.string();
145847
145758
  break;
145848
- case 3:
145849
- message.uuid = reader.string();
145850
- break;
145851
- case 4:
145852
- message.source = reader.int32();
145853
- break;
145854
- case 5:
145855
- message.externalId = reader.string();
145759
+ case 6:
145760
+ message.elgibilityRecord = $root.EligibilityRecord.decode(reader, reader.uint32());
145856
145761
  break;
145857
145762
  default:
145858
145763
  reader.skipType(tag & 7);
@@ -145895,23 +145800,11 @@ $root.EligibilityRecordUpdated = (function() {
145895
145800
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
145896
145801
  if (!$util.isString(message.collectiveUuid))
145897
145802
  return "collectiveUuid: string expected";
145898
- if (message.uuid != null && message.hasOwnProperty("uuid"))
145899
- if (!$util.isString(message.uuid))
145900
- return "uuid: string expected";
145901
- if (message.source != null && message.hasOwnProperty("source"))
145902
- switch (message.source) {
145903
- default:
145904
- return "source: enum value expected";
145905
- case 0:
145906
- case 1:
145907
- case 2:
145908
- case 3:
145909
- case 4:
145910
- break;
145911
- }
145912
- if (message.externalId != null && message.hasOwnProperty("externalId"))
145913
- if (!$util.isString(message.externalId))
145914
- return "externalId: string expected";
145803
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord")) {
145804
+ var error = $root.EligibilityRecord.verify(message.elgibilityRecord);
145805
+ if (error)
145806
+ return "elgibilityRecord." + error;
145807
+ }
145915
145808
  return null;
145916
145809
  };
145917
145810
 
@@ -145938,32 +145831,11 @@ $root.EligibilityRecordUpdated = (function() {
145938
145831
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
145939
145832
  if (object.collectiveUuid != null)
145940
145833
  message.collectiveUuid = String(object.collectiveUuid);
145941
- if (object.uuid != null)
145942
- message.uuid = String(object.uuid);
145943
- switch (object.source) {
145944
- case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
145945
- case 0:
145946
- message.source = 0;
145947
- break;
145948
- case "ELIGIBILITY_SOURCE_TYPE_ELF":
145949
- case 1:
145950
- message.source = 1;
145951
- break;
145952
- case "ELIGIBILITY_SOURCE_TYPE_SCIM":
145953
- case 2:
145954
- message.source = 2;
145955
- break;
145956
- case "ELIGIBILITY_SOURCE_TYPE_API":
145957
- case 3:
145958
- message.source = 3;
145959
- break;
145960
- case "ELIGIBILITY_SOURCE_TYPE_GINGER":
145961
- case 4:
145962
- message.source = 4;
145963
- break;
145834
+ if (object.elgibilityRecord != null) {
145835
+ if (typeof object.elgibilityRecord !== "object")
145836
+ throw TypeError(".EligibilityRecordUpdated.elgibilityRecord: object expected");
145837
+ message.elgibilityRecord = $root.EligibilityRecord.fromObject(object.elgibilityRecord);
145964
145838
  }
145965
- if (object.externalId != null)
145966
- message.externalId = String(object.externalId);
145967
145839
  return message;
145968
145840
  };
145969
145841
 
@@ -145987,9 +145859,7 @@ $root.EligibilityRecordUpdated = (function() {
145987
145859
  } else
145988
145860
  object.timestamp = options.longs === String ? "0" : 0;
145989
145861
  object.collectiveUuid = "";
145990
- object.uuid = "";
145991
- object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
145992
- object.externalId = "";
145862
+ object.elgibilityRecord = null;
145993
145863
  }
145994
145864
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
145995
145865
  if (typeof message.timestamp === "number")
@@ -145998,12 +145868,8 @@ $root.EligibilityRecordUpdated = (function() {
145998
145868
  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;
145999
145869
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
146000
145870
  object.collectiveUuid = message.collectiveUuid;
146001
- if (message.uuid != null && message.hasOwnProperty("uuid"))
146002
- object.uuid = message.uuid;
146003
- if (message.source != null && message.hasOwnProperty("source"))
146004
- object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
146005
- if (message.externalId != null && message.hasOwnProperty("externalId"))
146006
- object.externalId = message.externalId;
145871
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
145872
+ object.elgibilityRecord = $root.EligibilityRecord.toObject(message.elgibilityRecord, options);
146007
145873
  return object;
146008
145874
  };
146009
145875
 
@@ -146029,9 +145895,7 @@ $root.EligibilityRecordRemoved = (function() {
146029
145895
  * @interface IEligibilityRecordRemoved
146030
145896
  * @property {number|Long|null} [timestamp] EligibilityRecordRemoved timestamp
146031
145897
  * @property {string|null} [collectiveUuid] EligibilityRecordRemoved collectiveUuid
146032
- * @property {string|null} [uuid] EligibilityRecordRemoved uuid
146033
- * @property {EligibilitySourceType|null} [source] EligibilityRecordRemoved source
146034
- * @property {string|null} [externalId] EligibilityRecordRemoved externalId
145898
+ * @property {IEligibilityRecord|null} [elgibilityRecord] EligibilityRecordRemoved elgibilityRecord
146035
145899
  */
146036
145900
 
146037
145901
  /**
@@ -146066,28 +145930,12 @@ $root.EligibilityRecordRemoved = (function() {
146066
145930
  EligibilityRecordRemoved.prototype.collectiveUuid = "";
146067
145931
 
146068
145932
  /**
146069
- * EligibilityRecordRemoved uuid.
146070
- * @member {string} uuid
146071
- * @memberof EligibilityRecordRemoved
146072
- * @instance
146073
- */
146074
- EligibilityRecordRemoved.prototype.uuid = "";
146075
-
146076
- /**
146077
- * EligibilityRecordRemoved source.
146078
- * @member {EligibilitySourceType} source
146079
- * @memberof EligibilityRecordRemoved
146080
- * @instance
146081
- */
146082
- EligibilityRecordRemoved.prototype.source = 0;
146083
-
146084
- /**
146085
- * EligibilityRecordRemoved externalId.
146086
- * @member {string} externalId
145933
+ * EligibilityRecordRemoved elgibilityRecord.
145934
+ * @member {IEligibilityRecord|null|undefined} elgibilityRecord
146087
145935
  * @memberof EligibilityRecordRemoved
146088
145936
  * @instance
146089
145937
  */
146090
- EligibilityRecordRemoved.prototype.externalId = "";
145938
+ EligibilityRecordRemoved.prototype.elgibilityRecord = null;
146091
145939
 
146092
145940
  /**
146093
145941
  * Creates a new EligibilityRecordRemoved instance using the specified properties.
@@ -146117,12 +145965,8 @@ $root.EligibilityRecordRemoved = (function() {
146117
145965
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
146118
145966
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
146119
145967
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
146120
- if (message.uuid != null && message.hasOwnProperty("uuid"))
146121
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid);
146122
- if (message.source != null && message.hasOwnProperty("source"))
146123
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
146124
- if (message.externalId != null && message.hasOwnProperty("externalId"))
146125
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
145968
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
145969
+ $root.EligibilityRecord.encode(message.elgibilityRecord, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
146126
145970
  return writer;
146127
145971
  };
146128
145972
 
@@ -146163,14 +146007,8 @@ $root.EligibilityRecordRemoved = (function() {
146163
146007
  case 2:
146164
146008
  message.collectiveUuid = reader.string();
146165
146009
  break;
146166
- case 3:
146167
- message.uuid = reader.string();
146168
- break;
146169
- case 4:
146170
- message.source = reader.int32();
146171
- break;
146172
- case 5:
146173
- message.externalId = reader.string();
146010
+ case 6:
146011
+ message.elgibilityRecord = $root.EligibilityRecord.decode(reader, reader.uint32());
146174
146012
  break;
146175
146013
  default:
146176
146014
  reader.skipType(tag & 7);
@@ -146213,23 +146051,11 @@ $root.EligibilityRecordRemoved = (function() {
146213
146051
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
146214
146052
  if (!$util.isString(message.collectiveUuid))
146215
146053
  return "collectiveUuid: string expected";
146216
- if (message.uuid != null && message.hasOwnProperty("uuid"))
146217
- if (!$util.isString(message.uuid))
146218
- return "uuid: string expected";
146219
- if (message.source != null && message.hasOwnProperty("source"))
146220
- switch (message.source) {
146221
- default:
146222
- return "source: enum value expected";
146223
- case 0:
146224
- case 1:
146225
- case 2:
146226
- case 3:
146227
- case 4:
146228
- break;
146229
- }
146230
- if (message.externalId != null && message.hasOwnProperty("externalId"))
146231
- if (!$util.isString(message.externalId))
146232
- return "externalId: string expected";
146054
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord")) {
146055
+ var error = $root.EligibilityRecord.verify(message.elgibilityRecord);
146056
+ if (error)
146057
+ return "elgibilityRecord." + error;
146058
+ }
146233
146059
  return null;
146234
146060
  };
146235
146061
 
@@ -146256,32 +146082,11 @@ $root.EligibilityRecordRemoved = (function() {
146256
146082
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
146257
146083
  if (object.collectiveUuid != null)
146258
146084
  message.collectiveUuid = String(object.collectiveUuid);
146259
- if (object.uuid != null)
146260
- message.uuid = String(object.uuid);
146261
- switch (object.source) {
146262
- case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
146263
- case 0:
146264
- message.source = 0;
146265
- break;
146266
- case "ELIGIBILITY_SOURCE_TYPE_ELF":
146267
- case 1:
146268
- message.source = 1;
146269
- break;
146270
- case "ELIGIBILITY_SOURCE_TYPE_SCIM":
146271
- case 2:
146272
- message.source = 2;
146273
- break;
146274
- case "ELIGIBILITY_SOURCE_TYPE_API":
146275
- case 3:
146276
- message.source = 3;
146277
- break;
146278
- case "ELIGIBILITY_SOURCE_TYPE_GINGER":
146279
- case 4:
146280
- message.source = 4;
146281
- break;
146085
+ if (object.elgibilityRecord != null) {
146086
+ if (typeof object.elgibilityRecord !== "object")
146087
+ throw TypeError(".EligibilityRecordRemoved.elgibilityRecord: object expected");
146088
+ message.elgibilityRecord = $root.EligibilityRecord.fromObject(object.elgibilityRecord);
146282
146089
  }
146283
- if (object.externalId != null)
146284
- message.externalId = String(object.externalId);
146285
146090
  return message;
146286
146091
  };
146287
146092
 
@@ -146305,9 +146110,7 @@ $root.EligibilityRecordRemoved = (function() {
146305
146110
  } else
146306
146111
  object.timestamp = options.longs === String ? "0" : 0;
146307
146112
  object.collectiveUuid = "";
146308
- object.uuid = "";
146309
- object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
146310
- object.externalId = "";
146113
+ object.elgibilityRecord = null;
146311
146114
  }
146312
146115
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
146313
146116
  if (typeof message.timestamp === "number")
@@ -146316,12 +146119,8 @@ $root.EligibilityRecordRemoved = (function() {
146316
146119
  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;
146317
146120
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
146318
146121
  object.collectiveUuid = message.collectiveUuid;
146319
- if (message.uuid != null && message.hasOwnProperty("uuid"))
146320
- object.uuid = message.uuid;
146321
- if (message.source != null && message.hasOwnProperty("source"))
146322
- object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
146323
- if (message.externalId != null && message.hasOwnProperty("externalId"))
146324
- object.externalId = message.externalId;
146122
+ if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
146123
+ object.elgibilityRecord = $root.EligibilityRecord.toObject(message.elgibilityRecord, options);
146325
146124
  return object;
146326
146125
  };
146327
146126
 
@@ -147024,6 +146823,22 @@ $root.VerificationType = (function() {
147024
146823
  return values;
147025
146824
  })();
147026
146825
 
146826
+ /**
146827
+ * ClientUidType enum.
146828
+ * @name ClientUidType
146829
+ * @enum {string}
146830
+ * @property {number} CLIENT_UID_TYPE_UNKNOWN=0 CLIENT_UID_TYPE_UNKNOWN value
146831
+ * @property {number} CLIENT_UID_TYPE_EMAIL=1 CLIENT_UID_TYPE_EMAIL value
146832
+ * @property {number} CLIENT_UID_TYPE_WORK_ID=2 CLIENT_UID_TYPE_WORK_ID value
146833
+ */
146834
+ $root.ClientUidType = (function() {
146835
+ var valuesById = {}, values = Object.create(valuesById);
146836
+ values[valuesById[0] = "CLIENT_UID_TYPE_UNKNOWN"] = 0;
146837
+ values[valuesById[1] = "CLIENT_UID_TYPE_EMAIL"] = 1;
146838
+ values[valuesById[2] = "CLIENT_UID_TYPE_WORK_ID"] = 2;
146839
+ return values;
146840
+ })();
146841
+
147027
146842
  $root.EligibilityCollective = (function() {
147028
146843
 
147029
146844
  /**
@@ -148117,6 +147932,566 @@ $root.EligibilityCollectiveDeleted = (function() {
148117
147932
  return EligibilityCollectiveDeleted;
148118
147933
  })();
148119
147934
 
147935
+ $root.EligibilityRecord = (function() {
147936
+
147937
+ /**
147938
+ * Properties of an EligibilityRecord.
147939
+ * @name IEligibilityRecord
147940
+ * @interface IEligibilityRecord
147941
+ * @property {string|null} [uuid] EligibilityRecord uuid
147942
+ * @property {EligibilitySourceType|null} [source] EligibilityRecord source
147943
+ * @property {string|null} [externalId] EligibilityRecord externalId
147944
+ * @property {string|null} [clientUid] EligibilityRecord clientUid
147945
+ * @property {ClientUidType|null} [clientUidType] EligibilityRecord clientUidType
147946
+ * @property {string|null} [oldClientUid] EligibilityRecord oldClientUid
147947
+ * @property {ClientUidType|null} [oldClientUidType] EligibilityRecord oldClientUidType
147948
+ * @property {string|null} [email] EligibilityRecord email
147949
+ * @property {string|null} [dependentOf] EligibilityRecord dependentOf
147950
+ * @property {string|null} [country] EligibilityRecord country
147951
+ * @property {string|null} [zone] EligibilityRecord zone
147952
+ * @property {string|null} [location] EligibilityRecord location
147953
+ * @property {string|null} [department] EligibilityRecord department
147954
+ * @property {string|null} [hierarchyMappingValue] EligibilityRecord hierarchyMappingValue
147955
+ * @property {string|null} [custom] EligibilityRecord custom
147956
+ */
147957
+
147958
+ /**
147959
+ * Constructs a new EligibilityRecord.
147960
+ * @name EligibilityRecord
147961
+ * @classdesc Represents an EligibilityRecord.
147962
+ * @implements IEligibilityRecord
147963
+ * @constructor
147964
+ * @param {IEligibilityRecord=} [properties] Properties to set
147965
+ */
147966
+ function EligibilityRecord(properties) {
147967
+ if (properties)
147968
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
147969
+ if (properties[keys[i]] != null)
147970
+ this[keys[i]] = properties[keys[i]];
147971
+ }
147972
+
147973
+ /**
147974
+ * EligibilityRecord uuid.
147975
+ * @member {string} uuid
147976
+ * @memberof EligibilityRecord
147977
+ * @instance
147978
+ */
147979
+ EligibilityRecord.prototype.uuid = "";
147980
+
147981
+ /**
147982
+ * EligibilityRecord source.
147983
+ * @member {EligibilitySourceType} source
147984
+ * @memberof EligibilityRecord
147985
+ * @instance
147986
+ */
147987
+ EligibilityRecord.prototype.source = 0;
147988
+
147989
+ /**
147990
+ * EligibilityRecord externalId.
147991
+ * @member {string} externalId
147992
+ * @memberof EligibilityRecord
147993
+ * @instance
147994
+ */
147995
+ EligibilityRecord.prototype.externalId = "";
147996
+
147997
+ /**
147998
+ * EligibilityRecord clientUid.
147999
+ * @member {string} clientUid
148000
+ * @memberof EligibilityRecord
148001
+ * @instance
148002
+ */
148003
+ EligibilityRecord.prototype.clientUid = "";
148004
+
148005
+ /**
148006
+ * EligibilityRecord clientUidType.
148007
+ * @member {ClientUidType} clientUidType
148008
+ * @memberof EligibilityRecord
148009
+ * @instance
148010
+ */
148011
+ EligibilityRecord.prototype.clientUidType = 0;
148012
+
148013
+ /**
148014
+ * EligibilityRecord oldClientUid.
148015
+ * @member {string} oldClientUid
148016
+ * @memberof EligibilityRecord
148017
+ * @instance
148018
+ */
148019
+ EligibilityRecord.prototype.oldClientUid = "";
148020
+
148021
+ /**
148022
+ * EligibilityRecord oldClientUidType.
148023
+ * @member {ClientUidType} oldClientUidType
148024
+ * @memberof EligibilityRecord
148025
+ * @instance
148026
+ */
148027
+ EligibilityRecord.prototype.oldClientUidType = 0;
148028
+
148029
+ /**
148030
+ * EligibilityRecord email.
148031
+ * @member {string} email
148032
+ * @memberof EligibilityRecord
148033
+ * @instance
148034
+ */
148035
+ EligibilityRecord.prototype.email = "";
148036
+
148037
+ /**
148038
+ * EligibilityRecord dependentOf.
148039
+ * @member {string} dependentOf
148040
+ * @memberof EligibilityRecord
148041
+ * @instance
148042
+ */
148043
+ EligibilityRecord.prototype.dependentOf = "";
148044
+
148045
+ /**
148046
+ * EligibilityRecord country.
148047
+ * @member {string} country
148048
+ * @memberof EligibilityRecord
148049
+ * @instance
148050
+ */
148051
+ EligibilityRecord.prototype.country = "";
148052
+
148053
+ /**
148054
+ * EligibilityRecord zone.
148055
+ * @member {string} zone
148056
+ * @memberof EligibilityRecord
148057
+ * @instance
148058
+ */
148059
+ EligibilityRecord.prototype.zone = "";
148060
+
148061
+ /**
148062
+ * EligibilityRecord location.
148063
+ * @member {string} location
148064
+ * @memberof EligibilityRecord
148065
+ * @instance
148066
+ */
148067
+ EligibilityRecord.prototype.location = "";
148068
+
148069
+ /**
148070
+ * EligibilityRecord department.
148071
+ * @member {string} department
148072
+ * @memberof EligibilityRecord
148073
+ * @instance
148074
+ */
148075
+ EligibilityRecord.prototype.department = "";
148076
+
148077
+ /**
148078
+ * EligibilityRecord hierarchyMappingValue.
148079
+ * @member {string} hierarchyMappingValue
148080
+ * @memberof EligibilityRecord
148081
+ * @instance
148082
+ */
148083
+ EligibilityRecord.prototype.hierarchyMappingValue = "";
148084
+
148085
+ /**
148086
+ * EligibilityRecord custom.
148087
+ * @member {string} custom
148088
+ * @memberof EligibilityRecord
148089
+ * @instance
148090
+ */
148091
+ EligibilityRecord.prototype.custom = "";
148092
+
148093
+ /**
148094
+ * Creates a new EligibilityRecord instance using the specified properties.
148095
+ * @function create
148096
+ * @memberof EligibilityRecord
148097
+ * @static
148098
+ * @param {IEligibilityRecord=} [properties] Properties to set
148099
+ * @returns {EligibilityRecord} EligibilityRecord instance
148100
+ */
148101
+ EligibilityRecord.create = function create(properties) {
148102
+ return new EligibilityRecord(properties);
148103
+ };
148104
+
148105
+ /**
148106
+ * Encodes the specified EligibilityRecord message. Does not implicitly {@link EligibilityRecord.verify|verify} messages.
148107
+ * @function encode
148108
+ * @memberof EligibilityRecord
148109
+ * @static
148110
+ * @param {IEligibilityRecord} message EligibilityRecord message or plain object to encode
148111
+ * @param {$protobuf.Writer} [writer] Writer to encode to
148112
+ * @returns {$protobuf.Writer} Writer
148113
+ */
148114
+ EligibilityRecord.encode = function encode(message, writer) {
148115
+ if (!writer)
148116
+ writer = $Writer.create();
148117
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
148118
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
148119
+ if (message.source != null && message.hasOwnProperty("source"))
148120
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.source);
148121
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
148122
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalId);
148123
+ if (message.clientUid != null && message.hasOwnProperty("clientUid"))
148124
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientUid);
148125
+ if (message.clientUidType != null && message.hasOwnProperty("clientUidType"))
148126
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.clientUidType);
148127
+ if (message.oldClientUid != null && message.hasOwnProperty("oldClientUid"))
148128
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.oldClientUid);
148129
+ if (message.oldClientUidType != null && message.hasOwnProperty("oldClientUidType"))
148130
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.oldClientUidType);
148131
+ if (message.email != null && message.hasOwnProperty("email"))
148132
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.email);
148133
+ if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
148134
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.dependentOf);
148135
+ if (message.country != null && message.hasOwnProperty("country"))
148136
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.country);
148137
+ if (message.zone != null && message.hasOwnProperty("zone"))
148138
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.zone);
148139
+ if (message.location != null && message.hasOwnProperty("location"))
148140
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.location);
148141
+ if (message.department != null && message.hasOwnProperty("department"))
148142
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.department);
148143
+ if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
148144
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.hierarchyMappingValue);
148145
+ if (message.custom != null && message.hasOwnProperty("custom"))
148146
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.custom);
148147
+ return writer;
148148
+ };
148149
+
148150
+ /**
148151
+ * Encodes the specified EligibilityRecord message, length delimited. Does not implicitly {@link EligibilityRecord.verify|verify} messages.
148152
+ * @function encodeDelimited
148153
+ * @memberof EligibilityRecord
148154
+ * @static
148155
+ * @param {IEligibilityRecord} message EligibilityRecord message or plain object to encode
148156
+ * @param {$protobuf.Writer} [writer] Writer to encode to
148157
+ * @returns {$protobuf.Writer} Writer
148158
+ */
148159
+ EligibilityRecord.encodeDelimited = function encodeDelimited(message, writer) {
148160
+ return this.encode(message, writer).ldelim();
148161
+ };
148162
+
148163
+ /**
148164
+ * Decodes an EligibilityRecord message from the specified reader or buffer.
148165
+ * @function decode
148166
+ * @memberof EligibilityRecord
148167
+ * @static
148168
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
148169
+ * @param {number} [length] Message length if known beforehand
148170
+ * @returns {EligibilityRecord} EligibilityRecord
148171
+ * @throws {Error} If the payload is not a reader or valid buffer
148172
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
148173
+ */
148174
+ EligibilityRecord.decode = function decode(reader, length) {
148175
+ if (!(reader instanceof $Reader))
148176
+ reader = $Reader.create(reader);
148177
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityRecord();
148178
+ while (reader.pos < end) {
148179
+ var tag = reader.uint32();
148180
+ switch (tag >>> 3) {
148181
+ case 1:
148182
+ message.uuid = reader.string();
148183
+ break;
148184
+ case 2:
148185
+ message.source = reader.int32();
148186
+ break;
148187
+ case 3:
148188
+ message.externalId = reader.string();
148189
+ break;
148190
+ case 4:
148191
+ message.clientUid = reader.string();
148192
+ break;
148193
+ case 5:
148194
+ message.clientUidType = reader.int32();
148195
+ break;
148196
+ case 6:
148197
+ message.oldClientUid = reader.string();
148198
+ break;
148199
+ case 7:
148200
+ message.oldClientUidType = reader.int32();
148201
+ break;
148202
+ case 8:
148203
+ message.email = reader.string();
148204
+ break;
148205
+ case 9:
148206
+ message.dependentOf = reader.string();
148207
+ break;
148208
+ case 10:
148209
+ message.country = reader.string();
148210
+ break;
148211
+ case 11:
148212
+ message.zone = reader.string();
148213
+ break;
148214
+ case 12:
148215
+ message.location = reader.string();
148216
+ break;
148217
+ case 13:
148218
+ message.department = reader.string();
148219
+ break;
148220
+ case 14:
148221
+ message.hierarchyMappingValue = reader.string();
148222
+ break;
148223
+ case 15:
148224
+ message.custom = reader.string();
148225
+ break;
148226
+ default:
148227
+ reader.skipType(tag & 7);
148228
+ break;
148229
+ }
148230
+ }
148231
+ return message;
148232
+ };
148233
+
148234
+ /**
148235
+ * Decodes an EligibilityRecord message from the specified reader or buffer, length delimited.
148236
+ * @function decodeDelimited
148237
+ * @memberof EligibilityRecord
148238
+ * @static
148239
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
148240
+ * @returns {EligibilityRecord} EligibilityRecord
148241
+ * @throws {Error} If the payload is not a reader or valid buffer
148242
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
148243
+ */
148244
+ EligibilityRecord.decodeDelimited = function decodeDelimited(reader) {
148245
+ if (!(reader instanceof $Reader))
148246
+ reader = new $Reader(reader);
148247
+ return this.decode(reader, reader.uint32());
148248
+ };
148249
+
148250
+ /**
148251
+ * Verifies an EligibilityRecord message.
148252
+ * @function verify
148253
+ * @memberof EligibilityRecord
148254
+ * @static
148255
+ * @param {Object.<string,*>} message Plain object to verify
148256
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
148257
+ */
148258
+ EligibilityRecord.verify = function verify(message) {
148259
+ if (typeof message !== "object" || message === null)
148260
+ return "object expected";
148261
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
148262
+ if (!$util.isString(message.uuid))
148263
+ return "uuid: string expected";
148264
+ if (message.source != null && message.hasOwnProperty("source"))
148265
+ switch (message.source) {
148266
+ default:
148267
+ return "source: enum value expected";
148268
+ case 0:
148269
+ case 1:
148270
+ case 2:
148271
+ case 3:
148272
+ case 4:
148273
+ break;
148274
+ }
148275
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
148276
+ if (!$util.isString(message.externalId))
148277
+ return "externalId: string expected";
148278
+ if (message.clientUid != null && message.hasOwnProperty("clientUid"))
148279
+ if (!$util.isString(message.clientUid))
148280
+ return "clientUid: string expected";
148281
+ if (message.clientUidType != null && message.hasOwnProperty("clientUidType"))
148282
+ switch (message.clientUidType) {
148283
+ default:
148284
+ return "clientUidType: enum value expected";
148285
+ case 0:
148286
+ case 1:
148287
+ case 2:
148288
+ break;
148289
+ }
148290
+ if (message.oldClientUid != null && message.hasOwnProperty("oldClientUid"))
148291
+ if (!$util.isString(message.oldClientUid))
148292
+ return "oldClientUid: string expected";
148293
+ if (message.oldClientUidType != null && message.hasOwnProperty("oldClientUidType"))
148294
+ switch (message.oldClientUidType) {
148295
+ default:
148296
+ return "oldClientUidType: enum value expected";
148297
+ case 0:
148298
+ case 1:
148299
+ case 2:
148300
+ break;
148301
+ }
148302
+ if (message.email != null && message.hasOwnProperty("email"))
148303
+ if (!$util.isString(message.email))
148304
+ return "email: string expected";
148305
+ if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
148306
+ if (!$util.isString(message.dependentOf))
148307
+ return "dependentOf: string expected";
148308
+ if (message.country != null && message.hasOwnProperty("country"))
148309
+ if (!$util.isString(message.country))
148310
+ return "country: string expected";
148311
+ if (message.zone != null && message.hasOwnProperty("zone"))
148312
+ if (!$util.isString(message.zone))
148313
+ return "zone: string expected";
148314
+ if (message.location != null && message.hasOwnProperty("location"))
148315
+ if (!$util.isString(message.location))
148316
+ return "location: string expected";
148317
+ if (message.department != null && message.hasOwnProperty("department"))
148318
+ if (!$util.isString(message.department))
148319
+ return "department: string expected";
148320
+ if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
148321
+ if (!$util.isString(message.hierarchyMappingValue))
148322
+ return "hierarchyMappingValue: string expected";
148323
+ if (message.custom != null && message.hasOwnProperty("custom"))
148324
+ if (!$util.isString(message.custom))
148325
+ return "custom: string expected";
148326
+ return null;
148327
+ };
148328
+
148329
+ /**
148330
+ * Creates an EligibilityRecord message from a plain object. Also converts values to their respective internal types.
148331
+ * @function fromObject
148332
+ * @memberof EligibilityRecord
148333
+ * @static
148334
+ * @param {Object.<string,*>} object Plain object
148335
+ * @returns {EligibilityRecord} EligibilityRecord
148336
+ */
148337
+ EligibilityRecord.fromObject = function fromObject(object) {
148338
+ if (object instanceof $root.EligibilityRecord)
148339
+ return object;
148340
+ var message = new $root.EligibilityRecord();
148341
+ if (object.uuid != null)
148342
+ message.uuid = String(object.uuid);
148343
+ switch (object.source) {
148344
+ case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
148345
+ case 0:
148346
+ message.source = 0;
148347
+ break;
148348
+ case "ELIGIBILITY_SOURCE_TYPE_ELF":
148349
+ case 1:
148350
+ message.source = 1;
148351
+ break;
148352
+ case "ELIGIBILITY_SOURCE_TYPE_SCIM":
148353
+ case 2:
148354
+ message.source = 2;
148355
+ break;
148356
+ case "ELIGIBILITY_SOURCE_TYPE_API":
148357
+ case 3:
148358
+ message.source = 3;
148359
+ break;
148360
+ case "ELIGIBILITY_SOURCE_TYPE_GINGER":
148361
+ case 4:
148362
+ message.source = 4;
148363
+ break;
148364
+ }
148365
+ if (object.externalId != null)
148366
+ message.externalId = String(object.externalId);
148367
+ if (object.clientUid != null)
148368
+ message.clientUid = String(object.clientUid);
148369
+ switch (object.clientUidType) {
148370
+ case "CLIENT_UID_TYPE_UNKNOWN":
148371
+ case 0:
148372
+ message.clientUidType = 0;
148373
+ break;
148374
+ case "CLIENT_UID_TYPE_EMAIL":
148375
+ case 1:
148376
+ message.clientUidType = 1;
148377
+ break;
148378
+ case "CLIENT_UID_TYPE_WORK_ID":
148379
+ case 2:
148380
+ message.clientUidType = 2;
148381
+ break;
148382
+ }
148383
+ if (object.oldClientUid != null)
148384
+ message.oldClientUid = String(object.oldClientUid);
148385
+ switch (object.oldClientUidType) {
148386
+ case "CLIENT_UID_TYPE_UNKNOWN":
148387
+ case 0:
148388
+ message.oldClientUidType = 0;
148389
+ break;
148390
+ case "CLIENT_UID_TYPE_EMAIL":
148391
+ case 1:
148392
+ message.oldClientUidType = 1;
148393
+ break;
148394
+ case "CLIENT_UID_TYPE_WORK_ID":
148395
+ case 2:
148396
+ message.oldClientUidType = 2;
148397
+ break;
148398
+ }
148399
+ if (object.email != null)
148400
+ message.email = String(object.email);
148401
+ if (object.dependentOf != null)
148402
+ message.dependentOf = String(object.dependentOf);
148403
+ if (object.country != null)
148404
+ message.country = String(object.country);
148405
+ if (object.zone != null)
148406
+ message.zone = String(object.zone);
148407
+ if (object.location != null)
148408
+ message.location = String(object.location);
148409
+ if (object.department != null)
148410
+ message.department = String(object.department);
148411
+ if (object.hierarchyMappingValue != null)
148412
+ message.hierarchyMappingValue = String(object.hierarchyMappingValue);
148413
+ if (object.custom != null)
148414
+ message.custom = String(object.custom);
148415
+ return message;
148416
+ };
148417
+
148418
+ /**
148419
+ * Creates a plain object from an EligibilityRecord message. Also converts values to other types if specified.
148420
+ * @function toObject
148421
+ * @memberof EligibilityRecord
148422
+ * @static
148423
+ * @param {EligibilityRecord} message EligibilityRecord
148424
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
148425
+ * @returns {Object.<string,*>} Plain object
148426
+ */
148427
+ EligibilityRecord.toObject = function toObject(message, options) {
148428
+ if (!options)
148429
+ options = {};
148430
+ var object = {};
148431
+ if (options.defaults) {
148432
+ object.uuid = "";
148433
+ object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
148434
+ object.externalId = "";
148435
+ object.clientUid = "";
148436
+ object.clientUidType = options.enums === String ? "CLIENT_UID_TYPE_UNKNOWN" : 0;
148437
+ object.oldClientUid = "";
148438
+ object.oldClientUidType = options.enums === String ? "CLIENT_UID_TYPE_UNKNOWN" : 0;
148439
+ object.email = "";
148440
+ object.dependentOf = "";
148441
+ object.country = "";
148442
+ object.zone = "";
148443
+ object.location = "";
148444
+ object.department = "";
148445
+ object.hierarchyMappingValue = "";
148446
+ object.custom = "";
148447
+ }
148448
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
148449
+ object.uuid = message.uuid;
148450
+ if (message.source != null && message.hasOwnProperty("source"))
148451
+ object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
148452
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
148453
+ object.externalId = message.externalId;
148454
+ if (message.clientUid != null && message.hasOwnProperty("clientUid"))
148455
+ object.clientUid = message.clientUid;
148456
+ if (message.clientUidType != null && message.hasOwnProperty("clientUidType"))
148457
+ object.clientUidType = options.enums === String ? $root.ClientUidType[message.clientUidType] : message.clientUidType;
148458
+ if (message.oldClientUid != null && message.hasOwnProperty("oldClientUid"))
148459
+ object.oldClientUid = message.oldClientUid;
148460
+ if (message.oldClientUidType != null && message.hasOwnProperty("oldClientUidType"))
148461
+ object.oldClientUidType = options.enums === String ? $root.ClientUidType[message.oldClientUidType] : message.oldClientUidType;
148462
+ if (message.email != null && message.hasOwnProperty("email"))
148463
+ object.email = message.email;
148464
+ if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
148465
+ object.dependentOf = message.dependentOf;
148466
+ if (message.country != null && message.hasOwnProperty("country"))
148467
+ object.country = message.country;
148468
+ if (message.zone != null && message.hasOwnProperty("zone"))
148469
+ object.zone = message.zone;
148470
+ if (message.location != null && message.hasOwnProperty("location"))
148471
+ object.location = message.location;
148472
+ if (message.department != null && message.hasOwnProperty("department"))
148473
+ object.department = message.department;
148474
+ if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
148475
+ object.hierarchyMappingValue = message.hierarchyMappingValue;
148476
+ if (message.custom != null && message.hasOwnProperty("custom"))
148477
+ object.custom = message.custom;
148478
+ return object;
148479
+ };
148480
+
148481
+ /**
148482
+ * Converts this EligibilityRecord to JSON.
148483
+ * @function toJSON
148484
+ * @memberof EligibilityRecord
148485
+ * @instance
148486
+ * @returns {Object.<string,*>} JSON object
148487
+ */
148488
+ EligibilityRecord.prototype.toJSON = function toJSON() {
148489
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
148490
+ };
148491
+
148492
+ return EligibilityRecord;
148493
+ })();
148494
+
148120
148495
  $root.PartnershipMemberEnrolled = (function() {
148121
148496
 
148122
148497
  /**