@veloceapps/api 8.0.0-47 → 8.0.0-49

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.
@@ -4,7 +4,7 @@ import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
5
5
  import * as i1 from '@veloceapps/core';
6
6
  import { uiDefinitionFromDTO, isLegacyUIDefinition, ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, UUID, 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';
7
+ import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1, delay } 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';
@@ -2944,6 +2944,12 @@ class PortalsApiService {
2944
2944
  url: `${this.serviceUrl}/${id}/restore`,
2945
2945
  });
2946
2946
  };
2947
+ this.getPortal$ = (id) => {
2948
+ return of({ name: 'Awesome Portal', description: 'I am an awesome portal!', id }).pipe(delay(400));
2949
+ // return this.baseHttpService.api({ todo uncomment when DM-1275 is ready
2950
+ // url: `${this.serviceUrl}/${id}`,
2951
+ // });
2952
+ };
2947
2953
  }
2948
2954
  }
2949
2955
  PortalsApiService.MAX_RESULTS = 60;