@headspace/protos-events 1.616.0 → 1.618.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 +354 -0
  2. package/lib/index.js +1865 -873
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -117587,6 +117587,7 @@ $root.ClinicalCoverageCreated = (function() {
117587
117587
  * @property {number|Long|null} [updatedAt] ClinicalCoverageCreated updatedAt
117588
117588
  * @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageCreated clinicalCoverageProvider
117589
117589
  * @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageCreated clinicalCoverageType
117590
+ * @property {string|null} [externalOrgId] ClinicalCoverageCreated externalOrgId
117590
117591
  */
117591
117592
 
117592
117593
  /**
@@ -117660,6 +117661,14 @@ $root.ClinicalCoverageCreated = (function() {
117660
117661
  */
117661
117662
  ClinicalCoverageCreated.prototype.clinicalCoverageType = 0;
117662
117663
 
117664
+ /**
117665
+ * ClinicalCoverageCreated externalOrgId.
117666
+ * @member {string} externalOrgId
117667
+ * @memberof ClinicalCoverageCreated
117668
+ * @instance
117669
+ */
117670
+ ClinicalCoverageCreated.prototype.externalOrgId = "";
117671
+
117663
117672
  /**
117664
117673
  * Creates a new ClinicalCoverageCreated instance using the specified properties.
117665
117674
  * @function create
@@ -117698,6 +117707,8 @@ $root.ClinicalCoverageCreated = (function() {
117698
117707
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clinicalCoverageProvider);
117699
117708
  if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
117700
117709
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
117710
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
117711
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
117701
117712
  return writer;
117702
117713
  };
117703
117714
 
@@ -117753,6 +117764,9 @@ $root.ClinicalCoverageCreated = (function() {
117753
117764
  case 7:
117754
117765
  message.clinicalCoverageType = reader.int32();
117755
117766
  break;
117767
+ case 8:
117768
+ message.externalOrgId = reader.string();
117769
+ break;
117756
117770
  default:
117757
117771
  reader.skipType(tag & 7);
117758
117772
  break;
@@ -117830,6 +117844,9 @@ $root.ClinicalCoverageCreated = (function() {
117830
117844
  case 3:
117831
117845
  break;
117832
117846
  }
117847
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
117848
+ if (!$util.isString(message.externalOrgId))
117849
+ return "externalOrgId: string expected";
117833
117850
  return null;
117834
117851
  };
117835
117852
 
@@ -117935,6 +117952,8 @@ $root.ClinicalCoverageCreated = (function() {
117935
117952
  message.clinicalCoverageType = 3;
117936
117953
  break;
117937
117954
  }
117955
+ if (object.externalOrgId != null)
117956
+ message.externalOrgId = String(object.externalOrgId);
117938
117957
  return message;
117939
117958
  };
117940
117959
 
@@ -117975,6 +117994,7 @@ $root.ClinicalCoverageCreated = (function() {
117975
117994
  object.updatedAt = options.longs === String ? "0" : 0;
117976
117995
  object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
117977
117996
  object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
117997
+ object.externalOrgId = "";
117978
117998
  }
117979
117999
  if (message.orgId != null && message.hasOwnProperty("orgId"))
117980
118000
  if (typeof message.orgId === "number")
@@ -118002,6 +118022,8 @@ $root.ClinicalCoverageCreated = (function() {
118002
118022
  object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
118003
118023
  if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
118004
118024
  object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
118025
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
118026
+ object.externalOrgId = message.externalOrgId;
118005
118027
  return object;
118006
118028
  };
118007
118029
 
@@ -118032,6 +118054,7 @@ $root.ClinicalCoverageUpdated = (function() {
118032
118054
  * @property {number|Long|null} [updatedAt] ClinicalCoverageUpdated updatedAt
118033
118055
  * @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageUpdated clinicalCoverageProvider
118034
118056
  * @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageUpdated clinicalCoverageType
118057
+ * @property {string|null} [externalOrgId] ClinicalCoverageUpdated externalOrgId
118035
118058
  */
118036
118059
 
118037
118060
  /**
@@ -118105,6 +118128,14 @@ $root.ClinicalCoverageUpdated = (function() {
118105
118128
  */
118106
118129
  ClinicalCoverageUpdated.prototype.clinicalCoverageType = 0;
118107
118130
 
118131
+ /**
118132
+ * ClinicalCoverageUpdated externalOrgId.
118133
+ * @member {string} externalOrgId
118134
+ * @memberof ClinicalCoverageUpdated
118135
+ * @instance
118136
+ */
118137
+ ClinicalCoverageUpdated.prototype.externalOrgId = "";
118138
+
118108
118139
  /**
118109
118140
  * Creates a new ClinicalCoverageUpdated instance using the specified properties.
118110
118141
  * @function create
@@ -118143,6 +118174,8 @@ $root.ClinicalCoverageUpdated = (function() {
118143
118174
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clinicalCoverageProvider);
118144
118175
  if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
118145
118176
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
118177
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
118178
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
118146
118179
  return writer;
118147
118180
  };
118148
118181
 
@@ -118198,6 +118231,9 @@ $root.ClinicalCoverageUpdated = (function() {
118198
118231
  case 7:
118199
118232
  message.clinicalCoverageType = reader.int32();
118200
118233
  break;
118234
+ case 8:
118235
+ message.externalOrgId = reader.string();
118236
+ break;
118201
118237
  default:
118202
118238
  reader.skipType(tag & 7);
118203
118239
  break;
@@ -118275,6 +118311,9 @@ $root.ClinicalCoverageUpdated = (function() {
118275
118311
  case 3:
118276
118312
  break;
118277
118313
  }
118314
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
118315
+ if (!$util.isString(message.externalOrgId))
118316
+ return "externalOrgId: string expected";
118278
118317
  return null;
118279
118318
  };
118280
118319
 
@@ -118380,6 +118419,8 @@ $root.ClinicalCoverageUpdated = (function() {
118380
118419
  message.clinicalCoverageType = 3;
118381
118420
  break;
118382
118421
  }
118422
+ if (object.externalOrgId != null)
118423
+ message.externalOrgId = String(object.externalOrgId);
118383
118424
  return message;
118384
118425
  };
118385
118426
 
@@ -118420,6 +118461,7 @@ $root.ClinicalCoverageUpdated = (function() {
118420
118461
  object.updatedAt = options.longs === String ? "0" : 0;
118421
118462
  object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
118422
118463
  object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
118464
+ object.externalOrgId = "";
118423
118465
  }
118424
118466
  if (message.orgId != null && message.hasOwnProperty("orgId"))
118425
118467
  if (typeof message.orgId === "number")
@@ -118447,6 +118489,8 @@ $root.ClinicalCoverageUpdated = (function() {
118447
118489
  object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
118448
118490
  if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
118449
118491
  object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
118492
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
118493
+ object.externalOrgId = message.externalOrgId;
118450
118494
  return object;
118451
118495
  };
118452
118496
 
@@ -118477,6 +118521,7 @@ $root.ClinicalCoverageDeleted = (function() {
118477
118521
  * @property {number|Long|null} [updatedAt] ClinicalCoverageDeleted updatedAt
118478
118522
  * @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageDeleted clinicalCoverageProvider
118479
118523
  * @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageDeleted clinicalCoverageType
118524
+ * @property {string|null} [externalOrgId] ClinicalCoverageDeleted externalOrgId
118480
118525
  */
118481
118526
 
118482
118527
  /**
@@ -118550,6 +118595,14 @@ $root.ClinicalCoverageDeleted = (function() {
118550
118595
  */
118551
118596
  ClinicalCoverageDeleted.prototype.clinicalCoverageType = 0;
118552
118597
 
118598
+ /**
118599
+ * ClinicalCoverageDeleted externalOrgId.
118600
+ * @member {string} externalOrgId
118601
+ * @memberof ClinicalCoverageDeleted
118602
+ * @instance
118603
+ */
118604
+ ClinicalCoverageDeleted.prototype.externalOrgId = "";
118605
+
118553
118606
  /**
118554
118607
  * Creates a new ClinicalCoverageDeleted instance using the specified properties.
118555
118608
  * @function create
@@ -118588,6 +118641,8 @@ $root.ClinicalCoverageDeleted = (function() {
118588
118641
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clinicalCoverageProvider);
118589
118642
  if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
118590
118643
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
118644
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
118645
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
118591
118646
  return writer;
118592
118647
  };
118593
118648
 
@@ -118643,6 +118698,9 @@ $root.ClinicalCoverageDeleted = (function() {
118643
118698
  case 7:
118644
118699
  message.clinicalCoverageType = reader.int32();
118645
118700
  break;
118701
+ case 8:
118702
+ message.externalOrgId = reader.string();
118703
+ break;
118646
118704
  default:
118647
118705
  reader.skipType(tag & 7);
118648
118706
  break;
@@ -118720,6 +118778,9 @@ $root.ClinicalCoverageDeleted = (function() {
118720
118778
  case 3:
118721
118779
  break;
118722
118780
  }
118781
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
118782
+ if (!$util.isString(message.externalOrgId))
118783
+ return "externalOrgId: string expected";
118723
118784
  return null;
118724
118785
  };
118725
118786
 
@@ -118825,6 +118886,8 @@ $root.ClinicalCoverageDeleted = (function() {
118825
118886
  message.clinicalCoverageType = 3;
118826
118887
  break;
118827
118888
  }
118889
+ if (object.externalOrgId != null)
118890
+ message.externalOrgId = String(object.externalOrgId);
118828
118891
  return message;
118829
118892
  };
118830
118893
 
@@ -118865,6 +118928,7 @@ $root.ClinicalCoverageDeleted = (function() {
118865
118928
  object.updatedAt = options.longs === String ? "0" : 0;
118866
118929
  object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
118867
118930
  object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
118931
+ object.externalOrgId = "";
118868
118932
  }
118869
118933
  if (message.orgId != null && message.hasOwnProperty("orgId"))
118870
118934
  if (typeof message.orgId === "number")
@@ -118892,6 +118956,8 @@ $root.ClinicalCoverageDeleted = (function() {
118892
118956
  object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
118893
118957
  if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
118894
118958
  object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
118959
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
118960
+ object.externalOrgId = message.externalOrgId;
118895
118961
  return object;
118896
118962
  };
118897
118963
 
@@ -118921,6 +118987,7 @@ $root.EapCoverageCreated = (function() {
118921
118987
  * @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageCreated orgSubscriptionEndDate
118922
118988
  * @property {number|Long|null} [updatedAt] EapCoverageCreated updatedAt
118923
118989
  * @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageCreated eapCoverage
118990
+ * @property {string|null} [externalOrgId] EapCoverageCreated externalOrgId
118924
118991
  */
118925
118992
 
118926
118993
  /**
@@ -118986,6 +119053,14 @@ $root.EapCoverageCreated = (function() {
118986
119053
  */
118987
119054
  EapCoverageCreated.prototype.eapCoverage = 0;
118988
119055
 
119056
+ /**
119057
+ * EapCoverageCreated externalOrgId.
119058
+ * @member {string} externalOrgId
119059
+ * @memberof EapCoverageCreated
119060
+ * @instance
119061
+ */
119062
+ EapCoverageCreated.prototype.externalOrgId = "";
119063
+
118989
119064
  /**
118990
119065
  * Creates a new EapCoverageCreated instance using the specified properties.
118991
119066
  * @function create
@@ -119022,6 +119097,8 @@ $root.EapCoverageCreated = (function() {
119022
119097
  writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
119023
119098
  if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
119024
119099
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
119100
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
119101
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalOrgId);
119025
119102
  return writer;
119026
119103
  };
119027
119104
 
@@ -119074,6 +119151,9 @@ $root.EapCoverageCreated = (function() {
119074
119151
  case 6:
119075
119152
  message.eapCoverage = reader.int32();
119076
119153
  break;
119154
+ case 7:
119155
+ message.externalOrgId = reader.string();
119156
+ break;
119077
119157
  default:
119078
119158
  reader.skipType(tag & 7);
119079
119159
  break;
@@ -119141,6 +119221,9 @@ $root.EapCoverageCreated = (function() {
119141
119221
  case 3:
119142
119222
  break;
119143
119223
  }
119224
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
119225
+ if (!$util.isString(message.externalOrgId))
119226
+ return "externalOrgId: string expected";
119144
119227
  return null;
119145
119228
  };
119146
119229
 
@@ -119228,6 +119311,8 @@ $root.EapCoverageCreated = (function() {
119228
119311
  message.eapCoverage = 3;
119229
119312
  break;
119230
119313
  }
119314
+ if (object.externalOrgId != null)
119315
+ message.externalOrgId = String(object.externalOrgId);
119231
119316
  return message;
119232
119317
  };
119233
119318
 
@@ -119267,6 +119352,7 @@ $root.EapCoverageCreated = (function() {
119267
119352
  } else
119268
119353
  object.updatedAt = options.longs === String ? "0" : 0;
119269
119354
  object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
119355
+ object.externalOrgId = "";
119270
119356
  }
119271
119357
  if (message.orgId != null && message.hasOwnProperty("orgId"))
119272
119358
  if (typeof message.orgId === "number")
@@ -119292,6 +119378,8 @@ $root.EapCoverageCreated = (function() {
119292
119378
  object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
119293
119379
  if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
119294
119380
  object.eapCoverage = options.enums === String ? $root.b2b.EapCoverage[message.eapCoverage] : message.eapCoverage;
119381
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
119382
+ object.externalOrgId = message.externalOrgId;
119295
119383
  return object;
119296
119384
  };
119297
119385
 
@@ -119321,6 +119409,7 @@ $root.EapCoverageUpdated = (function() {
119321
119409
  * @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageUpdated orgSubscriptionEndDate
119322
119410
  * @property {number|Long|null} [updatedAt] EapCoverageUpdated updatedAt
119323
119411
  * @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageUpdated eapCoverage
119412
+ * @property {string|null} [externalOrgId] EapCoverageUpdated externalOrgId
119324
119413
  */
119325
119414
 
119326
119415
  /**
@@ -119386,6 +119475,14 @@ $root.EapCoverageUpdated = (function() {
119386
119475
  */
119387
119476
  EapCoverageUpdated.prototype.eapCoverage = 0;
119388
119477
 
119478
+ /**
119479
+ * EapCoverageUpdated externalOrgId.
119480
+ * @member {string} externalOrgId
119481
+ * @memberof EapCoverageUpdated
119482
+ * @instance
119483
+ */
119484
+ EapCoverageUpdated.prototype.externalOrgId = "";
119485
+
119389
119486
  /**
119390
119487
  * Creates a new EapCoverageUpdated instance using the specified properties.
119391
119488
  * @function create
@@ -119422,6 +119519,8 @@ $root.EapCoverageUpdated = (function() {
119422
119519
  writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
119423
119520
  if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
119424
119521
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
119522
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
119523
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalOrgId);
119425
119524
  return writer;
119426
119525
  };
119427
119526
 
@@ -119474,6 +119573,9 @@ $root.EapCoverageUpdated = (function() {
119474
119573
  case 6:
119475
119574
  message.eapCoverage = reader.int32();
119476
119575
  break;
119576
+ case 7:
119577
+ message.externalOrgId = reader.string();
119578
+ break;
119477
119579
  default:
119478
119580
  reader.skipType(tag & 7);
119479
119581
  break;
@@ -119541,6 +119643,9 @@ $root.EapCoverageUpdated = (function() {
119541
119643
  case 3:
119542
119644
  break;
119543
119645
  }
119646
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
119647
+ if (!$util.isString(message.externalOrgId))
119648
+ return "externalOrgId: string expected";
119544
119649
  return null;
119545
119650
  };
119546
119651
 
@@ -119628,6 +119733,8 @@ $root.EapCoverageUpdated = (function() {
119628
119733
  message.eapCoverage = 3;
119629
119734
  break;
119630
119735
  }
119736
+ if (object.externalOrgId != null)
119737
+ message.externalOrgId = String(object.externalOrgId);
119631
119738
  return message;
119632
119739
  };
119633
119740
 
@@ -119667,6 +119774,7 @@ $root.EapCoverageUpdated = (function() {
119667
119774
  } else
119668
119775
  object.updatedAt = options.longs === String ? "0" : 0;
119669
119776
  object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
119777
+ object.externalOrgId = "";
119670
119778
  }
119671
119779
  if (message.orgId != null && message.hasOwnProperty("orgId"))
119672
119780
  if (typeof message.orgId === "number")
@@ -119692,6 +119800,8 @@ $root.EapCoverageUpdated = (function() {
119692
119800
  object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
119693
119801
  if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
119694
119802
  object.eapCoverage = options.enums === String ? $root.b2b.EapCoverage[message.eapCoverage] : message.eapCoverage;
119803
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
119804
+ object.externalOrgId = message.externalOrgId;
119695
119805
  return object;
119696
119806
  };
119697
119807
 
@@ -119721,6 +119831,7 @@ $root.EapCoverageDeleted = (function() {
119721
119831
  * @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageDeleted orgSubscriptionEndDate
119722
119832
  * @property {number|Long|null} [updatedAt] EapCoverageDeleted updatedAt
119723
119833
  * @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageDeleted eapCoverage
119834
+ * @property {string|null} [externalOrgId] EapCoverageDeleted externalOrgId
119724
119835
  */
119725
119836
 
119726
119837
  /**
@@ -119786,6 +119897,14 @@ $root.EapCoverageDeleted = (function() {
119786
119897
  */
119787
119898
  EapCoverageDeleted.prototype.eapCoverage = 0;
119788
119899
 
119900
+ /**
119901
+ * EapCoverageDeleted externalOrgId.
119902
+ * @member {string} externalOrgId
119903
+ * @memberof EapCoverageDeleted
119904
+ * @instance
119905
+ */
119906
+ EapCoverageDeleted.prototype.externalOrgId = "";
119907
+
119789
119908
  /**
119790
119909
  * Creates a new EapCoverageDeleted instance using the specified properties.
119791
119910
  * @function create
@@ -119822,6 +119941,8 @@ $root.EapCoverageDeleted = (function() {
119822
119941
  writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
119823
119942
  if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
119824
119943
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
119944
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
119945
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalOrgId);
119825
119946
  return writer;
119826
119947
  };
119827
119948
 
@@ -119874,6 +119995,9 @@ $root.EapCoverageDeleted = (function() {
119874
119995
  case 6:
119875
119996
  message.eapCoverage = reader.int32();
119876
119997
  break;
119998
+ case 7:
119999
+ message.externalOrgId = reader.string();
120000
+ break;
119877
120001
  default:
119878
120002
  reader.skipType(tag & 7);
119879
120003
  break;
@@ -119941,6 +120065,9 @@ $root.EapCoverageDeleted = (function() {
119941
120065
  case 3:
119942
120066
  break;
119943
120067
  }
120068
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
120069
+ if (!$util.isString(message.externalOrgId))
120070
+ return "externalOrgId: string expected";
119944
120071
  return null;
119945
120072
  };
119946
120073
 
@@ -120028,6 +120155,8 @@ $root.EapCoverageDeleted = (function() {
120028
120155
  message.eapCoverage = 3;
120029
120156
  break;
120030
120157
  }
120158
+ if (object.externalOrgId != null)
120159
+ message.externalOrgId = String(object.externalOrgId);
120031
120160
  return message;
120032
120161
  };
120033
120162
 
@@ -120067,6 +120196,7 @@ $root.EapCoverageDeleted = (function() {
120067
120196
  } else
120068
120197
  object.updatedAt = options.longs === String ? "0" : 0;
120069
120198
  object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
120199
+ object.externalOrgId = "";
120070
120200
  }
120071
120201
  if (message.orgId != null && message.hasOwnProperty("orgId"))
120072
120202
  if (typeof message.orgId === "number")
@@ -120092,6 +120222,8 @@ $root.EapCoverageDeleted = (function() {
120092
120222
  object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
120093
120223
  if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
120094
120224
  object.eapCoverage = options.enums === String ? $root.b2b.EapCoverage[message.eapCoverage] : message.eapCoverage;
120225
+ if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
120226
+ object.externalOrgId = message.externalOrgId;
120095
120227
  return object;
120096
120228
  };
120097
120229
 
@@ -140028,55 +140160,26 @@ $root.KeyType = (function() {
140028
140160
  return values;
140029
140161
  })();
140030
140162
 
140031
- $root.ElfRecordPresent = (function() {
140163
+ $root.OrganizationIdentifier = (function() {
140032
140164
 
140033
140165
  /**
140034
- * Properties of an ElfRecordPresent.
140035
- * @name IElfRecordPresent
140036
- * @interface IElfRecordPresent
140037
- * @property {string|null} [headspaceHealthOrgId] ElfRecordPresent headspaceHealthOrgId
140038
- * @property {string|null} [b2bOrgId] ElfRecordPresent b2bOrgId
140039
- * @property {string|null} [gingerOrgId] ElfRecordPresent gingerOrgId
140040
- * @property {number|Long|null} [fileImportedTimestamp] ElfRecordPresent fileImportedTimestamp
140041
- * @property {number|null} [lineNumber] ElfRecordPresent lineNumber
140042
- * @property {string|null} [workEmail] ElfRecordPresent workEmail
140043
- * @property {string|null} [workId] ElfRecordPresent workId
140044
- * @property {KeyType|null} [keyType] ElfRecordPresent keyType
140045
- * @property {string|null} [firstName] ElfRecordPresent firstName
140046
- * @property {string|null} [lastName] ElfRecordPresent lastName
140047
- * @property {string|null} [country] ElfRecordPresent country
140048
- * @property {string|null} [zipCode] ElfRecordPresent zipCode
140049
- * @property {string|null} [dob] ElfRecordPresent dob
140050
- * @property {string|null} [countryStateCode] ElfRecordPresent countryStateCode
140051
- * @property {string|null} [streetAddress_1] ElfRecordPresent streetAddress_1
140052
- * @property {string|null} [streetAddress_2] ElfRecordPresent streetAddress_2
140053
- * @property {string|null} [department] ElfRecordPresent department
140054
- * @property {string|null} [language] ElfRecordPresent language
140055
- * @property {string|null} [customFields] ElfRecordPresent customFields
140056
- * @property {Array.<b2b.SubscriptionOffering>|null} [offerings] ElfRecordPresent offerings
140057
- * @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordPresent rootOrgHeadspaceHealthId
140058
- * @property {string|null} [rootOrgId] ElfRecordPresent rootOrgId
140059
- * @property {boolean|null} [isMemberMigrated] ElfRecordPresent isMemberMigrated
140060
- * @property {string|null} [priorB2bOrgId] ElfRecordPresent priorB2bOrgId
140061
- * @property {string|null} [location] ElfRecordPresent location
140062
- * @property {string|null} [dependentOf] ElfRecordPresent dependentOf
140063
- * @property {boolean|null} [isDryRun] ElfRecordPresent isDryRun
140064
- * @property {boolean|null} [gingerShouldProcess] ElfRecordPresent gingerShouldProcess
140065
- * @property {boolean|null} [headspaceShouldProcess] ElfRecordPresent headspaceShouldProcess
140066
- * @property {boolean|null} [unifiedEligibilityEnabled] ElfRecordPresent unifiedEligibilityEnabled
140067
- * @property {string|null} [collectiveUuid] ElfRecordPresent collectiveUuid
140166
+ * Properties of an OrganizationIdentifier.
140167
+ * @name IOrganizationIdentifier
140168
+ * @interface IOrganizationIdentifier
140169
+ * @property {string|null} [headspaceHealthOrgId] OrganizationIdentifier headspaceHealthOrgId
140170
+ * @property {string|null} [b2bOrgId] OrganizationIdentifier b2bOrgId
140171
+ * @property {string|null} [gingerOrgId] OrganizationIdentifier gingerOrgId
140068
140172
  */
140069
140173
 
140070
140174
  /**
140071
- * Constructs a new ElfRecordPresent.
140072
- * @name ElfRecordPresent
140073
- * @classdesc Represents an ElfRecordPresent.
140074
- * @implements IElfRecordPresent
140175
+ * Constructs a new OrganizationIdentifier.
140176
+ * @name OrganizationIdentifier
140177
+ * @classdesc Represents an OrganizationIdentifier.
140178
+ * @implements IOrganizationIdentifier
140075
140179
  * @constructor
140076
- * @param {IElfRecordPresent=} [properties] Properties to set
140180
+ * @param {IOrganizationIdentifier=} [properties] Properties to set
140077
140181
  */
140078
- function ElfRecordPresent(properties) {
140079
- this.offerings = [];
140182
+ function OrganizationIdentifier(properties) {
140080
140183
  if (properties)
140081
140184
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140082
140185
  if (properties[keys[i]] != null)
@@ -140084,275 +140187,1534 @@ $root.ElfRecordPresent = (function() {
140084
140187
  }
140085
140188
 
140086
140189
  /**
140087
- * ElfRecordPresent headspaceHealthOrgId.
140190
+ * OrganizationIdentifier headspaceHealthOrgId.
140088
140191
  * @member {string} headspaceHealthOrgId
140089
- * @memberof ElfRecordPresent
140192
+ * @memberof OrganizationIdentifier
140090
140193
  * @instance
140091
140194
  */
140092
- ElfRecordPresent.prototype.headspaceHealthOrgId = "";
140195
+ OrganizationIdentifier.prototype.headspaceHealthOrgId = "";
140093
140196
 
140094
140197
  /**
140095
- * ElfRecordPresent b2bOrgId.
140198
+ * OrganizationIdentifier b2bOrgId.
140096
140199
  * @member {string} b2bOrgId
140097
- * @memberof ElfRecordPresent
140200
+ * @memberof OrganizationIdentifier
140098
140201
  * @instance
140099
140202
  */
140100
- ElfRecordPresent.prototype.b2bOrgId = "";
140203
+ OrganizationIdentifier.prototype.b2bOrgId = "";
140101
140204
 
140102
140205
  /**
140103
- * ElfRecordPresent gingerOrgId.
140206
+ * OrganizationIdentifier gingerOrgId.
140104
140207
  * @member {string} gingerOrgId
140105
- * @memberof ElfRecordPresent
140208
+ * @memberof OrganizationIdentifier
140106
140209
  * @instance
140107
140210
  */
140108
- ElfRecordPresent.prototype.gingerOrgId = "";
140211
+ OrganizationIdentifier.prototype.gingerOrgId = "";
140109
140212
 
140110
140213
  /**
140111
- * ElfRecordPresent fileImportedTimestamp.
140112
- * @member {number|Long} fileImportedTimestamp
140113
- * @memberof ElfRecordPresent
140114
- * @instance
140214
+ * Creates a new OrganizationIdentifier instance using the specified properties.
140215
+ * @function create
140216
+ * @memberof OrganizationIdentifier
140217
+ * @static
140218
+ * @param {IOrganizationIdentifier=} [properties] Properties to set
140219
+ * @returns {OrganizationIdentifier} OrganizationIdentifier instance
140115
140220
  */
140116
- ElfRecordPresent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140221
+ OrganizationIdentifier.create = function create(properties) {
140222
+ return new OrganizationIdentifier(properties);
140223
+ };
140117
140224
 
140118
140225
  /**
140119
- * ElfRecordPresent lineNumber.
140120
- * @member {number} lineNumber
140121
- * @memberof ElfRecordPresent
140122
- * @instance
140226
+ * Encodes the specified OrganizationIdentifier message. Does not implicitly {@link OrganizationIdentifier.verify|verify} messages.
140227
+ * @function encode
140228
+ * @memberof OrganizationIdentifier
140229
+ * @static
140230
+ * @param {IOrganizationIdentifier} message OrganizationIdentifier message or plain object to encode
140231
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140232
+ * @returns {$protobuf.Writer} Writer
140123
140233
  */
140124
- ElfRecordPresent.prototype.lineNumber = 0;
140234
+ OrganizationIdentifier.encode = function encode(message, writer) {
140235
+ if (!writer)
140236
+ writer = $Writer.create();
140237
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
140238
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
140239
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
140240
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
140241
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
140242
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
140243
+ return writer;
140244
+ };
140125
140245
 
140126
140246
  /**
140127
- * ElfRecordPresent workEmail.
140128
- * @member {string} workEmail
140129
- * @memberof ElfRecordPresent
140130
- * @instance
140247
+ * Encodes the specified OrganizationIdentifier message, length delimited. Does not implicitly {@link OrganizationIdentifier.verify|verify} messages.
140248
+ * @function encodeDelimited
140249
+ * @memberof OrganizationIdentifier
140250
+ * @static
140251
+ * @param {IOrganizationIdentifier} message OrganizationIdentifier message or plain object to encode
140252
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140253
+ * @returns {$protobuf.Writer} Writer
140131
140254
  */
140132
- ElfRecordPresent.prototype.workEmail = "";
140255
+ OrganizationIdentifier.encodeDelimited = function encodeDelimited(message, writer) {
140256
+ return this.encode(message, writer).ldelim();
140257
+ };
140133
140258
 
140134
140259
  /**
140135
- * ElfRecordPresent workId.
140136
- * @member {string} workId
140137
- * @memberof ElfRecordPresent
140138
- * @instance
140260
+ * Decodes an OrganizationIdentifier message from the specified reader or buffer.
140261
+ * @function decode
140262
+ * @memberof OrganizationIdentifier
140263
+ * @static
140264
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140265
+ * @param {number} [length] Message length if known beforehand
140266
+ * @returns {OrganizationIdentifier} OrganizationIdentifier
140267
+ * @throws {Error} If the payload is not a reader or valid buffer
140268
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140139
140269
  */
140140
- ElfRecordPresent.prototype.workId = "";
140270
+ OrganizationIdentifier.decode = function decode(reader, length) {
140271
+ if (!(reader instanceof $Reader))
140272
+ reader = $Reader.create(reader);
140273
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationIdentifier();
140274
+ while (reader.pos < end) {
140275
+ var tag = reader.uint32();
140276
+ switch (tag >>> 3) {
140277
+ case 1:
140278
+ message.headspaceHealthOrgId = reader.string();
140279
+ break;
140280
+ case 2:
140281
+ message.b2bOrgId = reader.string();
140282
+ break;
140283
+ case 3:
140284
+ message.gingerOrgId = reader.string();
140285
+ break;
140286
+ default:
140287
+ reader.skipType(tag & 7);
140288
+ break;
140289
+ }
140290
+ }
140291
+ return message;
140292
+ };
140141
140293
 
140142
140294
  /**
140143
- * ElfRecordPresent keyType.
140144
- * @member {KeyType} keyType
140145
- * @memberof ElfRecordPresent
140146
- * @instance
140295
+ * Decodes an OrganizationIdentifier message from the specified reader or buffer, length delimited.
140296
+ * @function decodeDelimited
140297
+ * @memberof OrganizationIdentifier
140298
+ * @static
140299
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140300
+ * @returns {OrganizationIdentifier} OrganizationIdentifier
140301
+ * @throws {Error} If the payload is not a reader or valid buffer
140302
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140147
140303
  */
140148
- ElfRecordPresent.prototype.keyType = 0;
140304
+ OrganizationIdentifier.decodeDelimited = function decodeDelimited(reader) {
140305
+ if (!(reader instanceof $Reader))
140306
+ reader = new $Reader(reader);
140307
+ return this.decode(reader, reader.uint32());
140308
+ };
140149
140309
 
140150
140310
  /**
140151
- * ElfRecordPresent firstName.
140152
- * @member {string} firstName
140153
- * @memberof ElfRecordPresent
140154
- * @instance
140311
+ * Verifies an OrganizationIdentifier message.
140312
+ * @function verify
140313
+ * @memberof OrganizationIdentifier
140314
+ * @static
140315
+ * @param {Object.<string,*>} message Plain object to verify
140316
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
140155
140317
  */
140156
- ElfRecordPresent.prototype.firstName = "";
140318
+ OrganizationIdentifier.verify = function verify(message) {
140319
+ if (typeof message !== "object" || message === null)
140320
+ return "object expected";
140321
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
140322
+ if (!$util.isString(message.headspaceHealthOrgId))
140323
+ return "headspaceHealthOrgId: string expected";
140324
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
140325
+ if (!$util.isString(message.b2bOrgId))
140326
+ return "b2bOrgId: string expected";
140327
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
140328
+ if (!$util.isString(message.gingerOrgId))
140329
+ return "gingerOrgId: string expected";
140330
+ return null;
140331
+ };
140157
140332
 
140158
140333
  /**
140159
- * ElfRecordPresent lastName.
140160
- * @member {string} lastName
140161
- * @memberof ElfRecordPresent
140162
- * @instance
140334
+ * Creates an OrganizationIdentifier message from a plain object. Also converts values to their respective internal types.
140335
+ * @function fromObject
140336
+ * @memberof OrganizationIdentifier
140337
+ * @static
140338
+ * @param {Object.<string,*>} object Plain object
140339
+ * @returns {OrganizationIdentifier} OrganizationIdentifier
140163
140340
  */
140164
- ElfRecordPresent.prototype.lastName = "";
140341
+ OrganizationIdentifier.fromObject = function fromObject(object) {
140342
+ if (object instanceof $root.OrganizationIdentifier)
140343
+ return object;
140344
+ var message = new $root.OrganizationIdentifier();
140345
+ if (object.headspaceHealthOrgId != null)
140346
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
140347
+ if (object.b2bOrgId != null)
140348
+ message.b2bOrgId = String(object.b2bOrgId);
140349
+ if (object.gingerOrgId != null)
140350
+ message.gingerOrgId = String(object.gingerOrgId);
140351
+ return message;
140352
+ };
140165
140353
 
140166
140354
  /**
140167
- * ElfRecordPresent country.
140168
- * @member {string} country
140169
- * @memberof ElfRecordPresent
140170
- * @instance
140355
+ * Creates a plain object from an OrganizationIdentifier message. Also converts values to other types if specified.
140356
+ * @function toObject
140357
+ * @memberof OrganizationIdentifier
140358
+ * @static
140359
+ * @param {OrganizationIdentifier} message OrganizationIdentifier
140360
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
140361
+ * @returns {Object.<string,*>} Plain object
140171
140362
  */
140172
- ElfRecordPresent.prototype.country = "";
140363
+ OrganizationIdentifier.toObject = function toObject(message, options) {
140364
+ if (!options)
140365
+ options = {};
140366
+ var object = {};
140367
+ if (options.defaults) {
140368
+ object.headspaceHealthOrgId = "";
140369
+ object.b2bOrgId = "";
140370
+ object.gingerOrgId = "";
140371
+ }
140372
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
140373
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
140374
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
140375
+ object.b2bOrgId = message.b2bOrgId;
140376
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
140377
+ object.gingerOrgId = message.gingerOrgId;
140378
+ return object;
140379
+ };
140173
140380
 
140174
140381
  /**
140175
- * ElfRecordPresent zipCode.
140176
- * @member {string} zipCode
140177
- * @memberof ElfRecordPresent
140382
+ * Converts this OrganizationIdentifier to JSON.
140383
+ * @function toJSON
140384
+ * @memberof OrganizationIdentifier
140178
140385
  * @instance
140386
+ * @returns {Object.<string,*>} JSON object
140179
140387
  */
140180
- ElfRecordPresent.prototype.zipCode = "";
140388
+ OrganizationIdentifier.prototype.toJSON = function toJSON() {
140389
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140390
+ };
140391
+
140392
+ return OrganizationIdentifier;
140393
+ })();
140394
+
140395
+ $root.EligibilityRecordIdentifier = (function() {
140181
140396
 
140182
140397
  /**
140183
- * ElfRecordPresent dob.
140184
- * @member {string} dob
140185
- * @memberof ElfRecordPresent
140186
- * @instance
140398
+ * Properties of an EligibilityRecordIdentifier.
140399
+ * @name IEligibilityRecordIdentifier
140400
+ * @interface IEligibilityRecordIdentifier
140401
+ * @property {KeyType|null} [keyType] EligibilityRecordIdentifier keyType
140402
+ * @property {string|null} [identifier] EligibilityRecordIdentifier identifier
140187
140403
  */
140188
- ElfRecordPresent.prototype.dob = "";
140189
140404
 
140190
140405
  /**
140191
- * ElfRecordPresent countryStateCode.
140192
- * @member {string} countryStateCode
140406
+ * Constructs a new EligibilityRecordIdentifier.
140407
+ * @name EligibilityRecordIdentifier
140408
+ * @classdesc Represents an EligibilityRecordIdentifier.
140409
+ * @implements IEligibilityRecordIdentifier
140410
+ * @constructor
140411
+ * @param {IEligibilityRecordIdentifier=} [properties] Properties to set
140412
+ */
140413
+ function EligibilityRecordIdentifier(properties) {
140414
+ if (properties)
140415
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140416
+ if (properties[keys[i]] != null)
140417
+ this[keys[i]] = properties[keys[i]];
140418
+ }
140419
+
140420
+ /**
140421
+ * EligibilityRecordIdentifier keyType.
140422
+ * @member {KeyType} keyType
140423
+ * @memberof EligibilityRecordIdentifier
140424
+ * @instance
140425
+ */
140426
+ EligibilityRecordIdentifier.prototype.keyType = 0;
140427
+
140428
+ /**
140429
+ * EligibilityRecordIdentifier identifier.
140430
+ * @member {string} identifier
140431
+ * @memberof EligibilityRecordIdentifier
140432
+ * @instance
140433
+ */
140434
+ EligibilityRecordIdentifier.prototype.identifier = "";
140435
+
140436
+ /**
140437
+ * Creates a new EligibilityRecordIdentifier instance using the specified properties.
140438
+ * @function create
140439
+ * @memberof EligibilityRecordIdentifier
140440
+ * @static
140441
+ * @param {IEligibilityRecordIdentifier=} [properties] Properties to set
140442
+ * @returns {EligibilityRecordIdentifier} EligibilityRecordIdentifier instance
140443
+ */
140444
+ EligibilityRecordIdentifier.create = function create(properties) {
140445
+ return new EligibilityRecordIdentifier(properties);
140446
+ };
140447
+
140448
+ /**
140449
+ * Encodes the specified EligibilityRecordIdentifier message. Does not implicitly {@link EligibilityRecordIdentifier.verify|verify} messages.
140450
+ * @function encode
140451
+ * @memberof EligibilityRecordIdentifier
140452
+ * @static
140453
+ * @param {IEligibilityRecordIdentifier} message EligibilityRecordIdentifier message or plain object to encode
140454
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140455
+ * @returns {$protobuf.Writer} Writer
140456
+ */
140457
+ EligibilityRecordIdentifier.encode = function encode(message, writer) {
140458
+ if (!writer)
140459
+ writer = $Writer.create();
140460
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
140461
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.keyType);
140462
+ if (message.identifier != null && message.hasOwnProperty("identifier"))
140463
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.identifier);
140464
+ return writer;
140465
+ };
140466
+
140467
+ /**
140468
+ * Encodes the specified EligibilityRecordIdentifier message, length delimited. Does not implicitly {@link EligibilityRecordIdentifier.verify|verify} messages.
140469
+ * @function encodeDelimited
140470
+ * @memberof EligibilityRecordIdentifier
140471
+ * @static
140472
+ * @param {IEligibilityRecordIdentifier} message EligibilityRecordIdentifier message or plain object to encode
140473
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140474
+ * @returns {$protobuf.Writer} Writer
140475
+ */
140476
+ EligibilityRecordIdentifier.encodeDelimited = function encodeDelimited(message, writer) {
140477
+ return this.encode(message, writer).ldelim();
140478
+ };
140479
+
140480
+ /**
140481
+ * Decodes an EligibilityRecordIdentifier message from the specified reader or buffer.
140482
+ * @function decode
140483
+ * @memberof EligibilityRecordIdentifier
140484
+ * @static
140485
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140486
+ * @param {number} [length] Message length if known beforehand
140487
+ * @returns {EligibilityRecordIdentifier} EligibilityRecordIdentifier
140488
+ * @throws {Error} If the payload is not a reader or valid buffer
140489
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140490
+ */
140491
+ EligibilityRecordIdentifier.decode = function decode(reader, length) {
140492
+ if (!(reader instanceof $Reader))
140493
+ reader = $Reader.create(reader);
140494
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityRecordIdentifier();
140495
+ while (reader.pos < end) {
140496
+ var tag = reader.uint32();
140497
+ switch (tag >>> 3) {
140498
+ case 1:
140499
+ message.keyType = reader.int32();
140500
+ break;
140501
+ case 2:
140502
+ message.identifier = reader.string();
140503
+ break;
140504
+ default:
140505
+ reader.skipType(tag & 7);
140506
+ break;
140507
+ }
140508
+ }
140509
+ return message;
140510
+ };
140511
+
140512
+ /**
140513
+ * Decodes an EligibilityRecordIdentifier message from the specified reader or buffer, length delimited.
140514
+ * @function decodeDelimited
140515
+ * @memberof EligibilityRecordIdentifier
140516
+ * @static
140517
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140518
+ * @returns {EligibilityRecordIdentifier} EligibilityRecordIdentifier
140519
+ * @throws {Error} If the payload is not a reader or valid buffer
140520
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140521
+ */
140522
+ EligibilityRecordIdentifier.decodeDelimited = function decodeDelimited(reader) {
140523
+ if (!(reader instanceof $Reader))
140524
+ reader = new $Reader(reader);
140525
+ return this.decode(reader, reader.uint32());
140526
+ };
140527
+
140528
+ /**
140529
+ * Verifies an EligibilityRecordIdentifier message.
140530
+ * @function verify
140531
+ * @memberof EligibilityRecordIdentifier
140532
+ * @static
140533
+ * @param {Object.<string,*>} message Plain object to verify
140534
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
140535
+ */
140536
+ EligibilityRecordIdentifier.verify = function verify(message) {
140537
+ if (typeof message !== "object" || message === null)
140538
+ return "object expected";
140539
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
140540
+ switch (message.keyType) {
140541
+ default:
140542
+ return "keyType: enum value expected";
140543
+ case 0:
140544
+ case 1:
140545
+ break;
140546
+ }
140547
+ if (message.identifier != null && message.hasOwnProperty("identifier"))
140548
+ if (!$util.isString(message.identifier))
140549
+ return "identifier: string expected";
140550
+ return null;
140551
+ };
140552
+
140553
+ /**
140554
+ * Creates an EligibilityRecordIdentifier message from a plain object. Also converts values to their respective internal types.
140555
+ * @function fromObject
140556
+ * @memberof EligibilityRecordIdentifier
140557
+ * @static
140558
+ * @param {Object.<string,*>} object Plain object
140559
+ * @returns {EligibilityRecordIdentifier} EligibilityRecordIdentifier
140560
+ */
140561
+ EligibilityRecordIdentifier.fromObject = function fromObject(object) {
140562
+ if (object instanceof $root.EligibilityRecordIdentifier)
140563
+ return object;
140564
+ var message = new $root.EligibilityRecordIdentifier();
140565
+ switch (object.keyType) {
140566
+ case "WORK_ID":
140567
+ case 0:
140568
+ message.keyType = 0;
140569
+ break;
140570
+ case "WORK_EMAIL":
140571
+ case 1:
140572
+ message.keyType = 1;
140573
+ break;
140574
+ }
140575
+ if (object.identifier != null)
140576
+ message.identifier = String(object.identifier);
140577
+ return message;
140578
+ };
140579
+
140580
+ /**
140581
+ * Creates a plain object from an EligibilityRecordIdentifier message. Also converts values to other types if specified.
140582
+ * @function toObject
140583
+ * @memberof EligibilityRecordIdentifier
140584
+ * @static
140585
+ * @param {EligibilityRecordIdentifier} message EligibilityRecordIdentifier
140586
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
140587
+ * @returns {Object.<string,*>} Plain object
140588
+ */
140589
+ EligibilityRecordIdentifier.toObject = function toObject(message, options) {
140590
+ if (!options)
140591
+ options = {};
140592
+ var object = {};
140593
+ if (options.defaults) {
140594
+ object.keyType = options.enums === String ? "WORK_ID" : 0;
140595
+ object.identifier = "";
140596
+ }
140597
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
140598
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
140599
+ if (message.identifier != null && message.hasOwnProperty("identifier"))
140600
+ object.identifier = message.identifier;
140601
+ return object;
140602
+ };
140603
+
140604
+ /**
140605
+ * Converts this EligibilityRecordIdentifier to JSON.
140606
+ * @function toJSON
140607
+ * @memberof EligibilityRecordIdentifier
140608
+ * @instance
140609
+ * @returns {Object.<string,*>} JSON object
140610
+ */
140611
+ EligibilityRecordIdentifier.prototype.toJSON = function toJSON() {
140612
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140613
+ };
140614
+
140615
+ return EligibilityRecordIdentifier;
140616
+ })();
140617
+
140618
+ $root.ElfRecordPresent = (function() {
140619
+
140620
+ /**
140621
+ * Properties of an ElfRecordPresent.
140622
+ * @name IElfRecordPresent
140623
+ * @interface IElfRecordPresent
140624
+ * @property {string|null} [headspaceHealthOrgId] ElfRecordPresent headspaceHealthOrgId
140625
+ * @property {string|null} [b2bOrgId] ElfRecordPresent b2bOrgId
140626
+ * @property {string|null} [gingerOrgId] ElfRecordPresent gingerOrgId
140627
+ * @property {number|Long|null} [fileImportedTimestamp] ElfRecordPresent fileImportedTimestamp
140628
+ * @property {number|null} [lineNumber] ElfRecordPresent lineNumber
140629
+ * @property {string|null} [workEmail] ElfRecordPresent workEmail
140630
+ * @property {string|null} [workId] ElfRecordPresent workId
140631
+ * @property {KeyType|null} [keyType] ElfRecordPresent keyType
140632
+ * @property {string|null} [firstName] ElfRecordPresent firstName
140633
+ * @property {string|null} [lastName] ElfRecordPresent lastName
140634
+ * @property {string|null} [country] ElfRecordPresent country
140635
+ * @property {string|null} [zipCode] ElfRecordPresent zipCode
140636
+ * @property {string|null} [dob] ElfRecordPresent dob
140637
+ * @property {string|null} [countryStateCode] ElfRecordPresent countryStateCode
140638
+ * @property {string|null} [streetAddress_1] ElfRecordPresent streetAddress_1
140639
+ * @property {string|null} [streetAddress_2] ElfRecordPresent streetAddress_2
140640
+ * @property {string|null} [department] ElfRecordPresent department
140641
+ * @property {string|null} [language] ElfRecordPresent language
140642
+ * @property {string|null} [customFields] ElfRecordPresent customFields
140643
+ * @property {Array.<b2b.SubscriptionOffering>|null} [offerings] ElfRecordPresent offerings
140644
+ * @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordPresent rootOrgHeadspaceHealthId
140645
+ * @property {string|null} [rootOrgId] ElfRecordPresent rootOrgId
140646
+ * @property {boolean|null} [isMemberMigrated] ElfRecordPresent isMemberMigrated
140647
+ * @property {string|null} [priorB2bOrgId] ElfRecordPresent priorB2bOrgId
140648
+ * @property {string|null} [location] ElfRecordPresent location
140649
+ * @property {string|null} [dependentOf] ElfRecordPresent dependentOf
140650
+ * @property {boolean|null} [isDryRun] ElfRecordPresent isDryRun
140651
+ * @property {boolean|null} [gingerShouldProcess] ElfRecordPresent gingerShouldProcess
140652
+ * @property {boolean|null} [headspaceShouldProcess] ElfRecordPresent headspaceShouldProcess
140653
+ * @property {boolean|null} [unifiedEligibilityEnabled] ElfRecordPresent unifiedEligibilityEnabled
140654
+ * @property {string|null} [collectiveUuid] ElfRecordPresent collectiveUuid
140655
+ */
140656
+
140657
+ /**
140658
+ * Constructs a new ElfRecordPresent.
140659
+ * @name ElfRecordPresent
140660
+ * @classdesc Represents an ElfRecordPresent.
140661
+ * @implements IElfRecordPresent
140662
+ * @constructor
140663
+ * @param {IElfRecordPresent=} [properties] Properties to set
140664
+ */
140665
+ function ElfRecordPresent(properties) {
140666
+ this.offerings = [];
140667
+ if (properties)
140668
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140669
+ if (properties[keys[i]] != null)
140670
+ this[keys[i]] = properties[keys[i]];
140671
+ }
140672
+
140673
+ /**
140674
+ * ElfRecordPresent headspaceHealthOrgId.
140675
+ * @member {string} headspaceHealthOrgId
140193
140676
  * @memberof ElfRecordPresent
140194
140677
  * @instance
140195
140678
  */
140196
- ElfRecordPresent.prototype.countryStateCode = "";
140679
+ ElfRecordPresent.prototype.headspaceHealthOrgId = "";
140197
140680
 
140198
140681
  /**
140199
- * ElfRecordPresent streetAddress_1.
140200
- * @member {string} streetAddress_1
140682
+ * ElfRecordPresent b2bOrgId.
140683
+ * @member {string} b2bOrgId
140201
140684
  * @memberof ElfRecordPresent
140202
140685
  * @instance
140203
140686
  */
140204
- ElfRecordPresent.prototype.streetAddress_1 = "";
140687
+ ElfRecordPresent.prototype.b2bOrgId = "";
140205
140688
 
140206
140689
  /**
140207
- * ElfRecordPresent streetAddress_2.
140208
- * @member {string} streetAddress_2
140690
+ * ElfRecordPresent gingerOrgId.
140691
+ * @member {string} gingerOrgId
140209
140692
  * @memberof ElfRecordPresent
140210
140693
  * @instance
140211
140694
  */
140212
- ElfRecordPresent.prototype.streetAddress_2 = "";
140695
+ ElfRecordPresent.prototype.gingerOrgId = "";
140213
140696
 
140214
140697
  /**
140215
- * ElfRecordPresent department.
140216
- * @member {string} department
140698
+ * ElfRecordPresent fileImportedTimestamp.
140699
+ * @member {number|Long} fileImportedTimestamp
140217
140700
  * @memberof ElfRecordPresent
140218
140701
  * @instance
140219
140702
  */
140220
- ElfRecordPresent.prototype.department = "";
140703
+ ElfRecordPresent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140221
140704
 
140222
140705
  /**
140223
- * ElfRecordPresent language.
140224
- * @member {string} language
140706
+ * ElfRecordPresent lineNumber.
140707
+ * @member {number} lineNumber
140225
140708
  * @memberof ElfRecordPresent
140226
140709
  * @instance
140227
140710
  */
140228
- ElfRecordPresent.prototype.language = "";
140711
+ ElfRecordPresent.prototype.lineNumber = 0;
140229
140712
 
140230
140713
  /**
140231
- * ElfRecordPresent customFields.
140232
- * @member {string} customFields
140714
+ * ElfRecordPresent workEmail.
140715
+ * @member {string} workEmail
140716
+ * @memberof ElfRecordPresent
140717
+ * @instance
140718
+ */
140719
+ ElfRecordPresent.prototype.workEmail = "";
140720
+
140721
+ /**
140722
+ * ElfRecordPresent workId.
140723
+ * @member {string} workId
140724
+ * @memberof ElfRecordPresent
140725
+ * @instance
140726
+ */
140727
+ ElfRecordPresent.prototype.workId = "";
140728
+
140729
+ /**
140730
+ * ElfRecordPresent keyType.
140731
+ * @member {KeyType} keyType
140233
140732
  * @memberof ElfRecordPresent
140234
140733
  * @instance
140235
140734
  */
140236
- ElfRecordPresent.prototype.customFields = "";
140735
+ ElfRecordPresent.prototype.keyType = 0;
140736
+
140737
+ /**
140738
+ * ElfRecordPresent firstName.
140739
+ * @member {string} firstName
140740
+ * @memberof ElfRecordPresent
140741
+ * @instance
140742
+ */
140743
+ ElfRecordPresent.prototype.firstName = "";
140744
+
140745
+ /**
140746
+ * ElfRecordPresent lastName.
140747
+ * @member {string} lastName
140748
+ * @memberof ElfRecordPresent
140749
+ * @instance
140750
+ */
140751
+ ElfRecordPresent.prototype.lastName = "";
140752
+
140753
+ /**
140754
+ * ElfRecordPresent country.
140755
+ * @member {string} country
140756
+ * @memberof ElfRecordPresent
140757
+ * @instance
140758
+ */
140759
+ ElfRecordPresent.prototype.country = "";
140760
+
140761
+ /**
140762
+ * ElfRecordPresent zipCode.
140763
+ * @member {string} zipCode
140764
+ * @memberof ElfRecordPresent
140765
+ * @instance
140766
+ */
140767
+ ElfRecordPresent.prototype.zipCode = "";
140768
+
140769
+ /**
140770
+ * ElfRecordPresent dob.
140771
+ * @member {string} dob
140772
+ * @memberof ElfRecordPresent
140773
+ * @instance
140774
+ */
140775
+ ElfRecordPresent.prototype.dob = "";
140776
+
140777
+ /**
140778
+ * ElfRecordPresent countryStateCode.
140779
+ * @member {string} countryStateCode
140780
+ * @memberof ElfRecordPresent
140781
+ * @instance
140782
+ */
140783
+ ElfRecordPresent.prototype.countryStateCode = "";
140784
+
140785
+ /**
140786
+ * ElfRecordPresent streetAddress_1.
140787
+ * @member {string} streetAddress_1
140788
+ * @memberof ElfRecordPresent
140789
+ * @instance
140790
+ */
140791
+ ElfRecordPresent.prototype.streetAddress_1 = "";
140792
+
140793
+ /**
140794
+ * ElfRecordPresent streetAddress_2.
140795
+ * @member {string} streetAddress_2
140796
+ * @memberof ElfRecordPresent
140797
+ * @instance
140798
+ */
140799
+ ElfRecordPresent.prototype.streetAddress_2 = "";
140800
+
140801
+ /**
140802
+ * ElfRecordPresent department.
140803
+ * @member {string} department
140804
+ * @memberof ElfRecordPresent
140805
+ * @instance
140806
+ */
140807
+ ElfRecordPresent.prototype.department = "";
140808
+
140809
+ /**
140810
+ * ElfRecordPresent language.
140811
+ * @member {string} language
140812
+ * @memberof ElfRecordPresent
140813
+ * @instance
140814
+ */
140815
+ ElfRecordPresent.prototype.language = "";
140816
+
140817
+ /**
140818
+ * ElfRecordPresent customFields.
140819
+ * @member {string} customFields
140820
+ * @memberof ElfRecordPresent
140821
+ * @instance
140822
+ */
140823
+ ElfRecordPresent.prototype.customFields = "";
140824
+
140825
+ /**
140826
+ * ElfRecordPresent offerings.
140827
+ * @member {Array.<b2b.SubscriptionOffering>} offerings
140828
+ * @memberof ElfRecordPresent
140829
+ * @instance
140830
+ */
140831
+ ElfRecordPresent.prototype.offerings = $util.emptyArray;
140832
+
140833
+ /**
140834
+ * ElfRecordPresent rootOrgHeadspaceHealthId.
140835
+ * @member {string} rootOrgHeadspaceHealthId
140836
+ * @memberof ElfRecordPresent
140837
+ * @instance
140838
+ */
140839
+ ElfRecordPresent.prototype.rootOrgHeadspaceHealthId = "";
140840
+
140841
+ /**
140842
+ * ElfRecordPresent rootOrgId.
140843
+ * @member {string} rootOrgId
140844
+ * @memberof ElfRecordPresent
140845
+ * @instance
140846
+ */
140847
+ ElfRecordPresent.prototype.rootOrgId = "";
140848
+
140849
+ /**
140850
+ * ElfRecordPresent isMemberMigrated.
140851
+ * @member {boolean} isMemberMigrated
140852
+ * @memberof ElfRecordPresent
140853
+ * @instance
140854
+ */
140855
+ ElfRecordPresent.prototype.isMemberMigrated = false;
140856
+
140857
+ /**
140858
+ * ElfRecordPresent priorB2bOrgId.
140859
+ * @member {string} priorB2bOrgId
140860
+ * @memberof ElfRecordPresent
140861
+ * @instance
140862
+ */
140863
+ ElfRecordPresent.prototype.priorB2bOrgId = "";
140864
+
140865
+ /**
140866
+ * ElfRecordPresent location.
140867
+ * @member {string} location
140868
+ * @memberof ElfRecordPresent
140869
+ * @instance
140870
+ */
140871
+ ElfRecordPresent.prototype.location = "";
140872
+
140873
+ /**
140874
+ * ElfRecordPresent dependentOf.
140875
+ * @member {string} dependentOf
140876
+ * @memberof ElfRecordPresent
140877
+ * @instance
140878
+ */
140879
+ ElfRecordPresent.prototype.dependentOf = "";
140880
+
140881
+ /**
140882
+ * ElfRecordPresent isDryRun.
140883
+ * @member {boolean} isDryRun
140884
+ * @memberof ElfRecordPresent
140885
+ * @instance
140886
+ */
140887
+ ElfRecordPresent.prototype.isDryRun = false;
140888
+
140889
+ /**
140890
+ * ElfRecordPresent gingerShouldProcess.
140891
+ * @member {boolean} gingerShouldProcess
140892
+ * @memberof ElfRecordPresent
140893
+ * @instance
140894
+ */
140895
+ ElfRecordPresent.prototype.gingerShouldProcess = false;
140896
+
140897
+ /**
140898
+ * ElfRecordPresent headspaceShouldProcess.
140899
+ * @member {boolean} headspaceShouldProcess
140900
+ * @memberof ElfRecordPresent
140901
+ * @instance
140902
+ */
140903
+ ElfRecordPresent.prototype.headspaceShouldProcess = false;
140904
+
140905
+ /**
140906
+ * ElfRecordPresent unifiedEligibilityEnabled.
140907
+ * @member {boolean} unifiedEligibilityEnabled
140908
+ * @memberof ElfRecordPresent
140909
+ * @instance
140910
+ */
140911
+ ElfRecordPresent.prototype.unifiedEligibilityEnabled = false;
140912
+
140913
+ /**
140914
+ * ElfRecordPresent collectiveUuid.
140915
+ * @member {string} collectiveUuid
140916
+ * @memberof ElfRecordPresent
140917
+ * @instance
140918
+ */
140919
+ ElfRecordPresent.prototype.collectiveUuid = "";
140920
+
140921
+ /**
140922
+ * Creates a new ElfRecordPresent instance using the specified properties.
140923
+ * @function create
140924
+ * @memberof ElfRecordPresent
140925
+ * @static
140926
+ * @param {IElfRecordPresent=} [properties] Properties to set
140927
+ * @returns {ElfRecordPresent} ElfRecordPresent instance
140928
+ */
140929
+ ElfRecordPresent.create = function create(properties) {
140930
+ return new ElfRecordPresent(properties);
140931
+ };
140932
+
140933
+ /**
140934
+ * Encodes the specified ElfRecordPresent message. Does not implicitly {@link ElfRecordPresent.verify|verify} messages.
140935
+ * @function encode
140936
+ * @memberof ElfRecordPresent
140937
+ * @static
140938
+ * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
140939
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140940
+ * @returns {$protobuf.Writer} Writer
140941
+ */
140942
+ ElfRecordPresent.encode = function encode(message, writer) {
140943
+ if (!writer)
140944
+ writer = $Writer.create();
140945
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
140946
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
140947
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
140948
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
140949
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
140950
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
140951
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
140952
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileImportedTimestamp);
140953
+ if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
140954
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.lineNumber);
140955
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
140956
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.workEmail);
140957
+ if (message.workId != null && message.hasOwnProperty("workId"))
140958
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.workId);
140959
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
140960
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.keyType);
140961
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
140962
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.firstName);
140963
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
140964
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.lastName);
140965
+ if (message.country != null && message.hasOwnProperty("country"))
140966
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.country);
140967
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
140968
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.zipCode);
140969
+ if (message.dob != null && message.hasOwnProperty("dob"))
140970
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.dob);
140971
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
140972
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.streetAddress_1);
140973
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
140974
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.streetAddress_2);
140975
+ if (message.department != null && message.hasOwnProperty("department"))
140976
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.department);
140977
+ if (message.language != null && message.hasOwnProperty("language"))
140978
+ writer.uint32(/* id 17, wireType 2 =*/138).string(message.language);
140979
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
140980
+ writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDryRun);
140981
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
140982
+ writer.uint32(/* id 19, wireType 0 =*/152).bool(message.gingerShouldProcess);
140983
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
140984
+ writer.uint32(/* id 20, wireType 0 =*/160).bool(message.headspaceShouldProcess);
140985
+ if (message.customFields != null && message.hasOwnProperty("customFields"))
140986
+ writer.uint32(/* id 21, wireType 2 =*/170).string(message.customFields);
140987
+ if (message.offerings != null && message.offerings.length) {
140988
+ writer.uint32(/* id 22, wireType 2 =*/178).fork();
140989
+ for (var i = 0; i < message.offerings.length; ++i)
140990
+ writer.int32(message.offerings[i]);
140991
+ writer.ldelim();
140992
+ }
140993
+ if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
140994
+ writer.uint32(/* id 23, wireType 0 =*/184).bool(message.unifiedEligibilityEnabled);
140995
+ if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
140996
+ writer.uint32(/* id 24, wireType 2 =*/194).string(message.rootOrgHeadspaceHealthId);
140997
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
140998
+ writer.uint32(/* id 25, wireType 2 =*/202).string(message.rootOrgId);
140999
+ if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141000
+ writer.uint32(/* id 26, wireType 0 =*/208).bool(message.isMemberMigrated);
141001
+ if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
141002
+ writer.uint32(/* id 27, wireType 2 =*/218).string(message.priorB2bOrgId);
141003
+ if (message.location != null && message.hasOwnProperty("location"))
141004
+ writer.uint32(/* id 28, wireType 2 =*/226).string(message.location);
141005
+ if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
141006
+ writer.uint32(/* id 29, wireType 2 =*/234).string(message.countryStateCode);
141007
+ if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
141008
+ writer.uint32(/* id 30, wireType 2 =*/242).string(message.dependentOf);
141009
+ if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141010
+ writer.uint32(/* id 31, wireType 2 =*/250).string(message.collectiveUuid);
141011
+ return writer;
141012
+ };
141013
+
141014
+ /**
141015
+ * Encodes the specified ElfRecordPresent message, length delimited. Does not implicitly {@link ElfRecordPresent.verify|verify} messages.
141016
+ * @function encodeDelimited
141017
+ * @memberof ElfRecordPresent
141018
+ * @static
141019
+ * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
141020
+ * @param {$protobuf.Writer} [writer] Writer to encode to
141021
+ * @returns {$protobuf.Writer} Writer
141022
+ */
141023
+ ElfRecordPresent.encodeDelimited = function encodeDelimited(message, writer) {
141024
+ return this.encode(message, writer).ldelim();
141025
+ };
141026
+
141027
+ /**
141028
+ * Decodes an ElfRecordPresent message from the specified reader or buffer.
141029
+ * @function decode
141030
+ * @memberof ElfRecordPresent
141031
+ * @static
141032
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
141033
+ * @param {number} [length] Message length if known beforehand
141034
+ * @returns {ElfRecordPresent} ElfRecordPresent
141035
+ * @throws {Error} If the payload is not a reader or valid buffer
141036
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
141037
+ */
141038
+ ElfRecordPresent.decode = function decode(reader, length) {
141039
+ if (!(reader instanceof $Reader))
141040
+ reader = $Reader.create(reader);
141041
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfRecordPresent();
141042
+ while (reader.pos < end) {
141043
+ var tag = reader.uint32();
141044
+ switch (tag >>> 3) {
141045
+ case 1:
141046
+ message.headspaceHealthOrgId = reader.string();
141047
+ break;
141048
+ case 2:
141049
+ message.b2bOrgId = reader.string();
141050
+ break;
141051
+ case 3:
141052
+ message.gingerOrgId = reader.string();
141053
+ break;
141054
+ case 4:
141055
+ message.fileImportedTimestamp = reader.uint64();
141056
+ break;
141057
+ case 5:
141058
+ message.lineNumber = reader.int32();
141059
+ break;
141060
+ case 6:
141061
+ message.workEmail = reader.string();
141062
+ break;
141063
+ case 7:
141064
+ message.workId = reader.string();
141065
+ break;
141066
+ case 8:
141067
+ message.keyType = reader.int32();
141068
+ break;
141069
+ case 9:
141070
+ message.firstName = reader.string();
141071
+ break;
141072
+ case 10:
141073
+ message.lastName = reader.string();
141074
+ break;
141075
+ case 11:
141076
+ message.country = reader.string();
141077
+ break;
141078
+ case 12:
141079
+ message.zipCode = reader.string();
141080
+ break;
141081
+ case 13:
141082
+ message.dob = reader.string();
141083
+ break;
141084
+ case 29:
141085
+ message.countryStateCode = reader.string();
141086
+ break;
141087
+ case 14:
141088
+ message.streetAddress_1 = reader.string();
141089
+ break;
141090
+ case 15:
141091
+ message.streetAddress_2 = reader.string();
141092
+ break;
141093
+ case 16:
141094
+ message.department = reader.string();
141095
+ break;
141096
+ case 17:
141097
+ message.language = reader.string();
141098
+ break;
141099
+ case 21:
141100
+ message.customFields = reader.string();
141101
+ break;
141102
+ case 22:
141103
+ if (!(message.offerings && message.offerings.length))
141104
+ message.offerings = [];
141105
+ if ((tag & 7) === 2) {
141106
+ var end2 = reader.uint32() + reader.pos;
141107
+ while (reader.pos < end2)
141108
+ message.offerings.push(reader.int32());
141109
+ } else
141110
+ message.offerings.push(reader.int32());
141111
+ break;
141112
+ case 24:
141113
+ message.rootOrgHeadspaceHealthId = reader.string();
141114
+ break;
141115
+ case 25:
141116
+ message.rootOrgId = reader.string();
141117
+ break;
141118
+ case 26:
141119
+ message.isMemberMigrated = reader.bool();
141120
+ break;
141121
+ case 27:
141122
+ message.priorB2bOrgId = reader.string();
141123
+ break;
141124
+ case 28:
141125
+ message.location = reader.string();
141126
+ break;
141127
+ case 30:
141128
+ message.dependentOf = reader.string();
141129
+ break;
141130
+ case 18:
141131
+ message.isDryRun = reader.bool();
141132
+ break;
141133
+ case 19:
141134
+ message.gingerShouldProcess = reader.bool();
141135
+ break;
141136
+ case 20:
141137
+ message.headspaceShouldProcess = reader.bool();
141138
+ break;
141139
+ case 23:
141140
+ message.unifiedEligibilityEnabled = reader.bool();
141141
+ break;
141142
+ case 31:
141143
+ message.collectiveUuid = reader.string();
141144
+ break;
141145
+ default:
141146
+ reader.skipType(tag & 7);
141147
+ break;
141148
+ }
141149
+ }
141150
+ return message;
141151
+ };
141152
+
141153
+ /**
141154
+ * Decodes an ElfRecordPresent message from the specified reader or buffer, length delimited.
141155
+ * @function decodeDelimited
141156
+ * @memberof ElfRecordPresent
141157
+ * @static
141158
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
141159
+ * @returns {ElfRecordPresent} ElfRecordPresent
141160
+ * @throws {Error} If the payload is not a reader or valid buffer
141161
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
141162
+ */
141163
+ ElfRecordPresent.decodeDelimited = function decodeDelimited(reader) {
141164
+ if (!(reader instanceof $Reader))
141165
+ reader = new $Reader(reader);
141166
+ return this.decode(reader, reader.uint32());
141167
+ };
141168
+
141169
+ /**
141170
+ * Verifies an ElfRecordPresent message.
141171
+ * @function verify
141172
+ * @memberof ElfRecordPresent
141173
+ * @static
141174
+ * @param {Object.<string,*>} message Plain object to verify
141175
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
141176
+ */
141177
+ ElfRecordPresent.verify = function verify(message) {
141178
+ if (typeof message !== "object" || message === null)
141179
+ return "object expected";
141180
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141181
+ if (!$util.isString(message.headspaceHealthOrgId))
141182
+ return "headspaceHealthOrgId: string expected";
141183
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141184
+ if (!$util.isString(message.b2bOrgId))
141185
+ return "b2bOrgId: string expected";
141186
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141187
+ if (!$util.isString(message.gingerOrgId))
141188
+ return "gingerOrgId: string expected";
141189
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141190
+ if (!$util.isInteger(message.fileImportedTimestamp) && !(message.fileImportedTimestamp && $util.isInteger(message.fileImportedTimestamp.low) && $util.isInteger(message.fileImportedTimestamp.high)))
141191
+ return "fileImportedTimestamp: integer|Long expected";
141192
+ if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
141193
+ if (!$util.isInteger(message.lineNumber))
141194
+ return "lineNumber: integer expected";
141195
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141196
+ if (!$util.isString(message.workEmail))
141197
+ return "workEmail: string expected";
141198
+ if (message.workId != null && message.hasOwnProperty("workId"))
141199
+ if (!$util.isString(message.workId))
141200
+ return "workId: string expected";
141201
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
141202
+ switch (message.keyType) {
141203
+ default:
141204
+ return "keyType: enum value expected";
141205
+ case 0:
141206
+ case 1:
141207
+ break;
141208
+ }
141209
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
141210
+ if (!$util.isString(message.firstName))
141211
+ return "firstName: string expected";
141212
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
141213
+ if (!$util.isString(message.lastName))
141214
+ return "lastName: string expected";
141215
+ if (message.country != null && message.hasOwnProperty("country"))
141216
+ if (!$util.isString(message.country))
141217
+ return "country: string expected";
141218
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
141219
+ if (!$util.isString(message.zipCode))
141220
+ return "zipCode: string expected";
141221
+ if (message.dob != null && message.hasOwnProperty("dob"))
141222
+ if (!$util.isString(message.dob))
141223
+ return "dob: string expected";
141224
+ if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
141225
+ if (!$util.isString(message.countryStateCode))
141226
+ return "countryStateCode: string expected";
141227
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
141228
+ if (!$util.isString(message.streetAddress_1))
141229
+ return "streetAddress_1: string expected";
141230
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
141231
+ if (!$util.isString(message.streetAddress_2))
141232
+ return "streetAddress_2: string expected";
141233
+ if (message.department != null && message.hasOwnProperty("department"))
141234
+ if (!$util.isString(message.department))
141235
+ return "department: string expected";
141236
+ if (message.language != null && message.hasOwnProperty("language"))
141237
+ if (!$util.isString(message.language))
141238
+ return "language: string expected";
141239
+ if (message.customFields != null && message.hasOwnProperty("customFields"))
141240
+ if (!$util.isString(message.customFields))
141241
+ return "customFields: string expected";
141242
+ if (message.offerings != null && message.hasOwnProperty("offerings")) {
141243
+ if (!Array.isArray(message.offerings))
141244
+ return "offerings: array expected";
141245
+ for (var i = 0; i < message.offerings.length; ++i)
141246
+ switch (message.offerings[i]) {
141247
+ default:
141248
+ return "offerings: enum value[] expected";
141249
+ case 0:
141250
+ case 1:
141251
+ case 2:
141252
+ break;
141253
+ }
141254
+ }
141255
+ if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141256
+ if (!$util.isString(message.rootOrgHeadspaceHealthId))
141257
+ return "rootOrgHeadspaceHealthId: string expected";
141258
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141259
+ if (!$util.isString(message.rootOrgId))
141260
+ return "rootOrgId: string expected";
141261
+ if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141262
+ if (typeof message.isMemberMigrated !== "boolean")
141263
+ return "isMemberMigrated: boolean expected";
141264
+ if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
141265
+ if (!$util.isString(message.priorB2bOrgId))
141266
+ return "priorB2bOrgId: string expected";
141267
+ if (message.location != null && message.hasOwnProperty("location"))
141268
+ if (!$util.isString(message.location))
141269
+ return "location: string expected";
141270
+ if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
141271
+ if (!$util.isString(message.dependentOf))
141272
+ return "dependentOf: string expected";
141273
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141274
+ if (typeof message.isDryRun !== "boolean")
141275
+ return "isDryRun: boolean expected";
141276
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141277
+ if (typeof message.gingerShouldProcess !== "boolean")
141278
+ return "gingerShouldProcess: boolean expected";
141279
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141280
+ if (typeof message.headspaceShouldProcess !== "boolean")
141281
+ return "headspaceShouldProcess: boolean expected";
141282
+ if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141283
+ if (typeof message.unifiedEligibilityEnabled !== "boolean")
141284
+ return "unifiedEligibilityEnabled: boolean expected";
141285
+ if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141286
+ if (!$util.isString(message.collectiveUuid))
141287
+ return "collectiveUuid: string expected";
141288
+ return null;
141289
+ };
141290
+
141291
+ /**
141292
+ * Creates an ElfRecordPresent message from a plain object. Also converts values to their respective internal types.
141293
+ * @function fromObject
141294
+ * @memberof ElfRecordPresent
141295
+ * @static
141296
+ * @param {Object.<string,*>} object Plain object
141297
+ * @returns {ElfRecordPresent} ElfRecordPresent
141298
+ */
141299
+ ElfRecordPresent.fromObject = function fromObject(object) {
141300
+ if (object instanceof $root.ElfRecordPresent)
141301
+ return object;
141302
+ var message = new $root.ElfRecordPresent();
141303
+ if (object.headspaceHealthOrgId != null)
141304
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
141305
+ if (object.b2bOrgId != null)
141306
+ message.b2bOrgId = String(object.b2bOrgId);
141307
+ if (object.gingerOrgId != null)
141308
+ message.gingerOrgId = String(object.gingerOrgId);
141309
+ if (object.fileImportedTimestamp != null)
141310
+ if ($util.Long)
141311
+ (message.fileImportedTimestamp = $util.Long.fromValue(object.fileImportedTimestamp)).unsigned = true;
141312
+ else if (typeof object.fileImportedTimestamp === "string")
141313
+ message.fileImportedTimestamp = parseInt(object.fileImportedTimestamp, 10);
141314
+ else if (typeof object.fileImportedTimestamp === "number")
141315
+ message.fileImportedTimestamp = object.fileImportedTimestamp;
141316
+ else if (typeof object.fileImportedTimestamp === "object")
141317
+ message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
141318
+ if (object.lineNumber != null)
141319
+ message.lineNumber = object.lineNumber | 0;
141320
+ if (object.workEmail != null)
141321
+ message.workEmail = String(object.workEmail);
141322
+ if (object.workId != null)
141323
+ message.workId = String(object.workId);
141324
+ switch (object.keyType) {
141325
+ case "WORK_ID":
141326
+ case 0:
141327
+ message.keyType = 0;
141328
+ break;
141329
+ case "WORK_EMAIL":
141330
+ case 1:
141331
+ message.keyType = 1;
141332
+ break;
141333
+ }
141334
+ if (object.firstName != null)
141335
+ message.firstName = String(object.firstName);
141336
+ if (object.lastName != null)
141337
+ message.lastName = String(object.lastName);
141338
+ if (object.country != null)
141339
+ message.country = String(object.country);
141340
+ if (object.zipCode != null)
141341
+ message.zipCode = String(object.zipCode);
141342
+ if (object.dob != null)
141343
+ message.dob = String(object.dob);
141344
+ if (object.countryStateCode != null)
141345
+ message.countryStateCode = String(object.countryStateCode);
141346
+ if (object.streetAddress_1 != null)
141347
+ message.streetAddress_1 = String(object.streetAddress_1);
141348
+ if (object.streetAddress_2 != null)
141349
+ message.streetAddress_2 = String(object.streetAddress_2);
141350
+ if (object.department != null)
141351
+ message.department = String(object.department);
141352
+ if (object.language != null)
141353
+ message.language = String(object.language);
141354
+ if (object.customFields != null)
141355
+ message.customFields = String(object.customFields);
141356
+ if (object.offerings) {
141357
+ if (!Array.isArray(object.offerings))
141358
+ throw TypeError(".ElfRecordPresent.offerings: array expected");
141359
+ message.offerings = [];
141360
+ for (var i = 0; i < object.offerings.length; ++i)
141361
+ switch (object.offerings[i]) {
141362
+ default:
141363
+ case "SUBSCRIPTION_OFFERING_UNKNOWN":
141364
+ case 0:
141365
+ message.offerings[i] = 0;
141366
+ break;
141367
+ case "SUBSCRIPTION_OFFERING_HEADSPACE":
141368
+ case 1:
141369
+ message.offerings[i] = 1;
141370
+ break;
141371
+ case "SUBSCRIPTION_OFFERING_GINGER":
141372
+ case 2:
141373
+ message.offerings[i] = 2;
141374
+ break;
141375
+ }
141376
+ }
141377
+ if (object.rootOrgHeadspaceHealthId != null)
141378
+ message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
141379
+ if (object.rootOrgId != null)
141380
+ message.rootOrgId = String(object.rootOrgId);
141381
+ if (object.isMemberMigrated != null)
141382
+ message.isMemberMigrated = Boolean(object.isMemberMigrated);
141383
+ if (object.priorB2bOrgId != null)
141384
+ message.priorB2bOrgId = String(object.priorB2bOrgId);
141385
+ if (object.location != null)
141386
+ message.location = String(object.location);
141387
+ if (object.dependentOf != null)
141388
+ message.dependentOf = String(object.dependentOf);
141389
+ if (object.isDryRun != null)
141390
+ message.isDryRun = Boolean(object.isDryRun);
141391
+ if (object.gingerShouldProcess != null)
141392
+ message.gingerShouldProcess = Boolean(object.gingerShouldProcess);
141393
+ if (object.headspaceShouldProcess != null)
141394
+ message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
141395
+ if (object.unifiedEligibilityEnabled != null)
141396
+ message.unifiedEligibilityEnabled = Boolean(object.unifiedEligibilityEnabled);
141397
+ if (object.collectiveUuid != null)
141398
+ message.collectiveUuid = String(object.collectiveUuid);
141399
+ return message;
141400
+ };
141401
+
141402
+ /**
141403
+ * Creates a plain object from an ElfRecordPresent message. Also converts values to other types if specified.
141404
+ * @function toObject
141405
+ * @memberof ElfRecordPresent
141406
+ * @static
141407
+ * @param {ElfRecordPresent} message ElfRecordPresent
141408
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
141409
+ * @returns {Object.<string,*>} Plain object
141410
+ */
141411
+ ElfRecordPresent.toObject = function toObject(message, options) {
141412
+ if (!options)
141413
+ options = {};
141414
+ var object = {};
141415
+ if (options.arrays || options.defaults)
141416
+ object.offerings = [];
141417
+ if (options.defaults) {
141418
+ object.headspaceHealthOrgId = "";
141419
+ object.b2bOrgId = "";
141420
+ object.gingerOrgId = "";
141421
+ if ($util.Long) {
141422
+ var long = new $util.Long(0, 0, true);
141423
+ object.fileImportedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
141424
+ } else
141425
+ object.fileImportedTimestamp = options.longs === String ? "0" : 0;
141426
+ object.lineNumber = 0;
141427
+ object.workEmail = "";
141428
+ object.workId = "";
141429
+ object.keyType = options.enums === String ? "WORK_ID" : 0;
141430
+ object.firstName = "";
141431
+ object.lastName = "";
141432
+ object.country = "";
141433
+ object.zipCode = "";
141434
+ object.dob = "";
141435
+ object.streetAddress_1 = "";
141436
+ object.streetAddress_2 = "";
141437
+ object.department = "";
141438
+ object.language = "";
141439
+ object.isDryRun = false;
141440
+ object.gingerShouldProcess = false;
141441
+ object.headspaceShouldProcess = false;
141442
+ object.customFields = "";
141443
+ object.unifiedEligibilityEnabled = false;
141444
+ object.rootOrgHeadspaceHealthId = "";
141445
+ object.rootOrgId = "";
141446
+ object.isMemberMigrated = false;
141447
+ object.priorB2bOrgId = "";
141448
+ object.location = "";
141449
+ object.countryStateCode = "";
141450
+ object.dependentOf = "";
141451
+ object.collectiveUuid = "";
141452
+ }
141453
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141454
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
141455
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141456
+ object.b2bOrgId = message.b2bOrgId;
141457
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141458
+ object.gingerOrgId = message.gingerOrgId;
141459
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141460
+ if (typeof message.fileImportedTimestamp === "number")
141461
+ object.fileImportedTimestamp = options.longs === String ? String(message.fileImportedTimestamp) : message.fileImportedTimestamp;
141462
+ else
141463
+ object.fileImportedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.fileImportedTimestamp) : options.longs === Number ? new $util.LongBits(message.fileImportedTimestamp.low >>> 0, message.fileImportedTimestamp.high >>> 0).toNumber(true) : message.fileImportedTimestamp;
141464
+ if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
141465
+ object.lineNumber = message.lineNumber;
141466
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141467
+ object.workEmail = message.workEmail;
141468
+ if (message.workId != null && message.hasOwnProperty("workId"))
141469
+ object.workId = message.workId;
141470
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
141471
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
141472
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
141473
+ object.firstName = message.firstName;
141474
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
141475
+ object.lastName = message.lastName;
141476
+ if (message.country != null && message.hasOwnProperty("country"))
141477
+ object.country = message.country;
141478
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
141479
+ object.zipCode = message.zipCode;
141480
+ if (message.dob != null && message.hasOwnProperty("dob"))
141481
+ object.dob = message.dob;
141482
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
141483
+ object.streetAddress_1 = message.streetAddress_1;
141484
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
141485
+ object.streetAddress_2 = message.streetAddress_2;
141486
+ if (message.department != null && message.hasOwnProperty("department"))
141487
+ object.department = message.department;
141488
+ if (message.language != null && message.hasOwnProperty("language"))
141489
+ object.language = message.language;
141490
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141491
+ object.isDryRun = message.isDryRun;
141492
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141493
+ object.gingerShouldProcess = message.gingerShouldProcess;
141494
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141495
+ object.headspaceShouldProcess = message.headspaceShouldProcess;
141496
+ if (message.customFields != null && message.hasOwnProperty("customFields"))
141497
+ object.customFields = message.customFields;
141498
+ if (message.offerings && message.offerings.length) {
141499
+ object.offerings = [];
141500
+ for (var j = 0; j < message.offerings.length; ++j)
141501
+ object.offerings[j] = options.enums === String ? $root.b2b.SubscriptionOffering[message.offerings[j]] : message.offerings[j];
141502
+ }
141503
+ if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141504
+ object.unifiedEligibilityEnabled = message.unifiedEligibilityEnabled;
141505
+ if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141506
+ object.rootOrgHeadspaceHealthId = message.rootOrgHeadspaceHealthId;
141507
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141508
+ object.rootOrgId = message.rootOrgId;
141509
+ if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141510
+ object.isMemberMigrated = message.isMemberMigrated;
141511
+ if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
141512
+ object.priorB2bOrgId = message.priorB2bOrgId;
141513
+ if (message.location != null && message.hasOwnProperty("location"))
141514
+ object.location = message.location;
141515
+ if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
141516
+ object.countryStateCode = message.countryStateCode;
141517
+ if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
141518
+ object.dependentOf = message.dependentOf;
141519
+ if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141520
+ object.collectiveUuid = message.collectiveUuid;
141521
+ return object;
141522
+ };
141523
+
141524
+ /**
141525
+ * Converts this ElfRecordPresent to JSON.
141526
+ * @function toJSON
141527
+ * @memberof ElfRecordPresent
141528
+ * @instance
141529
+ * @returns {Object.<string,*>} JSON object
141530
+ */
141531
+ ElfRecordPresent.prototype.toJSON = function toJSON() {
141532
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
141533
+ };
141534
+
141535
+ return ElfRecordPresent;
141536
+ })();
141537
+
141538
+ $root.ElfRecordAbsent = (function() {
141539
+
141540
+ /**
141541
+ * Properties of an ElfRecordAbsent.
141542
+ * @name IElfRecordAbsent
141543
+ * @interface IElfRecordAbsent
141544
+ * @property {string|null} [headspaceHealthOrgId] ElfRecordAbsent headspaceHealthOrgId
141545
+ * @property {string|null} [b2bOrgId] ElfRecordAbsent b2bOrgId
141546
+ * @property {string|null} [gingerOrgId] ElfRecordAbsent gingerOrgId
141547
+ * @property {number|Long|null} [fileImportedTimestamp] ElfRecordAbsent fileImportedTimestamp
141548
+ * @property {string|null} [workEmail] ElfRecordAbsent workEmail
141549
+ * @property {string|null} [workId] ElfRecordAbsent workId
141550
+ * @property {KeyType|null} [keyType] ElfRecordAbsent keyType
141551
+ * @property {boolean|null} [isDryRun] ElfRecordAbsent isDryRun
141552
+ * @property {boolean|null} [gingerShouldProcess] ElfRecordAbsent gingerShouldProcess
141553
+ * @property {boolean|null} [headspaceShouldProcess] ElfRecordAbsent headspaceShouldProcess
141554
+ * @property {boolean|null} [unifiedEligibilityEnabled] ElfRecordAbsent unifiedEligibilityEnabled
141555
+ * @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordAbsent rootOrgHeadspaceHealthId
141556
+ * @property {string|null} [rootOrgId] ElfRecordAbsent rootOrgId
141557
+ * @property {boolean|null} [isMemberMigrated] ElfRecordAbsent isMemberMigrated
141558
+ * @property {string|null} [collectiveUuid] ElfRecordAbsent collectiveUuid
141559
+ */
141560
+
141561
+ /**
141562
+ * Constructs a new ElfRecordAbsent.
141563
+ * @name ElfRecordAbsent
141564
+ * @classdesc Represents an ElfRecordAbsent.
141565
+ * @implements IElfRecordAbsent
141566
+ * @constructor
141567
+ * @param {IElfRecordAbsent=} [properties] Properties to set
141568
+ */
141569
+ function ElfRecordAbsent(properties) {
141570
+ if (properties)
141571
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
141572
+ if (properties[keys[i]] != null)
141573
+ this[keys[i]] = properties[keys[i]];
141574
+ }
141575
+
141576
+ /**
141577
+ * ElfRecordAbsent headspaceHealthOrgId.
141578
+ * @member {string} headspaceHealthOrgId
141579
+ * @memberof ElfRecordAbsent
141580
+ * @instance
141581
+ */
141582
+ ElfRecordAbsent.prototype.headspaceHealthOrgId = "";
141583
+
141584
+ /**
141585
+ * ElfRecordAbsent b2bOrgId.
141586
+ * @member {string} b2bOrgId
141587
+ * @memberof ElfRecordAbsent
141588
+ * @instance
141589
+ */
141590
+ ElfRecordAbsent.prototype.b2bOrgId = "";
141591
+
141592
+ /**
141593
+ * ElfRecordAbsent gingerOrgId.
141594
+ * @member {string} gingerOrgId
141595
+ * @memberof ElfRecordAbsent
141596
+ * @instance
141597
+ */
141598
+ ElfRecordAbsent.prototype.gingerOrgId = "";
140237
141599
 
140238
141600
  /**
140239
- * ElfRecordPresent offerings.
140240
- * @member {Array.<b2b.SubscriptionOffering>} offerings
140241
- * @memberof ElfRecordPresent
141601
+ * ElfRecordAbsent fileImportedTimestamp.
141602
+ * @member {number|Long} fileImportedTimestamp
141603
+ * @memberof ElfRecordAbsent
140242
141604
  * @instance
140243
141605
  */
140244
- ElfRecordPresent.prototype.offerings = $util.emptyArray;
141606
+ ElfRecordAbsent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140245
141607
 
140246
141608
  /**
140247
- * ElfRecordPresent rootOrgHeadspaceHealthId.
140248
- * @member {string} rootOrgHeadspaceHealthId
140249
- * @memberof ElfRecordPresent
141609
+ * ElfRecordAbsent workEmail.
141610
+ * @member {string} workEmail
141611
+ * @memberof ElfRecordAbsent
140250
141612
  * @instance
140251
141613
  */
140252
- ElfRecordPresent.prototype.rootOrgHeadspaceHealthId = "";
141614
+ ElfRecordAbsent.prototype.workEmail = "";
140253
141615
 
140254
141616
  /**
140255
- * ElfRecordPresent rootOrgId.
140256
- * @member {string} rootOrgId
140257
- * @memberof ElfRecordPresent
141617
+ * ElfRecordAbsent workId.
141618
+ * @member {string} workId
141619
+ * @memberof ElfRecordAbsent
140258
141620
  * @instance
140259
141621
  */
140260
- ElfRecordPresent.prototype.rootOrgId = "";
141622
+ ElfRecordAbsent.prototype.workId = "";
140261
141623
 
140262
141624
  /**
140263
- * ElfRecordPresent isMemberMigrated.
140264
- * @member {boolean} isMemberMigrated
140265
- * @memberof ElfRecordPresent
141625
+ * ElfRecordAbsent keyType.
141626
+ * @member {KeyType} keyType
141627
+ * @memberof ElfRecordAbsent
140266
141628
  * @instance
140267
141629
  */
140268
- ElfRecordPresent.prototype.isMemberMigrated = false;
141630
+ ElfRecordAbsent.prototype.keyType = 0;
140269
141631
 
140270
141632
  /**
140271
- * ElfRecordPresent priorB2bOrgId.
140272
- * @member {string} priorB2bOrgId
140273
- * @memberof ElfRecordPresent
141633
+ * ElfRecordAbsent isDryRun.
141634
+ * @member {boolean} isDryRun
141635
+ * @memberof ElfRecordAbsent
140274
141636
  * @instance
140275
141637
  */
140276
- ElfRecordPresent.prototype.priorB2bOrgId = "";
141638
+ ElfRecordAbsent.prototype.isDryRun = false;
140277
141639
 
140278
141640
  /**
140279
- * ElfRecordPresent location.
140280
- * @member {string} location
140281
- * @memberof ElfRecordPresent
141641
+ * ElfRecordAbsent gingerShouldProcess.
141642
+ * @member {boolean} gingerShouldProcess
141643
+ * @memberof ElfRecordAbsent
140282
141644
  * @instance
140283
141645
  */
140284
- ElfRecordPresent.prototype.location = "";
141646
+ ElfRecordAbsent.prototype.gingerShouldProcess = false;
140285
141647
 
140286
141648
  /**
140287
- * ElfRecordPresent dependentOf.
140288
- * @member {string} dependentOf
140289
- * @memberof ElfRecordPresent
141649
+ * ElfRecordAbsent headspaceShouldProcess.
141650
+ * @member {boolean} headspaceShouldProcess
141651
+ * @memberof ElfRecordAbsent
140290
141652
  * @instance
140291
141653
  */
140292
- ElfRecordPresent.prototype.dependentOf = "";
141654
+ ElfRecordAbsent.prototype.headspaceShouldProcess = false;
140293
141655
 
140294
141656
  /**
140295
- * ElfRecordPresent isDryRun.
140296
- * @member {boolean} isDryRun
140297
- * @memberof ElfRecordPresent
141657
+ * ElfRecordAbsent unifiedEligibilityEnabled.
141658
+ * @member {boolean} unifiedEligibilityEnabled
141659
+ * @memberof ElfRecordAbsent
140298
141660
  * @instance
140299
141661
  */
140300
- ElfRecordPresent.prototype.isDryRun = false;
141662
+ ElfRecordAbsent.prototype.unifiedEligibilityEnabled = false;
140301
141663
 
140302
141664
  /**
140303
- * ElfRecordPresent gingerShouldProcess.
140304
- * @member {boolean} gingerShouldProcess
140305
- * @memberof ElfRecordPresent
141665
+ * ElfRecordAbsent rootOrgHeadspaceHealthId.
141666
+ * @member {string} rootOrgHeadspaceHealthId
141667
+ * @memberof ElfRecordAbsent
140306
141668
  * @instance
140307
141669
  */
140308
- ElfRecordPresent.prototype.gingerShouldProcess = false;
141670
+ ElfRecordAbsent.prototype.rootOrgHeadspaceHealthId = "";
140309
141671
 
140310
141672
  /**
140311
- * ElfRecordPresent headspaceShouldProcess.
140312
- * @member {boolean} headspaceShouldProcess
140313
- * @memberof ElfRecordPresent
141673
+ * ElfRecordAbsent rootOrgId.
141674
+ * @member {string} rootOrgId
141675
+ * @memberof ElfRecordAbsent
140314
141676
  * @instance
140315
141677
  */
140316
- ElfRecordPresent.prototype.headspaceShouldProcess = false;
141678
+ ElfRecordAbsent.prototype.rootOrgId = "";
140317
141679
 
140318
141680
  /**
140319
- * ElfRecordPresent unifiedEligibilityEnabled.
140320
- * @member {boolean} unifiedEligibilityEnabled
140321
- * @memberof ElfRecordPresent
141681
+ * ElfRecordAbsent isMemberMigrated.
141682
+ * @member {boolean} isMemberMigrated
141683
+ * @memberof ElfRecordAbsent
140322
141684
  * @instance
140323
141685
  */
140324
- ElfRecordPresent.prototype.unifiedEligibilityEnabled = false;
141686
+ ElfRecordAbsent.prototype.isMemberMigrated = false;
140325
141687
 
140326
141688
  /**
140327
- * ElfRecordPresent collectiveUuid.
141689
+ * ElfRecordAbsent collectiveUuid.
140328
141690
  * @member {string} collectiveUuid
140329
- * @memberof ElfRecordPresent
141691
+ * @memberof ElfRecordAbsent
140330
141692
  * @instance
140331
141693
  */
140332
- ElfRecordPresent.prototype.collectiveUuid = "";
141694
+ ElfRecordAbsent.prototype.collectiveUuid = "";
140333
141695
 
140334
141696
  /**
140335
- * Creates a new ElfRecordPresent instance using the specified properties.
141697
+ * Creates a new ElfRecordAbsent instance using the specified properties.
140336
141698
  * @function create
140337
- * @memberof ElfRecordPresent
141699
+ * @memberof ElfRecordAbsent
140338
141700
  * @static
140339
- * @param {IElfRecordPresent=} [properties] Properties to set
140340
- * @returns {ElfRecordPresent} ElfRecordPresent instance
141701
+ * @param {IElfRecordAbsent=} [properties] Properties to set
141702
+ * @returns {ElfRecordAbsent} ElfRecordAbsent instance
140341
141703
  */
140342
- ElfRecordPresent.create = function create(properties) {
140343
- return new ElfRecordPresent(properties);
141704
+ ElfRecordAbsent.create = function create(properties) {
141705
+ return new ElfRecordAbsent(properties);
140344
141706
  };
140345
141707
 
140346
141708
  /**
140347
- * Encodes the specified ElfRecordPresent message. Does not implicitly {@link ElfRecordPresent.verify|verify} messages.
141709
+ * Encodes the specified ElfRecordAbsent message. Does not implicitly {@link ElfRecordAbsent.verify|verify} messages.
140348
141710
  * @function encode
140349
- * @memberof ElfRecordPresent
141711
+ * @memberof ElfRecordAbsent
140350
141712
  * @static
140351
- * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
141713
+ * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
140352
141714
  * @param {$protobuf.Writer} [writer] Writer to encode to
140353
141715
  * @returns {$protobuf.Writer} Writer
140354
141716
  */
140355
- ElfRecordPresent.encode = function encode(message, writer) {
141717
+ ElfRecordAbsent.encode = function encode(message, writer) {
140356
141718
  if (!writer)
140357
141719
  writer = $Writer.create();
140358
141720
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
@@ -140363,95 +141725,59 @@ $root.ElfRecordPresent = (function() {
140363
141725
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
140364
141726
  if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
140365
141727
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileImportedTimestamp);
140366
- if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
140367
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.lineNumber);
140368
141728
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
140369
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.workEmail);
141729
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workEmail);
140370
141730
  if (message.workId != null && message.hasOwnProperty("workId"))
140371
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.workId);
141731
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.workId);
140372
141732
  if (message.keyType != null && message.hasOwnProperty("keyType"))
140373
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.keyType);
140374
- if (message.firstName != null && message.hasOwnProperty("firstName"))
140375
- writer.uint32(/* id 9, wireType 2 =*/74).string(message.firstName);
140376
- if (message.lastName != null && message.hasOwnProperty("lastName"))
140377
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.lastName);
140378
- if (message.country != null && message.hasOwnProperty("country"))
140379
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.country);
140380
- if (message.zipCode != null && message.hasOwnProperty("zipCode"))
140381
- writer.uint32(/* id 12, wireType 2 =*/98).string(message.zipCode);
140382
- if (message.dob != null && message.hasOwnProperty("dob"))
140383
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.dob);
140384
- if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
140385
- writer.uint32(/* id 14, wireType 2 =*/114).string(message.streetAddress_1);
140386
- if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
140387
- writer.uint32(/* id 15, wireType 2 =*/122).string(message.streetAddress_2);
140388
- if (message.department != null && message.hasOwnProperty("department"))
140389
- writer.uint32(/* id 16, wireType 2 =*/130).string(message.department);
140390
- if (message.language != null && message.hasOwnProperty("language"))
140391
- writer.uint32(/* id 17, wireType 2 =*/138).string(message.language);
141733
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.keyType);
140392
141734
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
140393
- writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDryRun);
141735
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isDryRun);
140394
141736
  if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
140395
- writer.uint32(/* id 19, wireType 0 =*/152).bool(message.gingerShouldProcess);
141737
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.gingerShouldProcess);
140396
141738
  if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
140397
- writer.uint32(/* id 20, wireType 0 =*/160).bool(message.headspaceShouldProcess);
140398
- if (message.customFields != null && message.hasOwnProperty("customFields"))
140399
- writer.uint32(/* id 21, wireType 2 =*/170).string(message.customFields);
140400
- if (message.offerings != null && message.offerings.length) {
140401
- writer.uint32(/* id 22, wireType 2 =*/178).fork();
140402
- for (var i = 0; i < message.offerings.length; ++i)
140403
- writer.int32(message.offerings[i]);
140404
- writer.ldelim();
140405
- }
141739
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.headspaceShouldProcess);
140406
141740
  if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
140407
- writer.uint32(/* id 23, wireType 0 =*/184).bool(message.unifiedEligibilityEnabled);
141741
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.unifiedEligibilityEnabled);
140408
141742
  if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
140409
- writer.uint32(/* id 24, wireType 2 =*/194).string(message.rootOrgHeadspaceHealthId);
141743
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.rootOrgHeadspaceHealthId);
140410
141744
  if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
140411
- writer.uint32(/* id 25, wireType 2 =*/202).string(message.rootOrgId);
141745
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.rootOrgId);
140412
141746
  if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
140413
- writer.uint32(/* id 26, wireType 0 =*/208).bool(message.isMemberMigrated);
140414
- if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
140415
- writer.uint32(/* id 27, wireType 2 =*/218).string(message.priorB2bOrgId);
140416
- if (message.location != null && message.hasOwnProperty("location"))
140417
- writer.uint32(/* id 28, wireType 2 =*/226).string(message.location);
140418
- if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
140419
- writer.uint32(/* id 29, wireType 2 =*/234).string(message.countryStateCode);
140420
- if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
140421
- writer.uint32(/* id 30, wireType 2 =*/242).string(message.dependentOf);
141747
+ writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isMemberMigrated);
140422
141748
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
140423
- writer.uint32(/* id 31, wireType 2 =*/250).string(message.collectiveUuid);
141749
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.collectiveUuid);
140424
141750
  return writer;
140425
141751
  };
140426
141752
 
140427
141753
  /**
140428
- * Encodes the specified ElfRecordPresent message, length delimited. Does not implicitly {@link ElfRecordPresent.verify|verify} messages.
141754
+ * Encodes the specified ElfRecordAbsent message, length delimited. Does not implicitly {@link ElfRecordAbsent.verify|verify} messages.
140429
141755
  * @function encodeDelimited
140430
- * @memberof ElfRecordPresent
141756
+ * @memberof ElfRecordAbsent
140431
141757
  * @static
140432
- * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
141758
+ * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
140433
141759
  * @param {$protobuf.Writer} [writer] Writer to encode to
140434
141760
  * @returns {$protobuf.Writer} Writer
140435
141761
  */
140436
- ElfRecordPresent.encodeDelimited = function encodeDelimited(message, writer) {
141762
+ ElfRecordAbsent.encodeDelimited = function encodeDelimited(message, writer) {
140437
141763
  return this.encode(message, writer).ldelim();
140438
141764
  };
140439
141765
 
140440
141766
  /**
140441
- * Decodes an ElfRecordPresent message from the specified reader or buffer.
141767
+ * Decodes an ElfRecordAbsent message from the specified reader or buffer.
140442
141768
  * @function decode
140443
- * @memberof ElfRecordPresent
141769
+ * @memberof ElfRecordAbsent
140444
141770
  * @static
140445
141771
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140446
141772
  * @param {number} [length] Message length if known beforehand
140447
- * @returns {ElfRecordPresent} ElfRecordPresent
141773
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
140448
141774
  * @throws {Error} If the payload is not a reader or valid buffer
140449
141775
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
140450
141776
  */
140451
- ElfRecordPresent.decode = function decode(reader, length) {
141777
+ ElfRecordAbsent.decode = function decode(reader, length) {
140452
141778
  if (!(reader instanceof $Reader))
140453
141779
  reader = $Reader.create(reader);
140454
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfRecordPresent();
141780
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfRecordAbsent();
140455
141781
  while (reader.pos < end) {
140456
141782
  var tag = reader.uint32();
140457
141783
  switch (tag >>> 3) {
@@ -140464,95 +141790,40 @@ $root.ElfRecordPresent = (function() {
140464
141790
  case 3:
140465
141791
  message.gingerOrgId = reader.string();
140466
141792
  break;
140467
- case 4:
140468
- message.fileImportedTimestamp = reader.uint64();
140469
- break;
140470
- case 5:
140471
- message.lineNumber = reader.int32();
140472
- break;
140473
- case 6:
140474
- message.workEmail = reader.string();
140475
- break;
140476
- case 7:
140477
- message.workId = reader.string();
140478
- break;
140479
- case 8:
140480
- message.keyType = reader.int32();
140481
- break;
140482
- case 9:
140483
- message.firstName = reader.string();
140484
- break;
140485
- case 10:
140486
- message.lastName = reader.string();
140487
- break;
140488
- case 11:
140489
- message.country = reader.string();
140490
- break;
140491
- case 12:
140492
- message.zipCode = reader.string();
140493
- break;
140494
- case 13:
140495
- message.dob = reader.string();
140496
- break;
140497
- case 29:
140498
- message.countryStateCode = reader.string();
140499
- break;
140500
- case 14:
140501
- message.streetAddress_1 = reader.string();
140502
- break;
140503
- case 15:
140504
- message.streetAddress_2 = reader.string();
140505
- break;
140506
- case 16:
140507
- message.department = reader.string();
140508
- break;
140509
- case 17:
140510
- message.language = reader.string();
140511
- break;
140512
- case 21:
140513
- message.customFields = reader.string();
140514
- break;
140515
- case 22:
140516
- if (!(message.offerings && message.offerings.length))
140517
- message.offerings = [];
140518
- if ((tag & 7) === 2) {
140519
- var end2 = reader.uint32() + reader.pos;
140520
- while (reader.pos < end2)
140521
- message.offerings.push(reader.int32());
140522
- } else
140523
- message.offerings.push(reader.int32());
140524
- break;
140525
- case 24:
140526
- message.rootOrgHeadspaceHealthId = reader.string();
140527
- break;
140528
- case 25:
140529
- message.rootOrgId = reader.string();
140530
- break;
140531
- case 26:
140532
- message.isMemberMigrated = reader.bool();
141793
+ case 4:
141794
+ message.fileImportedTimestamp = reader.uint64();
140533
141795
  break;
140534
- case 27:
140535
- message.priorB2bOrgId = reader.string();
141796
+ case 5:
141797
+ message.workEmail = reader.string();
140536
141798
  break;
140537
- case 28:
140538
- message.location = reader.string();
141799
+ case 6:
141800
+ message.workId = reader.string();
140539
141801
  break;
140540
- case 30:
140541
- message.dependentOf = reader.string();
141802
+ case 7:
141803
+ message.keyType = reader.int32();
140542
141804
  break;
140543
- case 18:
141805
+ case 8:
140544
141806
  message.isDryRun = reader.bool();
140545
141807
  break;
140546
- case 19:
141808
+ case 9:
140547
141809
  message.gingerShouldProcess = reader.bool();
140548
141810
  break;
140549
- case 20:
141811
+ case 10:
140550
141812
  message.headspaceShouldProcess = reader.bool();
140551
141813
  break;
140552
- case 23:
141814
+ case 11:
140553
141815
  message.unifiedEligibilityEnabled = reader.bool();
140554
141816
  break;
140555
- case 31:
141817
+ case 12:
141818
+ message.rootOrgHeadspaceHealthId = reader.string();
141819
+ break;
141820
+ case 13:
141821
+ message.rootOrgId = reader.string();
141822
+ break;
141823
+ case 14:
141824
+ message.isMemberMigrated = reader.bool();
141825
+ break;
141826
+ case 16:
140556
141827
  message.collectiveUuid = reader.string();
140557
141828
  break;
140558
141829
  default:
@@ -140564,30 +141835,30 @@ $root.ElfRecordPresent = (function() {
140564
141835
  };
140565
141836
 
140566
141837
  /**
140567
- * Decodes an ElfRecordPresent message from the specified reader or buffer, length delimited.
141838
+ * Decodes an ElfRecordAbsent message from the specified reader or buffer, length delimited.
140568
141839
  * @function decodeDelimited
140569
- * @memberof ElfRecordPresent
141840
+ * @memberof ElfRecordAbsent
140570
141841
  * @static
140571
141842
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140572
- * @returns {ElfRecordPresent} ElfRecordPresent
141843
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
140573
141844
  * @throws {Error} If the payload is not a reader or valid buffer
140574
141845
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
140575
141846
  */
140576
- ElfRecordPresent.decodeDelimited = function decodeDelimited(reader) {
141847
+ ElfRecordAbsent.decodeDelimited = function decodeDelimited(reader) {
140577
141848
  if (!(reader instanceof $Reader))
140578
141849
  reader = new $Reader(reader);
140579
141850
  return this.decode(reader, reader.uint32());
140580
141851
  };
140581
141852
 
140582
141853
  /**
140583
- * Verifies an ElfRecordPresent message.
141854
+ * Verifies an ElfRecordAbsent message.
140584
141855
  * @function verify
140585
- * @memberof ElfRecordPresent
141856
+ * @memberof ElfRecordAbsent
140586
141857
  * @static
140587
141858
  * @param {Object.<string,*>} message Plain object to verify
140588
141859
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
140589
141860
  */
140590
- ElfRecordPresent.verify = function verify(message) {
141861
+ ElfRecordAbsent.verify = function verify(message) {
140591
141862
  if (typeof message !== "object" || message === null)
140592
141863
  return "object expected";
140593
141864
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
@@ -140602,9 +141873,6 @@ $root.ElfRecordPresent = (function() {
140602
141873
  if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
140603
141874
  if (!$util.isInteger(message.fileImportedTimestamp) && !(message.fileImportedTimestamp && $util.isInteger(message.fileImportedTimestamp.low) && $util.isInteger(message.fileImportedTimestamp.high)))
140604
141875
  return "fileImportedTimestamp: integer|Long expected";
140605
- if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
140606
- if (!$util.isInteger(message.lineNumber))
140607
- return "lineNumber: integer expected";
140608
141876
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
140609
141877
  if (!$util.isString(message.workEmail))
140610
141878
  return "workEmail: string expected";
@@ -140619,70 +141887,6 @@ $root.ElfRecordPresent = (function() {
140619
141887
  case 1:
140620
141888
  break;
140621
141889
  }
140622
- if (message.firstName != null && message.hasOwnProperty("firstName"))
140623
- if (!$util.isString(message.firstName))
140624
- return "firstName: string expected";
140625
- if (message.lastName != null && message.hasOwnProperty("lastName"))
140626
- if (!$util.isString(message.lastName))
140627
- return "lastName: string expected";
140628
- if (message.country != null && message.hasOwnProperty("country"))
140629
- if (!$util.isString(message.country))
140630
- return "country: string expected";
140631
- if (message.zipCode != null && message.hasOwnProperty("zipCode"))
140632
- if (!$util.isString(message.zipCode))
140633
- return "zipCode: string expected";
140634
- if (message.dob != null && message.hasOwnProperty("dob"))
140635
- if (!$util.isString(message.dob))
140636
- return "dob: string expected";
140637
- if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
140638
- if (!$util.isString(message.countryStateCode))
140639
- return "countryStateCode: string expected";
140640
- if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
140641
- if (!$util.isString(message.streetAddress_1))
140642
- return "streetAddress_1: string expected";
140643
- if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
140644
- if (!$util.isString(message.streetAddress_2))
140645
- return "streetAddress_2: string expected";
140646
- if (message.department != null && message.hasOwnProperty("department"))
140647
- if (!$util.isString(message.department))
140648
- return "department: string expected";
140649
- if (message.language != null && message.hasOwnProperty("language"))
140650
- if (!$util.isString(message.language))
140651
- return "language: string expected";
140652
- if (message.customFields != null && message.hasOwnProperty("customFields"))
140653
- if (!$util.isString(message.customFields))
140654
- return "customFields: string expected";
140655
- if (message.offerings != null && message.hasOwnProperty("offerings")) {
140656
- if (!Array.isArray(message.offerings))
140657
- return "offerings: array expected";
140658
- for (var i = 0; i < message.offerings.length; ++i)
140659
- switch (message.offerings[i]) {
140660
- default:
140661
- return "offerings: enum value[] expected";
140662
- case 0:
140663
- case 1:
140664
- case 2:
140665
- break;
140666
- }
140667
- }
140668
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
140669
- if (!$util.isString(message.rootOrgHeadspaceHealthId))
140670
- return "rootOrgHeadspaceHealthId: string expected";
140671
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
140672
- if (!$util.isString(message.rootOrgId))
140673
- return "rootOrgId: string expected";
140674
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
140675
- if (typeof message.isMemberMigrated !== "boolean")
140676
- return "isMemberMigrated: boolean expected";
140677
- if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
140678
- if (!$util.isString(message.priorB2bOrgId))
140679
- return "priorB2bOrgId: string expected";
140680
- if (message.location != null && message.hasOwnProperty("location"))
140681
- if (!$util.isString(message.location))
140682
- return "location: string expected";
140683
- if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
140684
- if (!$util.isString(message.dependentOf))
140685
- return "dependentOf: string expected";
140686
141890
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
140687
141891
  if (typeof message.isDryRun !== "boolean")
140688
141892
  return "isDryRun: boolean expected";
@@ -140695,6 +141899,15 @@ $root.ElfRecordPresent = (function() {
140695
141899
  if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
140696
141900
  if (typeof message.unifiedEligibilityEnabled !== "boolean")
140697
141901
  return "unifiedEligibilityEnabled: boolean expected";
141902
+ if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141903
+ if (!$util.isString(message.rootOrgHeadspaceHealthId))
141904
+ return "rootOrgHeadspaceHealthId: string expected";
141905
+ if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141906
+ if (!$util.isString(message.rootOrgId))
141907
+ return "rootOrgId: string expected";
141908
+ if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141909
+ if (typeof message.isMemberMigrated !== "boolean")
141910
+ return "isMemberMigrated: boolean expected";
140698
141911
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
140699
141912
  if (!$util.isString(message.collectiveUuid))
140700
141913
  return "collectiveUuid: string expected";
@@ -140702,17 +141915,17 @@ $root.ElfRecordPresent = (function() {
140702
141915
  };
140703
141916
 
140704
141917
  /**
140705
- * Creates an ElfRecordPresent message from a plain object. Also converts values to their respective internal types.
141918
+ * Creates an ElfRecordAbsent message from a plain object. Also converts values to their respective internal types.
140706
141919
  * @function fromObject
140707
- * @memberof ElfRecordPresent
141920
+ * @memberof ElfRecordAbsent
140708
141921
  * @static
140709
141922
  * @param {Object.<string,*>} object Plain object
140710
- * @returns {ElfRecordPresent} ElfRecordPresent
141923
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
140711
141924
  */
140712
- ElfRecordPresent.fromObject = function fromObject(object) {
140713
- if (object instanceof $root.ElfRecordPresent)
141925
+ ElfRecordAbsent.fromObject = function fromObject(object) {
141926
+ if (object instanceof $root.ElfRecordAbsent)
140714
141927
  return object;
140715
- var message = new $root.ElfRecordPresent();
141928
+ var message = new $root.ElfRecordAbsent();
140716
141929
  if (object.headspaceHealthOrgId != null)
140717
141930
  message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
140718
141931
  if (object.b2bOrgId != null)
@@ -140728,8 +141941,6 @@ $root.ElfRecordPresent = (function() {
140728
141941
  message.fileImportedTimestamp = object.fileImportedTimestamp;
140729
141942
  else if (typeof object.fileImportedTimestamp === "object")
140730
141943
  message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
140731
- if (object.lineNumber != null)
140732
- message.lineNumber = object.lineNumber | 0;
140733
141944
  if (object.workEmail != null)
140734
141945
  message.workEmail = String(object.workEmail);
140735
141946
  if (object.workId != null)
@@ -140744,61 +141955,6 @@ $root.ElfRecordPresent = (function() {
140744
141955
  message.keyType = 1;
140745
141956
  break;
140746
141957
  }
140747
- if (object.firstName != null)
140748
- message.firstName = String(object.firstName);
140749
- if (object.lastName != null)
140750
- message.lastName = String(object.lastName);
140751
- if (object.country != null)
140752
- message.country = String(object.country);
140753
- if (object.zipCode != null)
140754
- message.zipCode = String(object.zipCode);
140755
- if (object.dob != null)
140756
- message.dob = String(object.dob);
140757
- if (object.countryStateCode != null)
140758
- message.countryStateCode = String(object.countryStateCode);
140759
- if (object.streetAddress_1 != null)
140760
- message.streetAddress_1 = String(object.streetAddress_1);
140761
- if (object.streetAddress_2 != null)
140762
- message.streetAddress_2 = String(object.streetAddress_2);
140763
- if (object.department != null)
140764
- message.department = String(object.department);
140765
- if (object.language != null)
140766
- message.language = String(object.language);
140767
- if (object.customFields != null)
140768
- message.customFields = String(object.customFields);
140769
- if (object.offerings) {
140770
- if (!Array.isArray(object.offerings))
140771
- throw TypeError(".ElfRecordPresent.offerings: array expected");
140772
- message.offerings = [];
140773
- for (var i = 0; i < object.offerings.length; ++i)
140774
- switch (object.offerings[i]) {
140775
- default:
140776
- case "SUBSCRIPTION_OFFERING_UNKNOWN":
140777
- case 0:
140778
- message.offerings[i] = 0;
140779
- break;
140780
- case "SUBSCRIPTION_OFFERING_HEADSPACE":
140781
- case 1:
140782
- message.offerings[i] = 1;
140783
- break;
140784
- case "SUBSCRIPTION_OFFERING_GINGER":
140785
- case 2:
140786
- message.offerings[i] = 2;
140787
- break;
140788
- }
140789
- }
140790
- if (object.rootOrgHeadspaceHealthId != null)
140791
- message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
140792
- if (object.rootOrgId != null)
140793
- message.rootOrgId = String(object.rootOrgId);
140794
- if (object.isMemberMigrated != null)
140795
- message.isMemberMigrated = Boolean(object.isMemberMigrated);
140796
- if (object.priorB2bOrgId != null)
140797
- message.priorB2bOrgId = String(object.priorB2bOrgId);
140798
- if (object.location != null)
140799
- message.location = String(object.location);
140800
- if (object.dependentOf != null)
140801
- message.dependentOf = String(object.dependentOf);
140802
141958
  if (object.isDryRun != null)
140803
141959
  message.isDryRun = Boolean(object.isDryRun);
140804
141960
  if (object.gingerShouldProcess != null)
@@ -140807,26 +141963,30 @@ $root.ElfRecordPresent = (function() {
140807
141963
  message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
140808
141964
  if (object.unifiedEligibilityEnabled != null)
140809
141965
  message.unifiedEligibilityEnabled = Boolean(object.unifiedEligibilityEnabled);
141966
+ if (object.rootOrgHeadspaceHealthId != null)
141967
+ message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
141968
+ if (object.rootOrgId != null)
141969
+ message.rootOrgId = String(object.rootOrgId);
141970
+ if (object.isMemberMigrated != null)
141971
+ message.isMemberMigrated = Boolean(object.isMemberMigrated);
140810
141972
  if (object.collectiveUuid != null)
140811
141973
  message.collectiveUuid = String(object.collectiveUuid);
140812
141974
  return message;
140813
141975
  };
140814
141976
 
140815
141977
  /**
140816
- * Creates a plain object from an ElfRecordPresent message. Also converts values to other types if specified.
141978
+ * Creates a plain object from an ElfRecordAbsent message. Also converts values to other types if specified.
140817
141979
  * @function toObject
140818
- * @memberof ElfRecordPresent
141980
+ * @memberof ElfRecordAbsent
140819
141981
  * @static
140820
- * @param {ElfRecordPresent} message ElfRecordPresent
141982
+ * @param {ElfRecordAbsent} message ElfRecordAbsent
140821
141983
  * @param {$protobuf.IConversionOptions} [options] Conversion options
140822
141984
  * @returns {Object.<string,*>} Plain object
140823
141985
  */
140824
- ElfRecordPresent.toObject = function toObject(message, options) {
141986
+ ElfRecordAbsent.toObject = function toObject(message, options) {
140825
141987
  if (!options)
140826
141988
  options = {};
140827
141989
  var object = {};
140828
- if (options.arrays || options.defaults)
140829
- object.offerings = [];
140830
141990
  if (options.defaults) {
140831
141991
  object.headspaceHealthOrgId = "";
140832
141992
  object.b2bOrgId = "";
@@ -140836,31 +141996,16 @@ $root.ElfRecordPresent = (function() {
140836
141996
  object.fileImportedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
140837
141997
  } else
140838
141998
  object.fileImportedTimestamp = options.longs === String ? "0" : 0;
140839
- object.lineNumber = 0;
140840
141999
  object.workEmail = "";
140841
142000
  object.workId = "";
140842
142001
  object.keyType = options.enums === String ? "WORK_ID" : 0;
140843
- object.firstName = "";
140844
- object.lastName = "";
140845
- object.country = "";
140846
- object.zipCode = "";
140847
- object.dob = "";
140848
- object.streetAddress_1 = "";
140849
- object.streetAddress_2 = "";
140850
- object.department = "";
140851
- object.language = "";
140852
142002
  object.isDryRun = false;
140853
142003
  object.gingerShouldProcess = false;
140854
142004
  object.headspaceShouldProcess = false;
140855
- object.customFields = "";
140856
142005
  object.unifiedEligibilityEnabled = false;
140857
142006
  object.rootOrgHeadspaceHealthId = "";
140858
142007
  object.rootOrgId = "";
140859
142008
  object.isMemberMigrated = false;
140860
- object.priorB2bOrgId = "";
140861
- object.location = "";
140862
- object.countryStateCode = "";
140863
- object.dependentOf = "";
140864
142009
  object.collectiveUuid = "";
140865
142010
  }
140866
142011
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
@@ -140869,50 +142014,23 @@ $root.ElfRecordPresent = (function() {
140869
142014
  object.b2bOrgId = message.b2bOrgId;
140870
142015
  if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
140871
142016
  object.gingerOrgId = message.gingerOrgId;
140872
- if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
140873
- if (typeof message.fileImportedTimestamp === "number")
140874
- object.fileImportedTimestamp = options.longs === String ? String(message.fileImportedTimestamp) : message.fileImportedTimestamp;
140875
- else
140876
- object.fileImportedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.fileImportedTimestamp) : options.longs === Number ? new $util.LongBits(message.fileImportedTimestamp.low >>> 0, message.fileImportedTimestamp.high >>> 0).toNumber(true) : message.fileImportedTimestamp;
140877
- if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
140878
- object.lineNumber = message.lineNumber;
140879
- if (message.workEmail != null && message.hasOwnProperty("workEmail"))
140880
- object.workEmail = message.workEmail;
140881
- if (message.workId != null && message.hasOwnProperty("workId"))
140882
- object.workId = message.workId;
140883
- if (message.keyType != null && message.hasOwnProperty("keyType"))
140884
- object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
140885
- if (message.firstName != null && message.hasOwnProperty("firstName"))
140886
- object.firstName = message.firstName;
140887
- if (message.lastName != null && message.hasOwnProperty("lastName"))
140888
- object.lastName = message.lastName;
140889
- if (message.country != null && message.hasOwnProperty("country"))
140890
- object.country = message.country;
140891
- if (message.zipCode != null && message.hasOwnProperty("zipCode"))
140892
- object.zipCode = message.zipCode;
140893
- if (message.dob != null && message.hasOwnProperty("dob"))
140894
- object.dob = message.dob;
140895
- if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
140896
- object.streetAddress_1 = message.streetAddress_1;
140897
- if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
140898
- object.streetAddress_2 = message.streetAddress_2;
140899
- if (message.department != null && message.hasOwnProperty("department"))
140900
- object.department = message.department;
140901
- if (message.language != null && message.hasOwnProperty("language"))
140902
- object.language = message.language;
142017
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
142018
+ if (typeof message.fileImportedTimestamp === "number")
142019
+ object.fileImportedTimestamp = options.longs === String ? String(message.fileImportedTimestamp) : message.fileImportedTimestamp;
142020
+ else
142021
+ object.fileImportedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.fileImportedTimestamp) : options.longs === Number ? new $util.LongBits(message.fileImportedTimestamp.low >>> 0, message.fileImportedTimestamp.high >>> 0).toNumber(true) : message.fileImportedTimestamp;
142022
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
142023
+ object.workEmail = message.workEmail;
142024
+ if (message.workId != null && message.hasOwnProperty("workId"))
142025
+ object.workId = message.workId;
142026
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
142027
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
140903
142028
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
140904
142029
  object.isDryRun = message.isDryRun;
140905
142030
  if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
140906
142031
  object.gingerShouldProcess = message.gingerShouldProcess;
140907
142032
  if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
140908
142033
  object.headspaceShouldProcess = message.headspaceShouldProcess;
140909
- if (message.customFields != null && message.hasOwnProperty("customFields"))
140910
- object.customFields = message.customFields;
140911
- if (message.offerings && message.offerings.length) {
140912
- object.offerings = [];
140913
- for (var j = 0; j < message.offerings.length; ++j)
140914
- object.offerings[j] = options.enums === String ? $root.b2b.SubscriptionOffering[message.offerings[j]] : message.offerings[j];
140915
- }
140916
142034
  if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
140917
142035
  object.unifiedEligibilityEnabled = message.unifiedEligibilityEnabled;
140918
142036
  if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
@@ -140921,65 +142039,49 @@ $root.ElfRecordPresent = (function() {
140921
142039
  object.rootOrgId = message.rootOrgId;
140922
142040
  if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
140923
142041
  object.isMemberMigrated = message.isMemberMigrated;
140924
- if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
140925
- object.priorB2bOrgId = message.priorB2bOrgId;
140926
- if (message.location != null && message.hasOwnProperty("location"))
140927
- object.location = message.location;
140928
- if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
140929
- object.countryStateCode = message.countryStateCode;
140930
- if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
140931
- object.dependentOf = message.dependentOf;
140932
142042
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
140933
142043
  object.collectiveUuid = message.collectiveUuid;
140934
142044
  return object;
140935
142045
  };
140936
142046
 
140937
142047
  /**
140938
- * Converts this ElfRecordPresent to JSON.
142048
+ * Converts this ElfRecordAbsent to JSON.
140939
142049
  * @function toJSON
140940
- * @memberof ElfRecordPresent
142050
+ * @memberof ElfRecordAbsent
140941
142051
  * @instance
140942
142052
  * @returns {Object.<string,*>} JSON object
140943
142053
  */
140944
- ElfRecordPresent.prototype.toJSON = function toJSON() {
142054
+ ElfRecordAbsent.prototype.toJSON = function toJSON() {
140945
142055
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140946
142056
  };
140947
142057
 
140948
- return ElfRecordPresent;
142058
+ return ElfRecordAbsent;
140949
142059
  })();
140950
142060
 
140951
- $root.ElfRecordAbsent = (function() {
142061
+ $root.ElfRecordMoved = (function() {
140952
142062
 
140953
142063
  /**
140954
- * Properties of an ElfRecordAbsent.
140955
- * @name IElfRecordAbsent
140956
- * @interface IElfRecordAbsent
140957
- * @property {string|null} [headspaceHealthOrgId] ElfRecordAbsent headspaceHealthOrgId
140958
- * @property {string|null} [b2bOrgId] ElfRecordAbsent b2bOrgId
140959
- * @property {string|null} [gingerOrgId] ElfRecordAbsent gingerOrgId
140960
- * @property {number|Long|null} [fileImportedTimestamp] ElfRecordAbsent fileImportedTimestamp
140961
- * @property {string|null} [workEmail] ElfRecordAbsent workEmail
140962
- * @property {string|null} [workId] ElfRecordAbsent workId
140963
- * @property {KeyType|null} [keyType] ElfRecordAbsent keyType
140964
- * @property {boolean|null} [isDryRun] ElfRecordAbsent isDryRun
140965
- * @property {boolean|null} [gingerShouldProcess] ElfRecordAbsent gingerShouldProcess
140966
- * @property {boolean|null} [headspaceShouldProcess] ElfRecordAbsent headspaceShouldProcess
140967
- * @property {boolean|null} [unifiedEligibilityEnabled] ElfRecordAbsent unifiedEligibilityEnabled
140968
- * @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordAbsent rootOrgHeadspaceHealthId
140969
- * @property {string|null} [rootOrgId] ElfRecordAbsent rootOrgId
140970
- * @property {boolean|null} [isMemberMigrated] ElfRecordAbsent isMemberMigrated
140971
- * @property {string|null} [collectiveUuid] ElfRecordAbsent collectiveUuid
142064
+ * Properties of an ElfRecordMoved.
142065
+ * @name IElfRecordMoved
142066
+ * @interface IElfRecordMoved
142067
+ * @property {IOrganizationIdentifier|null} [sourceOrganization] ElfRecordMoved sourceOrganization
142068
+ * @property {IOrganizationIdentifier|null} [targetOrganization] ElfRecordMoved targetOrganization
142069
+ * @property {IEligibilityRecordIdentifier|null} [record] ElfRecordMoved record
142070
+ * @property {number|Long|null} [timestamp] ElfRecordMoved timestamp
142071
+ * @property {Array.<b2b.SubscriptionOffering>|null} [offerings] ElfRecordMoved offerings
142072
+ * @property {b2b.EnrollmentFlow|null} [enrollmentFlow] ElfRecordMoved enrollmentFlow
140972
142073
  */
140973
142074
 
140974
142075
  /**
140975
- * Constructs a new ElfRecordAbsent.
140976
- * @name ElfRecordAbsent
140977
- * @classdesc Represents an ElfRecordAbsent.
140978
- * @implements IElfRecordAbsent
142076
+ * Constructs a new ElfRecordMoved.
142077
+ * @name ElfRecordMoved
142078
+ * @classdesc Represents an ElfRecordMoved.
142079
+ * @implements IElfRecordMoved
140979
142080
  * @constructor
140980
- * @param {IElfRecordAbsent=} [properties] Properties to set
142081
+ * @param {IElfRecordMoved=} [properties] Properties to set
140981
142082
  */
140982
- function ElfRecordAbsent(properties) {
142083
+ function ElfRecordMoved(properties) {
142084
+ this.offerings = [];
140983
142085
  if (properties)
140984
142086
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140985
142087
  if (properties[keys[i]] != null)
@@ -140987,257 +142089,151 @@ $root.ElfRecordAbsent = (function() {
140987
142089
  }
140988
142090
 
140989
142091
  /**
140990
- * ElfRecordAbsent headspaceHealthOrgId.
140991
- * @member {string} headspaceHealthOrgId
140992
- * @memberof ElfRecordAbsent
140993
- * @instance
140994
- */
140995
- ElfRecordAbsent.prototype.headspaceHealthOrgId = "";
140996
-
140997
- /**
140998
- * ElfRecordAbsent b2bOrgId.
140999
- * @member {string} b2bOrgId
141000
- * @memberof ElfRecordAbsent
141001
- * @instance
141002
- */
141003
- ElfRecordAbsent.prototype.b2bOrgId = "";
141004
-
141005
- /**
141006
- * ElfRecordAbsent gingerOrgId.
141007
- * @member {string} gingerOrgId
141008
- * @memberof ElfRecordAbsent
141009
- * @instance
141010
- */
141011
- ElfRecordAbsent.prototype.gingerOrgId = "";
141012
-
141013
- /**
141014
- * ElfRecordAbsent fileImportedTimestamp.
141015
- * @member {number|Long} fileImportedTimestamp
141016
- * @memberof ElfRecordAbsent
141017
- * @instance
141018
- */
141019
- ElfRecordAbsent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
141020
-
141021
- /**
141022
- * ElfRecordAbsent workEmail.
141023
- * @member {string} workEmail
141024
- * @memberof ElfRecordAbsent
141025
- * @instance
141026
- */
141027
- ElfRecordAbsent.prototype.workEmail = "";
141028
-
141029
- /**
141030
- * ElfRecordAbsent workId.
141031
- * @member {string} workId
141032
- * @memberof ElfRecordAbsent
141033
- * @instance
141034
- */
141035
- ElfRecordAbsent.prototype.workId = "";
141036
-
141037
- /**
141038
- * ElfRecordAbsent keyType.
141039
- * @member {KeyType} keyType
141040
- * @memberof ElfRecordAbsent
141041
- * @instance
141042
- */
141043
- ElfRecordAbsent.prototype.keyType = 0;
141044
-
141045
- /**
141046
- * ElfRecordAbsent isDryRun.
141047
- * @member {boolean} isDryRun
141048
- * @memberof ElfRecordAbsent
141049
- * @instance
141050
- */
141051
- ElfRecordAbsent.prototype.isDryRun = false;
141052
-
141053
- /**
141054
- * ElfRecordAbsent gingerShouldProcess.
141055
- * @member {boolean} gingerShouldProcess
141056
- * @memberof ElfRecordAbsent
141057
- * @instance
141058
- */
141059
- ElfRecordAbsent.prototype.gingerShouldProcess = false;
141060
-
141061
- /**
141062
- * ElfRecordAbsent headspaceShouldProcess.
141063
- * @member {boolean} headspaceShouldProcess
141064
- * @memberof ElfRecordAbsent
142092
+ * ElfRecordMoved sourceOrganization.
142093
+ * @member {IOrganizationIdentifier|null|undefined} sourceOrganization
142094
+ * @memberof ElfRecordMoved
141065
142095
  * @instance
141066
142096
  */
141067
- ElfRecordAbsent.prototype.headspaceShouldProcess = false;
142097
+ ElfRecordMoved.prototype.sourceOrganization = null;
141068
142098
 
141069
142099
  /**
141070
- * ElfRecordAbsent unifiedEligibilityEnabled.
141071
- * @member {boolean} unifiedEligibilityEnabled
141072
- * @memberof ElfRecordAbsent
142100
+ * ElfRecordMoved targetOrganization.
142101
+ * @member {IOrganizationIdentifier|null|undefined} targetOrganization
142102
+ * @memberof ElfRecordMoved
141073
142103
  * @instance
141074
142104
  */
141075
- ElfRecordAbsent.prototype.unifiedEligibilityEnabled = false;
142105
+ ElfRecordMoved.prototype.targetOrganization = null;
141076
142106
 
141077
142107
  /**
141078
- * ElfRecordAbsent rootOrgHeadspaceHealthId.
141079
- * @member {string} rootOrgHeadspaceHealthId
141080
- * @memberof ElfRecordAbsent
142108
+ * ElfRecordMoved record.
142109
+ * @member {IEligibilityRecordIdentifier|null|undefined} record
142110
+ * @memberof ElfRecordMoved
141081
142111
  * @instance
141082
142112
  */
141083
- ElfRecordAbsent.prototype.rootOrgHeadspaceHealthId = "";
142113
+ ElfRecordMoved.prototype.record = null;
141084
142114
 
141085
142115
  /**
141086
- * ElfRecordAbsent rootOrgId.
141087
- * @member {string} rootOrgId
141088
- * @memberof ElfRecordAbsent
142116
+ * ElfRecordMoved timestamp.
142117
+ * @member {number|Long} timestamp
142118
+ * @memberof ElfRecordMoved
141089
142119
  * @instance
141090
142120
  */
141091
- ElfRecordAbsent.prototype.rootOrgId = "";
142121
+ ElfRecordMoved.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
141092
142122
 
141093
142123
  /**
141094
- * ElfRecordAbsent isMemberMigrated.
141095
- * @member {boolean} isMemberMigrated
141096
- * @memberof ElfRecordAbsent
142124
+ * ElfRecordMoved offerings.
142125
+ * @member {Array.<b2b.SubscriptionOffering>} offerings
142126
+ * @memberof ElfRecordMoved
141097
142127
  * @instance
141098
142128
  */
141099
- ElfRecordAbsent.prototype.isMemberMigrated = false;
142129
+ ElfRecordMoved.prototype.offerings = $util.emptyArray;
141100
142130
 
141101
142131
  /**
141102
- * ElfRecordAbsent collectiveUuid.
141103
- * @member {string} collectiveUuid
141104
- * @memberof ElfRecordAbsent
142132
+ * ElfRecordMoved enrollmentFlow.
142133
+ * @member {b2b.EnrollmentFlow} enrollmentFlow
142134
+ * @memberof ElfRecordMoved
141105
142135
  * @instance
141106
142136
  */
141107
- ElfRecordAbsent.prototype.collectiveUuid = "";
142137
+ ElfRecordMoved.prototype.enrollmentFlow = 0;
141108
142138
 
141109
142139
  /**
141110
- * Creates a new ElfRecordAbsent instance using the specified properties.
142140
+ * Creates a new ElfRecordMoved instance using the specified properties.
141111
142141
  * @function create
141112
- * @memberof ElfRecordAbsent
142142
+ * @memberof ElfRecordMoved
141113
142143
  * @static
141114
- * @param {IElfRecordAbsent=} [properties] Properties to set
141115
- * @returns {ElfRecordAbsent} ElfRecordAbsent instance
142144
+ * @param {IElfRecordMoved=} [properties] Properties to set
142145
+ * @returns {ElfRecordMoved} ElfRecordMoved instance
141116
142146
  */
141117
- ElfRecordAbsent.create = function create(properties) {
141118
- return new ElfRecordAbsent(properties);
142147
+ ElfRecordMoved.create = function create(properties) {
142148
+ return new ElfRecordMoved(properties);
141119
142149
  };
141120
142150
 
141121
142151
  /**
141122
- * Encodes the specified ElfRecordAbsent message. Does not implicitly {@link ElfRecordAbsent.verify|verify} messages.
142152
+ * Encodes the specified ElfRecordMoved message. Does not implicitly {@link ElfRecordMoved.verify|verify} messages.
141123
142153
  * @function encode
141124
- * @memberof ElfRecordAbsent
142154
+ * @memberof ElfRecordMoved
141125
142155
  * @static
141126
- * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
142156
+ * @param {IElfRecordMoved} message ElfRecordMoved message or plain object to encode
141127
142157
  * @param {$protobuf.Writer} [writer] Writer to encode to
141128
142158
  * @returns {$protobuf.Writer} Writer
141129
142159
  */
141130
- ElfRecordAbsent.encode = function encode(message, writer) {
142160
+ ElfRecordMoved.encode = function encode(message, writer) {
141131
142161
  if (!writer)
141132
142162
  writer = $Writer.create();
141133
- if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141134
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
141135
- if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141136
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
141137
- if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141138
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
141139
- if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141140
- writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileImportedTimestamp);
141141
- if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141142
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.workEmail);
141143
- if (message.workId != null && message.hasOwnProperty("workId"))
141144
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.workId);
141145
- if (message.keyType != null && message.hasOwnProperty("keyType"))
141146
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.keyType);
141147
- if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141148
- writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isDryRun);
141149
- if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141150
- writer.uint32(/* id 9, wireType 0 =*/72).bool(message.gingerShouldProcess);
141151
- if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141152
- writer.uint32(/* id 10, wireType 0 =*/80).bool(message.headspaceShouldProcess);
141153
- if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141154
- writer.uint32(/* id 11, wireType 0 =*/88).bool(message.unifiedEligibilityEnabled);
141155
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141156
- writer.uint32(/* id 12, wireType 2 =*/98).string(message.rootOrgHeadspaceHealthId);
141157
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141158
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.rootOrgId);
141159
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141160
- writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isMemberMigrated);
141161
- if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141162
- writer.uint32(/* id 16, wireType 2 =*/130).string(message.collectiveUuid);
142163
+ if (message.sourceOrganization != null && message.hasOwnProperty("sourceOrganization"))
142164
+ $root.OrganizationIdentifier.encode(message.sourceOrganization, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
142165
+ if (message.targetOrganization != null && message.hasOwnProperty("targetOrganization"))
142166
+ $root.OrganizationIdentifier.encode(message.targetOrganization, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
142167
+ if (message.record != null && message.hasOwnProperty("record"))
142168
+ $root.EligibilityRecordIdentifier.encode(message.record, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
142169
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
142170
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
142171
+ if (message.offerings != null && message.offerings.length) {
142172
+ writer.uint32(/* id 5, wireType 2 =*/42).fork();
142173
+ for (var i = 0; i < message.offerings.length; ++i)
142174
+ writer.int32(message.offerings[i]);
142175
+ writer.ldelim();
142176
+ }
142177
+ if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
142178
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.enrollmentFlow);
141163
142179
  return writer;
141164
142180
  };
141165
142181
 
141166
142182
  /**
141167
- * Encodes the specified ElfRecordAbsent message, length delimited. Does not implicitly {@link ElfRecordAbsent.verify|verify} messages.
142183
+ * Encodes the specified ElfRecordMoved message, length delimited. Does not implicitly {@link ElfRecordMoved.verify|verify} messages.
141168
142184
  * @function encodeDelimited
141169
- * @memberof ElfRecordAbsent
142185
+ * @memberof ElfRecordMoved
141170
142186
  * @static
141171
- * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
142187
+ * @param {IElfRecordMoved} message ElfRecordMoved message or plain object to encode
141172
142188
  * @param {$protobuf.Writer} [writer] Writer to encode to
141173
142189
  * @returns {$protobuf.Writer} Writer
141174
142190
  */
141175
- ElfRecordAbsent.encodeDelimited = function encodeDelimited(message, writer) {
142191
+ ElfRecordMoved.encodeDelimited = function encodeDelimited(message, writer) {
141176
142192
  return this.encode(message, writer).ldelim();
141177
142193
  };
141178
142194
 
141179
142195
  /**
141180
- * Decodes an ElfRecordAbsent message from the specified reader or buffer.
142196
+ * Decodes an ElfRecordMoved message from the specified reader or buffer.
141181
142197
  * @function decode
141182
- * @memberof ElfRecordAbsent
142198
+ * @memberof ElfRecordMoved
141183
142199
  * @static
141184
142200
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
141185
142201
  * @param {number} [length] Message length if known beforehand
141186
- * @returns {ElfRecordAbsent} ElfRecordAbsent
142202
+ * @returns {ElfRecordMoved} ElfRecordMoved
141187
142203
  * @throws {Error} If the payload is not a reader or valid buffer
141188
142204
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
141189
142205
  */
141190
- ElfRecordAbsent.decode = function decode(reader, length) {
142206
+ ElfRecordMoved.decode = function decode(reader, length) {
141191
142207
  if (!(reader instanceof $Reader))
141192
142208
  reader = $Reader.create(reader);
141193
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfRecordAbsent();
142209
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfRecordMoved();
141194
142210
  while (reader.pos < end) {
141195
142211
  var tag = reader.uint32();
141196
142212
  switch (tag >>> 3) {
141197
142213
  case 1:
141198
- message.headspaceHealthOrgId = reader.string();
142214
+ message.sourceOrganization = $root.OrganizationIdentifier.decode(reader, reader.uint32());
141199
142215
  break;
141200
142216
  case 2:
141201
- message.b2bOrgId = reader.string();
142217
+ message.targetOrganization = $root.OrganizationIdentifier.decode(reader, reader.uint32());
141202
142218
  break;
141203
142219
  case 3:
141204
- message.gingerOrgId = reader.string();
142220
+ message.record = $root.EligibilityRecordIdentifier.decode(reader, reader.uint32());
141205
142221
  break;
141206
142222
  case 4:
141207
- message.fileImportedTimestamp = reader.uint64();
142223
+ message.timestamp = reader.uint64();
141208
142224
  break;
141209
142225
  case 5:
141210
- message.workEmail = reader.string();
141211
- break;
141212
- case 6:
141213
- message.workId = reader.string();
141214
- break;
141215
- case 7:
141216
- message.keyType = reader.int32();
141217
- break;
141218
- case 8:
141219
- message.isDryRun = reader.bool();
141220
- break;
141221
- case 9:
141222
- message.gingerShouldProcess = reader.bool();
141223
- break;
141224
- case 10:
141225
- message.headspaceShouldProcess = reader.bool();
141226
- break;
141227
- case 11:
141228
- message.unifiedEligibilityEnabled = reader.bool();
141229
- break;
141230
- case 12:
141231
- message.rootOrgHeadspaceHealthId = reader.string();
141232
- break;
141233
- case 13:
141234
- message.rootOrgId = reader.string();
141235
- break;
141236
- case 14:
141237
- message.isMemberMigrated = reader.bool();
142226
+ if (!(message.offerings && message.offerings.length))
142227
+ message.offerings = [];
142228
+ if ((tag & 7) === 2) {
142229
+ var end2 = reader.uint32() + reader.pos;
142230
+ while (reader.pos < end2)
142231
+ message.offerings.push(reader.int32());
142232
+ } else
142233
+ message.offerings.push(reader.int32());
141238
142234
  break;
141239
- case 16:
141240
- message.collectiveUuid = reader.string();
142235
+ case 6:
142236
+ message.enrollmentFlow = reader.int32();
141241
142237
  break;
141242
142238
  default:
141243
142239
  reader.skipType(tag & 7);
@@ -141248,227 +142244,223 @@ $root.ElfRecordAbsent = (function() {
141248
142244
  };
141249
142245
 
141250
142246
  /**
141251
- * Decodes an ElfRecordAbsent message from the specified reader or buffer, length delimited.
142247
+ * Decodes an ElfRecordMoved message from the specified reader or buffer, length delimited.
141252
142248
  * @function decodeDelimited
141253
- * @memberof ElfRecordAbsent
142249
+ * @memberof ElfRecordMoved
141254
142250
  * @static
141255
142251
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
141256
- * @returns {ElfRecordAbsent} ElfRecordAbsent
142252
+ * @returns {ElfRecordMoved} ElfRecordMoved
141257
142253
  * @throws {Error} If the payload is not a reader or valid buffer
141258
142254
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
141259
142255
  */
141260
- ElfRecordAbsent.decodeDelimited = function decodeDelimited(reader) {
142256
+ ElfRecordMoved.decodeDelimited = function decodeDelimited(reader) {
141261
142257
  if (!(reader instanceof $Reader))
141262
142258
  reader = new $Reader(reader);
141263
142259
  return this.decode(reader, reader.uint32());
141264
142260
  };
141265
142261
 
141266
142262
  /**
141267
- * Verifies an ElfRecordAbsent message.
142263
+ * Verifies an ElfRecordMoved message.
141268
142264
  * @function verify
141269
- * @memberof ElfRecordAbsent
142265
+ * @memberof ElfRecordMoved
141270
142266
  * @static
141271
142267
  * @param {Object.<string,*>} message Plain object to verify
141272
142268
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
141273
142269
  */
141274
- ElfRecordAbsent.verify = function verify(message) {
142270
+ ElfRecordMoved.verify = function verify(message) {
141275
142271
  if (typeof message !== "object" || message === null)
141276
142272
  return "object expected";
141277
- if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141278
- if (!$util.isString(message.headspaceHealthOrgId))
141279
- return "headspaceHealthOrgId: string expected";
141280
- if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141281
- if (!$util.isString(message.b2bOrgId))
141282
- return "b2bOrgId: string expected";
141283
- if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141284
- if (!$util.isString(message.gingerOrgId))
141285
- return "gingerOrgId: string expected";
141286
- if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141287
- if (!$util.isInteger(message.fileImportedTimestamp) && !(message.fileImportedTimestamp && $util.isInteger(message.fileImportedTimestamp.low) && $util.isInteger(message.fileImportedTimestamp.high)))
141288
- return "fileImportedTimestamp: integer|Long expected";
141289
- if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141290
- if (!$util.isString(message.workEmail))
141291
- return "workEmail: string expected";
141292
- if (message.workId != null && message.hasOwnProperty("workId"))
141293
- if (!$util.isString(message.workId))
141294
- return "workId: string expected";
141295
- if (message.keyType != null && message.hasOwnProperty("keyType"))
141296
- switch (message.keyType) {
142273
+ if (message.sourceOrganization != null && message.hasOwnProperty("sourceOrganization")) {
142274
+ var error = $root.OrganizationIdentifier.verify(message.sourceOrganization);
142275
+ if (error)
142276
+ return "sourceOrganization." + error;
142277
+ }
142278
+ if (message.targetOrganization != null && message.hasOwnProperty("targetOrganization")) {
142279
+ var error = $root.OrganizationIdentifier.verify(message.targetOrganization);
142280
+ if (error)
142281
+ return "targetOrganization." + error;
142282
+ }
142283
+ if (message.record != null && message.hasOwnProperty("record")) {
142284
+ var error = $root.EligibilityRecordIdentifier.verify(message.record);
142285
+ if (error)
142286
+ return "record." + error;
142287
+ }
142288
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
142289
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
142290
+ return "timestamp: integer|Long expected";
142291
+ if (message.offerings != null && message.hasOwnProperty("offerings")) {
142292
+ if (!Array.isArray(message.offerings))
142293
+ return "offerings: array expected";
142294
+ for (var i = 0; i < message.offerings.length; ++i)
142295
+ switch (message.offerings[i]) {
142296
+ default:
142297
+ return "offerings: enum value[] expected";
142298
+ case 0:
142299
+ case 1:
142300
+ case 2:
142301
+ break;
142302
+ }
142303
+ }
142304
+ if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
142305
+ switch (message.enrollmentFlow) {
141297
142306
  default:
141298
- return "keyType: enum value expected";
142307
+ return "enrollmentFlow: enum value expected";
141299
142308
  case 0:
141300
142309
  case 1:
142310
+ case 2:
142311
+ case 3:
142312
+ case 4:
142313
+ case 5:
141301
142314
  break;
141302
142315
  }
141303
- if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141304
- if (typeof message.isDryRun !== "boolean")
141305
- return "isDryRun: boolean expected";
141306
- if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141307
- if (typeof message.gingerShouldProcess !== "boolean")
141308
- return "gingerShouldProcess: boolean expected";
141309
- if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141310
- if (typeof message.headspaceShouldProcess !== "boolean")
141311
- return "headspaceShouldProcess: boolean expected";
141312
- if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141313
- if (typeof message.unifiedEligibilityEnabled !== "boolean")
141314
- return "unifiedEligibilityEnabled: boolean expected";
141315
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141316
- if (!$util.isString(message.rootOrgHeadspaceHealthId))
141317
- return "rootOrgHeadspaceHealthId: string expected";
141318
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141319
- if (!$util.isString(message.rootOrgId))
141320
- return "rootOrgId: string expected";
141321
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141322
- if (typeof message.isMemberMigrated !== "boolean")
141323
- return "isMemberMigrated: boolean expected";
141324
- if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141325
- if (!$util.isString(message.collectiveUuid))
141326
- return "collectiveUuid: string expected";
141327
142316
  return null;
141328
142317
  };
141329
142318
 
141330
142319
  /**
141331
- * Creates an ElfRecordAbsent message from a plain object. Also converts values to their respective internal types.
142320
+ * Creates an ElfRecordMoved message from a plain object. Also converts values to their respective internal types.
141332
142321
  * @function fromObject
141333
- * @memberof ElfRecordAbsent
142322
+ * @memberof ElfRecordMoved
141334
142323
  * @static
141335
142324
  * @param {Object.<string,*>} object Plain object
141336
- * @returns {ElfRecordAbsent} ElfRecordAbsent
142325
+ * @returns {ElfRecordMoved} ElfRecordMoved
141337
142326
  */
141338
- ElfRecordAbsent.fromObject = function fromObject(object) {
141339
- if (object instanceof $root.ElfRecordAbsent)
142327
+ ElfRecordMoved.fromObject = function fromObject(object) {
142328
+ if (object instanceof $root.ElfRecordMoved)
141340
142329
  return object;
141341
- var message = new $root.ElfRecordAbsent();
141342
- if (object.headspaceHealthOrgId != null)
141343
- message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
141344
- if (object.b2bOrgId != null)
141345
- message.b2bOrgId = String(object.b2bOrgId);
141346
- if (object.gingerOrgId != null)
141347
- message.gingerOrgId = String(object.gingerOrgId);
141348
- if (object.fileImportedTimestamp != null)
142330
+ var message = new $root.ElfRecordMoved();
142331
+ if (object.sourceOrganization != null) {
142332
+ if (typeof object.sourceOrganization !== "object")
142333
+ throw TypeError(".ElfRecordMoved.sourceOrganization: object expected");
142334
+ message.sourceOrganization = $root.OrganizationIdentifier.fromObject(object.sourceOrganization);
142335
+ }
142336
+ if (object.targetOrganization != null) {
142337
+ if (typeof object.targetOrganization !== "object")
142338
+ throw TypeError(".ElfRecordMoved.targetOrganization: object expected");
142339
+ message.targetOrganization = $root.OrganizationIdentifier.fromObject(object.targetOrganization);
142340
+ }
142341
+ if (object.record != null) {
142342
+ if (typeof object.record !== "object")
142343
+ throw TypeError(".ElfRecordMoved.record: object expected");
142344
+ message.record = $root.EligibilityRecordIdentifier.fromObject(object.record);
142345
+ }
142346
+ if (object.timestamp != null)
141349
142347
  if ($util.Long)
141350
- (message.fileImportedTimestamp = $util.Long.fromValue(object.fileImportedTimestamp)).unsigned = true;
141351
- else if (typeof object.fileImportedTimestamp === "string")
141352
- message.fileImportedTimestamp = parseInt(object.fileImportedTimestamp, 10);
141353
- else if (typeof object.fileImportedTimestamp === "number")
141354
- message.fileImportedTimestamp = object.fileImportedTimestamp;
141355
- else if (typeof object.fileImportedTimestamp === "object")
141356
- message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
141357
- if (object.workEmail != null)
141358
- message.workEmail = String(object.workEmail);
141359
- if (object.workId != null)
141360
- message.workId = String(object.workId);
141361
- switch (object.keyType) {
141362
- case "WORK_ID":
142348
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
142349
+ else if (typeof object.timestamp === "string")
142350
+ message.timestamp = parseInt(object.timestamp, 10);
142351
+ else if (typeof object.timestamp === "number")
142352
+ message.timestamp = object.timestamp;
142353
+ else if (typeof object.timestamp === "object")
142354
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
142355
+ if (object.offerings) {
142356
+ if (!Array.isArray(object.offerings))
142357
+ throw TypeError(".ElfRecordMoved.offerings: array expected");
142358
+ message.offerings = [];
142359
+ for (var i = 0; i < object.offerings.length; ++i)
142360
+ switch (object.offerings[i]) {
142361
+ default:
142362
+ case "SUBSCRIPTION_OFFERING_UNKNOWN":
142363
+ case 0:
142364
+ message.offerings[i] = 0;
142365
+ break;
142366
+ case "SUBSCRIPTION_OFFERING_HEADSPACE":
142367
+ case 1:
142368
+ message.offerings[i] = 1;
142369
+ break;
142370
+ case "SUBSCRIPTION_OFFERING_GINGER":
142371
+ case 2:
142372
+ message.offerings[i] = 2;
142373
+ break;
142374
+ }
142375
+ }
142376
+ switch (object.enrollmentFlow) {
142377
+ case "ENROLLMENT_FLOW_UNKNOWN":
141363
142378
  case 0:
141364
- message.keyType = 0;
142379
+ message.enrollmentFlow = 0;
141365
142380
  break;
141366
- case "WORK_EMAIL":
142381
+ case "ENROLLMENT_FLOW_HEADSPACE":
141367
142382
  case 1:
141368
- message.keyType = 1;
142383
+ message.enrollmentFlow = 1;
142384
+ break;
142385
+ case "ENROLLMENT_FLOW_CONNECTED":
142386
+ case 2:
142387
+ message.enrollmentFlow = 2;
142388
+ break;
142389
+ case "ENROLLMENT_FLOW_UMD":
142390
+ case 3:
142391
+ message.enrollmentFlow = 3;
142392
+ break;
142393
+ case "ENROLLMENT_FLOW_FUSION":
142394
+ case 4:
142395
+ message.enrollmentFlow = 4;
142396
+ break;
142397
+ case "ENROLLMENT_FLOW_GINGER":
142398
+ case 5:
142399
+ message.enrollmentFlow = 5;
141369
142400
  break;
141370
142401
  }
141371
- if (object.isDryRun != null)
141372
- message.isDryRun = Boolean(object.isDryRun);
141373
- if (object.gingerShouldProcess != null)
141374
- message.gingerShouldProcess = Boolean(object.gingerShouldProcess);
141375
- if (object.headspaceShouldProcess != null)
141376
- message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
141377
- if (object.unifiedEligibilityEnabled != null)
141378
- message.unifiedEligibilityEnabled = Boolean(object.unifiedEligibilityEnabled);
141379
- if (object.rootOrgHeadspaceHealthId != null)
141380
- message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
141381
- if (object.rootOrgId != null)
141382
- message.rootOrgId = String(object.rootOrgId);
141383
- if (object.isMemberMigrated != null)
141384
- message.isMemberMigrated = Boolean(object.isMemberMigrated);
141385
- if (object.collectiveUuid != null)
141386
- message.collectiveUuid = String(object.collectiveUuid);
141387
142402
  return message;
141388
142403
  };
141389
142404
 
141390
142405
  /**
141391
- * Creates a plain object from an ElfRecordAbsent message. Also converts values to other types if specified.
142406
+ * Creates a plain object from an ElfRecordMoved message. Also converts values to other types if specified.
141392
142407
  * @function toObject
141393
- * @memberof ElfRecordAbsent
142408
+ * @memberof ElfRecordMoved
141394
142409
  * @static
141395
- * @param {ElfRecordAbsent} message ElfRecordAbsent
142410
+ * @param {ElfRecordMoved} message ElfRecordMoved
141396
142411
  * @param {$protobuf.IConversionOptions} [options] Conversion options
141397
142412
  * @returns {Object.<string,*>} Plain object
141398
142413
  */
141399
- ElfRecordAbsent.toObject = function toObject(message, options) {
142414
+ ElfRecordMoved.toObject = function toObject(message, options) {
141400
142415
  if (!options)
141401
142416
  options = {};
141402
142417
  var object = {};
142418
+ if (options.arrays || options.defaults)
142419
+ object.offerings = [];
141403
142420
  if (options.defaults) {
141404
- object.headspaceHealthOrgId = "";
141405
- object.b2bOrgId = "";
141406
- object.gingerOrgId = "";
142421
+ object.sourceOrganization = null;
142422
+ object.targetOrganization = null;
142423
+ object.record = null;
141407
142424
  if ($util.Long) {
141408
142425
  var long = new $util.Long(0, 0, true);
141409
- object.fileImportedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
142426
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
141410
142427
  } else
141411
- object.fileImportedTimestamp = options.longs === String ? "0" : 0;
141412
- object.workEmail = "";
141413
- object.workId = "";
141414
- object.keyType = options.enums === String ? "WORK_ID" : 0;
141415
- object.isDryRun = false;
141416
- object.gingerShouldProcess = false;
141417
- object.headspaceShouldProcess = false;
141418
- object.unifiedEligibilityEnabled = false;
141419
- object.rootOrgHeadspaceHealthId = "";
141420
- object.rootOrgId = "";
141421
- object.isMemberMigrated = false;
141422
- object.collectiveUuid = "";
142428
+ object.timestamp = options.longs === String ? "0" : 0;
142429
+ object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
141423
142430
  }
141424
- if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141425
- object.headspaceHealthOrgId = message.headspaceHealthOrgId;
141426
- if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141427
- object.b2bOrgId = message.b2bOrgId;
141428
- if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141429
- object.gingerOrgId = message.gingerOrgId;
141430
- if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141431
- if (typeof message.fileImportedTimestamp === "number")
141432
- object.fileImportedTimestamp = options.longs === String ? String(message.fileImportedTimestamp) : message.fileImportedTimestamp;
142431
+ if (message.sourceOrganization != null && message.hasOwnProperty("sourceOrganization"))
142432
+ object.sourceOrganization = $root.OrganizationIdentifier.toObject(message.sourceOrganization, options);
142433
+ if (message.targetOrganization != null && message.hasOwnProperty("targetOrganization"))
142434
+ object.targetOrganization = $root.OrganizationIdentifier.toObject(message.targetOrganization, options);
142435
+ if (message.record != null && message.hasOwnProperty("record"))
142436
+ object.record = $root.EligibilityRecordIdentifier.toObject(message.record, options);
142437
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
142438
+ if (typeof message.timestamp === "number")
142439
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
141433
142440
  else
141434
- object.fileImportedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.fileImportedTimestamp) : options.longs === Number ? new $util.LongBits(message.fileImportedTimestamp.low >>> 0, message.fileImportedTimestamp.high >>> 0).toNumber(true) : message.fileImportedTimestamp;
141435
- if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141436
- object.workEmail = message.workEmail;
141437
- if (message.workId != null && message.hasOwnProperty("workId"))
141438
- object.workId = message.workId;
141439
- if (message.keyType != null && message.hasOwnProperty("keyType"))
141440
- object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
141441
- if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141442
- object.isDryRun = message.isDryRun;
141443
- if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141444
- object.gingerShouldProcess = message.gingerShouldProcess;
141445
- if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141446
- object.headspaceShouldProcess = message.headspaceShouldProcess;
141447
- if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141448
- object.unifiedEligibilityEnabled = message.unifiedEligibilityEnabled;
141449
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141450
- object.rootOrgHeadspaceHealthId = message.rootOrgHeadspaceHealthId;
141451
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141452
- object.rootOrgId = message.rootOrgId;
141453
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141454
- object.isMemberMigrated = message.isMemberMigrated;
141455
- if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141456
- object.collectiveUuid = message.collectiveUuid;
142441
+ 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;
142442
+ if (message.offerings && message.offerings.length) {
142443
+ object.offerings = [];
142444
+ for (var j = 0; j < message.offerings.length; ++j)
142445
+ object.offerings[j] = options.enums === String ? $root.b2b.SubscriptionOffering[message.offerings[j]] : message.offerings[j];
142446
+ }
142447
+ if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
142448
+ object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
141457
142449
  return object;
141458
142450
  };
141459
142451
 
141460
142452
  /**
141461
- * Converts this ElfRecordAbsent to JSON.
142453
+ * Converts this ElfRecordMoved to JSON.
141462
142454
  * @function toJSON
141463
- * @memberof ElfRecordAbsent
142455
+ * @memberof ElfRecordMoved
141464
142456
  * @instance
141465
142457
  * @returns {Object.<string,*>} JSON object
141466
142458
  */
141467
- ElfRecordAbsent.prototype.toJSON = function toJSON() {
142459
+ ElfRecordMoved.prototype.toJSON = function toJSON() {
141468
142460
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
141469
142461
  };
141470
142462
 
141471
- return ElfRecordAbsent;
142463
+ return ElfRecordMoved;
141472
142464
  })();
141473
142465
 
141474
142466
  $root.ElfProcessingStats = (function() {