flit-models 3.3.26 → 3.3.28
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 +3 -2
- package/lib/models/contas/departamento/departamento-elastic-convert.d.ts +16 -0
- package/lib/models/contas/departamento/departamento-elastic-convert.js +25 -0
- package/lib/models/contas/departamento/index.d.ts +7 -6
- package/lib/models/contas/departamento/index.js +13 -12
- package/lib/models/contas/lancamento/index.d.ts +6 -5
- package/lib/models/contas/lancamento/index.js +9 -7
- package/lib/models/contas/lancamento/lancamento-elastic-convert.d.ts +4 -3
- package/lib/models/contas/lancamento/lancamento-elastic-convert.js +8 -2
- package/lib/models/contas/lancamento/lancamento-fire-convert.d.ts +4 -3
- package/lib/models/contas/lancamento/lancamento-fire-convert.js +15 -4
- package/lib/models/contas/lancamento/lancamento-json-convert.d.ts +4 -3
- package/lib/models/contas/lancamento/lancamento-json-convert.js +15 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AuditoriaModificador, AuditoriaModificadorBase, AuditoriaModificadorFireConvert, AuditoriaModificadorFirestoreData, Cargo, CargoBase, CargoFireConvert, CargoFirestoreData, CargoElasticSource, CargoElasticConvert, CargoJsonData, CargoJsonConvert, Departamento, DepartamentoBase, DepartamentoFireConvert, DepartamentoFirestoreData, EmpresaFeriado, EmpresaFeriadoBase, EmpresaFeriadoFireConvert, EmpresaFeriadoFirestoreData, EnumAuditoriaModificadorTipo, EnumConfiguracaoTipoFaltaJornada, EnumEmpresasConfiguracaoNome, EnumExcecaoStatus, EnumExcecaoTipo, EnumFormatoArquivo, EnumStatusHistoricoRelatorioPontoApp, EnumStatusHistoricoRelatorioPontoAppLog, EnumStatusRelatorio, EnumTipoRelatorio, Escala, EscalaBase, EscalaFireConvert, EscalaFirestoreData, EscalaHelpers, Excecao, ExportarRelatorioRequest, ExportarRelatorioResponse, FaixaHoraExtraDiferenciada, Feriado, FeriadoBase, FeriadoFireConvert, FeriadoFirestoreData, FeriadoJsonConvert, FeriadoJsonData, FeriadoTipoEnum, HistoricoRelatorioPontoApp, HistoricoRelatorioPontoAppBase, HistoricoRelatorioPontoAppElasticConvert, HistoricoRelatorioPontoAppElasticData, HistoricoRelatorioPontoAppFireConvert, HistoricoRelatorioPontoAppFirestoreData, HistoricoRelatorioPontoAppLog, HistoricoRelatorioPontoAppLogAppInfo, HistoricoRelatorioPontoAppLogBase, HistoricoRelatorioPontoAppLogFireConvert, HistoricoRelatorioPontoAppLogFirestoreData, IExcecao, Lancamento, LancamentoBase, LancamentoElasticConvert, LancamentoElasticSource, LancamentoFireConvert, LancamentoFirestoreData, LancamentoIntegracaoTipoEnum, LancamentoJsonConvert, LancamentoJsonData, LancamentoPeriodo, LancamentoPeriodoBase, LancamentoStatusEnum, ModeloFaixaHoraExtra, ModeloFaixaHoraExtraBase, ModeloFaixaHoraExtraFireConvert, ModeloFaixaHoraExtraFirestoreData, NiveisDeFaixaDeHorasExtras, OcorrenciaFrequenciaCopiaEmDocumento, OcorrenciaFrequenciaRelacaoJornadas, OcorrenciaFrequenciaRelacaoJornadasValue, OnCallBuscarRelatorioAbsenteismoRequestModel, OnCallBuscarRelatorioAbsenteismoRequestModelBase, OnCallBuscarRelatorioAbsenteismoResponseModel, OnCallExportarRelatorioAbsenteismoRequestModel, OnCallExportarRelatorioAbsenteismoRequestModelBase, RegimesCompensacaoEscala, RelatorioAbsenteismo, RelatorioAbsenteismoBase, RelatorioAbsenteismoDadosDiarios, RelatorioAbsenteismoDadosDiariosBase, SolicitacoesUsuario, SolicitacoesUsuarioBase, SolicitacoesUsuarioFireConvert, SolicitacoesUsuarioFirestoreData, StatusSolicitacaoUsuario, TipoAcaoLancamentoEnum, TipoAnexoExtensao, TipoFaixaDeHorasExtras, TipoOcorrenciaFrequenciaEnum, TipoReferenciaVerificacaoLancamento, TipoSolicitacaoUsuario, VerificacaoLancamento, VerificacaoLancamentoBase, VerificacaoLancamentoFireConvert, VerificacaoLancamentoFirestoreData, Empresa, EmpresaBase, Endereco, ParametrosEmpresa, ToleranciaIntervalosTipo, EmpresaFireConvert, EmpresaElasticSource, EmpresaFirestoreData, PercentuaisBancoHoras, } from './models/index';
|
|
1
|
+
export { AuditoriaModificador, AuditoriaModificadorBase, AuditoriaModificadorFireConvert, AuditoriaModificadorFirestoreData, Cargo, CargoBase, CargoFireConvert, CargoFirestoreData, CargoElasticSource, CargoElasticConvert, CargoJsonData, CargoJsonConvert, Departamento, DepartamentoBase, DepartamentoFireConvert, DepartamentoFirestoreData, DepartamentoElasticConvert, DepartamentoElasticSource, EmpresaFeriado, EmpresaFeriadoBase, EmpresaFeriadoFireConvert, EmpresaFeriadoFirestoreData, EnumAuditoriaModificadorTipo, EnumConfiguracaoTipoFaltaJornada, EnumEmpresasConfiguracaoNome, EnumExcecaoStatus, EnumExcecaoTipo, EnumFormatoArquivo, EnumStatusHistoricoRelatorioPontoApp, EnumStatusHistoricoRelatorioPontoAppLog, EnumStatusRelatorio, EnumTipoRelatorio, Escala, EscalaBase, EscalaFireConvert, EscalaFirestoreData, EscalaHelpers, Excecao, ExportarRelatorioRequest, ExportarRelatorioResponse, FaixaHoraExtraDiferenciada, Feriado, FeriadoBase, FeriadoFireConvert, FeriadoFirestoreData, FeriadoJsonConvert, FeriadoJsonData, FeriadoTipoEnum, HistoricoRelatorioPontoApp, HistoricoRelatorioPontoAppBase, HistoricoRelatorioPontoAppElasticConvert, HistoricoRelatorioPontoAppElasticData, HistoricoRelatorioPontoAppFireConvert, HistoricoRelatorioPontoAppFirestoreData, HistoricoRelatorioPontoAppLog, HistoricoRelatorioPontoAppLogAppInfo, HistoricoRelatorioPontoAppLogBase, HistoricoRelatorioPontoAppLogFireConvert, HistoricoRelatorioPontoAppLogFirestoreData, IExcecao, Lancamento, LancamentoBase, LancamentoElasticConvert, LancamentoElasticSource, LancamentoFireConvert, LancamentoFirestoreData, LancamentoIntegracaoTipoEnum, LancamentoJsonConvert, LancamentoJsonData, LancamentoPeriodo, LancamentoPeriodoBase, LancamentoStatusEnum, ModeloFaixaHoraExtra, ModeloFaixaHoraExtraBase, ModeloFaixaHoraExtraFireConvert, ModeloFaixaHoraExtraFirestoreData, NiveisDeFaixaDeHorasExtras, OcorrenciaFrequenciaCopiaEmDocumento, OcorrenciaFrequenciaRelacaoJornadas, OcorrenciaFrequenciaRelacaoJornadasValue, OnCallBuscarRelatorioAbsenteismoRequestModel, OnCallBuscarRelatorioAbsenteismoRequestModelBase, OnCallBuscarRelatorioAbsenteismoResponseModel, OnCallExportarRelatorioAbsenteismoRequestModel, OnCallExportarRelatorioAbsenteismoRequestModelBase, RegimesCompensacaoEscala, RelatorioAbsenteismo, RelatorioAbsenteismoBase, RelatorioAbsenteismoDadosDiarios, RelatorioAbsenteismoDadosDiariosBase, SolicitacoesUsuario, SolicitacoesUsuarioBase, SolicitacoesUsuarioFireConvert, SolicitacoesUsuarioFirestoreData, StatusSolicitacaoUsuario, TipoAcaoLancamentoEnum, TipoAnexoExtensao, TipoFaixaDeHorasExtras, TipoOcorrenciaFrequenciaEnum, TipoReferenciaVerificacaoLancamento, TipoSolicitacaoUsuario, VerificacaoLancamento, VerificacaoLancamentoBase, VerificacaoLancamentoFireConvert, VerificacaoLancamentoFirestoreData, Empresa, EmpresaBase, Endereco, ParametrosEmpresa, ToleranciaIntervalosTipo, EmpresaFireConvert, EmpresaElasticSource, EmpresaFirestoreData, PercentuaisBancoHoras, } from './models/index';
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.PercentuaisBancoHoras = exports.EmpresaFirestoreData = exports.EmpresaFireConvert = exports.ToleranciaIntervalosTipo = exports.ParametrosEmpresa = exports.Endereco = exports.Empresa = exports.VerificacaoLancamentoFirestoreData = exports.VerificacaoLancamentoFireConvert = exports.VerificacaoLancamento = exports.TipoSolicitacaoUsuario = exports.TipoReferenciaVerificacaoLancamento = exports.TipoOcorrenciaFrequenciaEnum = exports.TipoFaixaDeHorasExtras = exports.TipoAnexoExtensao = exports.TipoAcaoLancamentoEnum = exports.StatusSolicitacaoUsuario = exports.SolicitacoesUsuarioFirestoreData = exports.SolicitacoesUsuarioFireConvert = exports.SolicitacoesUsuario = exports.RelatorioAbsenteismoDadosDiarios = exports.RelatorioAbsenteismo = exports.RegimesCompensacaoEscala = exports.OcorrenciaFrequenciaRelacaoJornadas = exports.NiveisDeFaixaDeHorasExtras = exports.ModeloFaixaHoraExtraFirestoreData = exports.ModeloFaixaHoraExtraFireConvert = exports.ModeloFaixaHoraExtra = exports.LancamentoStatusEnum = exports.LancamentoPeriodo = exports.LancamentoJsonData = void 0;
|
|
3
|
+
exports.LancamentoIntegracaoTipoEnum = exports.LancamentoFirestoreData = exports.LancamentoFireConvert = exports.LancamentoElasticConvert = exports.Lancamento = exports.HistoricoRelatorioPontoAppLogFirestoreData = exports.HistoricoRelatorioPontoAppLogFireConvert = exports.HistoricoRelatorioPontoAppLog = exports.HistoricoRelatorioPontoAppFirestoreData = exports.HistoricoRelatorioPontoAppFireConvert = exports.HistoricoRelatorioPontoAppElasticData = exports.HistoricoRelatorioPontoAppElasticConvert = exports.HistoricoRelatorioPontoApp = exports.FeriadoTipoEnum = exports.FeriadoJsonData = exports.FeriadoJsonConvert = exports.FeriadoFirestoreData = exports.FeriadoFireConvert = exports.Feriado = exports.Excecao = exports.EscalaHelpers = exports.EscalaFirestoreData = exports.EscalaFireConvert = exports.Escala = exports.EnumTipoRelatorio = exports.EnumStatusRelatorio = exports.EnumStatusHistoricoRelatorioPontoAppLog = exports.EnumStatusHistoricoRelatorioPontoApp = exports.EnumFormatoArquivo = exports.EnumExcecaoTipo = exports.EnumExcecaoStatus = exports.EnumEmpresasConfiguracaoNome = exports.EnumConfiguracaoTipoFaltaJornada = exports.EnumAuditoriaModificadorTipo = exports.EmpresaFeriadoFirestoreData = exports.EmpresaFeriadoFireConvert = exports.EmpresaFeriado = exports.DepartamentoElasticConvert = exports.DepartamentoFirestoreData = exports.DepartamentoFireConvert = exports.Departamento = exports.CargoJsonConvert = exports.CargoJsonData = exports.CargoElasticConvert = exports.CargoFirestoreData = exports.CargoFireConvert = exports.Cargo = exports.AuditoriaModificadorFirestoreData = exports.AuditoriaModificadorFireConvert = exports.AuditoriaModificador = void 0;
|
|
4
|
+
exports.PercentuaisBancoHoras = exports.EmpresaFirestoreData = exports.EmpresaFireConvert = exports.ToleranciaIntervalosTipo = exports.ParametrosEmpresa = exports.Endereco = exports.Empresa = exports.VerificacaoLancamentoFirestoreData = exports.VerificacaoLancamentoFireConvert = exports.VerificacaoLancamento = exports.TipoSolicitacaoUsuario = exports.TipoReferenciaVerificacaoLancamento = exports.TipoOcorrenciaFrequenciaEnum = exports.TipoFaixaDeHorasExtras = exports.TipoAnexoExtensao = exports.TipoAcaoLancamentoEnum = exports.StatusSolicitacaoUsuario = exports.SolicitacoesUsuarioFirestoreData = exports.SolicitacoesUsuarioFireConvert = exports.SolicitacoesUsuario = exports.RelatorioAbsenteismoDadosDiarios = exports.RelatorioAbsenteismo = exports.RegimesCompensacaoEscala = exports.OcorrenciaFrequenciaRelacaoJornadas = exports.NiveisDeFaixaDeHorasExtras = exports.ModeloFaixaHoraExtraFirestoreData = exports.ModeloFaixaHoraExtraFireConvert = exports.ModeloFaixaHoraExtra = exports.LancamentoStatusEnum = exports.LancamentoPeriodo = exports.LancamentoJsonData = exports.LancamentoJsonConvert = void 0;
|
|
5
5
|
var index_1 = require("./models/index");
|
|
6
6
|
Object.defineProperty(exports, "AuditoriaModificador", { enumerable: true, get: function () { return index_1.AuditoriaModificador; } });
|
|
7
7
|
Object.defineProperty(exports, "AuditoriaModificadorFireConvert", { enumerable: true, get: function () { return index_1.AuditoriaModificadorFireConvert; } });
|
|
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "CargoJsonConvert", { enumerable: true, get: func
|
|
|
15
15
|
Object.defineProperty(exports, "Departamento", { enumerable: true, get: function () { return index_1.Departamento; } });
|
|
16
16
|
Object.defineProperty(exports, "DepartamentoFireConvert", { enumerable: true, get: function () { return index_1.DepartamentoFireConvert; } });
|
|
17
17
|
Object.defineProperty(exports, "DepartamentoFirestoreData", { enumerable: true, get: function () { return index_1.DepartamentoFirestoreData; } });
|
|
18
|
+
Object.defineProperty(exports, "DepartamentoElasticConvert", { enumerable: true, get: function () { return index_1.DepartamentoElasticConvert; } });
|
|
18
19
|
Object.defineProperty(exports, "EmpresaFeriado", { enumerable: true, get: function () { return index_1.EmpresaFeriado; } });
|
|
19
20
|
Object.defineProperty(exports, "EmpresaFeriadoFireConvert", { enumerable: true, get: function () { return index_1.EmpresaFeriadoFireConvert; } });
|
|
20
21
|
Object.defineProperty(exports, "EmpresaFeriadoFirestoreData", { enumerable: true, get: function () { return index_1.EmpresaFeriadoFirestoreData; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Departamento } from '.';
|
|
2
|
+
export interface DepartamentoElasticSource {
|
|
3
|
+
i_created: string;
|
|
4
|
+
i_id: string;
|
|
5
|
+
i_parent_id: string;
|
|
6
|
+
i_path: string;
|
|
7
|
+
i_type_sync: string;
|
|
8
|
+
i_updated: string;
|
|
9
|
+
data_atualizacao_doc: string;
|
|
10
|
+
data_criacao_doc: string;
|
|
11
|
+
descricao: string;
|
|
12
|
+
excluido: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare abstract class DepartamentoElasticConvert {
|
|
15
|
+
static fromElastic(doc: DepartamentoElasticSource): Departamento;
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DepartamentoElasticConvert = void 0;
|
|
4
|
+
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
5
|
+
var string_helper_1 = require("../../utils/string-helper");
|
|
6
|
+
var date_helper_1 = require("../../utils/date-helper");
|
|
7
|
+
var _1 = require(".");
|
|
8
|
+
var DepartamentoElasticConvert = /** @class */ (function () {
|
|
9
|
+
function DepartamentoElasticConvert() {
|
|
10
|
+
}
|
|
11
|
+
DepartamentoElasticConvert.fromElastic = function (doc) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
var docData = doc;
|
|
14
|
+
return new _1.Departamento({
|
|
15
|
+
_id: (_a = doc.i_id) !== null && _a !== void 0 ? _a : null,
|
|
16
|
+
_path: (_b = doc.i_path) !== null && _b !== void 0 ? _b : null,
|
|
17
|
+
data_atualizacao_doc: date_helper_1.DateHelper.fromString(docData.data_atualizacao_doc, new Date()),
|
|
18
|
+
data_criacao_doc: date_helper_1.DateHelper.fromString(docData.data_criacao_doc, new Date()),
|
|
19
|
+
descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
|
|
20
|
+
excluido: boolean_helper_1.BooleanHelper.check(docData.excluido, false),
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
return DepartamentoElasticConvert;
|
|
24
|
+
}());
|
|
25
|
+
exports.DepartamentoElasticConvert = DepartamentoElasticConvert;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './departamento-fire-convert';
|
|
2
|
+
export * from './departamento-elastic-convert';
|
|
2
3
|
export interface DepartamentoBase {
|
|
3
4
|
data_atualizacao_doc: any;
|
|
4
5
|
data_criacao_doc: any;
|
|
@@ -6,10 +7,10 @@ export interface DepartamentoBase {
|
|
|
6
7
|
excluido: boolean;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
|
-
* Internal class col contas/${contaId}/
|
|
10
|
+
* Internal class col contas/${contaId}/departamentos/${departamentoId}.
|
|
10
11
|
*
|
|
11
12
|
* @export
|
|
12
|
-
* @class
|
|
13
|
+
* @class Departamento
|
|
13
14
|
*/
|
|
14
15
|
export declare class Departamento implements DepartamentoBase {
|
|
15
16
|
_id: string;
|
|
@@ -19,9 +20,9 @@ export declare class Departamento implements DepartamentoBase {
|
|
|
19
20
|
descricao: string;
|
|
20
21
|
excluido: boolean;
|
|
21
22
|
/**
|
|
22
|
-
* Creates an instance of
|
|
23
|
-
* @param {Partial<
|
|
24
|
-
* @memberof
|
|
23
|
+
* Creates an instance of Departamento.
|
|
24
|
+
* @param {Partial<Departamento>} departamentoPayload
|
|
25
|
+
* @memberof Departamento
|
|
25
26
|
*/
|
|
26
|
-
constructor(
|
|
27
|
+
constructor(departamentoPayload: Partial<Departamento>);
|
|
27
28
|
}
|
|
@@ -16,28 +16,29 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.Departamento = void 0;
|
|
18
18
|
__exportStar(require("./departamento-fire-convert"), exports);
|
|
19
|
+
__exportStar(require("./departamento-elastic-convert"), exports);
|
|
19
20
|
/**
|
|
20
|
-
* Internal class col contas/${contaId}/
|
|
21
|
+
* Internal class col contas/${contaId}/departamentos/${departamentoId}.
|
|
21
22
|
*
|
|
22
23
|
* @export
|
|
23
|
-
* @class
|
|
24
|
+
* @class Departamento
|
|
24
25
|
*/
|
|
25
26
|
var Departamento = /** @class */ (function () {
|
|
26
27
|
// #endregion
|
|
27
28
|
/**
|
|
28
|
-
* Creates an instance of
|
|
29
|
-
* @param {Partial<
|
|
30
|
-
* @memberof
|
|
29
|
+
* Creates an instance of Departamento.
|
|
30
|
+
* @param {Partial<Departamento>} departamentoPayload
|
|
31
|
+
* @memberof Departamento
|
|
31
32
|
*/
|
|
32
|
-
function Departamento(
|
|
33
|
+
function Departamento(departamentoPayload) {
|
|
33
34
|
var _a, _b, _c, _d, _e, _f;
|
|
34
|
-
this._id = (_a =
|
|
35
|
-
this._path = (_b =
|
|
35
|
+
this._id = (_a = departamentoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
36
|
+
this._path = (_b = departamentoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
36
37
|
this.data_atualizacao_doc =
|
|
37
|
-
(_c =
|
|
38
|
-
this.data_criacao_doc = (_d =
|
|
39
|
-
this.descricao = (_e =
|
|
40
|
-
this.excluido = (_f =
|
|
38
|
+
(_c = departamentoPayload.data_atualizacao_doc) !== null && _c !== void 0 ? _c : undefined;
|
|
39
|
+
this.data_criacao_doc = (_d = departamentoPayload.data_criacao_doc) !== null && _d !== void 0 ? _d : undefined;
|
|
40
|
+
this.descricao = (_e = departamentoPayload.descricao) !== null && _e !== void 0 ? _e : undefined;
|
|
41
|
+
this.excluido = (_f = departamentoPayload.excluido) !== null && _f !== void 0 ? _f : undefined;
|
|
41
42
|
}
|
|
42
43
|
return Departamento;
|
|
43
44
|
}());
|
|
@@ -49,11 +49,11 @@ export interface LancamentoBase {
|
|
|
49
49
|
data_atualizacao: any;
|
|
50
50
|
data_inicial: any;
|
|
51
51
|
data_final: any;
|
|
52
|
-
data_referencia
|
|
52
|
+
data_referencia?: any;
|
|
53
53
|
descricao: any;
|
|
54
54
|
excluido: any;
|
|
55
55
|
acao_tipo: any;
|
|
56
|
-
acao_subtipo
|
|
56
|
+
acao_subtipo?: any;
|
|
57
57
|
ocorrencia?: {
|
|
58
58
|
uid: any;
|
|
59
59
|
tipo: any;
|
|
@@ -99,10 +99,10 @@ export declare class Lancamento implements LancamentoBase {
|
|
|
99
99
|
data_criacao: Date;
|
|
100
100
|
data_atualizacao: Date;
|
|
101
101
|
acao_tipo: TipoAcaoLancamentoEnum;
|
|
102
|
-
acao_subtipo
|
|
102
|
+
acao_subtipo?: SubTipoAcaoLancamentoEnum | null;
|
|
103
103
|
data_final: Date | null;
|
|
104
|
-
data_inicial: Date
|
|
105
|
-
data_referencia
|
|
104
|
+
data_inicial: Date;
|
|
105
|
+
data_referencia?: Date | null;
|
|
106
106
|
descricao: string;
|
|
107
107
|
empresa: {
|
|
108
108
|
path: string;
|
|
@@ -116,6 +116,7 @@ export declare class Lancamento implements LancamentoBase {
|
|
|
116
116
|
tipo: TipoOcorrenciaFrequenciaEnum;
|
|
117
117
|
descricao: string;
|
|
118
118
|
};
|
|
119
|
+
valor_total_minutos?: number | null;
|
|
119
120
|
periodos?: LancamentoPeriodo[];
|
|
120
121
|
status: LancamentoStatusEnum;
|
|
121
122
|
todos_colaboradores: boolean;
|
|
@@ -77,7 +77,7 @@ var Lancamento = /** @class */ (function () {
|
|
|
77
77
|
* @memberof Lancamento
|
|
78
78
|
*/
|
|
79
79
|
function Lancamento(lancamentoPayload) {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
81
81
|
this._id = (_a = lancamentoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
82
82
|
this._path = (_b = lancamentoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
83
83
|
this.data_criacao = (_c = lancamentoPayload.data_criacao) !== null && _c !== void 0 ? _c : undefined;
|
|
@@ -91,13 +91,15 @@ var Lancamento = /** @class */ (function () {
|
|
|
91
91
|
this.empresa = (_l = lancamentoPayload.empresa) !== null && _l !== void 0 ? _l : undefined;
|
|
92
92
|
this.excluido = (_m = lancamentoPayload.excluido) !== null && _m !== void 0 ? _m : undefined;
|
|
93
93
|
this.ocorrencia = (_o = lancamentoPayload.ocorrencia) !== null && _o !== void 0 ? _o : undefined;
|
|
94
|
-
this.
|
|
95
|
-
|
|
94
|
+
this.valor_total_minutos =
|
|
95
|
+
(_p = lancamentoPayload.valor_total_minutos) !== null && _p !== void 0 ? _p : undefined;
|
|
96
|
+
this.periodos = (_q = lancamentoPayload.periodos) !== null && _q !== void 0 ? _q : undefined;
|
|
97
|
+
this.status = (_r = lancamentoPayload.status) !== null && _r !== void 0 ? _r : undefined;
|
|
96
98
|
this.todos_colaboradores =
|
|
97
|
-
(
|
|
98
|
-
this.colaboradores_ids = (
|
|
99
|
-
this.integracao = (
|
|
100
|
-
this.modificador = (
|
|
99
|
+
(_s = lancamentoPayload.todos_colaboradores) !== null && _s !== void 0 ? _s : undefined;
|
|
100
|
+
this.colaboradores_ids = (_t = lancamentoPayload.colaboradores_ids) !== null && _t !== void 0 ? _t : undefined;
|
|
101
|
+
this.integracao = (_u = lancamentoPayload.integracao) !== null && _u !== void 0 ? _u : undefined;
|
|
102
|
+
this.modificador = (_v = lancamentoPayload.modificador) !== null && _v !== void 0 ? _v : undefined;
|
|
101
103
|
}
|
|
102
104
|
return Lancamento;
|
|
103
105
|
}());
|
|
@@ -24,13 +24,13 @@ export interface LancamentoElasticSource {
|
|
|
24
24
|
i_type_sync: string;
|
|
25
25
|
i_updated: string;
|
|
26
26
|
acao_tipo: string;
|
|
27
|
-
acao_subtipo
|
|
27
|
+
acao_subtipo?: string | null;
|
|
28
28
|
colaboradores_ids: string[];
|
|
29
29
|
data_atualizacao: string;
|
|
30
30
|
data_criacao: string;
|
|
31
31
|
data_final: string | null;
|
|
32
|
-
data_inicial: string
|
|
33
|
-
data_referencia
|
|
32
|
+
data_inicial: string;
|
|
33
|
+
data_referencia?: string | null;
|
|
34
34
|
descricao: string;
|
|
35
35
|
empresa: Empresa;
|
|
36
36
|
excluido: boolean;
|
|
@@ -44,6 +44,7 @@ export interface LancamentoElasticSource {
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
ocorrencia: Ocorrencia;
|
|
47
|
+
valor_total_minutos?: number | null;
|
|
47
48
|
periodos: LancamentoPeriodo[] | null;
|
|
48
49
|
status: LancamentoStatusEnum;
|
|
49
50
|
todos_colaboradores: boolean;
|
|
@@ -7,6 +7,7 @@ var string_helper_1 = require("../../utils/string-helper");
|
|
|
7
7
|
var _1 = require(".");
|
|
8
8
|
var date_helper_1 = require("../../utils/date-helper");
|
|
9
9
|
var lodash_1 = require("lodash");
|
|
10
|
+
var number_helper_1 = require("../../utils/number-helper");
|
|
10
11
|
var LancamentoElasticConvert = /** @class */ (function () {
|
|
11
12
|
function LancamentoElasticConvert() {
|
|
12
13
|
}
|
|
@@ -17,7 +18,9 @@ var LancamentoElasticConvert = /** @class */ (function () {
|
|
|
17
18
|
_id: (_a = doc.i_id) !== null && _a !== void 0 ? _a : null,
|
|
18
19
|
_path: (_b = doc.i_path) !== null && _b !== void 0 ? _b : null,
|
|
19
20
|
acao_tipo: string_helper_1.StringHelper.trim(docData.acao_tipo, null),
|
|
20
|
-
acao_subtipo:
|
|
21
|
+
acao_subtipo: docData.acao_subtipo
|
|
22
|
+
? string_helper_1.StringHelper.trim(docData.acao_subtipo, null)
|
|
23
|
+
: undefined,
|
|
21
24
|
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(docData.colaboradores_ids, []),
|
|
22
25
|
data_atualizacao: date_helper_1.DateHelper.fromString(docData.data_atualizacao, new Date()),
|
|
23
26
|
data_criacao: date_helper_1.DateHelper.fromString(docData.data_criacao, new Date()),
|
|
@@ -29,7 +32,7 @@ var LancamentoElasticConvert = /** @class */ (function () {
|
|
|
29
32
|
: null,
|
|
30
33
|
data_referencia: docData.data_referencia
|
|
31
34
|
? date_helper_1.DateHelper.fromString(docData.data_referencia, new Date())
|
|
32
|
-
:
|
|
35
|
+
: undefined,
|
|
33
36
|
descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
|
|
34
37
|
empresa: {
|
|
35
38
|
documento: string_helper_1.StringHelper.trim(docData.empresa.documento, null),
|
|
@@ -46,6 +49,9 @@ var LancamentoElasticConvert = /** @class */ (function () {
|
|
|
46
49
|
tipo: string_helper_1.StringHelper.trim(docData.ocorrencia.tipo, null),
|
|
47
50
|
}
|
|
48
51
|
: null,
|
|
52
|
+
valor_total_minutos: docData.valor_total_minutos
|
|
53
|
+
? number_helper_1.NumberHelper.convertToNumber(docData.valor_total_minutos)
|
|
54
|
+
: undefined,
|
|
49
55
|
periodos: docData.periodos ? docData.periodos : null,
|
|
50
56
|
status: string_helper_1.StringHelper.trim(docData.status, null),
|
|
51
57
|
todos_colaboradores: boolean_helper_1.BooleanHelper.check(docData.todos_colaboradores, false),
|
|
@@ -5,18 +5,19 @@ import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
|
|
|
5
5
|
export declare class LancamentoFirestoreData implements Omit<LancamentoBase, 'modificador'> {
|
|
6
6
|
data_criacao: FirebaseTimestampGeneric;
|
|
7
7
|
data_atualizacao: FirebaseTimestampGeneric;
|
|
8
|
-
data_inicial: FirebaseTimestampGeneric
|
|
8
|
+
data_inicial: FirebaseTimestampGeneric;
|
|
9
9
|
data_final: FirebaseTimestampGeneric | null;
|
|
10
|
-
data_referencia
|
|
10
|
+
data_referencia?: FirebaseTimestampGeneric | null;
|
|
11
11
|
descricao: string;
|
|
12
12
|
excluido: boolean;
|
|
13
13
|
acao_tipo: TipoAcaoLancamentoEnum;
|
|
14
|
-
acao_subtipo
|
|
14
|
+
acao_subtipo?: SubTipoAcaoLancamentoEnum | null;
|
|
15
15
|
ocorrencia?: {
|
|
16
16
|
uid: string;
|
|
17
17
|
tipo: TipoOcorrenciaFrequenciaEnum;
|
|
18
18
|
descricao: string;
|
|
19
19
|
};
|
|
20
|
+
valor_total_minutos?: number | null;
|
|
20
21
|
periodos?: LancamentoPeriodo[];
|
|
21
22
|
empresa: {
|
|
22
23
|
ref: FirebaseDocumentReferenceGeneric;
|
|
@@ -7,6 +7,7 @@ var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDepende
|
|
|
7
7
|
var array_helpers_1 = require("../../utils/array-helpers");
|
|
8
8
|
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
9
9
|
var string_helper_1 = require("../../utils/string-helper");
|
|
10
|
+
var number_helper_1 = require("../../utils/number-helper");
|
|
10
11
|
var LancamentoFirestoreData = /** @class */ (function () {
|
|
11
12
|
function LancamentoFirestoreData() {
|
|
12
13
|
}
|
|
@@ -24,11 +25,13 @@ var LancamentoFireConvert = /** @class */ (function () {
|
|
|
24
25
|
_path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
|
|
25
26
|
data_inicial: ((_d = docData.data_inicial) === null || _d === void 0 ? void 0 : _d.toDate()) || null,
|
|
26
27
|
data_final: ((_e = docData.data_final) === null || _e === void 0 ? void 0 : _e.toDate()) || null,
|
|
27
|
-
data_referencia: ((_f = docData.data_referencia) === null || _f === void 0 ? void 0 : _f.toDate()) ||
|
|
28
|
+
data_referencia: ((_f = docData.data_referencia) === null || _f === void 0 ? void 0 : _f.toDate()) || undefined,
|
|
28
29
|
descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
|
|
29
30
|
excluido: boolean_helper_1.BooleanHelper.check(docData.excluido, false),
|
|
30
31
|
acao_tipo: string_helper_1.StringHelper.trim(docData.acao_tipo, null),
|
|
31
|
-
acao_subtipo:
|
|
32
|
+
acao_subtipo: docData.acao_subtipo
|
|
33
|
+
? string_helper_1.StringHelper.trim(docData.acao_subtipo, null)
|
|
34
|
+
: undefined,
|
|
32
35
|
status: string_helper_1.StringHelper.trim(docData.status, null),
|
|
33
36
|
empresa: {
|
|
34
37
|
documento: string_helper_1.StringHelper.trim((_g = docData.empresa) === null || _g === void 0 ? void 0 : _g.documento, null),
|
|
@@ -43,6 +46,9 @@ var LancamentoFireConvert = /** @class */ (function () {
|
|
|
43
46
|
tipo: string_helper_1.StringHelper.trim(docData.ocorrencia.tipo, null),
|
|
44
47
|
}
|
|
45
48
|
: null,
|
|
49
|
+
valor_total_minutos: docData.valor_total_minutos
|
|
50
|
+
? number_helper_1.NumberHelper.convertToNumber(docData.valor_total_minutos)
|
|
51
|
+
: undefined,
|
|
46
52
|
todos_colaboradores: boolean_helper_1.BooleanHelper.check(docData.todos_colaboradores, true),
|
|
47
53
|
periodos: ((_l = docData.periodos) === null || _l === void 0 ? void 0 : _l.length) ? docData.periodos : null,
|
|
48
54
|
data_atualizacao: (_o = (_m = docData.data_atualizacao) === null || _m === void 0 ? void 0 : _m.toDate()) !== null && _o !== void 0 ? _o : undefined,
|
|
@@ -78,12 +84,14 @@ var LancamentoFireConvert = /** @class */ (function () {
|
|
|
78
84
|
: null,
|
|
79
85
|
data_referencia: lancamento.data_referencia
|
|
80
86
|
? flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_referencia)
|
|
81
|
-
:
|
|
87
|
+
: undefined,
|
|
82
88
|
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(lancamento.colaboradores_ids, null),
|
|
83
89
|
descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
|
|
84
90
|
excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
|
|
85
91
|
acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
86
|
-
acao_subtipo:
|
|
92
|
+
acao_subtipo: lancamento.acao_subtipo
|
|
93
|
+
? string_helper_1.StringHelper.trim(lancamento.acao_subtipo, null)
|
|
94
|
+
: undefined,
|
|
87
95
|
status: string_helper_1.StringHelper.trim(lancamento.status, null),
|
|
88
96
|
empresa: {
|
|
89
97
|
ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(lancamento.empresa.path),
|
|
@@ -98,6 +106,9 @@ var LancamentoFireConvert = /** @class */ (function () {
|
|
|
98
106
|
tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
99
107
|
}
|
|
100
108
|
: null,
|
|
109
|
+
valor_total_minutos: lancamento.valor_total_minutos
|
|
110
|
+
? number_helper_1.NumberHelper.convertToNumber(lancamento.valor_total_minutos)
|
|
111
|
+
: undefined,
|
|
101
112
|
todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, true),
|
|
102
113
|
periodos: ((_a = lancamento.periodos) === null || _a === void 0 ? void 0 : _a.length) ? lancamento.periodos : null,
|
|
103
114
|
data_atualizacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_atualizacao),
|
|
@@ -7,18 +7,19 @@ export declare class LancamentoJsonData implements LancamentoBase {
|
|
|
7
7
|
data_atualizacao: string;
|
|
8
8
|
_id: string;
|
|
9
9
|
_path: string;
|
|
10
|
-
data_inicial: string
|
|
10
|
+
data_inicial: string;
|
|
11
11
|
data_final: string | null;
|
|
12
|
-
data_referencia
|
|
12
|
+
data_referencia?: string | null;
|
|
13
13
|
descricao: string;
|
|
14
14
|
excluido: boolean;
|
|
15
15
|
acao_tipo: TipoAcaoLancamentoEnum;
|
|
16
|
-
acao_subtipo
|
|
16
|
+
acao_subtipo?: SubTipoAcaoLancamentoEnum | null;
|
|
17
17
|
ocorrencia?: {
|
|
18
18
|
uid: string;
|
|
19
19
|
tipo: TipoOcorrenciaFrequenciaEnum;
|
|
20
20
|
descricao: string;
|
|
21
21
|
};
|
|
22
|
+
valor_total_minutos?: number | null;
|
|
22
23
|
periodos?: LancamentoPeriodo[];
|
|
23
24
|
empresa: {
|
|
24
25
|
path: string;
|
|
@@ -7,6 +7,7 @@ var array_helpers_1 = require("../../utils/array-helpers");
|
|
|
7
7
|
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
8
8
|
var date_helper_1 = require("../../utils/date-helper");
|
|
9
9
|
var string_helper_1 = require("../../utils/string-helper");
|
|
10
|
+
var number_helper_1 = require("../../utils/number-helper");
|
|
10
11
|
var LancamentoJsonData = /** @class */ (function () {
|
|
11
12
|
function LancamentoJsonData() {
|
|
12
13
|
}
|
|
@@ -29,12 +30,14 @@ var LancamentoJsonConvert = /** @class */ (function () {
|
|
|
29
30
|
: null,
|
|
30
31
|
data_referencia: obj.data_referencia
|
|
31
32
|
? date_helper_1.DateHelper.fromString(obj.data_referencia, null)
|
|
32
|
-
:
|
|
33
|
+
: undefined,
|
|
33
34
|
descricao: string_helper_1.StringHelper.trim(obj.descricao, null),
|
|
34
35
|
excluido: boolean_helper_1.BooleanHelper.check(obj.excluido, false),
|
|
35
36
|
status: string_helper_1.StringHelper.trim(obj.status, null),
|
|
36
37
|
acao_tipo: string_helper_1.StringHelper.trim(obj.acao_tipo, null),
|
|
37
|
-
acao_subtipo:
|
|
38
|
+
acao_subtipo: obj.acao_subtipo
|
|
39
|
+
? string_helper_1.StringHelper.trim(obj.acao_subtipo, null)
|
|
40
|
+
: undefined,
|
|
38
41
|
empresa: {
|
|
39
42
|
documento: string_helper_1.StringHelper.trim(obj.empresa.documento, null),
|
|
40
43
|
fantasia: string_helper_1.StringHelper.trim(obj.empresa.fantasia, null),
|
|
@@ -48,6 +51,9 @@ var LancamentoJsonConvert = /** @class */ (function () {
|
|
|
48
51
|
tipo: string_helper_1.StringHelper.trim(obj.ocorrencia.tipo, null),
|
|
49
52
|
}
|
|
50
53
|
: null,
|
|
54
|
+
valor_total_minutos: obj.valor_total_minutos
|
|
55
|
+
? number_helper_1.NumberHelper.convertToNumber(obj.valor_total_minutos)
|
|
56
|
+
: undefined,
|
|
51
57
|
todos_colaboradores: boolean_helper_1.BooleanHelper.check(obj.todos_colaboradores, true),
|
|
52
58
|
periodos: ((_c = obj.periodos) === null || _c === void 0 ? void 0 : _c.length) ? obj.periodos : null,
|
|
53
59
|
data_atualizacao: date_helper_1.DateHelper.fromString(obj.data_atualizacao, null),
|
|
@@ -85,12 +91,14 @@ var LancamentoJsonConvert = /** @class */ (function () {
|
|
|
85
91
|
: null,
|
|
86
92
|
data_referencia: lancamento.data_referencia
|
|
87
93
|
? (_e = lancamento.data_referencia) === null || _e === void 0 ? void 0 : _e.toISOString()
|
|
88
|
-
:
|
|
94
|
+
: undefined,
|
|
89
95
|
descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
|
|
90
96
|
excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
|
|
91
97
|
status: string_helper_1.StringHelper.trim(lancamento.status, null),
|
|
92
98
|
acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
93
|
-
acao_subtipo:
|
|
99
|
+
acao_subtipo: lancamento.acao_subtipo
|
|
100
|
+
? string_helper_1.StringHelper.trim(lancamento.acao_subtipo, null)
|
|
101
|
+
: undefined,
|
|
94
102
|
empresa: {
|
|
95
103
|
documento: string_helper_1.StringHelper.trim(lancamento.empresa.documento, null),
|
|
96
104
|
fantasia: string_helper_1.StringHelper.trim(lancamento.empresa.fantasia, null),
|
|
@@ -104,6 +112,9 @@ var LancamentoJsonConvert = /** @class */ (function () {
|
|
|
104
112
|
tipo: string_helper_1.StringHelper.trim(lancamento.ocorrencia.tipo, null),
|
|
105
113
|
}
|
|
106
114
|
: null,
|
|
115
|
+
valor_total_minutos: lancamento.valor_total_minutos
|
|
116
|
+
? number_helper_1.NumberHelper.convertToNumber(lancamento.valor_total_minutos)
|
|
117
|
+
: undefined,
|
|
107
118
|
todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, false),
|
|
108
119
|
periodos: ((_f = lancamento.periodos) === null || _f === void 0 ? void 0 : _f.length) ? lancamento.periodos : null,
|
|
109
120
|
data_criacao: (_g = lancamento.data_criacao) === null || _g === void 0 ? void 0 : _g.toISOString(),
|