@veloceapps/api 5.0.8 → 5.0.10
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/bundles/veloce-api.umd.js +64 -0
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/index.js +3 -2
- package/esm2015/lib/api.module.js +4 -1
- package/esm2015/lib/services/endpoints-api.service.js +65 -0
- package/fesm2015/veloce-api.js +63 -1
- package/fesm2015/veloce-api.js.map +1 -1
- package/index.d.ts +2 -1
- package/lib/services/endpoints-api.service.d.ts +19 -0
- package/package.json +1 -1
@@ -1631,6 +1631,67 @@
|
|
1631
1631
|
type: i0.Injectable
|
1632
1632
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4__namespace.HttpClient }]; } });
|
1633
1633
|
|
1634
|
+
var EndpointsApiService = /** @class */ (function () {
|
1635
|
+
function EndpointsApiService(baseHttpService) {
|
1636
|
+
this.baseHttpService = baseHttpService;
|
1637
|
+
this.serviceUrl = '/admin/api-endpoints';
|
1638
|
+
}
|
1639
|
+
EndpointsApiService.prototype.fetchEndpoints$ = function () {
|
1640
|
+
return this.searchEndpoints$(new i1.Expression(), 0, -1);
|
1641
|
+
};
|
1642
|
+
EndpointsApiService.prototype.searchEndpoints$ = function (expression, skip, count) {
|
1643
|
+
var params = new i4.HttpParams();
|
1644
|
+
params = params.set('skip', '' + skip);
|
1645
|
+
params = params.set('count', '' + count);
|
1646
|
+
return this.baseHttpService.api({ method: 'post', url: this.serviceUrl + "/search", params: params, body: expression });
|
1647
|
+
};
|
1648
|
+
EndpointsApiService.prototype.removeEndpoint$ = function (id) {
|
1649
|
+
return this.baseHttpService.api({
|
1650
|
+
url: this.serviceUrl + "/" + id,
|
1651
|
+
method: 'delete',
|
1652
|
+
});
|
1653
|
+
};
|
1654
|
+
EndpointsApiService.prototype.restoreEndpoint$ = function (id) {
|
1655
|
+
return this.baseHttpService.api({
|
1656
|
+
url: this.serviceUrl + "/" + id + "/restore",
|
1657
|
+
method: 'patch',
|
1658
|
+
});
|
1659
|
+
};
|
1660
|
+
EndpointsApiService.prototype.fetchEndpoint$ = function (id) {
|
1661
|
+
return this.baseHttpService.api({
|
1662
|
+
url: this.serviceUrl + "/" + id,
|
1663
|
+
method: 'get',
|
1664
|
+
});
|
1665
|
+
};
|
1666
|
+
EndpointsApiService.prototype.createNewEndpoint$ = function (body) {
|
1667
|
+
return this.baseHttpService.api({
|
1668
|
+
url: "" + this.serviceUrl,
|
1669
|
+
method: 'post',
|
1670
|
+
body: body,
|
1671
|
+
});
|
1672
|
+
};
|
1673
|
+
EndpointsApiService.prototype.updateEndpoint$ = function (body) {
|
1674
|
+
return this.baseHttpService.api({
|
1675
|
+
url: this.serviceUrl + "/" + body.id,
|
1676
|
+
method: 'put',
|
1677
|
+
body: body,
|
1678
|
+
});
|
1679
|
+
};
|
1680
|
+
EndpointsApiService.prototype.duplicateEndpoint$ = function (cloneRequest) {
|
1681
|
+
return this.baseHttpService.api({
|
1682
|
+
url: this.serviceUrl + "/" + cloneRequest.id + "/clone",
|
1683
|
+
method: 'post',
|
1684
|
+
body: cloneRequest,
|
1685
|
+
});
|
1686
|
+
};
|
1687
|
+
return EndpointsApiService;
|
1688
|
+
}());
|
1689
|
+
EndpointsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EndpointsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1690
|
+
EndpointsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EndpointsApiService });
|
1691
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: EndpointsApiService, decorators: [{
|
1692
|
+
type: i0.Injectable
|
1693
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1694
|
+
|
1634
1695
|
var FlowsApiService = /** @class */ (function () {
|
1635
1696
|
function FlowsApiService(configurationSettingsApiService) {
|
1636
1697
|
this.configurationSettingsApiService = configurationSettingsApiService;
|
@@ -2821,6 +2882,7 @@
|
|
2821
2882
|
DeltaApiService,
|
2822
2883
|
AccountApiService,
|
2823
2884
|
PicklistsApiService,
|
2885
|
+
EndpointsApiService,
|
2824
2886
|
], imports: [[i4.HttpClientModule]] });
|
2825
2887
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, decorators: [{
|
2826
2888
|
type: i0.NgModule,
|
@@ -2851,6 +2913,7 @@
|
|
2851
2913
|
DeltaApiService,
|
2852
2914
|
AccountApiService,
|
2853
2915
|
PicklistsApiService,
|
2916
|
+
EndpointsApiService,
|
2854
2917
|
],
|
2855
2918
|
}]
|
2856
2919
|
}] });
|
@@ -2869,6 +2932,7 @@
|
|
2869
2932
|
exports.DeltaApiService = DeltaApiService;
|
2870
2933
|
exports.DocumentAttachmentApiService = DocumentAttachmentApiService;
|
2871
2934
|
exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
|
2935
|
+
exports.EndpointsApiService = EndpointsApiService;
|
2872
2936
|
exports.FlowsApiService = FlowsApiService;
|
2873
2937
|
exports.PicklistsApiService = PicklistsApiService;
|
2874
2938
|
exports.PriceApiService = PriceApiService;
|