@veloceapps/api 4.0.4 → 4.0.5-1
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 +39 -31
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/configuration-api.service.js +13 -4
- package/fesm2015/veloce-api.js +14 -6
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/configuration-api.service.d.ts +6 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@veloce/core'), require('rxjs'), require('rxjs/operators'), require('lodash'), require('@angular/common'), require('moment')) :
|
3
3
|
typeof define === 'function' && define.amd ? define('@veloce/api', ['exports', '@angular/common/http', '@angular/core', '@veloce/core', 'rxjs', 'rxjs/operators', 'lodash', '@angular/common', 'moment'], factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.api = {}), global.ng.common.http, global.ng.core, global["@veloce/core"], global.rxjs, global.rxjs.operators, global.lodash, global.ng.common, global.moment));
|
5
|
-
})(this, (function (exports,
|
5
|
+
})(this, (function (exports, i2, i0, i1, rxjs, operators, _, common, moment_) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -22,7 +22,7 @@
|
|
22
22
|
return Object.freeze(n);
|
23
23
|
}
|
24
24
|
|
25
|
-
var
|
25
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
26
26
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
27
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
28
28
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
@@ -37,7 +37,7 @@
|
|
37
37
|
return this.httpService.api(Object.assign({ method: 'get', url: "" + this.SERVICE_URL }, options));
|
38
38
|
};
|
39
39
|
AccountApiService.prototype.searchAccounts$ = function (searchParams, options) {
|
40
|
-
var params = new
|
40
|
+
var params = new i2.HttpParams({ fromObject: searchParams });
|
41
41
|
return this.httpService.api(Object.assign({ url: "" + this.SERVICE_URL, params: params }, options));
|
42
42
|
};
|
43
43
|
AccountApiService.prototype.getAccount$ = function (id, options) {
|
@@ -81,11 +81,11 @@
|
|
81
81
|
this.baseHttpService = baseHttpService;
|
82
82
|
this.serviceUrl = '/catalogs';
|
83
83
|
this.fetchCatalogs$ = function (searchParams) {
|
84
|
-
var params = new
|
84
|
+
var params = new i2.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
85
85
|
return _this.baseHttpService.api({ url: "" + _this.serviceUrl, params: params });
|
86
86
|
};
|
87
87
|
this.searchCatalogs$ = function (searchParams, expression) {
|
88
|
-
var params = new
|
88
|
+
var params = new i2.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
89
89
|
return _this.baseHttpService.api({
|
90
90
|
method: 'post',
|
91
91
|
url: _this.serviceUrl + "/search",
|
@@ -204,7 +204,7 @@
|
|
204
204
|
});
|
205
205
|
};
|
206
206
|
this.searchProductCandidates$ = function (catalogId, categoryId, expression, searchParams) {
|
207
|
-
var params = new
|
207
|
+
var params = new i2.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
208
208
|
return _this.baseHttpService.api({
|
209
209
|
method: 'post',
|
210
210
|
url: _this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/candidates/search",
|
@@ -249,7 +249,7 @@
|
|
249
249
|
});
|
250
250
|
};
|
251
251
|
CatalogApiService.prototype.searchCatalogs$ = function (searchParams, expression) {
|
252
|
-
var params = new
|
252
|
+
var params = new i2.HttpParams({ fromObject: searchParams });
|
253
253
|
return this.service.api({
|
254
254
|
method: 'post',
|
255
255
|
url: this.serviceUrl + "/search",
|
@@ -270,7 +270,7 @@
|
|
270
270
|
});
|
271
271
|
};
|
272
272
|
CatalogApiService.prototype.fetchCatalogProducts$ = function (catalogId, searchParams, context) {
|
273
|
-
var params = new
|
273
|
+
var params = new i2.HttpParams({ fromObject: searchParams });
|
274
274
|
return this.service.api({
|
275
275
|
method: 'post',
|
276
276
|
url: this.serviceUrl + "/" + catalogId + "/products",
|
@@ -279,7 +279,7 @@
|
|
279
279
|
});
|
280
280
|
};
|
281
281
|
CatalogApiService.prototype.fetchCategoryProducts$ = function (catalogId, categoryId, searchParams, context) {
|
282
|
-
var params = new
|
282
|
+
var params = new i2.HttpParams({ fromObject: searchParams });
|
283
283
|
return this.service.api({
|
284
284
|
method: 'post',
|
285
285
|
url: this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products",
|
@@ -288,7 +288,7 @@
|
|
288
288
|
});
|
289
289
|
};
|
290
290
|
CatalogApiService.prototype.searchCategoryProducts$ = function (catalogId, categoryId, searchParams, searchCriteria, context) {
|
291
|
-
var params = new
|
291
|
+
var params = new i2.HttpParams({ fromObject: searchParams });
|
292
292
|
return this.service.api({
|
293
293
|
method: 'post',
|
294
294
|
url: this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products/search",
|
@@ -300,7 +300,7 @@
|
|
300
300
|
});
|
301
301
|
};
|
302
302
|
CatalogApiService.prototype.fetchEligibleProducts$ = function (searchParams, context) {
|
303
|
-
var params = new
|
303
|
+
var params = new i2.HttpParams({ fromObject: searchParams });
|
304
304
|
return this.service.api({
|
305
305
|
method: 'post',
|
306
306
|
url: this.serviceUrl + "/products",
|
@@ -309,7 +309,7 @@
|
|
309
309
|
});
|
310
310
|
};
|
311
311
|
CatalogApiService.prototype.fetchProducts$ = function (searchParams) {
|
312
|
-
var params = new
|
312
|
+
var params = new i2.HttpParams({ fromObject: searchParams });
|
313
313
|
return this.service.api({
|
314
314
|
method: 'get',
|
315
315
|
url: this.serviceUrl + "/products",
|
@@ -1018,10 +1018,18 @@
|
|
1018
1018
|
}());
|
1019
1019
|
|
1020
1020
|
var ConfigurationApiService = /** @class */ (function () {
|
1021
|
-
function ConfigurationApiService(httpService) {
|
1021
|
+
function ConfigurationApiService(httpService, httpClient) {
|
1022
1022
|
this.httpService = httpService;
|
1023
|
+
this.httpClient = httpClient;
|
1023
1024
|
this.SERVICE_URL = '/configuration';
|
1025
|
+
this.SERVICE_V2_URL = 'http://localhost:3000/configuration';
|
1024
1026
|
}
|
1027
|
+
ConfigurationApiService.prototype.initConfiguration = function () {
|
1028
|
+
return this.httpClient.post(this.SERVICE_V2_URL + "/init", {});
|
1029
|
+
};
|
1030
|
+
ConfigurationApiService.prototype.update = function (configurationId, request) {
|
1031
|
+
return this.httpClient.post(this.SERVICE_V2_URL + "/update/" + configurationId, request);
|
1032
|
+
};
|
1025
1033
|
ConfigurationApiService.prototype.configureLineItem = function (_d) {
|
1026
1034
|
var _this = this;
|
1027
1035
|
var configurationRequest = _d.configurationRequest, runtimeModel = _d.runtimeModel, pricingEnabled = _d.pricingEnabled;
|
@@ -1092,11 +1100,11 @@
|
|
1092
1100
|
};
|
1093
1101
|
return ConfigurationApiService;
|
1094
1102
|
}());
|
1095
|
-
ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1103
|
+
ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: i2__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1096
1104
|
ConfigurationApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService });
|
1097
1105
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService, decorators: [{
|
1098
1106
|
type: i0.Injectable
|
1099
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1107
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i2__namespace.HttpClient }]; } });
|
1100
1108
|
|
1101
1109
|
var ConfigurationSettingsDTO = /** @class */ (function () {
|
1102
1110
|
function ConfigurationSettingsDTO(id, key, value) {
|
@@ -1304,7 +1312,7 @@
|
|
1304
1312
|
return this.httpService.api(Object.assign({ method: 'post', body: Object.assign(Object.assign({}, searchRequest), { count: searchRequest.count || 100 }), url: this.SERVICE_URL + "/query/" + objectName }, options));
|
1305
1313
|
};
|
1306
1314
|
SalesforceApiService.prototype.queryObjects = function (search, options) {
|
1307
|
-
var params = new
|
1315
|
+
var params = new i2.HttpParams();
|
1308
1316
|
if (search) {
|
1309
1317
|
params.append('search', search);
|
1310
1318
|
}
|
@@ -1669,11 +1677,11 @@
|
|
1669
1677
|
};
|
1670
1678
|
return DocumentTemplatesApiService;
|
1671
1679
|
}());
|
1672
|
-
DocumentTemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: SalesforceApiService }, { token: i1__namespace.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: QuoteApiService }, { token:
|
1680
|
+
DocumentTemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: SalesforceApiService }, { token: i1__namespace.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: QuoteApiService }, { token: i2__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1673
1681
|
DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService });
|
1674
1682
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService, decorators: [{
|
1675
1683
|
type: i0.Injectable
|
1676
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: QuoteApiService }, { type:
|
1684
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: QuoteApiService }, { type: i2__namespace.HttpClient }]; } });
|
1677
1685
|
|
1678
1686
|
var FlowsApiService = /** @class */ (function () {
|
1679
1687
|
function FlowsApiService(configurationSettingsApiService) {
|
@@ -1807,7 +1815,7 @@
|
|
1807
1815
|
return _this.searchProcedures$(new i1.Expression(), 0, 100);
|
1808
1816
|
};
|
1809
1817
|
this.searchProcedures$ = function (expression, skip, count) {
|
1810
|
-
var params = new
|
1818
|
+
var params = new i2.HttpParams();
|
1811
1819
|
params = params.set('skip', '' + skip);
|
1812
1820
|
params = params.set('count', '' + count);
|
1813
1821
|
return _this.baseHttpService.api({
|
@@ -1892,7 +1900,7 @@
|
|
1892
1900
|
this.baseHttpService = baseHttpService;
|
1893
1901
|
this.serviceUrl = '/products';
|
1894
1902
|
this.fetchProducts$ = function (payload) {
|
1895
|
-
var params = new
|
1903
|
+
var params = new i2.HttpParams();
|
1896
1904
|
params = params.append('count', payload.count);
|
1897
1905
|
params = params.append('skip', payload.skip);
|
1898
1906
|
if (payload.name) {
|
@@ -1901,7 +1909,7 @@
|
|
1901
1909
|
return _this.baseHttpService.api({ url: "" + _this.serviceUrl, params: params });
|
1902
1910
|
};
|
1903
1911
|
this.searchProducts$ = function (expression, skip, count) {
|
1904
|
-
var params = new
|
1912
|
+
var params = new i2.HttpParams();
|
1905
1913
|
params = params.set('skip', '' + skip);
|
1906
1914
|
params = params.set('count', '' + count);
|
1907
1915
|
return _this.baseHttpService.api({
|
@@ -1916,7 +1924,7 @@
|
|
1916
1924
|
return _this.baseHttpService.api({ url: _this.serviceUrl + "/attributes/definition" });
|
1917
1925
|
};
|
1918
1926
|
this.searchAttributes$ = function (expression, skip, count) {
|
1919
|
-
var params = new
|
1927
|
+
var params = new i2.HttpParams();
|
1920
1928
|
params = params.set('skip', '' + skip);
|
1921
1929
|
params = params.set('count', '' + count);
|
1922
1930
|
return _this.baseHttpService.api({
|
@@ -2294,7 +2302,7 @@
|
|
2294
2302
|
return _this.searchRuleGroups$(new i1.Expression(), 0, 100);
|
2295
2303
|
};
|
2296
2304
|
this.searchRuleGroups$ = function (expression, skip, count) {
|
2297
|
-
var params = new
|
2305
|
+
var params = new i2.HttpParams();
|
2298
2306
|
params = params.set('skip', '' + skip);
|
2299
2307
|
params = params.set('count', '' + count);
|
2300
2308
|
return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
|
@@ -2352,7 +2360,7 @@
|
|
2352
2360
|
return _this.searchRules$(new i1.Expression(), 0, 100);
|
2353
2361
|
};
|
2354
2362
|
this.searchRules$ = function (expression, skip, count) {
|
2355
|
-
var params = new
|
2363
|
+
var params = new i2.HttpParams();
|
2356
2364
|
params = params.set('skip', '' + skip);
|
2357
2365
|
params = params.set('count', '' + count);
|
2358
2366
|
return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
|
@@ -2429,7 +2437,7 @@
|
|
2429
2437
|
return _this.baseHttpService.api({ url: "" + _this.serviceUrl });
|
2430
2438
|
};
|
2431
2439
|
this.searchScripts$ = function (expression, skip, count) {
|
2432
|
-
var params = new
|
2440
|
+
var params = new i2.HttpParams();
|
2433
2441
|
params = params.set('skip', '' + skip);
|
2434
2442
|
params = params.set('count', '' + count);
|
2435
2443
|
return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
|
@@ -2513,7 +2521,7 @@
|
|
2513
2521
|
this.baseHttpService = baseHttpService;
|
2514
2522
|
this.serviceUrl = '/uitemplates';
|
2515
2523
|
this.fetchTemplates$ = function (name) {
|
2516
|
-
var params = new
|
2524
|
+
var params = new i2.HttpParams();
|
2517
2525
|
if (name) {
|
2518
2526
|
params = params.append('name', name);
|
2519
2527
|
}
|
@@ -2563,7 +2571,7 @@
|
|
2563
2571
|
});
|
2564
2572
|
};
|
2565
2573
|
this.fetchComponents$ = function (templateId, name) {
|
2566
|
-
var params = new
|
2574
|
+
var params = new i2.HttpParams();
|
2567
2575
|
if (name) {
|
2568
2576
|
params = params.append('name', name);
|
2569
2577
|
}
|
@@ -2641,7 +2649,7 @@
|
|
2641
2649
|
}), rxjs.map(function (attachments) { return fromUIComponentStoryDTO(storyDto, attachments); }));
|
2642
2650
|
};
|
2643
2651
|
this.fetchStories$ = function (templateId, componentId, name) {
|
2644
|
-
var params = new
|
2652
|
+
var params = new i2.HttpParams();
|
2645
2653
|
if (name) {
|
2646
2654
|
params = params.append('name', name);
|
2647
2655
|
}
|
@@ -2796,7 +2804,7 @@
|
|
2796
2804
|
return ApiModule;
|
2797
2805
|
}());
|
2798
2806
|
ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
2799
|
-
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [
|
2807
|
+
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [i2.HttpClientModule] });
|
2800
2808
|
ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, providers: [
|
2801
2809
|
i1.BaseHttpService,
|
2802
2810
|
i1.XrayService,
|
@@ -2822,11 +2830,11 @@
|
|
2822
2830
|
DeltaApiService,
|
2823
2831
|
AccountApiService,
|
2824
2832
|
PicklistsApiService,
|
2825
|
-
], imports: [[
|
2833
|
+
], imports: [[i2.HttpClientModule]] });
|
2826
2834
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, decorators: [{
|
2827
2835
|
type: i0.NgModule,
|
2828
2836
|
args: [{
|
2829
|
-
imports: [
|
2837
|
+
imports: [i2.HttpClientModule],
|
2830
2838
|
providers: [
|
2831
2839
|
i1.BaseHttpService,
|
2832
2840
|
i1.XrayService,
|