@rededor/site-front-end-lib 0.0.1

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.
Files changed (106) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/components/index.mjs +3 -0
  3. package/esm2022/lib/components/test/test.component.mjs +24 -0
  4. package/esm2022/lib/enums/EnumDoencaTaxonomy.enum.mjs +11 -0
  5. package/esm2022/lib/enums/Estados.enum.mjs +31 -0
  6. package/esm2022/lib/enums/IconCuraDefaultType.enum.mjs +121 -0
  7. package/esm2022/lib/helpers/index.mjs +3 -0
  8. package/esm2022/lib/helpers/removeDuplicateObjectsFromArray.func.mjs +5 -0
  9. package/esm2022/lib/helpers/removeDuplicateValuesFromArray.func.mjs +5 -0
  10. package/esm2022/lib/helpers/toQueryParams.func.mjs +8 -0
  11. package/esm2022/lib/json/unidades.json +15667 -0
  12. package/esm2022/lib/json/unidadesOnco.json +15965 -0
  13. package/esm2022/lib/models/centro-estudos-backend.model.mjs +2 -0
  14. package/esm2022/lib/models/doenca-backend.model.mjs +2 -0
  15. package/esm2022/lib/models/doenca-taxonomy.model.mjs +2 -0
  16. package/esm2022/lib/models/especialidade-backend.model.mjs +2 -0
  17. package/esm2022/lib/models/exame-backend.model.mjs +2 -0
  18. package/esm2022/lib/models/medico-cv.model.mjs +2 -0
  19. package/esm2022/lib/models/menu-item.model.mjs +2 -0
  20. package/esm2022/lib/models/rdsl-cobertura.model.mjs +2 -0
  21. package/esm2022/lib/models/rdsl-convenio.model.mjs +2 -0
  22. package/esm2022/lib/models/rdsl-especialidade.model.mjs +2 -0
  23. package/esm2022/lib/models/rdsl-planos.model.mjs +2 -0
  24. package/esm2022/lib/models/rdsl-unidade.model.mjs +2 -0
  25. package/esm2022/lib/models/unidade-detalhe.model.mjs +2 -0
  26. package/esm2022/lib/models/unidade-onco.model.mjs +2 -0
  27. package/esm2022/lib/models/unidade.model.mjs +2 -0
  28. package/esm2022/lib/models/wordpress/WpResponse.model.mjs +2 -0
  29. package/esm2022/lib/models/wordpress/general/content.model.mjs +2 -0
  30. package/esm2022/lib/models/wordpress/general/excerpt.model.mjs +2 -0
  31. package/esm2022/lib/models/wordpress/general/featuredMedia.model.mjs +2 -0
  32. package/esm2022/lib/models/wordpress/general/guid.model.mjs +2 -0
  33. package/esm2022/lib/models/wordpress/general/index.mjs +11 -0
  34. package/esm2022/lib/models/wordpress/general/links.model.mjs +2 -0
  35. package/esm2022/lib/models/wordpress/general/meta.model.mjs +2 -0
  36. package/esm2022/lib/models/wordpress/general/title.model.mjs +2 -0
  37. package/esm2022/lib/models/wordpress/general/yoastData.model.mjs +2 -0
  38. package/esm2022/lib/models/wordpress/general/yoastHeadJson.model.mjs +2 -0
  39. package/esm2022/lib/models/wordpress/general/yoastMeta.model.mjs +2 -0
  40. package/esm2022/lib/models/wordpress/page/page.model.mjs +2 -0
  41. package/esm2022/lib/services/algolia/algolia.service.mjs +37 -0
  42. package/esm2022/lib/services/cura/cura.service.mjs +108 -0
  43. package/esm2022/lib/services/http-client/http-client.service.mjs +55 -0
  44. package/esm2022/lib/services/index.mjs +9 -0
  45. package/esm2022/lib/services/log/log.service.mjs +49 -0
  46. package/esm2022/lib/services/ngu-carousel/ngu-carousel.service.mjs +77 -0
  47. package/esm2022/lib/services/site-back-end/site-back-end.service.mjs +156 -0
  48. package/esm2022/lib/services/ssr-loading/ssr-loading.service.mjs +48 -0
  49. package/esm2022/lib/services/transfer-state/transfer-state.service.mjs +42 -0
  50. package/esm2022/lib/tokens/CuraApi.mjs +3 -0
  51. package/esm2022/lib/tokens/LibConfig.mjs +4 -0
  52. package/esm2022/public-api.mjs +17 -0
  53. package/esm2022/rededor-site-front-end-lib.mjs +5 -0
  54. package/fesm2022/rededor-site-front-end-lib.mjs +32544 -0
  55. package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -0
  56. package/index.d.ts +5 -0
  57. package/lib/components/index.d.ts +1 -0
  58. package/lib/components/test/test.component.d.ts +12 -0
  59. package/lib/enums/EnumDoencaTaxonomy.enum.d.ts +8 -0
  60. package/lib/enums/Estados.enum.d.ts +29 -0
  61. package/lib/enums/IconCuraDefaultType.enum.d.ts +119 -0
  62. package/lib/helpers/index.d.ts +2 -0
  63. package/lib/helpers/removeDuplicateObjectsFromArray.func.d.ts +2 -0
  64. package/lib/helpers/removeDuplicateValuesFromArray.func.d.ts +2 -0
  65. package/lib/helpers/toQueryParams.func.d.ts +5 -0
  66. package/lib/models/centro-estudos-backend.model.d.ts +8 -0
  67. package/lib/models/doenca-backend.model.d.ts +25 -0
  68. package/lib/models/doenca-taxonomy.model.d.ts +11 -0
  69. package/lib/models/especialidade-backend.model.d.ts +24 -0
  70. package/lib/models/exame-backend.model.d.ts +25 -0
  71. package/lib/models/medico-cv.model.d.ts +10 -0
  72. package/lib/models/menu-item.model.d.ts +48 -0
  73. package/lib/models/rdsl-cobertura.model.d.ts +71 -0
  74. package/lib/models/rdsl-convenio.model.d.ts +17 -0
  75. package/lib/models/rdsl-especialidade.model.d.ts +33 -0
  76. package/lib/models/rdsl-planos.model.d.ts +13 -0
  77. package/lib/models/rdsl-unidade.model.d.ts +50 -0
  78. package/lib/models/unidade-detalhe.model.d.ts +155 -0
  79. package/lib/models/unidade-onco.model.d.ts +54 -0
  80. package/lib/models/unidade.model.d.ts +45 -0
  81. package/lib/models/wordpress/WpResponse.model.d.ts +31 -0
  82. package/lib/models/wordpress/general/content.model.d.ts +4 -0
  83. package/lib/models/wordpress/general/excerpt.model.d.ts +4 -0
  84. package/lib/models/wordpress/general/featuredMedia.model.d.ts +26 -0
  85. package/lib/models/wordpress/general/guid.model.d.ts +3 -0
  86. package/lib/models/wordpress/general/index.d.ts +10 -0
  87. package/lib/models/wordpress/general/links.model.d.ts +47 -0
  88. package/lib/models/wordpress/general/meta.model.d.ts +3 -0
  89. package/lib/models/wordpress/general/title.model.d.ts +3 -0
  90. package/lib/models/wordpress/general/yoastData.model.d.ts +4 -0
  91. package/lib/models/wordpress/general/yoastHeadJson.model.d.ts +54 -0
  92. package/lib/models/wordpress/general/yoastMeta.model.d.ts +5 -0
  93. package/lib/models/wordpress/page/page.model.d.ts +10 -0
  94. package/lib/services/algolia/algolia.service.d.ts +16 -0
  95. package/lib/services/cura/cura.service.d.ts +30 -0
  96. package/lib/services/http-client/http-client.service.d.ts +19 -0
  97. package/lib/services/index.d.ts +8 -0
  98. package/lib/services/log/log.service.d.ts +16 -0
  99. package/lib/services/ngu-carousel/ngu-carousel.service.d.ts +13 -0
  100. package/lib/services/site-back-end/site-back-end.service.d.ts +56 -0
  101. package/lib/services/ssr-loading/ssr-loading.service.d.ts +13 -0
  102. package/lib/services/transfer-state/transfer-state.service.d.ts +12 -0
  103. package/lib/tokens/CuraApi.d.ts +2 -0
  104. package/lib/tokens/LibConfig.d.ts +25 -0
  105. package/package.json +32 -0
  106. package/public-api.d.ts +8 -0
@@ -0,0 +1,71 @@
1
+ export interface RDSLCobertura {
2
+ AMBULATORIO_ONCOLOGIA: string;
3
+ BAIRRO_UNIDADE: string;
4
+ CEP_UNIDADE: string;
5
+ CNPJ_UNIDADE: string;
6
+ CODIGO_UNIDADE_MOTION: string;
7
+ COMPLEMENTO_ENDERECO_UNIDADE: string;
8
+ DESCRICAO_UNIDADE: string;
9
+ EMAIL_CHECKIN_INTERNACAO: string;
10
+ ENDERECO_UNIDADE: string;
11
+ ESPECIALIDADES_AMBULATORIO: string;
12
+ ESPECIALIDADES_INTERNACAO: string;
13
+ ESPECIALIDADES_PS: string;
14
+ EXAMES_CONTRATADOS: string;
15
+ FLAG_ACEITA_AMBULATORIO: string;
16
+ FLAG_ACEITA_EXAME: string;
17
+ FLAG_ACEITA_INTERNACAO: string;
18
+ FLAG_ACEITA_PS: string;
19
+ FLAG_CHECKIN_EMERGENCIA: string;
20
+ FLAG_CHECKIN_INTERNACAO: string;
21
+ FLAG_EMERGENCIA_ADULTO: string;
22
+ FLAG_EMERGENCIA_INFANTIL: string;
23
+ FLAG_PEDIDO_VAGA: string;
24
+ FLAG_POSSUI_MATERINIDADE: string;
25
+ FLAG_UNIDADE_ATIVA_AGD_EXAME: string;
26
+ FLAG_UNIDADE_ATIVA_AGENDAMENTO: string;
27
+ FLAG_UNIDADE_ATIVA_SITE: string;
28
+ GEOLOCALIZACAO_UNIDADE: string;
29
+ HOSPITAL: string;
30
+ ID_DQ_COBERTURA: number;
31
+ ID_DQ_FRENTE_NEGOCIOS: number;
32
+ ID_DQ_PLANO: number;
33
+ ID_DQ_UNIDADES_RDSL: number;
34
+ LATITUDE_UNIDADE: string;
35
+ LONGITUDE_UNIDADE: string;
36
+ MUNICIPIO_UNIDADE: string;
37
+ OBSERVACAO: string;
38
+ SIGLA_UNIDADE: string;
39
+ STATUS_COBERTURA: string;
40
+ TELEFONES_UNIDADE: string;
41
+ TELEFONE_SITE: string;
42
+ TIPO_COBERTURA: string;
43
+ UF_UNIDADE: string;
44
+ URL_IMAGE: string;
45
+ unidadeImage?: any;
46
+ unidadeLinkMapa?: string;
47
+ unidadePath?: string;
48
+ unidadeSite?: string;
49
+ }
50
+ export interface RDSLCoberturaParams {
51
+ ativaAgConsultas?: string;
52
+ ativaAgExames?: string;
53
+ aceitaAmbulatorio?: string;
54
+ aceitaInternacao?: string;
55
+ aceitaPs?: string;
56
+ aceitaExame?: string;
57
+ ambulatorioOncologia?: string;
58
+ hospital?: string;
59
+ statusCobertura?: string;
60
+ municipio?: string;
61
+ uf?: string;
62
+ ativaSite?: string;
63
+ checkinEmergencia?: string;
64
+ checkinInternacao?: string;
65
+ emergenciaAdulto?: string;
66
+ emergenciaInfantil?: string;
67
+ maternidade?: string;
68
+ pedidoVaga?: string;
69
+ frenteNegocios?: string;
70
+ tipoCobertura?: string;
71
+ }
@@ -0,0 +1,17 @@
1
+ export interface RDSLConvenioParams {
2
+ ativaAgConsultas?: 'S' | 'N';
3
+ ativaAgExames?: 'S' | 'N';
4
+ ativaCortesia?: 'S' | 'N';
5
+ codigoAns?: string;
6
+ codigoMotion?: string;
7
+ }
8
+ export interface RDSLConvenio {
9
+ CODIGO_CONVENIO_ANS: string;
10
+ CODIGO_CONVENIO_MOTION: string;
11
+ FLAG_ATIVO_AGENDAMENTO_CONSULTA: 'S' | 'N';
12
+ FLAG_ATIVO_AGENDAMENTO_EXAME: 'S' | 'N';
13
+ FLAG_LIBERAR_CORTESIA: 'S' | 'N';
14
+ ID_DQ_CONVENIO_DIGITAL: string;
15
+ NOME_CONVENIO_CORPORATIVO: string;
16
+ NOME_CONVENIO_DIGITAL: string;
17
+ }
@@ -0,0 +1,33 @@
1
+ export interface RDSLEspecialidadesParams {
2
+ conteudoSite?: string;
3
+ grupo?: string;
4
+ id?: string;
5
+ idMotion?: string;
6
+ nome?: string;
7
+ possuiAgendamento?: string;
8
+ }
9
+ export interface RDSLEspecialidade {
10
+ CODIGO_ESPECIALIDADE_CONSELHO: string;
11
+ CODIGO_ESPECIALIDADE_MOTION: string;
12
+ DESCRICAO_ESPECIALIDADE: string;
13
+ ESPECIALISTA_COMPLEMENTO: string;
14
+ ESPECIALISTA_DESCRICAO: string;
15
+ FLAG_POSSUI_AGENDAMENTO_ONLINE: string;
16
+ FLAG_POSSUI_CONTEUDO_SITE: string;
17
+ GRUPO_ESPECIALIDADE: string;
18
+ ID_DQ_ESPECIALIDADE: number;
19
+ ID_DQ_TIPO_CONSELHO: number;
20
+ OBSERVACAO: string;
21
+ SUBGRUPO_ESPECIALIDADE: string;
22
+ slug_especialista?: string;
23
+ slug_especialista_grupo?: string;
24
+ }
25
+ export interface RDSLGrupoEspecialidadeParams {
26
+ conteudoSite?: string;
27
+ possuiAgendamento?: string;
28
+ }
29
+ export interface RDSLGrupoEspecialidade {
30
+ GRUPO_ESPECIALIDADE: string;
31
+ nome_especialista?: string;
32
+ slug_especialista?: string;
33
+ }
@@ -0,0 +1,13 @@
1
+ export interface RDSLPlano {
2
+ ID_DQ_PLANO: string;
3
+ ID_DQ_CONVENIOS: string;
4
+ NOME_CONVENIO_COMERCIAL: string;
5
+ DESCRICAO_PLANO_CONCATENADA: string;
6
+ CODIGO_PLANO_MOTION: string;
7
+ }
8
+ export interface RDSLPlanoParams {
9
+ id?: string;
10
+ idmotion?: string;
11
+ idconvenio?: string;
12
+ nomeconvenio?: string;
13
+ }
@@ -0,0 +1,50 @@
1
+ export interface RDSLUnidade {
2
+ BAIRRO_UNIDADE: string;
3
+ CEP_UNIDADE: string;
4
+ CNPJ_UNIDADE: string;
5
+ CODIGO_UNIDADE_MOTION: string;
6
+ COMPLEMENTO_ENDERECO_UNIDADE: string;
7
+ DESCRICAO_UNIDADE: string;
8
+ EMAIL_CHECKIN_INTERNACAO: string;
9
+ ENDERECO_UNIDADE: string;
10
+ FLAG_CHECKIN_EMERGENCIA: string;
11
+ FLAG_CHECKIN_INTERNACAO: string;
12
+ FLAG_EMERGENCIA_ADULTO: string;
13
+ FLAG_EMERGENCIA_INFANTIL: string;
14
+ FLAG_PEDIDO_VAGA: string;
15
+ FLAG_POSSUI_MATERINIDADE: string;
16
+ FLAG_UNIDADE_ATIVA_AGD_EXAME: string;
17
+ FLAG_UNIDADE_ATIVA_AGENDAMENTO: string;
18
+ FLAG_UNIDADE_ATIVA_SITE: string;
19
+ GEOLOCALIZACAO_UNIDADE: string;
20
+ ID_DQ_FRENTE_NEGOCIOS: number;
21
+ ID_DQ_UNIDADES_RDSL: number;
22
+ LATITUDE_UNIDADE: string;
23
+ LONGITUDE_UNIDADE: string;
24
+ MUNICIPIO_UNIDADE: string;
25
+ SIGLA_UNIDADE: string;
26
+ TELEFONE_SITE: string;
27
+ TELEFONES_UNIDADE: string;
28
+ UF_UNIDADE: string;
29
+ URL_IMAGE: string;
30
+ TIPO_COBERTURA: string;
31
+ slug: string;
32
+ slug_cidade_uf: string;
33
+ }
34
+ export interface RDSLUnidadesParams {
35
+ nome?: string;
36
+ id?: string;
37
+ idMotion?: string;
38
+ uf?: string;
39
+ municipio?: string;
40
+ ativaSite?: 'S' | 'N';
41
+ ativaAgConsultas?: 'S' | 'N';
42
+ ativaAgExames?: 'S' | 'N';
43
+ checkinEmergencia?: 'S' | 'N';
44
+ checkinInternacao?: 'S' | 'N';
45
+ emergenciaAdulto?: 'S' | 'N';
46
+ emergenciaInfantil?: 'S' | 'N';
47
+ maternidade?: 'S' | 'N';
48
+ pedidoVaga?: 'S' | 'N';
49
+ frenteNegocios?: number | string;
50
+ }
@@ -0,0 +1,155 @@
1
+ export interface HomeSlideshow {
2
+ home_slideshow_img_desktop: any;
3
+ home_slideshow_img_mobile: any;
4
+ home_slideshow_titulo: string;
5
+ home_slideshow_subtitulo: string;
6
+ home_sideshow_labelcta: string;
7
+ home_slideshow_linkcta: string;
8
+ }
9
+ export interface UnidadeEspecialidadeProcurada {
10
+ nome_da_especialidade: string;
11
+ icone_da_especialidade: string;
12
+ link_da_especialidade: string;
13
+ }
14
+ export interface UnidadeExamesProcurados {
15
+ nome_do_exame: string;
16
+ icone_do_exame: string;
17
+ link_do_exame: string;
18
+ }
19
+ export interface UnidadeEmergencia {
20
+ emergencia: string;
21
+ endereco_emergencia: string;
22
+ link: string;
23
+ especialidades: any[];
24
+ }
25
+ interface UnidadeEncontreFarma {
26
+ encontre_farma_enabled: boolean;
27
+ encontre_farma_sidebar_banner: UnidadeEncontreFarmaSidebarBanner;
28
+ encontre_farma_banner_home: {
29
+ show_banner_home: boolean;
30
+ banner_title: string;
31
+ banner_subtitle: string;
32
+ banner_cta_label: string;
33
+ banner_cta_url: string;
34
+ banner_img_background: any;
35
+ banner_style: string;
36
+ banner_cta_color: string;
37
+ };
38
+ }
39
+ interface UnidadeEncontreFarmaSidebarBanner {
40
+ img: any;
41
+ url: string;
42
+ show_sidebar_banner_everywhere: boolean;
43
+ show_sidebar_banner_doencas: boolean;
44
+ show_sidebar_banner_exames: boolean;
45
+ show_sidebar_banner_especialidades: boolean;
46
+ }
47
+ export interface UnidadeNossasMarcas {
48
+ title: string;
49
+ partners: {
50
+ name: string;
51
+ link: string;
52
+ }[];
53
+ }
54
+ export interface UnidadeDetalhe {
55
+ unidade_nome: string;
56
+ consulta: boolean;
57
+ encontre_um_medico: boolean;
58
+ unidade_exibir_whatsapp_fab: boolean;
59
+ unidade_label_link_whatsapp_home?: string;
60
+ unidade_link_whatsapp_home?: string;
61
+ unidade_exibir_whatsapp_exames?: boolean;
62
+ unidade_label_link_whatsapp_exames?: string;
63
+ unidade_link_whatsapp_exames?: string;
64
+ unidade_url_oncologia: string;
65
+ unidade_oferece_oncologia: string[] | string;
66
+ unidade_imagem: any;
67
+ unidade_endereco: string;
68
+ unidade_estado: string;
69
+ unidade_site: string;
70
+ unidade_telefone: string;
71
+ unidade_link_mapa: string;
72
+ unidade_logomarca: any;
73
+ unidade_logomarca_negativa?: any;
74
+ unidade_email?: string;
75
+ unidade_email_cirurgia: string;
76
+ unidade_telefone_central: string;
77
+ unidade_uf: string;
78
+ unidade_areas_busca: string[];
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;
87
+ id_qualidade_unidade: string;
88
+ id_motion_unidade: string;
89
+ id_motion_consultas?: string;
90
+ id_motion_exames?: string;
91
+ id_local?: string;
92
+ emergencias: UnidadeEmergencia[];
93
+ exames_unidade: boolean;
94
+ resultados_exames: boolean;
95
+ especialidades_unidade: boolean;
96
+ blog_id: string;
97
+ domain: string;
98
+ path: string;
99
+ site_id: string;
100
+ registered: string;
101
+ last_updated: string;
102
+ public: string;
103
+ archived: string;
104
+ mature: string;
105
+ spam: string;
106
+ deleted: string;
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;
115
+ tipo_unidade?: string;
116
+ categoria_unidade?: string;
117
+ cadastro_de_unidade?: any[];
118
+ unidade_possui_outras_unidades: string[] | string;
119
+ unidade_outras_clinicas_oncologicas: [
120
+ {
121
+ unidade_outrasclinicas_nome: string;
122
+ unidade_outrasclinicas_url: string;
123
+ unidade_outrasclinicas_uf: string[] | string;
124
+ }
125
+ ];
126
+ unidade_oferece_maternidade: boolean;
127
+ unidade_maternidade_nome: string;
128
+ unidade_maternidade_url: string;
129
+ unidade_maternidade_endereco: {
130
+ unidade_maternidade_endereco_endereco: string;
131
+ unidade_maternidade_endereco_cidade: string;
132
+ unidade_maternidade_endereco_uf: string;
133
+ };
134
+ unidade_maternidade_show_site: boolean;
135
+ banners_encontre_farma: UnidadeEncontreFarma;
136
+ hide_menu_unidades: boolean;
137
+ partnerships: UnidadeNossasMarcas;
138
+ unidade_estilo_whatsapp: UnidadeEstiloWhatsapp;
139
+ unidade_modal_agendamento: UnidadePhoneModal;
140
+ unidade_modal_generico: UnidadePhoneModal;
141
+ }
142
+ export interface UnidadeEstiloWhatsapp {
143
+ cor_da_borda: string;
144
+ cor_de_fundo: string;
145
+ cor_fundo_label: string;
146
+ cor_label: string;
147
+ cor_whatsapp: string;
148
+ imagem: any;
149
+ }
150
+ export interface UnidadePhoneModal {
151
+ titulo: string;
152
+ texto: string;
153
+ imagem: any;
154
+ }
155
+ export {};
@@ -0,0 +1,54 @@
1
+ import { WpCommonResponse, WpGlobalResponse, WpPublishingResponse, WpYoastResponse } from "./wordpress/WpResponse.model";
2
+ export interface WpUnidadeOnco extends WpCommonResponse, WpGlobalResponse, WpPublishingResponse, WpYoastResponse {
3
+ path?: string;
4
+ details?: any;
5
+ info?: any;
6
+ acf: {
7
+ convenios: UnidadeConvenios;
8
+ descricao: string;
9
+ especialidades: UnidadeEspecialidades;
10
+ horario_atendimento: string;
11
+ id_qualidade: number;
12
+ instalacoes: any;
13
+ localizacao: UnidadeLocalizacao;
14
+ redes_sociais: any;
15
+ servicos: UnidadeServicos;
16
+ sobre: UnidadeSobre;
17
+ telefone: string;
18
+ tem_certificados: boolean;
19
+ tratamentos: UnidadeTratamentos;
20
+ videos: any;
21
+ url_site?: string;
22
+ whatsapp_linhaverde?: any;
23
+ telefone_linhaverde?: any;
24
+ email_linhaverde?: any;
25
+ };
26
+ }
27
+ interface UnidadeConvenios {
28
+ texto: string;
29
+ lista: string;
30
+ }
31
+ interface UnidadeEspecialidades {
32
+ texto: string;
33
+ lista: Array<any>;
34
+ }
35
+ interface UnidadeLocalizacao {
36
+ bairro: string;
37
+ cep: string;
38
+ endereco: string;
39
+ municipio: string;
40
+ uf: string;
41
+ mapa: string;
42
+ }
43
+ interface UnidadeServicos {
44
+ texto: string;
45
+ }
46
+ interface UnidadeSobre {
47
+ titulo: string;
48
+ texto: string;
49
+ }
50
+ interface UnidadeTratamentos {
51
+ texto: string;
52
+ lista: Array<any>;
53
+ }
54
+ export {};
@@ -0,0 +1,45 @@
1
+ import { UnidadeDetalhe } from './unidade-detalhe.model';
2
+ export interface UnidadeInfo {
3
+ admin_email: string;
4
+ charset: string;
5
+ description: string;
6
+ language: string;
7
+ name: string;
8
+ url: string;
9
+ version: string;
10
+ }
11
+ export interface UnidadeOptions {
12
+ id_motion_unidade: string;
13
+ id_qualidade_unidade: string | number;
14
+ unidade_imagem: string;
15
+ unidade_link_mapa: string;
16
+ unidade_site: string;
17
+ unidade_telefone: string;
18
+ unidade_email?: string;
19
+ consulta: boolean;
20
+ categoria_unidade: string;
21
+ encontre_um_medico: boolean;
22
+ unidade_url_oncologia?: string;
23
+ unidade_oferece_oncologia: string[] | string;
24
+ exames_unidade: boolean;
25
+ especialidades_unidade: boolean;
26
+ unidade_exibir_whatsapp_fab: boolean;
27
+ unidade_exibir_whatsapp_exames?: boolean;
28
+ }
29
+ export interface Unidade {
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
+ details?: UnidadeDetalhe;
44
+ externo?: boolean;
45
+ }
@@ -0,0 +1,31 @@
1
+ import { Content, Excerpt, FeaturedMedia, Guid, Links, Title, YoastData, YoastHeadJson } from './general';
2
+ export interface WpCommonResponse<T = any> {
3
+ id: number;
4
+ ID: number;
5
+ guid: Guid;
6
+ slug: string;
7
+ status: string;
8
+ type: string;
9
+ link: string;
10
+ title: Title;
11
+ content: Content;
12
+ excerpt: Excerpt;
13
+ featured_media: number | string | FeaturedMedia;
14
+ template: string;
15
+ acf?: T;
16
+ }
17
+ export interface WpGlobalResponse {
18
+ _embedded?: any;
19
+ _links?: Links;
20
+ }
21
+ export interface WpPublishingResponse {
22
+ date: string;
23
+ date_gmt: string;
24
+ modified: string;
25
+ modified_gmt: string;
26
+ }
27
+ export interface WpYoastResponse {
28
+ yoast_head?: string;
29
+ yoast_head_json?: YoastHeadJson;
30
+ yoast_data?: YoastData;
31
+ }
@@ -0,0 +1,4 @@
1
+ export interface Content {
2
+ rendered: string;
3
+ protected: boolean;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface Excerpt {
2
+ rendered: string;
3
+ protected: boolean;
4
+ }
@@ -0,0 +1,26 @@
1
+ export interface FeaturedMediaDetails {
2
+ width: number;
3
+ height: number;
4
+ file: string;
5
+ sizes: any;
6
+ image_meta: any;
7
+ }
8
+ export interface FeaturedMedia {
9
+ id: number;
10
+ date: string;
11
+ slug: string;
12
+ type: string;
13
+ link: string;
14
+ title: {
15
+ rendered: string;
16
+ };
17
+ author: number;
18
+ caption: {
19
+ rendered: string;
20
+ };
21
+ alt_text: string;
22
+ media_type: string;
23
+ mime_type: string;
24
+ media_details: FeaturedMediaDetails;
25
+ source_url: any;
26
+ }
@@ -0,0 +1,3 @@
1
+ export interface Guid {
2
+ rendered: string;
3
+ }
@@ -0,0 +1,10 @@
1
+ export * from './content.model';
2
+ export * from './excerpt.model';
3
+ export * from './featuredMedia.model';
4
+ export * from './guid.model';
5
+ export * from './links.model';
6
+ export * from './meta.model';
7
+ export * from './title.model';
8
+ export * from './yoastData.model';
9
+ export * from './yoastHeadJson.model';
10
+ export * from './yoastMeta.model';
@@ -0,0 +1,47 @@
1
+ export interface Links {
2
+ self?: {
3
+ href: string;
4
+ }[];
5
+ collection?: {
6
+ href: string;
7
+ }[];
8
+ about?: {
9
+ href: string;
10
+ }[];
11
+ author?: {
12
+ embeddable: boolean;
13
+ href: string;
14
+ }[];
15
+ replies?: {
16
+ embeddable: boolean;
17
+ href: string;
18
+ }[];
19
+ 'version-history'?: {
20
+ count: number;
21
+ href: string;
22
+ }[];
23
+ 'acf:term'?: {
24
+ embedabble: boolean;
25
+ taxonomy: string;
26
+ href: string;
27
+ }[];
28
+ 'acf:post'?: {
29
+ embedabble: boolean;
30
+ href: string;
31
+ }[];
32
+ 'wp:featuredmedia'?: {
33
+ embedabble: boolean;
34
+ href: string;
35
+ }[];
36
+ 'wp:attachment'?: {
37
+ href: string;
38
+ }[];
39
+ 'wp:post_type'?: {
40
+ href: string;
41
+ }[];
42
+ curies?: {
43
+ name: string;
44
+ href: string;
45
+ templated: boolean;
46
+ }[];
47
+ }
@@ -0,0 +1,3 @@
1
+ export interface Meta {
2
+ inline_featured_image: boolean;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface Title {
2
+ rendered: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface YoastData {
2
+ _yoast_wpseo_title: string[];
3
+ _yoast_wpseo_metadesk: string[];
4
+ }
@@ -0,0 +1,54 @@
1
+ interface Robots {
2
+ index: string;
3
+ follow: string;
4
+ 'max-snipper': string;
5
+ 'max-image-preview': string;
6
+ 'max-video-preview': string;
7
+ }
8
+ interface Graph {
9
+ '@type': string;
10
+ '@id': string;
11
+ url: string;
12
+ name: string;
13
+ isPartOf: {
14
+ '@id': string;
15
+ };
16
+ datePublished: string;
17
+ dateModified: string;
18
+ description: string;
19
+ breadcrumb: {
20
+ '@id': string;
21
+ };
22
+ inLanguage: string;
23
+ potentialAction: {
24
+ '@type': string;
25
+ target: string[];
26
+ }[];
27
+ }
28
+ interface Schema {
29
+ '@context': string;
30
+ '@graph': Graph[];
31
+ }
32
+ interface OgImage {
33
+ width: number;
34
+ height: number;
35
+ url: string;
36
+ type: string;
37
+ }
38
+ export interface YoastHeadJson {
39
+ title: string;
40
+ description: string;
41
+ robots: Robots;
42
+ canonical: string;
43
+ og_locale: string;
44
+ og_type: string;
45
+ og_title: string;
46
+ og_description: string;
47
+ og_url: string;
48
+ og_site_name: string;
49
+ article_modified_time: string;
50
+ twitter_card: string;
51
+ og_image: OgImage;
52
+ schema: Schema;
53
+ }
54
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface YoastMeta {
2
+ yoast_wpseo_title: string;
3
+ yoast_wpseo_metadesc: string;
4
+ yoast_wpseo_canonical: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { Meta } from '../general/meta.model';
2
+ import { WpCommonResponse, WpGlobalResponse, WpPublishingResponse, WpYoastResponse } from '../WpResponse.model';
3
+ export interface WpPage<T = any> extends WpCommonResponse<T>, WpGlobalResponse, WpPublishingResponse, WpYoastResponse {
4
+ author: number;
5
+ parent: number;
6
+ menu_order: number;
7
+ comment_status: string;
8
+ ping_status: string;
9
+ meta: Meta;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { SearchClient } from 'algoliasearch';
2
+ import { SearchOptions, SearchResponse, MultipleQueriesQuery, MultipleQueriesResponse, SearchForFacetValuesResponse } from '@algolia/client-search';
3
+ import { Observable } from 'rxjs';
4
+ import { LibConfig } from '../../tokens/LibConfig';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AlgoliaService {
7
+ private libConfig;
8
+ private client;
9
+ constructor(libConfig: LibConfig);
10
+ search<T = any>(query: string, index: string, params?: SearchOptions): Observable<SearchResponse<T>>;
11
+ searchMultipleIndexes<T = any>(config: MultipleQueriesQuery[]): Observable<MultipleQueriesResponse<T>>;
12
+ searchForFacetValues(index: string, facetName: string, facetQuery: string, params?: SearchOptions): Observable<SearchForFacetValuesResponse>;
13
+ initClient(): SearchClient;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlgoliaService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<AlgoliaService>;
16
+ }