flit-models 3.4.12 → 3.4.14
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/lib/index.d.ts +1 -1
- package/lib/models/contas/perfis/index.d.ts +17 -1
- package/lib/models/contas/perfis/index.js +9 -52
- package/lib/models/contas/usuario/index.d.ts +14 -8
- package/lib/models/contas/usuario/index.js +3 -1
- package/lib/models/contas/usuario/usuario-elastic-convert.d.ts +34 -17
- package/lib/models/contas/usuario/usuario-elastic-convert.js +14 -7
- package/lib/models/contas/usuario/usuario-fire-convert.d.ts +2 -1
- package/lib/models/contas/usuario/usuario-fire-convert.js +14 -7
- package/lib/models/contas/usuario/usuario-json-convert.d.ts +2 -1
- package/lib/models/contas/usuario/usuario-json-convert.js +14 -7
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AuditoriaModificador, AuditoriaModificadorBase, AuditoriaModificadorFireConvert, AuditoriaModificadorFirestoreData, CamposFormulaDeCalculoAbsenteismoEnum, Cargo, CargoBase, CargoElasticConvert, CargoElasticSource, CargoFireConvert, CargoFirestoreData, CargoJsonConvert, CargoJsonData, ColunasAbsenteismoEnum, Departamento, DepartamentoBase, DepartamentoElasticConvert, DepartamentoElasticSource, DepartamentoFireConvert, DepartamentoFirestoreData, Dispositivo, DispositivoBase, DispositivoElasticConvert, DispositivoElasticSource, DispositivoFireConvert, DispositivoFirestoreData, Empresa, EmpresaBase, EmpresaElasticConvert, EmpresaElasticSource, EmpresaFeriado, EmpresaFeriadoBase, EmpresaFeriadoFireConvert, EmpresaFeriadoFirestoreData, EmpresaFireConvert, EmpresaFirestoreData, Endereco, EnumAuditoriaModificadorTipo, EnumConfiguracaoTipoFaltaJornada, EnumEmpresasConfiguracaoNome, EnumExcecaoStatus, EnumExcecaoTipo, EnumFormatoArquivo, EnumStatusHistoricoRelatorioPontoApp, EnumStatusHistoricoRelatorioPontoAppLog, EnumStatusRelatorio, EnumTipoRelatorio, Escala, EscalaBase, EscalaFireConvert, EscalaFirestoreData, EscalaHelpers, Evento, EventoBase, EventoElasticConvert, EventoElasticSource, EventoFireConvert, EventoFirestoreData, Excecao, ExportarRelatorioRequest, ExportarRelatorioResponse, FaixaHoraExtraDiasSemana, FaixaHoraExtraDiferenciada, Feriado, FeriadoBase, FeriadoFireConvert, FeriadoFirestoreData, FeriadoJsonConvert, FeriadoJsonData, FeriadoTipoEnum, HistoricoRelatorioPontoApp, HistoricoRelatorioPontoAppBase, HistoricoRelatorioPontoAppElasticConvert, HistoricoRelatorioPontoAppElasticData, HistoricoRelatorioPontoAppFireConvert, HistoricoRelatorioPontoAppFirestoreData, HistoricoRelatorioPontoAppLog, HistoricoRelatorioPontoAppLogAppInfo, HistoricoRelatorioPontoAppLogBase, HistoricoRelatorioPontoAppLogFireConvert, HistoricoRelatorioPontoAppLogFirestoreData, IEmpresasEcontador, IEscalaRegimeCompensacao, IExcecao, IntegracaoDominio, IUsuarioStatusProgramado, Lancamento, LancamentoBase, LancamentoElasticConvert, LancamentoElasticSource, LancamentoFireConvert, LancamentoFirestoreData, LancamentoIntegracaoTipoEnum, LancamentoJsonConvert, LancamentoJsonData, LancamentoPeriodo, LancamentoPeriodoBase, LancamentoStatusEnum, ModeloAbsenteismo, ModeloFaixaHoraExtra, ModeloFaixaHoraExtraBase, ModeloFaixaHoraExtraFireConvert, ModeloFaixaHoraExtraFirestoreData, NiveisDeFaixaDeHorasExtras, OcorrenciaFrequenciaCopiaEmDocumento, OcorrenciaFrequenciaRelacaoJornadas, OcorrenciaFrequenciaRelacaoJornadasValue, OnCallBuscarRelatorioAbsenteismoRequestModel, OnCallBuscarRelatorioAbsenteismoRequestModelBase, OnCallBuscarRelatorioAbsenteismoResponseModel, OnCallExportarRelatorioAbsenteismoRequestModel, OnCallExportarRelatorioAbsenteismoRequestModelBase, ParametrosEmpresa, PercentuaisBancoHoras, Perfil, PerfilBase, PerfilFireConvert, PerfilFirestoreData, RegimesCompensacaoEscala, RelatorioAbsenteismo, RelatorioAbsenteismoBase, RelatorioAbsenteismoDadosDiarios, RelatorioAbsenteismoDadosDiariosBase, SolicitacoesUsuario, SolicitacoesUsuarioBase, SolicitacoesUsuarioFireConvert, SolicitacoesUsuarioFirestoreData, StatusSolicitacaoUsuario, TipoAcaoLancamentoEnum, TipoAnexoExtensao, TipoDispositivo, TipoEventoFrequenciaEnum, TipoFaixaDeHorasExtras, TipoOcorrenciaFrequenciaEnum, TipoReferenciaVerificacaoLancamento, TipoSolicitacaoUsuario, ToleranciaIntervalosTipo, Usuario, UsuarioBase, UsuarioBeneficios, UsuarioElasticConvert, UsuarioElasticSource, UsuarioEnumParametrosTipoHorarioNoturno, UsuarioFireConvert, UsuarioFirestoreData, UsuarioIntegracao, UsuarioJsonConvert, UsuarioJsonData, UsuarioKeys, UsuarioParametros, UsuarioParametrosHorarioNoturno, UsuarioStatus, UsuarioStatusArray, UsuarioStatusProgramado, UsuarioTipoIntegracao, VerificacaoLancamento, VerificacaoLancamentoBase, VerificacaoLancamentoFireConvert, VerificacaoLancamentoFirestoreData, } from './models/index';
|
|
1
|
+
export { AuditoriaModificador, AuditoriaModificadorBase, AuditoriaModificadorFireConvert, AuditoriaModificadorFirestoreData, CamposFormulaDeCalculoAbsenteismoEnum, Cargo, CargoBase, CargoElasticConvert, CargoElasticSource, CargoFireConvert, CargoFirestoreData, CargoJsonConvert, CargoJsonData, ColunasAbsenteismoEnum, ConfiguracaoAvançadaTelaPerfilDeAcesso, ConfiguracaoTelaAjusteDeJornadas, Departamento, DepartamentoBase, DepartamentoElasticConvert, DepartamentoElasticSource, DepartamentoFireConvert, DepartamentoFirestoreData, Dispositivo, DispositivoBase, DispositivoElasticConvert, DispositivoElasticSource, DispositivoFireConvert, DispositivoFirestoreData, Empresa, EmpresaBase, EmpresaElasticConvert, EmpresaElasticSource, EmpresaFeriado, EmpresaFeriadoBase, EmpresaFeriadoFireConvert, EmpresaFeriadoFirestoreData, EmpresaFireConvert, EmpresaFirestoreData, Endereco, EnumAuditoriaModificadorTipo, EnumConfiguracaoTipoFaltaJornada, EnumEmpresasConfiguracaoNome, EnumExcecaoStatus, EnumExcecaoTipo, EnumFormatoArquivo, EnumStatusHistoricoRelatorioPontoApp, EnumStatusHistoricoRelatorioPontoAppLog, EnumStatusRelatorio, EnumTipoRelatorio, Escala, EscalaBase, EscalaFireConvert, EscalaFirestoreData, EscalaHelpers, Evento, EventoBase, EventoElasticConvert, EventoElasticSource, EventoFireConvert, EventoFirestoreData, Excecao, ExportarRelatorioRequest, ExportarRelatorioResponse, FaixaHoraExtraDiasSemana, FaixaHoraExtraDiferenciada, Feriado, FeriadoBase, FeriadoFireConvert, FeriadoFirestoreData, FeriadoJsonConvert, FeriadoJsonData, FeriadoTipoEnum, HistoricoRelatorioPontoApp, HistoricoRelatorioPontoAppBase, HistoricoRelatorioPontoAppElasticConvert, HistoricoRelatorioPontoAppElasticData, HistoricoRelatorioPontoAppFireConvert, HistoricoRelatorioPontoAppFirestoreData, HistoricoRelatorioPontoAppLog, HistoricoRelatorioPontoAppLogAppInfo, HistoricoRelatorioPontoAppLogBase, HistoricoRelatorioPontoAppLogFireConvert, HistoricoRelatorioPontoAppLogFirestoreData, IEmpresasEcontador, IEscalaRegimeCompensacao, IExcecao, IntegracaoDominio, IUsuarioStatusProgramado, Lancamento, LancamentoBase, LancamentoElasticConvert, LancamentoElasticSource, LancamentoFireConvert, LancamentoFirestoreData, LancamentoIntegracaoTipoEnum, LancamentoJsonConvert, LancamentoJsonData, LancamentoPeriodo, LancamentoPeriodoBase, LancamentoStatusEnum, ModeloAbsenteismo, ModeloFaixaHoraExtra, ModeloFaixaHoraExtraBase, ModeloFaixaHoraExtraFireConvert, ModeloFaixaHoraExtraFirestoreData, NiveisDeFaixaDeHorasExtras, OcorrenciaFrequenciaCopiaEmDocumento, OcorrenciaFrequenciaRelacaoJornadas, OcorrenciaFrequenciaRelacaoJornadasValue, OnCallBuscarRelatorioAbsenteismoRequestModel, OnCallBuscarRelatorioAbsenteismoRequestModelBase, OnCallBuscarRelatorioAbsenteismoResponseModel, OnCallExportarRelatorioAbsenteismoRequestModel, OnCallExportarRelatorioAbsenteismoRequestModelBase, ParametrosEmpresa, PercentuaisBancoHoras, Perfil, PerfilBase, PerfilFireConvert, PerfilFirestoreData, RegimesCompensacaoEscala, RelatorioAbsenteismo, RelatorioAbsenteismoBase, RelatorioAbsenteismoDadosDiarios, RelatorioAbsenteismoDadosDiariosBase, SolicitacoesUsuario, SolicitacoesUsuarioBase, SolicitacoesUsuarioFireConvert, SolicitacoesUsuarioFirestoreData, StatusSolicitacaoUsuario, TipoAcaoLancamentoEnum, TipoAnexoExtensao, TipoDispositivo, TipoEventoFrequenciaEnum, TipoFaixaDeHorasExtras, TipoOcorrenciaFrequenciaEnum, TipoReferenciaVerificacaoLancamento, TipoSolicitacaoUsuario, ToleranciaIntervalosTipo, Usuario, UsuarioBase, UsuarioBeneficios, UsuarioElasticConvert, UsuarioElasticSource, UsuarioEnumParametrosTipoHorarioNoturno, UsuarioFireConvert, UsuarioFirestoreData, UsuarioIntegracao, UsuarioJsonConvert, UsuarioJsonData, UsuarioKeys, UsuarioParametros, UsuarioParametrosHorarioNoturno, UsuarioStatus, UsuarioStatusArray, UsuarioStatusProgramado, UsuarioTipoIntegracao, VerificacaoLancamento, VerificacaoLancamentoBase, VerificacaoLancamentoFireConvert, VerificacaoLancamentoFirestoreData, } from './models/index';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DocumentReference } from '@google-cloud/firestore';
|
|
2
2
|
import { FirebaseDocumentReferenceGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
3
|
import { AuditoriaModificador } from '../auditoria/modificador';
|
|
4
|
+
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
4
5
|
export * from './perfil-fire-convert';
|
|
5
6
|
export declare enum Telas {
|
|
6
7
|
INICIO = "INICIO",
|
|
@@ -23,7 +24,10 @@ export declare enum Telas {
|
|
|
23
24
|
SOLICITACOES_COLABS = "SOLICITACOES_COLABS",
|
|
24
25
|
EXPORTAR_DADOS = "EXPORTAR_DADOS",
|
|
25
26
|
IMPORTAR_MARCACOES = "IMPORTAR_MARCACOES",
|
|
27
|
+
IA_ESTRATEGICA = "IA_ESTRATEGICA",
|
|
26
28
|
AUDITOR_IA_MARCACOES = "AUDITOR_IA_MARCACOES",
|
|
29
|
+
FERIAS_FOLGAS = "FERIAS_FOLGAS",
|
|
30
|
+
GESTAO_ESCALAS = "GESTAO_ESCALAS",
|
|
27
31
|
FOLHA_PONTO = "FOLHA_PONTO",
|
|
28
32
|
RELATORIOS_PONTO = "RELATORIOS_PONTO",
|
|
29
33
|
RELATORIOS_SALDOS = "RELATORIOS_SALDOS",
|
|
@@ -46,6 +50,7 @@ export interface PerfilBase {
|
|
|
46
50
|
modificador?: AuditoriaModificador;
|
|
47
51
|
nome: string;
|
|
48
52
|
telas: Telas[];
|
|
53
|
+
configuracoes_telas?: Partial<Record<Telas, ConfiguracaoAvançadaTelaPerfilDeAcesso>>;
|
|
49
54
|
}
|
|
50
55
|
export declare class Perfil implements PerfilBase {
|
|
51
56
|
uid?: string;
|
|
@@ -58,5 +63,16 @@ export declare class Perfil implements PerfilBase {
|
|
|
58
63
|
modificador?: AuditoriaModificador;
|
|
59
64
|
nome: string;
|
|
60
65
|
telas: Telas[];
|
|
61
|
-
|
|
66
|
+
configuracoes_telas?: Partial<Record<Telas, ConfiguracaoAvançadaTelaPerfilDeAcesso>>;
|
|
67
|
+
constructor(perfilPayload?: Partial<Perfil>);
|
|
68
|
+
}
|
|
69
|
+
export interface ConfiguracaoAvançadaTelaPerfilDeAcesso {
|
|
70
|
+
criacao?: boolean;
|
|
71
|
+
edicao?: boolean;
|
|
72
|
+
leitura?: boolean;
|
|
73
|
+
configuracoes_especificas?: ConfiguracaoTelaAjusteDeJornadas;
|
|
74
|
+
}
|
|
75
|
+
export interface ConfiguracaoTelaAjusteDeJornadas {
|
|
76
|
+
bloquear_exclusao_alteracao_marcacoes: boolean;
|
|
77
|
+
ocorrencias_permitidas: TipoOcorrenciaFrequenciaEnum[];
|
|
62
78
|
}
|
|
@@ -47,9 +47,12 @@ var Telas;
|
|
|
47
47
|
Telas["IMPORTAR_MARCACOES"] = "IMPORTAR_MARCACOES";
|
|
48
48
|
// Frequência -->
|
|
49
49
|
// <-- Segurança
|
|
50
|
+
Telas["IA_ESTRATEGICA"] = "IA_ESTRATEGICA";
|
|
50
51
|
Telas["AUDITOR_IA_MARCACOES"] = "AUDITOR_IA_MARCACOES";
|
|
52
|
+
Telas["FERIAS_FOLGAS"] = "FERIAS_FOLGAS";
|
|
53
|
+
Telas["GESTAO_ESCALAS"] = "GESTAO_ESCALAS";
|
|
51
54
|
// Segurança -->
|
|
52
|
-
//
|
|
55
|
+
// <-- Relatorios
|
|
53
56
|
Telas["FOLHA_PONTO"] = "FOLHA_PONTO";
|
|
54
57
|
Telas["RELATORIOS_PONTO"] = "RELATORIOS_PONTO";
|
|
55
58
|
Telas["RELATORIOS_SALDOS"] = "RELATORIOS_SALDOS";
|
|
@@ -57,7 +60,7 @@ var Telas;
|
|
|
57
60
|
Telas["RELATORIOS_USUARIOS"] = "RELATORIOS_USUARIOS";
|
|
58
61
|
Telas["RELATORIOS_ABSENTEISMO"] = "RELATORIOS_ABSENTEISMO";
|
|
59
62
|
Telas["RELATORIOS_ARQUIVOS_GERADOS"] = "RELATORIOS_ARQUIVOS_GERADOS";
|
|
60
|
-
//
|
|
63
|
+
// Relatorios -->
|
|
61
64
|
// <-- Outros
|
|
62
65
|
Telas["PARAMETROS_GERAIS"] = "PARAMETROS_GERAIS";
|
|
63
66
|
Telas["ACESSOS"] = "ACESSOS";
|
|
@@ -66,59 +69,12 @@ var Telas;
|
|
|
66
69
|
Telas["INTEGRACAO_API_FLIT"] = "INTEGRACAO_API_FLIT";
|
|
67
70
|
// Outros -->
|
|
68
71
|
})(Telas = exports.Telas || (exports.Telas = {}));
|
|
69
|
-
exports.TODAS_TELAS =
|
|
70
|
-
// <-- Favoritos
|
|
71
|
-
Telas.INICIO,
|
|
72
|
-
Telas.DASHBOARD,
|
|
73
|
-
// Favoritos -->
|
|
74
|
-
// <-- Cadastros
|
|
75
|
-
Telas.CADASTROS_GERAIS,
|
|
76
|
-
Telas.CADASTROS_EMPRESAS,
|
|
77
|
-
Telas.CADASTROS_CARGOS,
|
|
78
|
-
Telas.CADASTROS_DEPARTAMENTOS,
|
|
79
|
-
Telas.CADASTROS_PERIMETROS,
|
|
80
|
-
Telas.CADASTROS_OCORRENCIAS,
|
|
81
|
-
Telas.CADASTROS_FAIXAS_HORAS_EXTRAS,
|
|
82
|
-
Telas.CADASTROS_ESCALAS,
|
|
83
|
-
Telas.CADASTROS_COLABORADORES,
|
|
84
|
-
Telas.CADASTROS_FERIADOS,
|
|
85
|
-
Telas.CADASTROS_DISPOSITIVOS,
|
|
86
|
-
// <-- Cadastros já em novo formato
|
|
87
|
-
// Cadastros já em novo formato -->
|
|
88
|
-
// Cadastros -->
|
|
89
|
-
// <-- Frequência
|
|
90
|
-
Telas.EXCECOES,
|
|
91
|
-
Telas.LISTAGEM_MARCACOES,
|
|
92
|
-
Telas.LANCAMENTOS,
|
|
93
|
-
Telas.SOLICITACOES_COLABS,
|
|
94
|
-
Telas.AJUSTAR_JORNADAS,
|
|
95
|
-
Telas.EXPORTAR_DADOS,
|
|
96
|
-
Telas.IMPORTAR_MARCACOES,
|
|
97
|
-
// Frequência -->
|
|
98
|
-
// #region Relatorios
|
|
99
|
-
Telas.FOLHA_PONTO,
|
|
100
|
-
Telas.RELATORIOS_PONTO,
|
|
101
|
-
Telas.RELATORIOS_SALDOS,
|
|
102
|
-
Telas.RELATORIOS_SALDOS_ACUMULADOS,
|
|
103
|
-
Telas.RELATORIOS_USUARIOS,
|
|
104
|
-
Telas.RELATORIOS_ABSENTEISMO,
|
|
105
|
-
Telas.RELATORIOS_ARQUIVOS_GERADOS,
|
|
106
|
-
// #endregion
|
|
107
|
-
// <-- Segurança
|
|
108
|
-
Telas.AUDITOR_IA_MARCACOES,
|
|
109
|
-
// Segurança -->
|
|
110
|
-
// <-- Outros
|
|
111
|
-
Telas.PARAMETROS_GERAIS,
|
|
112
|
-
Telas.ACESSOS,
|
|
113
|
-
Telas.AUDITORIA,
|
|
114
|
-
Telas.INTEGRACAO_ECONTADOR_ALTERDATA,
|
|
115
|
-
Telas.INTEGRACAO_API_FLIT,
|
|
116
|
-
// Outros -->
|
|
117
|
-
];
|
|
72
|
+
exports.TODAS_TELAS = Object.values(Telas);
|
|
118
73
|
var Perfil = /** @class */ (function () {
|
|
119
74
|
// #endregion
|
|
120
75
|
function Perfil(perfilPayload) {
|
|
121
|
-
|
|
76
|
+
if (perfilPayload === void 0) { perfilPayload = {}; }
|
|
77
|
+
var _a, _b, _c, _d;
|
|
122
78
|
this.cargos_ref = Array.isArray(perfilPayload.cargos_ref)
|
|
123
79
|
? perfilPayload.cargos_ref
|
|
124
80
|
: [];
|
|
@@ -132,6 +88,7 @@ var Perfil = /** @class */ (function () {
|
|
|
132
88
|
this.modificador = (_b = perfilPayload.modificador) !== null && _b !== void 0 ? _b : undefined;
|
|
133
89
|
this.nome = (_c = perfilPayload.nome) !== null && _c !== void 0 ? _c : undefined;
|
|
134
90
|
this.telas = Array.isArray(perfilPayload.telas) ? perfilPayload.telas : [];
|
|
91
|
+
this.configuracoes_telas = (_d = perfilPayload.configuracoes_telas) !== null && _d !== void 0 ? _d : undefined;
|
|
135
92
|
}
|
|
136
93
|
return Perfil;
|
|
137
94
|
}());
|
|
@@ -18,6 +18,11 @@ export declare enum UsuarioEnumParametrosTipoHorarioNoturno {
|
|
|
18
18
|
PECUARIA = "PECUARIA",
|
|
19
19
|
CUSTOMIZADO = "CUSTOMIZADO"
|
|
20
20
|
}
|
|
21
|
+
export interface IAEstrategicaConfiguracao {
|
|
22
|
+
enviar_relatorio_whatsapp: boolean;
|
|
23
|
+
enviar_relatorio_email: boolean;
|
|
24
|
+
ativo: boolean;
|
|
25
|
+
}
|
|
21
26
|
export declare const UsuarioStatusArray: {
|
|
22
27
|
label: string;
|
|
23
28
|
key: UsuarioStatus;
|
|
@@ -45,14 +50,14 @@ export declare class Usuario {
|
|
|
45
50
|
perimetros?: any[];
|
|
46
51
|
perfil?: any;
|
|
47
52
|
};
|
|
48
|
-
cargo_ref
|
|
49
|
-
esocial_categoria_de_trabalhador_ref
|
|
50
|
-
conta_ref
|
|
51
|
-
departamento_ref
|
|
52
|
-
empresa_ref
|
|
53
|
-
escala_ref
|
|
54
|
-
perimetros_refs
|
|
55
|
-
perfil_ref
|
|
53
|
+
cargo_ref?: string;
|
|
54
|
+
esocial_categoria_de_trabalhador_ref?: string;
|
|
55
|
+
conta_ref?: string;
|
|
56
|
+
departamento_ref?: string;
|
|
57
|
+
empresa_ref?: string;
|
|
58
|
+
escala_ref?: string;
|
|
59
|
+
perimetros_refs?: string[];
|
|
60
|
+
perfil_ref?: string;
|
|
56
61
|
admissao: Date;
|
|
57
62
|
ativo: boolean;
|
|
58
63
|
avatar_atualizacao: Date;
|
|
@@ -86,6 +91,7 @@ export declare class Usuario {
|
|
|
86
91
|
status_data_fim: Date;
|
|
87
92
|
status_programado: UsuarioStatusProgramado;
|
|
88
93
|
telefone: string;
|
|
94
|
+
ia_estrategica_configuracao?: IAEstrategicaConfiguracao;
|
|
89
95
|
modificador: Partial<AuditoriaModificadorBase>;
|
|
90
96
|
constructor(usuarioPayload: Usuario);
|
|
91
97
|
}
|
|
@@ -50,7 +50,7 @@ exports.UsuarioStatusArray = [
|
|
|
50
50
|
];
|
|
51
51
|
var Usuario = /** @class */ (function () {
|
|
52
52
|
function Usuario(usuarioPayload) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21;
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22;
|
|
54
54
|
this._id = (_a = usuarioPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
55
55
|
this._path = (_b = usuarioPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
56
56
|
// Inicializa internos
|
|
@@ -112,6 +112,8 @@ var Usuario = /** @class */ (function () {
|
|
|
112
112
|
this.status_data_ini = (_19 = usuarioPayload.status_data_ini) !== null && _19 !== void 0 ? _19 : undefined;
|
|
113
113
|
this.status_programado = (_20 = usuarioPayload.status_programado) !== null && _20 !== void 0 ? _20 : undefined;
|
|
114
114
|
this.telefone = (_21 = usuarioPayload.telefone) !== null && _21 !== void 0 ? _21 : undefined;
|
|
115
|
+
this.ia_estrategica_configuracao =
|
|
116
|
+
(_22 = usuarioPayload.ia_estrategica_configuracao) !== null && _22 !== void 0 ? _22 : undefined;
|
|
115
117
|
}
|
|
116
118
|
return Usuario;
|
|
117
119
|
}());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase } from '.';
|
|
1
|
+
import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase, IAEstrategicaConfiguracao } from '.';
|
|
2
2
|
import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
|
|
3
3
|
import { Endereco } from '../shared';
|
|
4
4
|
export declare class UsuarioElasticSource implements UsuarioBase {
|
|
@@ -8,30 +8,46 @@ export declare class UsuarioElasticSource implements UsuarioBase {
|
|
|
8
8
|
i_path?: string;
|
|
9
9
|
i_type_sync?: string;
|
|
10
10
|
i_updated?: string;
|
|
11
|
-
esocial_categoria_de_trabalhador_ref
|
|
11
|
+
esocial_categoria_de_trabalhador_ref?: Partial<{
|
|
12
|
+
i_id: string;
|
|
12
13
|
i_path: string;
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
conta_ref?: Partial<{
|
|
17
|
+
i_id: string;
|
|
15
18
|
i_path: string;
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
perimetros_refs?: Partial<{
|
|
22
|
+
i_id: string;
|
|
18
23
|
i_path: string;
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}[]>;
|
|
26
|
+
cargo_ref?: Partial<{
|
|
27
|
+
i_id: string;
|
|
21
28
|
i_path: string;
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>;
|
|
31
|
+
departamento_ref?: Partial<{
|
|
32
|
+
i_id: string;
|
|
24
33
|
i_path: string;
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>;
|
|
36
|
+
empresa_ref?: Partial<{
|
|
37
|
+
i_id: string;
|
|
27
38
|
i_path: string;
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}>;
|
|
41
|
+
escala_ref?: Partial<{
|
|
42
|
+
i_id: string;
|
|
30
43
|
i_path: string;
|
|
31
|
-
|
|
32
|
-
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}>;
|
|
46
|
+
perfil_ref?: Partial<{
|
|
47
|
+
i_id: string;
|
|
33
48
|
i_path: string;
|
|
34
|
-
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>;
|
|
35
51
|
admissao: string;
|
|
36
52
|
ativo: boolean;
|
|
37
53
|
avatar_atualizacao: string;
|
|
@@ -77,6 +93,7 @@ export declare class UsuarioElasticSource implements UsuarioBase {
|
|
|
77
93
|
tipo: 'Ativo' | 'Demitido';
|
|
78
94
|
};
|
|
79
95
|
telefone: string;
|
|
96
|
+
ia_estrategica_configuracao?: IAEstrategicaConfiguracao;
|
|
80
97
|
modificador: Partial<AuditoriaModificadorFirestoreData>;
|
|
81
98
|
}
|
|
82
99
|
export declare abstract class UsuarioElasticConvert {
|
|
@@ -17,7 +17,7 @@ var UsuarioElasticConvert = /** @class */ (function () {
|
|
|
17
17
|
function UsuarioElasticConvert() {
|
|
18
18
|
}
|
|
19
19
|
UsuarioElasticConvert.fromElastic = function (doc) {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28;
|
|
21
21
|
var docData = doc;
|
|
22
22
|
return new _1.Usuario({
|
|
23
23
|
_id: (_a = doc === null || doc === void 0 ? void 0 : doc.i_id) !== null && _a !== void 0 ? _a : null,
|
|
@@ -142,14 +142,21 @@ var UsuarioElasticConvert = /** @class */ (function () {
|
|
|
142
142
|
}
|
|
143
143
|
: null,
|
|
144
144
|
telefone: string_helper_1.StringHelper.trim(docData.telefone, null) || null,
|
|
145
|
+
ia_estrategica_configuracao: (docData === null || docData === void 0 ? void 0 : docData.ia_estrategica_configuracao)
|
|
146
|
+
? {
|
|
147
|
+
ativo: boolean_helper_1.BooleanHelper.check((_12 = docData.ia_estrategica_configuracao) === null || _12 === void 0 ? void 0 : _12.ativo, false),
|
|
148
|
+
enviar_relatorio_email: boolean_helper_1.BooleanHelper.check((_13 = docData.ia_estrategica_configuracao) === null || _13 === void 0 ? void 0 : _13.enviar_relatorio_email, false),
|
|
149
|
+
enviar_relatorio_whatsapp: boolean_helper_1.BooleanHelper.check((_14 = docData.ia_estrategica_configuracao) === null || _14 === void 0 ? void 0 : _14.enviar_relatorio_whatsapp, false),
|
|
150
|
+
}
|
|
151
|
+
: undefined,
|
|
145
152
|
modificador: docData.modificador
|
|
146
153
|
? (0, lodash_1.omitBy)({
|
|
147
|
-
id: (
|
|
148
|
-
ref: (
|
|
149
|
-
tipo: (
|
|
150
|
-
nome: (
|
|
151
|
-
documento: (
|
|
152
|
-
email: (
|
|
154
|
+
id: (_17 = (_16 = (_15 = docData.modificador) === null || _15 === void 0 ? void 0 : _15.ref) === null || _16 === void 0 ? void 0 : _16.id) !== null && _17 !== void 0 ? _17 : null,
|
|
155
|
+
ref: (_20 = (_19 = (_18 = docData.modificador) === null || _18 === void 0 ? void 0 : _18.ref) === null || _19 === void 0 ? void 0 : _19.path) !== null && _20 !== void 0 ? _20 : null,
|
|
156
|
+
tipo: (_22 = (_21 = docData.modificador) === null || _21 === void 0 ? void 0 : _21.tipo) !== null && _22 !== void 0 ? _22 : null,
|
|
157
|
+
nome: (_24 = (_23 = docData.modificador) === null || _23 === void 0 ? void 0 : _23.nome) !== null && _24 !== void 0 ? _24 : null,
|
|
158
|
+
documento: (_26 = (_25 = docData.modificador) === null || _25 === void 0 ? void 0 : _25.documento) !== null && _26 !== void 0 ? _26 : null,
|
|
159
|
+
email: (_28 = (_27 = docData.modificador) === null || _27 === void 0 ? void 0 : _27.email) !== null && _28 !== void 0 ? _28 : null,
|
|
153
160
|
}, lodash_1.isUndefined)
|
|
154
161
|
: undefined,
|
|
155
162
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase } from '.';
|
|
1
|
+
import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase, IAEstrategicaConfiguracao } from '.';
|
|
2
2
|
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
3
|
import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
|
|
4
4
|
import { Endereco } from '../shared';
|
|
@@ -54,6 +54,7 @@ export declare class UsuarioFirestoreData implements UsuarioBase {
|
|
|
54
54
|
tipo: 'Ativo' | 'Demitido';
|
|
55
55
|
};
|
|
56
56
|
telefone: string;
|
|
57
|
+
ia_estrategica_configuracao?: IAEstrategicaConfiguracao;
|
|
57
58
|
modificador: AuditoriaModificadorFirestoreData;
|
|
58
59
|
}
|
|
59
60
|
export declare abstract class UsuarioFireConvert {
|
|
@@ -16,7 +16,7 @@ var UsuarioFireConvert = /** @class */ (function () {
|
|
|
16
16
|
function UsuarioFireConvert() {
|
|
17
17
|
}
|
|
18
18
|
UsuarioFireConvert.fromFirestore = function (doc) {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39;
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42;
|
|
20
20
|
var d = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
21
21
|
return new _1.Usuario({
|
|
22
22
|
_id: (_b = doc === null || doc === void 0 ? void 0 : doc.id) !== null && _b !== void 0 ? _b : null,
|
|
@@ -136,14 +136,21 @@ var UsuarioFireConvert = /** @class */ (function () {
|
|
|
136
136
|
}
|
|
137
137
|
: null,
|
|
138
138
|
telefone: string_helper_1.StringHelper.trim(d.telefone, null),
|
|
139
|
+
ia_estrategica_configuracao: (d === null || d === void 0 ? void 0 : d.ia_estrategica_configuracao)
|
|
140
|
+
? {
|
|
141
|
+
ativo: boolean_helper_1.BooleanHelper.check((_26 = d.ia_estrategica_configuracao) === null || _26 === void 0 ? void 0 : _26.ativo, false),
|
|
142
|
+
enviar_relatorio_email: boolean_helper_1.BooleanHelper.check((_27 = d.ia_estrategica_configuracao) === null || _27 === void 0 ? void 0 : _27.enviar_relatorio_email, false),
|
|
143
|
+
enviar_relatorio_whatsapp: boolean_helper_1.BooleanHelper.check((_28 = d.ia_estrategica_configuracao) === null || _28 === void 0 ? void 0 : _28.enviar_relatorio_whatsapp, false),
|
|
144
|
+
}
|
|
145
|
+
: undefined,
|
|
139
146
|
modificador: d.modificador
|
|
140
147
|
? (0, lodash_1.omitBy)({
|
|
141
|
-
id: (
|
|
142
|
-
ref: (
|
|
143
|
-
tipo: (
|
|
144
|
-
nome: (
|
|
145
|
-
documento: (
|
|
146
|
-
email: (
|
|
148
|
+
id: (_31 = (_30 = (_29 = d.modificador) === null || _29 === void 0 ? void 0 : _29.ref) === null || _30 === void 0 ? void 0 : _30.id) !== null && _31 !== void 0 ? _31 : null,
|
|
149
|
+
ref: (_34 = (_33 = (_32 = d.modificador) === null || _32 === void 0 ? void 0 : _32.ref) === null || _33 === void 0 ? void 0 : _33.path) !== null && _34 !== void 0 ? _34 : null,
|
|
150
|
+
tipo: (_36 = (_35 = d.modificador) === null || _35 === void 0 ? void 0 : _35.tipo) !== null && _36 !== void 0 ? _36 : null,
|
|
151
|
+
nome: (_38 = (_37 = d.modificador) === null || _37 === void 0 ? void 0 : _37.nome) !== null && _38 !== void 0 ? _38 : null,
|
|
152
|
+
documento: (_40 = (_39 = d.modificador) === null || _39 === void 0 ? void 0 : _39.documento) !== null && _40 !== void 0 ? _40 : null,
|
|
153
|
+
email: (_42 = (_41 = d.modificador) === null || _41 === void 0 ? void 0 : _41.email) !== null && _42 !== void 0 ? _42 : null,
|
|
147
154
|
}, lodash_1.isUndefined)
|
|
148
155
|
: undefined,
|
|
149
156
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase } from '.';
|
|
1
|
+
import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase, IAEstrategicaConfiguracao } from '.';
|
|
2
2
|
import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
|
|
3
3
|
import { Endereco } from '../shared';
|
|
4
4
|
export declare class UsuarioJsonData implements UsuarioBase {
|
|
@@ -55,6 +55,7 @@ export declare class UsuarioJsonData implements UsuarioBase {
|
|
|
55
55
|
tipo: 'Ativo' | 'Demitido';
|
|
56
56
|
};
|
|
57
57
|
telefone: string;
|
|
58
|
+
ia_estrategica_configuracao: IAEstrategicaConfiguracao;
|
|
58
59
|
modificador: AuditoriaModificadorFirestoreData;
|
|
59
60
|
}
|
|
60
61
|
export declare abstract class UsuarioJsonConvert {
|
|
@@ -17,7 +17,7 @@ var UsuarioJsonConvert = /** @class */ (function () {
|
|
|
17
17
|
function UsuarioJsonConvert() {
|
|
18
18
|
}
|
|
19
19
|
UsuarioJsonConvert.toJson = function (usuario) {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41;
|
|
21
21
|
var usuarioJson = {
|
|
22
22
|
_id: (_a = usuario === null || usuario === void 0 ? void 0 : usuario._id) !== null && _a !== void 0 ? _a : null,
|
|
23
23
|
_path: (_b = usuario === null || usuario === void 0 ? void 0 : usuario._path) !== null && _b !== void 0 ? _b : null,
|
|
@@ -141,14 +141,21 @@ var UsuarioJsonConvert = /** @class */ (function () {
|
|
|
141
141
|
}
|
|
142
142
|
: null,
|
|
143
143
|
telefone: string_helper_1.StringHelper.trim(usuario.telefone, null) || null,
|
|
144
|
+
ia_estrategica_configuracao: (usuario === null || usuario === void 0 ? void 0 : usuario.ia_estrategica_configuracao)
|
|
145
|
+
? {
|
|
146
|
+
ativo: boolean_helper_1.BooleanHelper.check((_25 = usuario.ia_estrategica_configuracao) === null || _25 === void 0 ? void 0 : _25.ativo, false),
|
|
147
|
+
enviar_relatorio_email: boolean_helper_1.BooleanHelper.check((_26 = usuario.ia_estrategica_configuracao) === null || _26 === void 0 ? void 0 : _26.enviar_relatorio_email, false),
|
|
148
|
+
enviar_relatorio_whatsapp: boolean_helper_1.BooleanHelper.check((_27 = usuario.ia_estrategica_configuracao) === null || _27 === void 0 ? void 0 : _27.enviar_relatorio_whatsapp, false),
|
|
149
|
+
}
|
|
150
|
+
: undefined,
|
|
144
151
|
modificador: usuario.modificador
|
|
145
152
|
? (0, lodash_1.omitBy)({
|
|
146
|
-
id: (
|
|
147
|
-
ref: (
|
|
148
|
-
tipo: (
|
|
149
|
-
nome: (
|
|
150
|
-
documento: (
|
|
151
|
-
email: (
|
|
153
|
+
id: (_30 = (_29 = (_28 = usuario.modificador) === null || _28 === void 0 ? void 0 : _28.ref) === null || _29 === void 0 ? void 0 : _29.id) !== null && _30 !== void 0 ? _30 : null,
|
|
154
|
+
ref: (_33 = (_32 = (_31 = usuario.modificador) === null || _31 === void 0 ? void 0 : _31.ref) === null || _32 === void 0 ? void 0 : _32.path) !== null && _33 !== void 0 ? _33 : null,
|
|
155
|
+
tipo: (_35 = (_34 = usuario.modificador) === null || _34 === void 0 ? void 0 : _34.tipo) !== null && _35 !== void 0 ? _35 : null,
|
|
156
|
+
nome: (_37 = (_36 = usuario.modificador) === null || _36 === void 0 ? void 0 : _36.nome) !== null && _37 !== void 0 ? _37 : null,
|
|
157
|
+
documento: (_39 = (_38 = usuario.modificador) === null || _38 === void 0 ? void 0 : _38.documento) !== null && _39 !== void 0 ? _39 : null,
|
|
158
|
+
email: (_41 = (_40 = usuario.modificador) === null || _40 === void 0 ? void 0 : _40.email) !== null && _41 !== void 0 ? _41 : null,
|
|
152
159
|
}, lodash_1.isUndefined)
|
|
153
160
|
: undefined,
|
|
154
161
|
};
|