keevo-api-services-hcm 0.0.21 → 0.0.23
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.
- package/esm2022/lib/models/filtro/filtrolistausuario.model.mjs +1 -1
- package/esm2022/lib/models/pessoa/colaborador/colaborador.model.mjs +1 -1
- package/esm2022/lib/models/pessoa/registro/registro.model.mjs +1 -1
- package/esm2022/lib/models/pessoa/registro/usuariopessoaresumo.model.mjs +1 -1
- package/esm2022/lib/services/hcm/hierarquiaorganizacional.service.mjs +1 -1
- package/esm2022/lib/services/pessoa/colaborador.service.mjs +5 -1
- package/esm2022/lib/services/pessoa/keex.service.mjs +5 -1
- package/esm2022/lib/services/pessoa/registro.service.mjs +17 -1
- package/esm2022/lib/services/utilitarios/validators.service.mjs +21 -1
- package/fesm2022/keevo-api-services-hcm.mjs +44 -0
- package/fesm2022/keevo-api-services-hcm.mjs.map +1 -1
- package/lib/models/filtro/filtrolistausuario.model.d.ts +1 -0
- package/lib/models/pessoa/colaborador/colaborador.model.d.ts +2 -0
- package/lib/models/pessoa/registro/registro.model.d.ts +1 -0
- package/lib/models/pessoa/registro/usuariopessoaresumo.model.d.ts +1 -0
- package/lib/services/hcm/equipe-membro.service.d.ts +2 -2
- package/lib/services/hcm/equipe.service.d.ts +1 -1
- package/lib/services/hcm/hierarquiaorganizacional.service.d.ts +9 -9
- package/lib/services/hcm/relacionamento-lotacao.service.d.ts +1 -1
- package/lib/services/hcm/sub-tipo-ocorrencia.service.d.ts +1 -1
- package/lib/services/hcm/tipo-estado.service.d.ts +1 -1
- package/lib/services/hcm/tipo-ocorrencia.service.d.ts +1 -1
- package/lib/services/hcm/unidade-hierarquica.service.d.ts +1 -1
- package/lib/services/passaporte/empresa-banner.service.d.ts +1 -1
- package/lib/services/passaporte/empresa-parametros.service.d.ts +2 -2
- package/lib/services/pessoa/analista-pessoa.service.d.ts +2 -2
- package/lib/services/pessoa/colaborador.service.d.ts +2 -0
- package/lib/services/pessoa/keex.service.d.ts +3 -1
- package/lib/services/pessoa/lider.service.d.ts +1 -1
- package/lib/services/pessoa/registro.service.d.ts +14 -3
- package/lib/services/utilitarios/validators.service.d.ts +1 -0
- package/package.json +2 -2
@@ -649,6 +649,7 @@ class ColaboradorService extends BaseApiService {
|
|
649
649
|
this.rotaListarColaboradoresSecundariosPorHierarquiaOrganizacional = 'hcm/api/v1/colaborador/ListarColaboradoresSecundariosPorHierarquiaOrganizacional';
|
650
650
|
this.rotaListarPossiveisColaboradores = 'hcm/api/v1/colaborador/ListarPossiveisColaboradores';
|
651
651
|
this.rotaSelecionar = 'hcm/api/v1/colaborador/selecionar';
|
652
|
+
this.rotaSelecionarPorGuid = 'hcm/api/v1/colaborador/selecionarporguid';
|
652
653
|
this.rotaSelecionarPossivelColaborador = 'hcm/api/v1/colaborador/SelecionarPossivelColaborador';
|
653
654
|
this.rotaSalvar = 'hcm/api/v1/colaborador/salvar';
|
654
655
|
this.rotaSalvarLinha = 'hcm/api/v1/colaborador/salvarlinha';
|
@@ -676,6 +677,9 @@ class ColaboradorService extends BaseApiService {
|
|
676
677
|
Selecionar(idcolaborador) {
|
677
678
|
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idcolaborador}`);
|
678
679
|
}
|
680
|
+
SelecionarPorGuid(guid) {
|
681
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionarPorGuid}/${guid}`);
|
682
|
+
}
|
679
683
|
SelecionarPossivelColaborador(filtro) {
|
680
684
|
return this.getHeaders(this.hostEnv.apiUrlHcm, `${this.rotaSelecionarPossivelColaborador}`, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
681
685
|
}
|
@@ -710,6 +714,7 @@ class KeexService extends BaseApiService {
|
|
710
714
|
this.rotaPesquisarUsuario = 'hcm/api/v1/keex/pesquisarusuario';
|
711
715
|
this.rotaTotalFuncionariosAcessoKeex = 'hcm/api/v1/keex/totalfuncionariosacessokeex';
|
712
716
|
this.rotaAlteracoesKeex = 'hcm/api/v1/keex/alteraracessokeex';
|
717
|
+
this.rotaValidacaoKeex = 'hcm/api/v1/keex/alterarvalidacaokeex';
|
713
718
|
this.rotaAlteracoesKeexEmpresa = 'hcm/api/v1/keex/alteraracessokeexempresa';
|
714
719
|
this.rotaEnviaConvite = 'hcm/api/v1/keex/enviaconvite';
|
715
720
|
this.rotaListarEnderecos = 'hcm/api/v1/keex/ListarEnderecos';
|
@@ -728,6 +733,9 @@ class KeexService extends BaseApiService {
|
|
728
733
|
AlteraAcessoAoKeex(parametros) {
|
729
734
|
return this.post(this.hostEnv.apiUrlHcm, this.rotaAlteracoesKeex, parametros);
|
730
735
|
}
|
736
|
+
AlteraValidacaoKeex(parametros) {
|
737
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaValidacaoKeex, parametros);
|
738
|
+
}
|
731
739
|
EnviarConvite(usuarios) {
|
732
740
|
return this.post(this.hostEnv.apiUrlHcm, this.rotaEnviaConvite, usuarios);
|
733
741
|
}
|
@@ -837,18 +845,22 @@ class RegistroService extends BaseApiService {
|
|
837
845
|
this.rotaListar = 'hcm/api/v1/registro/listar';
|
838
846
|
this.rotaListarContatos = 'hcm/api/v1/registro/listarcontatos';
|
839
847
|
this.rotaListarIdPorCpf = 'hcm/api/v1/registro/ListarIdPorCpf';
|
848
|
+
this.rotaListarGuidPorCpf = 'hcm/api/v1/registro/ListarGuidPorCpf';
|
840
849
|
this.rotaListarFuncionariosSemLotacao = 'hcm/api/v1/registro/ListarFuncionariosSemLotacao';
|
841
850
|
this.rotaPesquisar = 'hcm/api/v1/registro/pesquisar';
|
842
851
|
this.rotaListarAniversariantes = 'hcm/api/v1/registro/listaraniversariantes';
|
843
852
|
this.rotaSelecionarPerfil = 'hcm/api/v1/registro/SelecionarPerfil';
|
844
853
|
this.rotaSalvar = 'hcm/api/v1/registro/salvar';
|
845
854
|
this.rotaSelecionar = 'hcm/api/v1/registro/selecionar';
|
855
|
+
this.rotaSelecionarPorGuid = 'hcm/api/v1/registro/SelecionarPorGuid';
|
846
856
|
this.rotaAtualizarFoto = 'hcm/api/v1/registro/AtualizarFoto';
|
847
857
|
this.rotaAlteraVisualizacaoTelefone = 'hcm/api/v1/registro/AlteraVisualizacaoTelefone';
|
848
858
|
this.rotaAlteraVisualizacaoAniversario = 'hcm/api/v1/registro/AlteraVisualizacaoAniversario';
|
849
859
|
this.rotaTotalColaboradoresAtivos = 'hcm/api/v1/registro/TotalColaboradoresAtivos';
|
850
860
|
this.rotaPesquisaLiderSubordinado = 'hcm/api/v1/registro/PesquisarLiderSubordinado';
|
851
861
|
this.rotaGEDListarDemonstrativoDePagamentoPorEmpresa = 'hcm/api/v1/registro/GEDListarDemonstrativoDePagamentoPorEmpresa';
|
862
|
+
this.rotaVerificaDemissaoIndividual = 'hcm/api/v1/registro/VerificaDemissaoIndividual';
|
863
|
+
this.rotaVerificaDemissaoPorEmpresa = 'hcm/api/v1/registro/VerificaDemissaoPorEmpresa';
|
852
864
|
}
|
853
865
|
Excluir(id) {
|
854
866
|
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${id}`);
|
@@ -865,6 +877,9 @@ class RegistroService extends BaseApiService {
|
|
865
877
|
ListarIdPorCpf(filtro) {
|
866
878
|
return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaListarIdPorCpf, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
867
879
|
}
|
880
|
+
ListarGuidPorCpforCpf(filtro) {
|
881
|
+
return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaListarGuidPorCpf, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
882
|
+
}
|
868
883
|
ListarFuncionariosSemLotacao(filtro) {
|
869
884
|
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarFuncionariosSemLotacao, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
870
885
|
}
|
@@ -889,6 +904,9 @@ class RegistroService extends BaseApiService {
|
|
889
904
|
Selecionar(id) {
|
890
905
|
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
|
891
906
|
}
|
907
|
+
SelecionarPorGuid(uuid) {
|
908
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionarPorGuid}/${uuid}`);
|
909
|
+
}
|
892
910
|
SelecionarResumo(id) {
|
893
911
|
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
|
894
912
|
}
|
@@ -904,6 +922,12 @@ class RegistroService extends BaseApiService {
|
|
904
922
|
TotalColaboradoresAtivos(filtro) {
|
905
923
|
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaTotalColaboradoresAtivos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
906
924
|
}
|
925
|
+
VerificaDemissaoIndividual(idmaster, idempresaevocenter, cpfcnpj) {
|
926
|
+
return this.get(this.hostEnv.apiUrlHcm, this.rotaVerificaDemissaoIndividual + `/${idmaster}/${idempresaevocenter}/${cpfcnpj}`);
|
927
|
+
}
|
928
|
+
VerificaDemissaoPorEmpresa(idmaster, idempresaevocenter) {
|
929
|
+
return this.get(this.hostEnv.apiUrlHcm, this.rotaVerificaDemissaoPorEmpresa + `/${idmaster}/${idempresaevocenter}`);
|
930
|
+
}
|
907
931
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RegistroService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
908
932
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RegistroService, providedIn: 'root' }); }
|
909
933
|
}
|
@@ -1179,6 +1203,26 @@ class ValidatorsService {
|
|
1179
1203
|
}
|
1180
1204
|
};
|
1181
1205
|
}
|
1206
|
+
validateFileName(control) {
|
1207
|
+
const fileName = control.value;
|
1208
|
+
// Regras do Windows para nomes de arquivos
|
1209
|
+
const invalidCharsRegex = /[\/\\:*?"<>|]/; // Caracteres especiais não permitidos
|
1210
|
+
const endsWithInvalidCharRegex = /[.]$/; // Não pode terminar com um ponto
|
1211
|
+
const multipleDotsRegex = /(\.\.)/; // Não pode ter múltiplos pontos seguidos
|
1212
|
+
if (!fileName || fileName.trim() === '') {
|
1213
|
+
return { erroMessage: "Campo obrigatório" };
|
1214
|
+
}
|
1215
|
+
if (invalidCharsRegex.test(fileName)) {
|
1216
|
+
return { erroMessage: "Nome de arquivo contém caracteres inválidos" };
|
1217
|
+
}
|
1218
|
+
if (endsWithInvalidCharRegex.test(fileName)) {
|
1219
|
+
return { erroMessage: "Nome de arquivo não pode terminar com um ponto" };
|
1220
|
+
}
|
1221
|
+
if (multipleDotsRegex.test(fileName)) {
|
1222
|
+
return { erroMessage: "Nome de arquivo não pode conter '..'" };
|
1223
|
+
}
|
1224
|
+
return null; // Retorna null se não houver erro
|
1225
|
+
}
|
1182
1226
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ValidatorsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1183
1227
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ValidatorsService, providedIn: 'root' }); }
|
1184
1228
|
}
|