@veloceapps/api 11.0.0-50 → 11.0.0-52

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.
@@ -2,7 +2,7 @@ import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common
2
2
  import * as i0 from '@angular/core';
3
3
  import { Injectable, NgModule } from '@angular/core';
4
4
  import * as i1 from '@veloceapps/core';
5
- import { Expression, RuleGroupTypes, Operator, parseJsonSafely, parseJsonStringAsObject, BaseHttpService, XrayService } from '@veloceapps/core';
5
+ import { Expression, Operator, parseJsonSafely, parseJsonStringAsObject, BaseHttpService, XrayService } from '@veloceapps/core';
6
6
  import { noop, of, map as map$1, tap as tap$1, catchError as catchError$1, forkJoin, switchMap } from 'rxjs';
7
7
  import { map, catchError, tap } from 'rxjs/operators';
8
8
  import * as i2 from 'primeng/api';
@@ -782,7 +782,7 @@ class FunctionsAdminApiService {
782
782
  });
783
783
  }
784
784
  execute$(body) {
785
- const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
785
+ const url = `${this.serviceUrl}/execute`;
786
786
  return this.baseHttpService.api({
787
787
  url,
788
788
  method: 'post',
@@ -802,17 +802,6 @@ class FunctionsAdminApiService {
802
802
  method: 'get',
803
803
  });
804
804
  }
805
- getExecuteRuleUrl(ruleGroupType) {
806
- switch (ruleGroupType) {
807
- case RuleGroupTypes.eligibility:
808
- return `${this.serviceUrl}/eligibility/execute`;
809
- case RuleGroupTypes.rlmContextBased:
810
- case RuleGroupTypes.generalContextBased:
811
- return `${this.serviceUrl}/execute`;
812
- default:
813
- return `${this.serviceUrl}/legacy/execute`;
814
- }
815
- }
816
805
  }
817
806
  FunctionsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
818
807
  FunctionsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FunctionsAdminApiService });