@veloceapps/api 11.0.0-1 → 11.0.0-2
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/lib/services/product-model-api.service.mjs +2 -16
- package/esm2020/lib/services/quote-api.service.mjs +2 -13
- package/esm2020/lib/services/salesforce-api.service.mjs +1 -8
- package/fesm2015/veloceapps-api.mjs +2 -33
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +2 -33
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/lib/services/product-model-api.service.d.ts +1 -7
- package/lib/services/quote-api.service.d.ts +1 -5
- package/lib/services/salesforce-api.service.d.ts +0 -4
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@a
|
|
|
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 { uiDefinitionFromDTO, DomainComputation, ConfigurationContextMode, Expression, Operator, isApexError, isCanvasError, ModelTranslatorUtils,
|
|
6
|
+
import { uiDefinitionFromDTO, DomainComputation, ConfigurationContextMode, Expression, Operator, isApexError, isCanvasError, ModelTranslatorUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
|
|
7
7
|
import { noop, throwError, of, map as map$1, from, catchError as catchError$1, forkJoin, switchMap } from 'rxjs';
|
|
8
8
|
import { map, catchError, tap } from 'rxjs/operators';
|
|
9
9
|
import * as i1$2 from 'primeng/api';
|
|
@@ -1785,19 +1785,6 @@ class ProductModelApiService {
|
|
|
1785
1785
|
return linkedModels;
|
|
1786
1786
|
}));
|
|
1787
1787
|
}
|
|
1788
|
-
/**
|
|
1789
|
-
*
|
|
1790
|
-
* @deprecated
|
|
1791
|
-
* Will be removed in next major release
|
|
1792
|
-
*/
|
|
1793
|
-
load(id, version) {
|
|
1794
|
-
return forkJoin([this.getModel(id, version), this.getLinkedModels(id, version)]).pipe(map(([model, linkedModels]) => {
|
|
1795
|
-
const container = new ProductModelsContainer(model, linkedModels ?? []);
|
|
1796
|
-
ModelUtils.override(container.main, container.linked);
|
|
1797
|
-
ModelTranslatorUtils.toLocalModel(container.main, container.linked);
|
|
1798
|
-
return container;
|
|
1799
|
-
}));
|
|
1800
|
-
}
|
|
1801
1788
|
getPML(modelId, version) {
|
|
1802
1789
|
let url = `${this.SERVICE_URL}/${modelId}/pml/${version}`;
|
|
1803
1790
|
if (version) {
|
|
@@ -1984,18 +1971,7 @@ class QuoteApiService {
|
|
|
1984
1971
|
this.SERVICE_URL = '/quotes';
|
|
1985
1972
|
}
|
|
1986
1973
|
/**
|
|
1987
|
-
*
|
|
1988
|
-
*/
|
|
1989
|
-
getQuoteDraft(objectId, params, errorHandler) {
|
|
1990
|
-
return this.httpService.api({
|
|
1991
|
-
method: 'get',
|
|
1992
|
-
url: `${this.SERVICE_URL}/${objectId}`,
|
|
1993
|
-
params,
|
|
1994
|
-
errorHandler,
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
/**
|
|
1998
|
-
* Comparing to deprecated `getQuoteDraft` this endpoint doesn't include orders and assets
|
|
1974
|
+
* This endpoint doesn't include orders and assets
|
|
1999
1975
|
* @param objectId quoteId | accountId | opportunityId | orderId
|
|
2000
1976
|
* @param params Query params
|
|
2001
1977
|
* @param options Request options
|
|
@@ -2459,13 +2435,6 @@ class SalesforceApiService {
|
|
|
2459
2435
|
...options,
|
|
2460
2436
|
});
|
|
2461
2437
|
}
|
|
2462
|
-
/**
|
|
2463
|
-
* @deprecated
|
|
2464
|
-
*/
|
|
2465
|
-
describe(objectName, fieldName, options) {
|
|
2466
|
-
const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields` + (fieldName ? `/${fieldName}` : '');
|
|
2467
|
-
return this.httpService.api({ url: methodUrl, ...options });
|
|
2468
|
-
}
|
|
2469
2438
|
describeObject(objectName, options) {
|
|
2470
2439
|
const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
|
|
2471
2440
|
return this.httpService.api({ url: methodUrl, ...options });
|