@veloceapps/api 11.0.0-1 → 11.0.0-3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
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
- * @deprecated Use getQuoteState instead
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
@@ -2201,7 +2177,6 @@ class RlmApiService {
2201
2177
  this.baseHttpService = baseHttpService;
2202
2178
  this.serviceUrl = '/rlm';
2203
2179
  }
2204
- // TODO: request RLM data only when RLM is installed. Otherwise skip rlm requests. Discuss solution|approach with BE
2205
2180
  fetchContextDefinitions$() {
2206
2181
  return this.baseHttpService
2207
2182
  .api({ url: `${this.serviceUrl}/context`, skipErrorHandler: true })
@@ -2459,13 +2434,6 @@ class SalesforceApiService {
2459
2434
  ...options,
2460
2435
  });
2461
2436
  }
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
2437
  describeObject(objectName, options) {
2470
2438
  const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields`;
2471
2439
  return this.httpService.api({ url: methodUrl, ...options });