@veloceapps/api 4.0.19 → 4.0.20
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 +88 -80
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/document-templates-api.service.js +14 -9
- package/esm2015/lib/types/dto/configuration-dto.types.js +4 -2
- package/fesm2015/veloce-api.js +61 -53
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/document-templates-api.service.d.ts +2 -3
- package/lib/types/dto/configuration-dto.types.d.ts +4 -2
- 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, i4, 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 i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
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 i4.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 i4.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 i4.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 i4.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 i4.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 i4.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 i4.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 i4.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 i4.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 i4.HttpParams({ fromObject: searchParams });
|
313
313
|
return this.service.api({
|
314
314
|
method: 'get',
|
315
315
|
url: this.serviceUrl + "/products",
|
@@ -1007,15 +1007,17 @@
|
|
1007
1007
|
}());
|
1008
1008
|
|
1009
1009
|
var ConfigurePriceDTO = /** @class */ (function () {
|
1010
|
-
function ConfigurePriceDTO(lineItem, context, charges) {
|
1010
|
+
function ConfigurePriceDTO(lineItem, context, charges, pricePlans) {
|
1011
1011
|
this.lineItem = lineItem;
|
1012
1012
|
this.context = context;
|
1013
1013
|
this.charges = charges;
|
1014
|
+
this.pricePlans = pricePlans;
|
1014
1015
|
}
|
1015
1016
|
ConfigurePriceDTO.fromDTO = function (dto) {
|
1016
1017
|
return {
|
1017
1018
|
lineItem: LineItemDTO.fromDTO(dto.lineItem),
|
1018
1019
|
charges: dto.charges,
|
1020
|
+
pricePlans: dto.pricePlans,
|
1019
1021
|
context: dto.context,
|
1020
1022
|
deletedLineItems: dto.deletedLineItems.map(function (deletedLineItem) { return LineItemDTO.fromDTO(deletedLineItem); }),
|
1021
1023
|
};
|
@@ -1141,7 +1143,7 @@
|
|
1141
1143
|
return this.httpService
|
1142
1144
|
.api(Object.assign({ url: this.SERVICE_URL + "/byKey/" + settingsKey, method: 'get' }, options))
|
1143
1145
|
.pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function (err) {
|
1144
|
-
if (err instanceof
|
1146
|
+
if (err instanceof i4.HttpErrorResponse && err.status === 404) {
|
1145
1147
|
return rxjs.of(null);
|
1146
1148
|
}
|
1147
1149
|
throw err;
|
@@ -1292,7 +1294,7 @@
|
|
1292
1294
|
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));
|
1293
1295
|
};
|
1294
1296
|
SalesforceApiService.prototype.queryObjects = function (search, options) {
|
1295
|
-
var params = new
|
1297
|
+
var params = new i4.HttpParams();
|
1296
1298
|
if (search) {
|
1297
1299
|
params = params.append('search', search);
|
1298
1300
|
}
|
@@ -1320,61 +1322,15 @@
|
|
1320
1322
|
type: i0.Injectable
|
1321
1323
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1322
1324
|
|
1323
|
-
var QuoteApiService = /** @class */ (function () {
|
1324
|
-
function QuoteApiService(httpService) {
|
1325
|
-
this.httpService = httpService;
|
1326
|
-
this.SERVICE_URL = '/quotes';
|
1327
|
-
/**
|
1328
|
-
* @deprecated
|
1329
|
-
* Will be removed in next major release
|
1330
|
-
* Use `getQuoteDraft` instead
|
1331
|
-
*/
|
1332
|
-
// eslint-disable-next-line @typescript-eslint/member-ordering
|
1333
|
-
this.getQuote = this.getQuoteDraft;
|
1334
|
-
}
|
1335
|
-
// request quoteId | accountId | opportunityId | orderId
|
1336
|
-
QuoteApiService.prototype.getQuoteDraft = function (objectId, params, errorHandler) {
|
1337
|
-
return this.httpService.api({
|
1338
|
-
method: 'get',
|
1339
|
-
url: this.SERVICE_URL + "/" + objectId,
|
1340
|
-
params: params,
|
1341
|
-
errorHandler: errorHandler,
|
1342
|
-
});
|
1343
|
-
};
|
1344
|
-
QuoteApiService.prototype.upsertQuote = function (request, options) {
|
1345
|
-
return this.httpService.api(Object.assign({ method: 'post', url: "" + this.SERVICE_URL, body: request }, options));
|
1346
|
-
};
|
1347
|
-
QuoteApiService.prototype.submitQuote = function (request, options) {
|
1348
|
-
return this.httpService.api(Object.assign({ method: 'post', url: this.SERVICE_URL + "/submit", body: request }, options));
|
1349
|
-
};
|
1350
|
-
QuoteApiService.prototype.attachDocument = function (id, documentName, data) {
|
1351
|
-
var formData = new FormData();
|
1352
|
-
var blob = new Blob([data]);
|
1353
|
-
formData.append('file', blob, documentName);
|
1354
|
-
return this.httpService.upload({
|
1355
|
-
url: this.SERVICE_URL + "/" + id + "/attach-document",
|
1356
|
-
responseType: 'arraybuffer',
|
1357
|
-
method: 'post',
|
1358
|
-
body: formData,
|
1359
|
-
});
|
1360
|
-
};
|
1361
|
-
return QuoteApiService;
|
1362
|
-
}());
|
1363
|
-
QuoteApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1364
|
-
QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService });
|
1365
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService, decorators: [{
|
1366
|
-
type: i0.Injectable
|
1367
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1368
|
-
|
1369
1325
|
var moment = moment___namespace;
|
1370
1326
|
var DocumentTemplatesApiService = /** @class */ (function () {
|
1371
|
-
function DocumentTemplatesApiService(service, salesforceApiService, fileDownloadService, documentAttachmentService,
|
1327
|
+
function DocumentTemplatesApiService(service, salesforceApiService, fileDownloadService, documentAttachmentService, http) {
|
1372
1328
|
this.service = service;
|
1373
1329
|
this.salesforceApiService = salesforceApiService;
|
1374
1330
|
this.fileDownloadService = fileDownloadService;
|
1375
1331
|
this.documentAttachmentService = documentAttachmentService;
|
1376
|
-
this.quoteApiService = quoteApiService;
|
1377
1332
|
this.http = http;
|
1333
|
+
this.DOCGEN_TAG = 'docgen';
|
1378
1334
|
this.SERVICE_URL = '/templates';
|
1379
1335
|
this.DOC_GEN_URL_FALLBACK = 'https://dev-dp1.velocpq.com/docgen';
|
1380
1336
|
this.mapSfQueryResult = function (limit) { return operators.map(function (records) {
|
@@ -1536,8 +1492,14 @@
|
|
1536
1492
|
}
|
1537
1493
|
return _this.mergeDocuments(document, attachments).pipe(operators.switchMap(function (pdf) {
|
1538
1494
|
if (params.attachToQuote && i1.QuoteDraft.isQuote(object)) {
|
1539
|
-
|
1540
|
-
|
1495
|
+
var file = new File([pdf], documentName + ".pdf");
|
1496
|
+
return _this.documentAttachmentService
|
1497
|
+
.createAttachment({
|
1498
|
+
linkedEntityId: object.quoteId,
|
1499
|
+
fileName: documentName,
|
1500
|
+
fileExtension: 'pdf',
|
1501
|
+
tags: _this.DOCGEN_TAG,
|
1502
|
+
}, file)
|
1541
1503
|
.pipe(operators.map(function () { return pdf; }));
|
1542
1504
|
}
|
1543
1505
|
return rxjs.of(pdf);
|
@@ -1657,11 +1619,11 @@
|
|
1657
1619
|
};
|
1658
1620
|
return DocumentTemplatesApiService;
|
1659
1621
|
}());
|
1660
|
-
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:
|
1622
|
+
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: i4__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1661
1623
|
DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService });
|
1662
1624
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService, decorators: [{
|
1663
1625
|
type: i0.Injectable
|
1664
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1626
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4__namespace.HttpClient }]; } });
|
1665
1627
|
|
1666
1628
|
var FlowsApiService = /** @class */ (function () {
|
1667
1629
|
function FlowsApiService(configurationSettingsApiService) {
|
@@ -1792,7 +1754,7 @@
|
|
1792
1754
|
return _this.searchProcedures$(new i1.Expression(), 0, 100);
|
1793
1755
|
};
|
1794
1756
|
this.searchProcedures$ = function (expression, skip, count) {
|
1795
|
-
var params = new
|
1757
|
+
var params = new i4.HttpParams();
|
1796
1758
|
params = params.set('skip', '' + skip);
|
1797
1759
|
params = params.set('count', '' + count);
|
1798
1760
|
return _this.baseHttpService.api({
|
@@ -1877,7 +1839,7 @@
|
|
1877
1839
|
this.baseHttpService = baseHttpService;
|
1878
1840
|
this.serviceUrl = '/products';
|
1879
1841
|
this.fetchProducts$ = function (payload) {
|
1880
|
-
var params = new
|
1842
|
+
var params = new i4.HttpParams();
|
1881
1843
|
params = params.append('count', payload.count);
|
1882
1844
|
params = params.append('skip', payload.skip);
|
1883
1845
|
if (payload.name) {
|
@@ -1886,7 +1848,7 @@
|
|
1886
1848
|
return _this.baseHttpService.api({ url: "" + _this.serviceUrl, params: params });
|
1887
1849
|
};
|
1888
1850
|
this.searchProducts$ = function (expression, skip, count) {
|
1889
|
-
var params = new
|
1851
|
+
var params = new i4.HttpParams();
|
1890
1852
|
params = params.set('skip', '' + skip);
|
1891
1853
|
params = params.set('count', '' + count);
|
1892
1854
|
return _this.baseHttpService.api({
|
@@ -1901,7 +1863,7 @@
|
|
1901
1863
|
return _this.baseHttpService.api({ url: _this.serviceUrl + "/attributes/definition" });
|
1902
1864
|
};
|
1903
1865
|
this.searchAttributes$ = function (expression, skip, count) {
|
1904
|
-
var params = new
|
1866
|
+
var params = new i4.HttpParams();
|
1905
1867
|
params = params.set('skip', '' + skip);
|
1906
1868
|
params = params.set('count', '' + count);
|
1907
1869
|
return _this.baseHttpService.api({
|
@@ -2251,6 +2213,52 @@
|
|
2251
2213
|
type: i0.Injectable
|
2252
2214
|
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2253
2215
|
|
2216
|
+
var QuoteApiService = /** @class */ (function () {
|
2217
|
+
function QuoteApiService(httpService) {
|
2218
|
+
this.httpService = httpService;
|
2219
|
+
this.SERVICE_URL = '/quotes';
|
2220
|
+
/**
|
2221
|
+
* @deprecated
|
2222
|
+
* Will be removed in next major release
|
2223
|
+
* Use `getQuoteDraft` instead
|
2224
|
+
*/
|
2225
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
2226
|
+
this.getQuote = this.getQuoteDraft;
|
2227
|
+
}
|
2228
|
+
// request quoteId | accountId | opportunityId | orderId
|
2229
|
+
QuoteApiService.prototype.getQuoteDraft = function (objectId, params, errorHandler) {
|
2230
|
+
return this.httpService.api({
|
2231
|
+
method: 'get',
|
2232
|
+
url: this.SERVICE_URL + "/" + objectId,
|
2233
|
+
params: params,
|
2234
|
+
errorHandler: errorHandler,
|
2235
|
+
});
|
2236
|
+
};
|
2237
|
+
QuoteApiService.prototype.upsertQuote = function (request, options) {
|
2238
|
+
return this.httpService.api(Object.assign({ method: 'post', url: "" + this.SERVICE_URL, body: request }, options));
|
2239
|
+
};
|
2240
|
+
QuoteApiService.prototype.submitQuote = function (request, options) {
|
2241
|
+
return this.httpService.api(Object.assign({ method: 'post', url: this.SERVICE_URL + "/submit", body: request }, options));
|
2242
|
+
};
|
2243
|
+
QuoteApiService.prototype.attachDocument = function (id, documentName, data) {
|
2244
|
+
var formData = new FormData();
|
2245
|
+
var blob = new Blob([data]);
|
2246
|
+
formData.append('file', blob, documentName);
|
2247
|
+
return this.httpService.upload({
|
2248
|
+
url: this.SERVICE_URL + "/" + id + "/attach-document",
|
2249
|
+
responseType: 'arraybuffer',
|
2250
|
+
method: 'post',
|
2251
|
+
body: formData,
|
2252
|
+
});
|
2253
|
+
};
|
2254
|
+
return QuoteApiService;
|
2255
|
+
}());
|
2256
|
+
QuoteApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
2257
|
+
QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService });
|
2258
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService, decorators: [{
|
2259
|
+
type: i0.Injectable
|
2260
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
2261
|
+
|
2254
2262
|
var RampApiService = /** @class */ (function () {
|
2255
2263
|
function RampApiService(httpService) {
|
2256
2264
|
this.httpService = httpService;
|
@@ -2279,7 +2287,7 @@
|
|
2279
2287
|
return _this.searchRuleGroups$(new i1.Expression(), 0, 100);
|
2280
2288
|
};
|
2281
2289
|
this.searchRuleGroups$ = function (expression, skip, count) {
|
2282
|
-
var params = new
|
2290
|
+
var params = new i4.HttpParams();
|
2283
2291
|
params = params.set('skip', '' + skip);
|
2284
2292
|
params = params.set('count', '' + count);
|
2285
2293
|
return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
|
@@ -2337,7 +2345,7 @@
|
|
2337
2345
|
return _this.searchRules$(new i1.Expression(), 0, 100);
|
2338
2346
|
};
|
2339
2347
|
this.searchRules$ = function (expression, skip, count) {
|
2340
|
-
var params = new
|
2348
|
+
var params = new i4.HttpParams();
|
2341
2349
|
params = params.set('skip', '' + skip);
|
2342
2350
|
params = params.set('count', '' + count);
|
2343
2351
|
return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
|
@@ -2414,7 +2422,7 @@
|
|
2414
2422
|
return _this.baseHttpService.api({ url: "" + _this.serviceUrl });
|
2415
2423
|
};
|
2416
2424
|
this.searchScripts$ = function (expression, skip, count) {
|
2417
|
-
var params = new
|
2425
|
+
var params = new i4.HttpParams();
|
2418
2426
|
params = params.set('skip', '' + skip);
|
2419
2427
|
params = params.set('count', '' + count);
|
2420
2428
|
return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
|
@@ -2498,7 +2506,7 @@
|
|
2498
2506
|
this.baseHttpService = baseHttpService;
|
2499
2507
|
this.serviceUrl = '/uitemplates';
|
2500
2508
|
this.fetchTemplates$ = function (name) {
|
2501
|
-
var params = new
|
2509
|
+
var params = new i4.HttpParams();
|
2502
2510
|
if (name) {
|
2503
2511
|
params = params.append('name', name);
|
2504
2512
|
}
|
@@ -2548,7 +2556,7 @@
|
|
2548
2556
|
});
|
2549
2557
|
};
|
2550
2558
|
this.fetchComponents$ = function (templateId, name) {
|
2551
|
-
var params = new
|
2559
|
+
var params = new i4.HttpParams();
|
2552
2560
|
if (name) {
|
2553
2561
|
params = params.append('name', name);
|
2554
2562
|
}
|
@@ -2626,7 +2634,7 @@
|
|
2626
2634
|
}), rxjs.map(function (attachments) { return fromUIComponentStoryDTO(storyDto, attachments); }));
|
2627
2635
|
};
|
2628
2636
|
this.fetchStories$ = function (templateId, componentId, name) {
|
2629
|
-
var params = new
|
2637
|
+
var params = new i4.HttpParams();
|
2630
2638
|
if (name) {
|
2631
2639
|
params = params.append('name', name);
|
2632
2640
|
}
|
@@ -2781,7 +2789,7 @@
|
|
2781
2789
|
return ApiModule;
|
2782
2790
|
}());
|
2783
2791
|
ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
2784
|
-
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [
|
2792
|
+
ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [i4.HttpClientModule] });
|
2785
2793
|
ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, providers: [
|
2786
2794
|
i1.BaseHttpService,
|
2787
2795
|
i1.XrayService,
|
@@ -2807,11 +2815,11 @@
|
|
2807
2815
|
DeltaApiService,
|
2808
2816
|
AccountApiService,
|
2809
2817
|
PicklistsApiService,
|
2810
|
-
], imports: [[
|
2818
|
+
], imports: [[i4.HttpClientModule]] });
|
2811
2819
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, decorators: [{
|
2812
2820
|
type: i0.NgModule,
|
2813
2821
|
args: [{
|
2814
|
-
imports: [
|
2822
|
+
imports: [i4.HttpClientModule],
|
2815
2823
|
providers: [
|
2816
2824
|
i1.BaseHttpService,
|
2817
2825
|
i1.XrayService,
|