@veloceapps/api 11.0.0-73 → 11.0.0-75
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/v2/services/functions-admin-api.service.mjs +25 -14
- package/fesm2015/veloceapps-api-v2.mjs +24 -13
- package/fesm2015/veloceapps-api-v2.mjs.map +1 -1
- package/fesm2020/veloceapps-api-v2.mjs +24 -13
- package/fesm2020/veloceapps-api-v2.mjs.map +1 -1
- package/package.json +1 -1
- package/v2/services/functions-admin-api.service.d.ts +1 -0
@@ -722,7 +722,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
722
722
|
class FunctionsAdminApiService {
|
723
723
|
constructor(baseHttpService) {
|
724
724
|
this.baseHttpService = baseHttpService;
|
725
|
-
this.serviceUrl = '/admin/v2/functions
|
725
|
+
this.serviceUrl = '/admin/v2/functions';
|
726
726
|
this.fetchAll$ = () => {
|
727
727
|
return this.search$(new Expression(), 0, 100);
|
728
728
|
};
|
@@ -734,18 +734,23 @@ class FunctionsAdminApiService {
|
|
734
734
|
if (typeof count === 'number') {
|
735
735
|
params = params.set('count', '' + count);
|
736
736
|
}
|
737
|
-
return this.baseHttpService.api({
|
737
|
+
return this.baseHttpService.api({
|
738
|
+
method: 'post',
|
739
|
+
url: `${this.serviceUrl}/rules/search`,
|
740
|
+
params,
|
741
|
+
body: expression,
|
742
|
+
});
|
738
743
|
};
|
739
744
|
this.create$ = (rule) => {
|
740
745
|
return this.baseHttpService.api({
|
741
|
-
url: `${this.serviceUrl}`,
|
746
|
+
url: `${this.serviceUrl}/rules`,
|
742
747
|
method: 'post',
|
743
748
|
body: rule,
|
744
749
|
});
|
745
750
|
};
|
746
751
|
this.update$ = (rule) => {
|
747
752
|
return this.baseHttpService.api({
|
748
|
-
url: `${this.serviceUrl}/${rule.id}`,
|
753
|
+
url: `${this.serviceUrl}/rules/${rule.id}`,
|
749
754
|
method: 'put',
|
750
755
|
body: rule,
|
751
756
|
});
|
@@ -753,7 +758,7 @@ class FunctionsAdminApiService {
|
|
753
758
|
this.duplicate$ = (body) => {
|
754
759
|
return this.baseHttpService
|
755
760
|
.api({
|
756
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
761
|
+
url: `${this.serviceUrl}/rules/${body.id}/clone`,
|
757
762
|
method: 'post',
|
758
763
|
body,
|
759
764
|
})
|
@@ -761,31 +766,31 @@ class FunctionsAdminApiService {
|
|
761
766
|
};
|
762
767
|
this.remove$ = (id) => {
|
763
768
|
return this.baseHttpService.api({
|
764
|
-
url: `${this.serviceUrl}/${id}`,
|
769
|
+
url: `${this.serviceUrl}/rules/${id}`,
|
765
770
|
method: 'delete',
|
766
771
|
});
|
767
772
|
};
|
768
773
|
this.restore$ = (id) => {
|
769
774
|
return this.baseHttpService.api({
|
770
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
775
|
+
url: `${this.serviceUrl}/rules/${id}/restore`,
|
771
776
|
method: 'patch',
|
772
777
|
});
|
773
778
|
};
|
774
779
|
}
|
775
780
|
fetch$(id) {
|
776
781
|
return this.baseHttpService.api({
|
777
|
-
url: `${this.serviceUrl}/${id}`,
|
782
|
+
url: `${this.serviceUrl}/rules/${id}`,
|
778
783
|
method: 'get',
|
779
784
|
});
|
780
785
|
}
|
781
786
|
fetchHeaderFields$() {
|
782
787
|
return this.baseHttpService.api({
|
783
|
-
url: `${this.serviceUrl}/describe/Header`,
|
788
|
+
url: `${this.serviceUrl}/rules/describe/Header`,
|
784
789
|
method: 'get',
|
785
790
|
});
|
786
791
|
}
|
787
792
|
execute$(body) {
|
788
|
-
const url = `${this.serviceUrl}/execute`;
|
793
|
+
const url = `${this.serviceUrl}/rules/execute`;
|
789
794
|
return this.baseHttpService.api({
|
790
795
|
url,
|
791
796
|
method: 'post',
|
@@ -794,20 +799,26 @@ class FunctionsAdminApiService {
|
|
794
799
|
}
|
795
800
|
executeExtractFunction$(body) {
|
796
801
|
return this.baseHttpService.api({
|
797
|
-
url:
|
802
|
+
url: `${this.serviceUrl}/extract`,
|
798
803
|
method: 'post',
|
799
804
|
body,
|
800
805
|
});
|
801
806
|
}
|
802
807
|
fetchFunctionDatasets$() {
|
803
808
|
return this.baseHttpService.api({
|
804
|
-
url:
|
809
|
+
url: `${this.serviceUrl}/datasets`,
|
805
810
|
method: 'get',
|
806
811
|
});
|
807
812
|
}
|
808
813
|
fetchFunctionTags$() {
|
809
814
|
return this.baseHttpService.api({
|
810
|
-
url:
|
815
|
+
url: `${this.serviceUrl}/tags`,
|
816
|
+
method: 'get',
|
817
|
+
});
|
818
|
+
}
|
819
|
+
fetchObjectParentIdFields$(objectName) {
|
820
|
+
return this.baseHttpService.api({
|
821
|
+
url: `${this.serviceUrl}/parent-id-fields/${objectName}`,
|
811
822
|
method: 'get',
|
812
823
|
});
|
813
824
|
}
|