@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
package/sfdc/index.js
CHANGED
|
@@ -9728,7 +9728,7 @@ function equals$5(existing, incoming) {
|
|
|
9728
9728
|
return true;
|
|
9729
9729
|
}
|
|
9730
9730
|
|
|
9731
|
-
const VERSION$4 = "
|
|
9731
|
+
const VERSION$4 = "55f724b58c73a67346c037f8dde8ece8";
|
|
9732
9732
|
function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
9733
9733
|
const v_error = (() => {
|
|
9734
9734
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -9759,20 +9759,26 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
9759
9759
|
if (typeof obj_decisionTableName !== 'string') {
|
|
9760
9760
|
return new TypeError('Expected "string" but received "' + typeof obj_decisionTableName + '" (at "' + path_decisionTableName + '")');
|
|
9761
9761
|
}
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9762
|
+
if (obj.description !== undefined) {
|
|
9763
|
+
const obj_description = obj.description;
|
|
9764
|
+
const path_description = path + '.description';
|
|
9765
|
+
if (typeof obj_description !== 'string') {
|
|
9766
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
9767
|
+
}
|
|
9766
9768
|
}
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9769
|
+
if (obj.hasIncrementalSyncFailed !== undefined) {
|
|
9770
|
+
const obj_hasIncrementalSyncFailed = obj.hasIncrementalSyncFailed;
|
|
9771
|
+
const path_hasIncrementalSyncFailed = path + '.hasIncrementalSyncFailed';
|
|
9772
|
+
if (typeof obj_hasIncrementalSyncFailed !== 'boolean') {
|
|
9773
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasIncrementalSyncFailed + '" (at "' + path_hasIncrementalSyncFailed + '")');
|
|
9774
|
+
}
|
|
9771
9775
|
}
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
+
if (obj.isIncrementalSyncEnabled !== undefined) {
|
|
9777
|
+
const obj_isIncrementalSyncEnabled = obj.isIncrementalSyncEnabled;
|
|
9778
|
+
const path_isIncrementalSyncEnabled = path + '.isIncrementalSyncEnabled';
|
|
9779
|
+
if (typeof obj_isIncrementalSyncEnabled !== 'boolean') {
|
|
9780
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementalSyncEnabled + '" (at "' + path_isIncrementalSyncEnabled + '")');
|
|
9781
|
+
}
|
|
9776
9782
|
}
|
|
9777
9783
|
if (obj.lastIncrementalSyncDate !== undefined) {
|
|
9778
9784
|
const obj_lastIncrementalSyncDate = obj.lastIncrementalSyncDate;
|
|
@@ -9793,19 +9799,21 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
9793
9799
|
return new TypeError('Expected "string" but received "' + typeof obj_lastSyncDate + '" (at "' + path_lastSyncDate + '")');
|
|
9794
9800
|
}
|
|
9795
9801
|
}
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9802
|
+
if (obj.parameters !== undefined) {
|
|
9803
|
+
const obj_parameters = obj.parameters;
|
|
9804
|
+
const path_parameters = path + '.parameters';
|
|
9805
|
+
if (!ArrayIsArray(obj_parameters)) {
|
|
9806
|
+
return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
|
|
9807
|
+
}
|
|
9808
|
+
for (let i = 0; i < obj_parameters.length; i++) {
|
|
9809
|
+
const obj_parameters_item = obj_parameters[i];
|
|
9810
|
+
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
9811
|
+
const referencepath_parameters_itemValidationError = validate$9(obj_parameters_item, path_parameters_item);
|
|
9812
|
+
if (referencepath_parameters_itemValidationError !== null) {
|
|
9813
|
+
let message = 'Object doesn\'t match EligibilityRuleParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
9814
|
+
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9815
|
+
return new TypeError(message);
|
|
9816
|
+
}
|
|
9809
9817
|
}
|
|
9810
9818
|
}
|
|
9811
9819
|
if (obj.refreshFailureReason !== undefined) {
|
|
@@ -9815,29 +9823,33 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
9815
9823
|
return new TypeError('Expected "string" but received "' + typeof obj_refreshFailureReason + '" (at "' + path_refreshFailureReason + '")');
|
|
9816
9824
|
}
|
|
9817
9825
|
}
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9826
|
+
if (obj.refreshStatus !== undefined) {
|
|
9827
|
+
const obj_refreshStatus = obj.refreshStatus;
|
|
9828
|
+
const path_refreshStatus = path + '.refreshStatus';
|
|
9829
|
+
if (typeof obj_refreshStatus !== 'string') {
|
|
9830
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshStatus + '" (at "' + path_refreshStatus + '")');
|
|
9831
|
+
}
|
|
9822
9832
|
}
|
|
9823
9833
|
const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
|
|
9824
9834
|
const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
|
|
9825
9835
|
if (typeof obj_rowLevelOverrideType !== 'string') {
|
|
9826
9836
|
return new TypeError('Expected "string" but received "' + typeof obj_rowLevelOverrideType + '" (at "' + path_rowLevelOverrideType + '")');
|
|
9827
9837
|
}
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9838
|
+
if (obj.sourceCriteria !== undefined) {
|
|
9839
|
+
const obj_sourceCriteria = obj.sourceCriteria;
|
|
9840
|
+
const path_sourceCriteria = path + '.sourceCriteria';
|
|
9841
|
+
if (!ArrayIsArray(obj_sourceCriteria)) {
|
|
9842
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sourceCriteria + '" (at "' + path_sourceCriteria + '")');
|
|
9843
|
+
}
|
|
9844
|
+
for (let i = 0; i < obj_sourceCriteria.length; i++) {
|
|
9845
|
+
const obj_sourceCriteria_item = obj_sourceCriteria[i];
|
|
9846
|
+
const path_sourceCriteria_item = path_sourceCriteria + '[' + i + ']';
|
|
9847
|
+
const referencepath_sourceCriteria_itemValidationError = validate$8(obj_sourceCriteria_item, path_sourceCriteria_item);
|
|
9848
|
+
if (referencepath_sourceCriteria_itemValidationError !== null) {
|
|
9849
|
+
let message = 'Object doesn\'t match DecisionTableSourceCriteriaOutputRepresentation (at "' + path_sourceCriteria_item + '")\n';
|
|
9850
|
+
message += referencepath_sourceCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9851
|
+
return new TypeError(message);
|
|
9852
|
+
}
|
|
9841
9853
|
}
|
|
9842
9854
|
}
|
|
9843
9855
|
const obj_sourceObject = obj.sourceObject;
|
|
@@ -9855,10 +9867,12 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
9855
9867
|
if (typeof obj_status !== 'string') {
|
|
9856
9868
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
9857
9869
|
}
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9870
|
+
if (obj.usageType !== undefined) {
|
|
9871
|
+
const obj_usageType = obj.usageType;
|
|
9872
|
+
const path_usageType = path + '.usageType';
|
|
9873
|
+
if (typeof obj_usageType !== 'string') {
|
|
9874
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
|
|
9875
|
+
}
|
|
9862
9876
|
}
|
|
9863
9877
|
})();
|
|
9864
9878
|
return v_error === undefined ? null : v_error;
|
|
@@ -9893,15 +9907,18 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9893
9907
|
},
|
|
9894
9908
|
{
|
|
9895
9909
|
name: 'description',
|
|
9896
|
-
kind: 'Scalar'
|
|
9910
|
+
kind: 'Scalar',
|
|
9911
|
+
required: false
|
|
9897
9912
|
},
|
|
9898
9913
|
{
|
|
9899
9914
|
name: 'hasIncrementalSyncFailed',
|
|
9900
|
-
kind: 'Scalar'
|
|
9915
|
+
kind: 'Scalar',
|
|
9916
|
+
required: false
|
|
9901
9917
|
},
|
|
9902
9918
|
{
|
|
9903
9919
|
name: 'isIncrementalSyncEnabled',
|
|
9904
|
-
kind: 'Scalar'
|
|
9920
|
+
kind: 'Scalar',
|
|
9921
|
+
required: false
|
|
9905
9922
|
},
|
|
9906
9923
|
{
|
|
9907
9924
|
name: 'lastIncrementalSyncDate',
|
|
@@ -9921,7 +9938,8 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9921
9938
|
name: 'parameters',
|
|
9922
9939
|
kind: 'Object',
|
|
9923
9940
|
plural: true,
|
|
9924
|
-
selections: EligibilityRuleParameterRepresentation__selections
|
|
9941
|
+
selections: EligibilityRuleParameterRepresentation__selections,
|
|
9942
|
+
required: false
|
|
9925
9943
|
},
|
|
9926
9944
|
{
|
|
9927
9945
|
name: 'refreshFailureReason',
|
|
@@ -9930,7 +9948,8 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9930
9948
|
},
|
|
9931
9949
|
{
|
|
9932
9950
|
name: 'refreshStatus',
|
|
9933
|
-
kind: 'Scalar'
|
|
9951
|
+
kind: 'Scalar',
|
|
9952
|
+
required: false
|
|
9934
9953
|
},
|
|
9935
9954
|
{
|
|
9936
9955
|
name: 'rowLevelOverrideType',
|
|
@@ -9940,7 +9959,8 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9940
9959
|
name: 'sourceCriteria',
|
|
9941
9960
|
kind: 'Object',
|
|
9942
9961
|
plural: true,
|
|
9943
|
-
selections: DecisionTableSourceCriteriaOutputRepresentation__selections
|
|
9962
|
+
selections: DecisionTableSourceCriteriaOutputRepresentation__selections,
|
|
9963
|
+
required: false
|
|
9944
9964
|
},
|
|
9945
9965
|
{
|
|
9946
9966
|
name: 'sourceObject',
|
|
@@ -9956,7 +9976,8 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9956
9976
|
},
|
|
9957
9977
|
{
|
|
9958
9978
|
name: 'usageType',
|
|
9959
|
-
kind: 'Scalar'
|
|
9979
|
+
kind: 'Scalar',
|
|
9980
|
+
required: false
|
|
9960
9981
|
}
|
|
9961
9982
|
]
|
|
9962
9983
|
};
|
|
@@ -9964,13 +9985,29 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9964
9985
|
function equals$4(existing, incoming) {
|
|
9965
9986
|
const existing_hasIncrementalSyncFailed = existing.hasIncrementalSyncFailed;
|
|
9966
9987
|
const incoming_hasIncrementalSyncFailed = incoming.hasIncrementalSyncFailed;
|
|
9967
|
-
if
|
|
9968
|
-
|
|
9988
|
+
// if at least one of these optionals is defined
|
|
9989
|
+
if (existing_hasIncrementalSyncFailed !== undefined || incoming_hasIncrementalSyncFailed !== undefined) {
|
|
9990
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9991
|
+
// not equal
|
|
9992
|
+
if (existing_hasIncrementalSyncFailed === undefined || incoming_hasIncrementalSyncFailed === undefined) {
|
|
9993
|
+
return false;
|
|
9994
|
+
}
|
|
9995
|
+
if (!(existing_hasIncrementalSyncFailed === incoming_hasIncrementalSyncFailed)) {
|
|
9996
|
+
return false;
|
|
9997
|
+
}
|
|
9969
9998
|
}
|
|
9970
9999
|
const existing_isIncrementalSyncEnabled = existing.isIncrementalSyncEnabled;
|
|
9971
10000
|
const incoming_isIncrementalSyncEnabled = incoming.isIncrementalSyncEnabled;
|
|
9972
|
-
if
|
|
9973
|
-
|
|
10001
|
+
// if at least one of these optionals is defined
|
|
10002
|
+
if (existing_isIncrementalSyncEnabled !== undefined || incoming_isIncrementalSyncEnabled !== undefined) {
|
|
10003
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10004
|
+
// not equal
|
|
10005
|
+
if (existing_isIncrementalSyncEnabled === undefined || incoming_isIncrementalSyncEnabled === undefined) {
|
|
10006
|
+
return false;
|
|
10007
|
+
}
|
|
10008
|
+
if (!(existing_isIncrementalSyncEnabled === incoming_isIncrementalSyncEnabled)) {
|
|
10009
|
+
return false;
|
|
10010
|
+
}
|
|
9974
10011
|
}
|
|
9975
10012
|
const existing_conditionCriteria = existing.conditionCriteria;
|
|
9976
10013
|
const incoming_conditionCriteria = incoming.conditionCriteria;
|
|
@@ -9999,8 +10036,16 @@ function equals$4(existing, incoming) {
|
|
|
9999
10036
|
}
|
|
10000
10037
|
const existing_description = existing.description;
|
|
10001
10038
|
const incoming_description = incoming.description;
|
|
10002
|
-
if
|
|
10003
|
-
|
|
10039
|
+
// if at least one of these optionals is defined
|
|
10040
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
10041
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10042
|
+
// not equal
|
|
10043
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
10044
|
+
return false;
|
|
10045
|
+
}
|
|
10046
|
+
if (!(existing_description === incoming_description)) {
|
|
10047
|
+
return false;
|
|
10048
|
+
}
|
|
10004
10049
|
}
|
|
10005
10050
|
const existing_lastIncrementalSyncDate = existing.lastIncrementalSyncDate;
|
|
10006
10051
|
const incoming_lastIncrementalSyncDate = incoming.lastIncrementalSyncDate;
|
|
@@ -10048,8 +10093,16 @@ function equals$4(existing, incoming) {
|
|
|
10048
10093
|
}
|
|
10049
10094
|
const existing_refreshStatus = existing.refreshStatus;
|
|
10050
10095
|
const incoming_refreshStatus = incoming.refreshStatus;
|
|
10051
|
-
if
|
|
10052
|
-
|
|
10096
|
+
// if at least one of these optionals is defined
|
|
10097
|
+
if (existing_refreshStatus !== undefined || incoming_refreshStatus !== undefined) {
|
|
10098
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10099
|
+
// not equal
|
|
10100
|
+
if (existing_refreshStatus === undefined || incoming_refreshStatus === undefined) {
|
|
10101
|
+
return false;
|
|
10102
|
+
}
|
|
10103
|
+
if (!(existing_refreshStatus === incoming_refreshStatus)) {
|
|
10104
|
+
return false;
|
|
10105
|
+
}
|
|
10053
10106
|
}
|
|
10054
10107
|
const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
|
|
10055
10108
|
const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
|
|
@@ -10073,51 +10126,77 @@ function equals$4(existing, incoming) {
|
|
|
10073
10126
|
}
|
|
10074
10127
|
const existing_usageType = existing.usageType;
|
|
10075
10128
|
const incoming_usageType = incoming.usageType;
|
|
10076
|
-
if
|
|
10077
|
-
|
|
10129
|
+
// if at least one of these optionals is defined
|
|
10130
|
+
if (existing_usageType !== undefined || incoming_usageType !== undefined) {
|
|
10131
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10132
|
+
// not equal
|
|
10133
|
+
if (existing_usageType === undefined || incoming_usageType === undefined) {
|
|
10134
|
+
return false;
|
|
10135
|
+
}
|
|
10136
|
+
if (!(existing_usageType === incoming_usageType)) {
|
|
10137
|
+
return false;
|
|
10138
|
+
}
|
|
10078
10139
|
}
|
|
10079
10140
|
const existing_parameters = existing.parameters;
|
|
10080
10141
|
const incoming_parameters = incoming.parameters;
|
|
10081
|
-
|
|
10082
|
-
|
|
10142
|
+
// if at least one of these optionals is defined
|
|
10143
|
+
if (existing_parameters !== undefined || incoming_parameters !== undefined) {
|
|
10144
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10145
|
+
// not equal
|
|
10146
|
+
if (existing_parameters === undefined || incoming_parameters === undefined) {
|
|
10147
|
+
return false;
|
|
10148
|
+
}
|
|
10149
|
+
const equals_parameters_items = equalsArray(existing_parameters, incoming_parameters, (existing_parameters_item, incoming_parameters_item) => {
|
|
10150
|
+
if (!(equals$6(existing_parameters_item, incoming_parameters_item))) {
|
|
10151
|
+
return false;
|
|
10152
|
+
}
|
|
10153
|
+
});
|
|
10154
|
+
if (equals_parameters_items === false) {
|
|
10083
10155
|
return false;
|
|
10084
10156
|
}
|
|
10085
|
-
});
|
|
10086
|
-
if (equals_parameters_items === false) {
|
|
10087
|
-
return false;
|
|
10088
10157
|
}
|
|
10089
10158
|
const existing_sourceCriteria = existing.sourceCriteria;
|
|
10090
10159
|
const incoming_sourceCriteria = incoming.sourceCriteria;
|
|
10091
|
-
|
|
10092
|
-
|
|
10160
|
+
// if at least one of these optionals is defined
|
|
10161
|
+
if (existing_sourceCriteria !== undefined || incoming_sourceCriteria !== undefined) {
|
|
10162
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10163
|
+
// not equal
|
|
10164
|
+
if (existing_sourceCriteria === undefined || incoming_sourceCriteria === undefined) {
|
|
10165
|
+
return false;
|
|
10166
|
+
}
|
|
10167
|
+
const equals_sourceCriteria_items = equalsArray(existing_sourceCriteria, incoming_sourceCriteria, (existing_sourceCriteria_item, incoming_sourceCriteria_item) => {
|
|
10168
|
+
if (!(equals$5(existing_sourceCriteria_item, incoming_sourceCriteria_item))) {
|
|
10169
|
+
return false;
|
|
10170
|
+
}
|
|
10171
|
+
});
|
|
10172
|
+
if (equals_sourceCriteria_items === false) {
|
|
10093
10173
|
return false;
|
|
10094
10174
|
}
|
|
10095
|
-
});
|
|
10096
|
-
if (equals_sourceCriteria_items === false) {
|
|
10097
|
-
return false;
|
|
10098
10175
|
}
|
|
10099
10176
|
return true;
|
|
10100
10177
|
}
|
|
10101
10178
|
|
|
10102
|
-
const VERSION$3 = "
|
|
10179
|
+
const VERSION$3 = "22212385b6ce3208b59091ec88e23c6d";
|
|
10103
10180
|
function validate$6(obj, path = 'EligibilityRuleMetadataRepresentation') {
|
|
10104
10181
|
const v_error = (() => {
|
|
10105
10182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10106
10183
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10107
10184
|
}
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10185
|
+
if (obj.disQualificationDecisionTableDetails !== undefined) {
|
|
10186
|
+
const obj_disQualificationDecisionTableDetails = obj.disQualificationDecisionTableDetails;
|
|
10187
|
+
const path_disQualificationDecisionTableDetails = path + '.disQualificationDecisionTableDetails';
|
|
10188
|
+
if (!ArrayIsArray(obj_disQualificationDecisionTableDetails)) {
|
|
10189
|
+
return new TypeError('Expected "array" but received "' + typeof obj_disQualificationDecisionTableDetails + '" (at "' + path_disQualificationDecisionTableDetails + '")');
|
|
10190
|
+
}
|
|
10191
|
+
for (let i = 0; i < obj_disQualificationDecisionTableDetails.length; i++) {
|
|
10192
|
+
const obj_disQualificationDecisionTableDetails_item = obj_disQualificationDecisionTableDetails[i];
|
|
10193
|
+
const path_disQualificationDecisionTableDetails_item = path_disQualificationDecisionTableDetails + '[' + i + ']';
|
|
10194
|
+
const referencepath_disQualificationDecisionTableDetails_itemValidationError = validate$7(obj_disQualificationDecisionTableDetails_item, path_disQualificationDecisionTableDetails_item);
|
|
10195
|
+
if (referencepath_disQualificationDecisionTableDetails_itemValidationError !== null) {
|
|
10196
|
+
let message = 'Object doesn\'t match EligibilityRuleDetailsRepresentation (at "' + path_disQualificationDecisionTableDetails_item + '")\n';
|
|
10197
|
+
message += referencepath_disQualificationDecisionTableDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10198
|
+
return new TypeError(message);
|
|
10199
|
+
}
|
|
10121
10200
|
}
|
|
10122
10201
|
}
|
|
10123
10202
|
const obj_message = obj.message;
|
|
@@ -10125,19 +10204,21 @@ function validate$6(obj, path = 'EligibilityRuleMetadataRepresentation') {
|
|
|
10125
10204
|
if (typeof obj_message !== 'string') {
|
|
10126
10205
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
10127
10206
|
}
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10207
|
+
if (obj.qualificationDecisionTableDetails !== undefined) {
|
|
10208
|
+
const obj_qualificationDecisionTableDetails = obj.qualificationDecisionTableDetails;
|
|
10209
|
+
const path_qualificationDecisionTableDetails = path + '.qualificationDecisionTableDetails';
|
|
10210
|
+
if (!ArrayIsArray(obj_qualificationDecisionTableDetails)) {
|
|
10211
|
+
return new TypeError('Expected "array" but received "' + typeof obj_qualificationDecisionTableDetails + '" (at "' + path_qualificationDecisionTableDetails + '")');
|
|
10212
|
+
}
|
|
10213
|
+
for (let i = 0; i < obj_qualificationDecisionTableDetails.length; i++) {
|
|
10214
|
+
const obj_qualificationDecisionTableDetails_item = obj_qualificationDecisionTableDetails[i];
|
|
10215
|
+
const path_qualificationDecisionTableDetails_item = path_qualificationDecisionTableDetails + '[' + i + ']';
|
|
10216
|
+
const referencepath_qualificationDecisionTableDetails_itemValidationError = validate$7(obj_qualificationDecisionTableDetails_item, path_qualificationDecisionTableDetails_item);
|
|
10217
|
+
if (referencepath_qualificationDecisionTableDetails_itemValidationError !== null) {
|
|
10218
|
+
let message = 'Object doesn\'t match EligibilityRuleDetailsRepresentation (at "' + path_qualificationDecisionTableDetails_item + '")\n';
|
|
10219
|
+
message += referencepath_qualificationDecisionTableDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10220
|
+
return new TypeError(message);
|
|
10221
|
+
}
|
|
10141
10222
|
}
|
|
10142
10223
|
}
|
|
10143
10224
|
const obj_status = obj.status;
|
|
@@ -10163,7 +10244,8 @@ const select$8 = function EligibilityRuleMetadataRepresentationSelect() {
|
|
|
10163
10244
|
name: 'disQualificationDecisionTableDetails',
|
|
10164
10245
|
kind: 'Object',
|
|
10165
10246
|
plural: true,
|
|
10166
|
-
selections: EligibilityRuleDetailsRepresentation__selections
|
|
10247
|
+
selections: EligibilityRuleDetailsRepresentation__selections,
|
|
10248
|
+
required: false
|
|
10167
10249
|
},
|
|
10168
10250
|
{
|
|
10169
10251
|
name: 'message',
|
|
@@ -10173,7 +10255,8 @@ const select$8 = function EligibilityRuleMetadataRepresentationSelect() {
|
|
|
10173
10255
|
name: 'qualificationDecisionTableDetails',
|
|
10174
10256
|
kind: 'Object',
|
|
10175
10257
|
plural: true,
|
|
10176
|
-
selections: EligibilityRuleDetailsRepresentation__selections
|
|
10258
|
+
selections: EligibilityRuleDetailsRepresentation__selections,
|
|
10259
|
+
required: false
|
|
10177
10260
|
},
|
|
10178
10261
|
{
|
|
10179
10262
|
name: 'status',
|
|
@@ -10195,23 +10278,39 @@ function equals$3(existing, incoming) {
|
|
|
10195
10278
|
}
|
|
10196
10279
|
const existing_disQualificationDecisionTableDetails = existing.disQualificationDecisionTableDetails;
|
|
10197
10280
|
const incoming_disQualificationDecisionTableDetails = incoming.disQualificationDecisionTableDetails;
|
|
10198
|
-
|
|
10199
|
-
|
|
10281
|
+
// if at least one of these optionals is defined
|
|
10282
|
+
if (existing_disQualificationDecisionTableDetails !== undefined || incoming_disQualificationDecisionTableDetails !== undefined) {
|
|
10283
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10284
|
+
// not equal
|
|
10285
|
+
if (existing_disQualificationDecisionTableDetails === undefined || incoming_disQualificationDecisionTableDetails === undefined) {
|
|
10286
|
+
return false;
|
|
10287
|
+
}
|
|
10288
|
+
const equals_disQualificationDecisionTableDetails_items = equalsArray(existing_disQualificationDecisionTableDetails, incoming_disQualificationDecisionTableDetails, (existing_disQualificationDecisionTableDetails_item, incoming_disQualificationDecisionTableDetails_item) => {
|
|
10289
|
+
if (!(equals$4(existing_disQualificationDecisionTableDetails_item, incoming_disQualificationDecisionTableDetails_item))) {
|
|
10290
|
+
return false;
|
|
10291
|
+
}
|
|
10292
|
+
});
|
|
10293
|
+
if (equals_disQualificationDecisionTableDetails_items === false) {
|
|
10200
10294
|
return false;
|
|
10201
10295
|
}
|
|
10202
|
-
});
|
|
10203
|
-
if (equals_disQualificationDecisionTableDetails_items === false) {
|
|
10204
|
-
return false;
|
|
10205
10296
|
}
|
|
10206
10297
|
const existing_qualificationDecisionTableDetails = existing.qualificationDecisionTableDetails;
|
|
10207
10298
|
const incoming_qualificationDecisionTableDetails = incoming.qualificationDecisionTableDetails;
|
|
10208
|
-
|
|
10209
|
-
|
|
10299
|
+
// if at least one of these optionals is defined
|
|
10300
|
+
if (existing_qualificationDecisionTableDetails !== undefined || incoming_qualificationDecisionTableDetails !== undefined) {
|
|
10301
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10302
|
+
// not equal
|
|
10303
|
+
if (existing_qualificationDecisionTableDetails === undefined || incoming_qualificationDecisionTableDetails === undefined) {
|
|
10304
|
+
return false;
|
|
10305
|
+
}
|
|
10306
|
+
const equals_qualificationDecisionTableDetails_items = equalsArray(existing_qualificationDecisionTableDetails, incoming_qualificationDecisionTableDetails, (existing_qualificationDecisionTableDetails_item, incoming_qualificationDecisionTableDetails_item) => {
|
|
10307
|
+
if (!(equals$4(existing_qualificationDecisionTableDetails_item, incoming_qualificationDecisionTableDetails_item))) {
|
|
10308
|
+
return false;
|
|
10309
|
+
}
|
|
10310
|
+
});
|
|
10311
|
+
if (equals_qualificationDecisionTableDetails_items === false) {
|
|
10210
10312
|
return false;
|
|
10211
10313
|
}
|
|
10212
|
-
});
|
|
10213
|
-
if (equals_qualificationDecisionTableDetails_items === false) {
|
|
10214
|
-
return false;
|
|
10215
10314
|
}
|
|
10216
10315
|
return true;
|
|
10217
10316
|
}
|
|
@@ -10673,15 +10772,12 @@ function validate$4(obj, path = 'EligibilityRuleValueInputRepresentation') {
|
|
|
10673
10772
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10674
10773
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10675
10774
|
}
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
const path_domainEntityId = path + '.domainEntityId';
|
|
10683
|
-
if (typeof obj_domainEntityId !== 'string') {
|
|
10684
|
-
return new TypeError('Expected "string" but received "' + typeof obj_domainEntityId + '" (at "' + path_domainEntityId + '")');
|
|
10775
|
+
if (obj.domainEntity !== undefined) {
|
|
10776
|
+
const obj_domainEntity = obj.domainEntity;
|
|
10777
|
+
const path_domainEntity = path + '.domainEntity';
|
|
10778
|
+
if (typeof obj_domainEntity !== 'string') {
|
|
10779
|
+
return new TypeError('Expected "string" but received "' + typeof obj_domainEntity + '" (at "' + path_domainEntity + '")');
|
|
10780
|
+
}
|
|
10685
10781
|
}
|
|
10686
10782
|
const obj_fieldName = obj.fieldName;
|
|
10687
10783
|
const path_fieldName = path + '.fieldName';
|
|
@@ -10703,26 +10799,30 @@ function validate$4(obj, path = 'EligibilityRuleValueInputRepresentation') {
|
|
|
10703
10799
|
}
|
|
10704
10800
|
|
|
10705
10801
|
const TTL$1 = 6000;
|
|
10706
|
-
const VERSION$1 = "
|
|
10802
|
+
const VERSION$1 = "8ba0bda2c64677172a2b1cab4c2535ab";
|
|
10707
10803
|
function validate$3(obj, path = 'EligibilityRuleRepresentation') {
|
|
10708
10804
|
const v_error = (() => {
|
|
10709
10805
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10710
10806
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10711
10807
|
}
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10808
|
+
if (obj.createdDateTime !== undefined) {
|
|
10809
|
+
const obj_createdDateTime = obj.createdDateTime;
|
|
10810
|
+
const path_createdDateTime = path + '.createdDateTime';
|
|
10811
|
+
if (typeof obj_createdDateTime !== 'string') {
|
|
10812
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDateTime + '" (at "' + path_createdDateTime + '")');
|
|
10813
|
+
}
|
|
10716
10814
|
}
|
|
10717
10815
|
const obj_message = obj.message;
|
|
10718
10816
|
const path_message = path + '.message';
|
|
10719
10817
|
if (typeof obj_message !== 'string') {
|
|
10720
10818
|
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
10721
10819
|
}
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10820
|
+
if (obj.sourceObjectRecordId !== undefined) {
|
|
10821
|
+
const obj_sourceObjectRecordId = obj.sourceObjectRecordId;
|
|
10822
|
+
const path_sourceObjectRecordId = path + '.sourceObjectRecordId';
|
|
10823
|
+
if (typeof obj_sourceObjectRecordId !== 'string') {
|
|
10824
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectRecordId + '" (at "' + path_sourceObjectRecordId + '")');
|
|
10825
|
+
}
|
|
10726
10826
|
}
|
|
10727
10827
|
const obj_status = obj.status;
|
|
10728
10828
|
const path_status = path + '.status';
|
|
@@ -10734,11 +10834,11 @@ function validate$3(obj, path = 'EligibilityRuleRepresentation') {
|
|
|
10734
10834
|
}
|
|
10735
10835
|
const RepresentationType$1 = 'EligibilityRuleRepresentation';
|
|
10736
10836
|
function keyBuilder$1(luvio, config) {
|
|
10737
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.
|
|
10837
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.message;
|
|
10738
10838
|
}
|
|
10739
10839
|
function keyBuilderFromType$1(luvio, object) {
|
|
10740
10840
|
const keyParams = {
|
|
10741
|
-
|
|
10841
|
+
message: object.message
|
|
10742
10842
|
};
|
|
10743
10843
|
return keyBuilder$1(luvio, keyParams);
|
|
10744
10844
|
}
|
|
@@ -10753,7 +10853,8 @@ const select$4 = function EligibilityRuleRepresentationSelect() {
|
|
|
10753
10853
|
selections: [
|
|
10754
10854
|
{
|
|
10755
10855
|
name: 'createdDateTime',
|
|
10756
|
-
kind: 'Scalar'
|
|
10856
|
+
kind: 'Scalar',
|
|
10857
|
+
required: false
|
|
10757
10858
|
},
|
|
10758
10859
|
{
|
|
10759
10860
|
name: 'message',
|
|
@@ -10761,7 +10862,8 @@ const select$4 = function EligibilityRuleRepresentationSelect() {
|
|
|
10761
10862
|
},
|
|
10762
10863
|
{
|
|
10763
10864
|
name: 'sourceObjectRecordId',
|
|
10764
|
-
kind: 'Scalar'
|
|
10865
|
+
kind: 'Scalar',
|
|
10866
|
+
required: false
|
|
10765
10867
|
},
|
|
10766
10868
|
{
|
|
10767
10869
|
name: 'status',
|
|
@@ -10773,8 +10875,16 @@ const select$4 = function EligibilityRuleRepresentationSelect() {
|
|
|
10773
10875
|
function equals$1(existing, incoming) {
|
|
10774
10876
|
const existing_createdDateTime = existing.createdDateTime;
|
|
10775
10877
|
const incoming_createdDateTime = incoming.createdDateTime;
|
|
10776
|
-
if
|
|
10777
|
-
|
|
10878
|
+
// if at least one of these optionals is defined
|
|
10879
|
+
if (existing_createdDateTime !== undefined || incoming_createdDateTime !== undefined) {
|
|
10880
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10881
|
+
// not equal
|
|
10882
|
+
if (existing_createdDateTime === undefined || incoming_createdDateTime === undefined) {
|
|
10883
|
+
return false;
|
|
10884
|
+
}
|
|
10885
|
+
if (!(existing_createdDateTime === incoming_createdDateTime)) {
|
|
10886
|
+
return false;
|
|
10887
|
+
}
|
|
10778
10888
|
}
|
|
10779
10889
|
const existing_message = existing.message;
|
|
10780
10890
|
const incoming_message = incoming.message;
|
|
@@ -10783,8 +10893,16 @@ function equals$1(existing, incoming) {
|
|
|
10783
10893
|
}
|
|
10784
10894
|
const existing_sourceObjectRecordId = existing.sourceObjectRecordId;
|
|
10785
10895
|
const incoming_sourceObjectRecordId = incoming.sourceObjectRecordId;
|
|
10786
|
-
if
|
|
10787
|
-
|
|
10896
|
+
// if at least one of these optionals is defined
|
|
10897
|
+
if (existing_sourceObjectRecordId !== undefined || incoming_sourceObjectRecordId !== undefined) {
|
|
10898
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10899
|
+
// not equal
|
|
10900
|
+
if (existing_sourceObjectRecordId === undefined || incoming_sourceObjectRecordId === undefined) {
|
|
10901
|
+
return false;
|
|
10902
|
+
}
|
|
10903
|
+
if (!(existing_sourceObjectRecordId === incoming_sourceObjectRecordId)) {
|
|
10904
|
+
return false;
|
|
10905
|
+
}
|
|
10788
10906
|
}
|
|
10789
10907
|
const existing_status = existing.status;
|
|
10790
10908
|
const incoming_status = incoming.status;
|
|
@@ -10858,7 +10976,7 @@ const saveEligibilityRule_ConfigPropertyMetadata = [
|
|
|
10858
10976
|
generateParamConfigMetadata('conditionType', true, 2 /* Body */, 0 /* String */),
|
|
10859
10977
|
generateParamConfigMetadata('decisionTableId', true, 2 /* Body */, 0 /* String */),
|
|
10860
10978
|
generateParamConfigMetadata('sourceObjectName', true, 2 /* Body */, 0 /* String */),
|
|
10861
|
-
generateParamConfigMetadata('sourceObjectRecordId',
|
|
10979
|
+
generateParamConfigMetadata('sourceObjectRecordId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
10862
10980
|
generateParamConfigMetadata('ruleValue', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10863
10981
|
];
|
|
10864
10982
|
const saveEligibilityRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, saveEligibilityRule_ConfigPropertyMetadata);
|
|
@@ -10866,6 +10984,13 @@ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(saveEligibil
|
|
|
10866
10984
|
function typeCheckConfig$2(untrustedConfig) {
|
|
10867
10985
|
const config = {};
|
|
10868
10986
|
typeCheckConfig$g(untrustedConfig, config, saveEligibilityRule_ConfigPropertyMetadata);
|
|
10987
|
+
const untrustedConfig_sourceObjectRecordId = untrustedConfig.sourceObjectRecordId;
|
|
10988
|
+
if (typeof untrustedConfig_sourceObjectRecordId === 'string') {
|
|
10989
|
+
config.sourceObjectRecordId = untrustedConfig_sourceObjectRecordId;
|
|
10990
|
+
}
|
|
10991
|
+
if (untrustedConfig_sourceObjectRecordId === null) {
|
|
10992
|
+
config.sourceObjectRecordId = untrustedConfig_sourceObjectRecordId;
|
|
10993
|
+
}
|
|
10869
10994
|
const untrustedConfig_ruleValue = untrustedConfig.ruleValue;
|
|
10870
10995
|
if (ArrayIsArray$1(untrustedConfig_ruleValue)) {
|
|
10871
10996
|
const untrustedConfig_ruleValue_array = [];
|
|
@@ -11561,4 +11686,4 @@ withDefaultLuvio((luvio) => {
|
|
|
11561
11686
|
});
|
|
11562
11687
|
|
|
11563
11688
|
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, downloadServiceProcessTemplate, downloadServiceProcessTemplate_imperative, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getEligibilityRuleMetadata, getEligibilityRuleMetadata_imperative, getServiceRequest, getServiceRequest_imperative, saveEligibilityRule, updateCatalogItem, updateEpcCategories };
|
|
11564
|
-
// version: 1.
|
|
11689
|
+
// version: 1.400.0-3c7514a502
|