keevo-api-services-hcm 0.0.41 → 0.0.43

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.
@@ -0,0 +1,23 @@
1
+ export interface DenunciaAnonimaModel {
2
+ idmaster: number;
3
+ idempresaevocenter: string;
4
+ iddenunciaanonima: string;
5
+ texto: string;
6
+ anexos: DenunciaAnonimaAnexoModel[];
7
+ interacoes: DenunciaAnonimaInteracaoModel[];
8
+ }
9
+ export interface DenunciaAnonimaAnexoModel {
10
+ iddenunciaanonima: string;
11
+ iddenunciaanonimaanexo: string;
12
+ idarquivo: string;
13
+ idpessoa?: number;
14
+ nomearquivo: string;
15
+ datacadastro: Date;
16
+ tamanhoarquivo: number;
17
+ }
18
+ export interface DenunciaAnonimaInteracaoModel {
19
+ iddenunciaanonima: string;
20
+ iddenunciaanonimainteracao: string;
21
+ idpessoa?: number;
22
+ texto: string;
23
+ }
@@ -0,0 +1,38 @@
1
+ import { BaseApiService, HostEnvironment } from 'keevo-api-services';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { DenunciaAnonimaModel } from '../../models/hcm/denunciaanonima/denunciaanonima.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DenunciaanonimaService extends BaseApiService {
7
+ private httpClient;
8
+ private hostEnv;
9
+ constructor(httpClient: HttpClient, hostEnv: HostEnvironment);
10
+ private readonly rotaCriar;
11
+ private readonly rotaSelecionarPorId;
12
+ private readonly rotaSelecionarPorCodigoDeAcesso;
13
+ /**
14
+ * Cria uma nova denúncia anônima.
15
+ *
16
+ * @param idEmpresaEvoCenter - O identificador da empresa no EvoCenter.
17
+ * @param texto - O texto da denúncia.
18
+ * @param anexos - Uma lista de arquivos anexados à denúncia.
19
+ * @returns Um Observable que emite a resposta da criação da denúncia.
20
+ */
21
+ criar(idEmpresaEvoCenter: string, texto: string, anexos: File[]): Observable<any>;
22
+ /**
23
+ * Seleciona uma denúncia anônima pelo ID fornecido.
24
+ *
25
+ * @param {string} id - O ID da denúncia anônima a ser selecionada.
26
+ * @returns {Observable<DenunciaAnonimaModel>} Um Observable contendo o modelo de resposta da denúncia anônima selecionada.
27
+ */
28
+ selecionar(id: string): Observable<DenunciaAnonimaModel>;
29
+ /**
30
+ * Seleciona uma denúncia anônima pelo código de acesso fornecido.
31
+ *
32
+ * @param {string} codigoAcesso - O código de acesso da denúncia anônima.
33
+ * @returns {Observable<DenunciaAnonimaModel>} Um Observable contendo o modelo de resposta da denúncia anônima.
34
+ */
35
+ selecionarPorCodigoAcesso(codigoAcesso: string): Observable<DenunciaAnonimaModel>;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<DenunciaanonimaService, never>;
37
+ static ɵprov: i0.ɵɵInjectableDeclaration<DenunciaanonimaService>;
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-api-services-hcm",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
package/public-api.d.ts CHANGED
@@ -97,6 +97,7 @@ export * from './lib/services/hcm/unidade-administrativa.service';
97
97
  export * from './lib/services/hcm/unidade-hierarquica.service';
98
98
  export * from './lib/services/hcm/configuracaomovimentosfolha.service';
99
99
  export * from './lib/services/hcm/movimentos-folha.service';
100
+ export * from './lib/services/hcm/denunciaanonima.service';
100
101
  export * from './lib/services/passaporte/empresa-banner.service';
101
102
  export * from './lib/services/passaporte/empresa-parametros.service';
102
103
  export * from './lib/services/passaporte/empresa.service';