@veloceapps/api 8.0.0-68 → 8.0.0-69
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/esm2020/lib/services/rules-api.service.mjs +11 -2
- package/fesm2015/veloceapps-api.mjs +10 -1
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +10 -1
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/lib/services/rules-api.service.d.ts +1 -0
- package/package.json +1 -1
@@ -2327,13 +2327,22 @@ class RulesApiService {
|
|
2327
2327
|
});
|
2328
2328
|
}
|
2329
2329
|
execute$(body) {
|
2330
|
-
const url = body.rule.ruleGroupType
|
2330
|
+
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
2331
2331
|
return this.baseHttpService.api({
|
2332
2332
|
url,
|
2333
2333
|
method: 'post',
|
2334
2334
|
body,
|
2335
2335
|
});
|
2336
2336
|
}
|
2337
|
+
getExecuteRuleUrl(ruleGroupType) {
|
2338
|
+
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2339
|
+
return '/rules/eligibility/execute';
|
2340
|
+
}
|
2341
|
+
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2342
|
+
return '/rules/catalog/execute';
|
2343
|
+
}
|
2344
|
+
return '/rules/execute';
|
2345
|
+
}
|
2337
2346
|
}
|
2338
2347
|
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2339
2348
|
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|