@rededor/site-front-end-lib 1.0.39 → 1.0.40
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.
|
@@ -26,7 +26,15 @@ export declare class SiteBackendService {
|
|
|
26
26
|
siteApiUrl: string;
|
|
27
27
|
constructor(httpClientService: HttpClientService, log: LogService, libConfig: LibConfig, platformId: object);
|
|
28
28
|
private getApiUrl;
|
|
29
|
+
/**
|
|
30
|
+
* GET para qualquer endpoint do back-end do site.
|
|
31
|
+
* @param path - O caminho do recurso. (Inicia sem '/'. Ex: 'unidades/wp')
|
|
32
|
+
* @param params - Parâmetros opcionais para a requisição.
|
|
33
|
+
* @returns Observable que emite os dados retornados pelo back-end.
|
|
34
|
+
*/
|
|
35
|
+
get<T = any>(path: string, params?: any): Observable<T>;
|
|
29
36
|
getUnidades(params?: RDSLUnidadesParams): Observable<RDSLUnidade[]>;
|
|
37
|
+
getUnidadesList(): Observable<any>;
|
|
30
38
|
getUnidadesWP(): Observable<WpUnidadeSite[]>;
|
|
31
39
|
getUnidadesMenusWP(unidadeSlug?: string): Observable<UnifiedMenu>;
|
|
32
40
|
getUnidadesOncoWP(): Observable<WpUnidadeOnco[]>;
|