@headspace/protos-events 1.661.0 → 1.663.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +195 -49
- package/lib/index.js +643 -261
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -279,11 +279,13 @@ $root.auth = (function() {
|
|
|
279
279
|
* @enum {string}
|
|
280
280
|
* @property {number} AUTH_LOGIN_TAG_UNKNOWN=0 AUTH_LOGIN_TAG_UNKNOWN value
|
|
281
281
|
* @property {number} AUTH_LOGIN_TAG_FIRST_LOGIN=1 AUTH_LOGIN_TAG_FIRST_LOGIN value
|
|
282
|
+
* @property {number} AUTH_LOGIN_TAG_FIRST_CLIENT_LOGIN=2 AUTH_LOGIN_TAG_FIRST_CLIENT_LOGIN value
|
|
282
283
|
*/
|
|
283
284
|
auth.AuthLoginTag = (function() {
|
|
284
285
|
var valuesById = {}, values = Object.create(valuesById);
|
|
285
286
|
values[valuesById[0] = "AUTH_LOGIN_TAG_UNKNOWN"] = 0;
|
|
286
287
|
values[valuesById[1] = "AUTH_LOGIN_TAG_FIRST_LOGIN"] = 1;
|
|
288
|
+
values[valuesById[2] = "AUTH_LOGIN_TAG_FIRST_CLIENT_LOGIN"] = 2;
|
|
287
289
|
return values;
|
|
288
290
|
})();
|
|
289
291
|
|
|
@@ -130639,6 +130641,7 @@ $root.AuthLoggedIn = (function() {
|
|
|
130639
130641
|
return "tags: enum value[] expected";
|
|
130640
130642
|
case 0:
|
|
130641
130643
|
case 1:
|
|
130644
|
+
case 2:
|
|
130642
130645
|
break;
|
|
130643
130646
|
}
|
|
130644
130647
|
}
|
|
@@ -130731,6 +130734,10 @@ $root.AuthLoggedIn = (function() {
|
|
|
130731
130734
|
case 1:
|
|
130732
130735
|
message.tags[i] = 1;
|
|
130733
130736
|
break;
|
|
130737
|
+
case "AUTH_LOGIN_TAG_FIRST_CLIENT_LOGIN":
|
|
130738
|
+
case 2:
|
|
130739
|
+
message.tags[i] = 2;
|
|
130740
|
+
break;
|
|
130734
130741
|
}
|
|
130735
130742
|
}
|
|
130736
130743
|
return message;
|
|
@@ -145386,9 +145393,7 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145386
145393
|
* @interface IEligibilityRecordCreated
|
|
145387
145394
|
* @property {number|Long|null} [timestamp] EligibilityRecordCreated timestamp
|
|
145388
145395
|
* @property {string|null} [collectiveUuid] EligibilityRecordCreated collectiveUuid
|
|
145389
|
-
* @property {
|
|
145390
|
-
* @property {EligibilitySourceType|null} [source] EligibilityRecordCreated source
|
|
145391
|
-
* @property {string|null} [externalId] EligibilityRecordCreated externalId
|
|
145396
|
+
* @property {IEligibilityRecord|null} [elgibilityRecord] EligibilityRecordCreated elgibilityRecord
|
|
145392
145397
|
*/
|
|
145393
145398
|
|
|
145394
145399
|
/**
|
|
@@ -145423,28 +145428,12 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145423
145428
|
EligibilityRecordCreated.prototype.collectiveUuid = "";
|
|
145424
145429
|
|
|
145425
145430
|
/**
|
|
145426
|
-
* EligibilityRecordCreated
|
|
145427
|
-
* @member {
|
|
145431
|
+
* EligibilityRecordCreated elgibilityRecord.
|
|
145432
|
+
* @member {IEligibilityRecord|null|undefined} elgibilityRecord
|
|
145428
145433
|
* @memberof EligibilityRecordCreated
|
|
145429
145434
|
* @instance
|
|
145430
145435
|
*/
|
|
145431
|
-
EligibilityRecordCreated.prototype.
|
|
145432
|
-
|
|
145433
|
-
/**
|
|
145434
|
-
* EligibilityRecordCreated source.
|
|
145435
|
-
* @member {EligibilitySourceType} source
|
|
145436
|
-
* @memberof EligibilityRecordCreated
|
|
145437
|
-
* @instance
|
|
145438
|
-
*/
|
|
145439
|
-
EligibilityRecordCreated.prototype.source = 0;
|
|
145440
|
-
|
|
145441
|
-
/**
|
|
145442
|
-
* EligibilityRecordCreated externalId.
|
|
145443
|
-
* @member {string} externalId
|
|
145444
|
-
* @memberof EligibilityRecordCreated
|
|
145445
|
-
* @instance
|
|
145446
|
-
*/
|
|
145447
|
-
EligibilityRecordCreated.prototype.externalId = "";
|
|
145436
|
+
EligibilityRecordCreated.prototype.elgibilityRecord = null;
|
|
145448
145437
|
|
|
145449
145438
|
/**
|
|
145450
145439
|
* Creates a new EligibilityRecordCreated instance using the specified properties.
|
|
@@ -145474,12 +145463,8 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145474
145463
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
145475
145464
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
145476
145465
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
|
|
145477
|
-
if (message.
|
|
145478
|
-
writer.uint32(/* id
|
|
145479
|
-
if (message.source != null && message.hasOwnProperty("source"))
|
|
145480
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
|
|
145481
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
145482
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
|
|
145466
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
|
|
145467
|
+
$root.EligibilityRecord.encode(message.elgibilityRecord, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
145483
145468
|
return writer;
|
|
145484
145469
|
};
|
|
145485
145470
|
|
|
@@ -145520,14 +145505,8 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145520
145505
|
case 2:
|
|
145521
145506
|
message.collectiveUuid = reader.string();
|
|
145522
145507
|
break;
|
|
145523
|
-
case
|
|
145524
|
-
message.
|
|
145525
|
-
break;
|
|
145526
|
-
case 4:
|
|
145527
|
-
message.source = reader.int32();
|
|
145528
|
-
break;
|
|
145529
|
-
case 5:
|
|
145530
|
-
message.externalId = reader.string();
|
|
145508
|
+
case 6:
|
|
145509
|
+
message.elgibilityRecord = $root.EligibilityRecord.decode(reader, reader.uint32());
|
|
145531
145510
|
break;
|
|
145532
145511
|
default:
|
|
145533
145512
|
reader.skipType(tag & 7);
|
|
@@ -145570,23 +145549,11 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145570
145549
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
145571
145550
|
if (!$util.isString(message.collectiveUuid))
|
|
145572
145551
|
return "collectiveUuid: string expected";
|
|
145573
|
-
if (message.
|
|
145574
|
-
|
|
145575
|
-
|
|
145576
|
-
|
|
145577
|
-
|
|
145578
|
-
default:
|
|
145579
|
-
return "source: enum value expected";
|
|
145580
|
-
case 0:
|
|
145581
|
-
case 1:
|
|
145582
|
-
case 2:
|
|
145583
|
-
case 3:
|
|
145584
|
-
case 4:
|
|
145585
|
-
break;
|
|
145586
|
-
}
|
|
145587
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
145588
|
-
if (!$util.isString(message.externalId))
|
|
145589
|
-
return "externalId: string expected";
|
|
145552
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord")) {
|
|
145553
|
+
var error = $root.EligibilityRecord.verify(message.elgibilityRecord);
|
|
145554
|
+
if (error)
|
|
145555
|
+
return "elgibilityRecord." + error;
|
|
145556
|
+
}
|
|
145590
145557
|
return null;
|
|
145591
145558
|
};
|
|
145592
145559
|
|
|
@@ -145613,32 +145580,11 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145613
145580
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
145614
145581
|
if (object.collectiveUuid != null)
|
|
145615
145582
|
message.collectiveUuid = String(object.collectiveUuid);
|
|
145616
|
-
if (object.
|
|
145617
|
-
|
|
145618
|
-
|
|
145619
|
-
|
|
145620
|
-
case 0:
|
|
145621
|
-
message.source = 0;
|
|
145622
|
-
break;
|
|
145623
|
-
case "ELIGIBILITY_SOURCE_TYPE_ELF":
|
|
145624
|
-
case 1:
|
|
145625
|
-
message.source = 1;
|
|
145626
|
-
break;
|
|
145627
|
-
case "ELIGIBILITY_SOURCE_TYPE_SCIM":
|
|
145628
|
-
case 2:
|
|
145629
|
-
message.source = 2;
|
|
145630
|
-
break;
|
|
145631
|
-
case "ELIGIBILITY_SOURCE_TYPE_API":
|
|
145632
|
-
case 3:
|
|
145633
|
-
message.source = 3;
|
|
145634
|
-
break;
|
|
145635
|
-
case "ELIGIBILITY_SOURCE_TYPE_GINGER":
|
|
145636
|
-
case 4:
|
|
145637
|
-
message.source = 4;
|
|
145638
|
-
break;
|
|
145583
|
+
if (object.elgibilityRecord != null) {
|
|
145584
|
+
if (typeof object.elgibilityRecord !== "object")
|
|
145585
|
+
throw TypeError(".EligibilityRecordCreated.elgibilityRecord: object expected");
|
|
145586
|
+
message.elgibilityRecord = $root.EligibilityRecord.fromObject(object.elgibilityRecord);
|
|
145639
145587
|
}
|
|
145640
|
-
if (object.externalId != null)
|
|
145641
|
-
message.externalId = String(object.externalId);
|
|
145642
145588
|
return message;
|
|
145643
145589
|
};
|
|
145644
145590
|
|
|
@@ -145662,9 +145608,7 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145662
145608
|
} else
|
|
145663
145609
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
145664
145610
|
object.collectiveUuid = "";
|
|
145665
|
-
object.
|
|
145666
|
-
object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
|
|
145667
|
-
object.externalId = "";
|
|
145611
|
+
object.elgibilityRecord = null;
|
|
145668
145612
|
}
|
|
145669
145613
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
145670
145614
|
if (typeof message.timestamp === "number")
|
|
@@ -145673,12 +145617,8 @@ $root.EligibilityRecordCreated = (function() {
|
|
|
145673
145617
|
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
145674
145618
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
145675
145619
|
object.collectiveUuid = message.collectiveUuid;
|
|
145676
|
-
if (message.
|
|
145677
|
-
object.
|
|
145678
|
-
if (message.source != null && message.hasOwnProperty("source"))
|
|
145679
|
-
object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
|
|
145680
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
145681
|
-
object.externalId = message.externalId;
|
|
145620
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
|
|
145621
|
+
object.elgibilityRecord = $root.EligibilityRecord.toObject(message.elgibilityRecord, options);
|
|
145682
145622
|
return object;
|
|
145683
145623
|
};
|
|
145684
145624
|
|
|
@@ -145704,9 +145644,7 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145704
145644
|
* @interface IEligibilityRecordUpdated
|
|
145705
145645
|
* @property {number|Long|null} [timestamp] EligibilityRecordUpdated timestamp
|
|
145706
145646
|
* @property {string|null} [collectiveUuid] EligibilityRecordUpdated collectiveUuid
|
|
145707
|
-
* @property {
|
|
145708
|
-
* @property {EligibilitySourceType|null} [source] EligibilityRecordUpdated source
|
|
145709
|
-
* @property {string|null} [externalId] EligibilityRecordUpdated externalId
|
|
145647
|
+
* @property {IEligibilityRecord|null} [elgibilityRecord] EligibilityRecordUpdated elgibilityRecord
|
|
145710
145648
|
*/
|
|
145711
145649
|
|
|
145712
145650
|
/**
|
|
@@ -145741,28 +145679,12 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145741
145679
|
EligibilityRecordUpdated.prototype.collectiveUuid = "";
|
|
145742
145680
|
|
|
145743
145681
|
/**
|
|
145744
|
-
* EligibilityRecordUpdated
|
|
145745
|
-
* @member {
|
|
145746
|
-
* @memberof EligibilityRecordUpdated
|
|
145747
|
-
* @instance
|
|
145748
|
-
*/
|
|
145749
|
-
EligibilityRecordUpdated.prototype.uuid = "";
|
|
145750
|
-
|
|
145751
|
-
/**
|
|
145752
|
-
* EligibilityRecordUpdated source.
|
|
145753
|
-
* @member {EligibilitySourceType} source
|
|
145754
|
-
* @memberof EligibilityRecordUpdated
|
|
145755
|
-
* @instance
|
|
145756
|
-
*/
|
|
145757
|
-
EligibilityRecordUpdated.prototype.source = 0;
|
|
145758
|
-
|
|
145759
|
-
/**
|
|
145760
|
-
* EligibilityRecordUpdated externalId.
|
|
145761
|
-
* @member {string} externalId
|
|
145682
|
+
* EligibilityRecordUpdated elgibilityRecord.
|
|
145683
|
+
* @member {IEligibilityRecord|null|undefined} elgibilityRecord
|
|
145762
145684
|
* @memberof EligibilityRecordUpdated
|
|
145763
145685
|
* @instance
|
|
145764
145686
|
*/
|
|
145765
|
-
EligibilityRecordUpdated.prototype.
|
|
145687
|
+
EligibilityRecordUpdated.prototype.elgibilityRecord = null;
|
|
145766
145688
|
|
|
145767
145689
|
/**
|
|
145768
145690
|
* Creates a new EligibilityRecordUpdated instance using the specified properties.
|
|
@@ -145792,12 +145714,8 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145792
145714
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
145793
145715
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
145794
145716
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
|
|
145795
|
-
if (message.
|
|
145796
|
-
writer.uint32(/* id
|
|
145797
|
-
if (message.source != null && message.hasOwnProperty("source"))
|
|
145798
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
|
|
145799
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
145800
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
|
|
145717
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
|
|
145718
|
+
$root.EligibilityRecord.encode(message.elgibilityRecord, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
145801
145719
|
return writer;
|
|
145802
145720
|
};
|
|
145803
145721
|
|
|
@@ -145838,14 +145756,8 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145838
145756
|
case 2:
|
|
145839
145757
|
message.collectiveUuid = reader.string();
|
|
145840
145758
|
break;
|
|
145841
|
-
case
|
|
145842
|
-
message.
|
|
145843
|
-
break;
|
|
145844
|
-
case 4:
|
|
145845
|
-
message.source = reader.int32();
|
|
145846
|
-
break;
|
|
145847
|
-
case 5:
|
|
145848
|
-
message.externalId = reader.string();
|
|
145759
|
+
case 6:
|
|
145760
|
+
message.elgibilityRecord = $root.EligibilityRecord.decode(reader, reader.uint32());
|
|
145849
145761
|
break;
|
|
145850
145762
|
default:
|
|
145851
145763
|
reader.skipType(tag & 7);
|
|
@@ -145888,23 +145800,11 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145888
145800
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
145889
145801
|
if (!$util.isString(message.collectiveUuid))
|
|
145890
145802
|
return "collectiveUuid: string expected";
|
|
145891
|
-
if (message.
|
|
145892
|
-
|
|
145893
|
-
|
|
145894
|
-
|
|
145895
|
-
|
|
145896
|
-
default:
|
|
145897
|
-
return "source: enum value expected";
|
|
145898
|
-
case 0:
|
|
145899
|
-
case 1:
|
|
145900
|
-
case 2:
|
|
145901
|
-
case 3:
|
|
145902
|
-
case 4:
|
|
145903
|
-
break;
|
|
145904
|
-
}
|
|
145905
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
145906
|
-
if (!$util.isString(message.externalId))
|
|
145907
|
-
return "externalId: string expected";
|
|
145803
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord")) {
|
|
145804
|
+
var error = $root.EligibilityRecord.verify(message.elgibilityRecord);
|
|
145805
|
+
if (error)
|
|
145806
|
+
return "elgibilityRecord." + error;
|
|
145807
|
+
}
|
|
145908
145808
|
return null;
|
|
145909
145809
|
};
|
|
145910
145810
|
|
|
@@ -145931,32 +145831,11 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145931
145831
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
145932
145832
|
if (object.collectiveUuid != null)
|
|
145933
145833
|
message.collectiveUuid = String(object.collectiveUuid);
|
|
145934
|
-
if (object.
|
|
145935
|
-
|
|
145936
|
-
|
|
145937
|
-
|
|
145938
|
-
case 0:
|
|
145939
|
-
message.source = 0;
|
|
145940
|
-
break;
|
|
145941
|
-
case "ELIGIBILITY_SOURCE_TYPE_ELF":
|
|
145942
|
-
case 1:
|
|
145943
|
-
message.source = 1;
|
|
145944
|
-
break;
|
|
145945
|
-
case "ELIGIBILITY_SOURCE_TYPE_SCIM":
|
|
145946
|
-
case 2:
|
|
145947
|
-
message.source = 2;
|
|
145948
|
-
break;
|
|
145949
|
-
case "ELIGIBILITY_SOURCE_TYPE_API":
|
|
145950
|
-
case 3:
|
|
145951
|
-
message.source = 3;
|
|
145952
|
-
break;
|
|
145953
|
-
case "ELIGIBILITY_SOURCE_TYPE_GINGER":
|
|
145954
|
-
case 4:
|
|
145955
|
-
message.source = 4;
|
|
145956
|
-
break;
|
|
145834
|
+
if (object.elgibilityRecord != null) {
|
|
145835
|
+
if (typeof object.elgibilityRecord !== "object")
|
|
145836
|
+
throw TypeError(".EligibilityRecordUpdated.elgibilityRecord: object expected");
|
|
145837
|
+
message.elgibilityRecord = $root.EligibilityRecord.fromObject(object.elgibilityRecord);
|
|
145957
145838
|
}
|
|
145958
|
-
if (object.externalId != null)
|
|
145959
|
-
message.externalId = String(object.externalId);
|
|
145960
145839
|
return message;
|
|
145961
145840
|
};
|
|
145962
145841
|
|
|
@@ -145980,9 +145859,7 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145980
145859
|
} else
|
|
145981
145860
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
145982
145861
|
object.collectiveUuid = "";
|
|
145983
|
-
object.
|
|
145984
|
-
object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
|
|
145985
|
-
object.externalId = "";
|
|
145862
|
+
object.elgibilityRecord = null;
|
|
145986
145863
|
}
|
|
145987
145864
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
145988
145865
|
if (typeof message.timestamp === "number")
|
|
@@ -145991,12 +145868,8 @@ $root.EligibilityRecordUpdated = (function() {
|
|
|
145991
145868
|
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
145992
145869
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
145993
145870
|
object.collectiveUuid = message.collectiveUuid;
|
|
145994
|
-
if (message.
|
|
145995
|
-
object.
|
|
145996
|
-
if (message.source != null && message.hasOwnProperty("source"))
|
|
145997
|
-
object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
|
|
145998
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
145999
|
-
object.externalId = message.externalId;
|
|
145871
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
|
|
145872
|
+
object.elgibilityRecord = $root.EligibilityRecord.toObject(message.elgibilityRecord, options);
|
|
146000
145873
|
return object;
|
|
146001
145874
|
};
|
|
146002
145875
|
|
|
@@ -146022,9 +145895,7 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146022
145895
|
* @interface IEligibilityRecordRemoved
|
|
146023
145896
|
* @property {number|Long|null} [timestamp] EligibilityRecordRemoved timestamp
|
|
146024
145897
|
* @property {string|null} [collectiveUuid] EligibilityRecordRemoved collectiveUuid
|
|
146025
|
-
* @property {
|
|
146026
|
-
* @property {EligibilitySourceType|null} [source] EligibilityRecordRemoved source
|
|
146027
|
-
* @property {string|null} [externalId] EligibilityRecordRemoved externalId
|
|
145898
|
+
* @property {IEligibilityRecord|null} [elgibilityRecord] EligibilityRecordRemoved elgibilityRecord
|
|
146028
145899
|
*/
|
|
146029
145900
|
|
|
146030
145901
|
/**
|
|
@@ -146059,28 +145930,12 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146059
145930
|
EligibilityRecordRemoved.prototype.collectiveUuid = "";
|
|
146060
145931
|
|
|
146061
145932
|
/**
|
|
146062
|
-
* EligibilityRecordRemoved
|
|
146063
|
-
* @member {
|
|
146064
|
-
* @memberof EligibilityRecordRemoved
|
|
146065
|
-
* @instance
|
|
146066
|
-
*/
|
|
146067
|
-
EligibilityRecordRemoved.prototype.uuid = "";
|
|
146068
|
-
|
|
146069
|
-
/**
|
|
146070
|
-
* EligibilityRecordRemoved source.
|
|
146071
|
-
* @member {EligibilitySourceType} source
|
|
146072
|
-
* @memberof EligibilityRecordRemoved
|
|
146073
|
-
* @instance
|
|
146074
|
-
*/
|
|
146075
|
-
EligibilityRecordRemoved.prototype.source = 0;
|
|
146076
|
-
|
|
146077
|
-
/**
|
|
146078
|
-
* EligibilityRecordRemoved externalId.
|
|
146079
|
-
* @member {string} externalId
|
|
145933
|
+
* EligibilityRecordRemoved elgibilityRecord.
|
|
145934
|
+
* @member {IEligibilityRecord|null|undefined} elgibilityRecord
|
|
146080
145935
|
* @memberof EligibilityRecordRemoved
|
|
146081
145936
|
* @instance
|
|
146082
145937
|
*/
|
|
146083
|
-
EligibilityRecordRemoved.prototype.
|
|
145938
|
+
EligibilityRecordRemoved.prototype.elgibilityRecord = null;
|
|
146084
145939
|
|
|
146085
145940
|
/**
|
|
146086
145941
|
* Creates a new EligibilityRecordRemoved instance using the specified properties.
|
|
@@ -146110,12 +145965,8 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146110
145965
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
146111
145966
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
146112
145967
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectiveUuid);
|
|
146113
|
-
if (message.
|
|
146114
|
-
writer.uint32(/* id
|
|
146115
|
-
if (message.source != null && message.hasOwnProperty("source"))
|
|
146116
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.source);
|
|
146117
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
146118
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalId);
|
|
145968
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
|
|
145969
|
+
$root.EligibilityRecord.encode(message.elgibilityRecord, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
146119
145970
|
return writer;
|
|
146120
145971
|
};
|
|
146121
145972
|
|
|
@@ -146156,14 +146007,8 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146156
146007
|
case 2:
|
|
146157
146008
|
message.collectiveUuid = reader.string();
|
|
146158
146009
|
break;
|
|
146159
|
-
case
|
|
146160
|
-
message.
|
|
146161
|
-
break;
|
|
146162
|
-
case 4:
|
|
146163
|
-
message.source = reader.int32();
|
|
146164
|
-
break;
|
|
146165
|
-
case 5:
|
|
146166
|
-
message.externalId = reader.string();
|
|
146010
|
+
case 6:
|
|
146011
|
+
message.elgibilityRecord = $root.EligibilityRecord.decode(reader, reader.uint32());
|
|
146167
146012
|
break;
|
|
146168
146013
|
default:
|
|
146169
146014
|
reader.skipType(tag & 7);
|
|
@@ -146206,23 +146051,11 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146206
146051
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
146207
146052
|
if (!$util.isString(message.collectiveUuid))
|
|
146208
146053
|
return "collectiveUuid: string expected";
|
|
146209
|
-
if (message.
|
|
146210
|
-
|
|
146211
|
-
|
|
146212
|
-
|
|
146213
|
-
|
|
146214
|
-
default:
|
|
146215
|
-
return "source: enum value expected";
|
|
146216
|
-
case 0:
|
|
146217
|
-
case 1:
|
|
146218
|
-
case 2:
|
|
146219
|
-
case 3:
|
|
146220
|
-
case 4:
|
|
146221
|
-
break;
|
|
146222
|
-
}
|
|
146223
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
146224
|
-
if (!$util.isString(message.externalId))
|
|
146225
|
-
return "externalId: string expected";
|
|
146054
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord")) {
|
|
146055
|
+
var error = $root.EligibilityRecord.verify(message.elgibilityRecord);
|
|
146056
|
+
if (error)
|
|
146057
|
+
return "elgibilityRecord." + error;
|
|
146058
|
+
}
|
|
146226
146059
|
return null;
|
|
146227
146060
|
};
|
|
146228
146061
|
|
|
@@ -146249,32 +146082,11 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146249
146082
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
146250
146083
|
if (object.collectiveUuid != null)
|
|
146251
146084
|
message.collectiveUuid = String(object.collectiveUuid);
|
|
146252
|
-
if (object.
|
|
146253
|
-
|
|
146254
|
-
|
|
146255
|
-
|
|
146256
|
-
case 0:
|
|
146257
|
-
message.source = 0;
|
|
146258
|
-
break;
|
|
146259
|
-
case "ELIGIBILITY_SOURCE_TYPE_ELF":
|
|
146260
|
-
case 1:
|
|
146261
|
-
message.source = 1;
|
|
146262
|
-
break;
|
|
146263
|
-
case "ELIGIBILITY_SOURCE_TYPE_SCIM":
|
|
146264
|
-
case 2:
|
|
146265
|
-
message.source = 2;
|
|
146266
|
-
break;
|
|
146267
|
-
case "ELIGIBILITY_SOURCE_TYPE_API":
|
|
146268
|
-
case 3:
|
|
146269
|
-
message.source = 3;
|
|
146270
|
-
break;
|
|
146271
|
-
case "ELIGIBILITY_SOURCE_TYPE_GINGER":
|
|
146272
|
-
case 4:
|
|
146273
|
-
message.source = 4;
|
|
146274
|
-
break;
|
|
146085
|
+
if (object.elgibilityRecord != null) {
|
|
146086
|
+
if (typeof object.elgibilityRecord !== "object")
|
|
146087
|
+
throw TypeError(".EligibilityRecordRemoved.elgibilityRecord: object expected");
|
|
146088
|
+
message.elgibilityRecord = $root.EligibilityRecord.fromObject(object.elgibilityRecord);
|
|
146275
146089
|
}
|
|
146276
|
-
if (object.externalId != null)
|
|
146277
|
-
message.externalId = String(object.externalId);
|
|
146278
146090
|
return message;
|
|
146279
146091
|
};
|
|
146280
146092
|
|
|
@@ -146298,9 +146110,7 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146298
146110
|
} else
|
|
146299
146111
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
146300
146112
|
object.collectiveUuid = "";
|
|
146301
|
-
object.
|
|
146302
|
-
object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
|
|
146303
|
-
object.externalId = "";
|
|
146113
|
+
object.elgibilityRecord = null;
|
|
146304
146114
|
}
|
|
146305
146115
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
146306
146116
|
if (typeof message.timestamp === "number")
|
|
@@ -146309,12 +146119,8 @@ $root.EligibilityRecordRemoved = (function() {
|
|
|
146309
146119
|
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
146310
146120
|
if (message.collectiveUuid != null && message.hasOwnProperty("collectiveUuid"))
|
|
146311
146121
|
object.collectiveUuid = message.collectiveUuid;
|
|
146312
|
-
if (message.
|
|
146313
|
-
object.
|
|
146314
|
-
if (message.source != null && message.hasOwnProperty("source"))
|
|
146315
|
-
object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
|
|
146316
|
-
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
146317
|
-
object.externalId = message.externalId;
|
|
146122
|
+
if (message.elgibilityRecord != null && message.hasOwnProperty("elgibilityRecord"))
|
|
146123
|
+
object.elgibilityRecord = $root.EligibilityRecord.toObject(message.elgibilityRecord, options);
|
|
146318
146124
|
return object;
|
|
146319
146125
|
};
|
|
146320
146126
|
|
|
@@ -147017,6 +146823,22 @@ $root.VerificationType = (function() {
|
|
|
147017
146823
|
return values;
|
|
147018
146824
|
})();
|
|
147019
146825
|
|
|
146826
|
+
/**
|
|
146827
|
+
* ClientUidType enum.
|
|
146828
|
+
* @name ClientUidType
|
|
146829
|
+
* @enum {string}
|
|
146830
|
+
* @property {number} CLIENT_UID_TYPE_UNKNOWN=0 CLIENT_UID_TYPE_UNKNOWN value
|
|
146831
|
+
* @property {number} CLIENT_UID_TYPE_EMAIL=1 CLIENT_UID_TYPE_EMAIL value
|
|
146832
|
+
* @property {number} CLIENT_UID_TYPE_WORK_ID=2 CLIENT_UID_TYPE_WORK_ID value
|
|
146833
|
+
*/
|
|
146834
|
+
$root.ClientUidType = (function() {
|
|
146835
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
146836
|
+
values[valuesById[0] = "CLIENT_UID_TYPE_UNKNOWN"] = 0;
|
|
146837
|
+
values[valuesById[1] = "CLIENT_UID_TYPE_EMAIL"] = 1;
|
|
146838
|
+
values[valuesById[2] = "CLIENT_UID_TYPE_WORK_ID"] = 2;
|
|
146839
|
+
return values;
|
|
146840
|
+
})();
|
|
146841
|
+
|
|
147020
146842
|
$root.EligibilityCollective = (function() {
|
|
147021
146843
|
|
|
147022
146844
|
/**
|
|
@@ -148110,6 +147932,566 @@ $root.EligibilityCollectiveDeleted = (function() {
|
|
|
148110
147932
|
return EligibilityCollectiveDeleted;
|
|
148111
147933
|
})();
|
|
148112
147934
|
|
|
147935
|
+
$root.EligibilityRecord = (function() {
|
|
147936
|
+
|
|
147937
|
+
/**
|
|
147938
|
+
* Properties of an EligibilityRecord.
|
|
147939
|
+
* @name IEligibilityRecord
|
|
147940
|
+
* @interface IEligibilityRecord
|
|
147941
|
+
* @property {string|null} [uuid] EligibilityRecord uuid
|
|
147942
|
+
* @property {EligibilitySourceType|null} [source] EligibilityRecord source
|
|
147943
|
+
* @property {string|null} [externalId] EligibilityRecord externalId
|
|
147944
|
+
* @property {string|null} [clientUid] EligibilityRecord clientUid
|
|
147945
|
+
* @property {ClientUidType|null} [clientUidType] EligibilityRecord clientUidType
|
|
147946
|
+
* @property {string|null} [oldClientUid] EligibilityRecord oldClientUid
|
|
147947
|
+
* @property {ClientUidType|null} [oldClientUidType] EligibilityRecord oldClientUidType
|
|
147948
|
+
* @property {string|null} [email] EligibilityRecord email
|
|
147949
|
+
* @property {string|null} [dependentOf] EligibilityRecord dependentOf
|
|
147950
|
+
* @property {string|null} [country] EligibilityRecord country
|
|
147951
|
+
* @property {string|null} [zone] EligibilityRecord zone
|
|
147952
|
+
* @property {string|null} [location] EligibilityRecord location
|
|
147953
|
+
* @property {string|null} [department] EligibilityRecord department
|
|
147954
|
+
* @property {string|null} [hierarchyMappingValue] EligibilityRecord hierarchyMappingValue
|
|
147955
|
+
* @property {string|null} [custom] EligibilityRecord custom
|
|
147956
|
+
*/
|
|
147957
|
+
|
|
147958
|
+
/**
|
|
147959
|
+
* Constructs a new EligibilityRecord.
|
|
147960
|
+
* @name EligibilityRecord
|
|
147961
|
+
* @classdesc Represents an EligibilityRecord.
|
|
147962
|
+
* @implements IEligibilityRecord
|
|
147963
|
+
* @constructor
|
|
147964
|
+
* @param {IEligibilityRecord=} [properties] Properties to set
|
|
147965
|
+
*/
|
|
147966
|
+
function EligibilityRecord(properties) {
|
|
147967
|
+
if (properties)
|
|
147968
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
147969
|
+
if (properties[keys[i]] != null)
|
|
147970
|
+
this[keys[i]] = properties[keys[i]];
|
|
147971
|
+
}
|
|
147972
|
+
|
|
147973
|
+
/**
|
|
147974
|
+
* EligibilityRecord uuid.
|
|
147975
|
+
* @member {string} uuid
|
|
147976
|
+
* @memberof EligibilityRecord
|
|
147977
|
+
* @instance
|
|
147978
|
+
*/
|
|
147979
|
+
EligibilityRecord.prototype.uuid = "";
|
|
147980
|
+
|
|
147981
|
+
/**
|
|
147982
|
+
* EligibilityRecord source.
|
|
147983
|
+
* @member {EligibilitySourceType} source
|
|
147984
|
+
* @memberof EligibilityRecord
|
|
147985
|
+
* @instance
|
|
147986
|
+
*/
|
|
147987
|
+
EligibilityRecord.prototype.source = 0;
|
|
147988
|
+
|
|
147989
|
+
/**
|
|
147990
|
+
* EligibilityRecord externalId.
|
|
147991
|
+
* @member {string} externalId
|
|
147992
|
+
* @memberof EligibilityRecord
|
|
147993
|
+
* @instance
|
|
147994
|
+
*/
|
|
147995
|
+
EligibilityRecord.prototype.externalId = "";
|
|
147996
|
+
|
|
147997
|
+
/**
|
|
147998
|
+
* EligibilityRecord clientUid.
|
|
147999
|
+
* @member {string} clientUid
|
|
148000
|
+
* @memberof EligibilityRecord
|
|
148001
|
+
* @instance
|
|
148002
|
+
*/
|
|
148003
|
+
EligibilityRecord.prototype.clientUid = "";
|
|
148004
|
+
|
|
148005
|
+
/**
|
|
148006
|
+
* EligibilityRecord clientUidType.
|
|
148007
|
+
* @member {ClientUidType} clientUidType
|
|
148008
|
+
* @memberof EligibilityRecord
|
|
148009
|
+
* @instance
|
|
148010
|
+
*/
|
|
148011
|
+
EligibilityRecord.prototype.clientUidType = 0;
|
|
148012
|
+
|
|
148013
|
+
/**
|
|
148014
|
+
* EligibilityRecord oldClientUid.
|
|
148015
|
+
* @member {string} oldClientUid
|
|
148016
|
+
* @memberof EligibilityRecord
|
|
148017
|
+
* @instance
|
|
148018
|
+
*/
|
|
148019
|
+
EligibilityRecord.prototype.oldClientUid = "";
|
|
148020
|
+
|
|
148021
|
+
/**
|
|
148022
|
+
* EligibilityRecord oldClientUidType.
|
|
148023
|
+
* @member {ClientUidType} oldClientUidType
|
|
148024
|
+
* @memberof EligibilityRecord
|
|
148025
|
+
* @instance
|
|
148026
|
+
*/
|
|
148027
|
+
EligibilityRecord.prototype.oldClientUidType = 0;
|
|
148028
|
+
|
|
148029
|
+
/**
|
|
148030
|
+
* EligibilityRecord email.
|
|
148031
|
+
* @member {string} email
|
|
148032
|
+
* @memberof EligibilityRecord
|
|
148033
|
+
* @instance
|
|
148034
|
+
*/
|
|
148035
|
+
EligibilityRecord.prototype.email = "";
|
|
148036
|
+
|
|
148037
|
+
/**
|
|
148038
|
+
* EligibilityRecord dependentOf.
|
|
148039
|
+
* @member {string} dependentOf
|
|
148040
|
+
* @memberof EligibilityRecord
|
|
148041
|
+
* @instance
|
|
148042
|
+
*/
|
|
148043
|
+
EligibilityRecord.prototype.dependentOf = "";
|
|
148044
|
+
|
|
148045
|
+
/**
|
|
148046
|
+
* EligibilityRecord country.
|
|
148047
|
+
* @member {string} country
|
|
148048
|
+
* @memberof EligibilityRecord
|
|
148049
|
+
* @instance
|
|
148050
|
+
*/
|
|
148051
|
+
EligibilityRecord.prototype.country = "";
|
|
148052
|
+
|
|
148053
|
+
/**
|
|
148054
|
+
* EligibilityRecord zone.
|
|
148055
|
+
* @member {string} zone
|
|
148056
|
+
* @memberof EligibilityRecord
|
|
148057
|
+
* @instance
|
|
148058
|
+
*/
|
|
148059
|
+
EligibilityRecord.prototype.zone = "";
|
|
148060
|
+
|
|
148061
|
+
/**
|
|
148062
|
+
* EligibilityRecord location.
|
|
148063
|
+
* @member {string} location
|
|
148064
|
+
* @memberof EligibilityRecord
|
|
148065
|
+
* @instance
|
|
148066
|
+
*/
|
|
148067
|
+
EligibilityRecord.prototype.location = "";
|
|
148068
|
+
|
|
148069
|
+
/**
|
|
148070
|
+
* EligibilityRecord department.
|
|
148071
|
+
* @member {string} department
|
|
148072
|
+
* @memberof EligibilityRecord
|
|
148073
|
+
* @instance
|
|
148074
|
+
*/
|
|
148075
|
+
EligibilityRecord.prototype.department = "";
|
|
148076
|
+
|
|
148077
|
+
/**
|
|
148078
|
+
* EligibilityRecord hierarchyMappingValue.
|
|
148079
|
+
* @member {string} hierarchyMappingValue
|
|
148080
|
+
* @memberof EligibilityRecord
|
|
148081
|
+
* @instance
|
|
148082
|
+
*/
|
|
148083
|
+
EligibilityRecord.prototype.hierarchyMappingValue = "";
|
|
148084
|
+
|
|
148085
|
+
/**
|
|
148086
|
+
* EligibilityRecord custom.
|
|
148087
|
+
* @member {string} custom
|
|
148088
|
+
* @memberof EligibilityRecord
|
|
148089
|
+
* @instance
|
|
148090
|
+
*/
|
|
148091
|
+
EligibilityRecord.prototype.custom = "";
|
|
148092
|
+
|
|
148093
|
+
/**
|
|
148094
|
+
* Creates a new EligibilityRecord instance using the specified properties.
|
|
148095
|
+
* @function create
|
|
148096
|
+
* @memberof EligibilityRecord
|
|
148097
|
+
* @static
|
|
148098
|
+
* @param {IEligibilityRecord=} [properties] Properties to set
|
|
148099
|
+
* @returns {EligibilityRecord} EligibilityRecord instance
|
|
148100
|
+
*/
|
|
148101
|
+
EligibilityRecord.create = function create(properties) {
|
|
148102
|
+
return new EligibilityRecord(properties);
|
|
148103
|
+
};
|
|
148104
|
+
|
|
148105
|
+
/**
|
|
148106
|
+
* Encodes the specified EligibilityRecord message. Does not implicitly {@link EligibilityRecord.verify|verify} messages.
|
|
148107
|
+
* @function encode
|
|
148108
|
+
* @memberof EligibilityRecord
|
|
148109
|
+
* @static
|
|
148110
|
+
* @param {IEligibilityRecord} message EligibilityRecord message or plain object to encode
|
|
148111
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148112
|
+
* @returns {$protobuf.Writer} Writer
|
|
148113
|
+
*/
|
|
148114
|
+
EligibilityRecord.encode = function encode(message, writer) {
|
|
148115
|
+
if (!writer)
|
|
148116
|
+
writer = $Writer.create();
|
|
148117
|
+
if (message.uuid != null && message.hasOwnProperty("uuid"))
|
|
148118
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
|
|
148119
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
148120
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.source);
|
|
148121
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
148122
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalId);
|
|
148123
|
+
if (message.clientUid != null && message.hasOwnProperty("clientUid"))
|
|
148124
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientUid);
|
|
148125
|
+
if (message.clientUidType != null && message.hasOwnProperty("clientUidType"))
|
|
148126
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.clientUidType);
|
|
148127
|
+
if (message.oldClientUid != null && message.hasOwnProperty("oldClientUid"))
|
|
148128
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.oldClientUid);
|
|
148129
|
+
if (message.oldClientUidType != null && message.hasOwnProperty("oldClientUidType"))
|
|
148130
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.oldClientUidType);
|
|
148131
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
148132
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.email);
|
|
148133
|
+
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
148134
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.dependentOf);
|
|
148135
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
148136
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.country);
|
|
148137
|
+
if (message.zone != null && message.hasOwnProperty("zone"))
|
|
148138
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.zone);
|
|
148139
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
148140
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.location);
|
|
148141
|
+
if (message.department != null && message.hasOwnProperty("department"))
|
|
148142
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.department);
|
|
148143
|
+
if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
|
|
148144
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.hierarchyMappingValue);
|
|
148145
|
+
if (message.custom != null && message.hasOwnProperty("custom"))
|
|
148146
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.custom);
|
|
148147
|
+
return writer;
|
|
148148
|
+
};
|
|
148149
|
+
|
|
148150
|
+
/**
|
|
148151
|
+
* Encodes the specified EligibilityRecord message, length delimited. Does not implicitly {@link EligibilityRecord.verify|verify} messages.
|
|
148152
|
+
* @function encodeDelimited
|
|
148153
|
+
* @memberof EligibilityRecord
|
|
148154
|
+
* @static
|
|
148155
|
+
* @param {IEligibilityRecord} message EligibilityRecord message or plain object to encode
|
|
148156
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148157
|
+
* @returns {$protobuf.Writer} Writer
|
|
148158
|
+
*/
|
|
148159
|
+
EligibilityRecord.encodeDelimited = function encodeDelimited(message, writer) {
|
|
148160
|
+
return this.encode(message, writer).ldelim();
|
|
148161
|
+
};
|
|
148162
|
+
|
|
148163
|
+
/**
|
|
148164
|
+
* Decodes an EligibilityRecord message from the specified reader or buffer.
|
|
148165
|
+
* @function decode
|
|
148166
|
+
* @memberof EligibilityRecord
|
|
148167
|
+
* @static
|
|
148168
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148169
|
+
* @param {number} [length] Message length if known beforehand
|
|
148170
|
+
* @returns {EligibilityRecord} EligibilityRecord
|
|
148171
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148172
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148173
|
+
*/
|
|
148174
|
+
EligibilityRecord.decode = function decode(reader, length) {
|
|
148175
|
+
if (!(reader instanceof $Reader))
|
|
148176
|
+
reader = $Reader.create(reader);
|
|
148177
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityRecord();
|
|
148178
|
+
while (reader.pos < end) {
|
|
148179
|
+
var tag = reader.uint32();
|
|
148180
|
+
switch (tag >>> 3) {
|
|
148181
|
+
case 1:
|
|
148182
|
+
message.uuid = reader.string();
|
|
148183
|
+
break;
|
|
148184
|
+
case 2:
|
|
148185
|
+
message.source = reader.int32();
|
|
148186
|
+
break;
|
|
148187
|
+
case 3:
|
|
148188
|
+
message.externalId = reader.string();
|
|
148189
|
+
break;
|
|
148190
|
+
case 4:
|
|
148191
|
+
message.clientUid = reader.string();
|
|
148192
|
+
break;
|
|
148193
|
+
case 5:
|
|
148194
|
+
message.clientUidType = reader.int32();
|
|
148195
|
+
break;
|
|
148196
|
+
case 6:
|
|
148197
|
+
message.oldClientUid = reader.string();
|
|
148198
|
+
break;
|
|
148199
|
+
case 7:
|
|
148200
|
+
message.oldClientUidType = reader.int32();
|
|
148201
|
+
break;
|
|
148202
|
+
case 8:
|
|
148203
|
+
message.email = reader.string();
|
|
148204
|
+
break;
|
|
148205
|
+
case 9:
|
|
148206
|
+
message.dependentOf = reader.string();
|
|
148207
|
+
break;
|
|
148208
|
+
case 10:
|
|
148209
|
+
message.country = reader.string();
|
|
148210
|
+
break;
|
|
148211
|
+
case 11:
|
|
148212
|
+
message.zone = reader.string();
|
|
148213
|
+
break;
|
|
148214
|
+
case 12:
|
|
148215
|
+
message.location = reader.string();
|
|
148216
|
+
break;
|
|
148217
|
+
case 13:
|
|
148218
|
+
message.department = reader.string();
|
|
148219
|
+
break;
|
|
148220
|
+
case 14:
|
|
148221
|
+
message.hierarchyMappingValue = reader.string();
|
|
148222
|
+
break;
|
|
148223
|
+
case 15:
|
|
148224
|
+
message.custom = reader.string();
|
|
148225
|
+
break;
|
|
148226
|
+
default:
|
|
148227
|
+
reader.skipType(tag & 7);
|
|
148228
|
+
break;
|
|
148229
|
+
}
|
|
148230
|
+
}
|
|
148231
|
+
return message;
|
|
148232
|
+
};
|
|
148233
|
+
|
|
148234
|
+
/**
|
|
148235
|
+
* Decodes an EligibilityRecord message from the specified reader or buffer, length delimited.
|
|
148236
|
+
* @function decodeDelimited
|
|
148237
|
+
* @memberof EligibilityRecord
|
|
148238
|
+
* @static
|
|
148239
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148240
|
+
* @returns {EligibilityRecord} EligibilityRecord
|
|
148241
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148242
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148243
|
+
*/
|
|
148244
|
+
EligibilityRecord.decodeDelimited = function decodeDelimited(reader) {
|
|
148245
|
+
if (!(reader instanceof $Reader))
|
|
148246
|
+
reader = new $Reader(reader);
|
|
148247
|
+
return this.decode(reader, reader.uint32());
|
|
148248
|
+
};
|
|
148249
|
+
|
|
148250
|
+
/**
|
|
148251
|
+
* Verifies an EligibilityRecord message.
|
|
148252
|
+
* @function verify
|
|
148253
|
+
* @memberof EligibilityRecord
|
|
148254
|
+
* @static
|
|
148255
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
148256
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
148257
|
+
*/
|
|
148258
|
+
EligibilityRecord.verify = function verify(message) {
|
|
148259
|
+
if (typeof message !== "object" || message === null)
|
|
148260
|
+
return "object expected";
|
|
148261
|
+
if (message.uuid != null && message.hasOwnProperty("uuid"))
|
|
148262
|
+
if (!$util.isString(message.uuid))
|
|
148263
|
+
return "uuid: string expected";
|
|
148264
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
148265
|
+
switch (message.source) {
|
|
148266
|
+
default:
|
|
148267
|
+
return "source: enum value expected";
|
|
148268
|
+
case 0:
|
|
148269
|
+
case 1:
|
|
148270
|
+
case 2:
|
|
148271
|
+
case 3:
|
|
148272
|
+
case 4:
|
|
148273
|
+
break;
|
|
148274
|
+
}
|
|
148275
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
148276
|
+
if (!$util.isString(message.externalId))
|
|
148277
|
+
return "externalId: string expected";
|
|
148278
|
+
if (message.clientUid != null && message.hasOwnProperty("clientUid"))
|
|
148279
|
+
if (!$util.isString(message.clientUid))
|
|
148280
|
+
return "clientUid: string expected";
|
|
148281
|
+
if (message.clientUidType != null && message.hasOwnProperty("clientUidType"))
|
|
148282
|
+
switch (message.clientUidType) {
|
|
148283
|
+
default:
|
|
148284
|
+
return "clientUidType: enum value expected";
|
|
148285
|
+
case 0:
|
|
148286
|
+
case 1:
|
|
148287
|
+
case 2:
|
|
148288
|
+
break;
|
|
148289
|
+
}
|
|
148290
|
+
if (message.oldClientUid != null && message.hasOwnProperty("oldClientUid"))
|
|
148291
|
+
if (!$util.isString(message.oldClientUid))
|
|
148292
|
+
return "oldClientUid: string expected";
|
|
148293
|
+
if (message.oldClientUidType != null && message.hasOwnProperty("oldClientUidType"))
|
|
148294
|
+
switch (message.oldClientUidType) {
|
|
148295
|
+
default:
|
|
148296
|
+
return "oldClientUidType: enum value expected";
|
|
148297
|
+
case 0:
|
|
148298
|
+
case 1:
|
|
148299
|
+
case 2:
|
|
148300
|
+
break;
|
|
148301
|
+
}
|
|
148302
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
148303
|
+
if (!$util.isString(message.email))
|
|
148304
|
+
return "email: string expected";
|
|
148305
|
+
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
148306
|
+
if (!$util.isString(message.dependentOf))
|
|
148307
|
+
return "dependentOf: string expected";
|
|
148308
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
148309
|
+
if (!$util.isString(message.country))
|
|
148310
|
+
return "country: string expected";
|
|
148311
|
+
if (message.zone != null && message.hasOwnProperty("zone"))
|
|
148312
|
+
if (!$util.isString(message.zone))
|
|
148313
|
+
return "zone: string expected";
|
|
148314
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
148315
|
+
if (!$util.isString(message.location))
|
|
148316
|
+
return "location: string expected";
|
|
148317
|
+
if (message.department != null && message.hasOwnProperty("department"))
|
|
148318
|
+
if (!$util.isString(message.department))
|
|
148319
|
+
return "department: string expected";
|
|
148320
|
+
if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
|
|
148321
|
+
if (!$util.isString(message.hierarchyMappingValue))
|
|
148322
|
+
return "hierarchyMappingValue: string expected";
|
|
148323
|
+
if (message.custom != null && message.hasOwnProperty("custom"))
|
|
148324
|
+
if (!$util.isString(message.custom))
|
|
148325
|
+
return "custom: string expected";
|
|
148326
|
+
return null;
|
|
148327
|
+
};
|
|
148328
|
+
|
|
148329
|
+
/**
|
|
148330
|
+
* Creates an EligibilityRecord message from a plain object. Also converts values to their respective internal types.
|
|
148331
|
+
* @function fromObject
|
|
148332
|
+
* @memberof EligibilityRecord
|
|
148333
|
+
* @static
|
|
148334
|
+
* @param {Object.<string,*>} object Plain object
|
|
148335
|
+
* @returns {EligibilityRecord} EligibilityRecord
|
|
148336
|
+
*/
|
|
148337
|
+
EligibilityRecord.fromObject = function fromObject(object) {
|
|
148338
|
+
if (object instanceof $root.EligibilityRecord)
|
|
148339
|
+
return object;
|
|
148340
|
+
var message = new $root.EligibilityRecord();
|
|
148341
|
+
if (object.uuid != null)
|
|
148342
|
+
message.uuid = String(object.uuid);
|
|
148343
|
+
switch (object.source) {
|
|
148344
|
+
case "ELIGIBILITY_SOURCE_TYPE_UNKNOWN":
|
|
148345
|
+
case 0:
|
|
148346
|
+
message.source = 0;
|
|
148347
|
+
break;
|
|
148348
|
+
case "ELIGIBILITY_SOURCE_TYPE_ELF":
|
|
148349
|
+
case 1:
|
|
148350
|
+
message.source = 1;
|
|
148351
|
+
break;
|
|
148352
|
+
case "ELIGIBILITY_SOURCE_TYPE_SCIM":
|
|
148353
|
+
case 2:
|
|
148354
|
+
message.source = 2;
|
|
148355
|
+
break;
|
|
148356
|
+
case "ELIGIBILITY_SOURCE_TYPE_API":
|
|
148357
|
+
case 3:
|
|
148358
|
+
message.source = 3;
|
|
148359
|
+
break;
|
|
148360
|
+
case "ELIGIBILITY_SOURCE_TYPE_GINGER":
|
|
148361
|
+
case 4:
|
|
148362
|
+
message.source = 4;
|
|
148363
|
+
break;
|
|
148364
|
+
}
|
|
148365
|
+
if (object.externalId != null)
|
|
148366
|
+
message.externalId = String(object.externalId);
|
|
148367
|
+
if (object.clientUid != null)
|
|
148368
|
+
message.clientUid = String(object.clientUid);
|
|
148369
|
+
switch (object.clientUidType) {
|
|
148370
|
+
case "CLIENT_UID_TYPE_UNKNOWN":
|
|
148371
|
+
case 0:
|
|
148372
|
+
message.clientUidType = 0;
|
|
148373
|
+
break;
|
|
148374
|
+
case "CLIENT_UID_TYPE_EMAIL":
|
|
148375
|
+
case 1:
|
|
148376
|
+
message.clientUidType = 1;
|
|
148377
|
+
break;
|
|
148378
|
+
case "CLIENT_UID_TYPE_WORK_ID":
|
|
148379
|
+
case 2:
|
|
148380
|
+
message.clientUidType = 2;
|
|
148381
|
+
break;
|
|
148382
|
+
}
|
|
148383
|
+
if (object.oldClientUid != null)
|
|
148384
|
+
message.oldClientUid = String(object.oldClientUid);
|
|
148385
|
+
switch (object.oldClientUidType) {
|
|
148386
|
+
case "CLIENT_UID_TYPE_UNKNOWN":
|
|
148387
|
+
case 0:
|
|
148388
|
+
message.oldClientUidType = 0;
|
|
148389
|
+
break;
|
|
148390
|
+
case "CLIENT_UID_TYPE_EMAIL":
|
|
148391
|
+
case 1:
|
|
148392
|
+
message.oldClientUidType = 1;
|
|
148393
|
+
break;
|
|
148394
|
+
case "CLIENT_UID_TYPE_WORK_ID":
|
|
148395
|
+
case 2:
|
|
148396
|
+
message.oldClientUidType = 2;
|
|
148397
|
+
break;
|
|
148398
|
+
}
|
|
148399
|
+
if (object.email != null)
|
|
148400
|
+
message.email = String(object.email);
|
|
148401
|
+
if (object.dependentOf != null)
|
|
148402
|
+
message.dependentOf = String(object.dependentOf);
|
|
148403
|
+
if (object.country != null)
|
|
148404
|
+
message.country = String(object.country);
|
|
148405
|
+
if (object.zone != null)
|
|
148406
|
+
message.zone = String(object.zone);
|
|
148407
|
+
if (object.location != null)
|
|
148408
|
+
message.location = String(object.location);
|
|
148409
|
+
if (object.department != null)
|
|
148410
|
+
message.department = String(object.department);
|
|
148411
|
+
if (object.hierarchyMappingValue != null)
|
|
148412
|
+
message.hierarchyMappingValue = String(object.hierarchyMappingValue);
|
|
148413
|
+
if (object.custom != null)
|
|
148414
|
+
message.custom = String(object.custom);
|
|
148415
|
+
return message;
|
|
148416
|
+
};
|
|
148417
|
+
|
|
148418
|
+
/**
|
|
148419
|
+
* Creates a plain object from an EligibilityRecord message. Also converts values to other types if specified.
|
|
148420
|
+
* @function toObject
|
|
148421
|
+
* @memberof EligibilityRecord
|
|
148422
|
+
* @static
|
|
148423
|
+
* @param {EligibilityRecord} message EligibilityRecord
|
|
148424
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
148425
|
+
* @returns {Object.<string,*>} Plain object
|
|
148426
|
+
*/
|
|
148427
|
+
EligibilityRecord.toObject = function toObject(message, options) {
|
|
148428
|
+
if (!options)
|
|
148429
|
+
options = {};
|
|
148430
|
+
var object = {};
|
|
148431
|
+
if (options.defaults) {
|
|
148432
|
+
object.uuid = "";
|
|
148433
|
+
object.source = options.enums === String ? "ELIGIBILITY_SOURCE_TYPE_UNKNOWN" : 0;
|
|
148434
|
+
object.externalId = "";
|
|
148435
|
+
object.clientUid = "";
|
|
148436
|
+
object.clientUidType = options.enums === String ? "CLIENT_UID_TYPE_UNKNOWN" : 0;
|
|
148437
|
+
object.oldClientUid = "";
|
|
148438
|
+
object.oldClientUidType = options.enums === String ? "CLIENT_UID_TYPE_UNKNOWN" : 0;
|
|
148439
|
+
object.email = "";
|
|
148440
|
+
object.dependentOf = "";
|
|
148441
|
+
object.country = "";
|
|
148442
|
+
object.zone = "";
|
|
148443
|
+
object.location = "";
|
|
148444
|
+
object.department = "";
|
|
148445
|
+
object.hierarchyMappingValue = "";
|
|
148446
|
+
object.custom = "";
|
|
148447
|
+
}
|
|
148448
|
+
if (message.uuid != null && message.hasOwnProperty("uuid"))
|
|
148449
|
+
object.uuid = message.uuid;
|
|
148450
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
148451
|
+
object.source = options.enums === String ? $root.EligibilitySourceType[message.source] : message.source;
|
|
148452
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
148453
|
+
object.externalId = message.externalId;
|
|
148454
|
+
if (message.clientUid != null && message.hasOwnProperty("clientUid"))
|
|
148455
|
+
object.clientUid = message.clientUid;
|
|
148456
|
+
if (message.clientUidType != null && message.hasOwnProperty("clientUidType"))
|
|
148457
|
+
object.clientUidType = options.enums === String ? $root.ClientUidType[message.clientUidType] : message.clientUidType;
|
|
148458
|
+
if (message.oldClientUid != null && message.hasOwnProperty("oldClientUid"))
|
|
148459
|
+
object.oldClientUid = message.oldClientUid;
|
|
148460
|
+
if (message.oldClientUidType != null && message.hasOwnProperty("oldClientUidType"))
|
|
148461
|
+
object.oldClientUidType = options.enums === String ? $root.ClientUidType[message.oldClientUidType] : message.oldClientUidType;
|
|
148462
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
148463
|
+
object.email = message.email;
|
|
148464
|
+
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
148465
|
+
object.dependentOf = message.dependentOf;
|
|
148466
|
+
if (message.country != null && message.hasOwnProperty("country"))
|
|
148467
|
+
object.country = message.country;
|
|
148468
|
+
if (message.zone != null && message.hasOwnProperty("zone"))
|
|
148469
|
+
object.zone = message.zone;
|
|
148470
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
148471
|
+
object.location = message.location;
|
|
148472
|
+
if (message.department != null && message.hasOwnProperty("department"))
|
|
148473
|
+
object.department = message.department;
|
|
148474
|
+
if (message.hierarchyMappingValue != null && message.hasOwnProperty("hierarchyMappingValue"))
|
|
148475
|
+
object.hierarchyMappingValue = message.hierarchyMappingValue;
|
|
148476
|
+
if (message.custom != null && message.hasOwnProperty("custom"))
|
|
148477
|
+
object.custom = message.custom;
|
|
148478
|
+
return object;
|
|
148479
|
+
};
|
|
148480
|
+
|
|
148481
|
+
/**
|
|
148482
|
+
* Converts this EligibilityRecord to JSON.
|
|
148483
|
+
* @function toJSON
|
|
148484
|
+
* @memberof EligibilityRecord
|
|
148485
|
+
* @instance
|
|
148486
|
+
* @returns {Object.<string,*>} JSON object
|
|
148487
|
+
*/
|
|
148488
|
+
EligibilityRecord.prototype.toJSON = function toJSON() {
|
|
148489
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
148490
|
+
};
|
|
148491
|
+
|
|
148492
|
+
return EligibilityRecord;
|
|
148493
|
+
})();
|
|
148494
|
+
|
|
148113
148495
|
$root.PartnershipMemberEnrolled = (function() {
|
|
148114
148496
|
|
|
148115
148497
|
/**
|