flit-modulo-exportacoes 2.0.49 → 2.0.50
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/dist/eventos-exportacoes-model.d.ts +11 -1
- package/dist/eventos-exportacoes-model.js +13 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -0
- package/dist/models.d.ts +3 -3
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ export declare enum EnumTipoEventosExportacoes {
|
|
|
2
2
|
Fortes = "FORTES",
|
|
3
3
|
Dexion = "DEXION",
|
|
4
4
|
Dominio = "DOMINIO",
|
|
5
|
-
|
|
5
|
+
Nasajon = "NASAJON",
|
|
6
6
|
Prosoft = "PROSOFT",
|
|
7
7
|
Questor = "QUESTOR",
|
|
8
8
|
NetSpeed = "NETSPEED",
|
|
@@ -13,6 +13,16 @@ export declare enum EnumFormaEnvioFaltasEventosExportacoes {
|
|
|
13
13
|
Horas = "HORAS",
|
|
14
14
|
Minutos = "MINUTOS"
|
|
15
15
|
}
|
|
16
|
+
export declare enum EnumPadraoFormaEnvioEventosSistemas {
|
|
17
|
+
Fortes = "HORAS",
|
|
18
|
+
Dexion = "HORAS",
|
|
19
|
+
Nasajon = "HORAS",
|
|
20
|
+
Questor = "HORAS",
|
|
21
|
+
NetSpeed = "DIAS",
|
|
22
|
+
Dominio = "MINUTOS",
|
|
23
|
+
Prosoft = "MINUTOS",
|
|
24
|
+
Alterdata = "MINUTOS"
|
|
25
|
+
}
|
|
16
26
|
export type PropsCodigosEventosExportacoes<T = any> = {
|
|
17
27
|
[Property in keyof CodigosEventosExportacoes]: T;
|
|
18
28
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnumFormaEnvioFaltasEventosExportacoes = exports.EnumTipoEventosExportacoes = void 0;
|
|
3
|
+
exports.EnumPadraoFormaEnvioEventosSistemas = exports.EnumFormaEnvioFaltasEventosExportacoes = exports.EnumTipoEventosExportacoes = void 0;
|
|
4
4
|
var EnumTipoEventosExportacoes;
|
|
5
5
|
(function (EnumTipoEventosExportacoes) {
|
|
6
6
|
EnumTipoEventosExportacoes["Fortes"] = "FORTES";
|
|
7
7
|
EnumTipoEventosExportacoes["Dexion"] = "DEXION";
|
|
8
8
|
EnumTipoEventosExportacoes["Dominio"] = "DOMINIO";
|
|
9
|
-
EnumTipoEventosExportacoes["
|
|
9
|
+
EnumTipoEventosExportacoes["Nasajon"] = "NASAJON";
|
|
10
10
|
EnumTipoEventosExportacoes["Prosoft"] = "PROSOFT";
|
|
11
11
|
EnumTipoEventosExportacoes["Questor"] = "QUESTOR";
|
|
12
12
|
EnumTipoEventosExportacoes["NetSpeed"] = "NETSPEED";
|
|
@@ -18,3 +18,14 @@ var EnumFormaEnvioFaltasEventosExportacoes;
|
|
|
18
18
|
EnumFormaEnvioFaltasEventosExportacoes["Horas"] = "HORAS";
|
|
19
19
|
EnumFormaEnvioFaltasEventosExportacoes["Minutos"] = "MINUTOS";
|
|
20
20
|
})(EnumFormaEnvioFaltasEventosExportacoes = exports.EnumFormaEnvioFaltasEventosExportacoes || (exports.EnumFormaEnvioFaltasEventosExportacoes = {}));
|
|
21
|
+
var EnumPadraoFormaEnvioEventosSistemas;
|
|
22
|
+
(function (EnumPadraoFormaEnvioEventosSistemas) {
|
|
23
|
+
EnumPadraoFormaEnvioEventosSistemas["Fortes"] = "HORAS";
|
|
24
|
+
EnumPadraoFormaEnvioEventosSistemas["Dexion"] = "HORAS";
|
|
25
|
+
EnumPadraoFormaEnvioEventosSistemas["Nasajon"] = "HORAS";
|
|
26
|
+
EnumPadraoFormaEnvioEventosSistemas["Questor"] = "HORAS";
|
|
27
|
+
EnumPadraoFormaEnvioEventosSistemas["NetSpeed"] = "DIAS";
|
|
28
|
+
EnumPadraoFormaEnvioEventosSistemas["Dominio"] = "MINUTOS";
|
|
29
|
+
EnumPadraoFormaEnvioEventosSistemas["Prosoft"] = "MINUTOS";
|
|
30
|
+
EnumPadraoFormaEnvioEventosSistemas["Alterdata"] = "MINUTOS";
|
|
31
|
+
})(EnumPadraoFormaEnvioEventosSistemas = exports.EnumPadraoFormaEnvioEventosSistemas || (exports.EnumPadraoFormaEnvioEventosSistemas = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client } from '@elastic/elasticsearch';
|
|
2
2
|
import { SearchHit } from '@elastic/elasticsearch/lib/api/types';
|
|
3
|
-
import { PayloadExportacaoPadrao, TipoEventoExportacao, TiposEventosExportar, ValoresEventosExportacao, ValorEventoExportacao,
|
|
3
|
+
import { PayloadExportacaoPadrao, TipoEventoExportacao, TiposEventosExportar, ValoresEventosExportacao, ValorEventoExportacao, ValorEventoExportacaoFaltaFeriado } from './models';
|
|
4
4
|
export declare function validarDadosPayload({ fn, data, validarCampoReferencia }: {
|
|
5
5
|
fn: () => Array<string>;
|
|
6
6
|
data: PayloadExportacaoPadrao;
|
|
@@ -16,5 +16,5 @@ export declare function calcularValoresExportacao({ contaId, dataFinal, dataInic
|
|
|
16
16
|
jornadas: Array<SearchHit<any>>;
|
|
17
17
|
eventosExportacao: Array<TipoEventoExportacao>;
|
|
18
18
|
}): Promise<ValoresEventosExportacao>;
|
|
19
|
-
export declare function retornaValorEvento(tipoEvento: TipoEventoExportacao, valoresEventos: ValoresEventosExportacao): ValorEventoExportacao |
|
|
19
|
+
export declare function retornaValorEvento(tipoEvento: TipoEventoExportacao, valoresEventos: ValoresEventosExportacao): ValorEventoExportacao | ValorEventoExportacaoFaltaFeriado;
|
|
20
20
|
export declare function processarTiposEventosExportacao(tiposEventos: Array<TiposEventosExportar>): Array<TipoEventoExportacao>;
|
package/dist/index.js
CHANGED
|
@@ -91,6 +91,7 @@ function aplicarFatorConversaoValoresEventos(valoresEventos) {
|
|
|
91
91
|
Minutos: (0, utils_2.arredondarTempoDecimal)(valoresEventos.ValorExtraDomingo.Minutos * 1, 1)
|
|
92
92
|
},
|
|
93
93
|
ValorExtraFeriado: {
|
|
94
|
+
Dias: (0, utils_2.arredondarTempoDecimal)(valoresEventos.ValorExtraFeriado.Dias * 1, 1),
|
|
94
95
|
Horas: (0, utils_2.arredondarTempoDecimal)(valoresEventos.ValorExtraFeriado.Horas * 1, 1),
|
|
95
96
|
Minutos: (0, utils_2.arredondarTempoDecimal)(valoresEventos.ValorExtraFeriado.Minutos * 1, 1)
|
|
96
97
|
},
|
|
@@ -247,6 +248,7 @@ async function calcularValoresExportacao({ contaId, dataFinal, dataInicial, elas
|
|
|
247
248
|
Minutos: 0
|
|
248
249
|
},
|
|
249
250
|
ValorExtraFeriado: {
|
|
251
|
+
Dias: 0,
|
|
250
252
|
Horas: 0,
|
|
251
253
|
Minutos: 0
|
|
252
254
|
},
|
|
@@ -355,6 +357,7 @@ async function calcularValoresExportacao({ contaId, dataFinal, dataInicial, elas
|
|
|
355
357
|
parametrosIntegracao: parametrosIntegracao,
|
|
356
358
|
tipoEventoExportacao: models_1.TipoEventoExportacao.HORA_EXTRA_FER
|
|
357
359
|
})) {
|
|
360
|
+
valoresEventos.ValorExtraFeriado.Dias += 1;
|
|
358
361
|
valoresEventos.ValorExtraFeriado.Horas += jornada.horas_extras ?? 0;
|
|
359
362
|
valoresEventos.ValorExtraFeriado.Minutos += (jornada.horas_extras ?? 0) * 60;
|
|
360
363
|
}
|
|
@@ -391,6 +394,7 @@ async function calcularValoresExportacao({ contaId, dataFinal, dataInicial, elas
|
|
|
391
394
|
parametrosIntegracao: parametrosIntegracao,
|
|
392
395
|
tipoEventoExportacao: models_1.TipoEventoExportacao.HORA_EXTRA_NOTURNA_FER
|
|
393
396
|
})) {
|
|
397
|
+
valoresEventos.ValorExtraFeriado.Dias += 1;
|
|
394
398
|
valoresEventos.ValorExtraNoturnoFeriado.Horas += jornada.horas_noturnas_extras ?? 0;
|
|
395
399
|
valoresEventos.ValorExtraNoturnoFeriado.Minutos += (jornada.horas_noturnas_extras ?? 0) * 60;
|
|
396
400
|
}
|
package/dist/models.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export interface ValorEventoExportacao {
|
|
|
113
113
|
*
|
|
114
114
|
* @interface ValoresEventosExportacao
|
|
115
115
|
*/
|
|
116
|
-
export interface
|
|
116
|
+
export interface ValorEventoExportacaoFaltaFeriado extends ValorEventoExportacao {
|
|
117
117
|
Dias: number;
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
@@ -137,18 +137,18 @@ export interface ValoresEventosExportacao {
|
|
|
137
137
|
ValorFaixa3: ValorEventoExportacao;
|
|
138
138
|
};
|
|
139
139
|
ValorExtraFolga: ValorEventoExportacao;
|
|
140
|
-
ValorFaltas: ValorEventoExportacaoFalta;
|
|
141
140
|
ValorExtraSegSex: ValorEventoExportacao;
|
|
142
141
|
ValorExtraSabado: ValorEventoExportacao;
|
|
143
142
|
ValorExtraDomingo: ValorEventoExportacao;
|
|
144
|
-
ValorExtraFeriado: ValorEventoExportacao;
|
|
145
143
|
ValorNoturnoTotal: ValorEventoExportacao;
|
|
146
144
|
ValorHorasTrabalhadas: ValorEventoExportacao;
|
|
147
145
|
ValorExtraIntrajornada: ValorEventoExportacao;
|
|
148
146
|
ValorExtraNoturnoFolga: ValorEventoExportacao;
|
|
147
|
+
ValorFaltas: ValorEventoExportacaoFaltaFeriado;
|
|
149
148
|
ValorExtraNoturnoSegSex: ValorEventoExportacao;
|
|
150
149
|
ValorExtraNoturnoSabado: ValorEventoExportacao;
|
|
151
150
|
ValorExtraNoturnoDomingo: ValorEventoExportacao;
|
|
152
151
|
ValorExtraNoturnoFeriado: ValorEventoExportacao;
|
|
152
|
+
ValorExtraFeriado: ValorEventoExportacaoFaltaFeriado;
|
|
153
153
|
ValorExtraIntrajornadaComReducao: ValorEventoExportacao;
|
|
154
154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flit-modulo-exportacoes",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.50",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"moment": "^2.30.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@elastic/elasticsearch": "^8.13.
|
|
18
|
+
"@elastic/elasticsearch": "^8.13.1",
|
|
19
19
|
"@types/luxon": "^3.4.2",
|
|
20
|
-
"flit-calcular-jornada": "^2.
|
|
20
|
+
"flit-calcular-jornada": "^2.2.3",
|
|
21
21
|
"prettier": "^3.2.5",
|
|
22
22
|
"tsc-alias": "^1.8.8",
|
|
23
23
|
"typescript": "^4.9.5"
|