@salesforce/lds-adapters-service-ecm 1.398.0 → 1.400.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 +265 -140
- package/dist/es/es2018/types/src/generated/adapters/saveEligibilityRule.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationEligibilityRule.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleDetailsRepresentation.d.ts +15 -15
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleMetadataRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleRepresentation.d.ts +8 -8
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleValueInputRepresentation.d.ts +4 -7
- package/package.json +3 -3
- package/sfdc/index.js +266 -141
- package/src/raml/api.raml +16 -20
- package/src/raml/luvio.raml +1 -1
|
@@ -10000,15 +10000,12 @@ function validate$5(obj, path = 'EligibilityRuleValueInputRepresentation') {
|
|
|
10000
10000
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10001
10001
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10002
10002
|
}
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
const path_domainEntityId = path + '.domainEntityId';
|
|
10010
|
-
if (typeof obj_domainEntityId !== 'string') {
|
|
10011
|
-
return new TypeError('Expected "string" but received "' + typeof obj_domainEntityId + '" (at "' + path_domainEntityId + '")');
|
|
10003
|
+
if (obj.domainEntity !== undefined) {
|
|
10004
|
+
const obj_domainEntity = obj.domainEntity;
|
|
10005
|
+
const path_domainEntity = path + '.domainEntity';
|
|
10006
|
+
if (typeof obj_domainEntity !== 'string') {
|
|
10007
|
+
return new TypeError('Expected "string" but received "' + typeof obj_domainEntity + '" (at "' + path_domainEntity + '")');
|
|
10008
|
+
}
|
|
10012
10009
|
}
|
|
10013
10010
|
const obj_fieldName = obj.fieldName;
|
|
10014
10011
|
const path_fieldName = path + '.fieldName';
|
|
@@ -10030,26 +10027,30 @@ function validate$5(obj, path = 'EligibilityRuleValueInputRepresentation') {
|
|
|
10030
10027
|
}
|
|
10031
10028
|
|
|
10032
10029
|
const TTL = 6000;
|
|
10033
|
-
const VERSION$4 = "
|
|
10030
|
+
const VERSION$4 = "8ba0bda2c64677172a2b1cab4c2535ab";
|
|
10034
10031
|
function validate$4(obj, path = 'EligibilityRuleRepresentation') {
|
|
10035
10032
|
const v_error = (() => {
|
|
10036
10033
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10037
10034
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10038
10035
|
}
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10036
|
+
if (obj.createdDateTime !== undefined) {
|
|
10037
|
+
const obj_createdDateTime = obj.createdDateTime;
|
|
10038
|
+
const path_createdDateTime = path + '.createdDateTime';
|
|
10039
|
+
if (typeof obj_createdDateTime !== 'string') {
|
|
10040
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDateTime + '" (at "' + path_createdDateTime + '")');
|
|
10041
|
+
}
|
|
10043
10042
|
}
|
|
10044
10043
|
const obj_message = obj.message;
|
|
10045
10044
|
const path_message = path + '.message';
|
|
10046
10045
|
if (typeof obj_message !== 'string') {
|
|
10047
10046
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
10048
10047
|
}
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10048
|
+
if (obj.sourceObjectRecordId !== undefined) {
|
|
10049
|
+
const obj_sourceObjectRecordId = obj.sourceObjectRecordId;
|
|
10050
|
+
const path_sourceObjectRecordId = path + '.sourceObjectRecordId';
|
|
10051
|
+
if (typeof obj_sourceObjectRecordId !== 'string') {
|
|
10052
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectRecordId + '" (at "' + path_sourceObjectRecordId + '")');
|
|
10053
|
+
}
|
|
10053
10054
|
}
|
|
10054
10055
|
const obj_status = obj.status;
|
|
10055
10056
|
const path_status = path + '.status';
|
|
@@ -10061,11 +10062,11 @@ function validate$4(obj, path = 'EligibilityRuleRepresentation') {
|
|
|
10061
10062
|
}
|
|
10062
10063
|
const RepresentationType$1 = 'EligibilityRuleRepresentation';
|
|
10063
10064
|
function keyBuilder$2(luvio, config) {
|
|
10064
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.
|
|
10065
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.message;
|
|
10065
10066
|
}
|
|
10066
10067
|
function keyBuilderFromType(luvio, object) {
|
|
10067
10068
|
const keyParams = {
|
|
10068
|
-
|
|
10069
|
+
message: object.message
|
|
10069
10070
|
};
|
|
10070
10071
|
return keyBuilder$2(luvio, keyParams);
|
|
10071
10072
|
}
|
|
@@ -10080,7 +10081,8 @@ const select$6 = function EligibilityRuleRepresentationSelect() {
|
|
|
10080
10081
|
selections: [
|
|
10081
10082
|
{
|
|
10082
10083
|
name: 'createdDateTime',
|
|
10083
|
-
kind: 'Scalar'
|
|
10084
|
+
kind: 'Scalar',
|
|
10085
|
+
required: false
|
|
10084
10086
|
},
|
|
10085
10087
|
{
|
|
10086
10088
|
name: 'message',
|
|
@@ -10088,7 +10090,8 @@ const select$6 = function EligibilityRuleRepresentationSelect() {
|
|
|
10088
10090
|
},
|
|
10089
10091
|
{
|
|
10090
10092
|
name: 'sourceObjectRecordId',
|
|
10091
|
-
kind: 'Scalar'
|
|
10093
|
+
kind: 'Scalar',
|
|
10094
|
+
required: false
|
|
10092
10095
|
},
|
|
10093
10096
|
{
|
|
10094
10097
|
name: 'status',
|
|
@@ -10100,8 +10103,16 @@ const select$6 = function EligibilityRuleRepresentationSelect() {
|
|
|
10100
10103
|
function equals$4(existing, incoming) {
|
|
10101
10104
|
const existing_createdDateTime = existing.createdDateTime;
|
|
10102
10105
|
const incoming_createdDateTime = incoming.createdDateTime;
|
|
10103
|
-
if
|
|
10104
|
-
|
|
10106
|
+
// if at least one of these optionals is defined
|
|
10107
|
+
if (existing_createdDateTime !== undefined || incoming_createdDateTime !== undefined) {
|
|
10108
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10109
|
+
// not equal
|
|
10110
|
+
if (existing_createdDateTime === undefined || incoming_createdDateTime === undefined) {
|
|
10111
|
+
return false;
|
|
10112
|
+
}
|
|
10113
|
+
if (!(existing_createdDateTime === incoming_createdDateTime)) {
|
|
10114
|
+
return false;
|
|
10115
|
+
}
|
|
10105
10116
|
}
|
|
10106
10117
|
const existing_message = existing.message;
|
|
10107
10118
|
const incoming_message = incoming.message;
|
|
@@ -10110,8 +10121,16 @@ function equals$4(existing, incoming) {
|
|
|
10110
10121
|
}
|
|
10111
10122
|
const existing_sourceObjectRecordId = existing.sourceObjectRecordId;
|
|
10112
10123
|
const incoming_sourceObjectRecordId = incoming.sourceObjectRecordId;
|
|
10113
|
-
if
|
|
10114
|
-
|
|
10124
|
+
// if at least one of these optionals is defined
|
|
10125
|
+
if (existing_sourceObjectRecordId !== undefined || incoming_sourceObjectRecordId !== undefined) {
|
|
10126
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10127
|
+
// not equal
|
|
10128
|
+
if (existing_sourceObjectRecordId === undefined || incoming_sourceObjectRecordId === undefined) {
|
|
10129
|
+
return false;
|
|
10130
|
+
}
|
|
10131
|
+
if (!(existing_sourceObjectRecordId === incoming_sourceObjectRecordId)) {
|
|
10132
|
+
return false;
|
|
10133
|
+
}
|
|
10115
10134
|
}
|
|
10116
10135
|
const existing_status = existing.status;
|
|
10117
10136
|
const incoming_status = incoming.status;
|
|
@@ -10185,7 +10204,7 @@ const saveEligibilityRule_ConfigPropertyMetadata = [
|
|
|
10185
10204
|
generateParamConfigMetadata('conditionType', true, 2 /* Body */, 0 /* String */),
|
|
10186
10205
|
generateParamConfigMetadata('decisionTableId', true, 2 /* Body */, 0 /* String */),
|
|
10187
10206
|
generateParamConfigMetadata('sourceObjectName', true, 2 /* Body */, 0 /* String */),
|
|
10188
|
-
generateParamConfigMetadata('sourceObjectRecordId',
|
|
10207
|
+
generateParamConfigMetadata('sourceObjectRecordId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
10189
10208
|
generateParamConfigMetadata('ruleValue', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10190
10209
|
];
|
|
10191
10210
|
const saveEligibilityRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, saveEligibilityRule_ConfigPropertyMetadata);
|
|
@@ -10193,6 +10212,13 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(saveEligibil
|
|
|
10193
10212
|
function typeCheckConfig$1(untrustedConfig) {
|
|
10194
10213
|
const config = {};
|
|
10195
10214
|
typeCheckConfig$g(untrustedConfig, config, saveEligibilityRule_ConfigPropertyMetadata);
|
|
10215
|
+
const untrustedConfig_sourceObjectRecordId = untrustedConfig.sourceObjectRecordId;
|
|
10216
|
+
if (typeof untrustedConfig_sourceObjectRecordId === 'string') {
|
|
10217
|
+
config.sourceObjectRecordId = untrustedConfig_sourceObjectRecordId;
|
|
10218
|
+
}
|
|
10219
|
+
if (untrustedConfig_sourceObjectRecordId === null) {
|
|
10220
|
+
config.sourceObjectRecordId = untrustedConfig_sourceObjectRecordId;
|
|
10221
|
+
}
|
|
10196
10222
|
const untrustedConfig_ruleValue = untrustedConfig.ruleValue;
|
|
10197
10223
|
if (ArrayIsArray$1(untrustedConfig_ruleValue)) {
|
|
10198
10224
|
const untrustedConfig_ruleValue_array = [];
|
|
@@ -10793,7 +10819,7 @@ function equals$2(existing, incoming) {
|
|
|
10793
10819
|
return true;
|
|
10794
10820
|
}
|
|
10795
10821
|
|
|
10796
|
-
const VERSION$1 = "
|
|
10822
|
+
const VERSION$1 = "55f724b58c73a67346c037f8dde8ece8";
|
|
10797
10823
|
function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
10798
10824
|
const v_error = (() => {
|
|
10799
10825
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10824,20 +10850,26 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10824
10850
|
if (typeof obj_decisionTableName !== 'string') {
|
|
10825
10851
|
return new TypeError('Expected "string" but received "' + typeof obj_decisionTableName + '" (at "' + path_decisionTableName + '")');
|
|
10826
10852
|
}
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10853
|
+
if (obj.description !== undefined) {
|
|
10854
|
+
const obj_description = obj.description;
|
|
10855
|
+
const path_description = path + '.description';
|
|
10856
|
+
if (typeof obj_description !== 'string') {
|
|
10857
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
10858
|
+
}
|
|
10831
10859
|
}
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10860
|
+
if (obj.hasIncrementalSyncFailed !== undefined) {
|
|
10861
|
+
const obj_hasIncrementalSyncFailed = obj.hasIncrementalSyncFailed;
|
|
10862
|
+
const path_hasIncrementalSyncFailed = path + '.hasIncrementalSyncFailed';
|
|
10863
|
+
if (typeof obj_hasIncrementalSyncFailed !== 'boolean') {
|
|
10864
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasIncrementalSyncFailed + '" (at "' + path_hasIncrementalSyncFailed + '")');
|
|
10865
|
+
}
|
|
10836
10866
|
}
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10867
|
+
if (obj.isIncrementalSyncEnabled !== undefined) {
|
|
10868
|
+
const obj_isIncrementalSyncEnabled = obj.isIncrementalSyncEnabled;
|
|
10869
|
+
const path_isIncrementalSyncEnabled = path + '.isIncrementalSyncEnabled';
|
|
10870
|
+
if (typeof obj_isIncrementalSyncEnabled !== 'boolean') {
|
|
10871
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementalSyncEnabled + '" (at "' + path_isIncrementalSyncEnabled + '")');
|
|
10872
|
+
}
|
|
10841
10873
|
}
|
|
10842
10874
|
if (obj.lastIncrementalSyncDate !== undefined) {
|
|
10843
10875
|
const obj_lastIncrementalSyncDate = obj.lastIncrementalSyncDate;
|
|
@@ -10858,19 +10890,21 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10858
10890
|
return new TypeError('Expected "string" but received "' + typeof obj_lastSyncDate + '" (at "' + path_lastSyncDate + '")');
|
|
10859
10891
|
}
|
|
10860
10892
|
}
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10893
|
+
if (obj.parameters !== undefined) {
|
|
10894
|
+
const obj_parameters = obj.parameters;
|
|
10895
|
+
const path_parameters = path + '.parameters';
|
|
10896
|
+
if (!ArrayIsArray(obj_parameters)) {
|
|
10897
|
+
return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
|
|
10898
|
+
}
|
|
10899
|
+
for (let i = 0; i < obj_parameters.length; i++) {
|
|
10900
|
+
const obj_parameters_item = obj_parameters[i];
|
|
10901
|
+
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
10902
|
+
const referencepath_parameters_itemValidationError = validate$3(obj_parameters_item, path_parameters_item);
|
|
10903
|
+
if (referencepath_parameters_itemValidationError !== null) {
|
|
10904
|
+
let message = 'Object doesn\'t match EligibilityRuleParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
10905
|
+
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10906
|
+
return new TypeError(message);
|
|
10907
|
+
}
|
|
10874
10908
|
}
|
|
10875
10909
|
}
|
|
10876
10910
|
if (obj.refreshFailureReason !== undefined) {
|
|
@@ -10880,29 +10914,33 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10880
10914
|
return new TypeError('Expected "string" but received "' + typeof obj_refreshFailureReason + '" (at "' + path_refreshFailureReason + '")');
|
|
10881
10915
|
}
|
|
10882
10916
|
}
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10917
|
+
if (obj.refreshStatus !== undefined) {
|
|
10918
|
+
const obj_refreshStatus = obj.refreshStatus;
|
|
10919
|
+
const path_refreshStatus = path + '.refreshStatus';
|
|
10920
|
+
if (typeof obj_refreshStatus !== 'string') {
|
|
10921
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshStatus + '" (at "' + path_refreshStatus + '")');
|
|
10922
|
+
}
|
|
10887
10923
|
}
|
|
10888
10924
|
const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
|
|
10889
10925
|
const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
|
|
10890
10926
|
if (typeof obj_rowLevelOverrideType !== 'string') {
|
|
10891
10927
|
return new TypeError('Expected "string" but received "' + typeof obj_rowLevelOverrideType + '" (at "' + path_rowLevelOverrideType + '")');
|
|
10892
10928
|
}
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10929
|
+
if (obj.sourceCriteria !== undefined) {
|
|
10930
|
+
const obj_sourceCriteria = obj.sourceCriteria;
|
|
10931
|
+
const path_sourceCriteria = path + '.sourceCriteria';
|
|
10932
|
+
if (!ArrayIsArray(obj_sourceCriteria)) {
|
|
10933
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sourceCriteria + '" (at "' + path_sourceCriteria + '")');
|
|
10934
|
+
}
|
|
10935
|
+
for (let i = 0; i < obj_sourceCriteria.length; i++) {
|
|
10936
|
+
const obj_sourceCriteria_item = obj_sourceCriteria[i];
|
|
10937
|
+
const path_sourceCriteria_item = path_sourceCriteria + '[' + i + ']';
|
|
10938
|
+
const referencepath_sourceCriteria_itemValidationError = validate$2(obj_sourceCriteria_item, path_sourceCriteria_item);
|
|
10939
|
+
if (referencepath_sourceCriteria_itemValidationError !== null) {
|
|
10940
|
+
let message = 'Object doesn\'t match DecisionTableSourceCriteriaOutputRepresentation (at "' + path_sourceCriteria_item + '")\n';
|
|
10941
|
+
message += referencepath_sourceCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10942
|
+
return new TypeError(message);
|
|
10943
|
+
}
|
|
10906
10944
|
}
|
|
10907
10945
|
}
|
|
10908
10946
|
const obj_sourceObject = obj.sourceObject;
|
|
@@ -10920,10 +10958,12 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10920
10958
|
if (typeof obj_status !== 'string') {
|
|
10921
10959
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
10922
10960
|
}
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10961
|
+
if (obj.usageType !== undefined) {
|
|
10962
|
+
const obj_usageType = obj.usageType;
|
|
10963
|
+
const path_usageType = path + '.usageType';
|
|
10964
|
+
if (typeof obj_usageType !== 'string') {
|
|
10965
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
|
|
10966
|
+
}
|
|
10927
10967
|
}
|
|
10928
10968
|
})();
|
|
10929
10969
|
return v_error === undefined ? null : v_error;
|
|
@@ -10958,15 +10998,18 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10958
10998
|
},
|
|
10959
10999
|
{
|
|
10960
11000
|
name: 'description',
|
|
10961
|
-
kind: 'Scalar'
|
|
11001
|
+
kind: 'Scalar',
|
|
11002
|
+
required: false
|
|
10962
11003
|
},
|
|
10963
11004
|
{
|
|
10964
11005
|
name: 'hasIncrementalSyncFailed',
|
|
10965
|
-
kind: 'Scalar'
|
|
11006
|
+
kind: 'Scalar',
|
|
11007
|
+
required: false
|
|
10966
11008
|
},
|
|
10967
11009
|
{
|
|
10968
11010
|
name: 'isIncrementalSyncEnabled',
|
|
10969
|
-
kind: 'Scalar'
|
|
11011
|
+
kind: 'Scalar',
|
|
11012
|
+
required: false
|
|
10970
11013
|
},
|
|
10971
11014
|
{
|
|
10972
11015
|
name: 'lastIncrementalSyncDate',
|
|
@@ -10986,7 +11029,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10986
11029
|
name: 'parameters',
|
|
10987
11030
|
kind: 'Object',
|
|
10988
11031
|
plural: true,
|
|
10989
|
-
selections: EligibilityRuleParameterRepresentation__selections
|
|
11032
|
+
selections: EligibilityRuleParameterRepresentation__selections,
|
|
11033
|
+
required: false
|
|
10990
11034
|
},
|
|
10991
11035
|
{
|
|
10992
11036
|
name: 'refreshFailureReason',
|
|
@@ -10995,7 +11039,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10995
11039
|
},
|
|
10996
11040
|
{
|
|
10997
11041
|
name: 'refreshStatus',
|
|
10998
|
-
kind: 'Scalar'
|
|
11042
|
+
kind: 'Scalar',
|
|
11043
|
+
required: false
|
|
10999
11044
|
},
|
|
11000
11045
|
{
|
|
11001
11046
|
name: 'rowLevelOverrideType',
|
|
@@ -11005,7 +11050,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
11005
11050
|
name: 'sourceCriteria',
|
|
11006
11051
|
kind: 'Object',
|
|
11007
11052
|
plural: true,
|
|
11008
|
-
selections: DecisionTableSourceCriteriaOutputRepresentation__selections
|
|
11053
|
+
selections: DecisionTableSourceCriteriaOutputRepresentation__selections,
|
|
11054
|
+
required: false
|
|
11009
11055
|
},
|
|
11010
11056
|
{
|
|
11011
11057
|
name: 'sourceObject',
|
|
@@ -11021,7 +11067,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
11021
11067
|
},
|
|
11022
11068
|
{
|
|
11023
11069
|
name: 'usageType',
|
|
11024
|
-
kind: 'Scalar'
|
|
11070
|
+
kind: 'Scalar',
|
|
11071
|
+
required: false
|
|
11025
11072
|
}
|
|
11026
11073
|
]
|
|
11027
11074
|
};
|
|
@@ -11029,13 +11076,29 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
11029
11076
|
function equals$1(existing, incoming) {
|
|
11030
11077
|
const existing_hasIncrementalSyncFailed = existing.hasIncrementalSyncFailed;
|
|
11031
11078
|
const incoming_hasIncrementalSyncFailed = incoming.hasIncrementalSyncFailed;
|
|
11032
|
-
if
|
|
11033
|
-
|
|
11079
|
+
// if at least one of these optionals is defined
|
|
11080
|
+
if (existing_hasIncrementalSyncFailed !== undefined || incoming_hasIncrementalSyncFailed !== undefined) {
|
|
11081
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11082
|
+
// not equal
|
|
11083
|
+
if (existing_hasIncrementalSyncFailed === undefined || incoming_hasIncrementalSyncFailed === undefined) {
|
|
11084
|
+
return false;
|
|
11085
|
+
}
|
|
11086
|
+
if (!(existing_hasIncrementalSyncFailed === incoming_hasIncrementalSyncFailed)) {
|
|
11087
|
+
return false;
|
|
11088
|
+
}
|
|
11034
11089
|
}
|
|
11035
11090
|
const existing_isIncrementalSyncEnabled = existing.isIncrementalSyncEnabled;
|
|
11036
11091
|
const incoming_isIncrementalSyncEnabled = incoming.isIncrementalSyncEnabled;
|
|
11037
|
-
if
|
|
11038
|
-
|
|
11092
|
+
// if at least one of these optionals is defined
|
|
11093
|
+
if (existing_isIncrementalSyncEnabled !== undefined || incoming_isIncrementalSyncEnabled !== undefined) {
|
|
11094
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11095
|
+
// not equal
|
|
11096
|
+
if (existing_isIncrementalSyncEnabled === undefined || incoming_isIncrementalSyncEnabled === undefined) {
|
|
11097
|
+
return false;
|
|
11098
|
+
}
|
|
11099
|
+
if (!(existing_isIncrementalSyncEnabled === incoming_isIncrementalSyncEnabled)) {
|
|
11100
|
+
return false;
|
|
11101
|
+
}
|
|
11039
11102
|
}
|
|
11040
11103
|
const existing_conditionCriteria = existing.conditionCriteria;
|
|
11041
11104
|
const incoming_conditionCriteria = incoming.conditionCriteria;
|
|
@@ -11064,8 +11127,16 @@ function equals$1(existing, incoming) {
|
|
|
11064
11127
|
}
|
|
11065
11128
|
const existing_description = existing.description;
|
|
11066
11129
|
const incoming_description = incoming.description;
|
|
11067
|
-
if
|
|
11068
|
-
|
|
11130
|
+
// if at least one of these optionals is defined
|
|
11131
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
11132
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11133
|
+
// not equal
|
|
11134
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
11135
|
+
return false;
|
|
11136
|
+
}
|
|
11137
|
+
if (!(existing_description === incoming_description)) {
|
|
11138
|
+
return false;
|
|
11139
|
+
}
|
|
11069
11140
|
}
|
|
11070
11141
|
const existing_lastIncrementalSyncDate = existing.lastIncrementalSyncDate;
|
|
11071
11142
|
const incoming_lastIncrementalSyncDate = incoming.lastIncrementalSyncDate;
|
|
@@ -11113,8 +11184,16 @@ function equals$1(existing, incoming) {
|
|
|
11113
11184
|
}
|
|
11114
11185
|
const existing_refreshStatus = existing.refreshStatus;
|
|
11115
11186
|
const incoming_refreshStatus = incoming.refreshStatus;
|
|
11116
|
-
if
|
|
11117
|
-
|
|
11187
|
+
// if at least one of these optionals is defined
|
|
11188
|
+
if (existing_refreshStatus !== undefined || incoming_refreshStatus !== undefined) {
|
|
11189
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11190
|
+
// not equal
|
|
11191
|
+
if (existing_refreshStatus === undefined || incoming_refreshStatus === undefined) {
|
|
11192
|
+
return false;
|
|
11193
|
+
}
|
|
11194
|
+
if (!(existing_refreshStatus === incoming_refreshStatus)) {
|
|
11195
|
+
return false;
|
|
11196
|
+
}
|
|
11118
11197
|
}
|
|
11119
11198
|
const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
|
|
11120
11199
|
const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
|
|
@@ -11138,51 +11217,77 @@ function equals$1(existing, incoming) {
|
|
|
11138
11217
|
}
|
|
11139
11218
|
const existing_usageType = existing.usageType;
|
|
11140
11219
|
const incoming_usageType = incoming.usageType;
|
|
11141
|
-
if
|
|
11142
|
-
|
|
11220
|
+
// if at least one of these optionals is defined
|
|
11221
|
+
if (existing_usageType !== undefined || incoming_usageType !== undefined) {
|
|
11222
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11223
|
+
// not equal
|
|
11224
|
+
if (existing_usageType === undefined || incoming_usageType === undefined) {
|
|
11225
|
+
return false;
|
|
11226
|
+
}
|
|
11227
|
+
if (!(existing_usageType === incoming_usageType)) {
|
|
11228
|
+
return false;
|
|
11229
|
+
}
|
|
11143
11230
|
}
|
|
11144
11231
|
const existing_parameters = existing.parameters;
|
|
11145
11232
|
const incoming_parameters = incoming.parameters;
|
|
11146
|
-
|
|
11147
|
-
|
|
11233
|
+
// if at least one of these optionals is defined
|
|
11234
|
+
if (existing_parameters !== undefined || incoming_parameters !== undefined) {
|
|
11235
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11236
|
+
// not equal
|
|
11237
|
+
if (existing_parameters === undefined || incoming_parameters === undefined) {
|
|
11238
|
+
return false;
|
|
11239
|
+
}
|
|
11240
|
+
const equals_parameters_items = equalsArray(existing_parameters, incoming_parameters, (existing_parameters_item, incoming_parameters_item) => {
|
|
11241
|
+
if (!(equals$3(existing_parameters_item, incoming_parameters_item))) {
|
|
11242
|
+
return false;
|
|
11243
|
+
}
|
|
11244
|
+
});
|
|
11245
|
+
if (equals_parameters_items === false) {
|
|
11148
11246
|
return false;
|
|
11149
11247
|
}
|
|
11150
|
-
});
|
|
11151
|
-
if (equals_parameters_items === false) {
|
|
11152
|
-
return false;
|
|
11153
11248
|
}
|
|
11154
11249
|
const existing_sourceCriteria = existing.sourceCriteria;
|
|
11155
11250
|
const incoming_sourceCriteria = incoming.sourceCriteria;
|
|
11156
|
-
|
|
11157
|
-
|
|
11251
|
+
// if at least one of these optionals is defined
|
|
11252
|
+
if (existing_sourceCriteria !== undefined || incoming_sourceCriteria !== undefined) {
|
|
11253
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11254
|
+
// not equal
|
|
11255
|
+
if (existing_sourceCriteria === undefined || incoming_sourceCriteria === undefined) {
|
|
11256
|
+
return false;
|
|
11257
|
+
}
|
|
11258
|
+
const equals_sourceCriteria_items = equalsArray(existing_sourceCriteria, incoming_sourceCriteria, (existing_sourceCriteria_item, incoming_sourceCriteria_item) => {
|
|
11259
|
+
if (!(equals$2(existing_sourceCriteria_item, incoming_sourceCriteria_item))) {
|
|
11260
|
+
return false;
|
|
11261
|
+
}
|
|
11262
|
+
});
|
|
11263
|
+
if (equals_sourceCriteria_items === false) {
|
|
11158
11264
|
return false;
|
|
11159
11265
|
}
|
|
11160
|
-
});
|
|
11161
|
-
if (equals_sourceCriteria_items === false) {
|
|
11162
|
-
return false;
|
|
11163
11266
|
}
|
|
11164
11267
|
return true;
|
|
11165
11268
|
}
|
|
11166
11269
|
|
|
11167
|
-
const VERSION = "
|
|
11270
|
+
const VERSION = "22212385b6ce3208b59091ec88e23c6d";
|
|
11168
11271
|
function validate(obj, path = 'EligibilityRuleMetadataRepresentation') {
|
|
11169
11272
|
const v_error = (() => {
|
|
11170
11273
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11171
11274
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11172
11275
|
}
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11276
|
+
if (obj.disQualificationDecisionTableDetails !== undefined) {
|
|
11277
|
+
const obj_disQualificationDecisionTableDetails = obj.disQualificationDecisionTableDetails;
|
|
11278
|
+
const path_disQualificationDecisionTableDetails = path + '.disQualificationDecisionTableDetails';
|
|
11279
|
+
if (!ArrayIsArray(obj_disQualificationDecisionTableDetails)) {
|
|
11280
|
+
return new TypeError('Expected "array" but received "' + typeof obj_disQualificationDecisionTableDetails + '" (at "' + path_disQualificationDecisionTableDetails + '")');
|
|
11281
|
+
}
|
|
11282
|
+
for (let i = 0; i < obj_disQualificationDecisionTableDetails.length; i++) {
|
|
11283
|
+
const obj_disQualificationDecisionTableDetails_item = obj_disQualificationDecisionTableDetails[i];
|
|
11284
|
+
const path_disQualificationDecisionTableDetails_item = path_disQualificationDecisionTableDetails + '[' + i + ']';
|
|
11285
|
+
const referencepath_disQualificationDecisionTableDetails_itemValidationError = validate$1(obj_disQualificationDecisionTableDetails_item, path_disQualificationDecisionTableDetails_item);
|
|
11286
|
+
if (referencepath_disQualificationDecisionTableDetails_itemValidationError !== null) {
|
|
11287
|
+
let message = 'Object doesn\'t match EligibilityRuleDetailsRepresentation (at "' + path_disQualificationDecisionTableDetails_item + '")\n';
|
|
11288
|
+
message += referencepath_disQualificationDecisionTableDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11289
|
+
return new TypeError(message);
|
|
11290
|
+
}
|
|
11186
11291
|
}
|
|
11187
11292
|
}
|
|
11188
11293
|
const obj_message = obj.message;
|
|
@@ -11190,19 +11295,21 @@ function validate(obj, path = 'EligibilityRuleMetadataRepresentation') {
|
|
|
11190
11295
|
if (typeof obj_message !== 'string') {
|
|
11191
11296
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
11192
11297
|
}
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11298
|
+
if (obj.qualificationDecisionTableDetails !== undefined) {
|
|
11299
|
+
const obj_qualificationDecisionTableDetails = obj.qualificationDecisionTableDetails;
|
|
11300
|
+
const path_qualificationDecisionTableDetails = path + '.qualificationDecisionTableDetails';
|
|
11301
|
+
if (!ArrayIsArray(obj_qualificationDecisionTableDetails)) {
|
|
11302
|
+
return new TypeError('Expected "array" but received "' + typeof obj_qualificationDecisionTableDetails + '" (at "' + path_qualificationDecisionTableDetails + '")');
|
|
11303
|
+
}
|
|
11304
|
+
for (let i = 0; i < obj_qualificationDecisionTableDetails.length; i++) {
|
|
11305
|
+
const obj_qualificationDecisionTableDetails_item = obj_qualificationDecisionTableDetails[i];
|
|
11306
|
+
const path_qualificationDecisionTableDetails_item = path_qualificationDecisionTableDetails + '[' + i + ']';
|
|
11307
|
+
const referencepath_qualificationDecisionTableDetails_itemValidationError = validate$1(obj_qualificationDecisionTableDetails_item, path_qualificationDecisionTableDetails_item);
|
|
11308
|
+
if (referencepath_qualificationDecisionTableDetails_itemValidationError !== null) {
|
|
11309
|
+
let message = 'Object doesn\'t match EligibilityRuleDetailsRepresentation (at "' + path_qualificationDecisionTableDetails_item + '")\n';
|
|
11310
|
+
message += referencepath_qualificationDecisionTableDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11311
|
+
return new TypeError(message);
|
|
11312
|
+
}
|
|
11206
11313
|
}
|
|
11207
11314
|
}
|
|
11208
11315
|
const obj_status = obj.status;
|
|
@@ -11228,7 +11335,8 @@ const select$1 = function EligibilityRuleMetadataRepresentationSelect() {
|
|
|
11228
11335
|
name: 'disQualificationDecisionTableDetails',
|
|
11229
11336
|
kind: 'Object',
|
|
11230
11337
|
plural: true,
|
|
11231
|
-
selections: EligibilityRuleDetailsRepresentation__selections
|
|
11338
|
+
selections: EligibilityRuleDetailsRepresentation__selections,
|
|
11339
|
+
required: false
|
|
11232
11340
|
},
|
|
11233
11341
|
{
|
|
11234
11342
|
name: 'message',
|
|
@@ -11238,7 +11346,8 @@ const select$1 = function EligibilityRuleMetadataRepresentationSelect() {
|
|
|
11238
11346
|
name: 'qualificationDecisionTableDetails',
|
|
11239
11347
|
kind: 'Object',
|
|
11240
11348
|
plural: true,
|
|
11241
|
-
selections: EligibilityRuleDetailsRepresentation__selections
|
|
11349
|
+
selections: EligibilityRuleDetailsRepresentation__selections,
|
|
11350
|
+
required: false
|
|
11242
11351
|
},
|
|
11243
11352
|
{
|
|
11244
11353
|
name: 'status',
|
|
@@ -11260,23 +11369,39 @@ function equals(existing, incoming) {
|
|
|
11260
11369
|
}
|
|
11261
11370
|
const existing_disQualificationDecisionTableDetails = existing.disQualificationDecisionTableDetails;
|
|
11262
11371
|
const incoming_disQualificationDecisionTableDetails = incoming.disQualificationDecisionTableDetails;
|
|
11263
|
-
|
|
11264
|
-
|
|
11372
|
+
// if at least one of these optionals is defined
|
|
11373
|
+
if (existing_disQualificationDecisionTableDetails !== undefined || incoming_disQualificationDecisionTableDetails !== undefined) {
|
|
11374
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11375
|
+
// not equal
|
|
11376
|
+
if (existing_disQualificationDecisionTableDetails === undefined || incoming_disQualificationDecisionTableDetails === undefined) {
|
|
11377
|
+
return false;
|
|
11378
|
+
}
|
|
11379
|
+
const equals_disQualificationDecisionTableDetails_items = equalsArray(existing_disQualificationDecisionTableDetails, incoming_disQualificationDecisionTableDetails, (existing_disQualificationDecisionTableDetails_item, incoming_disQualificationDecisionTableDetails_item) => {
|
|
11380
|
+
if (!(equals$1(existing_disQualificationDecisionTableDetails_item, incoming_disQualificationDecisionTableDetails_item))) {
|
|
11381
|
+
return false;
|
|
11382
|
+
}
|
|
11383
|
+
});
|
|
11384
|
+
if (equals_disQualificationDecisionTableDetails_items === false) {
|
|
11265
11385
|
return false;
|
|
11266
11386
|
}
|
|
11267
|
-
});
|
|
11268
|
-
if (equals_disQualificationDecisionTableDetails_items === false) {
|
|
11269
|
-
return false;
|
|
11270
11387
|
}
|
|
11271
11388
|
const existing_qualificationDecisionTableDetails = existing.qualificationDecisionTableDetails;
|
|
11272
11389
|
const incoming_qualificationDecisionTableDetails = incoming.qualificationDecisionTableDetails;
|
|
11273
|
-
|
|
11274
|
-
|
|
11390
|
+
// if at least one of these optionals is defined
|
|
11391
|
+
if (existing_qualificationDecisionTableDetails !== undefined || incoming_qualificationDecisionTableDetails !== undefined) {
|
|
11392
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11393
|
+
// not equal
|
|
11394
|
+
if (existing_qualificationDecisionTableDetails === undefined || incoming_qualificationDecisionTableDetails === undefined) {
|
|
11395
|
+
return false;
|
|
11396
|
+
}
|
|
11397
|
+
const equals_qualificationDecisionTableDetails_items = equalsArray(existing_qualificationDecisionTableDetails, incoming_qualificationDecisionTableDetails, (existing_qualificationDecisionTableDetails_item, incoming_qualificationDecisionTableDetails_item) => {
|
|
11398
|
+
if (!(equals$1(existing_qualificationDecisionTableDetails_item, incoming_qualificationDecisionTableDetails_item))) {
|
|
11399
|
+
return false;
|
|
11400
|
+
}
|
|
11401
|
+
});
|
|
11402
|
+
if (equals_qualificationDecisionTableDetails_items === false) {
|
|
11275
11403
|
return false;
|
|
11276
11404
|
}
|
|
11277
|
-
});
|
|
11278
|
-
if (equals_qualificationDecisionTableDetails_items === false) {
|
|
11279
|
-
return false;
|
|
11280
11405
|
}
|
|
11281
11406
|
return true;
|
|
11282
11407
|
}
|