@headspace/protos-events 1.559.0 → 1.561.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +12 -618
- package/lib/index.js +44 -1960
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -87410,1966 +87410,6 @@ $root.EligibilityVerified = (function() {
|
|
|
87410
87410
|
return EligibilityVerified;
|
|
87411
87411
|
})();
|
|
87412
87412
|
|
|
87413
|
-
$root.EligibleUserAdded = (function() {
|
|
87414
|
-
|
|
87415
|
-
/**
|
|
87416
|
-
* Properties of an EligibleUserAdded.
|
|
87417
|
-
* @name IEligibleUserAdded
|
|
87418
|
-
* @interface IEligibleUserAdded
|
|
87419
|
-
* @property {string|null} [workId] EligibleUserAdded workId
|
|
87420
|
-
* @property {string|null} [workEmail] EligibleUserAdded workEmail
|
|
87421
|
-
* @property {string|null} [firstName] EligibleUserAdded firstName
|
|
87422
|
-
* @property {string|null} [lastName] EligibleUserAdded lastName
|
|
87423
|
-
* @property {b2b.MemberStatus|null} [b2bMemberStatus] EligibleUserAdded b2bMemberStatus
|
|
87424
|
-
* @property {number|null} [b2bOrgId] EligibleUserAdded b2bOrgId
|
|
87425
|
-
* @property {string|null} [b2bOrgName] EligibleUserAdded b2bOrgName
|
|
87426
|
-
* @property {string|null} [b2bOrgCampaignDisplayName] EligibleUserAdded b2bOrgCampaignDisplayName
|
|
87427
|
-
* @property {b2b.OrgMemberPlan|null} [b2bPlan] EligibleUserAdded b2bPlan
|
|
87428
|
-
* @property {boolean|null} [b2bIsPilot] EligibleUserAdded b2bIsPilot
|
|
87429
|
-
* @property {b2b.EnrollmentFlow|null} [b2bEnrollmentFlow] EligibleUserAdded b2bEnrollmentFlow
|
|
87430
|
-
* @property {string|null} [enrollmentUrl] EligibleUserAdded enrollmentUrl
|
|
87431
|
-
* @property {string|null} [b2bCustomFields] EligibleUserAdded b2bCustomFields
|
|
87432
|
-
* @property {number|Long|null} [timestamp] EligibleUserAdded timestamp
|
|
87433
|
-
* @property {number|Long|null} [b2bCampaignLaunchDate] EligibleUserAdded b2bCampaignLaunchDate
|
|
87434
|
-
* @property {string|null} [b2bCountry] EligibleUserAdded b2bCountry
|
|
87435
|
-
* @property {string|null} [b2bDepartment] EligibleUserAdded b2bDepartment
|
|
87436
|
-
* @property {string|null} [b2bLocation] EligibleUserAdded b2bLocation
|
|
87437
|
-
* @property {string|null} [countryStateCode] EligibleUserAdded countryStateCode
|
|
87438
|
-
* @property {string|null} [dependentOf] EligibleUserAdded dependentOf
|
|
87439
|
-
*/
|
|
87440
|
-
|
|
87441
|
-
/**
|
|
87442
|
-
* Constructs a new EligibleUserAdded.
|
|
87443
|
-
* @name EligibleUserAdded
|
|
87444
|
-
* @classdesc Represents an EligibleUserAdded.
|
|
87445
|
-
* @implements IEligibleUserAdded
|
|
87446
|
-
* @constructor
|
|
87447
|
-
* @param {IEligibleUserAdded=} [properties] Properties to set
|
|
87448
|
-
*/
|
|
87449
|
-
function EligibleUserAdded(properties) {
|
|
87450
|
-
if (properties)
|
|
87451
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87452
|
-
if (properties[keys[i]] != null)
|
|
87453
|
-
this[keys[i]] = properties[keys[i]];
|
|
87454
|
-
}
|
|
87455
|
-
|
|
87456
|
-
/**
|
|
87457
|
-
* EligibleUserAdded workId.
|
|
87458
|
-
* @member {string} workId
|
|
87459
|
-
* @memberof EligibleUserAdded
|
|
87460
|
-
* @instance
|
|
87461
|
-
*/
|
|
87462
|
-
EligibleUserAdded.prototype.workId = "";
|
|
87463
|
-
|
|
87464
|
-
/**
|
|
87465
|
-
* EligibleUserAdded workEmail.
|
|
87466
|
-
* @member {string} workEmail
|
|
87467
|
-
* @memberof EligibleUserAdded
|
|
87468
|
-
* @instance
|
|
87469
|
-
*/
|
|
87470
|
-
EligibleUserAdded.prototype.workEmail = "";
|
|
87471
|
-
|
|
87472
|
-
/**
|
|
87473
|
-
* EligibleUserAdded firstName.
|
|
87474
|
-
* @member {string} firstName
|
|
87475
|
-
* @memberof EligibleUserAdded
|
|
87476
|
-
* @instance
|
|
87477
|
-
*/
|
|
87478
|
-
EligibleUserAdded.prototype.firstName = "";
|
|
87479
|
-
|
|
87480
|
-
/**
|
|
87481
|
-
* EligibleUserAdded lastName.
|
|
87482
|
-
* @member {string} lastName
|
|
87483
|
-
* @memberof EligibleUserAdded
|
|
87484
|
-
* @instance
|
|
87485
|
-
*/
|
|
87486
|
-
EligibleUserAdded.prototype.lastName = "";
|
|
87487
|
-
|
|
87488
|
-
/**
|
|
87489
|
-
* EligibleUserAdded b2bMemberStatus.
|
|
87490
|
-
* @member {b2b.MemberStatus} b2bMemberStatus
|
|
87491
|
-
* @memberof EligibleUserAdded
|
|
87492
|
-
* @instance
|
|
87493
|
-
*/
|
|
87494
|
-
EligibleUserAdded.prototype.b2bMemberStatus = 0;
|
|
87495
|
-
|
|
87496
|
-
/**
|
|
87497
|
-
* EligibleUserAdded b2bOrgId.
|
|
87498
|
-
* @member {number} b2bOrgId
|
|
87499
|
-
* @memberof EligibleUserAdded
|
|
87500
|
-
* @instance
|
|
87501
|
-
*/
|
|
87502
|
-
EligibleUserAdded.prototype.b2bOrgId = 0;
|
|
87503
|
-
|
|
87504
|
-
/**
|
|
87505
|
-
* EligibleUserAdded b2bOrgName.
|
|
87506
|
-
* @member {string} b2bOrgName
|
|
87507
|
-
* @memberof EligibleUserAdded
|
|
87508
|
-
* @instance
|
|
87509
|
-
*/
|
|
87510
|
-
EligibleUserAdded.prototype.b2bOrgName = "";
|
|
87511
|
-
|
|
87512
|
-
/**
|
|
87513
|
-
* EligibleUserAdded b2bOrgCampaignDisplayName.
|
|
87514
|
-
* @member {string} b2bOrgCampaignDisplayName
|
|
87515
|
-
* @memberof EligibleUserAdded
|
|
87516
|
-
* @instance
|
|
87517
|
-
*/
|
|
87518
|
-
EligibleUserAdded.prototype.b2bOrgCampaignDisplayName = "";
|
|
87519
|
-
|
|
87520
|
-
/**
|
|
87521
|
-
* EligibleUserAdded b2bPlan.
|
|
87522
|
-
* @member {b2b.OrgMemberPlan} b2bPlan
|
|
87523
|
-
* @memberof EligibleUserAdded
|
|
87524
|
-
* @instance
|
|
87525
|
-
*/
|
|
87526
|
-
EligibleUserAdded.prototype.b2bPlan = 0;
|
|
87527
|
-
|
|
87528
|
-
/**
|
|
87529
|
-
* EligibleUserAdded b2bIsPilot.
|
|
87530
|
-
* @member {boolean} b2bIsPilot
|
|
87531
|
-
* @memberof EligibleUserAdded
|
|
87532
|
-
* @instance
|
|
87533
|
-
*/
|
|
87534
|
-
EligibleUserAdded.prototype.b2bIsPilot = false;
|
|
87535
|
-
|
|
87536
|
-
/**
|
|
87537
|
-
* EligibleUserAdded b2bEnrollmentFlow.
|
|
87538
|
-
* @member {b2b.EnrollmentFlow} b2bEnrollmentFlow
|
|
87539
|
-
* @memberof EligibleUserAdded
|
|
87540
|
-
* @instance
|
|
87541
|
-
*/
|
|
87542
|
-
EligibleUserAdded.prototype.b2bEnrollmentFlow = 0;
|
|
87543
|
-
|
|
87544
|
-
/**
|
|
87545
|
-
* EligibleUserAdded enrollmentUrl.
|
|
87546
|
-
* @member {string} enrollmentUrl
|
|
87547
|
-
* @memberof EligibleUserAdded
|
|
87548
|
-
* @instance
|
|
87549
|
-
*/
|
|
87550
|
-
EligibleUserAdded.prototype.enrollmentUrl = "";
|
|
87551
|
-
|
|
87552
|
-
/**
|
|
87553
|
-
* EligibleUserAdded b2bCustomFields.
|
|
87554
|
-
* @member {string} b2bCustomFields
|
|
87555
|
-
* @memberof EligibleUserAdded
|
|
87556
|
-
* @instance
|
|
87557
|
-
*/
|
|
87558
|
-
EligibleUserAdded.prototype.b2bCustomFields = "";
|
|
87559
|
-
|
|
87560
|
-
/**
|
|
87561
|
-
* EligibleUserAdded timestamp.
|
|
87562
|
-
* @member {number|Long} timestamp
|
|
87563
|
-
* @memberof EligibleUserAdded
|
|
87564
|
-
* @instance
|
|
87565
|
-
*/
|
|
87566
|
-
EligibleUserAdded.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
87567
|
-
|
|
87568
|
-
/**
|
|
87569
|
-
* EligibleUserAdded b2bCampaignLaunchDate.
|
|
87570
|
-
* @member {number|Long} b2bCampaignLaunchDate
|
|
87571
|
-
* @memberof EligibleUserAdded
|
|
87572
|
-
* @instance
|
|
87573
|
-
*/
|
|
87574
|
-
EligibleUserAdded.prototype.b2bCampaignLaunchDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
87575
|
-
|
|
87576
|
-
/**
|
|
87577
|
-
* EligibleUserAdded b2bCountry.
|
|
87578
|
-
* @member {string} b2bCountry
|
|
87579
|
-
* @memberof EligibleUserAdded
|
|
87580
|
-
* @instance
|
|
87581
|
-
*/
|
|
87582
|
-
EligibleUserAdded.prototype.b2bCountry = "";
|
|
87583
|
-
|
|
87584
|
-
/**
|
|
87585
|
-
* EligibleUserAdded b2bDepartment.
|
|
87586
|
-
* @member {string} b2bDepartment
|
|
87587
|
-
* @memberof EligibleUserAdded
|
|
87588
|
-
* @instance
|
|
87589
|
-
*/
|
|
87590
|
-
EligibleUserAdded.prototype.b2bDepartment = "";
|
|
87591
|
-
|
|
87592
|
-
/**
|
|
87593
|
-
* EligibleUserAdded b2bLocation.
|
|
87594
|
-
* @member {string} b2bLocation
|
|
87595
|
-
* @memberof EligibleUserAdded
|
|
87596
|
-
* @instance
|
|
87597
|
-
*/
|
|
87598
|
-
EligibleUserAdded.prototype.b2bLocation = "";
|
|
87599
|
-
|
|
87600
|
-
/**
|
|
87601
|
-
* EligibleUserAdded countryStateCode.
|
|
87602
|
-
* @member {string} countryStateCode
|
|
87603
|
-
* @memberof EligibleUserAdded
|
|
87604
|
-
* @instance
|
|
87605
|
-
*/
|
|
87606
|
-
EligibleUserAdded.prototype.countryStateCode = "";
|
|
87607
|
-
|
|
87608
|
-
/**
|
|
87609
|
-
* EligibleUserAdded dependentOf.
|
|
87610
|
-
* @member {string} dependentOf
|
|
87611
|
-
* @memberof EligibleUserAdded
|
|
87612
|
-
* @instance
|
|
87613
|
-
*/
|
|
87614
|
-
EligibleUserAdded.prototype.dependentOf = "";
|
|
87615
|
-
|
|
87616
|
-
/**
|
|
87617
|
-
* Creates a new EligibleUserAdded instance using the specified properties.
|
|
87618
|
-
* @function create
|
|
87619
|
-
* @memberof EligibleUserAdded
|
|
87620
|
-
* @static
|
|
87621
|
-
* @param {IEligibleUserAdded=} [properties] Properties to set
|
|
87622
|
-
* @returns {EligibleUserAdded} EligibleUserAdded instance
|
|
87623
|
-
*/
|
|
87624
|
-
EligibleUserAdded.create = function create(properties) {
|
|
87625
|
-
return new EligibleUserAdded(properties);
|
|
87626
|
-
};
|
|
87627
|
-
|
|
87628
|
-
/**
|
|
87629
|
-
* Encodes the specified EligibleUserAdded message. Does not implicitly {@link EligibleUserAdded.verify|verify} messages.
|
|
87630
|
-
* @function encode
|
|
87631
|
-
* @memberof EligibleUserAdded
|
|
87632
|
-
* @static
|
|
87633
|
-
* @param {IEligibleUserAdded} message EligibleUserAdded message or plain object to encode
|
|
87634
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87635
|
-
* @returns {$protobuf.Writer} Writer
|
|
87636
|
-
*/
|
|
87637
|
-
EligibleUserAdded.encode = function encode(message, writer) {
|
|
87638
|
-
if (!writer)
|
|
87639
|
-
writer = $Writer.create();
|
|
87640
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
87641
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.workEmail);
|
|
87642
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
87643
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.firstName);
|
|
87644
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
87645
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.lastName);
|
|
87646
|
-
if (message.b2bMemberStatus != null && message.hasOwnProperty("b2bMemberStatus"))
|
|
87647
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.b2bMemberStatus);
|
|
87648
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
87649
|
-
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.b2bOrgId);
|
|
87650
|
-
if (message.b2bOrgName != null && message.hasOwnProperty("b2bOrgName"))
|
|
87651
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.b2bOrgName);
|
|
87652
|
-
if (message.b2bOrgCampaignDisplayName != null && message.hasOwnProperty("b2bOrgCampaignDisplayName"))
|
|
87653
|
-
writer.uint32(/* id 7, wireType 2 =*/58).string(message.b2bOrgCampaignDisplayName);
|
|
87654
|
-
if (message.b2bPlan != null && message.hasOwnProperty("b2bPlan"))
|
|
87655
|
-
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.b2bPlan);
|
|
87656
|
-
if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
|
|
87657
|
-
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.b2bIsPilot);
|
|
87658
|
-
if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
|
|
87659
|
-
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.b2bEnrollmentFlow);
|
|
87660
|
-
if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
|
|
87661
|
-
writer.uint32(/* id 11, wireType 2 =*/90).string(message.enrollmentUrl);
|
|
87662
|
-
if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
|
|
87663
|
-
writer.uint32(/* id 12, wireType 2 =*/98).string(message.b2bCustomFields);
|
|
87664
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
87665
|
-
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.timestamp);
|
|
87666
|
-
if (message.b2bCampaignLaunchDate != null && message.hasOwnProperty("b2bCampaignLaunchDate"))
|
|
87667
|
-
writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.b2bCampaignLaunchDate);
|
|
87668
|
-
if (message.b2bCountry != null && message.hasOwnProperty("b2bCountry"))
|
|
87669
|
-
writer.uint32(/* id 15, wireType 2 =*/122).string(message.b2bCountry);
|
|
87670
|
-
if (message.b2bDepartment != null && message.hasOwnProperty("b2bDepartment"))
|
|
87671
|
-
writer.uint32(/* id 16, wireType 2 =*/130).string(message.b2bDepartment);
|
|
87672
|
-
if (message.b2bLocation != null && message.hasOwnProperty("b2bLocation"))
|
|
87673
|
-
writer.uint32(/* id 17, wireType 2 =*/138).string(message.b2bLocation);
|
|
87674
|
-
if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
|
|
87675
|
-
writer.uint32(/* id 18, wireType 2 =*/146).string(message.countryStateCode);
|
|
87676
|
-
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
87677
|
-
writer.uint32(/* id 19, wireType 2 =*/154).string(message.dependentOf);
|
|
87678
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
87679
|
-
writer.uint32(/* id 20, wireType 2 =*/162).string(message.workId);
|
|
87680
|
-
return writer;
|
|
87681
|
-
};
|
|
87682
|
-
|
|
87683
|
-
/**
|
|
87684
|
-
* Encodes the specified EligibleUserAdded message, length delimited. Does not implicitly {@link EligibleUserAdded.verify|verify} messages.
|
|
87685
|
-
* @function encodeDelimited
|
|
87686
|
-
* @memberof EligibleUserAdded
|
|
87687
|
-
* @static
|
|
87688
|
-
* @param {IEligibleUserAdded} message EligibleUserAdded message or plain object to encode
|
|
87689
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87690
|
-
* @returns {$protobuf.Writer} Writer
|
|
87691
|
-
*/
|
|
87692
|
-
EligibleUserAdded.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87693
|
-
return this.encode(message, writer).ldelim();
|
|
87694
|
-
};
|
|
87695
|
-
|
|
87696
|
-
/**
|
|
87697
|
-
* Decodes an EligibleUserAdded message from the specified reader or buffer.
|
|
87698
|
-
* @function decode
|
|
87699
|
-
* @memberof EligibleUserAdded
|
|
87700
|
-
* @static
|
|
87701
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87702
|
-
* @param {number} [length] Message length if known beforehand
|
|
87703
|
-
* @returns {EligibleUserAdded} EligibleUserAdded
|
|
87704
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87705
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87706
|
-
*/
|
|
87707
|
-
EligibleUserAdded.decode = function decode(reader, length) {
|
|
87708
|
-
if (!(reader instanceof $Reader))
|
|
87709
|
-
reader = $Reader.create(reader);
|
|
87710
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibleUserAdded();
|
|
87711
|
-
while (reader.pos < end) {
|
|
87712
|
-
var tag = reader.uint32();
|
|
87713
|
-
switch (tag >>> 3) {
|
|
87714
|
-
case 20:
|
|
87715
|
-
message.workId = reader.string();
|
|
87716
|
-
break;
|
|
87717
|
-
case 1:
|
|
87718
|
-
message.workEmail = reader.string();
|
|
87719
|
-
break;
|
|
87720
|
-
case 2:
|
|
87721
|
-
message.firstName = reader.string();
|
|
87722
|
-
break;
|
|
87723
|
-
case 3:
|
|
87724
|
-
message.lastName = reader.string();
|
|
87725
|
-
break;
|
|
87726
|
-
case 4:
|
|
87727
|
-
message.b2bMemberStatus = reader.int32();
|
|
87728
|
-
break;
|
|
87729
|
-
case 5:
|
|
87730
|
-
message.b2bOrgId = reader.uint32();
|
|
87731
|
-
break;
|
|
87732
|
-
case 6:
|
|
87733
|
-
message.b2bOrgName = reader.string();
|
|
87734
|
-
break;
|
|
87735
|
-
case 7:
|
|
87736
|
-
message.b2bOrgCampaignDisplayName = reader.string();
|
|
87737
|
-
break;
|
|
87738
|
-
case 8:
|
|
87739
|
-
message.b2bPlan = reader.int32();
|
|
87740
|
-
break;
|
|
87741
|
-
case 9:
|
|
87742
|
-
message.b2bIsPilot = reader.bool();
|
|
87743
|
-
break;
|
|
87744
|
-
case 10:
|
|
87745
|
-
message.b2bEnrollmentFlow = reader.int32();
|
|
87746
|
-
break;
|
|
87747
|
-
case 11:
|
|
87748
|
-
message.enrollmentUrl = reader.string();
|
|
87749
|
-
break;
|
|
87750
|
-
case 12:
|
|
87751
|
-
message.b2bCustomFields = reader.string();
|
|
87752
|
-
break;
|
|
87753
|
-
case 13:
|
|
87754
|
-
message.timestamp = reader.uint64();
|
|
87755
|
-
break;
|
|
87756
|
-
case 14:
|
|
87757
|
-
message.b2bCampaignLaunchDate = reader.uint64();
|
|
87758
|
-
break;
|
|
87759
|
-
case 15:
|
|
87760
|
-
message.b2bCountry = reader.string();
|
|
87761
|
-
break;
|
|
87762
|
-
case 16:
|
|
87763
|
-
message.b2bDepartment = reader.string();
|
|
87764
|
-
break;
|
|
87765
|
-
case 17:
|
|
87766
|
-
message.b2bLocation = reader.string();
|
|
87767
|
-
break;
|
|
87768
|
-
case 18:
|
|
87769
|
-
message.countryStateCode = reader.string();
|
|
87770
|
-
break;
|
|
87771
|
-
case 19:
|
|
87772
|
-
message.dependentOf = reader.string();
|
|
87773
|
-
break;
|
|
87774
|
-
default:
|
|
87775
|
-
reader.skipType(tag & 7);
|
|
87776
|
-
break;
|
|
87777
|
-
}
|
|
87778
|
-
}
|
|
87779
|
-
return message;
|
|
87780
|
-
};
|
|
87781
|
-
|
|
87782
|
-
/**
|
|
87783
|
-
* Decodes an EligibleUserAdded message from the specified reader or buffer, length delimited.
|
|
87784
|
-
* @function decodeDelimited
|
|
87785
|
-
* @memberof EligibleUserAdded
|
|
87786
|
-
* @static
|
|
87787
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87788
|
-
* @returns {EligibleUserAdded} EligibleUserAdded
|
|
87789
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87790
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87791
|
-
*/
|
|
87792
|
-
EligibleUserAdded.decodeDelimited = function decodeDelimited(reader) {
|
|
87793
|
-
if (!(reader instanceof $Reader))
|
|
87794
|
-
reader = new $Reader(reader);
|
|
87795
|
-
return this.decode(reader, reader.uint32());
|
|
87796
|
-
};
|
|
87797
|
-
|
|
87798
|
-
/**
|
|
87799
|
-
* Verifies an EligibleUserAdded message.
|
|
87800
|
-
* @function verify
|
|
87801
|
-
* @memberof EligibleUserAdded
|
|
87802
|
-
* @static
|
|
87803
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
87804
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87805
|
-
*/
|
|
87806
|
-
EligibleUserAdded.verify = function verify(message) {
|
|
87807
|
-
if (typeof message !== "object" || message === null)
|
|
87808
|
-
return "object expected";
|
|
87809
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
87810
|
-
if (!$util.isString(message.workId))
|
|
87811
|
-
return "workId: string expected";
|
|
87812
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
87813
|
-
if (!$util.isString(message.workEmail))
|
|
87814
|
-
return "workEmail: string expected";
|
|
87815
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
87816
|
-
if (!$util.isString(message.firstName))
|
|
87817
|
-
return "firstName: string expected";
|
|
87818
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
87819
|
-
if (!$util.isString(message.lastName))
|
|
87820
|
-
return "lastName: string expected";
|
|
87821
|
-
if (message.b2bMemberStatus != null && message.hasOwnProperty("b2bMemberStatus"))
|
|
87822
|
-
switch (message.b2bMemberStatus) {
|
|
87823
|
-
default:
|
|
87824
|
-
return "b2bMemberStatus: enum value expected";
|
|
87825
|
-
case 0:
|
|
87826
|
-
case 1:
|
|
87827
|
-
case 2:
|
|
87828
|
-
case 3:
|
|
87829
|
-
case 4:
|
|
87830
|
-
case 5:
|
|
87831
|
-
case 6:
|
|
87832
|
-
break;
|
|
87833
|
-
}
|
|
87834
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
87835
|
-
if (!$util.isInteger(message.b2bOrgId))
|
|
87836
|
-
return "b2bOrgId: integer expected";
|
|
87837
|
-
if (message.b2bOrgName != null && message.hasOwnProperty("b2bOrgName"))
|
|
87838
|
-
if (!$util.isString(message.b2bOrgName))
|
|
87839
|
-
return "b2bOrgName: string expected";
|
|
87840
|
-
if (message.b2bOrgCampaignDisplayName != null && message.hasOwnProperty("b2bOrgCampaignDisplayName"))
|
|
87841
|
-
if (!$util.isString(message.b2bOrgCampaignDisplayName))
|
|
87842
|
-
return "b2bOrgCampaignDisplayName: string expected";
|
|
87843
|
-
if (message.b2bPlan != null && message.hasOwnProperty("b2bPlan"))
|
|
87844
|
-
switch (message.b2bPlan) {
|
|
87845
|
-
default:
|
|
87846
|
-
return "b2bPlan: enum value expected";
|
|
87847
|
-
case 0:
|
|
87848
|
-
case 1:
|
|
87849
|
-
case 2:
|
|
87850
|
-
break;
|
|
87851
|
-
}
|
|
87852
|
-
if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
|
|
87853
|
-
if (typeof message.b2bIsPilot !== "boolean")
|
|
87854
|
-
return "b2bIsPilot: boolean expected";
|
|
87855
|
-
if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
|
|
87856
|
-
switch (message.b2bEnrollmentFlow) {
|
|
87857
|
-
default:
|
|
87858
|
-
return "b2bEnrollmentFlow: enum value expected";
|
|
87859
|
-
case 0:
|
|
87860
|
-
case 1:
|
|
87861
|
-
case 2:
|
|
87862
|
-
case 3:
|
|
87863
|
-
case 4:
|
|
87864
|
-
case 5:
|
|
87865
|
-
break;
|
|
87866
|
-
}
|
|
87867
|
-
if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
|
|
87868
|
-
if (!$util.isString(message.enrollmentUrl))
|
|
87869
|
-
return "enrollmentUrl: string expected";
|
|
87870
|
-
if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
|
|
87871
|
-
if (!$util.isString(message.b2bCustomFields))
|
|
87872
|
-
return "b2bCustomFields: string expected";
|
|
87873
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
87874
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
87875
|
-
return "timestamp: integer|Long expected";
|
|
87876
|
-
if (message.b2bCampaignLaunchDate != null && message.hasOwnProperty("b2bCampaignLaunchDate"))
|
|
87877
|
-
if (!$util.isInteger(message.b2bCampaignLaunchDate) && !(message.b2bCampaignLaunchDate && $util.isInteger(message.b2bCampaignLaunchDate.low) && $util.isInteger(message.b2bCampaignLaunchDate.high)))
|
|
87878
|
-
return "b2bCampaignLaunchDate: integer|Long expected";
|
|
87879
|
-
if (message.b2bCountry != null && message.hasOwnProperty("b2bCountry"))
|
|
87880
|
-
if (!$util.isString(message.b2bCountry))
|
|
87881
|
-
return "b2bCountry: string expected";
|
|
87882
|
-
if (message.b2bDepartment != null && message.hasOwnProperty("b2bDepartment"))
|
|
87883
|
-
if (!$util.isString(message.b2bDepartment))
|
|
87884
|
-
return "b2bDepartment: string expected";
|
|
87885
|
-
if (message.b2bLocation != null && message.hasOwnProperty("b2bLocation"))
|
|
87886
|
-
if (!$util.isString(message.b2bLocation))
|
|
87887
|
-
return "b2bLocation: string expected";
|
|
87888
|
-
if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
|
|
87889
|
-
if (!$util.isString(message.countryStateCode))
|
|
87890
|
-
return "countryStateCode: string expected";
|
|
87891
|
-
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
87892
|
-
if (!$util.isString(message.dependentOf))
|
|
87893
|
-
return "dependentOf: string expected";
|
|
87894
|
-
return null;
|
|
87895
|
-
};
|
|
87896
|
-
|
|
87897
|
-
/**
|
|
87898
|
-
* Creates an EligibleUserAdded message from a plain object. Also converts values to their respective internal types.
|
|
87899
|
-
* @function fromObject
|
|
87900
|
-
* @memberof EligibleUserAdded
|
|
87901
|
-
* @static
|
|
87902
|
-
* @param {Object.<string,*>} object Plain object
|
|
87903
|
-
* @returns {EligibleUserAdded} EligibleUserAdded
|
|
87904
|
-
*/
|
|
87905
|
-
EligibleUserAdded.fromObject = function fromObject(object) {
|
|
87906
|
-
if (object instanceof $root.EligibleUserAdded)
|
|
87907
|
-
return object;
|
|
87908
|
-
var message = new $root.EligibleUserAdded();
|
|
87909
|
-
if (object.workId != null)
|
|
87910
|
-
message.workId = String(object.workId);
|
|
87911
|
-
if (object.workEmail != null)
|
|
87912
|
-
message.workEmail = String(object.workEmail);
|
|
87913
|
-
if (object.firstName != null)
|
|
87914
|
-
message.firstName = String(object.firstName);
|
|
87915
|
-
if (object.lastName != null)
|
|
87916
|
-
message.lastName = String(object.lastName);
|
|
87917
|
-
switch (object.b2bMemberStatus) {
|
|
87918
|
-
case "PENDING":
|
|
87919
|
-
case 0:
|
|
87920
|
-
message.b2bMemberStatus = 0;
|
|
87921
|
-
break;
|
|
87922
|
-
case "ORPHAN":
|
|
87923
|
-
case 1:
|
|
87924
|
-
message.b2bMemberStatus = 1;
|
|
87925
|
-
break;
|
|
87926
|
-
case "ACTIVE":
|
|
87927
|
-
case 2:
|
|
87928
|
-
message.b2bMemberStatus = 2;
|
|
87929
|
-
break;
|
|
87930
|
-
case "REMOVED":
|
|
87931
|
-
case 3:
|
|
87932
|
-
message.b2bMemberStatus = 3;
|
|
87933
|
-
break;
|
|
87934
|
-
case "EXPIRED":
|
|
87935
|
-
case 4:
|
|
87936
|
-
message.b2bMemberStatus = 4;
|
|
87937
|
-
break;
|
|
87938
|
-
case "ELIGIBLE":
|
|
87939
|
-
case 5:
|
|
87940
|
-
message.b2bMemberStatus = 5;
|
|
87941
|
-
break;
|
|
87942
|
-
case "PENDING_REMOVAL":
|
|
87943
|
-
case 6:
|
|
87944
|
-
message.b2bMemberStatus = 6;
|
|
87945
|
-
break;
|
|
87946
|
-
}
|
|
87947
|
-
if (object.b2bOrgId != null)
|
|
87948
|
-
message.b2bOrgId = object.b2bOrgId >>> 0;
|
|
87949
|
-
if (object.b2bOrgName != null)
|
|
87950
|
-
message.b2bOrgName = String(object.b2bOrgName);
|
|
87951
|
-
if (object.b2bOrgCampaignDisplayName != null)
|
|
87952
|
-
message.b2bOrgCampaignDisplayName = String(object.b2bOrgCampaignDisplayName);
|
|
87953
|
-
switch (object.b2bPlan) {
|
|
87954
|
-
case "ORGPLAN_UNKNOWN":
|
|
87955
|
-
case 0:
|
|
87956
|
-
message.b2bPlan = 0;
|
|
87957
|
-
break;
|
|
87958
|
-
case "ORGPLAN_B2B":
|
|
87959
|
-
case 1:
|
|
87960
|
-
message.b2bPlan = 1;
|
|
87961
|
-
break;
|
|
87962
|
-
case "ORGPLAN_B2B_FAMILY_PLAN":
|
|
87963
|
-
case 2:
|
|
87964
|
-
message.b2bPlan = 2;
|
|
87965
|
-
break;
|
|
87966
|
-
}
|
|
87967
|
-
if (object.b2bIsPilot != null)
|
|
87968
|
-
message.b2bIsPilot = Boolean(object.b2bIsPilot);
|
|
87969
|
-
switch (object.b2bEnrollmentFlow) {
|
|
87970
|
-
case "ENROLLMENT_FLOW_UNKNOWN":
|
|
87971
|
-
case 0:
|
|
87972
|
-
message.b2bEnrollmentFlow = 0;
|
|
87973
|
-
break;
|
|
87974
|
-
case "ENROLLMENT_FLOW_HEADSPACE":
|
|
87975
|
-
case 1:
|
|
87976
|
-
message.b2bEnrollmentFlow = 1;
|
|
87977
|
-
break;
|
|
87978
|
-
case "ENROLLMENT_FLOW_CONNECTED":
|
|
87979
|
-
case 2:
|
|
87980
|
-
message.b2bEnrollmentFlow = 2;
|
|
87981
|
-
break;
|
|
87982
|
-
case "ENROLLMENT_FLOW_UMD":
|
|
87983
|
-
case 3:
|
|
87984
|
-
message.b2bEnrollmentFlow = 3;
|
|
87985
|
-
break;
|
|
87986
|
-
case "ENROLLMENT_FLOW_FUSION":
|
|
87987
|
-
case 4:
|
|
87988
|
-
message.b2bEnrollmentFlow = 4;
|
|
87989
|
-
break;
|
|
87990
|
-
case "ENROLLMENT_FLOW_GINGER":
|
|
87991
|
-
case 5:
|
|
87992
|
-
message.b2bEnrollmentFlow = 5;
|
|
87993
|
-
break;
|
|
87994
|
-
}
|
|
87995
|
-
if (object.enrollmentUrl != null)
|
|
87996
|
-
message.enrollmentUrl = String(object.enrollmentUrl);
|
|
87997
|
-
if (object.b2bCustomFields != null)
|
|
87998
|
-
message.b2bCustomFields = String(object.b2bCustomFields);
|
|
87999
|
-
if (object.timestamp != null)
|
|
88000
|
-
if ($util.Long)
|
|
88001
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
88002
|
-
else if (typeof object.timestamp === "string")
|
|
88003
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
88004
|
-
else if (typeof object.timestamp === "number")
|
|
88005
|
-
message.timestamp = object.timestamp;
|
|
88006
|
-
else if (typeof object.timestamp === "object")
|
|
88007
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
88008
|
-
if (object.b2bCampaignLaunchDate != null)
|
|
88009
|
-
if ($util.Long)
|
|
88010
|
-
(message.b2bCampaignLaunchDate = $util.Long.fromValue(object.b2bCampaignLaunchDate)).unsigned = true;
|
|
88011
|
-
else if (typeof object.b2bCampaignLaunchDate === "string")
|
|
88012
|
-
message.b2bCampaignLaunchDate = parseInt(object.b2bCampaignLaunchDate, 10);
|
|
88013
|
-
else if (typeof object.b2bCampaignLaunchDate === "number")
|
|
88014
|
-
message.b2bCampaignLaunchDate = object.b2bCampaignLaunchDate;
|
|
88015
|
-
else if (typeof object.b2bCampaignLaunchDate === "object")
|
|
88016
|
-
message.b2bCampaignLaunchDate = new $util.LongBits(object.b2bCampaignLaunchDate.low >>> 0, object.b2bCampaignLaunchDate.high >>> 0).toNumber(true);
|
|
88017
|
-
if (object.b2bCountry != null)
|
|
88018
|
-
message.b2bCountry = String(object.b2bCountry);
|
|
88019
|
-
if (object.b2bDepartment != null)
|
|
88020
|
-
message.b2bDepartment = String(object.b2bDepartment);
|
|
88021
|
-
if (object.b2bLocation != null)
|
|
88022
|
-
message.b2bLocation = String(object.b2bLocation);
|
|
88023
|
-
if (object.countryStateCode != null)
|
|
88024
|
-
message.countryStateCode = String(object.countryStateCode);
|
|
88025
|
-
if (object.dependentOf != null)
|
|
88026
|
-
message.dependentOf = String(object.dependentOf);
|
|
88027
|
-
return message;
|
|
88028
|
-
};
|
|
88029
|
-
|
|
88030
|
-
/**
|
|
88031
|
-
* Creates a plain object from an EligibleUserAdded message. Also converts values to other types if specified.
|
|
88032
|
-
* @function toObject
|
|
88033
|
-
* @memberof EligibleUserAdded
|
|
88034
|
-
* @static
|
|
88035
|
-
* @param {EligibleUserAdded} message EligibleUserAdded
|
|
88036
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88037
|
-
* @returns {Object.<string,*>} Plain object
|
|
88038
|
-
*/
|
|
88039
|
-
EligibleUserAdded.toObject = function toObject(message, options) {
|
|
88040
|
-
if (!options)
|
|
88041
|
-
options = {};
|
|
88042
|
-
var object = {};
|
|
88043
|
-
if (options.defaults) {
|
|
88044
|
-
object.workEmail = "";
|
|
88045
|
-
object.firstName = "";
|
|
88046
|
-
object.lastName = "";
|
|
88047
|
-
object.b2bMemberStatus = options.enums === String ? "PENDING" : 0;
|
|
88048
|
-
object.b2bOrgId = 0;
|
|
88049
|
-
object.b2bOrgName = "";
|
|
88050
|
-
object.b2bOrgCampaignDisplayName = "";
|
|
88051
|
-
object.b2bPlan = options.enums === String ? "ORGPLAN_UNKNOWN" : 0;
|
|
88052
|
-
object.b2bIsPilot = false;
|
|
88053
|
-
object.b2bEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
88054
|
-
object.enrollmentUrl = "";
|
|
88055
|
-
object.b2bCustomFields = "";
|
|
88056
|
-
if ($util.Long) {
|
|
88057
|
-
var long = new $util.Long(0, 0, true);
|
|
88058
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
88059
|
-
} else
|
|
88060
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
88061
|
-
if ($util.Long) {
|
|
88062
|
-
var long = new $util.Long(0, 0, true);
|
|
88063
|
-
object.b2bCampaignLaunchDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
88064
|
-
} else
|
|
88065
|
-
object.b2bCampaignLaunchDate = options.longs === String ? "0" : 0;
|
|
88066
|
-
object.b2bCountry = "";
|
|
88067
|
-
object.b2bDepartment = "";
|
|
88068
|
-
object.b2bLocation = "";
|
|
88069
|
-
object.countryStateCode = "";
|
|
88070
|
-
object.dependentOf = "";
|
|
88071
|
-
object.workId = "";
|
|
88072
|
-
}
|
|
88073
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88074
|
-
object.workEmail = message.workEmail;
|
|
88075
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
88076
|
-
object.firstName = message.firstName;
|
|
88077
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
88078
|
-
object.lastName = message.lastName;
|
|
88079
|
-
if (message.b2bMemberStatus != null && message.hasOwnProperty("b2bMemberStatus"))
|
|
88080
|
-
object.b2bMemberStatus = options.enums === String ? $root.b2b.MemberStatus[message.b2bMemberStatus] : message.b2bMemberStatus;
|
|
88081
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88082
|
-
object.b2bOrgId = message.b2bOrgId;
|
|
88083
|
-
if (message.b2bOrgName != null && message.hasOwnProperty("b2bOrgName"))
|
|
88084
|
-
object.b2bOrgName = message.b2bOrgName;
|
|
88085
|
-
if (message.b2bOrgCampaignDisplayName != null && message.hasOwnProperty("b2bOrgCampaignDisplayName"))
|
|
88086
|
-
object.b2bOrgCampaignDisplayName = message.b2bOrgCampaignDisplayName;
|
|
88087
|
-
if (message.b2bPlan != null && message.hasOwnProperty("b2bPlan"))
|
|
88088
|
-
object.b2bPlan = options.enums === String ? $root.b2b.OrgMemberPlan[message.b2bPlan] : message.b2bPlan;
|
|
88089
|
-
if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
|
|
88090
|
-
object.b2bIsPilot = message.b2bIsPilot;
|
|
88091
|
-
if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
|
|
88092
|
-
object.b2bEnrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.b2bEnrollmentFlow] : message.b2bEnrollmentFlow;
|
|
88093
|
-
if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
|
|
88094
|
-
object.enrollmentUrl = message.enrollmentUrl;
|
|
88095
|
-
if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
|
|
88096
|
-
object.b2bCustomFields = message.b2bCustomFields;
|
|
88097
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88098
|
-
if (typeof message.timestamp === "number")
|
|
88099
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
88100
|
-
else
|
|
88101
|
-
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;
|
|
88102
|
-
if (message.b2bCampaignLaunchDate != null && message.hasOwnProperty("b2bCampaignLaunchDate"))
|
|
88103
|
-
if (typeof message.b2bCampaignLaunchDate === "number")
|
|
88104
|
-
object.b2bCampaignLaunchDate = options.longs === String ? String(message.b2bCampaignLaunchDate) : message.b2bCampaignLaunchDate;
|
|
88105
|
-
else
|
|
88106
|
-
object.b2bCampaignLaunchDate = options.longs === String ? $util.Long.prototype.toString.call(message.b2bCampaignLaunchDate) : options.longs === Number ? new $util.LongBits(message.b2bCampaignLaunchDate.low >>> 0, message.b2bCampaignLaunchDate.high >>> 0).toNumber(true) : message.b2bCampaignLaunchDate;
|
|
88107
|
-
if (message.b2bCountry != null && message.hasOwnProperty("b2bCountry"))
|
|
88108
|
-
object.b2bCountry = message.b2bCountry;
|
|
88109
|
-
if (message.b2bDepartment != null && message.hasOwnProperty("b2bDepartment"))
|
|
88110
|
-
object.b2bDepartment = message.b2bDepartment;
|
|
88111
|
-
if (message.b2bLocation != null && message.hasOwnProperty("b2bLocation"))
|
|
88112
|
-
object.b2bLocation = message.b2bLocation;
|
|
88113
|
-
if (message.countryStateCode != null && message.hasOwnProperty("countryStateCode"))
|
|
88114
|
-
object.countryStateCode = message.countryStateCode;
|
|
88115
|
-
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
88116
|
-
object.dependentOf = message.dependentOf;
|
|
88117
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88118
|
-
object.workId = message.workId;
|
|
88119
|
-
return object;
|
|
88120
|
-
};
|
|
88121
|
-
|
|
88122
|
-
/**
|
|
88123
|
-
* Converts this EligibleUserAdded to JSON.
|
|
88124
|
-
* @function toJSON
|
|
88125
|
-
* @memberof EligibleUserAdded
|
|
88126
|
-
* @instance
|
|
88127
|
-
* @returns {Object.<string,*>} JSON object
|
|
88128
|
-
*/
|
|
88129
|
-
EligibleUserAdded.prototype.toJSON = function toJSON() {
|
|
88130
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88131
|
-
};
|
|
88132
|
-
|
|
88133
|
-
return EligibleUserAdded;
|
|
88134
|
-
})();
|
|
88135
|
-
|
|
88136
|
-
$root.EligibleUserRemoved = (function() {
|
|
88137
|
-
|
|
88138
|
-
/**
|
|
88139
|
-
* Properties of an EligibleUserRemoved.
|
|
88140
|
-
* @name IEligibleUserRemoved
|
|
88141
|
-
* @interface IEligibleUserRemoved
|
|
88142
|
-
* @property {string|null} [workId] EligibleUserRemoved workId
|
|
88143
|
-
* @property {string|null} [workEmail] EligibleUserRemoved workEmail
|
|
88144
|
-
* @property {number|null} [b2bOrgId] EligibleUserRemoved b2bOrgId
|
|
88145
|
-
* @property {number|Long|null} [timestamp] EligibleUserRemoved timestamp
|
|
88146
|
-
*/
|
|
88147
|
-
|
|
88148
|
-
/**
|
|
88149
|
-
* Constructs a new EligibleUserRemoved.
|
|
88150
|
-
* @name EligibleUserRemoved
|
|
88151
|
-
* @classdesc Represents an EligibleUserRemoved.
|
|
88152
|
-
* @implements IEligibleUserRemoved
|
|
88153
|
-
* @constructor
|
|
88154
|
-
* @param {IEligibleUserRemoved=} [properties] Properties to set
|
|
88155
|
-
*/
|
|
88156
|
-
function EligibleUserRemoved(properties) {
|
|
88157
|
-
if (properties)
|
|
88158
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
88159
|
-
if (properties[keys[i]] != null)
|
|
88160
|
-
this[keys[i]] = properties[keys[i]];
|
|
88161
|
-
}
|
|
88162
|
-
|
|
88163
|
-
/**
|
|
88164
|
-
* EligibleUserRemoved workId.
|
|
88165
|
-
* @member {string} workId
|
|
88166
|
-
* @memberof EligibleUserRemoved
|
|
88167
|
-
* @instance
|
|
88168
|
-
*/
|
|
88169
|
-
EligibleUserRemoved.prototype.workId = "";
|
|
88170
|
-
|
|
88171
|
-
/**
|
|
88172
|
-
* EligibleUserRemoved workEmail.
|
|
88173
|
-
* @member {string} workEmail
|
|
88174
|
-
* @memberof EligibleUserRemoved
|
|
88175
|
-
* @instance
|
|
88176
|
-
*/
|
|
88177
|
-
EligibleUserRemoved.prototype.workEmail = "";
|
|
88178
|
-
|
|
88179
|
-
/**
|
|
88180
|
-
* EligibleUserRemoved b2bOrgId.
|
|
88181
|
-
* @member {number} b2bOrgId
|
|
88182
|
-
* @memberof EligibleUserRemoved
|
|
88183
|
-
* @instance
|
|
88184
|
-
*/
|
|
88185
|
-
EligibleUserRemoved.prototype.b2bOrgId = 0;
|
|
88186
|
-
|
|
88187
|
-
/**
|
|
88188
|
-
* EligibleUserRemoved timestamp.
|
|
88189
|
-
* @member {number|Long} timestamp
|
|
88190
|
-
* @memberof EligibleUserRemoved
|
|
88191
|
-
* @instance
|
|
88192
|
-
*/
|
|
88193
|
-
EligibleUserRemoved.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
88194
|
-
|
|
88195
|
-
/**
|
|
88196
|
-
* Creates a new EligibleUserRemoved instance using the specified properties.
|
|
88197
|
-
* @function create
|
|
88198
|
-
* @memberof EligibleUserRemoved
|
|
88199
|
-
* @static
|
|
88200
|
-
* @param {IEligibleUserRemoved=} [properties] Properties to set
|
|
88201
|
-
* @returns {EligibleUserRemoved} EligibleUserRemoved instance
|
|
88202
|
-
*/
|
|
88203
|
-
EligibleUserRemoved.create = function create(properties) {
|
|
88204
|
-
return new EligibleUserRemoved(properties);
|
|
88205
|
-
};
|
|
88206
|
-
|
|
88207
|
-
/**
|
|
88208
|
-
* Encodes the specified EligibleUserRemoved message. Does not implicitly {@link EligibleUserRemoved.verify|verify} messages.
|
|
88209
|
-
* @function encode
|
|
88210
|
-
* @memberof EligibleUserRemoved
|
|
88211
|
-
* @static
|
|
88212
|
-
* @param {IEligibleUserRemoved} message EligibleUserRemoved message or plain object to encode
|
|
88213
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88214
|
-
* @returns {$protobuf.Writer} Writer
|
|
88215
|
-
*/
|
|
88216
|
-
EligibleUserRemoved.encode = function encode(message, writer) {
|
|
88217
|
-
if (!writer)
|
|
88218
|
-
writer = $Writer.create();
|
|
88219
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88220
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.workEmail);
|
|
88221
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88222
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.b2bOrgId);
|
|
88223
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88224
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
88225
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88226
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.workId);
|
|
88227
|
-
return writer;
|
|
88228
|
-
};
|
|
88229
|
-
|
|
88230
|
-
/**
|
|
88231
|
-
* Encodes the specified EligibleUserRemoved message, length delimited. Does not implicitly {@link EligibleUserRemoved.verify|verify} messages.
|
|
88232
|
-
* @function encodeDelimited
|
|
88233
|
-
* @memberof EligibleUserRemoved
|
|
88234
|
-
* @static
|
|
88235
|
-
* @param {IEligibleUserRemoved} message EligibleUserRemoved message or plain object to encode
|
|
88236
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88237
|
-
* @returns {$protobuf.Writer} Writer
|
|
88238
|
-
*/
|
|
88239
|
-
EligibleUserRemoved.encodeDelimited = function encodeDelimited(message, writer) {
|
|
88240
|
-
return this.encode(message, writer).ldelim();
|
|
88241
|
-
};
|
|
88242
|
-
|
|
88243
|
-
/**
|
|
88244
|
-
* Decodes an EligibleUserRemoved message from the specified reader or buffer.
|
|
88245
|
-
* @function decode
|
|
88246
|
-
* @memberof EligibleUserRemoved
|
|
88247
|
-
* @static
|
|
88248
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88249
|
-
* @param {number} [length] Message length if known beforehand
|
|
88250
|
-
* @returns {EligibleUserRemoved} EligibleUserRemoved
|
|
88251
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88252
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88253
|
-
*/
|
|
88254
|
-
EligibleUserRemoved.decode = function decode(reader, length) {
|
|
88255
|
-
if (!(reader instanceof $Reader))
|
|
88256
|
-
reader = $Reader.create(reader);
|
|
88257
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibleUserRemoved();
|
|
88258
|
-
while (reader.pos < end) {
|
|
88259
|
-
var tag = reader.uint32();
|
|
88260
|
-
switch (tag >>> 3) {
|
|
88261
|
-
case 4:
|
|
88262
|
-
message.workId = reader.string();
|
|
88263
|
-
break;
|
|
88264
|
-
case 1:
|
|
88265
|
-
message.workEmail = reader.string();
|
|
88266
|
-
break;
|
|
88267
|
-
case 2:
|
|
88268
|
-
message.b2bOrgId = reader.uint32();
|
|
88269
|
-
break;
|
|
88270
|
-
case 3:
|
|
88271
|
-
message.timestamp = reader.uint64();
|
|
88272
|
-
break;
|
|
88273
|
-
default:
|
|
88274
|
-
reader.skipType(tag & 7);
|
|
88275
|
-
break;
|
|
88276
|
-
}
|
|
88277
|
-
}
|
|
88278
|
-
return message;
|
|
88279
|
-
};
|
|
88280
|
-
|
|
88281
|
-
/**
|
|
88282
|
-
* Decodes an EligibleUserRemoved message from the specified reader or buffer, length delimited.
|
|
88283
|
-
* @function decodeDelimited
|
|
88284
|
-
* @memberof EligibleUserRemoved
|
|
88285
|
-
* @static
|
|
88286
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88287
|
-
* @returns {EligibleUserRemoved} EligibleUserRemoved
|
|
88288
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88289
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88290
|
-
*/
|
|
88291
|
-
EligibleUserRemoved.decodeDelimited = function decodeDelimited(reader) {
|
|
88292
|
-
if (!(reader instanceof $Reader))
|
|
88293
|
-
reader = new $Reader(reader);
|
|
88294
|
-
return this.decode(reader, reader.uint32());
|
|
88295
|
-
};
|
|
88296
|
-
|
|
88297
|
-
/**
|
|
88298
|
-
* Verifies an EligibleUserRemoved message.
|
|
88299
|
-
* @function verify
|
|
88300
|
-
* @memberof EligibleUserRemoved
|
|
88301
|
-
* @static
|
|
88302
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
88303
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
88304
|
-
*/
|
|
88305
|
-
EligibleUserRemoved.verify = function verify(message) {
|
|
88306
|
-
if (typeof message !== "object" || message === null)
|
|
88307
|
-
return "object expected";
|
|
88308
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88309
|
-
if (!$util.isString(message.workId))
|
|
88310
|
-
return "workId: string expected";
|
|
88311
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88312
|
-
if (!$util.isString(message.workEmail))
|
|
88313
|
-
return "workEmail: string expected";
|
|
88314
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88315
|
-
if (!$util.isInteger(message.b2bOrgId))
|
|
88316
|
-
return "b2bOrgId: integer expected";
|
|
88317
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88318
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
88319
|
-
return "timestamp: integer|Long expected";
|
|
88320
|
-
return null;
|
|
88321
|
-
};
|
|
88322
|
-
|
|
88323
|
-
/**
|
|
88324
|
-
* Creates an EligibleUserRemoved message from a plain object. Also converts values to their respective internal types.
|
|
88325
|
-
* @function fromObject
|
|
88326
|
-
* @memberof EligibleUserRemoved
|
|
88327
|
-
* @static
|
|
88328
|
-
* @param {Object.<string,*>} object Plain object
|
|
88329
|
-
* @returns {EligibleUserRemoved} EligibleUserRemoved
|
|
88330
|
-
*/
|
|
88331
|
-
EligibleUserRemoved.fromObject = function fromObject(object) {
|
|
88332
|
-
if (object instanceof $root.EligibleUserRemoved)
|
|
88333
|
-
return object;
|
|
88334
|
-
var message = new $root.EligibleUserRemoved();
|
|
88335
|
-
if (object.workId != null)
|
|
88336
|
-
message.workId = String(object.workId);
|
|
88337
|
-
if (object.workEmail != null)
|
|
88338
|
-
message.workEmail = String(object.workEmail);
|
|
88339
|
-
if (object.b2bOrgId != null)
|
|
88340
|
-
message.b2bOrgId = object.b2bOrgId >>> 0;
|
|
88341
|
-
if (object.timestamp != null)
|
|
88342
|
-
if ($util.Long)
|
|
88343
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
88344
|
-
else if (typeof object.timestamp === "string")
|
|
88345
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
88346
|
-
else if (typeof object.timestamp === "number")
|
|
88347
|
-
message.timestamp = object.timestamp;
|
|
88348
|
-
else if (typeof object.timestamp === "object")
|
|
88349
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
88350
|
-
return message;
|
|
88351
|
-
};
|
|
88352
|
-
|
|
88353
|
-
/**
|
|
88354
|
-
* Creates a plain object from an EligibleUserRemoved message. Also converts values to other types if specified.
|
|
88355
|
-
* @function toObject
|
|
88356
|
-
* @memberof EligibleUserRemoved
|
|
88357
|
-
* @static
|
|
88358
|
-
* @param {EligibleUserRemoved} message EligibleUserRemoved
|
|
88359
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88360
|
-
* @returns {Object.<string,*>} Plain object
|
|
88361
|
-
*/
|
|
88362
|
-
EligibleUserRemoved.toObject = function toObject(message, options) {
|
|
88363
|
-
if (!options)
|
|
88364
|
-
options = {};
|
|
88365
|
-
var object = {};
|
|
88366
|
-
if (options.defaults) {
|
|
88367
|
-
object.workEmail = "";
|
|
88368
|
-
object.b2bOrgId = 0;
|
|
88369
|
-
if ($util.Long) {
|
|
88370
|
-
var long = new $util.Long(0, 0, true);
|
|
88371
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
88372
|
-
} else
|
|
88373
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
88374
|
-
object.workId = "";
|
|
88375
|
-
}
|
|
88376
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88377
|
-
object.workEmail = message.workEmail;
|
|
88378
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88379
|
-
object.b2bOrgId = message.b2bOrgId;
|
|
88380
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88381
|
-
if (typeof message.timestamp === "number")
|
|
88382
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
88383
|
-
else
|
|
88384
|
-
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;
|
|
88385
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88386
|
-
object.workId = message.workId;
|
|
88387
|
-
return object;
|
|
88388
|
-
};
|
|
88389
|
-
|
|
88390
|
-
/**
|
|
88391
|
-
* Converts this EligibleUserRemoved to JSON.
|
|
88392
|
-
* @function toJSON
|
|
88393
|
-
* @memberof EligibleUserRemoved
|
|
88394
|
-
* @instance
|
|
88395
|
-
* @returns {Object.<string,*>} JSON object
|
|
88396
|
-
*/
|
|
88397
|
-
EligibleUserRemoved.prototype.toJSON = function toJSON() {
|
|
88398
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88399
|
-
};
|
|
88400
|
-
|
|
88401
|
-
return EligibleUserRemoved;
|
|
88402
|
-
})();
|
|
88403
|
-
|
|
88404
|
-
$root.EligibleUserPurged = (function() {
|
|
88405
|
-
|
|
88406
|
-
/**
|
|
88407
|
-
* Properties of an EligibleUserPurged.
|
|
88408
|
-
* @name IEligibleUserPurged
|
|
88409
|
-
* @interface IEligibleUserPurged
|
|
88410
|
-
* @property {string|null} [workId] EligibleUserPurged workId
|
|
88411
|
-
* @property {string|null} [workEmail] EligibleUserPurged workEmail
|
|
88412
|
-
* @property {number|null} [b2bOrgId] EligibleUserPurged b2bOrgId
|
|
88413
|
-
* @property {number|Long|null} [timestamp] EligibleUserPurged timestamp
|
|
88414
|
-
*/
|
|
88415
|
-
|
|
88416
|
-
/**
|
|
88417
|
-
* Constructs a new EligibleUserPurged.
|
|
88418
|
-
* @name EligibleUserPurged
|
|
88419
|
-
* @classdesc Represents an EligibleUserPurged.
|
|
88420
|
-
* @implements IEligibleUserPurged
|
|
88421
|
-
* @constructor
|
|
88422
|
-
* @param {IEligibleUserPurged=} [properties] Properties to set
|
|
88423
|
-
*/
|
|
88424
|
-
function EligibleUserPurged(properties) {
|
|
88425
|
-
if (properties)
|
|
88426
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
88427
|
-
if (properties[keys[i]] != null)
|
|
88428
|
-
this[keys[i]] = properties[keys[i]];
|
|
88429
|
-
}
|
|
88430
|
-
|
|
88431
|
-
/**
|
|
88432
|
-
* EligibleUserPurged workId.
|
|
88433
|
-
* @member {string} workId
|
|
88434
|
-
* @memberof EligibleUserPurged
|
|
88435
|
-
* @instance
|
|
88436
|
-
*/
|
|
88437
|
-
EligibleUserPurged.prototype.workId = "";
|
|
88438
|
-
|
|
88439
|
-
/**
|
|
88440
|
-
* EligibleUserPurged workEmail.
|
|
88441
|
-
* @member {string} workEmail
|
|
88442
|
-
* @memberof EligibleUserPurged
|
|
88443
|
-
* @instance
|
|
88444
|
-
*/
|
|
88445
|
-
EligibleUserPurged.prototype.workEmail = "";
|
|
88446
|
-
|
|
88447
|
-
/**
|
|
88448
|
-
* EligibleUserPurged b2bOrgId.
|
|
88449
|
-
* @member {number} b2bOrgId
|
|
88450
|
-
* @memberof EligibleUserPurged
|
|
88451
|
-
* @instance
|
|
88452
|
-
*/
|
|
88453
|
-
EligibleUserPurged.prototype.b2bOrgId = 0;
|
|
88454
|
-
|
|
88455
|
-
/**
|
|
88456
|
-
* EligibleUserPurged timestamp.
|
|
88457
|
-
* @member {number|Long} timestamp
|
|
88458
|
-
* @memberof EligibleUserPurged
|
|
88459
|
-
* @instance
|
|
88460
|
-
*/
|
|
88461
|
-
EligibleUserPurged.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
88462
|
-
|
|
88463
|
-
/**
|
|
88464
|
-
* Creates a new EligibleUserPurged instance using the specified properties.
|
|
88465
|
-
* @function create
|
|
88466
|
-
* @memberof EligibleUserPurged
|
|
88467
|
-
* @static
|
|
88468
|
-
* @param {IEligibleUserPurged=} [properties] Properties to set
|
|
88469
|
-
* @returns {EligibleUserPurged} EligibleUserPurged instance
|
|
88470
|
-
*/
|
|
88471
|
-
EligibleUserPurged.create = function create(properties) {
|
|
88472
|
-
return new EligibleUserPurged(properties);
|
|
88473
|
-
};
|
|
88474
|
-
|
|
88475
|
-
/**
|
|
88476
|
-
* Encodes the specified EligibleUserPurged message. Does not implicitly {@link EligibleUserPurged.verify|verify} messages.
|
|
88477
|
-
* @function encode
|
|
88478
|
-
* @memberof EligibleUserPurged
|
|
88479
|
-
* @static
|
|
88480
|
-
* @param {IEligibleUserPurged} message EligibleUserPurged message or plain object to encode
|
|
88481
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88482
|
-
* @returns {$protobuf.Writer} Writer
|
|
88483
|
-
*/
|
|
88484
|
-
EligibleUserPurged.encode = function encode(message, writer) {
|
|
88485
|
-
if (!writer)
|
|
88486
|
-
writer = $Writer.create();
|
|
88487
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88488
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.workEmail);
|
|
88489
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88490
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.b2bOrgId);
|
|
88491
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88492
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
88493
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88494
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.workId);
|
|
88495
|
-
return writer;
|
|
88496
|
-
};
|
|
88497
|
-
|
|
88498
|
-
/**
|
|
88499
|
-
* Encodes the specified EligibleUserPurged message, length delimited. Does not implicitly {@link EligibleUserPurged.verify|verify} messages.
|
|
88500
|
-
* @function encodeDelimited
|
|
88501
|
-
* @memberof EligibleUserPurged
|
|
88502
|
-
* @static
|
|
88503
|
-
* @param {IEligibleUserPurged} message EligibleUserPurged message or plain object to encode
|
|
88504
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88505
|
-
* @returns {$protobuf.Writer} Writer
|
|
88506
|
-
*/
|
|
88507
|
-
EligibleUserPurged.encodeDelimited = function encodeDelimited(message, writer) {
|
|
88508
|
-
return this.encode(message, writer).ldelim();
|
|
88509
|
-
};
|
|
88510
|
-
|
|
88511
|
-
/**
|
|
88512
|
-
* Decodes an EligibleUserPurged message from the specified reader or buffer.
|
|
88513
|
-
* @function decode
|
|
88514
|
-
* @memberof EligibleUserPurged
|
|
88515
|
-
* @static
|
|
88516
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88517
|
-
* @param {number} [length] Message length if known beforehand
|
|
88518
|
-
* @returns {EligibleUserPurged} EligibleUserPurged
|
|
88519
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88520
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88521
|
-
*/
|
|
88522
|
-
EligibleUserPurged.decode = function decode(reader, length) {
|
|
88523
|
-
if (!(reader instanceof $Reader))
|
|
88524
|
-
reader = $Reader.create(reader);
|
|
88525
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibleUserPurged();
|
|
88526
|
-
while (reader.pos < end) {
|
|
88527
|
-
var tag = reader.uint32();
|
|
88528
|
-
switch (tag >>> 3) {
|
|
88529
|
-
case 4:
|
|
88530
|
-
message.workId = reader.string();
|
|
88531
|
-
break;
|
|
88532
|
-
case 1:
|
|
88533
|
-
message.workEmail = reader.string();
|
|
88534
|
-
break;
|
|
88535
|
-
case 2:
|
|
88536
|
-
message.b2bOrgId = reader.uint32();
|
|
88537
|
-
break;
|
|
88538
|
-
case 3:
|
|
88539
|
-
message.timestamp = reader.uint64();
|
|
88540
|
-
break;
|
|
88541
|
-
default:
|
|
88542
|
-
reader.skipType(tag & 7);
|
|
88543
|
-
break;
|
|
88544
|
-
}
|
|
88545
|
-
}
|
|
88546
|
-
return message;
|
|
88547
|
-
};
|
|
88548
|
-
|
|
88549
|
-
/**
|
|
88550
|
-
* Decodes an EligibleUserPurged message from the specified reader or buffer, length delimited.
|
|
88551
|
-
* @function decodeDelimited
|
|
88552
|
-
* @memberof EligibleUserPurged
|
|
88553
|
-
* @static
|
|
88554
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88555
|
-
* @returns {EligibleUserPurged} EligibleUserPurged
|
|
88556
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88557
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88558
|
-
*/
|
|
88559
|
-
EligibleUserPurged.decodeDelimited = function decodeDelimited(reader) {
|
|
88560
|
-
if (!(reader instanceof $Reader))
|
|
88561
|
-
reader = new $Reader(reader);
|
|
88562
|
-
return this.decode(reader, reader.uint32());
|
|
88563
|
-
};
|
|
88564
|
-
|
|
88565
|
-
/**
|
|
88566
|
-
* Verifies an EligibleUserPurged message.
|
|
88567
|
-
* @function verify
|
|
88568
|
-
* @memberof EligibleUserPurged
|
|
88569
|
-
* @static
|
|
88570
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
88571
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
88572
|
-
*/
|
|
88573
|
-
EligibleUserPurged.verify = function verify(message) {
|
|
88574
|
-
if (typeof message !== "object" || message === null)
|
|
88575
|
-
return "object expected";
|
|
88576
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88577
|
-
if (!$util.isString(message.workId))
|
|
88578
|
-
return "workId: string expected";
|
|
88579
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88580
|
-
if (!$util.isString(message.workEmail))
|
|
88581
|
-
return "workEmail: string expected";
|
|
88582
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88583
|
-
if (!$util.isInteger(message.b2bOrgId))
|
|
88584
|
-
return "b2bOrgId: integer expected";
|
|
88585
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88586
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
88587
|
-
return "timestamp: integer|Long expected";
|
|
88588
|
-
return null;
|
|
88589
|
-
};
|
|
88590
|
-
|
|
88591
|
-
/**
|
|
88592
|
-
* Creates an EligibleUserPurged message from a plain object. Also converts values to their respective internal types.
|
|
88593
|
-
* @function fromObject
|
|
88594
|
-
* @memberof EligibleUserPurged
|
|
88595
|
-
* @static
|
|
88596
|
-
* @param {Object.<string,*>} object Plain object
|
|
88597
|
-
* @returns {EligibleUserPurged} EligibleUserPurged
|
|
88598
|
-
*/
|
|
88599
|
-
EligibleUserPurged.fromObject = function fromObject(object) {
|
|
88600
|
-
if (object instanceof $root.EligibleUserPurged)
|
|
88601
|
-
return object;
|
|
88602
|
-
var message = new $root.EligibleUserPurged();
|
|
88603
|
-
if (object.workId != null)
|
|
88604
|
-
message.workId = String(object.workId);
|
|
88605
|
-
if (object.workEmail != null)
|
|
88606
|
-
message.workEmail = String(object.workEmail);
|
|
88607
|
-
if (object.b2bOrgId != null)
|
|
88608
|
-
message.b2bOrgId = object.b2bOrgId >>> 0;
|
|
88609
|
-
if (object.timestamp != null)
|
|
88610
|
-
if ($util.Long)
|
|
88611
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
88612
|
-
else if (typeof object.timestamp === "string")
|
|
88613
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
88614
|
-
else if (typeof object.timestamp === "number")
|
|
88615
|
-
message.timestamp = object.timestamp;
|
|
88616
|
-
else if (typeof object.timestamp === "object")
|
|
88617
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
88618
|
-
return message;
|
|
88619
|
-
};
|
|
88620
|
-
|
|
88621
|
-
/**
|
|
88622
|
-
* Creates a plain object from an EligibleUserPurged message. Also converts values to other types if specified.
|
|
88623
|
-
* @function toObject
|
|
88624
|
-
* @memberof EligibleUserPurged
|
|
88625
|
-
* @static
|
|
88626
|
-
* @param {EligibleUserPurged} message EligibleUserPurged
|
|
88627
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88628
|
-
* @returns {Object.<string,*>} Plain object
|
|
88629
|
-
*/
|
|
88630
|
-
EligibleUserPurged.toObject = function toObject(message, options) {
|
|
88631
|
-
if (!options)
|
|
88632
|
-
options = {};
|
|
88633
|
-
var object = {};
|
|
88634
|
-
if (options.defaults) {
|
|
88635
|
-
object.workEmail = "";
|
|
88636
|
-
object.b2bOrgId = 0;
|
|
88637
|
-
if ($util.Long) {
|
|
88638
|
-
var long = new $util.Long(0, 0, true);
|
|
88639
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
88640
|
-
} else
|
|
88641
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
88642
|
-
object.workId = "";
|
|
88643
|
-
}
|
|
88644
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88645
|
-
object.workEmail = message.workEmail;
|
|
88646
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88647
|
-
object.b2bOrgId = message.b2bOrgId;
|
|
88648
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88649
|
-
if (typeof message.timestamp === "number")
|
|
88650
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
88651
|
-
else
|
|
88652
|
-
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;
|
|
88653
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88654
|
-
object.workId = message.workId;
|
|
88655
|
-
return object;
|
|
88656
|
-
};
|
|
88657
|
-
|
|
88658
|
-
/**
|
|
88659
|
-
* Converts this EligibleUserPurged to JSON.
|
|
88660
|
-
* @function toJSON
|
|
88661
|
-
* @memberof EligibleUserPurged
|
|
88662
|
-
* @instance
|
|
88663
|
-
* @returns {Object.<string,*>} JSON object
|
|
88664
|
-
*/
|
|
88665
|
-
EligibleUserPurged.prototype.toJSON = function toJSON() {
|
|
88666
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88667
|
-
};
|
|
88668
|
-
|
|
88669
|
-
return EligibleUserPurged;
|
|
88670
|
-
})();
|
|
88671
|
-
|
|
88672
|
-
$root.EligibleUserAmended = (function() {
|
|
88673
|
-
|
|
88674
|
-
/**
|
|
88675
|
-
* Properties of an EligibleUserAmended.
|
|
88676
|
-
* @name IEligibleUserAmended
|
|
88677
|
-
* @interface IEligibleUserAmended
|
|
88678
|
-
* @property {string|null} [workId] EligibleUserAmended workId
|
|
88679
|
-
* @property {string|null} [workEmail] EligibleUserAmended workEmail
|
|
88680
|
-
* @property {string|null} [firstName] EligibleUserAmended firstName
|
|
88681
|
-
* @property {string|null} [lastName] EligibleUserAmended lastName
|
|
88682
|
-
* @property {b2b.MemberStatus|null} [b2bMemberStatus] EligibleUserAmended b2bMemberStatus
|
|
88683
|
-
* @property {number|null} [b2bOrgId] EligibleUserAmended b2bOrgId
|
|
88684
|
-
* @property {string|null} [b2bOrgName] EligibleUserAmended b2bOrgName
|
|
88685
|
-
* @property {string|null} [b2bOrgCampaignDisplayName] EligibleUserAmended b2bOrgCampaignDisplayName
|
|
88686
|
-
* @property {b2b.OrgMemberPlan|null} [b2bPlan] EligibleUserAmended b2bPlan
|
|
88687
|
-
* @property {boolean|null} [b2bIsPilot] EligibleUserAmended b2bIsPilot
|
|
88688
|
-
* @property {b2b.EnrollmentFlow|null} [b2bEnrollmentFlow] EligibleUserAmended b2bEnrollmentFlow
|
|
88689
|
-
* @property {string|null} [enrollmentUrl] EligibleUserAmended enrollmentUrl
|
|
88690
|
-
* @property {string|null} [b2bCustomFields] EligibleUserAmended b2bCustomFields
|
|
88691
|
-
* @property {number|Long|null} [timestamp] EligibleUserAmended timestamp
|
|
88692
|
-
* @property {number|Long|null} [b2bCampaignLaunchDate] EligibleUserAmended b2bCampaignLaunchDate
|
|
88693
|
-
* @property {string|null} [b2bCountry] EligibleUserAmended b2bCountry
|
|
88694
|
-
* @property {string|null} [b2bDepartment] EligibleUserAmended b2bDepartment
|
|
88695
|
-
* @property {string|null} [b2bLocation] EligibleUserAmended b2bLocation
|
|
88696
|
-
* @property {string|null} [dependentOf] EligibleUserAmended dependentOf
|
|
88697
|
-
*/
|
|
88698
|
-
|
|
88699
|
-
/**
|
|
88700
|
-
* Constructs a new EligibleUserAmended.
|
|
88701
|
-
* @name EligibleUserAmended
|
|
88702
|
-
* @classdesc Represents an EligibleUserAmended.
|
|
88703
|
-
* @implements IEligibleUserAmended
|
|
88704
|
-
* @constructor
|
|
88705
|
-
* @param {IEligibleUserAmended=} [properties] Properties to set
|
|
88706
|
-
*/
|
|
88707
|
-
function EligibleUserAmended(properties) {
|
|
88708
|
-
if (properties)
|
|
88709
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
88710
|
-
if (properties[keys[i]] != null)
|
|
88711
|
-
this[keys[i]] = properties[keys[i]];
|
|
88712
|
-
}
|
|
88713
|
-
|
|
88714
|
-
/**
|
|
88715
|
-
* EligibleUserAmended workId.
|
|
88716
|
-
* @member {string} workId
|
|
88717
|
-
* @memberof EligibleUserAmended
|
|
88718
|
-
* @instance
|
|
88719
|
-
*/
|
|
88720
|
-
EligibleUserAmended.prototype.workId = "";
|
|
88721
|
-
|
|
88722
|
-
/**
|
|
88723
|
-
* EligibleUserAmended workEmail.
|
|
88724
|
-
* @member {string} workEmail
|
|
88725
|
-
* @memberof EligibleUserAmended
|
|
88726
|
-
* @instance
|
|
88727
|
-
*/
|
|
88728
|
-
EligibleUserAmended.prototype.workEmail = "";
|
|
88729
|
-
|
|
88730
|
-
/**
|
|
88731
|
-
* EligibleUserAmended firstName.
|
|
88732
|
-
* @member {string} firstName
|
|
88733
|
-
* @memberof EligibleUserAmended
|
|
88734
|
-
* @instance
|
|
88735
|
-
*/
|
|
88736
|
-
EligibleUserAmended.prototype.firstName = "";
|
|
88737
|
-
|
|
88738
|
-
/**
|
|
88739
|
-
* EligibleUserAmended lastName.
|
|
88740
|
-
* @member {string} lastName
|
|
88741
|
-
* @memberof EligibleUserAmended
|
|
88742
|
-
* @instance
|
|
88743
|
-
*/
|
|
88744
|
-
EligibleUserAmended.prototype.lastName = "";
|
|
88745
|
-
|
|
88746
|
-
/**
|
|
88747
|
-
* EligibleUserAmended b2bMemberStatus.
|
|
88748
|
-
* @member {b2b.MemberStatus} b2bMemberStatus
|
|
88749
|
-
* @memberof EligibleUserAmended
|
|
88750
|
-
* @instance
|
|
88751
|
-
*/
|
|
88752
|
-
EligibleUserAmended.prototype.b2bMemberStatus = 0;
|
|
88753
|
-
|
|
88754
|
-
/**
|
|
88755
|
-
* EligibleUserAmended b2bOrgId.
|
|
88756
|
-
* @member {number} b2bOrgId
|
|
88757
|
-
* @memberof EligibleUserAmended
|
|
88758
|
-
* @instance
|
|
88759
|
-
*/
|
|
88760
|
-
EligibleUserAmended.prototype.b2bOrgId = 0;
|
|
88761
|
-
|
|
88762
|
-
/**
|
|
88763
|
-
* EligibleUserAmended b2bOrgName.
|
|
88764
|
-
* @member {string} b2bOrgName
|
|
88765
|
-
* @memberof EligibleUserAmended
|
|
88766
|
-
* @instance
|
|
88767
|
-
*/
|
|
88768
|
-
EligibleUserAmended.prototype.b2bOrgName = "";
|
|
88769
|
-
|
|
88770
|
-
/**
|
|
88771
|
-
* EligibleUserAmended b2bOrgCampaignDisplayName.
|
|
88772
|
-
* @member {string} b2bOrgCampaignDisplayName
|
|
88773
|
-
* @memberof EligibleUserAmended
|
|
88774
|
-
* @instance
|
|
88775
|
-
*/
|
|
88776
|
-
EligibleUserAmended.prototype.b2bOrgCampaignDisplayName = "";
|
|
88777
|
-
|
|
88778
|
-
/**
|
|
88779
|
-
* EligibleUserAmended b2bPlan.
|
|
88780
|
-
* @member {b2b.OrgMemberPlan} b2bPlan
|
|
88781
|
-
* @memberof EligibleUserAmended
|
|
88782
|
-
* @instance
|
|
88783
|
-
*/
|
|
88784
|
-
EligibleUserAmended.prototype.b2bPlan = 0;
|
|
88785
|
-
|
|
88786
|
-
/**
|
|
88787
|
-
* EligibleUserAmended b2bIsPilot.
|
|
88788
|
-
* @member {boolean} b2bIsPilot
|
|
88789
|
-
* @memberof EligibleUserAmended
|
|
88790
|
-
* @instance
|
|
88791
|
-
*/
|
|
88792
|
-
EligibleUserAmended.prototype.b2bIsPilot = false;
|
|
88793
|
-
|
|
88794
|
-
/**
|
|
88795
|
-
* EligibleUserAmended b2bEnrollmentFlow.
|
|
88796
|
-
* @member {b2b.EnrollmentFlow} b2bEnrollmentFlow
|
|
88797
|
-
* @memberof EligibleUserAmended
|
|
88798
|
-
* @instance
|
|
88799
|
-
*/
|
|
88800
|
-
EligibleUserAmended.prototype.b2bEnrollmentFlow = 0;
|
|
88801
|
-
|
|
88802
|
-
/**
|
|
88803
|
-
* EligibleUserAmended enrollmentUrl.
|
|
88804
|
-
* @member {string} enrollmentUrl
|
|
88805
|
-
* @memberof EligibleUserAmended
|
|
88806
|
-
* @instance
|
|
88807
|
-
*/
|
|
88808
|
-
EligibleUserAmended.prototype.enrollmentUrl = "";
|
|
88809
|
-
|
|
88810
|
-
/**
|
|
88811
|
-
* EligibleUserAmended b2bCustomFields.
|
|
88812
|
-
* @member {string} b2bCustomFields
|
|
88813
|
-
* @memberof EligibleUserAmended
|
|
88814
|
-
* @instance
|
|
88815
|
-
*/
|
|
88816
|
-
EligibleUserAmended.prototype.b2bCustomFields = "";
|
|
88817
|
-
|
|
88818
|
-
/**
|
|
88819
|
-
* EligibleUserAmended timestamp.
|
|
88820
|
-
* @member {number|Long} timestamp
|
|
88821
|
-
* @memberof EligibleUserAmended
|
|
88822
|
-
* @instance
|
|
88823
|
-
*/
|
|
88824
|
-
EligibleUserAmended.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
88825
|
-
|
|
88826
|
-
/**
|
|
88827
|
-
* EligibleUserAmended b2bCampaignLaunchDate.
|
|
88828
|
-
* @member {number|Long} b2bCampaignLaunchDate
|
|
88829
|
-
* @memberof EligibleUserAmended
|
|
88830
|
-
* @instance
|
|
88831
|
-
*/
|
|
88832
|
-
EligibleUserAmended.prototype.b2bCampaignLaunchDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
88833
|
-
|
|
88834
|
-
/**
|
|
88835
|
-
* EligibleUserAmended b2bCountry.
|
|
88836
|
-
* @member {string} b2bCountry
|
|
88837
|
-
* @memberof EligibleUserAmended
|
|
88838
|
-
* @instance
|
|
88839
|
-
*/
|
|
88840
|
-
EligibleUserAmended.prototype.b2bCountry = "";
|
|
88841
|
-
|
|
88842
|
-
/**
|
|
88843
|
-
* EligibleUserAmended b2bDepartment.
|
|
88844
|
-
* @member {string} b2bDepartment
|
|
88845
|
-
* @memberof EligibleUserAmended
|
|
88846
|
-
* @instance
|
|
88847
|
-
*/
|
|
88848
|
-
EligibleUserAmended.prototype.b2bDepartment = "";
|
|
88849
|
-
|
|
88850
|
-
/**
|
|
88851
|
-
* EligibleUserAmended b2bLocation.
|
|
88852
|
-
* @member {string} b2bLocation
|
|
88853
|
-
* @memberof EligibleUserAmended
|
|
88854
|
-
* @instance
|
|
88855
|
-
*/
|
|
88856
|
-
EligibleUserAmended.prototype.b2bLocation = "";
|
|
88857
|
-
|
|
88858
|
-
/**
|
|
88859
|
-
* EligibleUserAmended dependentOf.
|
|
88860
|
-
* @member {string} dependentOf
|
|
88861
|
-
* @memberof EligibleUserAmended
|
|
88862
|
-
* @instance
|
|
88863
|
-
*/
|
|
88864
|
-
EligibleUserAmended.prototype.dependentOf = "";
|
|
88865
|
-
|
|
88866
|
-
/**
|
|
88867
|
-
* Creates a new EligibleUserAmended instance using the specified properties.
|
|
88868
|
-
* @function create
|
|
88869
|
-
* @memberof EligibleUserAmended
|
|
88870
|
-
* @static
|
|
88871
|
-
* @param {IEligibleUserAmended=} [properties] Properties to set
|
|
88872
|
-
* @returns {EligibleUserAmended} EligibleUserAmended instance
|
|
88873
|
-
*/
|
|
88874
|
-
EligibleUserAmended.create = function create(properties) {
|
|
88875
|
-
return new EligibleUserAmended(properties);
|
|
88876
|
-
};
|
|
88877
|
-
|
|
88878
|
-
/**
|
|
88879
|
-
* Encodes the specified EligibleUserAmended message. Does not implicitly {@link EligibleUserAmended.verify|verify} messages.
|
|
88880
|
-
* @function encode
|
|
88881
|
-
* @memberof EligibleUserAmended
|
|
88882
|
-
* @static
|
|
88883
|
-
* @param {IEligibleUserAmended} message EligibleUserAmended message or plain object to encode
|
|
88884
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88885
|
-
* @returns {$protobuf.Writer} Writer
|
|
88886
|
-
*/
|
|
88887
|
-
EligibleUserAmended.encode = function encode(message, writer) {
|
|
88888
|
-
if (!writer)
|
|
88889
|
-
writer = $Writer.create();
|
|
88890
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
88891
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.workEmail);
|
|
88892
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
88893
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.firstName);
|
|
88894
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
88895
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.lastName);
|
|
88896
|
-
if (message.b2bMemberStatus != null && message.hasOwnProperty("b2bMemberStatus"))
|
|
88897
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.b2bMemberStatus);
|
|
88898
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
88899
|
-
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.b2bOrgId);
|
|
88900
|
-
if (message.b2bOrgName != null && message.hasOwnProperty("b2bOrgName"))
|
|
88901
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.b2bOrgName);
|
|
88902
|
-
if (message.b2bOrgCampaignDisplayName != null && message.hasOwnProperty("b2bOrgCampaignDisplayName"))
|
|
88903
|
-
writer.uint32(/* id 7, wireType 2 =*/58).string(message.b2bOrgCampaignDisplayName);
|
|
88904
|
-
if (message.b2bPlan != null && message.hasOwnProperty("b2bPlan"))
|
|
88905
|
-
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.b2bPlan);
|
|
88906
|
-
if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
|
|
88907
|
-
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.b2bIsPilot);
|
|
88908
|
-
if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
|
|
88909
|
-
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.b2bEnrollmentFlow);
|
|
88910
|
-
if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
|
|
88911
|
-
writer.uint32(/* id 11, wireType 2 =*/90).string(message.enrollmentUrl);
|
|
88912
|
-
if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
|
|
88913
|
-
writer.uint32(/* id 12, wireType 2 =*/98).string(message.b2bCustomFields);
|
|
88914
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88915
|
-
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.timestamp);
|
|
88916
|
-
if (message.b2bCampaignLaunchDate != null && message.hasOwnProperty("b2bCampaignLaunchDate"))
|
|
88917
|
-
writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.b2bCampaignLaunchDate);
|
|
88918
|
-
if (message.b2bCountry != null && message.hasOwnProperty("b2bCountry"))
|
|
88919
|
-
writer.uint32(/* id 15, wireType 2 =*/122).string(message.b2bCountry);
|
|
88920
|
-
if (message.b2bDepartment != null && message.hasOwnProperty("b2bDepartment"))
|
|
88921
|
-
writer.uint32(/* id 16, wireType 2 =*/130).string(message.b2bDepartment);
|
|
88922
|
-
if (message.b2bLocation != null && message.hasOwnProperty("b2bLocation"))
|
|
88923
|
-
writer.uint32(/* id 17, wireType 2 =*/138).string(message.b2bLocation);
|
|
88924
|
-
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
88925
|
-
writer.uint32(/* id 18, wireType 2 =*/146).string(message.dependentOf);
|
|
88926
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
88927
|
-
writer.uint32(/* id 19, wireType 2 =*/154).string(message.workId);
|
|
88928
|
-
return writer;
|
|
88929
|
-
};
|
|
88930
|
-
|
|
88931
|
-
/**
|
|
88932
|
-
* Encodes the specified EligibleUserAmended message, length delimited. Does not implicitly {@link EligibleUserAmended.verify|verify} messages.
|
|
88933
|
-
* @function encodeDelimited
|
|
88934
|
-
* @memberof EligibleUserAmended
|
|
88935
|
-
* @static
|
|
88936
|
-
* @param {IEligibleUserAmended} message EligibleUserAmended message or plain object to encode
|
|
88937
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88938
|
-
* @returns {$protobuf.Writer} Writer
|
|
88939
|
-
*/
|
|
88940
|
-
EligibleUserAmended.encodeDelimited = function encodeDelimited(message, writer) {
|
|
88941
|
-
return this.encode(message, writer).ldelim();
|
|
88942
|
-
};
|
|
88943
|
-
|
|
88944
|
-
/**
|
|
88945
|
-
* Decodes an EligibleUserAmended message from the specified reader or buffer.
|
|
88946
|
-
* @function decode
|
|
88947
|
-
* @memberof EligibleUserAmended
|
|
88948
|
-
* @static
|
|
88949
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88950
|
-
* @param {number} [length] Message length if known beforehand
|
|
88951
|
-
* @returns {EligibleUserAmended} EligibleUserAmended
|
|
88952
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88953
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88954
|
-
*/
|
|
88955
|
-
EligibleUserAmended.decode = function decode(reader, length) {
|
|
88956
|
-
if (!(reader instanceof $Reader))
|
|
88957
|
-
reader = $Reader.create(reader);
|
|
88958
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibleUserAmended();
|
|
88959
|
-
while (reader.pos < end) {
|
|
88960
|
-
var tag = reader.uint32();
|
|
88961
|
-
switch (tag >>> 3) {
|
|
88962
|
-
case 19:
|
|
88963
|
-
message.workId = reader.string();
|
|
88964
|
-
break;
|
|
88965
|
-
case 1:
|
|
88966
|
-
message.workEmail = reader.string();
|
|
88967
|
-
break;
|
|
88968
|
-
case 2:
|
|
88969
|
-
message.firstName = reader.string();
|
|
88970
|
-
break;
|
|
88971
|
-
case 3:
|
|
88972
|
-
message.lastName = reader.string();
|
|
88973
|
-
break;
|
|
88974
|
-
case 4:
|
|
88975
|
-
message.b2bMemberStatus = reader.int32();
|
|
88976
|
-
break;
|
|
88977
|
-
case 5:
|
|
88978
|
-
message.b2bOrgId = reader.uint32();
|
|
88979
|
-
break;
|
|
88980
|
-
case 6:
|
|
88981
|
-
message.b2bOrgName = reader.string();
|
|
88982
|
-
break;
|
|
88983
|
-
case 7:
|
|
88984
|
-
message.b2bOrgCampaignDisplayName = reader.string();
|
|
88985
|
-
break;
|
|
88986
|
-
case 8:
|
|
88987
|
-
message.b2bPlan = reader.int32();
|
|
88988
|
-
break;
|
|
88989
|
-
case 9:
|
|
88990
|
-
message.b2bIsPilot = reader.bool();
|
|
88991
|
-
break;
|
|
88992
|
-
case 10:
|
|
88993
|
-
message.b2bEnrollmentFlow = reader.int32();
|
|
88994
|
-
break;
|
|
88995
|
-
case 11:
|
|
88996
|
-
message.enrollmentUrl = reader.string();
|
|
88997
|
-
break;
|
|
88998
|
-
case 12:
|
|
88999
|
-
message.b2bCustomFields = reader.string();
|
|
89000
|
-
break;
|
|
89001
|
-
case 13:
|
|
89002
|
-
message.timestamp = reader.uint64();
|
|
89003
|
-
break;
|
|
89004
|
-
case 14:
|
|
89005
|
-
message.b2bCampaignLaunchDate = reader.uint64();
|
|
89006
|
-
break;
|
|
89007
|
-
case 15:
|
|
89008
|
-
message.b2bCountry = reader.string();
|
|
89009
|
-
break;
|
|
89010
|
-
case 16:
|
|
89011
|
-
message.b2bDepartment = reader.string();
|
|
89012
|
-
break;
|
|
89013
|
-
case 17:
|
|
89014
|
-
message.b2bLocation = reader.string();
|
|
89015
|
-
break;
|
|
89016
|
-
case 18:
|
|
89017
|
-
message.dependentOf = reader.string();
|
|
89018
|
-
break;
|
|
89019
|
-
default:
|
|
89020
|
-
reader.skipType(tag & 7);
|
|
89021
|
-
break;
|
|
89022
|
-
}
|
|
89023
|
-
}
|
|
89024
|
-
return message;
|
|
89025
|
-
};
|
|
89026
|
-
|
|
89027
|
-
/**
|
|
89028
|
-
* Decodes an EligibleUserAmended message from the specified reader or buffer, length delimited.
|
|
89029
|
-
* @function decodeDelimited
|
|
89030
|
-
* @memberof EligibleUserAmended
|
|
89031
|
-
* @static
|
|
89032
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
89033
|
-
* @returns {EligibleUserAmended} EligibleUserAmended
|
|
89034
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
89035
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
89036
|
-
*/
|
|
89037
|
-
EligibleUserAmended.decodeDelimited = function decodeDelimited(reader) {
|
|
89038
|
-
if (!(reader instanceof $Reader))
|
|
89039
|
-
reader = new $Reader(reader);
|
|
89040
|
-
return this.decode(reader, reader.uint32());
|
|
89041
|
-
};
|
|
89042
|
-
|
|
89043
|
-
/**
|
|
89044
|
-
* Verifies an EligibleUserAmended message.
|
|
89045
|
-
* @function verify
|
|
89046
|
-
* @memberof EligibleUserAmended
|
|
89047
|
-
* @static
|
|
89048
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
89049
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
89050
|
-
*/
|
|
89051
|
-
EligibleUserAmended.verify = function verify(message) {
|
|
89052
|
-
if (typeof message !== "object" || message === null)
|
|
89053
|
-
return "object expected";
|
|
89054
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
89055
|
-
if (!$util.isString(message.workId))
|
|
89056
|
-
return "workId: string expected";
|
|
89057
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
89058
|
-
if (!$util.isString(message.workEmail))
|
|
89059
|
-
return "workEmail: string expected";
|
|
89060
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
89061
|
-
if (!$util.isString(message.firstName))
|
|
89062
|
-
return "firstName: string expected";
|
|
89063
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
89064
|
-
if (!$util.isString(message.lastName))
|
|
89065
|
-
return "lastName: string expected";
|
|
89066
|
-
if (message.b2bMemberStatus != null && message.hasOwnProperty("b2bMemberStatus"))
|
|
89067
|
-
switch (message.b2bMemberStatus) {
|
|
89068
|
-
default:
|
|
89069
|
-
return "b2bMemberStatus: enum value expected";
|
|
89070
|
-
case 0:
|
|
89071
|
-
case 1:
|
|
89072
|
-
case 2:
|
|
89073
|
-
case 3:
|
|
89074
|
-
case 4:
|
|
89075
|
-
case 5:
|
|
89076
|
-
case 6:
|
|
89077
|
-
break;
|
|
89078
|
-
}
|
|
89079
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
89080
|
-
if (!$util.isInteger(message.b2bOrgId))
|
|
89081
|
-
return "b2bOrgId: integer expected";
|
|
89082
|
-
if (message.b2bOrgName != null && message.hasOwnProperty("b2bOrgName"))
|
|
89083
|
-
if (!$util.isString(message.b2bOrgName))
|
|
89084
|
-
return "b2bOrgName: string expected";
|
|
89085
|
-
if (message.b2bOrgCampaignDisplayName != null && message.hasOwnProperty("b2bOrgCampaignDisplayName"))
|
|
89086
|
-
if (!$util.isString(message.b2bOrgCampaignDisplayName))
|
|
89087
|
-
return "b2bOrgCampaignDisplayName: string expected";
|
|
89088
|
-
if (message.b2bPlan != null && message.hasOwnProperty("b2bPlan"))
|
|
89089
|
-
switch (message.b2bPlan) {
|
|
89090
|
-
default:
|
|
89091
|
-
return "b2bPlan: enum value expected";
|
|
89092
|
-
case 0:
|
|
89093
|
-
case 1:
|
|
89094
|
-
case 2:
|
|
89095
|
-
break;
|
|
89096
|
-
}
|
|
89097
|
-
if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
|
|
89098
|
-
if (typeof message.b2bIsPilot !== "boolean")
|
|
89099
|
-
return "b2bIsPilot: boolean expected";
|
|
89100
|
-
if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
|
|
89101
|
-
switch (message.b2bEnrollmentFlow) {
|
|
89102
|
-
default:
|
|
89103
|
-
return "b2bEnrollmentFlow: enum value expected";
|
|
89104
|
-
case 0:
|
|
89105
|
-
case 1:
|
|
89106
|
-
case 2:
|
|
89107
|
-
case 3:
|
|
89108
|
-
case 4:
|
|
89109
|
-
case 5:
|
|
89110
|
-
break;
|
|
89111
|
-
}
|
|
89112
|
-
if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
|
|
89113
|
-
if (!$util.isString(message.enrollmentUrl))
|
|
89114
|
-
return "enrollmentUrl: string expected";
|
|
89115
|
-
if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
|
|
89116
|
-
if (!$util.isString(message.b2bCustomFields))
|
|
89117
|
-
return "b2bCustomFields: string expected";
|
|
89118
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
89119
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
89120
|
-
return "timestamp: integer|Long expected";
|
|
89121
|
-
if (message.b2bCampaignLaunchDate != null && message.hasOwnProperty("b2bCampaignLaunchDate"))
|
|
89122
|
-
if (!$util.isInteger(message.b2bCampaignLaunchDate) && !(message.b2bCampaignLaunchDate && $util.isInteger(message.b2bCampaignLaunchDate.low) && $util.isInteger(message.b2bCampaignLaunchDate.high)))
|
|
89123
|
-
return "b2bCampaignLaunchDate: integer|Long expected";
|
|
89124
|
-
if (message.b2bCountry != null && message.hasOwnProperty("b2bCountry"))
|
|
89125
|
-
if (!$util.isString(message.b2bCountry))
|
|
89126
|
-
return "b2bCountry: string expected";
|
|
89127
|
-
if (message.b2bDepartment != null && message.hasOwnProperty("b2bDepartment"))
|
|
89128
|
-
if (!$util.isString(message.b2bDepartment))
|
|
89129
|
-
return "b2bDepartment: string expected";
|
|
89130
|
-
if (message.b2bLocation != null && message.hasOwnProperty("b2bLocation"))
|
|
89131
|
-
if (!$util.isString(message.b2bLocation))
|
|
89132
|
-
return "b2bLocation: string expected";
|
|
89133
|
-
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
89134
|
-
if (!$util.isString(message.dependentOf))
|
|
89135
|
-
return "dependentOf: string expected";
|
|
89136
|
-
return null;
|
|
89137
|
-
};
|
|
89138
|
-
|
|
89139
|
-
/**
|
|
89140
|
-
* Creates an EligibleUserAmended message from a plain object. Also converts values to their respective internal types.
|
|
89141
|
-
* @function fromObject
|
|
89142
|
-
* @memberof EligibleUserAmended
|
|
89143
|
-
* @static
|
|
89144
|
-
* @param {Object.<string,*>} object Plain object
|
|
89145
|
-
* @returns {EligibleUserAmended} EligibleUserAmended
|
|
89146
|
-
*/
|
|
89147
|
-
EligibleUserAmended.fromObject = function fromObject(object) {
|
|
89148
|
-
if (object instanceof $root.EligibleUserAmended)
|
|
89149
|
-
return object;
|
|
89150
|
-
var message = new $root.EligibleUserAmended();
|
|
89151
|
-
if (object.workId != null)
|
|
89152
|
-
message.workId = String(object.workId);
|
|
89153
|
-
if (object.workEmail != null)
|
|
89154
|
-
message.workEmail = String(object.workEmail);
|
|
89155
|
-
if (object.firstName != null)
|
|
89156
|
-
message.firstName = String(object.firstName);
|
|
89157
|
-
if (object.lastName != null)
|
|
89158
|
-
message.lastName = String(object.lastName);
|
|
89159
|
-
switch (object.b2bMemberStatus) {
|
|
89160
|
-
case "PENDING":
|
|
89161
|
-
case 0:
|
|
89162
|
-
message.b2bMemberStatus = 0;
|
|
89163
|
-
break;
|
|
89164
|
-
case "ORPHAN":
|
|
89165
|
-
case 1:
|
|
89166
|
-
message.b2bMemberStatus = 1;
|
|
89167
|
-
break;
|
|
89168
|
-
case "ACTIVE":
|
|
89169
|
-
case 2:
|
|
89170
|
-
message.b2bMemberStatus = 2;
|
|
89171
|
-
break;
|
|
89172
|
-
case "REMOVED":
|
|
89173
|
-
case 3:
|
|
89174
|
-
message.b2bMemberStatus = 3;
|
|
89175
|
-
break;
|
|
89176
|
-
case "EXPIRED":
|
|
89177
|
-
case 4:
|
|
89178
|
-
message.b2bMemberStatus = 4;
|
|
89179
|
-
break;
|
|
89180
|
-
case "ELIGIBLE":
|
|
89181
|
-
case 5:
|
|
89182
|
-
message.b2bMemberStatus = 5;
|
|
89183
|
-
break;
|
|
89184
|
-
case "PENDING_REMOVAL":
|
|
89185
|
-
case 6:
|
|
89186
|
-
message.b2bMemberStatus = 6;
|
|
89187
|
-
break;
|
|
89188
|
-
}
|
|
89189
|
-
if (object.b2bOrgId != null)
|
|
89190
|
-
message.b2bOrgId = object.b2bOrgId >>> 0;
|
|
89191
|
-
if (object.b2bOrgName != null)
|
|
89192
|
-
message.b2bOrgName = String(object.b2bOrgName);
|
|
89193
|
-
if (object.b2bOrgCampaignDisplayName != null)
|
|
89194
|
-
message.b2bOrgCampaignDisplayName = String(object.b2bOrgCampaignDisplayName);
|
|
89195
|
-
switch (object.b2bPlan) {
|
|
89196
|
-
case "ORGPLAN_UNKNOWN":
|
|
89197
|
-
case 0:
|
|
89198
|
-
message.b2bPlan = 0;
|
|
89199
|
-
break;
|
|
89200
|
-
case "ORGPLAN_B2B":
|
|
89201
|
-
case 1:
|
|
89202
|
-
message.b2bPlan = 1;
|
|
89203
|
-
break;
|
|
89204
|
-
case "ORGPLAN_B2B_FAMILY_PLAN":
|
|
89205
|
-
case 2:
|
|
89206
|
-
message.b2bPlan = 2;
|
|
89207
|
-
break;
|
|
89208
|
-
}
|
|
89209
|
-
if (object.b2bIsPilot != null)
|
|
89210
|
-
message.b2bIsPilot = Boolean(object.b2bIsPilot);
|
|
89211
|
-
switch (object.b2bEnrollmentFlow) {
|
|
89212
|
-
case "ENROLLMENT_FLOW_UNKNOWN":
|
|
89213
|
-
case 0:
|
|
89214
|
-
message.b2bEnrollmentFlow = 0;
|
|
89215
|
-
break;
|
|
89216
|
-
case "ENROLLMENT_FLOW_HEADSPACE":
|
|
89217
|
-
case 1:
|
|
89218
|
-
message.b2bEnrollmentFlow = 1;
|
|
89219
|
-
break;
|
|
89220
|
-
case "ENROLLMENT_FLOW_CONNECTED":
|
|
89221
|
-
case 2:
|
|
89222
|
-
message.b2bEnrollmentFlow = 2;
|
|
89223
|
-
break;
|
|
89224
|
-
case "ENROLLMENT_FLOW_UMD":
|
|
89225
|
-
case 3:
|
|
89226
|
-
message.b2bEnrollmentFlow = 3;
|
|
89227
|
-
break;
|
|
89228
|
-
case "ENROLLMENT_FLOW_FUSION":
|
|
89229
|
-
case 4:
|
|
89230
|
-
message.b2bEnrollmentFlow = 4;
|
|
89231
|
-
break;
|
|
89232
|
-
case "ENROLLMENT_FLOW_GINGER":
|
|
89233
|
-
case 5:
|
|
89234
|
-
message.b2bEnrollmentFlow = 5;
|
|
89235
|
-
break;
|
|
89236
|
-
}
|
|
89237
|
-
if (object.enrollmentUrl != null)
|
|
89238
|
-
message.enrollmentUrl = String(object.enrollmentUrl);
|
|
89239
|
-
if (object.b2bCustomFields != null)
|
|
89240
|
-
message.b2bCustomFields = String(object.b2bCustomFields);
|
|
89241
|
-
if (object.timestamp != null)
|
|
89242
|
-
if ($util.Long)
|
|
89243
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
89244
|
-
else if (typeof object.timestamp === "string")
|
|
89245
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
89246
|
-
else if (typeof object.timestamp === "number")
|
|
89247
|
-
message.timestamp = object.timestamp;
|
|
89248
|
-
else if (typeof object.timestamp === "object")
|
|
89249
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
89250
|
-
if (object.b2bCampaignLaunchDate != null)
|
|
89251
|
-
if ($util.Long)
|
|
89252
|
-
(message.b2bCampaignLaunchDate = $util.Long.fromValue(object.b2bCampaignLaunchDate)).unsigned = true;
|
|
89253
|
-
else if (typeof object.b2bCampaignLaunchDate === "string")
|
|
89254
|
-
message.b2bCampaignLaunchDate = parseInt(object.b2bCampaignLaunchDate, 10);
|
|
89255
|
-
else if (typeof object.b2bCampaignLaunchDate === "number")
|
|
89256
|
-
message.b2bCampaignLaunchDate = object.b2bCampaignLaunchDate;
|
|
89257
|
-
else if (typeof object.b2bCampaignLaunchDate === "object")
|
|
89258
|
-
message.b2bCampaignLaunchDate = new $util.LongBits(object.b2bCampaignLaunchDate.low >>> 0, object.b2bCampaignLaunchDate.high >>> 0).toNumber(true);
|
|
89259
|
-
if (object.b2bCountry != null)
|
|
89260
|
-
message.b2bCountry = String(object.b2bCountry);
|
|
89261
|
-
if (object.b2bDepartment != null)
|
|
89262
|
-
message.b2bDepartment = String(object.b2bDepartment);
|
|
89263
|
-
if (object.b2bLocation != null)
|
|
89264
|
-
message.b2bLocation = String(object.b2bLocation);
|
|
89265
|
-
if (object.dependentOf != null)
|
|
89266
|
-
message.dependentOf = String(object.dependentOf);
|
|
89267
|
-
return message;
|
|
89268
|
-
};
|
|
89269
|
-
|
|
89270
|
-
/**
|
|
89271
|
-
* Creates a plain object from an EligibleUserAmended message. Also converts values to other types if specified.
|
|
89272
|
-
* @function toObject
|
|
89273
|
-
* @memberof EligibleUserAmended
|
|
89274
|
-
* @static
|
|
89275
|
-
* @param {EligibleUserAmended} message EligibleUserAmended
|
|
89276
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
89277
|
-
* @returns {Object.<string,*>} Plain object
|
|
89278
|
-
*/
|
|
89279
|
-
EligibleUserAmended.toObject = function toObject(message, options) {
|
|
89280
|
-
if (!options)
|
|
89281
|
-
options = {};
|
|
89282
|
-
var object = {};
|
|
89283
|
-
if (options.defaults) {
|
|
89284
|
-
object.workEmail = "";
|
|
89285
|
-
object.firstName = "";
|
|
89286
|
-
object.lastName = "";
|
|
89287
|
-
object.b2bMemberStatus = options.enums === String ? "PENDING" : 0;
|
|
89288
|
-
object.b2bOrgId = 0;
|
|
89289
|
-
object.b2bOrgName = "";
|
|
89290
|
-
object.b2bOrgCampaignDisplayName = "";
|
|
89291
|
-
object.b2bPlan = options.enums === String ? "ORGPLAN_UNKNOWN" : 0;
|
|
89292
|
-
object.b2bIsPilot = false;
|
|
89293
|
-
object.b2bEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
89294
|
-
object.enrollmentUrl = "";
|
|
89295
|
-
object.b2bCustomFields = "";
|
|
89296
|
-
if ($util.Long) {
|
|
89297
|
-
var long = new $util.Long(0, 0, true);
|
|
89298
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
89299
|
-
} else
|
|
89300
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
89301
|
-
if ($util.Long) {
|
|
89302
|
-
var long = new $util.Long(0, 0, true);
|
|
89303
|
-
object.b2bCampaignLaunchDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
89304
|
-
} else
|
|
89305
|
-
object.b2bCampaignLaunchDate = options.longs === String ? "0" : 0;
|
|
89306
|
-
object.b2bCountry = "";
|
|
89307
|
-
object.b2bDepartment = "";
|
|
89308
|
-
object.b2bLocation = "";
|
|
89309
|
-
object.dependentOf = "";
|
|
89310
|
-
object.workId = "";
|
|
89311
|
-
}
|
|
89312
|
-
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
89313
|
-
object.workEmail = message.workEmail;
|
|
89314
|
-
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
89315
|
-
object.firstName = message.firstName;
|
|
89316
|
-
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
89317
|
-
object.lastName = message.lastName;
|
|
89318
|
-
if (message.b2bMemberStatus != null && message.hasOwnProperty("b2bMemberStatus"))
|
|
89319
|
-
object.b2bMemberStatus = options.enums === String ? $root.b2b.MemberStatus[message.b2bMemberStatus] : message.b2bMemberStatus;
|
|
89320
|
-
if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
|
|
89321
|
-
object.b2bOrgId = message.b2bOrgId;
|
|
89322
|
-
if (message.b2bOrgName != null && message.hasOwnProperty("b2bOrgName"))
|
|
89323
|
-
object.b2bOrgName = message.b2bOrgName;
|
|
89324
|
-
if (message.b2bOrgCampaignDisplayName != null && message.hasOwnProperty("b2bOrgCampaignDisplayName"))
|
|
89325
|
-
object.b2bOrgCampaignDisplayName = message.b2bOrgCampaignDisplayName;
|
|
89326
|
-
if (message.b2bPlan != null && message.hasOwnProperty("b2bPlan"))
|
|
89327
|
-
object.b2bPlan = options.enums === String ? $root.b2b.OrgMemberPlan[message.b2bPlan] : message.b2bPlan;
|
|
89328
|
-
if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
|
|
89329
|
-
object.b2bIsPilot = message.b2bIsPilot;
|
|
89330
|
-
if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
|
|
89331
|
-
object.b2bEnrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.b2bEnrollmentFlow] : message.b2bEnrollmentFlow;
|
|
89332
|
-
if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
|
|
89333
|
-
object.enrollmentUrl = message.enrollmentUrl;
|
|
89334
|
-
if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
|
|
89335
|
-
object.b2bCustomFields = message.b2bCustomFields;
|
|
89336
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
89337
|
-
if (typeof message.timestamp === "number")
|
|
89338
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
89339
|
-
else
|
|
89340
|
-
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;
|
|
89341
|
-
if (message.b2bCampaignLaunchDate != null && message.hasOwnProperty("b2bCampaignLaunchDate"))
|
|
89342
|
-
if (typeof message.b2bCampaignLaunchDate === "number")
|
|
89343
|
-
object.b2bCampaignLaunchDate = options.longs === String ? String(message.b2bCampaignLaunchDate) : message.b2bCampaignLaunchDate;
|
|
89344
|
-
else
|
|
89345
|
-
object.b2bCampaignLaunchDate = options.longs === String ? $util.Long.prototype.toString.call(message.b2bCampaignLaunchDate) : options.longs === Number ? new $util.LongBits(message.b2bCampaignLaunchDate.low >>> 0, message.b2bCampaignLaunchDate.high >>> 0).toNumber(true) : message.b2bCampaignLaunchDate;
|
|
89346
|
-
if (message.b2bCountry != null && message.hasOwnProperty("b2bCountry"))
|
|
89347
|
-
object.b2bCountry = message.b2bCountry;
|
|
89348
|
-
if (message.b2bDepartment != null && message.hasOwnProperty("b2bDepartment"))
|
|
89349
|
-
object.b2bDepartment = message.b2bDepartment;
|
|
89350
|
-
if (message.b2bLocation != null && message.hasOwnProperty("b2bLocation"))
|
|
89351
|
-
object.b2bLocation = message.b2bLocation;
|
|
89352
|
-
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
89353
|
-
object.dependentOf = message.dependentOf;
|
|
89354
|
-
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
89355
|
-
object.workId = message.workId;
|
|
89356
|
-
return object;
|
|
89357
|
-
};
|
|
89358
|
-
|
|
89359
|
-
/**
|
|
89360
|
-
* Converts this EligibleUserAmended to JSON.
|
|
89361
|
-
* @function toJSON
|
|
89362
|
-
* @memberof EligibleUserAmended
|
|
89363
|
-
* @instance
|
|
89364
|
-
* @returns {Object.<string,*>} JSON object
|
|
89365
|
-
*/
|
|
89366
|
-
EligibleUserAmended.prototype.toJSON = function toJSON() {
|
|
89367
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
89368
|
-
};
|
|
89369
|
-
|
|
89370
|
-
return EligibleUserAmended;
|
|
89371
|
-
})();
|
|
89372
|
-
|
|
89373
87413
|
$root.Email = (function() {
|
|
89374
87414
|
|
|
89375
87415
|
/**
|
|
@@ -112550,6 +110590,7 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112550
110590
|
* @property {string|null} [lastName] GingerMemberUpgraded lastName
|
|
112551
110591
|
* @property {b2b.EnrollmentFlow|null} [priorEnrollmentFlow] GingerMemberUpgraded priorEnrollmentFlow
|
|
112552
110592
|
* @property {b2b.EnrollmentFlow|null} [enrollmentFlow] GingerMemberUpgraded enrollmentFlow
|
|
110593
|
+
* @property {number|null} [b2bRootOrgId] GingerMemberUpgraded b2bRootOrgId
|
|
112553
110594
|
*/
|
|
112554
110595
|
|
|
112555
110596
|
/**
|
|
@@ -112649,6 +110690,14 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112649
110690
|
*/
|
|
112650
110691
|
GingerMemberUpgraded.prototype.enrollmentFlow = 0;
|
|
112651
110692
|
|
|
110693
|
+
/**
|
|
110694
|
+
* GingerMemberUpgraded b2bRootOrgId.
|
|
110695
|
+
* @member {number} b2bRootOrgId
|
|
110696
|
+
* @memberof GingerMemberUpgraded
|
|
110697
|
+
* @instance
|
|
110698
|
+
*/
|
|
110699
|
+
GingerMemberUpgraded.prototype.b2bRootOrgId = 0;
|
|
110700
|
+
|
|
112652
110701
|
/**
|
|
112653
110702
|
* Creates a new GingerMemberUpgraded instance using the specified properties.
|
|
112654
110703
|
* @function create
|
|
@@ -112693,6 +110742,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112693
110742
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.priorEnrollmentFlow);
|
|
112694
110743
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
112695
110744
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.enrollmentFlow);
|
|
110745
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
110746
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.b2bRootOrgId);
|
|
112696
110747
|
return writer;
|
|
112697
110748
|
};
|
|
112698
110749
|
|
|
@@ -112757,6 +110808,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112757
110808
|
case 10:
|
|
112758
110809
|
message.enrollmentFlow = reader.int32();
|
|
112759
110810
|
break;
|
|
110811
|
+
case 11:
|
|
110812
|
+
message.b2bRootOrgId = reader.uint32();
|
|
110813
|
+
break;
|
|
112760
110814
|
default:
|
|
112761
110815
|
reader.skipType(tag & 7);
|
|
112762
110816
|
break;
|
|
@@ -112840,6 +110894,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112840
110894
|
case 5:
|
|
112841
110895
|
break;
|
|
112842
110896
|
}
|
|
110897
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
110898
|
+
if (!$util.isInteger(message.b2bRootOrgId))
|
|
110899
|
+
return "b2bRootOrgId: integer expected";
|
|
112843
110900
|
return null;
|
|
112844
110901
|
};
|
|
112845
110902
|
|
|
@@ -112923,6 +110980,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112923
110980
|
message.enrollmentFlow = 5;
|
|
112924
110981
|
break;
|
|
112925
110982
|
}
|
|
110983
|
+
if (object.b2bRootOrgId != null)
|
|
110984
|
+
message.b2bRootOrgId = object.b2bRootOrgId >>> 0;
|
|
112926
110985
|
return message;
|
|
112927
110986
|
};
|
|
112928
110987
|
|
|
@@ -112950,6 +111009,7 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112950
111009
|
object.lastName = "";
|
|
112951
111010
|
object.priorEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
112952
111011
|
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
111012
|
+
object.b2bRootOrgId = 0;
|
|
112953
111013
|
}
|
|
112954
111014
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
112955
111015
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -112971,6 +111031,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
112971
111031
|
object.priorEnrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.priorEnrollmentFlow] : message.priorEnrollmentFlow;
|
|
112972
111032
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
112973
111033
|
object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
|
|
111034
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
111035
|
+
object.b2bRootOrgId = message.b2bRootOrgId;
|
|
112974
111036
|
return object;
|
|
112975
111037
|
};
|
|
112976
111038
|
|
|
@@ -113004,6 +111066,7 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113004
111066
|
* @property {string|null} [email] GingerDependentUpgraded email
|
|
113005
111067
|
* @property {b2b.EnrollmentFlow|null} [priorEnrollmentFlow] GingerDependentUpgraded priorEnrollmentFlow
|
|
113006
111068
|
* @property {b2b.EnrollmentFlow|null} [enrollmentFlow] GingerDependentUpgraded enrollmentFlow
|
|
111069
|
+
* @property {number|null} [b2bRootOrgId] GingerDependentUpgraded b2bRootOrgId
|
|
113007
111070
|
*/
|
|
113008
111071
|
|
|
113009
111072
|
/**
|
|
@@ -113103,6 +111166,14 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113103
111166
|
*/
|
|
113104
111167
|
GingerDependentUpgraded.prototype.enrollmentFlow = 0;
|
|
113105
111168
|
|
|
111169
|
+
/**
|
|
111170
|
+
* GingerDependentUpgraded b2bRootOrgId.
|
|
111171
|
+
* @member {number} b2bRootOrgId
|
|
111172
|
+
* @memberof GingerDependentUpgraded
|
|
111173
|
+
* @instance
|
|
111174
|
+
*/
|
|
111175
|
+
GingerDependentUpgraded.prototype.b2bRootOrgId = 0;
|
|
111176
|
+
|
|
113106
111177
|
/**
|
|
113107
111178
|
* Creates a new GingerDependentUpgraded instance using the specified properties.
|
|
113108
111179
|
* @function create
|
|
@@ -113147,6 +111218,8 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113147
111218
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.priorEnrollmentFlow);
|
|
113148
111219
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
113149
111220
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.enrollmentFlow);
|
|
111221
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
111222
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.b2bRootOrgId);
|
|
113150
111223
|
return writer;
|
|
113151
111224
|
};
|
|
113152
111225
|
|
|
@@ -113211,6 +111284,9 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113211
111284
|
case 10:
|
|
113212
111285
|
message.enrollmentFlow = reader.int32();
|
|
113213
111286
|
break;
|
|
111287
|
+
case 11:
|
|
111288
|
+
message.b2bRootOrgId = reader.uint32();
|
|
111289
|
+
break;
|
|
113214
111290
|
default:
|
|
113215
111291
|
reader.skipType(tag & 7);
|
|
113216
111292
|
break;
|
|
@@ -113294,6 +111370,9 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113294
111370
|
case 5:
|
|
113295
111371
|
break;
|
|
113296
111372
|
}
|
|
111373
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
111374
|
+
if (!$util.isInteger(message.b2bRootOrgId))
|
|
111375
|
+
return "b2bRootOrgId: integer expected";
|
|
113297
111376
|
return null;
|
|
113298
111377
|
};
|
|
113299
111378
|
|
|
@@ -113377,6 +111456,8 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113377
111456
|
message.enrollmentFlow = 5;
|
|
113378
111457
|
break;
|
|
113379
111458
|
}
|
|
111459
|
+
if (object.b2bRootOrgId != null)
|
|
111460
|
+
message.b2bRootOrgId = object.b2bRootOrgId >>> 0;
|
|
113380
111461
|
return message;
|
|
113381
111462
|
};
|
|
113382
111463
|
|
|
@@ -113404,6 +111485,7 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113404
111485
|
object.email = "";
|
|
113405
111486
|
object.priorEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
113406
111487
|
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
111488
|
+
object.b2bRootOrgId = 0;
|
|
113407
111489
|
}
|
|
113408
111490
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
113409
111491
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -113425,6 +111507,8 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
113425
111507
|
object.priorEnrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.priorEnrollmentFlow] : message.priorEnrollmentFlow;
|
|
113426
111508
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
113427
111509
|
object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
|
|
111510
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
111511
|
+
object.b2bRootOrgId = message.b2bRootOrgId;
|
|
113428
111512
|
return object;
|
|
113429
111513
|
};
|
|
113430
111514
|
|