@veloceapps/api 7.0.2-1 → 7.0.2-100
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/index.mjs +4 -1
- package/esm2020/lib/api.module.mjs +10 -1
- package/esm2020/lib/services/catalog-admin-api.service.mjs +28 -1
- package/esm2020/lib/services/catalog-api.service.mjs +3 -3
- package/esm2020/lib/services/configuration-api.service.mjs +14 -14
- package/esm2020/lib/services/guided-sellings-api.service.mjs +11 -1
- package/esm2020/lib/services/procedures-api.service.mjs +8 -1
- package/esm2020/lib/services/product-model-api.service.mjs +6 -1
- package/esm2020/lib/services/quote-api.service.mjs +1 -8
- package/esm2020/lib/services/salesforce-api.service.mjs +27 -2
- package/esm2020/lib/services/stateful-configuration-api.mjs +51 -0
- package/esm2020/lib/services/ui-definitions-api.service.mjs +76 -0
- package/esm2020/lib/services/veloce-objects-api.service.mjs +80 -0
- package/esm2020/lib/types/index.mjs +1 -1
- package/esm2020/lib/types/stateful-configuration.types.mjs +2 -0
- package/fesm2015/veloceapps-api.mjs +285 -25
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +291 -25
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +3 -0
- package/lib/services/catalog-admin-api.service.d.ts +11 -7
- package/lib/services/catalog-api.service.d.ts +2 -2
- package/lib/services/guided-sellings-api.service.d.ts +1 -0
- package/lib/services/procedures-api.service.d.ts +1 -0
- package/lib/services/product-model-api.service.d.ts +5 -0
- package/lib/services/quote-api.service.d.ts +0 -6
- package/lib/services/salesforce-api.service.d.ts +8 -1
- package/lib/services/stateful-configuration-api.d.ts +30 -0
- package/lib/services/ui-definitions-api.service.d.ts +15 -0
- package/lib/services/veloce-objects-api.service.d.ts +22 -0
- package/lib/types/index.d.ts +0 -1
- package/lib/types/stateful-configuration.types.d.ts +11 -0
- package/package.json +1 -1
@@ -3,12 +3,13 @@ import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common
|
|
3
3
|
import * as i0 from '@angular/core';
|
4
4
|
import { Injectable, NgModule } from '@angular/core';
|
5
5
|
import * as i1 from '@veloceapps/core';
|
6
|
-
import { ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, BaseHttpService, XrayService } from '@veloceapps/core';
|
7
|
-
import { throwError, of, zip, forkJoin, map as map$1,
|
6
|
+
import { uiDefinitionFromDTO, isLegacyUIDefinition, ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
|
7
|
+
import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
|
8
8
|
import { map, catchError, tap, switchMap, defaultIfEmpty } from 'rxjs/operators';
|
9
9
|
import * as i2 from 'primeng/api';
|
10
10
|
import { CurrencyPipe } from '@angular/common';
|
11
11
|
import * as _ from 'lodash';
|
12
|
+
import { omit } from 'lodash';
|
12
13
|
import moment from 'moment';
|
13
14
|
import { __rest } from 'tslib';
|
14
15
|
|
@@ -211,6 +212,32 @@ class CatalogAdminApiService {
|
|
211
212
|
});
|
212
213
|
};
|
213
214
|
}
|
215
|
+
attachImage$(catalogId, categoryId, file) {
|
216
|
+
const data = new FormData();
|
217
|
+
data.append('image', file);
|
218
|
+
return this.baseHttpService.upload({
|
219
|
+
method: 'post',
|
220
|
+
url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`,
|
221
|
+
body: data,
|
222
|
+
});
|
223
|
+
}
|
224
|
+
removeImage$(catalogId, categoryId) {
|
225
|
+
return this.baseHttpService.api({
|
226
|
+
method: 'delete',
|
227
|
+
url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`,
|
228
|
+
});
|
229
|
+
}
|
230
|
+
fetchImage$(catalogId, categoryId) {
|
231
|
+
return this.baseHttpService.api({
|
232
|
+
url: this.getImageUrl(catalogId, categoryId),
|
233
|
+
method: 'get',
|
234
|
+
responseType: 'blob',
|
235
|
+
errorHandler: noop,
|
236
|
+
});
|
237
|
+
}
|
238
|
+
getImageUrl(catalogId, categoryId) {
|
239
|
+
return `${this.serviceUrl}/${catalogId}/categories/${categoryId}/image`;
|
240
|
+
}
|
214
241
|
}
|
215
242
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
216
243
|
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
@@ -269,7 +296,7 @@ class CatalogApiService {
|
|
269
296
|
body: context,
|
270
297
|
});
|
271
298
|
}
|
272
|
-
searchCategoryProducts$(catalogId, categoryId, searchParams,
|
299
|
+
searchCategoryProducts$(catalogId, categoryId, searchParams, searchRequest, context) {
|
273
300
|
const params = new HttpParams({ fromObject: searchParams });
|
274
301
|
return this.service.api({
|
275
302
|
method: 'post',
|
@@ -277,7 +304,7 @@ class CatalogApiService {
|
|
277
304
|
params,
|
278
305
|
body: {
|
279
306
|
configurationContext: context,
|
280
|
-
request:
|
307
|
+
request: searchRequest,
|
281
308
|
},
|
282
309
|
});
|
283
310
|
}
|
@@ -334,23 +361,20 @@ class ConfigurationApiService {
|
|
334
361
|
url: `${this.SERVICE_URL}/${productId}/model` + ((offeringId && `/${offeringId}`) || ''),
|
335
362
|
})
|
336
363
|
.pipe(map(runtimeData => {
|
337
|
-
runtimeData.uiDefinitions
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
364
|
+
return Object.assign(Object.assign({}, runtimeData), { uiDefinitions: runtimeData.uiDefinitions.map(dto => {
|
365
|
+
const uiDefinitionContainer = uiDefinitionFromDTO(dto);
|
366
|
+
if (isLegacyUIDefinition(uiDefinitionContainer.source)) {
|
367
|
+
ModelTranslatorUtils.toLocalUIDefinition(uiDefinitionContainer.source);
|
368
|
+
}
|
369
|
+
return uiDefinitionContainer;
|
370
|
+
}) });
|
342
371
|
}));
|
343
372
|
}
|
344
373
|
getRuntimeDataByModelId(modelId) {
|
345
|
-
return this.httpService
|
346
|
-
.api({
|
374
|
+
return this.httpService.api({
|
347
375
|
method: 'get',
|
348
376
|
url: `${this.SERVICE_URL}/${modelId}/model-test`,
|
349
|
-
})
|
350
|
-
.pipe(map((runtimeData) => {
|
351
|
-
runtimeData.uiDefinitions = [];
|
352
|
-
return runtimeData;
|
353
|
-
}));
|
377
|
+
});
|
354
378
|
}
|
355
379
|
updatePortDomains(lineItem, runtimeModel) {
|
356
380
|
var _a, _b, _c;
|
@@ -568,20 +592,45 @@ class SalesforceApiService {
|
|
568
592
|
search(req, options) {
|
569
593
|
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/rest/search`, params: { q: req.searchString } }, options));
|
570
594
|
}
|
595
|
+
/**
|
596
|
+
* @deprecated
|
597
|
+
*/
|
571
598
|
describe(objectName, fieldName, options) {
|
572
599
|
const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields` + (fieldName ? `/${fieldName}` : '');
|
573
600
|
return this.httpService.api(Object.assign({ url: methodUrl }, options));
|
574
601
|
}
|
602
|
+
describeObject(objectName, options) {
|
603
|
+
const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
|
604
|
+
return this.httpService.api(Object.assign({ url: methodUrl }, options));
|
605
|
+
}
|
606
|
+
describeField(objectName, fieldName, options) {
|
607
|
+
const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields/${fieldName}`;
|
608
|
+
return this.httpService.api(Object.assign({ url: methodUrl }, options));
|
609
|
+
}
|
575
610
|
describe2(objectName, fields, options) {
|
576
611
|
const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
|
577
612
|
return this.httpService.api(Object.assign({ method: 'post', url: methodUrl, body: fields }, options));
|
578
613
|
}
|
579
614
|
apexGetRequest(path, params, options) {
|
580
|
-
|
615
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
616
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
617
|
+
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams }, options));
|
581
618
|
}
|
582
619
|
apexPostRequest(path, body, options) {
|
583
620
|
return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
|
584
621
|
}
|
622
|
+
getGlobalPicklists() {
|
623
|
+
return this.httpService.api({
|
624
|
+
method: 'get',
|
625
|
+
url: `${this.SERVICE_URL}/globalvalueset`,
|
626
|
+
});
|
627
|
+
}
|
628
|
+
getGlobalPicklistValues(id) {
|
629
|
+
return this.httpService.api({
|
630
|
+
method: 'get',
|
631
|
+
url: `${this.SERVICE_URL}/globalvalueset/${id}/values`,
|
632
|
+
});
|
633
|
+
}
|
585
634
|
}
|
586
635
|
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
587
636
|
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SalesforceApiService });
|
@@ -1031,6 +1080,16 @@ class GuidedSellingApiService {
|
|
1031
1080
|
body: expression || {},
|
1032
1081
|
});
|
1033
1082
|
}
|
1083
|
+
searchById$(id, searchParams) {
|
1084
|
+
const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
|
1085
|
+
const expression = new Expression(undefined, [{ key: 'id', operator: Operator.EQ, value: id }]);
|
1086
|
+
return this.http.api({
|
1087
|
+
method: 'post',
|
1088
|
+
url: `${this.serviceUrl}/search`,
|
1089
|
+
params,
|
1090
|
+
body: expression || {},
|
1091
|
+
});
|
1092
|
+
}
|
1034
1093
|
}
|
1035
1094
|
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1036
1095
|
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingApiService });
|
@@ -1289,6 +1348,13 @@ class ProceduresApiService {
|
|
1289
1348
|
body,
|
1290
1349
|
});
|
1291
1350
|
}
|
1351
|
+
catalogExecute$(body) {
|
1352
|
+
return this.baseHttpService.api({
|
1353
|
+
url: `${this.SERVICE_URL}/catalog/execute`,
|
1354
|
+
method: 'post',
|
1355
|
+
body,
|
1356
|
+
});
|
1357
|
+
}
|
1292
1358
|
/**
|
1293
1359
|
* Run active procedure against QuoteDraft
|
1294
1360
|
* @param body
|
@@ -1557,6 +1623,11 @@ class ProductModelApiService {
|
|
1557
1623
|
return linkedModels;
|
1558
1624
|
}));
|
1559
1625
|
}
|
1626
|
+
/**
|
1627
|
+
*
|
1628
|
+
* @deprecated
|
1629
|
+
* Will be removed in next major release
|
1630
|
+
*/
|
1560
1631
|
load(id, version) {
|
1561
1632
|
return forkJoin([this.getModel(id, version), this.getLinkedModels(id, version)]).pipe(map(([model, linkedModels]) => {
|
1562
1633
|
const container = new ProductModelsContainer(model, linkedModels !== null && linkedModels !== void 0 ? linkedModels : []);
|
@@ -1686,13 +1757,6 @@ class QuoteApiService {
|
|
1686
1757
|
constructor(httpService) {
|
1687
1758
|
this.httpService = httpService;
|
1688
1759
|
this.SERVICE_URL = '/quotes';
|
1689
|
-
/**
|
1690
|
-
* @deprecated
|
1691
|
-
* Will be removed in next major release
|
1692
|
-
* Use `getQuoteDraft` instead
|
1693
|
-
*/
|
1694
|
-
// eslint-disable-next-line @typescript-eslint/member-ordering
|
1695
|
-
this.getQuote = this.getQuoteDraft;
|
1696
1760
|
}
|
1697
1761
|
// request quoteId | accountId | opportunityId | orderId
|
1698
1762
|
getQuoteDraft(objectId, params, errorHandler) {
|
@@ -1972,6 +2036,120 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
1972
2036
|
type: Injectable
|
1973
2037
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1974
2038
|
|
2039
|
+
class StatefulConfigurationApiService {
|
2040
|
+
constructor(httpService) {
|
2041
|
+
this.httpService = httpService;
|
2042
|
+
this.SERVICE_URL = '/configuration/states';
|
2043
|
+
}
|
2044
|
+
/**
|
2045
|
+
* Initialize configuration state
|
2046
|
+
* @param request Request
|
2047
|
+
* @returns ID of new configuration state
|
2048
|
+
*/
|
2049
|
+
init(request) {
|
2050
|
+
return this.httpService.api({
|
2051
|
+
method: 'post',
|
2052
|
+
url: `${this.SERVICE_URL}/init`,
|
2053
|
+
body: request,
|
2054
|
+
responseType: 'text',
|
2055
|
+
});
|
2056
|
+
}
|
2057
|
+
/**
|
2058
|
+
* Get existing state by ID
|
2059
|
+
* @param id ID
|
2060
|
+
* @returns Configuration State
|
2061
|
+
*/
|
2062
|
+
get(id) {
|
2063
|
+
return this.httpService.api({
|
2064
|
+
url: `${this.SERVICE_URL}/${id}`,
|
2065
|
+
});
|
2066
|
+
}
|
2067
|
+
/**
|
2068
|
+
* Execute actions/selectors
|
2069
|
+
* @param id State ID
|
2070
|
+
* @param request Request
|
2071
|
+
* @returns Execute result
|
2072
|
+
*/
|
2073
|
+
execute(id, request) {
|
2074
|
+
return this.httpService.api({
|
2075
|
+
method: 'post',
|
2076
|
+
url: `${this.SERVICE_URL}/${id}/execute`,
|
2077
|
+
body: request,
|
2078
|
+
});
|
2079
|
+
}
|
2080
|
+
}
|
2081
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2082
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService });
|
2083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2084
|
+
type: Injectable
|
2085
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2086
|
+
|
2087
|
+
class UIDefinitionsApiService {
|
2088
|
+
constructor(baseHttpService) {
|
2089
|
+
this.baseHttpService = baseHttpService;
|
2090
|
+
}
|
2091
|
+
fetch$(modelId, version) {
|
2092
|
+
const serviceUrl = this.getServiceUrl(modelId);
|
2093
|
+
let params = new HttpParams();
|
2094
|
+
if (version != null) {
|
2095
|
+
params = params.set('modelVersion', version);
|
2096
|
+
}
|
2097
|
+
return this.baseHttpService
|
2098
|
+
.api({
|
2099
|
+
method: 'get',
|
2100
|
+
url: serviceUrl,
|
2101
|
+
params: params,
|
2102
|
+
})
|
2103
|
+
.pipe(map$1(containers => containers.map(uiDefinitionFromDTO)));
|
2104
|
+
}
|
2105
|
+
create$(modelId, uiDefinitionContainer) {
|
2106
|
+
const serviceUrl = this.getServiceUrl(modelId);
|
2107
|
+
const dto = Object.assign(Object.assign({}, omit(uiDefinitionContainer, 'source')), { sourceBlob: JSON.stringify(uiDefinitionContainer.source) });
|
2108
|
+
return this.baseHttpService
|
2109
|
+
.api({
|
2110
|
+
method: 'post',
|
2111
|
+
url: serviceUrl,
|
2112
|
+
body: dto,
|
2113
|
+
})
|
2114
|
+
.pipe(map$1(container => uiDefinitionFromDTO(container)));
|
2115
|
+
}
|
2116
|
+
get$(modelId, uiDefinitionId) {
|
2117
|
+
const serviceUrl = this.getServiceUrl(modelId);
|
2118
|
+
return this.baseHttpService
|
2119
|
+
.api({
|
2120
|
+
method: 'get',
|
2121
|
+
url: `${serviceUrl}/${uiDefinitionId}`,
|
2122
|
+
})
|
2123
|
+
.pipe(map$1(container => uiDefinitionFromDTO(Object.assign(Object.assign({}, container), { id: uiDefinitionId }))));
|
2124
|
+
}
|
2125
|
+
update$(uiDefinitionContainer) {
|
2126
|
+
const serviceUrl = this.getServiceUrl(uiDefinitionContainer.modelId);
|
2127
|
+
const dto = uiDefinitionToDTO(uiDefinitionContainer);
|
2128
|
+
return this.baseHttpService
|
2129
|
+
.api({
|
2130
|
+
method: 'put',
|
2131
|
+
url: `${serviceUrl}/${uiDefinitionContainer.id}`,
|
2132
|
+
body: dto,
|
2133
|
+
})
|
2134
|
+
.pipe(map$1(container => uiDefinitionFromDTO(container)));
|
2135
|
+
}
|
2136
|
+
delete$(uiDefinitionContainer) {
|
2137
|
+
const serviceUrl = this.getServiceUrl(uiDefinitionContainer.modelId);
|
2138
|
+
return this.baseHttpService.api({
|
2139
|
+
method: 'delete',
|
2140
|
+
url: `${serviceUrl}/${uiDefinitionContainer.id}`,
|
2141
|
+
});
|
2142
|
+
}
|
2143
|
+
getServiceUrl(modelId) {
|
2144
|
+
return `/models/${modelId}/uidefinitions`;
|
2145
|
+
}
|
2146
|
+
}
|
2147
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2148
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UIDefinitionsApiService });
|
2149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2150
|
+
type: Injectable
|
2151
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2152
|
+
|
1975
2153
|
const fromUIComponentStoryDTO = (dto, attachments) => {
|
1976
2154
|
return {
|
1977
2155
|
id: dto.id,
|
@@ -2260,6 +2438,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2260
2438
|
type: Injectable
|
2261
2439
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2262
2440
|
|
2441
|
+
class VeloceObjectsApiService {
|
2442
|
+
constructor(baseHttpService) {
|
2443
|
+
this.baseHttpService = baseHttpService;
|
2444
|
+
this.serviceUrl = '/veloceobjects';
|
2445
|
+
this.updateCategory$ = (category) => {
|
2446
|
+
return this.baseHttpService.api({
|
2447
|
+
method: 'put',
|
2448
|
+
url: `${this.serviceUrl}/categories/${category.id}`,
|
2449
|
+
body: category,
|
2450
|
+
});
|
2451
|
+
};
|
2452
|
+
this.deleteCategory$ = (id) => {
|
2453
|
+
return this.baseHttpService.api({
|
2454
|
+
method: 'delete',
|
2455
|
+
url: `${this.serviceUrl}/categories/${id}`,
|
2456
|
+
});
|
2457
|
+
};
|
2458
|
+
this.searchObjects$ = (searchParams, expression) => {
|
2459
|
+
const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
|
2460
|
+
return this.baseHttpService.api({
|
2461
|
+
method: 'post',
|
2462
|
+
url: `${this.serviceUrl}/search`,
|
2463
|
+
params,
|
2464
|
+
body: expression || {},
|
2465
|
+
});
|
2466
|
+
};
|
2467
|
+
this.deleteObject$ = (id) => {
|
2468
|
+
return this.baseHttpService.api({
|
2469
|
+
method: 'delete',
|
2470
|
+
url: `${this.serviceUrl}/${id}`,
|
2471
|
+
});
|
2472
|
+
};
|
2473
|
+
this.restoreObject$ = (id) => {
|
2474
|
+
return this.baseHttpService.api({
|
2475
|
+
method: 'patch',
|
2476
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2477
|
+
});
|
2478
|
+
};
|
2479
|
+
}
|
2480
|
+
fetchCategories$() {
|
2481
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/categories` });
|
2482
|
+
}
|
2483
|
+
createCategory$(category) {
|
2484
|
+
return this.baseHttpService.api({
|
2485
|
+
method: 'post',
|
2486
|
+
url: `${this.serviceUrl}/categories`,
|
2487
|
+
body: category,
|
2488
|
+
});
|
2489
|
+
}
|
2490
|
+
fetchObjects$() {
|
2491
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
2492
|
+
}
|
2493
|
+
fetchObject$(id) {
|
2494
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2495
|
+
}
|
2496
|
+
createObject$(object) {
|
2497
|
+
return this.baseHttpService.api({
|
2498
|
+
method: 'post',
|
2499
|
+
url: `${this.serviceUrl}`,
|
2500
|
+
body: object,
|
2501
|
+
});
|
2502
|
+
}
|
2503
|
+
updateObject$(object) {
|
2504
|
+
return this.baseHttpService.api({
|
2505
|
+
method: 'put',
|
2506
|
+
url: `${this.serviceUrl}/${object.id}`,
|
2507
|
+
body: object,
|
2508
|
+
});
|
2509
|
+
}
|
2510
|
+
}
|
2511
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2512
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService });
|
2513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2514
|
+
type: Injectable
|
2515
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2516
|
+
|
2263
2517
|
class ApiModule {
|
2264
2518
|
}
|
2265
2519
|
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -2295,6 +2549,9 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2295
2549
|
EndpointsApiService,
|
2296
2550
|
OrgInfoApiService,
|
2297
2551
|
OffersApiService,
|
2552
|
+
UIDefinitionsApiService,
|
2553
|
+
VeloceObjectsApiService,
|
2554
|
+
StatefulConfigurationApiService,
|
2298
2555
|
], imports: [HttpClientModule] });
|
2299
2556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, decorators: [{
|
2300
2557
|
type: NgModule,
|
@@ -2331,6 +2588,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2331
2588
|
EndpointsApiService,
|
2332
2589
|
OrgInfoApiService,
|
2333
2590
|
OffersApiService,
|
2591
|
+
UIDefinitionsApiService,
|
2592
|
+
VeloceObjectsApiService,
|
2593
|
+
StatefulConfigurationApiService,
|
2334
2594
|
],
|
2335
2595
|
}]
|
2336
2596
|
}] });
|
@@ -2339,5 +2599,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2339
2599
|
* Generated bundle index. Do not edit.
|
2340
2600
|
*/
|
2341
2601
|
|
2342
|
-
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, UITemplatesApiService };
|
2602
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
|
2343
2603
|
//# sourceMappingURL=veloceapps-api.mjs.map
|