@salesforce/lds-adapters-service-ecm 1.399.0 → 1.401.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 +283 -147
- 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 +17 -17
- 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 +284 -148
- package/src/raml/api.raml +17 -21
- 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,16 +10819,18 @@ function equals$2(existing, incoming) {
|
|
|
10793
10819
|
return true;
|
|
10794
10820
|
}
|
|
10795
10821
|
|
|
10796
|
-
const VERSION$1 = "
|
|
10822
|
+
const VERSION$1 = "68f7cca2979a3992693be47bddb0daa2";
|
|
10797
10823
|
function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
10798
10824
|
const v_error = (() => {
|
|
10799
10825
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10800
10826
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10801
10827
|
}
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10828
|
+
if (obj.conditionCriteria !== undefined) {
|
|
10829
|
+
const obj_conditionCriteria = obj.conditionCriteria;
|
|
10830
|
+
const path_conditionCriteria = path + '.conditionCriteria';
|
|
10831
|
+
if (typeof obj_conditionCriteria !== 'string') {
|
|
10832
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conditionCriteria + '" (at "' + path_conditionCriteria + '")');
|
|
10833
|
+
}
|
|
10806
10834
|
}
|
|
10807
10835
|
const obj_conditionType = obj.conditionType;
|
|
10808
10836
|
const path_conditionType = path + '.conditionType';
|
|
@@ -10824,20 +10852,26 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10824
10852
|
if (typeof obj_decisionTableName !== 'string') {
|
|
10825
10853
|
return new TypeError('Expected "string" but received "' + typeof obj_decisionTableName + '" (at "' + path_decisionTableName + '")');
|
|
10826
10854
|
}
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10855
|
+
if (obj.description !== undefined) {
|
|
10856
|
+
const obj_description = obj.description;
|
|
10857
|
+
const path_description = path + '.description';
|
|
10858
|
+
if (typeof obj_description !== 'string') {
|
|
10859
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
10860
|
+
}
|
|
10831
10861
|
}
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10862
|
+
if (obj.hasIncrementalSyncFailed !== undefined) {
|
|
10863
|
+
const obj_hasIncrementalSyncFailed = obj.hasIncrementalSyncFailed;
|
|
10864
|
+
const path_hasIncrementalSyncFailed = path + '.hasIncrementalSyncFailed';
|
|
10865
|
+
if (typeof obj_hasIncrementalSyncFailed !== 'boolean') {
|
|
10866
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasIncrementalSyncFailed + '" (at "' + path_hasIncrementalSyncFailed + '")');
|
|
10867
|
+
}
|
|
10836
10868
|
}
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10869
|
+
if (obj.isIncrementalSyncEnabled !== undefined) {
|
|
10870
|
+
const obj_isIncrementalSyncEnabled = obj.isIncrementalSyncEnabled;
|
|
10871
|
+
const path_isIncrementalSyncEnabled = path + '.isIncrementalSyncEnabled';
|
|
10872
|
+
if (typeof obj_isIncrementalSyncEnabled !== 'boolean') {
|
|
10873
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementalSyncEnabled + '" (at "' + path_isIncrementalSyncEnabled + '")');
|
|
10874
|
+
}
|
|
10841
10875
|
}
|
|
10842
10876
|
if (obj.lastIncrementalSyncDate !== undefined) {
|
|
10843
10877
|
const obj_lastIncrementalSyncDate = obj.lastIncrementalSyncDate;
|
|
@@ -10858,19 +10892,21 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10858
10892
|
return new TypeError('Expected "string" but received "' + typeof obj_lastSyncDate + '" (at "' + path_lastSyncDate + '")');
|
|
10859
10893
|
}
|
|
10860
10894
|
}
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10895
|
+
if (obj.parameters !== undefined) {
|
|
10896
|
+
const obj_parameters = obj.parameters;
|
|
10897
|
+
const path_parameters = path + '.parameters';
|
|
10898
|
+
if (!ArrayIsArray(obj_parameters)) {
|
|
10899
|
+
return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
|
|
10900
|
+
}
|
|
10901
|
+
for (let i = 0; i < obj_parameters.length; i++) {
|
|
10902
|
+
const obj_parameters_item = obj_parameters[i];
|
|
10903
|
+
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
10904
|
+
const referencepath_parameters_itemValidationError = validate$3(obj_parameters_item, path_parameters_item);
|
|
10905
|
+
if (referencepath_parameters_itemValidationError !== null) {
|
|
10906
|
+
let message = 'Object doesn\'t match EligibilityRuleParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
10907
|
+
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10908
|
+
return new TypeError(message);
|
|
10909
|
+
}
|
|
10874
10910
|
}
|
|
10875
10911
|
}
|
|
10876
10912
|
if (obj.refreshFailureReason !== undefined) {
|
|
@@ -10880,29 +10916,33 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10880
10916
|
return new TypeError('Expected "string" but received "' + typeof obj_refreshFailureReason + '" (at "' + path_refreshFailureReason + '")');
|
|
10881
10917
|
}
|
|
10882
10918
|
}
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10919
|
+
if (obj.refreshStatus !== undefined) {
|
|
10920
|
+
const obj_refreshStatus = obj.refreshStatus;
|
|
10921
|
+
const path_refreshStatus = path + '.refreshStatus';
|
|
10922
|
+
if (typeof obj_refreshStatus !== 'string') {
|
|
10923
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshStatus + '" (at "' + path_refreshStatus + '")');
|
|
10924
|
+
}
|
|
10887
10925
|
}
|
|
10888
10926
|
const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
|
|
10889
10927
|
const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
|
|
10890
10928
|
if (typeof obj_rowLevelOverrideType !== 'string') {
|
|
10891
10929
|
return new TypeError('Expected "string" but received "' + typeof obj_rowLevelOverrideType + '" (at "' + path_rowLevelOverrideType + '")');
|
|
10892
10930
|
}
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10931
|
+
if (obj.sourceCriteria !== undefined) {
|
|
10932
|
+
const obj_sourceCriteria = obj.sourceCriteria;
|
|
10933
|
+
const path_sourceCriteria = path + '.sourceCriteria';
|
|
10934
|
+
if (!ArrayIsArray(obj_sourceCriteria)) {
|
|
10935
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sourceCriteria + '" (at "' + path_sourceCriteria + '")');
|
|
10936
|
+
}
|
|
10937
|
+
for (let i = 0; i < obj_sourceCriteria.length; i++) {
|
|
10938
|
+
const obj_sourceCriteria_item = obj_sourceCriteria[i];
|
|
10939
|
+
const path_sourceCriteria_item = path_sourceCriteria + '[' + i + ']';
|
|
10940
|
+
const referencepath_sourceCriteria_itemValidationError = validate$2(obj_sourceCriteria_item, path_sourceCriteria_item);
|
|
10941
|
+
if (referencepath_sourceCriteria_itemValidationError !== null) {
|
|
10942
|
+
let message = 'Object doesn\'t match DecisionTableSourceCriteriaOutputRepresentation (at "' + path_sourceCriteria_item + '")\n';
|
|
10943
|
+
message += referencepath_sourceCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10944
|
+
return new TypeError(message);
|
|
10945
|
+
}
|
|
10906
10946
|
}
|
|
10907
10947
|
}
|
|
10908
10948
|
const obj_sourceObject = obj.sourceObject;
|
|
@@ -10920,10 +10960,12 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10920
10960
|
if (typeof obj_status !== 'string') {
|
|
10921
10961
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
10922
10962
|
}
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10963
|
+
if (obj.usageType !== undefined) {
|
|
10964
|
+
const obj_usageType = obj.usageType;
|
|
10965
|
+
const path_usageType = path + '.usageType';
|
|
10966
|
+
if (typeof obj_usageType !== 'string') {
|
|
10967
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
|
|
10968
|
+
}
|
|
10927
10969
|
}
|
|
10928
10970
|
})();
|
|
10929
10971
|
return v_error === undefined ? null : v_error;
|
|
@@ -10938,7 +10980,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10938
10980
|
selections: [
|
|
10939
10981
|
{
|
|
10940
10982
|
name: 'conditionCriteria',
|
|
10941
|
-
kind: 'Scalar'
|
|
10983
|
+
kind: 'Scalar',
|
|
10984
|
+
required: false
|
|
10942
10985
|
},
|
|
10943
10986
|
{
|
|
10944
10987
|
name: 'conditionType',
|
|
@@ -10958,15 +11001,18 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10958
11001
|
},
|
|
10959
11002
|
{
|
|
10960
11003
|
name: 'description',
|
|
10961
|
-
kind: 'Scalar'
|
|
11004
|
+
kind: 'Scalar',
|
|
11005
|
+
required: false
|
|
10962
11006
|
},
|
|
10963
11007
|
{
|
|
10964
11008
|
name: 'hasIncrementalSyncFailed',
|
|
10965
|
-
kind: 'Scalar'
|
|
11009
|
+
kind: 'Scalar',
|
|
11010
|
+
required: false
|
|
10966
11011
|
},
|
|
10967
11012
|
{
|
|
10968
11013
|
name: 'isIncrementalSyncEnabled',
|
|
10969
|
-
kind: 'Scalar'
|
|
11014
|
+
kind: 'Scalar',
|
|
11015
|
+
required: false
|
|
10970
11016
|
},
|
|
10971
11017
|
{
|
|
10972
11018
|
name: 'lastIncrementalSyncDate',
|
|
@@ -10986,7 +11032,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10986
11032
|
name: 'parameters',
|
|
10987
11033
|
kind: 'Object',
|
|
10988
11034
|
plural: true,
|
|
10989
|
-
selections: EligibilityRuleParameterRepresentation__selections
|
|
11035
|
+
selections: EligibilityRuleParameterRepresentation__selections,
|
|
11036
|
+
required: false
|
|
10990
11037
|
},
|
|
10991
11038
|
{
|
|
10992
11039
|
name: 'refreshFailureReason',
|
|
@@ -10995,7 +11042,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10995
11042
|
},
|
|
10996
11043
|
{
|
|
10997
11044
|
name: 'refreshStatus',
|
|
10998
|
-
kind: 'Scalar'
|
|
11045
|
+
kind: 'Scalar',
|
|
11046
|
+
required: false
|
|
10999
11047
|
},
|
|
11000
11048
|
{
|
|
11001
11049
|
name: 'rowLevelOverrideType',
|
|
@@ -11005,7 +11053,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
11005
11053
|
name: 'sourceCriteria',
|
|
11006
11054
|
kind: 'Object',
|
|
11007
11055
|
plural: true,
|
|
11008
|
-
selections: DecisionTableSourceCriteriaOutputRepresentation__selections
|
|
11056
|
+
selections: DecisionTableSourceCriteriaOutputRepresentation__selections,
|
|
11057
|
+
required: false
|
|
11009
11058
|
},
|
|
11010
11059
|
{
|
|
11011
11060
|
name: 'sourceObject',
|
|
@@ -11021,7 +11070,8 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
11021
11070
|
},
|
|
11022
11071
|
{
|
|
11023
11072
|
name: 'usageType',
|
|
11024
|
-
kind: 'Scalar'
|
|
11073
|
+
kind: 'Scalar',
|
|
11074
|
+
required: false
|
|
11025
11075
|
}
|
|
11026
11076
|
]
|
|
11027
11077
|
};
|
|
@@ -11029,18 +11079,42 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
11029
11079
|
function equals$1(existing, incoming) {
|
|
11030
11080
|
const existing_hasIncrementalSyncFailed = existing.hasIncrementalSyncFailed;
|
|
11031
11081
|
const incoming_hasIncrementalSyncFailed = incoming.hasIncrementalSyncFailed;
|
|
11032
|
-
if
|
|
11033
|
-
|
|
11082
|
+
// if at least one of these optionals is defined
|
|
11083
|
+
if (existing_hasIncrementalSyncFailed !== undefined || incoming_hasIncrementalSyncFailed !== undefined) {
|
|
11084
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11085
|
+
// not equal
|
|
11086
|
+
if (existing_hasIncrementalSyncFailed === undefined || incoming_hasIncrementalSyncFailed === undefined) {
|
|
11087
|
+
return false;
|
|
11088
|
+
}
|
|
11089
|
+
if (!(existing_hasIncrementalSyncFailed === incoming_hasIncrementalSyncFailed)) {
|
|
11090
|
+
return false;
|
|
11091
|
+
}
|
|
11034
11092
|
}
|
|
11035
11093
|
const existing_isIncrementalSyncEnabled = existing.isIncrementalSyncEnabled;
|
|
11036
11094
|
const incoming_isIncrementalSyncEnabled = incoming.isIncrementalSyncEnabled;
|
|
11037
|
-
if
|
|
11038
|
-
|
|
11095
|
+
// if at least one of these optionals is defined
|
|
11096
|
+
if (existing_isIncrementalSyncEnabled !== undefined || incoming_isIncrementalSyncEnabled !== undefined) {
|
|
11097
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11098
|
+
// not equal
|
|
11099
|
+
if (existing_isIncrementalSyncEnabled === undefined || incoming_isIncrementalSyncEnabled === undefined) {
|
|
11100
|
+
return false;
|
|
11101
|
+
}
|
|
11102
|
+
if (!(existing_isIncrementalSyncEnabled === incoming_isIncrementalSyncEnabled)) {
|
|
11103
|
+
return false;
|
|
11104
|
+
}
|
|
11039
11105
|
}
|
|
11040
11106
|
const existing_conditionCriteria = existing.conditionCriteria;
|
|
11041
11107
|
const incoming_conditionCriteria = incoming.conditionCriteria;
|
|
11042
|
-
if
|
|
11043
|
-
|
|
11108
|
+
// if at least one of these optionals is defined
|
|
11109
|
+
if (existing_conditionCriteria !== undefined || incoming_conditionCriteria !== undefined) {
|
|
11110
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11111
|
+
// not equal
|
|
11112
|
+
if (existing_conditionCriteria === undefined || incoming_conditionCriteria === undefined) {
|
|
11113
|
+
return false;
|
|
11114
|
+
}
|
|
11115
|
+
if (!(existing_conditionCriteria === incoming_conditionCriteria)) {
|
|
11116
|
+
return false;
|
|
11117
|
+
}
|
|
11044
11118
|
}
|
|
11045
11119
|
const existing_conditionType = existing.conditionType;
|
|
11046
11120
|
const incoming_conditionType = incoming.conditionType;
|
|
@@ -11064,8 +11138,16 @@ function equals$1(existing, incoming) {
|
|
|
11064
11138
|
}
|
|
11065
11139
|
const existing_description = existing.description;
|
|
11066
11140
|
const incoming_description = incoming.description;
|
|
11067
|
-
if
|
|
11068
|
-
|
|
11141
|
+
// if at least one of these optionals is defined
|
|
11142
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
11143
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11144
|
+
// not equal
|
|
11145
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
11146
|
+
return false;
|
|
11147
|
+
}
|
|
11148
|
+
if (!(existing_description === incoming_description)) {
|
|
11149
|
+
return false;
|
|
11150
|
+
}
|
|
11069
11151
|
}
|
|
11070
11152
|
const existing_lastIncrementalSyncDate = existing.lastIncrementalSyncDate;
|
|
11071
11153
|
const incoming_lastIncrementalSyncDate = incoming.lastIncrementalSyncDate;
|
|
@@ -11113,8 +11195,16 @@ function equals$1(existing, incoming) {
|
|
|
11113
11195
|
}
|
|
11114
11196
|
const existing_refreshStatus = existing.refreshStatus;
|
|
11115
11197
|
const incoming_refreshStatus = incoming.refreshStatus;
|
|
11116
|
-
if
|
|
11117
|
-
|
|
11198
|
+
// if at least one of these optionals is defined
|
|
11199
|
+
if (existing_refreshStatus !== undefined || incoming_refreshStatus !== undefined) {
|
|
11200
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11201
|
+
// not equal
|
|
11202
|
+
if (existing_refreshStatus === undefined || incoming_refreshStatus === undefined) {
|
|
11203
|
+
return false;
|
|
11204
|
+
}
|
|
11205
|
+
if (!(existing_refreshStatus === incoming_refreshStatus)) {
|
|
11206
|
+
return false;
|
|
11207
|
+
}
|
|
11118
11208
|
}
|
|
11119
11209
|
const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
|
|
11120
11210
|
const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
|
|
@@ -11138,51 +11228,77 @@ function equals$1(existing, incoming) {
|
|
|
11138
11228
|
}
|
|
11139
11229
|
const existing_usageType = existing.usageType;
|
|
11140
11230
|
const incoming_usageType = incoming.usageType;
|
|
11141
|
-
if
|
|
11142
|
-
|
|
11231
|
+
// if at least one of these optionals is defined
|
|
11232
|
+
if (existing_usageType !== undefined || incoming_usageType !== undefined) {
|
|
11233
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11234
|
+
// not equal
|
|
11235
|
+
if (existing_usageType === undefined || incoming_usageType === undefined) {
|
|
11236
|
+
return false;
|
|
11237
|
+
}
|
|
11238
|
+
if (!(existing_usageType === incoming_usageType)) {
|
|
11239
|
+
return false;
|
|
11240
|
+
}
|
|
11143
11241
|
}
|
|
11144
11242
|
const existing_parameters = existing.parameters;
|
|
11145
11243
|
const incoming_parameters = incoming.parameters;
|
|
11146
|
-
|
|
11147
|
-
|
|
11244
|
+
// if at least one of these optionals is defined
|
|
11245
|
+
if (existing_parameters !== undefined || incoming_parameters !== undefined) {
|
|
11246
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11247
|
+
// not equal
|
|
11248
|
+
if (existing_parameters === undefined || incoming_parameters === undefined) {
|
|
11249
|
+
return false;
|
|
11250
|
+
}
|
|
11251
|
+
const equals_parameters_items = equalsArray(existing_parameters, incoming_parameters, (existing_parameters_item, incoming_parameters_item) => {
|
|
11252
|
+
if (!(equals$3(existing_parameters_item, incoming_parameters_item))) {
|
|
11253
|
+
return false;
|
|
11254
|
+
}
|
|
11255
|
+
});
|
|
11256
|
+
if (equals_parameters_items === false) {
|
|
11148
11257
|
return false;
|
|
11149
11258
|
}
|
|
11150
|
-
});
|
|
11151
|
-
if (equals_parameters_items === false) {
|
|
11152
|
-
return false;
|
|
11153
11259
|
}
|
|
11154
11260
|
const existing_sourceCriteria = existing.sourceCriteria;
|
|
11155
11261
|
const incoming_sourceCriteria = incoming.sourceCriteria;
|
|
11156
|
-
|
|
11157
|
-
|
|
11262
|
+
// if at least one of these optionals is defined
|
|
11263
|
+
if (existing_sourceCriteria !== undefined || incoming_sourceCriteria !== undefined) {
|
|
11264
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11265
|
+
// not equal
|
|
11266
|
+
if (existing_sourceCriteria === undefined || incoming_sourceCriteria === undefined) {
|
|
11267
|
+
return false;
|
|
11268
|
+
}
|
|
11269
|
+
const equals_sourceCriteria_items = equalsArray(existing_sourceCriteria, incoming_sourceCriteria, (existing_sourceCriteria_item, incoming_sourceCriteria_item) => {
|
|
11270
|
+
if (!(equals$2(existing_sourceCriteria_item, incoming_sourceCriteria_item))) {
|
|
11271
|
+
return false;
|
|
11272
|
+
}
|
|
11273
|
+
});
|
|
11274
|
+
if (equals_sourceCriteria_items === false) {
|
|
11158
11275
|
return false;
|
|
11159
11276
|
}
|
|
11160
|
-
});
|
|
11161
|
-
if (equals_sourceCriteria_items === false) {
|
|
11162
|
-
return false;
|
|
11163
11277
|
}
|
|
11164
11278
|
return true;
|
|
11165
11279
|
}
|
|
11166
11280
|
|
|
11167
|
-
const VERSION = "
|
|
11281
|
+
const VERSION = "22212385b6ce3208b59091ec88e23c6d";
|
|
11168
11282
|
function validate(obj, path = 'EligibilityRuleMetadataRepresentation') {
|
|
11169
11283
|
const v_error = (() => {
|
|
11170
11284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11171
11285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11172
11286
|
}
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11287
|
+
if (obj.disQualificationDecisionTableDetails !== undefined) {
|
|
11288
|
+
const obj_disQualificationDecisionTableDetails = obj.disQualificationDecisionTableDetails;
|
|
11289
|
+
const path_disQualificationDecisionTableDetails = path + '.disQualificationDecisionTableDetails';
|
|
11290
|
+
if (!ArrayIsArray(obj_disQualificationDecisionTableDetails)) {
|
|
11291
|
+
return new TypeError('Expected "array" but received "' + typeof obj_disQualificationDecisionTableDetails + '" (at "' + path_disQualificationDecisionTableDetails + '")');
|
|
11292
|
+
}
|
|
11293
|
+
for (let i = 0; i < obj_disQualificationDecisionTableDetails.length; i++) {
|
|
11294
|
+
const obj_disQualificationDecisionTableDetails_item = obj_disQualificationDecisionTableDetails[i];
|
|
11295
|
+
const path_disQualificationDecisionTableDetails_item = path_disQualificationDecisionTableDetails + '[' + i + ']';
|
|
11296
|
+
const referencepath_disQualificationDecisionTableDetails_itemValidationError = validate$1(obj_disQualificationDecisionTableDetails_item, path_disQualificationDecisionTableDetails_item);
|
|
11297
|
+
if (referencepath_disQualificationDecisionTableDetails_itemValidationError !== null) {
|
|
11298
|
+
let message = 'Object doesn\'t match EligibilityRuleDetailsRepresentation (at "' + path_disQualificationDecisionTableDetails_item + '")\n';
|
|
11299
|
+
message += referencepath_disQualificationDecisionTableDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11300
|
+
return new TypeError(message);
|
|
11301
|
+
}
|
|
11186
11302
|
}
|
|
11187
11303
|
}
|
|
11188
11304
|
const obj_message = obj.message;
|
|
@@ -11190,19 +11306,21 @@ function validate(obj, path = 'EligibilityRuleMetadataRepresentation') {
|
|
|
11190
11306
|
if (typeof obj_message !== 'string') {
|
|
11191
11307
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
11192
11308
|
}
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11309
|
+
if (obj.qualificationDecisionTableDetails !== undefined) {
|
|
11310
|
+
const obj_qualificationDecisionTableDetails = obj.qualificationDecisionTableDetails;
|
|
11311
|
+
const path_qualificationDecisionTableDetails = path + '.qualificationDecisionTableDetails';
|
|
11312
|
+
if (!ArrayIsArray(obj_qualificationDecisionTableDetails)) {
|
|
11313
|
+
return new TypeError('Expected "array" but received "' + typeof obj_qualificationDecisionTableDetails + '" (at "' + path_qualificationDecisionTableDetails + '")');
|
|
11314
|
+
}
|
|
11315
|
+
for (let i = 0; i < obj_qualificationDecisionTableDetails.length; i++) {
|
|
11316
|
+
const obj_qualificationDecisionTableDetails_item = obj_qualificationDecisionTableDetails[i];
|
|
11317
|
+
const path_qualificationDecisionTableDetails_item = path_qualificationDecisionTableDetails + '[' + i + ']';
|
|
11318
|
+
const referencepath_qualificationDecisionTableDetails_itemValidationError = validate$1(obj_qualificationDecisionTableDetails_item, path_qualificationDecisionTableDetails_item);
|
|
11319
|
+
if (referencepath_qualificationDecisionTableDetails_itemValidationError !== null) {
|
|
11320
|
+
let message = 'Object doesn\'t match EligibilityRuleDetailsRepresentation (at "' + path_qualificationDecisionTableDetails_item + '")\n';
|
|
11321
|
+
message += referencepath_qualificationDecisionTableDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11322
|
+
return new TypeError(message);
|
|
11323
|
+
}
|
|
11206
11324
|
}
|
|
11207
11325
|
}
|
|
11208
11326
|
const obj_status = obj.status;
|
|
@@ -11228,7 +11346,8 @@ const select$1 = function EligibilityRuleMetadataRepresentationSelect() {
|
|
|
11228
11346
|
name: 'disQualificationDecisionTableDetails',
|
|
11229
11347
|
kind: 'Object',
|
|
11230
11348
|
plural: true,
|
|
11231
|
-
selections: EligibilityRuleDetailsRepresentation__selections
|
|
11349
|
+
selections: EligibilityRuleDetailsRepresentation__selections,
|
|
11350
|
+
required: false
|
|
11232
11351
|
},
|
|
11233
11352
|
{
|
|
11234
11353
|
name: 'message',
|
|
@@ -11238,7 +11357,8 @@ const select$1 = function EligibilityRuleMetadataRepresentationSelect() {
|
|
|
11238
11357
|
name: 'qualificationDecisionTableDetails',
|
|
11239
11358
|
kind: 'Object',
|
|
11240
11359
|
plural: true,
|
|
11241
|
-
selections: EligibilityRuleDetailsRepresentation__selections
|
|
11360
|
+
selections: EligibilityRuleDetailsRepresentation__selections,
|
|
11361
|
+
required: false
|
|
11242
11362
|
},
|
|
11243
11363
|
{
|
|
11244
11364
|
name: 'status',
|
|
@@ -11260,23 +11380,39 @@ function equals(existing, incoming) {
|
|
|
11260
11380
|
}
|
|
11261
11381
|
const existing_disQualificationDecisionTableDetails = existing.disQualificationDecisionTableDetails;
|
|
11262
11382
|
const incoming_disQualificationDecisionTableDetails = incoming.disQualificationDecisionTableDetails;
|
|
11263
|
-
|
|
11264
|
-
|
|
11383
|
+
// if at least one of these optionals is defined
|
|
11384
|
+
if (existing_disQualificationDecisionTableDetails !== undefined || incoming_disQualificationDecisionTableDetails !== undefined) {
|
|
11385
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11386
|
+
// not equal
|
|
11387
|
+
if (existing_disQualificationDecisionTableDetails === undefined || incoming_disQualificationDecisionTableDetails === undefined) {
|
|
11388
|
+
return false;
|
|
11389
|
+
}
|
|
11390
|
+
const equals_disQualificationDecisionTableDetails_items = equalsArray(existing_disQualificationDecisionTableDetails, incoming_disQualificationDecisionTableDetails, (existing_disQualificationDecisionTableDetails_item, incoming_disQualificationDecisionTableDetails_item) => {
|
|
11391
|
+
if (!(equals$1(existing_disQualificationDecisionTableDetails_item, incoming_disQualificationDecisionTableDetails_item))) {
|
|
11392
|
+
return false;
|
|
11393
|
+
}
|
|
11394
|
+
});
|
|
11395
|
+
if (equals_disQualificationDecisionTableDetails_items === false) {
|
|
11265
11396
|
return false;
|
|
11266
11397
|
}
|
|
11267
|
-
});
|
|
11268
|
-
if (equals_disQualificationDecisionTableDetails_items === false) {
|
|
11269
|
-
return false;
|
|
11270
11398
|
}
|
|
11271
11399
|
const existing_qualificationDecisionTableDetails = existing.qualificationDecisionTableDetails;
|
|
11272
11400
|
const incoming_qualificationDecisionTableDetails = incoming.qualificationDecisionTableDetails;
|
|
11273
|
-
|
|
11274
|
-
|
|
11401
|
+
// if at least one of these optionals is defined
|
|
11402
|
+
if (existing_qualificationDecisionTableDetails !== undefined || incoming_qualificationDecisionTableDetails !== undefined) {
|
|
11403
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11404
|
+
// not equal
|
|
11405
|
+
if (existing_qualificationDecisionTableDetails === undefined || incoming_qualificationDecisionTableDetails === undefined) {
|
|
11406
|
+
return false;
|
|
11407
|
+
}
|
|
11408
|
+
const equals_qualificationDecisionTableDetails_items = equalsArray(existing_qualificationDecisionTableDetails, incoming_qualificationDecisionTableDetails, (existing_qualificationDecisionTableDetails_item, incoming_qualificationDecisionTableDetails_item) => {
|
|
11409
|
+
if (!(equals$1(existing_qualificationDecisionTableDetails_item, incoming_qualificationDecisionTableDetails_item))) {
|
|
11410
|
+
return false;
|
|
11411
|
+
}
|
|
11412
|
+
});
|
|
11413
|
+
if (equals_qualificationDecisionTableDetails_items === false) {
|
|
11275
11414
|
return false;
|
|
11276
11415
|
}
|
|
11277
|
-
});
|
|
11278
|
-
if (equals_qualificationDecisionTableDetails_items === false) {
|
|
11279
|
-
return false;
|
|
11280
11416
|
}
|
|
11281
11417
|
return true;
|
|
11282
11418
|
}
|