@salesforce/lds-adapters-service-ecm 1.392.0 → 1.394.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/dist/es/es2018/service-ecm.js +487 -24
- package/dist/es/es2018/types/src/generated/adapters/saveEligibilityRule.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationEligibilityRule.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeOutputRepresentation.d.ts +13 -1
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleDetailsRepresentation.d.ts +31 -7
- package/dist/es/es2018/types/src/generated/types/{DecisionTableParameterOutputRepresentation.d.ts → EligibilityRuleParameterRepresentation.d.ts} +14 -8
- package/dist/es/es2018/types/src/generated/types/{RuleOutputRepresentation.d.ts → EligibilityRuleRepresentation.d.ts} +11 -11
- package/package.json +3 -3
- package/sfdc/index.js +488 -25
- package/src/raml/api.raml +97 -9
- package/src/raml/luvio.raml +1 -1
|
@@ -438,6 +438,34 @@ function validate$K(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
438
438
|
return new TypeError(message);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
+
if (obj.contextDefinitionId !== undefined) {
|
|
442
|
+
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
443
|
+
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
444
|
+
let obj_contextDefinitionId_union0 = null;
|
|
445
|
+
const obj_contextDefinitionId_union0_error = (() => {
|
|
446
|
+
if (typeof obj_contextDefinitionId !== 'string') {
|
|
447
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
448
|
+
}
|
|
449
|
+
})();
|
|
450
|
+
if (obj_contextDefinitionId_union0_error != null) {
|
|
451
|
+
obj_contextDefinitionId_union0 = obj_contextDefinitionId_union0_error.message;
|
|
452
|
+
}
|
|
453
|
+
let obj_contextDefinitionId_union1 = null;
|
|
454
|
+
const obj_contextDefinitionId_union1_error = (() => {
|
|
455
|
+
if (obj_contextDefinitionId !== null) {
|
|
456
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
457
|
+
}
|
|
458
|
+
})();
|
|
459
|
+
if (obj_contextDefinitionId_union1_error != null) {
|
|
460
|
+
obj_contextDefinitionId_union1 = obj_contextDefinitionId_union1_error.message;
|
|
461
|
+
}
|
|
462
|
+
if (obj_contextDefinitionId_union0 && obj_contextDefinitionId_union1) {
|
|
463
|
+
let message = 'Object doesn\'t match union (at "' + path_contextDefinitionId + '")';
|
|
464
|
+
message += '\n' + obj_contextDefinitionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
465
|
+
message += '\n' + obj_contextDefinitionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
466
|
+
return new TypeError(message);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
441
469
|
if (obj.dataType !== undefined) {
|
|
442
470
|
const obj_dataType = obj.dataType;
|
|
443
471
|
const path_dataType = path + '.dataType';
|
|
@@ -798,6 +826,62 @@ function validate$K(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
798
826
|
}
|
|
799
827
|
}
|
|
800
828
|
}
|
|
829
|
+
if (obj.referenceField !== undefined) {
|
|
830
|
+
const obj_referenceField = obj.referenceField;
|
|
831
|
+
const path_referenceField = path + '.referenceField';
|
|
832
|
+
let obj_referenceField_union0 = null;
|
|
833
|
+
const obj_referenceField_union0_error = (() => {
|
|
834
|
+
if (typeof obj_referenceField !== 'string') {
|
|
835
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
836
|
+
}
|
|
837
|
+
})();
|
|
838
|
+
if (obj_referenceField_union0_error != null) {
|
|
839
|
+
obj_referenceField_union0 = obj_referenceField_union0_error.message;
|
|
840
|
+
}
|
|
841
|
+
let obj_referenceField_union1 = null;
|
|
842
|
+
const obj_referenceField_union1_error = (() => {
|
|
843
|
+
if (obj_referenceField !== null) {
|
|
844
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
845
|
+
}
|
|
846
|
+
})();
|
|
847
|
+
if (obj_referenceField_union1_error != null) {
|
|
848
|
+
obj_referenceField_union1 = obj_referenceField_union1_error.message;
|
|
849
|
+
}
|
|
850
|
+
if (obj_referenceField_union0 && obj_referenceField_union1) {
|
|
851
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceField + '")';
|
|
852
|
+
message += '\n' + obj_referenceField_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
853
|
+
message += '\n' + obj_referenceField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
854
|
+
return new TypeError(message);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
if (obj.referenceObject !== undefined) {
|
|
858
|
+
const obj_referenceObject = obj.referenceObject;
|
|
859
|
+
const path_referenceObject = path + '.referenceObject';
|
|
860
|
+
let obj_referenceObject_union0 = null;
|
|
861
|
+
const obj_referenceObject_union0_error = (() => {
|
|
862
|
+
if (typeof obj_referenceObject !== 'string') {
|
|
863
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
864
|
+
}
|
|
865
|
+
})();
|
|
866
|
+
if (obj_referenceObject_union0_error != null) {
|
|
867
|
+
obj_referenceObject_union0 = obj_referenceObject_union0_error.message;
|
|
868
|
+
}
|
|
869
|
+
let obj_referenceObject_union1 = null;
|
|
870
|
+
const obj_referenceObject_union1_error = (() => {
|
|
871
|
+
if (obj_referenceObject !== null) {
|
|
872
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
873
|
+
}
|
|
874
|
+
})();
|
|
875
|
+
if (obj_referenceObject_union1_error != null) {
|
|
876
|
+
obj_referenceObject_union1 = obj_referenceObject_union1_error.message;
|
|
877
|
+
}
|
|
878
|
+
if (obj_referenceObject_union0 && obj_referenceObject_union1) {
|
|
879
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceObject + '")';
|
|
880
|
+
message += '\n' + obj_referenceObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
881
|
+
message += '\n' + obj_referenceObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
882
|
+
return new TypeError(message);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
801
885
|
if (obj.sequence !== undefined) {
|
|
802
886
|
const obj_sequence = obj.sequence;
|
|
803
887
|
const path_sequence = path + '.sequence';
|
|
@@ -3633,7 +3717,7 @@ function equals$l(existing, incoming) {
|
|
|
3633
3717
|
return true;
|
|
3634
3718
|
}
|
|
3635
3719
|
|
|
3636
|
-
const VERSION$k = "
|
|
3720
|
+
const VERSION$k = "56047c3264f6e0d4375d956b121d1947";
|
|
3637
3721
|
function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
3638
3722
|
const v_error = (() => {
|
|
3639
3723
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3667,6 +3751,34 @@ function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3667
3751
|
return new TypeError(message);
|
|
3668
3752
|
}
|
|
3669
3753
|
}
|
|
3754
|
+
if (obj.baseObject !== undefined) {
|
|
3755
|
+
const obj_baseObject = obj.baseObject;
|
|
3756
|
+
const path_baseObject = path + '.baseObject';
|
|
3757
|
+
let obj_baseObject_union0 = null;
|
|
3758
|
+
const obj_baseObject_union0_error = (() => {
|
|
3759
|
+
if (typeof obj_baseObject !== 'string') {
|
|
3760
|
+
return new TypeError('Expected "string" but received "' + typeof obj_baseObject + '" (at "' + path_baseObject + '")');
|
|
3761
|
+
}
|
|
3762
|
+
})();
|
|
3763
|
+
if (obj_baseObject_union0_error != null) {
|
|
3764
|
+
obj_baseObject_union0 = obj_baseObject_union0_error.message;
|
|
3765
|
+
}
|
|
3766
|
+
let obj_baseObject_union1 = null;
|
|
3767
|
+
const obj_baseObject_union1_error = (() => {
|
|
3768
|
+
if (obj_baseObject !== null) {
|
|
3769
|
+
return new TypeError('Expected "null" but received "' + typeof obj_baseObject + '" (at "' + path_baseObject + '")');
|
|
3770
|
+
}
|
|
3771
|
+
})();
|
|
3772
|
+
if (obj_baseObject_union1_error != null) {
|
|
3773
|
+
obj_baseObject_union1 = obj_baseObject_union1_error.message;
|
|
3774
|
+
}
|
|
3775
|
+
if (obj_baseObject_union0 && obj_baseObject_union1) {
|
|
3776
|
+
let message = 'Object doesn\'t match union (at "' + path_baseObject + '")';
|
|
3777
|
+
message += '\n' + obj_baseObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3778
|
+
message += '\n' + obj_baseObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3779
|
+
return new TypeError(message);
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3670
3782
|
if (obj.dataType !== undefined) {
|
|
3671
3783
|
const obj_dataType = obj.dataType;
|
|
3672
3784
|
const path_dataType = path + '.dataType';
|
|
@@ -3751,6 +3863,34 @@ function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3751
3863
|
return new TypeError(message);
|
|
3752
3864
|
}
|
|
3753
3865
|
}
|
|
3866
|
+
if (obj.fieldType !== undefined) {
|
|
3867
|
+
const obj_fieldType = obj.fieldType;
|
|
3868
|
+
const path_fieldType = path + '.fieldType';
|
|
3869
|
+
let obj_fieldType_union0 = null;
|
|
3870
|
+
const obj_fieldType_union0_error = (() => {
|
|
3871
|
+
if (typeof obj_fieldType !== 'string') {
|
|
3872
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
|
|
3873
|
+
}
|
|
3874
|
+
})();
|
|
3875
|
+
if (obj_fieldType_union0_error != null) {
|
|
3876
|
+
obj_fieldType_union0 = obj_fieldType_union0_error.message;
|
|
3877
|
+
}
|
|
3878
|
+
let obj_fieldType_union1 = null;
|
|
3879
|
+
const obj_fieldType_union1_error = (() => {
|
|
3880
|
+
if (obj_fieldType !== null) {
|
|
3881
|
+
return new TypeError('Expected "null" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
|
|
3882
|
+
}
|
|
3883
|
+
})();
|
|
3884
|
+
if (obj_fieldType_union1_error != null) {
|
|
3885
|
+
obj_fieldType_union1 = obj_fieldType_union1_error.message;
|
|
3886
|
+
}
|
|
3887
|
+
if (obj_fieldType_union0 && obj_fieldType_union1) {
|
|
3888
|
+
let message = 'Object doesn\'t match union (at "' + path_fieldType + '")';
|
|
3889
|
+
message += '\n' + obj_fieldType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3890
|
+
message += '\n' + obj_fieldType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3891
|
+
return new TypeError(message);
|
|
3892
|
+
}
|
|
3893
|
+
}
|
|
3754
3894
|
if (obj.id !== undefined) {
|
|
3755
3895
|
const obj_id = obj.id;
|
|
3756
3896
|
const path_id = path + '.id';
|
|
@@ -4055,6 +4195,62 @@ function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
4055
4195
|
}
|
|
4056
4196
|
}
|
|
4057
4197
|
}
|
|
4198
|
+
if (obj.referenceField !== undefined) {
|
|
4199
|
+
const obj_referenceField = obj.referenceField;
|
|
4200
|
+
const path_referenceField = path + '.referenceField';
|
|
4201
|
+
let obj_referenceField_union0 = null;
|
|
4202
|
+
const obj_referenceField_union0_error = (() => {
|
|
4203
|
+
if (typeof obj_referenceField !== 'string') {
|
|
4204
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
4205
|
+
}
|
|
4206
|
+
})();
|
|
4207
|
+
if (obj_referenceField_union0_error != null) {
|
|
4208
|
+
obj_referenceField_union0 = obj_referenceField_union0_error.message;
|
|
4209
|
+
}
|
|
4210
|
+
let obj_referenceField_union1 = null;
|
|
4211
|
+
const obj_referenceField_union1_error = (() => {
|
|
4212
|
+
if (obj_referenceField !== null) {
|
|
4213
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
4214
|
+
}
|
|
4215
|
+
})();
|
|
4216
|
+
if (obj_referenceField_union1_error != null) {
|
|
4217
|
+
obj_referenceField_union1 = obj_referenceField_union1_error.message;
|
|
4218
|
+
}
|
|
4219
|
+
if (obj_referenceField_union0 && obj_referenceField_union1) {
|
|
4220
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceField + '")';
|
|
4221
|
+
message += '\n' + obj_referenceField_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4222
|
+
message += '\n' + obj_referenceField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4223
|
+
return new TypeError(message);
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
if (obj.referenceObject !== undefined) {
|
|
4227
|
+
const obj_referenceObject = obj.referenceObject;
|
|
4228
|
+
const path_referenceObject = path + '.referenceObject';
|
|
4229
|
+
let obj_referenceObject_union0 = null;
|
|
4230
|
+
const obj_referenceObject_union0_error = (() => {
|
|
4231
|
+
if (typeof obj_referenceObject !== 'string') {
|
|
4232
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
4233
|
+
}
|
|
4234
|
+
})();
|
|
4235
|
+
if (obj_referenceObject_union0_error != null) {
|
|
4236
|
+
obj_referenceObject_union0 = obj_referenceObject_union0_error.message;
|
|
4237
|
+
}
|
|
4238
|
+
let obj_referenceObject_union1 = null;
|
|
4239
|
+
const obj_referenceObject_union1_error = (() => {
|
|
4240
|
+
if (obj_referenceObject !== null) {
|
|
4241
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
4242
|
+
}
|
|
4243
|
+
})();
|
|
4244
|
+
if (obj_referenceObject_union1_error != null) {
|
|
4245
|
+
obj_referenceObject_union1 = obj_referenceObject_union1_error.message;
|
|
4246
|
+
}
|
|
4247
|
+
if (obj_referenceObject_union0 && obj_referenceObject_union1) {
|
|
4248
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceObject + '")';
|
|
4249
|
+
message += '\n' + obj_referenceObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4250
|
+
message += '\n' + obj_referenceObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4251
|
+
return new TypeError(message);
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4058
4254
|
if (obj.sequence !== undefined) {
|
|
4059
4255
|
const obj_sequence = obj.sequence;
|
|
4060
4256
|
const path_sequence = path + '.sequence';
|
|
@@ -4098,6 +4294,11 @@ const select$A = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4098
4294
|
kind: 'Scalar',
|
|
4099
4295
|
required: false
|
|
4100
4296
|
},
|
|
4297
|
+
{
|
|
4298
|
+
name: 'baseObject',
|
|
4299
|
+
kind: 'Scalar',
|
|
4300
|
+
required: false
|
|
4301
|
+
},
|
|
4101
4302
|
{
|
|
4102
4303
|
name: 'dataType',
|
|
4103
4304
|
kind: 'Scalar',
|
|
@@ -4113,6 +4314,11 @@ const select$A = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4113
4314
|
kind: 'Scalar',
|
|
4114
4315
|
required: false
|
|
4115
4316
|
},
|
|
4317
|
+
{
|
|
4318
|
+
name: 'fieldType',
|
|
4319
|
+
kind: 'Scalar',
|
|
4320
|
+
required: false
|
|
4321
|
+
},
|
|
4116
4322
|
{
|
|
4117
4323
|
name: 'id',
|
|
4118
4324
|
kind: 'Scalar',
|
|
@@ -4176,6 +4382,16 @@ const select$A = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4176
4382
|
selections: PicklistAttributeTypeOutputRepresentation__selections,
|
|
4177
4383
|
required: false
|
|
4178
4384
|
},
|
|
4385
|
+
{
|
|
4386
|
+
name: 'referenceField',
|
|
4387
|
+
kind: 'Scalar',
|
|
4388
|
+
required: false
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
name: 'referenceObject',
|
|
4392
|
+
kind: 'Scalar',
|
|
4393
|
+
required: false
|
|
4394
|
+
},
|
|
4179
4395
|
{
|
|
4180
4396
|
name: 'sequence',
|
|
4181
4397
|
kind: 'Scalar',
|
|
@@ -4224,6 +4440,19 @@ function equals$k(existing, incoming) {
|
|
|
4224
4440
|
return false;
|
|
4225
4441
|
}
|
|
4226
4442
|
}
|
|
4443
|
+
const existing_baseObject = existing.baseObject;
|
|
4444
|
+
const incoming_baseObject = incoming.baseObject;
|
|
4445
|
+
// if at least one of these optionals is defined
|
|
4446
|
+
if (existing_baseObject !== undefined || incoming_baseObject !== undefined) {
|
|
4447
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4448
|
+
// not equal
|
|
4449
|
+
if (existing_baseObject === undefined || incoming_baseObject === undefined) {
|
|
4450
|
+
return false;
|
|
4451
|
+
}
|
|
4452
|
+
if (!(existing_baseObject === incoming_baseObject)) {
|
|
4453
|
+
return false;
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4227
4456
|
const existing_dataType = existing.dataType;
|
|
4228
4457
|
const incoming_dataType = incoming.dataType;
|
|
4229
4458
|
// if at least one of these optionals is defined
|
|
@@ -4263,6 +4492,19 @@ function equals$k(existing, incoming) {
|
|
|
4263
4492
|
return false;
|
|
4264
4493
|
}
|
|
4265
4494
|
}
|
|
4495
|
+
const existing_fieldType = existing.fieldType;
|
|
4496
|
+
const incoming_fieldType = incoming.fieldType;
|
|
4497
|
+
// if at least one of these optionals is defined
|
|
4498
|
+
if (existing_fieldType !== undefined || incoming_fieldType !== undefined) {
|
|
4499
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4500
|
+
// not equal
|
|
4501
|
+
if (existing_fieldType === undefined || incoming_fieldType === undefined) {
|
|
4502
|
+
return false;
|
|
4503
|
+
}
|
|
4504
|
+
if (!(existing_fieldType === incoming_fieldType)) {
|
|
4505
|
+
return false;
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
4266
4508
|
const existing_id = existing.id;
|
|
4267
4509
|
const incoming_id = incoming.id;
|
|
4268
4510
|
// if at least one of these optionals is defined
|
|
@@ -4401,6 +4643,32 @@ function equals$k(existing, incoming) {
|
|
|
4401
4643
|
return false;
|
|
4402
4644
|
}
|
|
4403
4645
|
}
|
|
4646
|
+
const existing_referenceField = existing.referenceField;
|
|
4647
|
+
const incoming_referenceField = incoming.referenceField;
|
|
4648
|
+
// if at least one of these optionals is defined
|
|
4649
|
+
if (existing_referenceField !== undefined || incoming_referenceField !== undefined) {
|
|
4650
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4651
|
+
// not equal
|
|
4652
|
+
if (existing_referenceField === undefined || incoming_referenceField === undefined) {
|
|
4653
|
+
return false;
|
|
4654
|
+
}
|
|
4655
|
+
if (!(existing_referenceField === incoming_referenceField)) {
|
|
4656
|
+
return false;
|
|
4657
|
+
}
|
|
4658
|
+
}
|
|
4659
|
+
const existing_referenceObject = existing.referenceObject;
|
|
4660
|
+
const incoming_referenceObject = incoming.referenceObject;
|
|
4661
|
+
// if at least one of these optionals is defined
|
|
4662
|
+
if (existing_referenceObject !== undefined || incoming_referenceObject !== undefined) {
|
|
4663
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4664
|
+
// not equal
|
|
4665
|
+
if (existing_referenceObject === undefined || incoming_referenceObject === undefined) {
|
|
4666
|
+
return false;
|
|
4667
|
+
}
|
|
4668
|
+
if (!(existing_referenceObject === incoming_referenceObject)) {
|
|
4669
|
+
return false;
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4404
4672
|
const existing_sequence = existing.sequence;
|
|
4405
4673
|
const incoming_sequence = incoming.sequence;
|
|
4406
4674
|
// if at least one of these optionals is defined
|
|
@@ -9762,8 +10030,8 @@ function validate$5(obj, path = 'EligibilityRuleValueInputRepresentation') {
|
|
|
9762
10030
|
}
|
|
9763
10031
|
|
|
9764
10032
|
const TTL = 6000;
|
|
9765
|
-
const VERSION$4 = "
|
|
9766
|
-
function validate$4(obj, path = '
|
|
10033
|
+
const VERSION$4 = "46e43120927331c84fedc0b4e2f9addc";
|
|
10034
|
+
function validate$4(obj, path = 'EligibilityRuleRepresentation') {
|
|
9767
10035
|
const v_error = (() => {
|
|
9768
10036
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9769
10037
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9791,7 +10059,7 @@ function validate$4(obj, path = 'RuleOutputRepresentation') {
|
|
|
9791
10059
|
})();
|
|
9792
10060
|
return v_error === undefined ? null : v_error;
|
|
9793
10061
|
}
|
|
9794
|
-
const RepresentationType$1 = '
|
|
10062
|
+
const RepresentationType$1 = 'EligibilityRuleRepresentation';
|
|
9795
10063
|
function keyBuilder$2(luvio, config) {
|
|
9796
10064
|
return keyPrefix + '::' + RepresentationType$1 + ':' + config.sourceObjectRecordId;
|
|
9797
10065
|
}
|
|
@@ -9804,7 +10072,7 @@ function keyBuilderFromType(luvio, object) {
|
|
|
9804
10072
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
9805
10073
|
return input;
|
|
9806
10074
|
}
|
|
9807
|
-
const select$6 = function
|
|
10075
|
+
const select$6 = function EligibilityRuleRepresentationSelect() {
|
|
9808
10076
|
return {
|
|
9809
10077
|
kind: 'Fragment',
|
|
9810
10078
|
version: VERSION$4,
|
|
@@ -9852,7 +10120,7 @@ function equals$4(existing, incoming) {
|
|
|
9852
10120
|
}
|
|
9853
10121
|
return true;
|
|
9854
10122
|
}
|
|
9855
|
-
const ingest$1 = function
|
|
10123
|
+
const ingest$1 = function EligibilityRuleRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9856
10124
|
if (process.env.NODE_ENV !== 'production') {
|
|
9857
10125
|
const validateError = validate$4(input);
|
|
9858
10126
|
if (validateError !== null) {
|
|
@@ -9981,12 +10249,19 @@ const saveEligibilityRuleAdapterFactory = (luvio) => {
|
|
|
9981
10249
|
};
|
|
9982
10250
|
};
|
|
9983
10251
|
|
|
9984
|
-
const VERSION$3 = "
|
|
9985
|
-
function validate$3(obj, path = '
|
|
10252
|
+
const VERSION$3 = "0bc134ba5fc7c9ad95ed90ab7be5bd2c";
|
|
10253
|
+
function validate$3(obj, path = 'EligibilityRuleParameterRepresentation') {
|
|
9986
10254
|
const v_error = (() => {
|
|
9987
10255
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9988
10256
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9989
10257
|
}
|
|
10258
|
+
if (obj.columnDataType !== undefined) {
|
|
10259
|
+
const obj_columnDataType = obj.columnDataType;
|
|
10260
|
+
const path_columnDataType = path + '.columnDataType';
|
|
10261
|
+
if (typeof obj_columnDataType !== 'string') {
|
|
10262
|
+
return new TypeError('Expected "string" but received "' + typeof obj_columnDataType + '" (at "' + path_columnDataType + '")');
|
|
10263
|
+
}
|
|
10264
|
+
}
|
|
9990
10265
|
if (obj.columnMapping !== undefined) {
|
|
9991
10266
|
const obj_columnMapping = obj.columnMapping;
|
|
9992
10267
|
const path_columnMapping = path + '.columnMapping';
|
|
@@ -10071,6 +10346,13 @@ function validate$3(obj, path = 'DecisionTableParameterOutputRepresentation') {
|
|
|
10071
10346
|
return new TypeError('Expected "string" but received "' + typeof obj_sortType + '" (at "' + path_sortType + '")');
|
|
10072
10347
|
}
|
|
10073
10348
|
}
|
|
10349
|
+
if (obj.sourceObjectLookUp !== undefined) {
|
|
10350
|
+
const obj_sourceObjectLookUp = obj.sourceObjectLookUp;
|
|
10351
|
+
const path_sourceObjectLookUp = path + '.sourceObjectLookUp';
|
|
10352
|
+
if (typeof obj_sourceObjectLookUp !== 'string') {
|
|
10353
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectLookUp + '" (at "' + path_sourceObjectLookUp + '")');
|
|
10354
|
+
}
|
|
10355
|
+
}
|
|
10074
10356
|
if (obj.usage !== undefined) {
|
|
10075
10357
|
const obj_usage = obj.usage;
|
|
10076
10358
|
const path_usage = path + '.usage';
|
|
@@ -10081,12 +10363,17 @@ function validate$3(obj, path = 'DecisionTableParameterOutputRepresentation') {
|
|
|
10081
10363
|
})();
|
|
10082
10364
|
return v_error === undefined ? null : v_error;
|
|
10083
10365
|
}
|
|
10084
|
-
const select$4 = function
|
|
10366
|
+
const select$4 = function EligibilityRuleParameterRepresentationSelect() {
|
|
10085
10367
|
return {
|
|
10086
10368
|
kind: 'Fragment',
|
|
10087
10369
|
version: VERSION$3,
|
|
10088
10370
|
private: [],
|
|
10089
10371
|
selections: [
|
|
10372
|
+
{
|
|
10373
|
+
name: 'columnDataType',
|
|
10374
|
+
kind: 'Scalar',
|
|
10375
|
+
required: false
|
|
10376
|
+
},
|
|
10090
10377
|
{
|
|
10091
10378
|
name: 'columnMapping',
|
|
10092
10379
|
kind: 'Scalar',
|
|
@@ -10147,6 +10434,11 @@ const select$4 = function DecisionTableParameterOutputRepresentationSelect() {
|
|
|
10147
10434
|
kind: 'Scalar',
|
|
10148
10435
|
required: false
|
|
10149
10436
|
},
|
|
10437
|
+
{
|
|
10438
|
+
name: 'sourceObjectLookUp',
|
|
10439
|
+
kind: 'Scalar',
|
|
10440
|
+
required: false
|
|
10441
|
+
},
|
|
10150
10442
|
{
|
|
10151
10443
|
name: 'usage',
|
|
10152
10444
|
kind: 'Scalar',
|
|
@@ -10234,6 +10526,19 @@ function equals$3(existing, incoming) {
|
|
|
10234
10526
|
return false;
|
|
10235
10527
|
}
|
|
10236
10528
|
}
|
|
10529
|
+
const existing_columnDataType = existing.columnDataType;
|
|
10530
|
+
const incoming_columnDataType = incoming.columnDataType;
|
|
10531
|
+
// if at least one of these optionals is defined
|
|
10532
|
+
if (existing_columnDataType !== undefined || incoming_columnDataType !== undefined) {
|
|
10533
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10534
|
+
// not equal
|
|
10535
|
+
if (existing_columnDataType === undefined || incoming_columnDataType === undefined) {
|
|
10536
|
+
return false;
|
|
10537
|
+
}
|
|
10538
|
+
if (!(existing_columnDataType === incoming_columnDataType)) {
|
|
10539
|
+
return false;
|
|
10540
|
+
}
|
|
10541
|
+
}
|
|
10237
10542
|
const existing_columnMapping = existing.columnMapping;
|
|
10238
10543
|
const incoming_columnMapping = incoming.columnMapping;
|
|
10239
10544
|
// if at least one of these optionals is defined
|
|
@@ -10312,6 +10617,19 @@ function equals$3(existing, incoming) {
|
|
|
10312
10617
|
return false;
|
|
10313
10618
|
}
|
|
10314
10619
|
}
|
|
10620
|
+
const existing_sourceObjectLookUp = existing.sourceObjectLookUp;
|
|
10621
|
+
const incoming_sourceObjectLookUp = incoming.sourceObjectLookUp;
|
|
10622
|
+
// if at least one of these optionals is defined
|
|
10623
|
+
if (existing_sourceObjectLookUp !== undefined || incoming_sourceObjectLookUp !== undefined) {
|
|
10624
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10625
|
+
// not equal
|
|
10626
|
+
if (existing_sourceObjectLookUp === undefined || incoming_sourceObjectLookUp === undefined) {
|
|
10627
|
+
return false;
|
|
10628
|
+
}
|
|
10629
|
+
if (!(existing_sourceObjectLookUp === incoming_sourceObjectLookUp)) {
|
|
10630
|
+
return false;
|
|
10631
|
+
}
|
|
10632
|
+
}
|
|
10315
10633
|
const existing_usage = existing.usage;
|
|
10316
10634
|
const incoming_usage = incoming.usage;
|
|
10317
10635
|
// if at least one of these optionals is defined
|
|
@@ -10475,17 +10793,12 @@ function equals$2(existing, incoming) {
|
|
|
10475
10793
|
return true;
|
|
10476
10794
|
}
|
|
10477
10795
|
|
|
10478
|
-
const VERSION$1 = "
|
|
10796
|
+
const VERSION$1 = "528d0c1033363f78ba017b5d63b84d7b";
|
|
10479
10797
|
function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
10480
10798
|
const v_error = (() => {
|
|
10481
10799
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10482
10800
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10483
10801
|
}
|
|
10484
|
-
const obj_cellLevelCriteriaEnabled = obj.cellLevelCriteriaEnabled;
|
|
10485
|
-
const path_cellLevelCriteriaEnabled = path + '.cellLevelCriteriaEnabled';
|
|
10486
|
-
if (typeof obj_cellLevelCriteriaEnabled !== 'boolean') {
|
|
10487
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_cellLevelCriteriaEnabled + '" (at "' + path_cellLevelCriteriaEnabled + '")');
|
|
10488
|
-
}
|
|
10489
10802
|
const obj_conditionCriteria = obj.conditionCriteria;
|
|
10490
10803
|
const path_conditionCriteria = path + '.conditionCriteria';
|
|
10491
10804
|
if (typeof obj_conditionCriteria !== 'string') {
|
|
@@ -10496,6 +10809,11 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10496
10809
|
if (typeof obj_conditionType !== 'string') {
|
|
10497
10810
|
return new TypeError('Expected "string" but received "' + typeof obj_conditionType + '" (at "' + path_conditionType + '")');
|
|
10498
10811
|
}
|
|
10812
|
+
const obj_createdDate = obj.createdDate;
|
|
10813
|
+
const path_createdDate = path + '.createdDate';
|
|
10814
|
+
if (typeof obj_createdDate !== 'string') {
|
|
10815
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
10816
|
+
}
|
|
10499
10817
|
const obj_decisionTableId = obj.decisionTableId;
|
|
10500
10818
|
const path_decisionTableId = path + '.decisionTableId';
|
|
10501
10819
|
if (typeof obj_decisionTableId !== 'string') {
|
|
@@ -10511,6 +10829,35 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10511
10829
|
if (typeof obj_description !== 'string') {
|
|
10512
10830
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
10513
10831
|
}
|
|
10832
|
+
const obj_hasIncrementalSyncFailed = obj.hasIncrementalSyncFailed;
|
|
10833
|
+
const path_hasIncrementalSyncFailed = path + '.hasIncrementalSyncFailed';
|
|
10834
|
+
if (typeof obj_hasIncrementalSyncFailed !== 'boolean') {
|
|
10835
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasIncrementalSyncFailed + '" (at "' + path_hasIncrementalSyncFailed + '")');
|
|
10836
|
+
}
|
|
10837
|
+
const obj_isIncrementalSyncEnabled = obj.isIncrementalSyncEnabled;
|
|
10838
|
+
const path_isIncrementalSyncEnabled = path + '.isIncrementalSyncEnabled';
|
|
10839
|
+
if (typeof obj_isIncrementalSyncEnabled !== 'boolean') {
|
|
10840
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementalSyncEnabled + '" (at "' + path_isIncrementalSyncEnabled + '")');
|
|
10841
|
+
}
|
|
10842
|
+
if (obj.lastIncrementalSyncDate !== undefined) {
|
|
10843
|
+
const obj_lastIncrementalSyncDate = obj.lastIncrementalSyncDate;
|
|
10844
|
+
const path_lastIncrementalSyncDate = path + '.lastIncrementalSyncDate';
|
|
10845
|
+
if (typeof obj_lastIncrementalSyncDate !== 'string') {
|
|
10846
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastIncrementalSyncDate + '" (at "' + path_lastIncrementalSyncDate + '")');
|
|
10847
|
+
}
|
|
10848
|
+
}
|
|
10849
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
10850
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
10851
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
10852
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
10853
|
+
}
|
|
10854
|
+
if (obj.lastSyncDate !== undefined) {
|
|
10855
|
+
const obj_lastSyncDate = obj.lastSyncDate;
|
|
10856
|
+
const path_lastSyncDate = path + '.lastSyncDate';
|
|
10857
|
+
if (typeof obj_lastSyncDate !== 'string') {
|
|
10858
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastSyncDate + '" (at "' + path_lastSyncDate + '")');
|
|
10859
|
+
}
|
|
10860
|
+
}
|
|
10514
10861
|
const obj_parameters = obj.parameters;
|
|
10515
10862
|
const path_parameters = path + '.parameters';
|
|
10516
10863
|
if (!ArrayIsArray(obj_parameters)) {
|
|
@@ -10521,11 +10868,28 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10521
10868
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
10522
10869
|
const referencepath_parameters_itemValidationError = validate$3(obj_parameters_item, path_parameters_item);
|
|
10523
10870
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
10524
|
-
let message = 'Object doesn\'t match
|
|
10871
|
+
let message = 'Object doesn\'t match EligibilityRuleParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
10525
10872
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10526
10873
|
return new TypeError(message);
|
|
10527
10874
|
}
|
|
10528
10875
|
}
|
|
10876
|
+
if (obj.refreshFailureReason !== undefined) {
|
|
10877
|
+
const obj_refreshFailureReason = obj.refreshFailureReason;
|
|
10878
|
+
const path_refreshFailureReason = path + '.refreshFailureReason';
|
|
10879
|
+
if (typeof obj_refreshFailureReason !== 'string') {
|
|
10880
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshFailureReason + '" (at "' + path_refreshFailureReason + '")');
|
|
10881
|
+
}
|
|
10882
|
+
}
|
|
10883
|
+
const obj_refreshStatus = obj.refreshStatus;
|
|
10884
|
+
const path_refreshStatus = path + '.refreshStatus';
|
|
10885
|
+
if (typeof obj_refreshStatus !== 'string') {
|
|
10886
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshStatus + '" (at "' + path_refreshStatus + '")');
|
|
10887
|
+
}
|
|
10888
|
+
const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
|
|
10889
|
+
const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
|
|
10890
|
+
if (typeof obj_rowLevelOverrideType !== 'string') {
|
|
10891
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rowLevelOverrideType + '" (at "' + path_rowLevelOverrideType + '")');
|
|
10892
|
+
}
|
|
10529
10893
|
const obj_sourceCriteria = obj.sourceCriteria;
|
|
10530
10894
|
const path_sourceCriteria = path + '.sourceCriteria';
|
|
10531
10895
|
if (!ArrayIsArray(obj_sourceCriteria)) {
|
|
@@ -10565,7 +10929,7 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10565
10929
|
return v_error === undefined ? null : v_error;
|
|
10566
10930
|
}
|
|
10567
10931
|
const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
10568
|
-
const { selections:
|
|
10932
|
+
const { selections: EligibilityRuleParameterRepresentation__selections, opaque: EligibilityRuleParameterRepresentation__opaque, } = select$4();
|
|
10569
10933
|
const { selections: DecisionTableSourceCriteriaOutputRepresentation__selections, opaque: DecisionTableSourceCriteriaOutputRepresentation__opaque, } = select$3();
|
|
10570
10934
|
return {
|
|
10571
10935
|
kind: 'Fragment',
|
|
@@ -10573,15 +10937,15 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10573
10937
|
private: [],
|
|
10574
10938
|
selections: [
|
|
10575
10939
|
{
|
|
10576
|
-
name: '
|
|
10940
|
+
name: 'conditionCriteria',
|
|
10577
10941
|
kind: 'Scalar'
|
|
10578
10942
|
},
|
|
10579
10943
|
{
|
|
10580
|
-
name: '
|
|
10944
|
+
name: 'conditionType',
|
|
10581
10945
|
kind: 'Scalar'
|
|
10582
10946
|
},
|
|
10583
10947
|
{
|
|
10584
|
-
name: '
|
|
10948
|
+
name: 'createdDate',
|
|
10585
10949
|
kind: 'Scalar'
|
|
10586
10950
|
},
|
|
10587
10951
|
{
|
|
@@ -10596,11 +10960,46 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10596
10960
|
name: 'description',
|
|
10597
10961
|
kind: 'Scalar'
|
|
10598
10962
|
},
|
|
10963
|
+
{
|
|
10964
|
+
name: 'hasIncrementalSyncFailed',
|
|
10965
|
+
kind: 'Scalar'
|
|
10966
|
+
},
|
|
10967
|
+
{
|
|
10968
|
+
name: 'isIncrementalSyncEnabled',
|
|
10969
|
+
kind: 'Scalar'
|
|
10970
|
+
},
|
|
10971
|
+
{
|
|
10972
|
+
name: 'lastIncrementalSyncDate',
|
|
10973
|
+
kind: 'Scalar',
|
|
10974
|
+
required: false
|
|
10975
|
+
},
|
|
10976
|
+
{
|
|
10977
|
+
name: 'lastModifiedDate',
|
|
10978
|
+
kind: 'Scalar'
|
|
10979
|
+
},
|
|
10980
|
+
{
|
|
10981
|
+
name: 'lastSyncDate',
|
|
10982
|
+
kind: 'Scalar',
|
|
10983
|
+
required: false
|
|
10984
|
+
},
|
|
10599
10985
|
{
|
|
10600
10986
|
name: 'parameters',
|
|
10601
10987
|
kind: 'Object',
|
|
10602
10988
|
plural: true,
|
|
10603
|
-
selections:
|
|
10989
|
+
selections: EligibilityRuleParameterRepresentation__selections
|
|
10990
|
+
},
|
|
10991
|
+
{
|
|
10992
|
+
name: 'refreshFailureReason',
|
|
10993
|
+
kind: 'Scalar',
|
|
10994
|
+
required: false
|
|
10995
|
+
},
|
|
10996
|
+
{
|
|
10997
|
+
name: 'refreshStatus',
|
|
10998
|
+
kind: 'Scalar'
|
|
10999
|
+
},
|
|
11000
|
+
{
|
|
11001
|
+
name: 'rowLevelOverrideType',
|
|
11002
|
+
kind: 'Scalar'
|
|
10604
11003
|
},
|
|
10605
11004
|
{
|
|
10606
11005
|
name: 'sourceCriteria',
|
|
@@ -10628,9 +11027,14 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10628
11027
|
};
|
|
10629
11028
|
};
|
|
10630
11029
|
function equals$1(existing, incoming) {
|
|
10631
|
-
const
|
|
10632
|
-
const
|
|
10633
|
-
if (!(
|
|
11030
|
+
const existing_hasIncrementalSyncFailed = existing.hasIncrementalSyncFailed;
|
|
11031
|
+
const incoming_hasIncrementalSyncFailed = incoming.hasIncrementalSyncFailed;
|
|
11032
|
+
if (!(existing_hasIncrementalSyncFailed === incoming_hasIncrementalSyncFailed)) {
|
|
11033
|
+
return false;
|
|
11034
|
+
}
|
|
11035
|
+
const existing_isIncrementalSyncEnabled = existing.isIncrementalSyncEnabled;
|
|
11036
|
+
const incoming_isIncrementalSyncEnabled = incoming.isIncrementalSyncEnabled;
|
|
11037
|
+
if (!(existing_isIncrementalSyncEnabled === incoming_isIncrementalSyncEnabled)) {
|
|
10634
11038
|
return false;
|
|
10635
11039
|
}
|
|
10636
11040
|
const existing_conditionCriteria = existing.conditionCriteria;
|
|
@@ -10643,6 +11047,11 @@ function equals$1(existing, incoming) {
|
|
|
10643
11047
|
if (!(existing_conditionType === incoming_conditionType)) {
|
|
10644
11048
|
return false;
|
|
10645
11049
|
}
|
|
11050
|
+
const existing_createdDate = existing.createdDate;
|
|
11051
|
+
const incoming_createdDate = incoming.createdDate;
|
|
11052
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
11053
|
+
return false;
|
|
11054
|
+
}
|
|
10646
11055
|
const existing_decisionTableId = existing.decisionTableId;
|
|
10647
11056
|
const incoming_decisionTableId = incoming.decisionTableId;
|
|
10648
11057
|
if (!(existing_decisionTableId === incoming_decisionTableId)) {
|
|
@@ -10658,6 +11067,60 @@ function equals$1(existing, incoming) {
|
|
|
10658
11067
|
if (!(existing_description === incoming_description)) {
|
|
10659
11068
|
return false;
|
|
10660
11069
|
}
|
|
11070
|
+
const existing_lastIncrementalSyncDate = existing.lastIncrementalSyncDate;
|
|
11071
|
+
const incoming_lastIncrementalSyncDate = incoming.lastIncrementalSyncDate;
|
|
11072
|
+
// if at least one of these optionals is defined
|
|
11073
|
+
if (existing_lastIncrementalSyncDate !== undefined || incoming_lastIncrementalSyncDate !== undefined) {
|
|
11074
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11075
|
+
// not equal
|
|
11076
|
+
if (existing_lastIncrementalSyncDate === undefined || incoming_lastIncrementalSyncDate === undefined) {
|
|
11077
|
+
return false;
|
|
11078
|
+
}
|
|
11079
|
+
if (!(existing_lastIncrementalSyncDate === incoming_lastIncrementalSyncDate)) {
|
|
11080
|
+
return false;
|
|
11081
|
+
}
|
|
11082
|
+
}
|
|
11083
|
+
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
11084
|
+
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
11085
|
+
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
11086
|
+
return false;
|
|
11087
|
+
}
|
|
11088
|
+
const existing_lastSyncDate = existing.lastSyncDate;
|
|
11089
|
+
const incoming_lastSyncDate = incoming.lastSyncDate;
|
|
11090
|
+
// if at least one of these optionals is defined
|
|
11091
|
+
if (existing_lastSyncDate !== undefined || incoming_lastSyncDate !== undefined) {
|
|
11092
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11093
|
+
// not equal
|
|
11094
|
+
if (existing_lastSyncDate === undefined || incoming_lastSyncDate === undefined) {
|
|
11095
|
+
return false;
|
|
11096
|
+
}
|
|
11097
|
+
if (!(existing_lastSyncDate === incoming_lastSyncDate)) {
|
|
11098
|
+
return false;
|
|
11099
|
+
}
|
|
11100
|
+
}
|
|
11101
|
+
const existing_refreshFailureReason = existing.refreshFailureReason;
|
|
11102
|
+
const incoming_refreshFailureReason = incoming.refreshFailureReason;
|
|
11103
|
+
// if at least one of these optionals is defined
|
|
11104
|
+
if (existing_refreshFailureReason !== undefined || incoming_refreshFailureReason !== undefined) {
|
|
11105
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11106
|
+
// not equal
|
|
11107
|
+
if (existing_refreshFailureReason === undefined || incoming_refreshFailureReason === undefined) {
|
|
11108
|
+
return false;
|
|
11109
|
+
}
|
|
11110
|
+
if (!(existing_refreshFailureReason === incoming_refreshFailureReason)) {
|
|
11111
|
+
return false;
|
|
11112
|
+
}
|
|
11113
|
+
}
|
|
11114
|
+
const existing_refreshStatus = existing.refreshStatus;
|
|
11115
|
+
const incoming_refreshStatus = incoming.refreshStatus;
|
|
11116
|
+
if (!(existing_refreshStatus === incoming_refreshStatus)) {
|
|
11117
|
+
return false;
|
|
11118
|
+
}
|
|
11119
|
+
const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
|
|
11120
|
+
const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
|
|
11121
|
+
if (!(existing_rowLevelOverrideType === incoming_rowLevelOverrideType)) {
|
|
11122
|
+
return false;
|
|
11123
|
+
}
|
|
10661
11124
|
const existing_sourceObject = existing.sourceObject;
|
|
10662
11125
|
const incoming_sourceObject = incoming.sourceObject;
|
|
10663
11126
|
if (!(existing_sourceObject === incoming_sourceObject)) {
|