@rededor/site-front-end-lib 0.0.29 → 0.0.31

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,5 +4,6 @@ export declare enum RdsiteModalComponentStyle {
4
4
  LIGHT = "light",
5
5
  DOCTORCARD = "doctor-card",
6
6
  HOMESLIDE = "home-slide",
7
- BASIC = "basic"
7
+ BASIC = "basic",
8
+ SHARING = "sharing"
8
9
  }
@@ -0,0 +1,14 @@
1
+ export interface MenuDeUnidade extends MenuDeUnidadesItem {
2
+ extUrl?: string;
3
+ children?: MenuPorEstado[];
4
+ active?: boolean;
5
+ }
6
+ export interface MenuPorEstado extends MenuDeUnidadesItem {
7
+ uf?: string;
8
+ children?: MenuDeUnidadesItem[];
9
+ }
10
+ export interface MenuDeUnidadesItem {
11
+ ID: number | string;
12
+ title: string;
13
+ url: string;
14
+ }
@@ -1,3 +1,4 @@
1
+ import { MenuSocialMedia } from '../../menu-item.model';
1
2
  export interface HomeSlideshow {
2
3
  home_slideshow_img_desktop: any;
3
4
  home_slideshow_img_mobile: any;
@@ -134,12 +135,15 @@ export interface WpUnidadeSiteDetalhe {
134
135
  unidade_maternidade_show_site: boolean;
135
136
  banners_encontre_farma?: UnidadeEncontreFarma;
136
137
  hide_menu_unidades: boolean;
138
+ uses_nova_home?: boolean;
137
139
  partnerships: UnidadeNossasMarcas;
138
140
  unidade_estilo_whatsapp: UnidadeEstiloWhatsapp;
139
141
  unidade_modal_agendamento: UnidadePhoneModal;
140
142
  unidade_modal_generico: UnidadePhoneModal;
141
143
  general_ctas?: UnidadeCta[];
142
144
  side_ctas?: UnidadeCta[];
145
+ entrar_link?: string;
146
+ social_media?: MenuSocialMedia[];
143
147
  }
144
148
  export interface UnidadeEstiloWhatsapp {
145
149
  cor_da_borda: string;
@@ -16,6 +16,7 @@ import { WpUnidadeSite } from '../../models/wordpress/unidade/wp-unidade-site.mo
16
16
  import { WpUnidadeOnco } from '../../models/wordpress/unidade/wp-unidade-onco.model';
17
17
  import { UnifiedMenu } from '../../models/menu-item.model';
18
18
  import { MedicoCv } from '../../models/medico-cv.model';
19
+ import { MenuDeUnidade } from '../../models/menu-de-unidade.model';
19
20
  import * as i0 from "@angular/core";
20
21
  export declare class SiteBackendService {
21
22
  private httpClientService;
@@ -29,6 +30,13 @@ export declare class SiteBackendService {
29
30
  getUnidadesWP(): Observable<WpUnidadeSite[]>;
30
31
  getUnidadesMenusWP(unidadeSlug?: string): Observable<UnifiedMenu>;
31
32
  getUnidadesOncoWP(): Observable<WpUnidadeOnco[]>;
33
+ /**
34
+ * Retorna o 'menu de unidades' completo, baseado nos dados de /unidades/wp e /unidades/wp-onco do backend.
35
+ * index 0 => rededor
36
+ * index 1 => oncologia
37
+ * index 2 => star
38
+ **/
39
+ getMenuDeUnidades(): Observable<MenuDeUnidade[]>;
32
40
  getConvenios(params?: RDSLConvenioParams): Observable<RDSLConvenio[]>;
33
41
  getPlanos(params?: RDSLPlanoParams): Observable<RDSLPlano[]>;
34
42
  getCoberturas(planoIdQd: number, params?: RDSLCoberturaParams): Observable<RDSLCobertura[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/site-front-end-lib",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",