@rededor/site-front-end-lib 0.0.16 → 0.0.18

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.
@@ -1,4 +1,4 @@
1
- import { WpCommonResponse, WpGlobalResponse, WpPublishingResponse, WpYoastResponse } from "../WpResponse.model";
1
+ import { WpCommonResponse, WpGlobalResponse, WpPublishingResponse, WpYoastResponse } from '../WpResponse.model';
2
2
  export interface WpUnidadeOnco extends WpCommonResponse, WpGlobalResponse, WpPublishingResponse, WpYoastResponse {
3
3
  path?: string;
4
4
  details?: any;
@@ -8,14 +8,14 @@ export interface WpUnidadeOnco extends WpCommonResponse, WpGlobalResponse, WpPub
8
8
  descricao: string;
9
9
  especialidades: UnidadeEspecialidades;
10
10
  horario_atendimento: string;
11
- id_qualidade: number;
11
+ id_qualidade: number | string;
12
12
  instalacoes: any;
13
13
  localizacao: UnidadeLocalizacao;
14
14
  redes_sociais: any;
15
15
  servicos: UnidadeServicos;
16
16
  sobre: UnidadeSobre;
17
17
  telefone: string;
18
- tem_certificados: boolean;
18
+ tem_certificados?: boolean;
19
19
  tratamentos: UnidadeTratamentos;
20
20
  videos: any;
21
21
  url_site?: string;
@@ -61,7 +61,7 @@ export interface WpUnidadeSiteDetalhe {
61
61
  unidade_exibir_whatsapp_exames?: boolean;
62
62
  unidade_label_link_whatsapp_exames?: string;
63
63
  unidade_link_whatsapp_exames?: string;
64
- unidade_url_oncologia: string;
64
+ unidade_url_oncologia?: string;
65
65
  unidade_oferece_oncologia: string[] | string;
66
66
  unidade_imagem: any;
67
67
  unidade_endereco: string;
@@ -77,46 +77,46 @@ export interface WpUnidadeSiteDetalhe {
77
77
  unidade_uf: string;
78
78
  unidade_areas_busca: string[];
79
79
  unidade_cidade: string;
80
- home_slideshow: HomeSlideshow[] | boolean;
81
- cta1: any;
82
- cta2: any;
83
- home_destaques_secundarios: any;
84
- especialidades_procuradas: UnidadeEspecialidadeProcurada[];
85
- exames_procurados: UnidadeExamesProcurados[];
86
- home_servicos: any;
80
+ home_slideshow?: HomeSlideshow[] | boolean;
81
+ cta1?: any;
82
+ cta2?: any;
83
+ home_destaques_secundarios?: any;
84
+ especialidades_procuradas?: UnidadeEspecialidadeProcurada[];
85
+ exames_procurados?: UnidadeExamesProcurados[];
86
+ home_servicos?: any;
87
87
  id_qualidade_unidade: string;
88
88
  id_motion_unidade: string;
89
89
  id_motion_consultas?: string;
90
90
  id_motion_exames?: string;
91
91
  id_local?: string;
92
- emergencias: UnidadeEmergencia[];
92
+ emergencias?: UnidadeEmergencia[] | false;
93
93
  exames_unidade: boolean;
94
94
  resultados_exames: boolean;
95
95
  especialidades_unidade: boolean;
96
- blog_id: string;
96
+ blog_id?: string;
97
97
  domain: string;
98
98
  path: string;
99
99
  site_id: string;
100
100
  registered: string;
101
101
  last_updated: string;
102
102
  public: string;
103
- archived: string;
103
+ archived?: string;
104
104
  mature: string;
105
105
  spam: string;
106
106
  deleted: string;
107
107
  lang_id: string;
108
- name: string;
109
- description: string;
110
- url: string;
111
- admin_email: string;
112
- charset: string;
113
- version: string;
114
- language: string;
108
+ name?: string;
109
+ description?: string;
110
+ url?: string;
111
+ admin_email?: string;
112
+ charset?: string;
113
+ version?: string;
114
+ language?: string;
115
115
  tipo_unidade?: string;
116
116
  categoria_unidade?: string;
117
117
  cadastro_de_unidade?: any[];
118
118
  unidade_possui_outras_unidades: string[] | string;
119
- unidade_outras_clinicas_oncologicas: [
119
+ unidade_outras_clinicas_oncologicas?: [
120
120
  {
121
121
  unidade_outrasclinicas_nome: string;
122
122
  unidade_outrasclinicas_url: string;
@@ -132,7 +132,7 @@ export interface WpUnidadeSiteDetalhe {
132
132
  unidade_maternidade_endereco_uf: string;
133
133
  };
134
134
  unidade_maternidade_show_site: boolean;
135
- banners_encontre_farma: UnidadeEncontreFarma;
135
+ banners_encontre_farma?: UnidadeEncontreFarma;
136
136
  hide_menu_unidades: boolean;
137
137
  partnerships: UnidadeNossasMarcas;
138
138
  unidade_estilo_whatsapp: UnidadeEstiloWhatsapp;
@@ -27,19 +27,19 @@ export interface UnidadeOptions {
27
27
  unidade_exibir_whatsapp_exames?: boolean;
28
28
  }
29
29
  export interface WpUnidadeSite {
30
- archived: string | number;
31
- blog_id: string | number;
32
- deleted: string | number;
33
- domain: string;
34
- info: UnidadeInfo;
35
- lang_id: string | number;
36
- last_updated: string;
37
- mature: string | number;
38
- path: string;
39
- public: string | number;
40
- registered: string;
41
- site_id: string | number;
42
- spam: string | number;
30
+ archived?: string | number;
31
+ blog_id?: string | number;
32
+ deleted?: string | number;
33
+ domain?: string;
34
+ info?: UnidadeInfo;
35
+ lang_id?: string | number;
36
+ last_updated?: string;
37
+ mature?: string | number;
38
+ path?: string;
39
+ public?: string | number;
40
+ registered?: string;
41
+ site_id?: string | number;
42
+ spam?: string | number;
43
43
  details?: WpUnidadeSiteDetalhe;
44
44
  externo?: boolean;
45
45
  }
@@ -1,21 +1,21 @@
1
- import { Observable } from "rxjs";
1
+ import { Observable } from 'rxjs';
2
2
  import { LibConfig } from '../../tokens/LibConfig';
3
- import { HttpClientService } from "../http-client/http-client.service";
4
- import { LogService } from "../log/log.service";
5
- import { RDSLConvenio, RDSLConvenioParams } from "../../models/rdsl-convenio.model";
6
- import { RDSLPlano, RDSLPlanoParams } from "../../models/rdsl-planos.model";
7
- import { RDSLCobertura, RDSLCoberturaParams } from "../../models/rdsl-cobertura.model";
8
- import { RDSLUnidade, RDSLUnidadesParams } from "../../models/rdsl-unidade.model";
9
- import { RDSLEspecialidade, RDSLEspecialidadesParams } from "../../models/rdsl-especialidade.model";
10
- import { DoencaBackend } from "../../models/doenca-backend.model";
11
- import { TaxonomiasDoencasList } from "../../models/doenca-taxonomy.model";
12
- import { ExameApiDados, ExameBackend } from "../../models/exame-backend.model";
13
- import { EspecialidadeBackend, EspecialidadeGrupoBackend } from "../../models/especialidade-backend.model";
14
- import { CentroEstudosBackendMedico } from "../../models/centro-estudos-backend.model";
15
- import { WpUnidadeSite } from "../../models/wordpress/unidade/wp-unidade-site.model";
16
- import { WpUnidadeOnco } from "../../models/wordpress/unidade/wp-unidade-onco.model";
17
- import { UnifiedMenu } from "../../models/menu-item.model";
18
- import { MedicoCv } from "../../models/medico-cv.model";
3
+ import { HttpClientService } from '../http-client/http-client.service';
4
+ import { LogService } from '../log/log.service';
5
+ import { RDSLConvenio, RDSLConvenioParams } from '../../models/rdsl-convenio.model';
6
+ import { RDSLPlano, RDSLPlanoParams } from '../../models/rdsl-planos.model';
7
+ import { RDSLCobertura, RDSLCoberturaParams } from '../../models/rdsl-cobertura.model';
8
+ import { RDSLUnidade, RDSLUnidadesParams } from '../../models/rdsl-unidade.model';
9
+ import { RDSLEspecialidade, RDSLEspecialidadesParams } from '../../models/rdsl-especialidade.model';
10
+ import { DoencaBackend } from '../../models/doenca-backend.model';
11
+ import { TaxonomiasDoencasList } from '../../models/doenca-taxonomy.model';
12
+ import { ExameApiDados, ExameBackend } from '../../models/exame-backend.model';
13
+ import { EspecialidadeBackend, EspecialidadeGrupoBackend } from '../../models/especialidade-backend.model';
14
+ import { CentroEstudosBackendMedico } from '../../models/centro-estudos-backend.model';
15
+ import { WpUnidadeSite } from '../../models/wordpress/unidade/wp-unidade-site.model';
16
+ import { WpUnidadeOnco } from '../../models/wordpress/unidade/wp-unidade-onco.model';
17
+ import { UnifiedMenu } from '../../models/menu-item.model';
18
+ import { MedicoCv } from '../../models/medico-cv.model';
19
19
  import * as i0 from "@angular/core";
20
20
  export declare class SiteBackendService {
21
21
  private httpClientService;
@@ -5,35 +5,8 @@ export declare class SsrLoadingService {
5
5
  private platformId;
6
6
  ssrIsLoading: boolean;
7
7
  private _loading;
8
- private loadingLocationsAmount;
9
- private timeout;
10
- private interval;
11
- private locations;
12
8
  constructor(logService: LogService, platformId: object);
13
- /**
14
- * Inicia o processo de looping.
15
- * @param location string utilizada para logs caso ocorra problemas ou timeout
16
- * @param intervalMs tempo em ms no qual o interval realiza a checagem do '_isLoading'
17
- * @param timeoutMs tempo em ms para dar timeout
18
- * @returns
19
- */
20
- startLoading(location?: string, intervalMs?: number, timeoutMs?: number): void;
21
- private addLocations;
22
- /**
23
- * Responsável por encerrar o loading infinito se passar do limite de 'timeoutMs'.
24
- * Este timeout respeita o ultimo 'timeoutMs' passado pelo 'startLoading'.
25
- */
26
- private setupTimeout;
27
- /**
28
- * Responsável pelo loop infinito para forçar o angular a esperar a entrega do html ao cliente.
29
- * Quando o '_loading' for false, ele encerra o looping.
30
- * Este interval respeita o ultimo 'intervalMs' passado pelo 'startLoading'.
31
- */
32
- private setupInterval;
33
- /**
34
- * Diminui a quantidade de loadings em 1 e então tenta encerrar o looping quando a quantidade de loadings <= 0.
35
- * Ou seja, quando a quantidade de chamadas do 'stopLoading' for a mesma do 'startLoading' ou quando der timeout.
36
- */
9
+ startLoading(component?: string, intervalMs?: number, timeoutMs?: number): void;
37
10
  stopLoading(): void;
38
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SsrLoadingService, never>;
39
12
  static ɵprov: i0.ɵɵInjectableDeclaration<SsrLoadingService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/site-front-end-lib",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",