flit-models 3.3.47 → 3.3.49
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/index.js +44 -28
- package/lib/models/contas/dispositivo/dispositivo-elastic-convert.js +1 -1
- package/lib/models/contas/dispositivo/dispositivo-fire-convert.js +2 -2
- package/lib/models/contas/dispositivo/index.js +1 -1
- package/lib/models/contas/empresa/empresa-elastic-convert.js +1 -1
- package/lib/models/contas/empresa/empresa-fire-convert.js +1 -1
- package/lib/models/contas/escala/escala-fire-convert.d.ts +2 -1
- package/lib/models/contas/escala/escala-fire-convert.js +28 -26
- package/lib/models/contas/escala/index.d.ts +6 -0
- package/lib/models/contas/escala/index.js +8 -2
- package/lib/models/contas/lancamento/lancamento-elastic-convert.js +1 -1
- package/lib/models/contas/lancamento/lancamento-fire-convert.js +2 -2
- package/lib/models/contas/lancamento/lancamento-json-convert.js +2 -2
- package/lib/models/contas/shared/index.d.ts +8 -17
- package/lib/models/contas/usuario/index.d.ts +93 -110
- package/lib/models/contas/usuario/index.js +90 -102
- package/lib/models/contas/usuario/usuario-elastic-convert.d.ts +72 -47
- package/lib/models/contas/usuario/usuario-elastic-convert.js +11 -5
- package/lib/models/contas/usuario/usuario-fire-convert.d.ts +54 -44
- package/lib/models/contas/usuario/usuario-fire-convert.js +5 -5
- package/lib/models/contas/usuario/usuario-json-convert.d.ts +53 -43
- package/lib/models/contas/usuario/usuario-json-convert.js +39 -42
- package/lib/models/utils/number-helper.d.ts +1 -0
- package/lib/models/utils/number-helper.js +8 -2
- package/package.json +1 -1
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { AuditoriaModificadorBase } from '../auditoria/modificador';
|
|
2
|
-
import { Cargo } from '../cargo';
|
|
3
|
-
import { Departamento } from '../departamento';
|
|
4
|
-
import { Empresa } from '../empresa';
|
|
5
|
-
import { Escala } from '../escala';
|
|
6
|
-
import { Perfil } from '../perfis';
|
|
7
2
|
import { Endereco } from '../shared';
|
|
8
3
|
export * from './usuario-elastic-convert';
|
|
9
4
|
export * from './usuario-fire-convert';
|
|
10
5
|
export * from './usuario-json-convert';
|
|
11
6
|
export type UsuarioKeys = keyof Usuario;
|
|
12
|
-
export declare enum
|
|
7
|
+
export declare enum UsuarioStatus {
|
|
13
8
|
Afastado = "Afastado",
|
|
14
9
|
Ativo = "Ativo",
|
|
15
10
|
AguardandoAtivacao = "Aguardando Ativa\u00E7\u00E3o",
|
|
@@ -17,96 +12,84 @@ export declare enum StatusUsuario {
|
|
|
17
12
|
Ferias = "F\u00E9rias",
|
|
18
13
|
SuspensaoContrato = "Suspens\u00E3o de contrato"
|
|
19
14
|
}
|
|
20
|
-
export declare enum
|
|
15
|
+
export declare enum UsuarioEnumParametrosTipoHorarioNoturno {
|
|
21
16
|
URBANO = "URBANO",
|
|
22
17
|
RURAL = "RURAL",
|
|
23
18
|
PECUARIA = "PECUARIA",
|
|
24
19
|
CUSTOMIZADO = "CUSTOMIZADO"
|
|
25
20
|
}
|
|
26
|
-
export declare const
|
|
21
|
+
export declare const UsuarioStatusArray: {
|
|
27
22
|
label: string;
|
|
28
|
-
key:
|
|
23
|
+
key: UsuarioStatus;
|
|
29
24
|
}[];
|
|
30
25
|
export interface UsuarioStatusProgramado {
|
|
31
26
|
executado: boolean;
|
|
32
27
|
tipo: 'Ativo' | 'Demitido';
|
|
33
|
-
data_prevista:
|
|
28
|
+
data_prevista: Date;
|
|
34
29
|
}
|
|
35
|
-
export type UsuarioBase = Omit<
|
|
30
|
+
export type UsuarioBase = Omit<{
|
|
31
|
+
[key in keyof Usuario]: any;
|
|
32
|
+
}, '_id' | '_path' | '_joins' | '_avatarBlob' | '_avatarBlobThumbnail'>;
|
|
36
33
|
export declare class Usuario {
|
|
37
|
-
_id
|
|
38
|
-
_path
|
|
34
|
+
_id: string;
|
|
35
|
+
_path: string;
|
|
39
36
|
_avatarBlob?: Blob;
|
|
40
37
|
_avatarBlobThumbnail?: Blob;
|
|
41
|
-
_jornadaAtual?: any;
|
|
42
38
|
_joins?: {
|
|
43
|
-
cargo?:
|
|
44
|
-
esocial_categoria_de_trabalhador?:
|
|
39
|
+
cargo?: any;
|
|
40
|
+
esocial_categoria_de_trabalhador?: any;
|
|
45
41
|
conta?: any;
|
|
46
|
-
departamento?:
|
|
47
|
-
empresa?:
|
|
48
|
-
escala?:
|
|
42
|
+
departamento?: any;
|
|
43
|
+
empresa?: any;
|
|
44
|
+
escala?: any;
|
|
49
45
|
perimetros?: any[];
|
|
50
|
-
perfil?:
|
|
51
|
-
multiplosPerimetros?: any[];
|
|
46
|
+
perfil?: any;
|
|
52
47
|
};
|
|
53
|
-
cargo_ref
|
|
54
|
-
esocial_categoria_de_trabalhador_ref
|
|
55
|
-
conta_ref
|
|
56
|
-
departamento_ref
|
|
57
|
-
empresa_ref
|
|
58
|
-
escala_ref
|
|
59
|
-
perimetros_refs
|
|
60
|
-
perfil_ref
|
|
61
|
-
admissao
|
|
62
|
-
ativo
|
|
63
|
-
avatar_atualizacao
|
|
64
|
-
avatar_thumbnail_path
|
|
65
|
-
avatar_thumbnail_url
|
|
66
|
-
avatarUrl
|
|
67
|
-
beneficios
|
|
68
|
-
celular
|
|
69
|
-
cpf
|
|
70
|
-
data_atualizacao_doc
|
|
71
|
-
data_criacao_doc
|
|
72
|
-
desligamento
|
|
73
|
-
email
|
|
74
|
-
endereco
|
|
75
|
-
endereco_prestacao_diferente_empresa
|
|
76
|
-
endereco_prestacao
|
|
77
|
-
excluido
|
|
78
|
-
id_externo
|
|
79
|
-
integracao
|
|
80
|
-
interno
|
|
81
|
-
nascimento
|
|
82
|
-
nome
|
|
83
|
-
nomeCompleto
|
|
84
|
-
observacoes
|
|
85
|
-
parametros
|
|
86
|
-
pin
|
|
87
|
-
pis
|
|
88
|
-
sem_autenticacao
|
|
89
|
-
status
|
|
90
|
-
status_data_ini
|
|
91
|
-
status_data_fim
|
|
92
|
-
status_programado
|
|
93
|
-
telefone
|
|
94
|
-
modificador
|
|
95
|
-
constructor(usuarioPayload:
|
|
96
|
-
}
|
|
97
|
-
export declare class EsocialCategoriaDeTrabalhador {
|
|
98
|
-
_id: string;
|
|
99
|
-
_path: string;
|
|
100
|
-
codigo?: number;
|
|
101
|
-
descricao?: string;
|
|
102
|
-
grupo?: string;
|
|
103
|
-
constructor({ codigo, descricao, grupo, }: {
|
|
104
|
-
codigo?: number;
|
|
105
|
-
descricao?: string;
|
|
106
|
-
grupo?: string;
|
|
107
|
-
});
|
|
48
|
+
cargo_ref: string;
|
|
49
|
+
esocial_categoria_de_trabalhador_ref: string;
|
|
50
|
+
conta_ref: string;
|
|
51
|
+
departamento_ref: string;
|
|
52
|
+
empresa_ref: string;
|
|
53
|
+
escala_ref: string;
|
|
54
|
+
perimetros_refs: string[];
|
|
55
|
+
perfil_ref: string;
|
|
56
|
+
admissao: Date;
|
|
57
|
+
ativo: boolean;
|
|
58
|
+
avatar_atualizacao: Date;
|
|
59
|
+
avatar_thumbnail_path: string;
|
|
60
|
+
avatar_thumbnail_url: string;
|
|
61
|
+
avatarUrl: string;
|
|
62
|
+
beneficios: UsuarioBeneficios;
|
|
63
|
+
celular: string;
|
|
64
|
+
cpf: string;
|
|
65
|
+
data_atualizacao_doc: Date;
|
|
66
|
+
data_criacao_doc: Date;
|
|
67
|
+
desligamento: Date;
|
|
68
|
+
email: string;
|
|
69
|
+
endereco: Endereco;
|
|
70
|
+
endereco_prestacao_diferente_empresa: boolean;
|
|
71
|
+
endereco_prestacao: Endereco;
|
|
72
|
+
excluido: boolean;
|
|
73
|
+
id_externo: string;
|
|
74
|
+
integracao: UsuarioIntegracao;
|
|
75
|
+
interno: boolean;
|
|
76
|
+
nascimento: Date;
|
|
77
|
+
nome: string;
|
|
78
|
+
nomeCompleto: string;
|
|
79
|
+
observacoes: string;
|
|
80
|
+
parametros: UsuarioParametros;
|
|
81
|
+
pin: number;
|
|
82
|
+
pis: string;
|
|
83
|
+
sem_autenticacao: boolean;
|
|
84
|
+
status: UsuarioStatus;
|
|
85
|
+
status_data_ini: Date;
|
|
86
|
+
status_data_fim: Date;
|
|
87
|
+
status_programado: UsuarioStatusProgramado;
|
|
88
|
+
telefone: string;
|
|
89
|
+
modificador: Partial<AuditoriaModificadorBase>;
|
|
90
|
+
constructor(usuarioPayload: Usuario);
|
|
108
91
|
}
|
|
109
|
-
export declare enum
|
|
92
|
+
export declare enum UsuarioTipoIntegracao {
|
|
110
93
|
EPLUGIN = "EPLUGIN",
|
|
111
94
|
ECONTADOR = "ECONTADOR",
|
|
112
95
|
CONTROL_ID = "CONTROL_ID"
|
|
@@ -114,49 +97,49 @@ export declare enum EnumTipoIntegracao {
|
|
|
114
97
|
export interface IUsuarioStatusProgramado {
|
|
115
98
|
executado: boolean;
|
|
116
99
|
tipo: 'Ativo' | 'Demitido';
|
|
117
|
-
data_prevista:
|
|
100
|
+
data_prevista: Date;
|
|
118
101
|
}
|
|
119
|
-
export declare class
|
|
102
|
+
export declare class UsuarioIntegracao {
|
|
120
103
|
id: string;
|
|
121
104
|
id_externo: string;
|
|
122
|
-
lancamento_data_base:
|
|
123
|
-
lancamentos_refs:
|
|
124
|
-
tipo:
|
|
105
|
+
lancamento_data_base: Date;
|
|
106
|
+
lancamentos_refs: string[];
|
|
107
|
+
tipo: UsuarioTipoIntegracao;
|
|
125
108
|
constructor({ id, tipo }: {
|
|
126
109
|
id: string;
|
|
127
|
-
tipo:
|
|
110
|
+
tipo: UsuarioTipoIntegracao;
|
|
128
111
|
});
|
|
129
112
|
}
|
|
130
|
-
export declare class
|
|
131
|
-
vale_transporte
|
|
132
|
-
vale_refeicao
|
|
133
|
-
vale_alimentacao
|
|
134
|
-
constructor({ vale_transporte, vale_refeicao, vale_alimentacao, }:
|
|
113
|
+
export declare class UsuarioBeneficios {
|
|
114
|
+
vale_transporte: boolean;
|
|
115
|
+
vale_refeicao: boolean;
|
|
116
|
+
vale_alimentacao: boolean;
|
|
117
|
+
constructor({ vale_transporte, vale_refeicao, vale_alimentacao, }: UsuarioBeneficios);
|
|
135
118
|
}
|
|
136
|
-
export declare class
|
|
137
|
-
tipo:
|
|
119
|
+
export declare class UsuarioParametrosHorarioNoturno {
|
|
120
|
+
tipo: UsuarioEnumParametrosTipoHorarioNoturno;
|
|
138
121
|
inicio: string;
|
|
139
122
|
fim: string;
|
|
140
123
|
hora_reduzida_segundos: number;
|
|
141
|
-
constructor({ fim, hora_reduzida_segundos, inicio, tipo, }:
|
|
124
|
+
constructor({ fim, hora_reduzida_segundos, inicio, tipo, }: UsuarioParametrosHorarioNoturno);
|
|
142
125
|
}
|
|
143
|
-
export declare class
|
|
144
|
-
acessar_manager
|
|
145
|
-
cargo_confianca
|
|
146
|
-
codigo_externo
|
|
147
|
-
configuracao_tipo_falta_jornada
|
|
148
|
-
horario_noturno
|
|
149
|
-
horista
|
|
150
|
-
limite_minutos_interjornada
|
|
151
|
-
marca_ponto_apenas_online
|
|
152
|
-
marca_ponto_flit
|
|
153
|
-
marca_ponto_multi_empresa
|
|
154
|
-
marca_ponto_web
|
|
155
|
-
reconhecimento_facial_obrigatorio
|
|
156
|
-
reconhecimento_facial
|
|
157
|
-
regime_compensacao
|
|
158
|
-
marcacao_whatsapp
|
|
159
|
-
capturar_foto_marcacao_externa
|
|
160
|
-
capturar_localizacao_marcacao_externa
|
|
161
|
-
constructor({ acessar_manager, capturar_foto_marcacao_externa, capturar_localizacao_marcacao_externa, cargo_confianca, codigo_externo, configuracao_tipo_falta_jornada, horario_noturno, horista, limite_minutos_interjornada, marca_ponto_apenas_online, marca_ponto_flit, marca_ponto_multi_empresa, marca_ponto_web, marcacao_whatsapp, reconhecimento_facial_obrigatorio, reconhecimento_facial, regime_compensacao, }:
|
|
126
|
+
export declare class UsuarioParametros {
|
|
127
|
+
acessar_manager: boolean;
|
|
128
|
+
cargo_confianca: boolean;
|
|
129
|
+
codigo_externo: string;
|
|
130
|
+
configuracao_tipo_falta_jornada: string;
|
|
131
|
+
horario_noturno: UsuarioParametrosHorarioNoturno;
|
|
132
|
+
horista: boolean;
|
|
133
|
+
limite_minutos_interjornada: number;
|
|
134
|
+
marca_ponto_apenas_online: boolean;
|
|
135
|
+
marca_ponto_flit: boolean;
|
|
136
|
+
marca_ponto_multi_empresa: boolean;
|
|
137
|
+
marca_ponto_web: boolean;
|
|
138
|
+
reconhecimento_facial_obrigatorio: boolean;
|
|
139
|
+
reconhecimento_facial: boolean;
|
|
140
|
+
regime_compensacao: string;
|
|
141
|
+
marcacao_whatsapp: boolean;
|
|
142
|
+
capturar_foto_marcacao_externa: boolean;
|
|
143
|
+
capturar_localizacao_marcacao_externa: boolean;
|
|
144
|
+
constructor({ acessar_manager, capturar_foto_marcacao_externa, capturar_localizacao_marcacao_externa, cargo_confianca, codigo_externo, configuracao_tipo_falta_jornada, horario_noturno, horista, limite_minutos_interjornada, marca_ponto_apenas_online, marca_ponto_flit, marca_ponto_multi_empresa, marca_ponto_web, marcacao_whatsapp, reconhecimento_facial_obrigatorio, reconhecimento_facial, regime_compensacao, }: UsuarioParametros);
|
|
162
145
|
}
|
|
@@ -14,43 +14,43 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.UsuarioParametros = exports.UsuarioParametrosHorarioNoturno = exports.UsuarioBeneficios = exports.UsuarioIntegracao = exports.UsuarioTipoIntegracao = exports.Usuario = exports.UsuarioStatusArray = exports.UsuarioEnumParametrosTipoHorarioNoturno = exports.UsuarioStatus = void 0;
|
|
18
18
|
var lodash_1 = require("lodash");
|
|
19
19
|
var number_helper_1 = require("../../utils/number-helper");
|
|
20
20
|
var parametros_compartilhados_1 = require("../parametros_compartilhados");
|
|
21
21
|
__exportStar(require("./usuario-elastic-convert"), exports);
|
|
22
22
|
__exportStar(require("./usuario-fire-convert"), exports);
|
|
23
23
|
__exportStar(require("./usuario-json-convert"), exports);
|
|
24
|
-
var
|
|
25
|
-
(function (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
})(
|
|
33
|
-
var
|
|
34
|
-
(function (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})(
|
|
40
|
-
exports.
|
|
41
|
-
{ label:
|
|
42
|
-
{ label:
|
|
43
|
-
{ label: 'Desligado', key:
|
|
44
|
-
{ label: 'Aguardando Ativação', key:
|
|
45
|
-
{ label:
|
|
24
|
+
var UsuarioStatus;
|
|
25
|
+
(function (UsuarioStatus) {
|
|
26
|
+
UsuarioStatus["Afastado"] = "Afastado";
|
|
27
|
+
UsuarioStatus["Ativo"] = "Ativo";
|
|
28
|
+
UsuarioStatus["AguardandoAtivacao"] = "Aguardando Ativa\u00E7\u00E3o";
|
|
29
|
+
UsuarioStatus["Demitido"] = "Demitido";
|
|
30
|
+
UsuarioStatus["Ferias"] = "F\u00E9rias";
|
|
31
|
+
UsuarioStatus["SuspensaoContrato"] = "Suspens\u00E3o de contrato";
|
|
32
|
+
})(UsuarioStatus = exports.UsuarioStatus || (exports.UsuarioStatus = {}));
|
|
33
|
+
var UsuarioEnumParametrosTipoHorarioNoturno;
|
|
34
|
+
(function (UsuarioEnumParametrosTipoHorarioNoturno) {
|
|
35
|
+
UsuarioEnumParametrosTipoHorarioNoturno["URBANO"] = "URBANO";
|
|
36
|
+
UsuarioEnumParametrosTipoHorarioNoturno["RURAL"] = "RURAL";
|
|
37
|
+
UsuarioEnumParametrosTipoHorarioNoturno["PECUARIA"] = "PECUARIA";
|
|
38
|
+
UsuarioEnumParametrosTipoHorarioNoturno["CUSTOMIZADO"] = "CUSTOMIZADO";
|
|
39
|
+
})(UsuarioEnumParametrosTipoHorarioNoturno = exports.UsuarioEnumParametrosTipoHorarioNoturno || (exports.UsuarioEnumParametrosTipoHorarioNoturno = {}));
|
|
40
|
+
exports.UsuarioStatusArray = [
|
|
41
|
+
{ label: UsuarioStatus.Afastado, key: UsuarioStatus.Afastado },
|
|
42
|
+
{ label: UsuarioStatus.Ativo, key: UsuarioStatus.Ativo },
|
|
43
|
+
{ label: 'Desligado', key: UsuarioStatus.Demitido },
|
|
44
|
+
{ label: 'Aguardando Ativação', key: UsuarioStatus.AguardandoAtivacao },
|
|
45
|
+
{ label: UsuarioStatus.Ferias, key: UsuarioStatus.Ferias },
|
|
46
46
|
{
|
|
47
|
-
label:
|
|
48
|
-
key:
|
|
47
|
+
label: UsuarioStatus.SuspensaoContrato,
|
|
48
|
+
key: UsuarioStatus.SuspensaoContrato,
|
|
49
49
|
},
|
|
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
|
|
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;
|
|
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
|
|
@@ -61,110 +61,98 @@ var Usuario = /** @class */ (function () {
|
|
|
61
61
|
empresa: null,
|
|
62
62
|
escala: null,
|
|
63
63
|
esocial_categoria_de_trabalhador: null,
|
|
64
|
-
multiplosPerimetros: null,
|
|
65
64
|
perfil: null,
|
|
66
65
|
perimetros: null,
|
|
67
66
|
};
|
|
68
67
|
this._avatarBlob = (_d = usuarioPayload._avatarBlob) !== null && _d !== void 0 ? _d : null;
|
|
69
68
|
this._avatarBlobThumbnail = (_e = usuarioPayload._avatarBlobThumbnail) !== null && _e !== void 0 ? _e : null;
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
72
|
-
this.ativo = (_h = usuarioPayload.ativo) !== null && _h !== void 0 ? _h : undefined;
|
|
69
|
+
this.admissao = (_f = usuarioPayload.admissao) !== null && _f !== void 0 ? _f : undefined;
|
|
70
|
+
this.ativo = (_g = usuarioPayload.ativo) !== null && _g !== void 0 ? _g : undefined;
|
|
73
71
|
this.avatar_thumbnail_path =
|
|
74
|
-
(
|
|
72
|
+
(_h = usuarioPayload.avatar_thumbnail_path) !== null && _h !== void 0 ? _h : undefined;
|
|
75
73
|
this.avatar_thumbnail_url =
|
|
76
|
-
(
|
|
77
|
-
this.avatarUrl = (
|
|
78
|
-
this.cargo_ref = (
|
|
79
|
-
this.beneficios = (
|
|
80
|
-
this.celular = (
|
|
81
|
-
this.conta_ref = (
|
|
82
|
-
this.cpf = (
|
|
74
|
+
(_j = usuarioPayload.avatar_thumbnail_url) !== null && _j !== void 0 ? _j : undefined;
|
|
75
|
+
this.avatarUrl = (_k = usuarioPayload.avatarUrl) !== null && _k !== void 0 ? _k : undefined;
|
|
76
|
+
this.cargo_ref = (_l = usuarioPayload.cargo_ref) !== null && _l !== void 0 ? _l : undefined;
|
|
77
|
+
this.beneficios = (_m = usuarioPayload.beneficios) !== null && _m !== void 0 ? _m : undefined;
|
|
78
|
+
this.celular = (_o = usuarioPayload.celular) !== null && _o !== void 0 ? _o : undefined;
|
|
79
|
+
this.conta_ref = (_p = usuarioPayload.conta_ref) !== null && _p !== void 0 ? _p : undefined;
|
|
80
|
+
this.cpf = (_q = usuarioPayload.cpf) !== null && _q !== void 0 ? _q : undefined;
|
|
83
81
|
this.data_atualizacao_doc =
|
|
84
|
-
(
|
|
85
|
-
this.data_criacao_doc = (
|
|
86
|
-
this.departamento_ref = (
|
|
87
|
-
this.desligamento = (
|
|
88
|
-
this.email = (
|
|
89
|
-
this.empresa_ref = (
|
|
90
|
-
this.endereco = (
|
|
82
|
+
(_r = usuarioPayload.data_atualizacao_doc) !== null && _r !== void 0 ? _r : undefined;
|
|
83
|
+
this.data_criacao_doc = (_s = usuarioPayload.data_criacao_doc) !== null && _s !== void 0 ? _s : undefined;
|
|
84
|
+
this.departamento_ref = (_t = usuarioPayload.departamento_ref) !== null && _t !== void 0 ? _t : undefined;
|
|
85
|
+
this.desligamento = (_u = usuarioPayload.desligamento) !== null && _u !== void 0 ? _u : undefined;
|
|
86
|
+
this.email = (_v = usuarioPayload.email) !== null && _v !== void 0 ? _v : undefined;
|
|
87
|
+
this.empresa_ref = (_w = usuarioPayload.empresa_ref) !== null && _w !== void 0 ? _w : undefined;
|
|
88
|
+
this.endereco = (_x = usuarioPayload.endereco) !== null && _x !== void 0 ? _x : undefined;
|
|
91
89
|
this.endereco_prestacao_diferente_empresa =
|
|
92
|
-
(
|
|
93
|
-
this.endereco_prestacao = (
|
|
94
|
-
this.escala_ref = (
|
|
90
|
+
(_y = usuarioPayload.endereco_prestacao_diferente_empresa) !== null && _y !== void 0 ? _y : false;
|
|
91
|
+
this.endereco_prestacao = (_z = usuarioPayload.endereco_prestacao) !== null && _z !== void 0 ? _z : undefined;
|
|
92
|
+
this.escala_ref = (_0 = usuarioPayload.escala_ref) !== null && _0 !== void 0 ? _0 : undefined;
|
|
95
93
|
this.esocial_categoria_de_trabalhador_ref =
|
|
96
|
-
(
|
|
97
|
-
this.excluido = (
|
|
98
|
-
this.integracao = (
|
|
99
|
-
this.interno = (
|
|
100
|
-
this.modificador = (
|
|
101
|
-
this.nascimento = (
|
|
102
|
-
this.nome = (
|
|
103
|
-
this.nomeCompleto = (
|
|
104
|
-
this.observacoes = (
|
|
105
|
-
this.parametros = (
|
|
106
|
-
this.perfil_ref = (
|
|
107
|
-
this.perimetros_refs = (
|
|
108
|
-
this.pin = (
|
|
109
|
-
this.pis = (
|
|
110
|
-
this.sem_autenticacao = (
|
|
111
|
-
this.status = (
|
|
112
|
-
this.status_data_fim = (
|
|
113
|
-
this.status_data_ini = (
|
|
114
|
-
this.status_programado = (
|
|
115
|
-
this.telefone = (
|
|
94
|
+
(_1 = usuarioPayload.esocial_categoria_de_trabalhador_ref) !== null && _1 !== void 0 ? _1 : undefined;
|
|
95
|
+
this.excluido = (_2 = usuarioPayload.excluido) !== null && _2 !== void 0 ? _2 : undefined;
|
|
96
|
+
this.integracao = (_3 = usuarioPayload.integracao) !== null && _3 !== void 0 ? _3 : undefined;
|
|
97
|
+
this.interno = (_4 = usuarioPayload.interno) !== null && _4 !== void 0 ? _4 : undefined;
|
|
98
|
+
this.modificador = (_5 = usuarioPayload.modificador) !== null && _5 !== void 0 ? _5 : undefined;
|
|
99
|
+
this.nascimento = (_6 = usuarioPayload.nascimento) !== null && _6 !== void 0 ? _6 : undefined;
|
|
100
|
+
this.nome = (_7 = usuarioPayload.nome) !== null && _7 !== void 0 ? _7 : undefined;
|
|
101
|
+
this.nomeCompleto = (_8 = usuarioPayload.nomeCompleto) !== null && _8 !== void 0 ? _8 : undefined;
|
|
102
|
+
this.observacoes = (_9 = usuarioPayload.observacoes) !== null && _9 !== void 0 ? _9 : undefined;
|
|
103
|
+
this.parametros = (_10 = usuarioPayload.parametros) !== null && _10 !== void 0 ? _10 : undefined;
|
|
104
|
+
this.perfil_ref = (_11 = usuarioPayload.perfil_ref) !== null && _11 !== void 0 ? _11 : undefined;
|
|
105
|
+
this.perimetros_refs = (_12 = usuarioPayload.perimetros_refs) !== null && _12 !== void 0 ? _12 : undefined;
|
|
106
|
+
this.pin = (_13 = usuarioPayload.pin) !== null && _13 !== void 0 ? _13 : undefined;
|
|
107
|
+
this.pis = (_14 = usuarioPayload.pis) !== null && _14 !== void 0 ? _14 : undefined;
|
|
108
|
+
this.sem_autenticacao = (_15 = usuarioPayload.sem_autenticacao) !== null && _15 !== void 0 ? _15 : undefined;
|
|
109
|
+
this.status = (_16 = usuarioPayload.status) !== null && _16 !== void 0 ? _16 : undefined;
|
|
110
|
+
this.status_data_fim = (_17 = usuarioPayload.status_data_fim) !== null && _17 !== void 0 ? _17 : undefined;
|
|
111
|
+
this.status_data_ini = (_18 = usuarioPayload.status_data_ini) !== null && _18 !== void 0 ? _18 : undefined;
|
|
112
|
+
this.status_programado = (_19 = usuarioPayload.status_programado) !== null && _19 !== void 0 ? _19 : undefined;
|
|
113
|
+
this.telefone = (_20 = usuarioPayload.telefone) !== null && _20 !== void 0 ? _20 : undefined;
|
|
116
114
|
}
|
|
117
115
|
return Usuario;
|
|
118
116
|
}());
|
|
119
117
|
exports.Usuario = Usuario;
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}());
|
|
129
|
-
exports.EsocialCategoriaDeTrabalhador = EsocialCategoriaDeTrabalhador;
|
|
130
|
-
var EnumTipoIntegracao;
|
|
131
|
-
(function (EnumTipoIntegracao) {
|
|
132
|
-
EnumTipoIntegracao["EPLUGIN"] = "EPLUGIN";
|
|
133
|
-
EnumTipoIntegracao["ECONTADOR"] = "ECONTADOR";
|
|
134
|
-
EnumTipoIntegracao["CONTROL_ID"] = "CONTROL_ID";
|
|
135
|
-
})(EnumTipoIntegracao = exports.EnumTipoIntegracao || (exports.EnumTipoIntegracao = {}));
|
|
136
|
-
var Integracao = /** @class */ (function () {
|
|
137
|
-
function Integracao(_a) {
|
|
118
|
+
var UsuarioTipoIntegracao;
|
|
119
|
+
(function (UsuarioTipoIntegracao) {
|
|
120
|
+
UsuarioTipoIntegracao["EPLUGIN"] = "EPLUGIN";
|
|
121
|
+
UsuarioTipoIntegracao["ECONTADOR"] = "ECONTADOR";
|
|
122
|
+
UsuarioTipoIntegracao["CONTROL_ID"] = "CONTROL_ID";
|
|
123
|
+
})(UsuarioTipoIntegracao = exports.UsuarioTipoIntegracao || (exports.UsuarioTipoIntegracao = {}));
|
|
124
|
+
var UsuarioIntegracao = /** @class */ (function () {
|
|
125
|
+
function UsuarioIntegracao(_a) {
|
|
138
126
|
var id = _a.id, tipo = _a.tipo;
|
|
139
127
|
this.id = id !== null && id !== void 0 ? id : undefined;
|
|
140
128
|
this.tipo = tipo !== null && tipo !== void 0 ? tipo : undefined;
|
|
141
129
|
}
|
|
142
|
-
return
|
|
130
|
+
return UsuarioIntegracao;
|
|
143
131
|
}());
|
|
144
|
-
exports.
|
|
145
|
-
var
|
|
146
|
-
function
|
|
132
|
+
exports.UsuarioIntegracao = UsuarioIntegracao;
|
|
133
|
+
var UsuarioBeneficios = /** @class */ (function () {
|
|
134
|
+
function UsuarioBeneficios(_a) {
|
|
147
135
|
var vale_transporte = _a.vale_transporte, vale_refeicao = _a.vale_refeicao, vale_alimentacao = _a.vale_alimentacao;
|
|
148
136
|
this.vale_transporte = vale_transporte !== null && vale_transporte !== void 0 ? vale_transporte : false;
|
|
149
137
|
this.vale_refeicao = vale_refeicao !== null && vale_refeicao !== void 0 ? vale_refeicao : false;
|
|
150
138
|
this.vale_alimentacao = vale_alimentacao !== null && vale_alimentacao !== void 0 ? vale_alimentacao : false;
|
|
151
139
|
}
|
|
152
|
-
return
|
|
140
|
+
return UsuarioBeneficios;
|
|
153
141
|
}());
|
|
154
|
-
exports.
|
|
155
|
-
var
|
|
156
|
-
function
|
|
142
|
+
exports.UsuarioBeneficios = UsuarioBeneficios;
|
|
143
|
+
var UsuarioParametrosHorarioNoturno = /** @class */ (function () {
|
|
144
|
+
function UsuarioParametrosHorarioNoturno(_a) {
|
|
157
145
|
var fim = _a.fim, hora_reduzida_segundos = _a.hora_reduzida_segundos, inicio = _a.inicio, tipo = _a.tipo;
|
|
158
146
|
this.tipo = tipo !== null && tipo !== void 0 ? tipo : undefined;
|
|
159
147
|
this.inicio = inicio !== null && inicio !== void 0 ? inicio : undefined;
|
|
160
148
|
this.fim = fim !== null && fim !== void 0 ? fim : undefined;
|
|
161
149
|
this.hora_reduzida_segundos = hora_reduzida_segundos !== null && hora_reduzida_segundos !== void 0 ? hora_reduzida_segundos : undefined;
|
|
162
150
|
}
|
|
163
|
-
return
|
|
151
|
+
return UsuarioParametrosHorarioNoturno;
|
|
164
152
|
}());
|
|
165
|
-
exports.
|
|
166
|
-
var
|
|
167
|
-
function
|
|
153
|
+
exports.UsuarioParametrosHorarioNoturno = UsuarioParametrosHorarioNoturno;
|
|
154
|
+
var UsuarioParametros = /** @class */ (function () {
|
|
155
|
+
function UsuarioParametros(_a) {
|
|
168
156
|
var acessar_manager = _a.acessar_manager, capturar_foto_marcacao_externa = _a.capturar_foto_marcacao_externa, capturar_localizacao_marcacao_externa = _a.capturar_localizacao_marcacao_externa, cargo_confianca = _a.cargo_confianca, codigo_externo = _a.codigo_externo, configuracao_tipo_falta_jornada = _a.configuracao_tipo_falta_jornada, horario_noturno = _a.horario_noturno, horista = _a.horista, limite_minutos_interjornada = _a.limite_minutos_interjornada, marca_ponto_apenas_online = _a.marca_ponto_apenas_online, marca_ponto_flit = _a.marca_ponto_flit, marca_ponto_multi_empresa = _a.marca_ponto_multi_empresa, marca_ponto_web = _a.marca_ponto_web, marcacao_whatsapp = _a.marcacao_whatsapp, reconhecimento_facial_obrigatorio = _a.reconhecimento_facial_obrigatorio, reconhecimento_facial = _a.reconhecimento_facial, regime_compensacao = _a.regime_compensacao;
|
|
169
157
|
this.acessar_manager = acessar_manager !== null && acessar_manager !== void 0 ? acessar_manager : false;
|
|
170
158
|
this.codigo_externo = codigo_externo !== null && codigo_externo !== void 0 ? codigo_externo : undefined;
|
|
@@ -178,19 +166,19 @@ var ParametrosUsuario = /** @class */ (function () {
|
|
|
178
166
|
this.reconhecimento_facial_obrigatorio =
|
|
179
167
|
reconhecimento_facial_obrigatorio !== null && reconhecimento_facial_obrigatorio !== void 0 ? reconhecimento_facial_obrigatorio : false;
|
|
180
168
|
this.regime_compensacao = regime_compensacao !== null && regime_compensacao !== void 0 ? regime_compensacao : undefined;
|
|
181
|
-
this.limite_minutos_interjornada = number_helper_1.NumberHelper.
|
|
169
|
+
this.limite_minutos_interjornada = number_helper_1.NumberHelper.convertToInt(limite_minutos_interjornada);
|
|
182
170
|
this.configuracao_tipo_falta_jornada =
|
|
183
171
|
configuracao_tipo_falta_jornada !== null && configuracao_tipo_falta_jornada !== void 0 ? configuracao_tipo_falta_jornada : parametros_compartilhados_1.EnumConfiguracaoTipoFaltaJornada.FALTA_NORMAL;
|
|
184
172
|
this.horario_noturno =
|
|
185
173
|
(0, lodash_1.isNil)(horario_noturno) || (0, lodash_1.isEmpty)(horario_noturno)
|
|
186
174
|
? undefined
|
|
187
|
-
: new
|
|
175
|
+
: new UsuarioParametrosHorarioNoturno(horario_noturno);
|
|
188
176
|
this.capturar_foto_marcacao_externa =
|
|
189
177
|
capturar_foto_marcacao_externa !== null && capturar_foto_marcacao_externa !== void 0 ? capturar_foto_marcacao_externa : undefined;
|
|
190
178
|
this.capturar_localizacao_marcacao_externa =
|
|
191
179
|
capturar_localizacao_marcacao_externa !== null && capturar_localizacao_marcacao_externa !== void 0 ? capturar_localizacao_marcacao_externa : undefined;
|
|
192
180
|
this.marcacao_whatsapp = marcacao_whatsapp !== null && marcacao_whatsapp !== void 0 ? marcacao_whatsapp : false;
|
|
193
181
|
}
|
|
194
|
-
return
|
|
182
|
+
return UsuarioParametros;
|
|
195
183
|
}());
|
|
196
|
-
exports.
|
|
184
|
+
exports.UsuarioParametros = UsuarioParametros;
|