@headspace/protos-events 1.617.0 → 1.619.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 +336 -0
  2. package/lib/index.js +1906 -911
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -140160,55 +140160,1413 @@ $root.KeyType = (function() {
140160
140160
  return values;
140161
140161
  })();
140162
140162
 
140163
+ $root.OrganizationIdentifier = (function() {
140164
+
140165
+ /**
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
140172
+ */
140173
+
140174
+ /**
140175
+ * Constructs a new OrganizationIdentifier.
140176
+ * @name OrganizationIdentifier
140177
+ * @classdesc Represents an OrganizationIdentifier.
140178
+ * @implements IOrganizationIdentifier
140179
+ * @constructor
140180
+ * @param {IOrganizationIdentifier=} [properties] Properties to set
140181
+ */
140182
+ function OrganizationIdentifier(properties) {
140183
+ if (properties)
140184
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140185
+ if (properties[keys[i]] != null)
140186
+ this[keys[i]] = properties[keys[i]];
140187
+ }
140188
+
140189
+ /**
140190
+ * OrganizationIdentifier headspaceHealthOrgId.
140191
+ * @member {string} headspaceHealthOrgId
140192
+ * @memberof OrganizationIdentifier
140193
+ * @instance
140194
+ */
140195
+ OrganizationIdentifier.prototype.headspaceHealthOrgId = "";
140196
+
140197
+ /**
140198
+ * OrganizationIdentifier b2bOrgId.
140199
+ * @member {string} b2bOrgId
140200
+ * @memberof OrganizationIdentifier
140201
+ * @instance
140202
+ */
140203
+ OrganizationIdentifier.prototype.b2bOrgId = "";
140204
+
140205
+ /**
140206
+ * OrganizationIdentifier gingerOrgId.
140207
+ * @member {string} gingerOrgId
140208
+ * @memberof OrganizationIdentifier
140209
+ * @instance
140210
+ */
140211
+ OrganizationIdentifier.prototype.gingerOrgId = "";
140212
+
140213
+ /**
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
140220
+ */
140221
+ OrganizationIdentifier.create = function create(properties) {
140222
+ return new OrganizationIdentifier(properties);
140223
+ };
140224
+
140225
+ /**
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
140233
+ */
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
+ };
140245
+
140246
+ /**
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
140254
+ */
140255
+ OrganizationIdentifier.encodeDelimited = function encodeDelimited(message, writer) {
140256
+ return this.encode(message, writer).ldelim();
140257
+ };
140258
+
140259
+ /**
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
140269
+ */
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
+ };
140293
+
140294
+ /**
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
140303
+ */
140304
+ OrganizationIdentifier.decodeDelimited = function decodeDelimited(reader) {
140305
+ if (!(reader instanceof $Reader))
140306
+ reader = new $Reader(reader);
140307
+ return this.decode(reader, reader.uint32());
140308
+ };
140309
+
140310
+ /**
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
140317
+ */
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
+ };
140332
+
140333
+ /**
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
140340
+ */
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
+ };
140353
+
140354
+ /**
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
140362
+ */
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
+ };
140380
+
140381
+ /**
140382
+ * Converts this OrganizationIdentifier to JSON.
140383
+ * @function toJSON
140384
+ * @memberof OrganizationIdentifier
140385
+ * @instance
140386
+ * @returns {Object.<string,*>} JSON object
140387
+ */
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() {
140396
+
140397
+ /**
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
140403
+ */
140404
+
140405
+ /**
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
+
140163
140618
  $root.ElfRecordPresent = (function() {
140164
140619
 
140165
140620
  /**
140166
- * Properties of an ElfRecordPresent.
140167
- * @name IElfRecordPresent
140168
- * @interface IElfRecordPresent
140169
- * @property {string|null} [headspaceHealthOrgId] ElfRecordPresent headspaceHealthOrgId
140170
- * @property {string|null} [b2bOrgId] ElfRecordPresent b2bOrgId
140171
- * @property {string|null} [gingerOrgId] ElfRecordPresent gingerOrgId
140172
- * @property {number|Long|null} [fileImportedTimestamp] ElfRecordPresent fileImportedTimestamp
140173
- * @property {number|null} [lineNumber] ElfRecordPresent lineNumber
140174
- * @property {string|null} [workEmail] ElfRecordPresent workEmail
140175
- * @property {string|null} [workId] ElfRecordPresent workId
140176
- * @property {KeyType|null} [keyType] ElfRecordPresent keyType
140177
- * @property {string|null} [firstName] ElfRecordPresent firstName
140178
- * @property {string|null} [lastName] ElfRecordPresent lastName
140179
- * @property {string|null} [country] ElfRecordPresent country
140180
- * @property {string|null} [zipCode] ElfRecordPresent zipCode
140181
- * @property {string|null} [dob] ElfRecordPresent dob
140182
- * @property {string|null} [countryStateCode] ElfRecordPresent countryStateCode
140183
- * @property {string|null} [streetAddress_1] ElfRecordPresent streetAddress_1
140184
- * @property {string|null} [streetAddress_2] ElfRecordPresent streetAddress_2
140185
- * @property {string|null} [department] ElfRecordPresent department
140186
- * @property {string|null} [language] ElfRecordPresent language
140187
- * @property {string|null} [customFields] ElfRecordPresent customFields
140188
- * @property {Array.<b2b.SubscriptionOffering>|null} [offerings] ElfRecordPresent offerings
140189
- * @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordPresent rootOrgHeadspaceHealthId
140190
- * @property {string|null} [rootOrgId] ElfRecordPresent rootOrgId
140191
- * @property {boolean|null} [isMemberMigrated] ElfRecordPresent isMemberMigrated
140192
- * @property {string|null} [priorB2bOrgId] ElfRecordPresent priorB2bOrgId
140193
- * @property {string|null} [location] ElfRecordPresent location
140194
- * @property {string|null} [dependentOf] ElfRecordPresent dependentOf
140195
- * @property {boolean|null} [isDryRun] ElfRecordPresent isDryRun
140196
- * @property {boolean|null} [gingerShouldProcess] ElfRecordPresent gingerShouldProcess
140197
- * @property {boolean|null} [headspaceShouldProcess] ElfRecordPresent headspaceShouldProcess
140198
- * @property {boolean|null} [unifiedEligibilityEnabled] ElfRecordPresent unifiedEligibilityEnabled
140199
- * @property {string|null} [collectiveUuid] ElfRecordPresent collectiveUuid
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
140676
+ * @memberof ElfRecordPresent
140677
+ * @instance
140678
+ */
140679
+ ElfRecordPresent.prototype.headspaceHealthOrgId = "";
140680
+
140681
+ /**
140682
+ * ElfRecordPresent b2bOrgId.
140683
+ * @member {string} b2bOrgId
140684
+ * @memberof ElfRecordPresent
140685
+ * @instance
140686
+ */
140687
+ ElfRecordPresent.prototype.b2bOrgId = "";
140688
+
140689
+ /**
140690
+ * ElfRecordPresent gingerOrgId.
140691
+ * @member {string} gingerOrgId
140692
+ * @memberof ElfRecordPresent
140693
+ * @instance
140694
+ */
140695
+ ElfRecordPresent.prototype.gingerOrgId = "";
140696
+
140697
+ /**
140698
+ * ElfRecordPresent fileImportedTimestamp.
140699
+ * @member {number|Long} fileImportedTimestamp
140700
+ * @memberof ElfRecordPresent
140701
+ * @instance
140702
+ */
140703
+ ElfRecordPresent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140704
+
140705
+ /**
140706
+ * ElfRecordPresent lineNumber.
140707
+ * @member {number} lineNumber
140708
+ * @memberof ElfRecordPresent
140709
+ * @instance
140710
+ */
140711
+ ElfRecordPresent.prototype.lineNumber = 0;
140712
+
140713
+ /**
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
140732
+ * @memberof ElfRecordPresent
140733
+ * @instance
140734
+ */
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
140200
141559
  */
140201
141560
 
140202
141561
  /**
140203
- * Constructs a new ElfRecordPresent.
140204
- * @name ElfRecordPresent
140205
- * @classdesc Represents an ElfRecordPresent.
140206
- * @implements IElfRecordPresent
141562
+ * Constructs a new ElfRecordAbsent.
141563
+ * @name ElfRecordAbsent
141564
+ * @classdesc Represents an ElfRecordAbsent.
141565
+ * @implements IElfRecordAbsent
140207
141566
  * @constructor
140208
- * @param {IElfRecordPresent=} [properties] Properties to set
141567
+ * @param {IElfRecordAbsent=} [properties] Properties to set
140209
141568
  */
140210
- function ElfRecordPresent(properties) {
140211
- this.offerings = [];
141569
+ function ElfRecordAbsent(properties) {
140212
141570
  if (properties)
140213
141571
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140214
141572
  if (properties[keys[i]] != null)
@@ -140216,275 +141574,147 @@ $root.ElfRecordPresent = (function() {
140216
141574
  }
140217
141575
 
140218
141576
  /**
140219
- * ElfRecordPresent headspaceHealthOrgId.
141577
+ * ElfRecordAbsent headspaceHealthOrgId.
140220
141578
  * @member {string} headspaceHealthOrgId
140221
- * @memberof ElfRecordPresent
141579
+ * @memberof ElfRecordAbsent
140222
141580
  * @instance
140223
141581
  */
140224
- ElfRecordPresent.prototype.headspaceHealthOrgId = "";
141582
+ ElfRecordAbsent.prototype.headspaceHealthOrgId = "";
140225
141583
 
140226
141584
  /**
140227
- * ElfRecordPresent b2bOrgId.
141585
+ * ElfRecordAbsent b2bOrgId.
140228
141586
  * @member {string} b2bOrgId
140229
- * @memberof ElfRecordPresent
141587
+ * @memberof ElfRecordAbsent
140230
141588
  * @instance
140231
141589
  */
140232
- ElfRecordPresent.prototype.b2bOrgId = "";
141590
+ ElfRecordAbsent.prototype.b2bOrgId = "";
140233
141591
 
140234
141592
  /**
140235
- * ElfRecordPresent gingerOrgId.
141593
+ * ElfRecordAbsent gingerOrgId.
140236
141594
  * @member {string} gingerOrgId
140237
- * @memberof ElfRecordPresent
141595
+ * @memberof ElfRecordAbsent
140238
141596
  * @instance
140239
141597
  */
140240
- ElfRecordPresent.prototype.gingerOrgId = "";
141598
+ ElfRecordAbsent.prototype.gingerOrgId = "";
140241
141599
 
140242
141600
  /**
140243
- * ElfRecordPresent fileImportedTimestamp.
141601
+ * ElfRecordAbsent fileImportedTimestamp.
140244
141602
  * @member {number|Long} fileImportedTimestamp
140245
- * @memberof ElfRecordPresent
140246
- * @instance
140247
- */
140248
- ElfRecordPresent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140249
-
140250
- /**
140251
- * ElfRecordPresent lineNumber.
140252
- * @member {number} lineNumber
140253
- * @memberof ElfRecordPresent
141603
+ * @memberof ElfRecordAbsent
140254
141604
  * @instance
140255
141605
  */
140256
- ElfRecordPresent.prototype.lineNumber = 0;
141606
+ ElfRecordAbsent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140257
141607
 
140258
141608
  /**
140259
- * ElfRecordPresent workEmail.
141609
+ * ElfRecordAbsent workEmail.
140260
141610
  * @member {string} workEmail
140261
- * @memberof ElfRecordPresent
141611
+ * @memberof ElfRecordAbsent
140262
141612
  * @instance
140263
141613
  */
140264
- ElfRecordPresent.prototype.workEmail = "";
141614
+ ElfRecordAbsent.prototype.workEmail = "";
140265
141615
 
140266
141616
  /**
140267
- * ElfRecordPresent workId.
141617
+ * ElfRecordAbsent workId.
140268
141618
  * @member {string} workId
140269
- * @memberof ElfRecordPresent
141619
+ * @memberof ElfRecordAbsent
140270
141620
  * @instance
140271
141621
  */
140272
- ElfRecordPresent.prototype.workId = "";
141622
+ ElfRecordAbsent.prototype.workId = "";
140273
141623
 
140274
141624
  /**
140275
- * ElfRecordPresent keyType.
141625
+ * ElfRecordAbsent keyType.
140276
141626
  * @member {KeyType} keyType
140277
- * @memberof ElfRecordPresent
140278
- * @instance
140279
- */
140280
- ElfRecordPresent.prototype.keyType = 0;
140281
-
140282
- /**
140283
- * ElfRecordPresent firstName.
140284
- * @member {string} firstName
140285
- * @memberof ElfRecordPresent
140286
- * @instance
140287
- */
140288
- ElfRecordPresent.prototype.firstName = "";
140289
-
140290
- /**
140291
- * ElfRecordPresent lastName.
140292
- * @member {string} lastName
140293
- * @memberof ElfRecordPresent
140294
- * @instance
140295
- */
140296
- ElfRecordPresent.prototype.lastName = "";
140297
-
140298
- /**
140299
- * ElfRecordPresent country.
140300
- * @member {string} country
140301
- * @memberof ElfRecordPresent
140302
- * @instance
140303
- */
140304
- ElfRecordPresent.prototype.country = "";
140305
-
140306
- /**
140307
- * ElfRecordPresent zipCode.
140308
- * @member {string} zipCode
140309
- * @memberof ElfRecordPresent
140310
- * @instance
140311
- */
140312
- ElfRecordPresent.prototype.zipCode = "";
140313
-
140314
- /**
140315
- * ElfRecordPresent dob.
140316
- * @member {string} dob
140317
- * @memberof ElfRecordPresent
140318
- * @instance
140319
- */
140320
- ElfRecordPresent.prototype.dob = "";
140321
-
140322
- /**
140323
- * ElfRecordPresent countryStateCode.
140324
- * @member {string} countryStateCode
140325
- * @memberof ElfRecordPresent
140326
- * @instance
140327
- */
140328
- ElfRecordPresent.prototype.countryStateCode = "";
140329
-
140330
- /**
140331
- * ElfRecordPresent streetAddress_1.
140332
- * @member {string} streetAddress_1
140333
- * @memberof ElfRecordPresent
140334
- * @instance
140335
- */
140336
- ElfRecordPresent.prototype.streetAddress_1 = "";
140337
-
140338
- /**
140339
- * ElfRecordPresent streetAddress_2.
140340
- * @member {string} streetAddress_2
140341
- * @memberof ElfRecordPresent
141627
+ * @memberof ElfRecordAbsent
140342
141628
  * @instance
140343
141629
  */
140344
- ElfRecordPresent.prototype.streetAddress_2 = "";
141630
+ ElfRecordAbsent.prototype.keyType = 0;
140345
141631
 
140346
141632
  /**
140347
- * ElfRecordPresent department.
140348
- * @member {string} department
140349
- * @memberof ElfRecordPresent
141633
+ * ElfRecordAbsent isDryRun.
141634
+ * @member {boolean} isDryRun
141635
+ * @memberof ElfRecordAbsent
140350
141636
  * @instance
140351
141637
  */
140352
- ElfRecordPresent.prototype.department = "";
141638
+ ElfRecordAbsent.prototype.isDryRun = false;
140353
141639
 
140354
141640
  /**
140355
- * ElfRecordPresent language.
140356
- * @member {string} language
140357
- * @memberof ElfRecordPresent
141641
+ * ElfRecordAbsent gingerShouldProcess.
141642
+ * @member {boolean} gingerShouldProcess
141643
+ * @memberof ElfRecordAbsent
140358
141644
  * @instance
140359
141645
  */
140360
- ElfRecordPresent.prototype.language = "";
141646
+ ElfRecordAbsent.prototype.gingerShouldProcess = false;
140361
141647
 
140362
141648
  /**
140363
- * ElfRecordPresent customFields.
140364
- * @member {string} customFields
140365
- * @memberof ElfRecordPresent
141649
+ * ElfRecordAbsent headspaceShouldProcess.
141650
+ * @member {boolean} headspaceShouldProcess
141651
+ * @memberof ElfRecordAbsent
140366
141652
  * @instance
140367
141653
  */
140368
- ElfRecordPresent.prototype.customFields = "";
141654
+ ElfRecordAbsent.prototype.headspaceShouldProcess = false;
140369
141655
 
140370
141656
  /**
140371
- * ElfRecordPresent offerings.
140372
- * @member {Array.<b2b.SubscriptionOffering>} offerings
140373
- * @memberof ElfRecordPresent
141657
+ * ElfRecordAbsent unifiedEligibilityEnabled.
141658
+ * @member {boolean} unifiedEligibilityEnabled
141659
+ * @memberof ElfRecordAbsent
140374
141660
  * @instance
140375
141661
  */
140376
- ElfRecordPresent.prototype.offerings = $util.emptyArray;
141662
+ ElfRecordAbsent.prototype.unifiedEligibilityEnabled = false;
140377
141663
 
140378
141664
  /**
140379
- * ElfRecordPresent rootOrgHeadspaceHealthId.
141665
+ * ElfRecordAbsent rootOrgHeadspaceHealthId.
140380
141666
  * @member {string} rootOrgHeadspaceHealthId
140381
- * @memberof ElfRecordPresent
141667
+ * @memberof ElfRecordAbsent
140382
141668
  * @instance
140383
141669
  */
140384
- ElfRecordPresent.prototype.rootOrgHeadspaceHealthId = "";
141670
+ ElfRecordAbsent.prototype.rootOrgHeadspaceHealthId = "";
140385
141671
 
140386
141672
  /**
140387
- * ElfRecordPresent rootOrgId.
141673
+ * ElfRecordAbsent rootOrgId.
140388
141674
  * @member {string} rootOrgId
140389
- * @memberof ElfRecordPresent
141675
+ * @memberof ElfRecordAbsent
140390
141676
  * @instance
140391
141677
  */
140392
- ElfRecordPresent.prototype.rootOrgId = "";
141678
+ ElfRecordAbsent.prototype.rootOrgId = "";
140393
141679
 
140394
141680
  /**
140395
- * ElfRecordPresent isMemberMigrated.
141681
+ * ElfRecordAbsent isMemberMigrated.
140396
141682
  * @member {boolean} isMemberMigrated
140397
- * @memberof ElfRecordPresent
140398
- * @instance
140399
- */
140400
- ElfRecordPresent.prototype.isMemberMigrated = false;
140401
-
140402
- /**
140403
- * ElfRecordPresent priorB2bOrgId.
140404
- * @member {string} priorB2bOrgId
140405
- * @memberof ElfRecordPresent
140406
- * @instance
140407
- */
140408
- ElfRecordPresent.prototype.priorB2bOrgId = "";
140409
-
140410
- /**
140411
- * ElfRecordPresent location.
140412
- * @member {string} location
140413
- * @memberof ElfRecordPresent
140414
- * @instance
140415
- */
140416
- ElfRecordPresent.prototype.location = "";
140417
-
140418
- /**
140419
- * ElfRecordPresent dependentOf.
140420
- * @member {string} dependentOf
140421
- * @memberof ElfRecordPresent
140422
- * @instance
140423
- */
140424
- ElfRecordPresent.prototype.dependentOf = "";
140425
-
140426
- /**
140427
- * ElfRecordPresent isDryRun.
140428
- * @member {boolean} isDryRun
140429
- * @memberof ElfRecordPresent
140430
- * @instance
140431
- */
140432
- ElfRecordPresent.prototype.isDryRun = false;
140433
-
140434
- /**
140435
- * ElfRecordPresent gingerShouldProcess.
140436
- * @member {boolean} gingerShouldProcess
140437
- * @memberof ElfRecordPresent
140438
- * @instance
140439
- */
140440
- ElfRecordPresent.prototype.gingerShouldProcess = false;
140441
-
140442
- /**
140443
- * ElfRecordPresent headspaceShouldProcess.
140444
- * @member {boolean} headspaceShouldProcess
140445
- * @memberof ElfRecordPresent
140446
- * @instance
140447
- */
140448
- ElfRecordPresent.prototype.headspaceShouldProcess = false;
140449
-
140450
- /**
140451
- * ElfRecordPresent unifiedEligibilityEnabled.
140452
- * @member {boolean} unifiedEligibilityEnabled
140453
- * @memberof ElfRecordPresent
141683
+ * @memberof ElfRecordAbsent
140454
141684
  * @instance
140455
141685
  */
140456
- ElfRecordPresent.prototype.unifiedEligibilityEnabled = false;
141686
+ ElfRecordAbsent.prototype.isMemberMigrated = false;
140457
141687
 
140458
141688
  /**
140459
- * ElfRecordPresent collectiveUuid.
141689
+ * ElfRecordAbsent collectiveUuid.
140460
141690
  * @member {string} collectiveUuid
140461
- * @memberof ElfRecordPresent
141691
+ * @memberof ElfRecordAbsent
140462
141692
  * @instance
140463
141693
  */
140464
- ElfRecordPresent.prototype.collectiveUuid = "";
141694
+ ElfRecordAbsent.prototype.collectiveUuid = "";
140465
141695
 
140466
141696
  /**
140467
- * Creates a new ElfRecordPresent instance using the specified properties.
141697
+ * Creates a new ElfRecordAbsent instance using the specified properties.
140468
141698
  * @function create
140469
- * @memberof ElfRecordPresent
141699
+ * @memberof ElfRecordAbsent
140470
141700
  * @static
140471
- * @param {IElfRecordPresent=} [properties] Properties to set
140472
- * @returns {ElfRecordPresent} ElfRecordPresent instance
141701
+ * @param {IElfRecordAbsent=} [properties] Properties to set
141702
+ * @returns {ElfRecordAbsent} ElfRecordAbsent instance
140473
141703
  */
140474
- ElfRecordPresent.create = function create(properties) {
140475
- return new ElfRecordPresent(properties);
141704
+ ElfRecordAbsent.create = function create(properties) {
141705
+ return new ElfRecordAbsent(properties);
140476
141706
  };
140477
141707
 
140478
141708
  /**
140479
- * 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.
140480
141710
  * @function encode
140481
- * @memberof ElfRecordPresent
141711
+ * @memberof ElfRecordAbsent
140482
141712
  * @static
140483
- * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
141713
+ * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
140484
141714
  * @param {$protobuf.Writer} [writer] Writer to encode to
140485
141715
  * @returns {$protobuf.Writer} Writer
140486
141716
  */
140487
- ElfRecordPresent.encode = function encode(message, writer) {
141717
+ ElfRecordAbsent.encode = function encode(message, writer) {
140488
141718
  if (!writer)
140489
141719
  writer = $Writer.create();
140490
141720
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
@@ -140495,95 +141725,59 @@ $root.ElfRecordPresent = (function() {
140495
141725
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
140496
141726
  if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
140497
141727
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileImportedTimestamp);
140498
- if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
140499
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.lineNumber);
140500
141728
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
140501
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.workEmail);
141729
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workEmail);
140502
141730
  if (message.workId != null && message.hasOwnProperty("workId"))
140503
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.workId);
141731
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.workId);
140504
141732
  if (message.keyType != null && message.hasOwnProperty("keyType"))
140505
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.keyType);
140506
- if (message.firstName != null && message.hasOwnProperty("firstName"))
140507
- writer.uint32(/* id 9, wireType 2 =*/74).string(message.firstName);
140508
- if (message.lastName != null && message.hasOwnProperty("lastName"))
140509
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.lastName);
140510
- if (message.country != null && message.hasOwnProperty("country"))
140511
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.country);
140512
- if (message.zipCode != null && message.hasOwnProperty("zipCode"))
140513
- writer.uint32(/* id 12, wireType 2 =*/98).string(message.zipCode);
140514
- if (message.dob != null && message.hasOwnProperty("dob"))
140515
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.dob);
140516
- if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
140517
- writer.uint32(/* id 14, wireType 2 =*/114).string(message.streetAddress_1);
140518
- if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
140519
- writer.uint32(/* id 15, wireType 2 =*/122).string(message.streetAddress_2);
140520
- if (message.department != null && message.hasOwnProperty("department"))
140521
- writer.uint32(/* id 16, wireType 2 =*/130).string(message.department);
140522
- if (message.language != null && message.hasOwnProperty("language"))
140523
- writer.uint32(/* id 17, wireType 2 =*/138).string(message.language);
141733
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.keyType);
140524
141734
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
140525
- writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDryRun);
141735
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isDryRun);
140526
141736
  if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
140527
- writer.uint32(/* id 19, wireType 0 =*/152).bool(message.gingerShouldProcess);
141737
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.gingerShouldProcess);
140528
141738
  if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
140529
- writer.uint32(/* id 20, wireType 0 =*/160).bool(message.headspaceShouldProcess);
140530
- if (message.customFields != null && message.hasOwnProperty("customFields"))
140531
- writer.uint32(/* id 21, wireType 2 =*/170).string(message.customFields);
140532
- if (message.offerings != null && message.offerings.length) {
140533
- writer.uint32(/* id 22, wireType 2 =*/178).fork();
140534
- for (var i = 0; i < message.offerings.length; ++i)
140535
- writer.int32(message.offerings[i]);
140536
- writer.ldelim();
140537
- }
141739
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.headspaceShouldProcess);
140538
141740
  if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
140539
- writer.uint32(/* id 23, wireType 0 =*/184).bool(message.unifiedEligibilityEnabled);
141741
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.unifiedEligibilityEnabled);
140540
141742
  if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
140541
- writer.uint32(/* id 24, wireType 2 =*/194).string(message.rootOrgHeadspaceHealthId);
141743
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.rootOrgHeadspaceHealthId);
140542
141744
  if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
140543
- writer.uint32(/* id 25, wireType 2 =*/202).string(message.rootOrgId);
141745
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.rootOrgId);
140544
141746
  if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
140545
- writer.uint32(/* id 26, wireType 0 =*/208).bool(message.isMemberMigrated);
140546
- if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
140547
- writer.uint32(/* id 27, wireType 2 =*/218).string(message.priorB2bOrgId);
140548
- if (message.location != null && message.hasOwnProperty("location"))
140549
- writer.uint32(/* id 28, wireType 2 =*/226).string(message.location);
140550
- if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
140551
- writer.uint32(/* id 29, wireType 2 =*/234).string(message.countryStateCode);
140552
- if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
140553
- writer.uint32(/* id 30, wireType 2 =*/242).string(message.dependentOf);
141747
+ writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isMemberMigrated);
140554
141748
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
140555
- writer.uint32(/* id 31, wireType 2 =*/250).string(message.collectiveUuid);
141749
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.collectiveUuid);
140556
141750
  return writer;
140557
141751
  };
140558
141752
 
140559
141753
  /**
140560
- * 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.
140561
141755
  * @function encodeDelimited
140562
- * @memberof ElfRecordPresent
141756
+ * @memberof ElfRecordAbsent
140563
141757
  * @static
140564
- * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
141758
+ * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
140565
141759
  * @param {$protobuf.Writer} [writer] Writer to encode to
140566
141760
  * @returns {$protobuf.Writer} Writer
140567
141761
  */
140568
- ElfRecordPresent.encodeDelimited = function encodeDelimited(message, writer) {
141762
+ ElfRecordAbsent.encodeDelimited = function encodeDelimited(message, writer) {
140569
141763
  return this.encode(message, writer).ldelim();
140570
141764
  };
140571
141765
 
140572
141766
  /**
140573
- * Decodes an ElfRecordPresent message from the specified reader or buffer.
141767
+ * Decodes an ElfRecordAbsent message from the specified reader or buffer.
140574
141768
  * @function decode
140575
- * @memberof ElfRecordPresent
141769
+ * @memberof ElfRecordAbsent
140576
141770
  * @static
140577
141771
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140578
141772
  * @param {number} [length] Message length if known beforehand
140579
- * @returns {ElfRecordPresent} ElfRecordPresent
141773
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
140580
141774
  * @throws {Error} If the payload is not a reader or valid buffer
140581
141775
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
140582
141776
  */
140583
- ElfRecordPresent.decode = function decode(reader, length) {
141777
+ ElfRecordAbsent.decode = function decode(reader, length) {
140584
141778
  if (!(reader instanceof $Reader))
140585
141779
  reader = $Reader.create(reader);
140586
- 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();
140587
141781
  while (reader.pos < end) {
140588
141782
  var tag = reader.uint32();
140589
141783
  switch (tag >>> 3) {
@@ -140600,91 +141794,36 @@ $root.ElfRecordPresent = (function() {
140600
141794
  message.fileImportedTimestamp = reader.uint64();
140601
141795
  break;
140602
141796
  case 5:
140603
- message.lineNumber = reader.int32();
141797
+ message.workEmail = reader.string();
140604
141798
  break;
140605
141799
  case 6:
140606
- message.workEmail = reader.string();
141800
+ message.workId = reader.string();
140607
141801
  break;
140608
141802
  case 7:
140609
- message.workId = reader.string();
141803
+ message.keyType = reader.int32();
140610
141804
  break;
140611
141805
  case 8:
140612
- message.keyType = reader.int32();
141806
+ message.isDryRun = reader.bool();
140613
141807
  break;
140614
141808
  case 9:
140615
- message.firstName = reader.string();
141809
+ message.gingerShouldProcess = reader.bool();
140616
141810
  break;
140617
141811
  case 10:
140618
- message.lastName = reader.string();
141812
+ message.headspaceShouldProcess = reader.bool();
140619
141813
  break;
140620
141814
  case 11:
140621
- message.country = reader.string();
141815
+ message.unifiedEligibilityEnabled = reader.bool();
140622
141816
  break;
140623
141817
  case 12:
140624
- message.zipCode = reader.string();
140625
- break;
140626
- case 13:
140627
- message.dob = reader.string();
140628
- break;
140629
- case 29:
140630
- message.countryStateCode = reader.string();
140631
- break;
140632
- case 14:
140633
- message.streetAddress_1 = reader.string();
140634
- break;
140635
- case 15:
140636
- message.streetAddress_2 = reader.string();
140637
- break;
140638
- case 16:
140639
- message.department = reader.string();
140640
- break;
140641
- case 17:
140642
- message.language = reader.string();
140643
- break;
140644
- case 21:
140645
- message.customFields = reader.string();
140646
- break;
140647
- case 22:
140648
- if (!(message.offerings && message.offerings.length))
140649
- message.offerings = [];
140650
- if ((tag & 7) === 2) {
140651
- var end2 = reader.uint32() + reader.pos;
140652
- while (reader.pos < end2)
140653
- message.offerings.push(reader.int32());
140654
- } else
140655
- message.offerings.push(reader.int32());
140656
- break;
140657
- case 24:
140658
141818
  message.rootOrgHeadspaceHealthId = reader.string();
140659
141819
  break;
140660
- case 25:
141820
+ case 13:
140661
141821
  message.rootOrgId = reader.string();
140662
141822
  break;
140663
- case 26:
141823
+ case 14:
140664
141824
  message.isMemberMigrated = reader.bool();
140665
141825
  break;
140666
- case 27:
140667
- message.priorB2bOrgId = reader.string();
140668
- break;
140669
- case 28:
140670
- message.location = reader.string();
140671
- break;
140672
- case 30:
140673
- message.dependentOf = reader.string();
140674
- break;
140675
- case 18:
140676
- message.isDryRun = reader.bool();
140677
- break;
140678
- case 19:
140679
- message.gingerShouldProcess = reader.bool();
140680
- break;
140681
- case 20:
140682
- message.headspaceShouldProcess = reader.bool();
140683
- break;
140684
- case 23:
140685
- message.unifiedEligibilityEnabled = reader.bool();
140686
- break;
140687
- case 31:
141826
+ case 16:
140688
141827
  message.collectiveUuid = reader.string();
140689
141828
  break;
140690
141829
  default:
@@ -140696,30 +141835,30 @@ $root.ElfRecordPresent = (function() {
140696
141835
  };
140697
141836
 
140698
141837
  /**
140699
- * 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.
140700
141839
  * @function decodeDelimited
140701
- * @memberof ElfRecordPresent
141840
+ * @memberof ElfRecordAbsent
140702
141841
  * @static
140703
141842
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140704
- * @returns {ElfRecordPresent} ElfRecordPresent
141843
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
140705
141844
  * @throws {Error} If the payload is not a reader or valid buffer
140706
141845
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
140707
141846
  */
140708
- ElfRecordPresent.decodeDelimited = function decodeDelimited(reader) {
141847
+ ElfRecordAbsent.decodeDelimited = function decodeDelimited(reader) {
140709
141848
  if (!(reader instanceof $Reader))
140710
141849
  reader = new $Reader(reader);
140711
141850
  return this.decode(reader, reader.uint32());
140712
141851
  };
140713
141852
 
140714
141853
  /**
140715
- * Verifies an ElfRecordPresent message.
141854
+ * Verifies an ElfRecordAbsent message.
140716
141855
  * @function verify
140717
- * @memberof ElfRecordPresent
141856
+ * @memberof ElfRecordAbsent
140718
141857
  * @static
140719
141858
  * @param {Object.<string,*>} message Plain object to verify
140720
141859
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
140721
141860
  */
140722
- ElfRecordPresent.verify = function verify(message) {
141861
+ ElfRecordAbsent.verify = function verify(message) {
140723
141862
  if (typeof message !== "object" || message === null)
140724
141863
  return "object expected";
140725
141864
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
@@ -140734,9 +141873,6 @@ $root.ElfRecordPresent = (function() {
140734
141873
  if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
140735
141874
  if (!$util.isInteger(message.fileImportedTimestamp) && !(message.fileImportedTimestamp && $util.isInteger(message.fileImportedTimestamp.low) && $util.isInteger(message.fileImportedTimestamp.high)))
140736
141875
  return "fileImportedTimestamp: integer|Long expected";
140737
- if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
140738
- if (!$util.isInteger(message.lineNumber))
140739
- return "lineNumber: integer expected";
140740
141876
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
140741
141877
  if (!$util.isString(message.workEmail))
140742
141878
  return "workEmail: string expected";
@@ -140751,70 +141887,6 @@ $root.ElfRecordPresent = (function() {
140751
141887
  case 1:
140752
141888
  break;
140753
141889
  }
140754
- if (message.firstName != null && message.hasOwnProperty("firstName"))
140755
- if (!$util.isString(message.firstName))
140756
- return "firstName: string expected";
140757
- if (message.lastName != null && message.hasOwnProperty("lastName"))
140758
- if (!$util.isString(message.lastName))
140759
- return "lastName: string expected";
140760
- if (message.country != null && message.hasOwnProperty("country"))
140761
- if (!$util.isString(message.country))
140762
- return "country: string expected";
140763
- if (message.zipCode != null && message.hasOwnProperty("zipCode"))
140764
- if (!$util.isString(message.zipCode))
140765
- return "zipCode: string expected";
140766
- if (message.dob != null && message.hasOwnProperty("dob"))
140767
- if (!$util.isString(message.dob))
140768
- return "dob: string expected";
140769
- if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
140770
- if (!$util.isString(message.countryStateCode))
140771
- return "countryStateCode: string expected";
140772
- if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
140773
- if (!$util.isString(message.streetAddress_1))
140774
- return "streetAddress_1: string expected";
140775
- if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
140776
- if (!$util.isString(message.streetAddress_2))
140777
- return "streetAddress_2: string expected";
140778
- if (message.department != null && message.hasOwnProperty("department"))
140779
- if (!$util.isString(message.department))
140780
- return "department: string expected";
140781
- if (message.language != null && message.hasOwnProperty("language"))
140782
- if (!$util.isString(message.language))
140783
- return "language: string expected";
140784
- if (message.customFields != null && message.hasOwnProperty("customFields"))
140785
- if (!$util.isString(message.customFields))
140786
- return "customFields: string expected";
140787
- if (message.offerings != null && message.hasOwnProperty("offerings")) {
140788
- if (!Array.isArray(message.offerings))
140789
- return "offerings: array expected";
140790
- for (var i = 0; i < message.offerings.length; ++i)
140791
- switch (message.offerings[i]) {
140792
- default:
140793
- return "offerings: enum value[] expected";
140794
- case 0:
140795
- case 1:
140796
- case 2:
140797
- break;
140798
- }
140799
- }
140800
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
140801
- if (!$util.isString(message.rootOrgHeadspaceHealthId))
140802
- return "rootOrgHeadspaceHealthId: string expected";
140803
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
140804
- if (!$util.isString(message.rootOrgId))
140805
- return "rootOrgId: string expected";
140806
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
140807
- if (typeof message.isMemberMigrated !== "boolean")
140808
- return "isMemberMigrated: boolean expected";
140809
- if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
140810
- if (!$util.isString(message.priorB2bOrgId))
140811
- return "priorB2bOrgId: string expected";
140812
- if (message.location != null && message.hasOwnProperty("location"))
140813
- if (!$util.isString(message.location))
140814
- return "location: string expected";
140815
- if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
140816
- if (!$util.isString(message.dependentOf))
140817
- return "dependentOf: string expected";
140818
141890
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
140819
141891
  if (typeof message.isDryRun !== "boolean")
140820
141892
  return "isDryRun: boolean expected";
@@ -140827,6 +141899,15 @@ $root.ElfRecordPresent = (function() {
140827
141899
  if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
140828
141900
  if (typeof message.unifiedEligibilityEnabled !== "boolean")
140829
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";
140830
141911
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
140831
141912
  if (!$util.isString(message.collectiveUuid))
140832
141913
  return "collectiveUuid: string expected";
@@ -140834,17 +141915,17 @@ $root.ElfRecordPresent = (function() {
140834
141915
  };
140835
141916
 
140836
141917
  /**
140837
- * 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.
140838
141919
  * @function fromObject
140839
- * @memberof ElfRecordPresent
141920
+ * @memberof ElfRecordAbsent
140840
141921
  * @static
140841
141922
  * @param {Object.<string,*>} object Plain object
140842
- * @returns {ElfRecordPresent} ElfRecordPresent
141923
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
140843
141924
  */
140844
- ElfRecordPresent.fromObject = function fromObject(object) {
140845
- if (object instanceof $root.ElfRecordPresent)
141925
+ ElfRecordAbsent.fromObject = function fromObject(object) {
141926
+ if (object instanceof $root.ElfRecordAbsent)
140846
141927
  return object;
140847
- var message = new $root.ElfRecordPresent();
141928
+ var message = new $root.ElfRecordAbsent();
140848
141929
  if (object.headspaceHealthOrgId != null)
140849
141930
  message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
140850
141931
  if (object.b2bOrgId != null)
@@ -140860,8 +141941,6 @@ $root.ElfRecordPresent = (function() {
140860
141941
  message.fileImportedTimestamp = object.fileImportedTimestamp;
140861
141942
  else if (typeof object.fileImportedTimestamp === "object")
140862
141943
  message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
140863
- if (object.lineNumber != null)
140864
- message.lineNumber = object.lineNumber | 0;
140865
141944
  if (object.workEmail != null)
140866
141945
  message.workEmail = String(object.workEmail);
140867
141946
  if (object.workId != null)
@@ -140876,61 +141955,6 @@ $root.ElfRecordPresent = (function() {
140876
141955
  message.keyType = 1;
140877
141956
  break;
140878
141957
  }
140879
- if (object.firstName != null)
140880
- message.firstName = String(object.firstName);
140881
- if (object.lastName != null)
140882
- message.lastName = String(object.lastName);
140883
- if (object.country != null)
140884
- message.country = String(object.country);
140885
- if (object.zipCode != null)
140886
- message.zipCode = String(object.zipCode);
140887
- if (object.dob != null)
140888
- message.dob = String(object.dob);
140889
- if (object.countryStateCode != null)
140890
- message.countryStateCode = String(object.countryStateCode);
140891
- if (object.streetAddress_1 != null)
140892
- message.streetAddress_1 = String(object.streetAddress_1);
140893
- if (object.streetAddress_2 != null)
140894
- message.streetAddress_2 = String(object.streetAddress_2);
140895
- if (object.department != null)
140896
- message.department = String(object.department);
140897
- if (object.language != null)
140898
- message.language = String(object.language);
140899
- if (object.customFields != null)
140900
- message.customFields = String(object.customFields);
140901
- if (object.offerings) {
140902
- if (!Array.isArray(object.offerings))
140903
- throw TypeError(".ElfRecordPresent.offerings: array expected");
140904
- message.offerings = [];
140905
- for (var i = 0; i < object.offerings.length; ++i)
140906
- switch (object.offerings[i]) {
140907
- default:
140908
- case "SUBSCRIPTION_OFFERING_UNKNOWN":
140909
- case 0:
140910
- message.offerings[i] = 0;
140911
- break;
140912
- case "SUBSCRIPTION_OFFERING_HEADSPACE":
140913
- case 1:
140914
- message.offerings[i] = 1;
140915
- break;
140916
- case "SUBSCRIPTION_OFFERING_GINGER":
140917
- case 2:
140918
- message.offerings[i] = 2;
140919
- break;
140920
- }
140921
- }
140922
- if (object.rootOrgHeadspaceHealthId != null)
140923
- message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
140924
- if (object.rootOrgId != null)
140925
- message.rootOrgId = String(object.rootOrgId);
140926
- if (object.isMemberMigrated != null)
140927
- message.isMemberMigrated = Boolean(object.isMemberMigrated);
140928
- if (object.priorB2bOrgId != null)
140929
- message.priorB2bOrgId = String(object.priorB2bOrgId);
140930
- if (object.location != null)
140931
- message.location = String(object.location);
140932
- if (object.dependentOf != null)
140933
- message.dependentOf = String(object.dependentOf);
140934
141958
  if (object.isDryRun != null)
140935
141959
  message.isDryRun = Boolean(object.isDryRun);
140936
141960
  if (object.gingerShouldProcess != null)
@@ -140939,26 +141963,30 @@ $root.ElfRecordPresent = (function() {
140939
141963
  message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
140940
141964
  if (object.unifiedEligibilityEnabled != null)
140941
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);
140942
141972
  if (object.collectiveUuid != null)
140943
141973
  message.collectiveUuid = String(object.collectiveUuid);
140944
141974
  return message;
140945
141975
  };
140946
141976
 
140947
141977
  /**
140948
- * 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.
140949
141979
  * @function toObject
140950
- * @memberof ElfRecordPresent
141980
+ * @memberof ElfRecordAbsent
140951
141981
  * @static
140952
- * @param {ElfRecordPresent} message ElfRecordPresent
141982
+ * @param {ElfRecordAbsent} message ElfRecordAbsent
140953
141983
  * @param {$protobuf.IConversionOptions} [options] Conversion options
140954
141984
  * @returns {Object.<string,*>} Plain object
140955
141985
  */
140956
- ElfRecordPresent.toObject = function toObject(message, options) {
141986
+ ElfRecordAbsent.toObject = function toObject(message, options) {
140957
141987
  if (!options)
140958
141988
  options = {};
140959
141989
  var object = {};
140960
- if (options.arrays || options.defaults)
140961
- object.offerings = [];
140962
141990
  if (options.defaults) {
140963
141991
  object.headspaceHealthOrgId = "";
140964
141992
  object.b2bOrgId = "";
@@ -140968,31 +141996,16 @@ $root.ElfRecordPresent = (function() {
140968
141996
  object.fileImportedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
140969
141997
  } else
140970
141998
  object.fileImportedTimestamp = options.longs === String ? "0" : 0;
140971
- object.lineNumber = 0;
140972
141999
  object.workEmail = "";
140973
142000
  object.workId = "";
140974
142001
  object.keyType = options.enums === String ? "WORK_ID" : 0;
140975
- object.firstName = "";
140976
- object.lastName = "";
140977
- object.country = "";
140978
- object.zipCode = "";
140979
- object.dob = "";
140980
- object.streetAddress_1 = "";
140981
- object.streetAddress_2 = "";
140982
- object.department = "";
140983
- object.language = "";
140984
142002
  object.isDryRun = false;
140985
142003
  object.gingerShouldProcess = false;
140986
142004
  object.headspaceShouldProcess = false;
140987
- object.customFields = "";
140988
142005
  object.unifiedEligibilityEnabled = false;
140989
142006
  object.rootOrgHeadspaceHealthId = "";
140990
142007
  object.rootOrgId = "";
140991
142008
  object.isMemberMigrated = false;
140992
- object.priorB2bOrgId = "";
140993
- object.location = "";
140994
- object.countryStateCode = "";
140995
- object.dependentOf = "";
140996
142009
  object.collectiveUuid = "";
140997
142010
  }
140998
142011
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
@@ -141006,45 +142019,18 @@ $root.ElfRecordPresent = (function() {
141006
142019
  object.fileImportedTimestamp = options.longs === String ? String(message.fileImportedTimestamp) : message.fileImportedTimestamp;
141007
142020
  else
141008
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;
141009
- if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
141010
- object.lineNumber = message.lineNumber;
141011
142022
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141012
142023
  object.workEmail = message.workEmail;
141013
142024
  if (message.workId != null && message.hasOwnProperty("workId"))
141014
142025
  object.workId = message.workId;
141015
142026
  if (message.keyType != null && message.hasOwnProperty("keyType"))
141016
142027
  object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
141017
- if (message.firstName != null && message.hasOwnProperty("firstName"))
141018
- object.firstName = message.firstName;
141019
- if (message.lastName != null && message.hasOwnProperty("lastName"))
141020
- object.lastName = message.lastName;
141021
- if (message.country != null && message.hasOwnProperty("country"))
141022
- object.country = message.country;
141023
- if (message.zipCode != null && message.hasOwnProperty("zipCode"))
141024
- object.zipCode = message.zipCode;
141025
- if (message.dob != null && message.hasOwnProperty("dob"))
141026
- object.dob = message.dob;
141027
- if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
141028
- object.streetAddress_1 = message.streetAddress_1;
141029
- if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
141030
- object.streetAddress_2 = message.streetAddress_2;
141031
- if (message.department != null && message.hasOwnProperty("department"))
141032
- object.department = message.department;
141033
- if (message.language != null && message.hasOwnProperty("language"))
141034
- object.language = message.language;
141035
142028
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141036
142029
  object.isDryRun = message.isDryRun;
141037
142030
  if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141038
142031
  object.gingerShouldProcess = message.gingerShouldProcess;
141039
142032
  if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141040
142033
  object.headspaceShouldProcess = message.headspaceShouldProcess;
141041
- if (message.customFields != null && message.hasOwnProperty("customFields"))
141042
- object.customFields = message.customFields;
141043
- if (message.offerings && message.offerings.length) {
141044
- object.offerings = [];
141045
- for (var j = 0; j < message.offerings.length; ++j)
141046
- object.offerings[j] = options.enums === String ? $root.b2b.SubscriptionOffering[message.offerings[j]] : message.offerings[j];
141047
- }
141048
142034
  if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141049
142035
  object.unifiedEligibilityEnabled = message.unifiedEligibilityEnabled;
141050
142036
  if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
@@ -141053,323 +142039,201 @@ $root.ElfRecordPresent = (function() {
141053
142039
  object.rootOrgId = message.rootOrgId;
141054
142040
  if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141055
142041
  object.isMemberMigrated = message.isMemberMigrated;
141056
- if (message.priorB2bOrgId != null && message.hasOwnProperty("priorB2bOrgId"))
141057
- object.priorB2bOrgId = message.priorB2bOrgId;
141058
- if (message.location != null && message.hasOwnProperty("location"))
141059
- object.location = message.location;
141060
- if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
141061
- object.countryStateCode = message.countryStateCode;
141062
- if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
141063
- object.dependentOf = message.dependentOf;
141064
142042
  if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141065
142043
  object.collectiveUuid = message.collectiveUuid;
141066
142044
  return object;
141067
142045
  };
141068
142046
 
141069
142047
  /**
141070
- * Converts this ElfRecordPresent to JSON.
142048
+ * Converts this ElfRecordAbsent to JSON.
141071
142049
  * @function toJSON
141072
- * @memberof ElfRecordPresent
142050
+ * @memberof ElfRecordAbsent
141073
142051
  * @instance
141074
142052
  * @returns {Object.<string,*>} JSON object
141075
142053
  */
141076
- ElfRecordPresent.prototype.toJSON = function toJSON() {
142054
+ ElfRecordAbsent.prototype.toJSON = function toJSON() {
141077
142055
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
141078
142056
  };
141079
142057
 
141080
- return ElfRecordPresent;
142058
+ return ElfRecordAbsent;
141081
142059
  })();
141082
142060
 
141083
- $root.ElfRecordAbsent = (function() {
141084
-
141085
- /**
141086
- * Properties of an ElfRecordAbsent.
141087
- * @name IElfRecordAbsent
141088
- * @interface IElfRecordAbsent
141089
- * @property {string|null} [headspaceHealthOrgId] ElfRecordAbsent headspaceHealthOrgId
141090
- * @property {string|null} [b2bOrgId] ElfRecordAbsent b2bOrgId
141091
- * @property {string|null} [gingerOrgId] ElfRecordAbsent gingerOrgId
141092
- * @property {number|Long|null} [fileImportedTimestamp] ElfRecordAbsent fileImportedTimestamp
141093
- * @property {string|null} [workEmail] ElfRecordAbsent workEmail
141094
- * @property {string|null} [workId] ElfRecordAbsent workId
141095
- * @property {KeyType|null} [keyType] ElfRecordAbsent keyType
141096
- * @property {boolean|null} [isDryRun] ElfRecordAbsent isDryRun
141097
- * @property {boolean|null} [gingerShouldProcess] ElfRecordAbsent gingerShouldProcess
141098
- * @property {boolean|null} [headspaceShouldProcess] ElfRecordAbsent headspaceShouldProcess
141099
- * @property {boolean|null} [unifiedEligibilityEnabled] ElfRecordAbsent unifiedEligibilityEnabled
141100
- * @property {string|null} [rootOrgHeadspaceHealthId] ElfRecordAbsent rootOrgHeadspaceHealthId
141101
- * @property {string|null} [rootOrgId] ElfRecordAbsent rootOrgId
141102
- * @property {boolean|null} [isMemberMigrated] ElfRecordAbsent isMemberMigrated
141103
- * @property {string|null} [collectiveUuid] ElfRecordAbsent collectiveUuid
141104
- */
141105
-
141106
- /**
141107
- * Constructs a new ElfRecordAbsent.
141108
- * @name ElfRecordAbsent
141109
- * @classdesc Represents an ElfRecordAbsent.
141110
- * @implements IElfRecordAbsent
141111
- * @constructor
141112
- * @param {IElfRecordAbsent=} [properties] Properties to set
141113
- */
141114
- function ElfRecordAbsent(properties) {
141115
- if (properties)
141116
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
141117
- if (properties[keys[i]] != null)
141118
- this[keys[i]] = properties[keys[i]];
141119
- }
141120
-
141121
- /**
141122
- * ElfRecordAbsent headspaceHealthOrgId.
141123
- * @member {string} headspaceHealthOrgId
141124
- * @memberof ElfRecordAbsent
141125
- * @instance
141126
- */
141127
- ElfRecordAbsent.prototype.headspaceHealthOrgId = "";
141128
-
141129
- /**
141130
- * ElfRecordAbsent b2bOrgId.
141131
- * @member {string} b2bOrgId
141132
- * @memberof ElfRecordAbsent
141133
- * @instance
141134
- */
141135
- ElfRecordAbsent.prototype.b2bOrgId = "";
141136
-
141137
- /**
141138
- * ElfRecordAbsent gingerOrgId.
141139
- * @member {string} gingerOrgId
141140
- * @memberof ElfRecordAbsent
141141
- * @instance
141142
- */
141143
- ElfRecordAbsent.prototype.gingerOrgId = "";
141144
-
141145
- /**
141146
- * ElfRecordAbsent fileImportedTimestamp.
141147
- * @member {number|Long} fileImportedTimestamp
141148
- * @memberof ElfRecordAbsent
141149
- * @instance
141150
- */
141151
- ElfRecordAbsent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
141152
-
141153
- /**
141154
- * ElfRecordAbsent workEmail.
141155
- * @member {string} workEmail
141156
- * @memberof ElfRecordAbsent
141157
- * @instance
141158
- */
141159
- ElfRecordAbsent.prototype.workEmail = "";
141160
-
141161
- /**
141162
- * ElfRecordAbsent workId.
141163
- * @member {string} workId
141164
- * @memberof ElfRecordAbsent
141165
- * @instance
141166
- */
141167
- ElfRecordAbsent.prototype.workId = "";
141168
-
141169
- /**
141170
- * ElfRecordAbsent keyType.
141171
- * @member {KeyType} keyType
141172
- * @memberof ElfRecordAbsent
141173
- * @instance
141174
- */
141175
- ElfRecordAbsent.prototype.keyType = 0;
141176
-
141177
- /**
141178
- * ElfRecordAbsent isDryRun.
141179
- * @member {boolean} isDryRun
141180
- * @memberof ElfRecordAbsent
141181
- * @instance
141182
- */
141183
- ElfRecordAbsent.prototype.isDryRun = false;
142061
+ $root.ElfRecordMoved = (function() {
141184
142062
 
141185
142063
  /**
141186
- * ElfRecordAbsent gingerShouldProcess.
141187
- * @member {boolean} gingerShouldProcess
141188
- * @memberof ElfRecordAbsent
141189
- * @instance
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
141190
142073
  */
141191
- ElfRecordAbsent.prototype.gingerShouldProcess = false;
141192
142074
 
141193
142075
  /**
141194
- * ElfRecordAbsent headspaceShouldProcess.
141195
- * @member {boolean} headspaceShouldProcess
141196
- * @memberof ElfRecordAbsent
142076
+ * Constructs a new ElfRecordMoved.
142077
+ * @name ElfRecordMoved
142078
+ * @classdesc Represents an ElfRecordMoved.
142079
+ * @implements IElfRecordMoved
142080
+ * @constructor
142081
+ * @param {IElfRecordMoved=} [properties] Properties to set
142082
+ */
142083
+ function ElfRecordMoved(properties) {
142084
+ this.offerings = [];
142085
+ if (properties)
142086
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
142087
+ if (properties[keys[i]] != null)
142088
+ this[keys[i]] = properties[keys[i]];
142089
+ }
142090
+
142091
+ /**
142092
+ * ElfRecordMoved sourceOrganization.
142093
+ * @member {IOrganizationIdentifier|null|undefined} sourceOrganization
142094
+ * @memberof ElfRecordMoved
141197
142095
  * @instance
141198
142096
  */
141199
- ElfRecordAbsent.prototype.headspaceShouldProcess = false;
142097
+ ElfRecordMoved.prototype.sourceOrganization = null;
141200
142098
 
141201
142099
  /**
141202
- * ElfRecordAbsent unifiedEligibilityEnabled.
141203
- * @member {boolean} unifiedEligibilityEnabled
141204
- * @memberof ElfRecordAbsent
142100
+ * ElfRecordMoved targetOrganization.
142101
+ * @member {IOrganizationIdentifier|null|undefined} targetOrganization
142102
+ * @memberof ElfRecordMoved
141205
142103
  * @instance
141206
142104
  */
141207
- ElfRecordAbsent.prototype.unifiedEligibilityEnabled = false;
142105
+ ElfRecordMoved.prototype.targetOrganization = null;
141208
142106
 
141209
142107
  /**
141210
- * ElfRecordAbsent rootOrgHeadspaceHealthId.
141211
- * @member {string} rootOrgHeadspaceHealthId
141212
- * @memberof ElfRecordAbsent
142108
+ * ElfRecordMoved record.
142109
+ * @member {IEligibilityRecordIdentifier|null|undefined} record
142110
+ * @memberof ElfRecordMoved
141213
142111
  * @instance
141214
142112
  */
141215
- ElfRecordAbsent.prototype.rootOrgHeadspaceHealthId = "";
142113
+ ElfRecordMoved.prototype.record = null;
141216
142114
 
141217
142115
  /**
141218
- * ElfRecordAbsent rootOrgId.
141219
- * @member {string} rootOrgId
141220
- * @memberof ElfRecordAbsent
142116
+ * ElfRecordMoved timestamp.
142117
+ * @member {number|Long} timestamp
142118
+ * @memberof ElfRecordMoved
141221
142119
  * @instance
141222
142120
  */
141223
- ElfRecordAbsent.prototype.rootOrgId = "";
142121
+ ElfRecordMoved.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
141224
142122
 
141225
142123
  /**
141226
- * ElfRecordAbsent isMemberMigrated.
141227
- * @member {boolean} isMemberMigrated
141228
- * @memberof ElfRecordAbsent
142124
+ * ElfRecordMoved offerings.
142125
+ * @member {Array.<b2b.SubscriptionOffering>} offerings
142126
+ * @memberof ElfRecordMoved
141229
142127
  * @instance
141230
142128
  */
141231
- ElfRecordAbsent.prototype.isMemberMigrated = false;
142129
+ ElfRecordMoved.prototype.offerings = $util.emptyArray;
141232
142130
 
141233
142131
  /**
141234
- * ElfRecordAbsent collectiveUuid.
141235
- * @member {string} collectiveUuid
141236
- * @memberof ElfRecordAbsent
142132
+ * ElfRecordMoved enrollmentFlow.
142133
+ * @member {b2b.EnrollmentFlow} enrollmentFlow
142134
+ * @memberof ElfRecordMoved
141237
142135
  * @instance
141238
142136
  */
141239
- ElfRecordAbsent.prototype.collectiveUuid = "";
142137
+ ElfRecordMoved.prototype.enrollmentFlow = 0;
141240
142138
 
141241
142139
  /**
141242
- * Creates a new ElfRecordAbsent instance using the specified properties.
142140
+ * Creates a new ElfRecordMoved instance using the specified properties.
141243
142141
  * @function create
141244
- * @memberof ElfRecordAbsent
142142
+ * @memberof ElfRecordMoved
141245
142143
  * @static
141246
- * @param {IElfRecordAbsent=} [properties] Properties to set
141247
- * @returns {ElfRecordAbsent} ElfRecordAbsent instance
142144
+ * @param {IElfRecordMoved=} [properties] Properties to set
142145
+ * @returns {ElfRecordMoved} ElfRecordMoved instance
141248
142146
  */
141249
- ElfRecordAbsent.create = function create(properties) {
141250
- return new ElfRecordAbsent(properties);
142147
+ ElfRecordMoved.create = function create(properties) {
142148
+ return new ElfRecordMoved(properties);
141251
142149
  };
141252
142150
 
141253
142151
  /**
141254
- * 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.
141255
142153
  * @function encode
141256
- * @memberof ElfRecordAbsent
142154
+ * @memberof ElfRecordMoved
141257
142155
  * @static
141258
- * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
142156
+ * @param {IElfRecordMoved} message ElfRecordMoved message or plain object to encode
141259
142157
  * @param {$protobuf.Writer} [writer] Writer to encode to
141260
142158
  * @returns {$protobuf.Writer} Writer
141261
142159
  */
141262
- ElfRecordAbsent.encode = function encode(message, writer) {
142160
+ ElfRecordMoved.encode = function encode(message, writer) {
141263
142161
  if (!writer)
141264
142162
  writer = $Writer.create();
141265
- if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141266
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
141267
- if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141268
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
141269
- if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141270
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
141271
- if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141272
- writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileImportedTimestamp);
141273
- if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141274
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.workEmail);
141275
- if (message.workId != null && message.hasOwnProperty("workId"))
141276
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.workId);
141277
- if (message.keyType != null && message.hasOwnProperty("keyType"))
141278
- writer.uint32(/* id 7, wireType 0 =*/56).int32(message.keyType);
141279
- if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141280
- writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isDryRun);
141281
- if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141282
- writer.uint32(/* id 9, wireType 0 =*/72).bool(message.gingerShouldProcess);
141283
- if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141284
- writer.uint32(/* id 10, wireType 0 =*/80).bool(message.headspaceShouldProcess);
141285
- if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141286
- writer.uint32(/* id 11, wireType 0 =*/88).bool(message.unifiedEligibilityEnabled);
141287
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141288
- writer.uint32(/* id 12, wireType 2 =*/98).string(message.rootOrgHeadspaceHealthId);
141289
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141290
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.rootOrgId);
141291
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141292
- writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isMemberMigrated);
141293
- if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141294
- 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);
141295
142179
  return writer;
141296
142180
  };
141297
142181
 
141298
142182
  /**
141299
- * 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.
141300
142184
  * @function encodeDelimited
141301
- * @memberof ElfRecordAbsent
142185
+ * @memberof ElfRecordMoved
141302
142186
  * @static
141303
- * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
142187
+ * @param {IElfRecordMoved} message ElfRecordMoved message or plain object to encode
141304
142188
  * @param {$protobuf.Writer} [writer] Writer to encode to
141305
142189
  * @returns {$protobuf.Writer} Writer
141306
142190
  */
141307
- ElfRecordAbsent.encodeDelimited = function encodeDelimited(message, writer) {
142191
+ ElfRecordMoved.encodeDelimited = function encodeDelimited(message, writer) {
141308
142192
  return this.encode(message, writer).ldelim();
141309
142193
  };
141310
142194
 
141311
142195
  /**
141312
- * Decodes an ElfRecordAbsent message from the specified reader or buffer.
142196
+ * Decodes an ElfRecordMoved message from the specified reader or buffer.
141313
142197
  * @function decode
141314
- * @memberof ElfRecordAbsent
142198
+ * @memberof ElfRecordMoved
141315
142199
  * @static
141316
142200
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
141317
142201
  * @param {number} [length] Message length if known beforehand
141318
- * @returns {ElfRecordAbsent} ElfRecordAbsent
142202
+ * @returns {ElfRecordMoved} ElfRecordMoved
141319
142203
  * @throws {Error} If the payload is not a reader or valid buffer
141320
142204
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
141321
142205
  */
141322
- ElfRecordAbsent.decode = function decode(reader, length) {
142206
+ ElfRecordMoved.decode = function decode(reader, length) {
141323
142207
  if (!(reader instanceof $Reader))
141324
142208
  reader = $Reader.create(reader);
141325
- 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();
141326
142210
  while (reader.pos < end) {
141327
142211
  var tag = reader.uint32();
141328
142212
  switch (tag >>> 3) {
141329
142213
  case 1:
141330
- message.headspaceHealthOrgId = reader.string();
142214
+ message.sourceOrganization = $root.OrganizationIdentifier.decode(reader, reader.uint32());
141331
142215
  break;
141332
142216
  case 2:
141333
- message.b2bOrgId = reader.string();
142217
+ message.targetOrganization = $root.OrganizationIdentifier.decode(reader, reader.uint32());
141334
142218
  break;
141335
142219
  case 3:
141336
- message.gingerOrgId = reader.string();
142220
+ message.record = $root.EligibilityRecordIdentifier.decode(reader, reader.uint32());
141337
142221
  break;
141338
142222
  case 4:
141339
- message.fileImportedTimestamp = reader.uint64();
142223
+ message.timestamp = reader.uint64();
141340
142224
  break;
141341
142225
  case 5:
141342
- message.workEmail = reader.string();
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());
141343
142234
  break;
141344
142235
  case 6:
141345
- message.workId = reader.string();
141346
- break;
141347
- case 7:
141348
- message.keyType = reader.int32();
141349
- break;
141350
- case 8:
141351
- message.isDryRun = reader.bool();
141352
- break;
141353
- case 9:
141354
- message.gingerShouldProcess = reader.bool();
141355
- break;
141356
- case 10:
141357
- message.headspaceShouldProcess = reader.bool();
141358
- break;
141359
- case 11:
141360
- message.unifiedEligibilityEnabled = reader.bool();
141361
- break;
141362
- case 12:
141363
- message.rootOrgHeadspaceHealthId = reader.string();
141364
- break;
141365
- case 13:
141366
- message.rootOrgId = reader.string();
141367
- break;
141368
- case 14:
141369
- message.isMemberMigrated = reader.bool();
141370
- break;
141371
- case 16:
141372
- message.collectiveUuid = reader.string();
142236
+ message.enrollmentFlow = reader.int32();
141373
142237
  break;
141374
142238
  default:
141375
142239
  reader.skipType(tag & 7);
@@ -141380,227 +142244,223 @@ $root.ElfRecordAbsent = (function() {
141380
142244
  };
141381
142245
 
141382
142246
  /**
141383
- * 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.
141384
142248
  * @function decodeDelimited
141385
- * @memberof ElfRecordAbsent
142249
+ * @memberof ElfRecordMoved
141386
142250
  * @static
141387
142251
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
141388
- * @returns {ElfRecordAbsent} ElfRecordAbsent
142252
+ * @returns {ElfRecordMoved} ElfRecordMoved
141389
142253
  * @throws {Error} If the payload is not a reader or valid buffer
141390
142254
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
141391
142255
  */
141392
- ElfRecordAbsent.decodeDelimited = function decodeDelimited(reader) {
142256
+ ElfRecordMoved.decodeDelimited = function decodeDelimited(reader) {
141393
142257
  if (!(reader instanceof $Reader))
141394
142258
  reader = new $Reader(reader);
141395
142259
  return this.decode(reader, reader.uint32());
141396
142260
  };
141397
142261
 
141398
142262
  /**
141399
- * Verifies an ElfRecordAbsent message.
142263
+ * Verifies an ElfRecordMoved message.
141400
142264
  * @function verify
141401
- * @memberof ElfRecordAbsent
142265
+ * @memberof ElfRecordMoved
141402
142266
  * @static
141403
142267
  * @param {Object.<string,*>} message Plain object to verify
141404
142268
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
141405
142269
  */
141406
- ElfRecordAbsent.verify = function verify(message) {
142270
+ ElfRecordMoved.verify = function verify(message) {
141407
142271
  if (typeof message !== "object" || message === null)
141408
142272
  return "object expected";
141409
- if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141410
- if (!$util.isString(message.headspaceHealthOrgId))
141411
- return "headspaceHealthOrgId: string expected";
141412
- if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141413
- if (!$util.isString(message.b2bOrgId))
141414
- return "b2bOrgId: string expected";
141415
- if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141416
- if (!$util.isString(message.gingerOrgId))
141417
- return "gingerOrgId: string expected";
141418
- if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141419
- if (!$util.isInteger(message.fileImportedTimestamp) && !(message.fileImportedTimestamp && $util.isInteger(message.fileImportedTimestamp.low) && $util.isInteger(message.fileImportedTimestamp.high)))
141420
- return "fileImportedTimestamp: integer|Long expected";
141421
- if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141422
- if (!$util.isString(message.workEmail))
141423
- return "workEmail: string expected";
141424
- if (message.workId != null && message.hasOwnProperty("workId"))
141425
- if (!$util.isString(message.workId))
141426
- return "workId: string expected";
141427
- if (message.keyType != null && message.hasOwnProperty("keyType"))
141428
- 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) {
141429
142306
  default:
141430
- return "keyType: enum value expected";
142307
+ return "enrollmentFlow: enum value expected";
141431
142308
  case 0:
141432
142309
  case 1:
142310
+ case 2:
142311
+ case 3:
142312
+ case 4:
142313
+ case 5:
141433
142314
  break;
141434
142315
  }
141435
- if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141436
- if (typeof message.isDryRun !== "boolean")
141437
- return "isDryRun: boolean expected";
141438
- if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141439
- if (typeof message.gingerShouldProcess !== "boolean")
141440
- return "gingerShouldProcess: boolean expected";
141441
- if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141442
- if (typeof message.headspaceShouldProcess !== "boolean")
141443
- return "headspaceShouldProcess: boolean expected";
141444
- if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141445
- if (typeof message.unifiedEligibilityEnabled !== "boolean")
141446
- return "unifiedEligibilityEnabled: boolean expected";
141447
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141448
- if (!$util.isString(message.rootOrgHeadspaceHealthId))
141449
- return "rootOrgHeadspaceHealthId: string expected";
141450
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141451
- if (!$util.isString(message.rootOrgId))
141452
- return "rootOrgId: string expected";
141453
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141454
- if (typeof message.isMemberMigrated !== "boolean")
141455
- return "isMemberMigrated: boolean expected";
141456
- if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141457
- if (!$util.isString(message.collectiveUuid))
141458
- return "collectiveUuid: string expected";
141459
142316
  return null;
141460
142317
  };
141461
142318
 
141462
142319
  /**
141463
- * 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.
141464
142321
  * @function fromObject
141465
- * @memberof ElfRecordAbsent
142322
+ * @memberof ElfRecordMoved
141466
142323
  * @static
141467
142324
  * @param {Object.<string,*>} object Plain object
141468
- * @returns {ElfRecordAbsent} ElfRecordAbsent
142325
+ * @returns {ElfRecordMoved} ElfRecordMoved
141469
142326
  */
141470
- ElfRecordAbsent.fromObject = function fromObject(object) {
141471
- if (object instanceof $root.ElfRecordAbsent)
142327
+ ElfRecordMoved.fromObject = function fromObject(object) {
142328
+ if (object instanceof $root.ElfRecordMoved)
141472
142329
  return object;
141473
- var message = new $root.ElfRecordAbsent();
141474
- if (object.headspaceHealthOrgId != null)
141475
- message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
141476
- if (object.b2bOrgId != null)
141477
- message.b2bOrgId = String(object.b2bOrgId);
141478
- if (object.gingerOrgId != null)
141479
- message.gingerOrgId = String(object.gingerOrgId);
141480
- 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)
141481
142347
  if ($util.Long)
141482
- (message.fileImportedTimestamp = $util.Long.fromValue(object.fileImportedTimestamp)).unsigned = true;
141483
- else if (typeof object.fileImportedTimestamp === "string")
141484
- message.fileImportedTimestamp = parseInt(object.fileImportedTimestamp, 10);
141485
- else if (typeof object.fileImportedTimestamp === "number")
141486
- message.fileImportedTimestamp = object.fileImportedTimestamp;
141487
- else if (typeof object.fileImportedTimestamp === "object")
141488
- message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
141489
- if (object.workEmail != null)
141490
- message.workEmail = String(object.workEmail);
141491
- if (object.workId != null)
141492
- message.workId = String(object.workId);
141493
- switch (object.keyType) {
141494
- 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":
141495
142378
  case 0:
141496
- message.keyType = 0;
142379
+ message.enrollmentFlow = 0;
141497
142380
  break;
141498
- case "WORK_EMAIL":
142381
+ case "ENROLLMENT_FLOW_HEADSPACE":
141499
142382
  case 1:
141500
- 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;
141501
142400
  break;
141502
142401
  }
141503
- if (object.isDryRun != null)
141504
- message.isDryRun = Boolean(object.isDryRun);
141505
- if (object.gingerShouldProcess != null)
141506
- message.gingerShouldProcess = Boolean(object.gingerShouldProcess);
141507
- if (object.headspaceShouldProcess != null)
141508
- message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
141509
- if (object.unifiedEligibilityEnabled != null)
141510
- message.unifiedEligibilityEnabled = Boolean(object.unifiedEligibilityEnabled);
141511
- if (object.rootOrgHeadspaceHealthId != null)
141512
- message.rootOrgHeadspaceHealthId = String(object.rootOrgHeadspaceHealthId);
141513
- if (object.rootOrgId != null)
141514
- message.rootOrgId = String(object.rootOrgId);
141515
- if (object.isMemberMigrated != null)
141516
- message.isMemberMigrated = Boolean(object.isMemberMigrated);
141517
- if (object.collectiveUuid != null)
141518
- message.collectiveUuid = String(object.collectiveUuid);
141519
142402
  return message;
141520
142403
  };
141521
142404
 
141522
142405
  /**
141523
- * 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.
141524
142407
  * @function toObject
141525
- * @memberof ElfRecordAbsent
142408
+ * @memberof ElfRecordMoved
141526
142409
  * @static
141527
- * @param {ElfRecordAbsent} message ElfRecordAbsent
142410
+ * @param {ElfRecordMoved} message ElfRecordMoved
141528
142411
  * @param {$protobuf.IConversionOptions} [options] Conversion options
141529
142412
  * @returns {Object.<string,*>} Plain object
141530
142413
  */
141531
- ElfRecordAbsent.toObject = function toObject(message, options) {
142414
+ ElfRecordMoved.toObject = function toObject(message, options) {
141532
142415
  if (!options)
141533
142416
  options = {};
141534
142417
  var object = {};
142418
+ if (options.arrays || options.defaults)
142419
+ object.offerings = [];
141535
142420
  if (options.defaults) {
141536
- object.headspaceHealthOrgId = "";
141537
- object.b2bOrgId = "";
141538
- object.gingerOrgId = "";
142421
+ object.sourceOrganization = null;
142422
+ object.targetOrganization = null;
142423
+ object.record = null;
141539
142424
  if ($util.Long) {
141540
142425
  var long = new $util.Long(0, 0, true);
141541
- 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;
141542
142427
  } else
141543
- object.fileImportedTimestamp = options.longs === String ? "0" : 0;
141544
- object.workEmail = "";
141545
- object.workId = "";
141546
- object.keyType = options.enums === String ? "WORK_ID" : 0;
141547
- object.isDryRun = false;
141548
- object.gingerShouldProcess = false;
141549
- object.headspaceShouldProcess = false;
141550
- object.unifiedEligibilityEnabled = false;
141551
- object.rootOrgHeadspaceHealthId = "";
141552
- object.rootOrgId = "";
141553
- object.isMemberMigrated = false;
141554
- object.collectiveUuid = "";
142428
+ object.timestamp = options.longs === String ? "0" : 0;
142429
+ object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
141555
142430
  }
141556
- if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
141557
- object.headspaceHealthOrgId = message.headspaceHealthOrgId;
141558
- if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
141559
- object.b2bOrgId = message.b2bOrgId;
141560
- if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
141561
- object.gingerOrgId = message.gingerOrgId;
141562
- if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
141563
- if (typeof message.fileImportedTimestamp === "number")
141564
- 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;
141565
142440
  else
141566
- 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;
141567
- if (message.workEmail != null && message.hasOwnProperty("workEmail"))
141568
- object.workEmail = message.workEmail;
141569
- if (message.workId != null && message.hasOwnProperty("workId"))
141570
- object.workId = message.workId;
141571
- if (message.keyType != null && message.hasOwnProperty("keyType"))
141572
- object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
141573
- if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
141574
- object.isDryRun = message.isDryRun;
141575
- if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
141576
- object.gingerShouldProcess = message.gingerShouldProcess;
141577
- if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
141578
- object.headspaceShouldProcess = message.headspaceShouldProcess;
141579
- if (message.unifiedEligibilityEnabled != null && message.hasOwnProperty("unifiedEligibilityEnabled"))
141580
- object.unifiedEligibilityEnabled = message.unifiedEligibilityEnabled;
141581
- if (message.rootOrgHeadspaceHealthId != null && message.hasOwnProperty("rootOrgHeadspaceHealthId"))
141582
- object.rootOrgHeadspaceHealthId = message.rootOrgHeadspaceHealthId;
141583
- if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
141584
- object.rootOrgId = message.rootOrgId;
141585
- if (message.isMemberMigrated != null && message.hasOwnProperty("isMemberMigrated"))
141586
- object.isMemberMigrated = message.isMemberMigrated;
141587
- if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
141588
- 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;
141589
142449
  return object;
141590
142450
  };
141591
142451
 
141592
142452
  /**
141593
- * Converts this ElfRecordAbsent to JSON.
142453
+ * Converts this ElfRecordMoved to JSON.
141594
142454
  * @function toJSON
141595
- * @memberof ElfRecordAbsent
142455
+ * @memberof ElfRecordMoved
141596
142456
  * @instance
141597
142457
  * @returns {Object.<string,*>} JSON object
141598
142458
  */
141599
- ElfRecordAbsent.prototype.toJSON = function toJSON() {
142459
+ ElfRecordMoved.prototype.toJSON = function toJSON() {
141600
142460
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
141601
142461
  };
141602
142462
 
141603
- return ElfRecordAbsent;
142463
+ return ElfRecordMoved;
141604
142464
  })();
141605
142465
 
141606
142466
  $root.ElfProcessingStats = (function() {
@@ -143517,6 +144377,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
143517
144377
  * @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] EnterpriseUserEnrollmentCreated clinicalCoverageProvider
143518
144378
  * @property {number|null} [clinicalCoverageTotal] EnterpriseUserEnrollmentCreated clinicalCoverageTotal
143519
144379
  * @property {b2b.ClinicalServiceType|null} [clinicalServiceType] EnterpriseUserEnrollmentCreated clinicalServiceType
144380
+ * @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] EnterpriseUserEnrollmentCreated clinicalCoverageType
143520
144381
  */
143521
144382
 
143522
144383
  /**
@@ -143870,6 +144731,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
143870
144731
  */
143871
144732
  EnterpriseUserEnrollmentCreated.prototype.clinicalServiceType = 0;
143872
144733
 
144734
+ /**
144735
+ * EnterpriseUserEnrollmentCreated clinicalCoverageType.
144736
+ * @member {b2b.ClinicalCoverageType} clinicalCoverageType
144737
+ * @memberof EnterpriseUserEnrollmentCreated
144738
+ * @instance
144739
+ */
144740
+ EnterpriseUserEnrollmentCreated.prototype.clinicalCoverageType = 0;
144741
+
143873
144742
  /**
143874
144743
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
143875
144744
  * @function create
@@ -143978,6 +144847,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
143978
144847
  writer.uint32(/* id 46, wireType 0 =*/368).uint32(message.clinicalCoverageTotal);
143979
144848
  if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
143980
144849
  writer.uint32(/* id 47, wireType 0 =*/376).int32(message.clinicalServiceType);
144850
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
144851
+ writer.uint32(/* id 48, wireType 0 =*/384).int32(message.clinicalCoverageType);
143981
144852
  return writer;
143982
144853
  };
143983
144854
 
@@ -144138,6 +145009,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
144138
145009
  case 47:
144139
145010
  message.clinicalServiceType = reader.int32();
144140
145011
  break;
145012
+ case 48:
145013
+ message.clinicalCoverageType = reader.int32();
145014
+ break;
144141
145015
  default:
144142
145016
  reader.skipType(tag & 7);
144143
145017
  break;
@@ -144358,6 +145232,16 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
144358
145232
  case 3:
144359
145233
  break;
144360
145234
  }
145235
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
145236
+ switch (message.clinicalCoverageType) {
145237
+ default:
145238
+ return "clinicalCoverageType: enum value expected";
145239
+ case 0:
145240
+ case 1:
145241
+ case 2:
145242
+ case 3:
145243
+ break;
145244
+ }
144361
145245
  return null;
144362
145246
  };
144363
145247
 
@@ -144632,6 +145516,24 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
144632
145516
  message.clinicalServiceType = 3;
144633
145517
  break;
144634
145518
  }
145519
+ switch (object.clinicalCoverageType) {
145520
+ case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
145521
+ case 0:
145522
+ message.clinicalCoverageType = 0;
145523
+ break;
145524
+ case "CLINICAL_COVERAGE_TYPE_NONE":
145525
+ case 1:
145526
+ message.clinicalCoverageType = 1;
145527
+ break;
145528
+ case "CLINICAL_COVERAGE_TYPE_EAP_V2":
145529
+ case 2:
145530
+ message.clinicalCoverageType = 2;
145531
+ break;
145532
+ case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
145533
+ case 3:
145534
+ message.clinicalCoverageType = 3;
145535
+ break;
145536
+ }
144635
145537
  return message;
144636
145538
  };
144637
145539
 
@@ -144711,6 +145613,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
144711
145613
  object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
144712
145614
  object.clinicalCoverageTotal = 0;
144713
145615
  object.clinicalServiceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
145616
+ object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
144714
145617
  }
144715
145618
  if (message.userId != null && message.hasOwnProperty("userId"))
144716
145619
  object.userId = message.userId;
@@ -144811,6 +145714,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
144811
145714
  object.clinicalCoverageTotal = message.clinicalCoverageTotal;
144812
145715
  if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
144813
145716
  object.clinicalServiceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.clinicalServiceType] : message.clinicalServiceType;
145717
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
145718
+ object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
144814
145719
  return object;
144815
145720
  };
144816
145721
 
@@ -144871,6 +145776,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
144871
145776
  * @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] EnterpriseUserEnrollmentRemoved clinicalCoverageProvider
144872
145777
  * @property {number|null} [clinicalCoverageTotal] EnterpriseUserEnrollmentRemoved clinicalCoverageTotal
144873
145778
  * @property {b2b.ClinicalServiceType|null} [clinicalServiceType] EnterpriseUserEnrollmentRemoved clinicalServiceType
145779
+ * @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] EnterpriseUserEnrollmentRemoved clinicalCoverageType
144874
145780
  */
144875
145781
 
144876
145782
  /**
@@ -145184,6 +146090,14 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
145184
146090
  */
145185
146091
  EnterpriseUserEnrollmentRemoved.prototype.clinicalServiceType = 0;
145186
146092
 
146093
+ /**
146094
+ * EnterpriseUserEnrollmentRemoved clinicalCoverageType.
146095
+ * @member {b2b.ClinicalCoverageType} clinicalCoverageType
146096
+ * @memberof EnterpriseUserEnrollmentRemoved
146097
+ * @instance
146098
+ */
146099
+ EnterpriseUserEnrollmentRemoved.prototype.clinicalCoverageType = 0;
146100
+
145187
146101
  /**
145188
146102
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
145189
146103
  * @function create
@@ -145282,6 +146196,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
145282
146196
  writer.uint32(/* id 41, wireType 0 =*/328).uint32(message.clinicalCoverageTotal);
145283
146197
  if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
145284
146198
  writer.uint32(/* id 42, wireType 0 =*/336).int32(message.clinicalServiceType);
146199
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
146200
+ writer.uint32(/* id 43, wireType 0 =*/344).int32(message.clinicalCoverageType);
145285
146201
  return writer;
145286
146202
  };
145287
146203
 
@@ -145427,6 +146343,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
145427
146343
  case 42:
145428
146344
  message.clinicalServiceType = reader.int32();
145429
146345
  break;
146346
+ case 43:
146347
+ message.clinicalCoverageType = reader.int32();
146348
+ break;
145430
146349
  default:
145431
146350
  reader.skipType(tag & 7);
145432
146351
  break;
@@ -145647,6 +146566,16 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
145647
146566
  case 3:
145648
146567
  break;
145649
146568
  }
146569
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
146570
+ switch (message.clinicalCoverageType) {
146571
+ default:
146572
+ return "clinicalCoverageType: enum value expected";
146573
+ case 0:
146574
+ case 1:
146575
+ case 2:
146576
+ case 3:
146577
+ break;
146578
+ }
145650
146579
  return null;
145651
146580
  };
145652
146581
 
@@ -145959,6 +146888,24 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
145959
146888
  message.clinicalServiceType = 3;
145960
146889
  break;
145961
146890
  }
146891
+ switch (object.clinicalCoverageType) {
146892
+ case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
146893
+ case 0:
146894
+ message.clinicalCoverageType = 0;
146895
+ break;
146896
+ case "CLINICAL_COVERAGE_TYPE_NONE":
146897
+ case 1:
146898
+ message.clinicalCoverageType = 1;
146899
+ break;
146900
+ case "CLINICAL_COVERAGE_TYPE_EAP_V2":
146901
+ case 2:
146902
+ message.clinicalCoverageType = 2;
146903
+ break;
146904
+ case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
146905
+ case 3:
146906
+ message.clinicalCoverageType = 3;
146907
+ break;
146908
+ }
145962
146909
  return message;
145963
146910
  };
145964
146911
 
@@ -146033,6 +146980,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
146033
146980
  object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
146034
146981
  object.clinicalCoverageTotal = 0;
146035
146982
  object.clinicalServiceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
146983
+ object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
146036
146984
  }
146037
146985
  if (message.userId != null && message.hasOwnProperty("userId"))
146038
146986
  object.userId = message.userId;
@@ -146123,6 +147071,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
146123
147071
  object.clinicalCoverageTotal = message.clinicalCoverageTotal;
146124
147072
  if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
146125
147073
  object.clinicalServiceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.clinicalServiceType] : message.clinicalServiceType;
147074
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
147075
+ object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
146126
147076
  return object;
146127
147077
  };
146128
147078
 
@@ -146187,6 +147137,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
146187
147137
  * @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] EnterpriseUserEnrollmentAmended clinicalCoverageProvider
146188
147138
  * @property {number|null} [clinicalCoverageTotal] EnterpriseUserEnrollmentAmended clinicalCoverageTotal
146189
147139
  * @property {b2b.ClinicalServiceType|null} [clinicalServiceType] EnterpriseUserEnrollmentAmended clinicalServiceType
147140
+ * @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] EnterpriseUserEnrollmentAmended clinicalCoverageType
146190
147141
  */
146191
147142
 
146192
147143
  /**
@@ -146532,6 +147483,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
146532
147483
  */
146533
147484
  EnterpriseUserEnrollmentAmended.prototype.clinicalServiceType = 0;
146534
147485
 
147486
+ /**
147487
+ * EnterpriseUserEnrollmentAmended clinicalCoverageType.
147488
+ * @member {b2b.ClinicalCoverageType} clinicalCoverageType
147489
+ * @memberof EnterpriseUserEnrollmentAmended
147490
+ * @instance
147491
+ */
147492
+ EnterpriseUserEnrollmentAmended.prototype.clinicalCoverageType = 0;
147493
+
146535
147494
  /**
146536
147495
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
146537
147496
  * @function create
@@ -146638,6 +147597,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
146638
147597
  writer.uint32(/* id 46, wireType 0 =*/368).uint32(message.clinicalCoverageTotal);
146639
147598
  if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
146640
147599
  writer.uint32(/* id 47, wireType 0 =*/376).int32(message.clinicalServiceType);
147600
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
147601
+ writer.uint32(/* id 48, wireType 0 =*/384).int32(message.clinicalCoverageType);
146641
147602
  return writer;
146642
147603
  };
146643
147604
 
@@ -146795,6 +147756,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
146795
147756
  case 47:
146796
147757
  message.clinicalServiceType = reader.int32();
146797
147758
  break;
147759
+ case 48:
147760
+ message.clinicalCoverageType = reader.int32();
147761
+ break;
146798
147762
  default:
146799
147763
  reader.skipType(tag & 7);
146800
147764
  break;
@@ -147012,6 +147976,16 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
147012
147976
  case 3:
147013
147977
  break;
147014
147978
  }
147979
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
147980
+ switch (message.clinicalCoverageType) {
147981
+ default:
147982
+ return "clinicalCoverageType: enum value expected";
147983
+ case 0:
147984
+ case 1:
147985
+ case 2:
147986
+ case 3:
147987
+ break;
147988
+ }
147015
147989
  return null;
147016
147990
  };
147017
147991
 
@@ -147284,6 +148258,24 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
147284
148258
  message.clinicalServiceType = 3;
147285
148259
  break;
147286
148260
  }
148261
+ switch (object.clinicalCoverageType) {
148262
+ case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
148263
+ case 0:
148264
+ message.clinicalCoverageType = 0;
148265
+ break;
148266
+ case "CLINICAL_COVERAGE_TYPE_NONE":
148267
+ case 1:
148268
+ message.clinicalCoverageType = 1;
148269
+ break;
148270
+ case "CLINICAL_COVERAGE_TYPE_EAP_V2":
148271
+ case 2:
148272
+ message.clinicalCoverageType = 2;
148273
+ break;
148274
+ case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
148275
+ case 3:
148276
+ message.clinicalCoverageType = 3;
148277
+ break;
148278
+ }
147287
148279
  return message;
147288
148280
  };
147289
148281
 
@@ -147362,6 +148354,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
147362
148354
  object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
147363
148355
  object.clinicalCoverageTotal = 0;
147364
148356
  object.clinicalServiceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
148357
+ object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
147365
148358
  }
147366
148359
  if (message.userId != null && message.hasOwnProperty("userId"))
147367
148360
  object.userId = message.userId;
@@ -147460,6 +148453,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
147460
148453
  object.clinicalCoverageTotal = message.clinicalCoverageTotal;
147461
148454
  if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
147462
148455
  object.clinicalServiceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.clinicalServiceType] : message.clinicalServiceType;
148456
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
148457
+ object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
147463
148458
  return object;
147464
148459
  };
147465
148460