@veloceapps/api 8.0.0-78 → 8.0.0-79

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.
@@ -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, isLegacyUIDefinition, ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
6
+ import { uiDefinitionFromDTO, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ModelTranslatorUtils, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
7
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';
@@ -433,13 +433,7 @@ class ConfigurationApiService {
433
433
  .pipe(map(runtimeData => {
434
434
  return {
435
435
  ...runtimeData,
436
- uiDefinitions: runtimeData.uiDefinitions.map(dto => {
437
- const uiDefinitionContainer = uiDefinitionFromDTO(dto);
438
- if (isLegacyUIDefinition(uiDefinitionContainer.source)) {
439
- ModelTranslatorUtils.toLocalUIDefinition(uiDefinitionContainer.source);
440
- }
441
- return uiDefinitionContainer;
442
- }),
436
+ uiDefinitions: runtimeData.uiDefinitions.map(dto => uiDefinitionFromDTO(dto)),
443
437
  };
444
438
  }));
445
439
  }
@@ -778,8 +772,8 @@ class SalesforceApiService {
778
772
  }
779
773
  apexGetRequest(path, params, options) {
780
774
  // this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
781
- const httpParams = new HttpParams({ fromString: params.toString() });
782
- return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams, ...options });
775
+ // const httpParams = new HttpParams({ fromString: params.toString() });
776
+ return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params, ...options });
783
777
  }
784
778
  apexPostRequest(path, body, options) {
785
779
  return this.httpService.api({