flit-models 3.2.47 → 3.2.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/LICENSE +21 -21
- package/lib/index.d.ts +1 -1
- package/lib/index.js +76 -76
- package/lib/models/api/exportar_relatorio.d.ts +38 -38
- package/lib/models/api/exportar_relatorio.js +29 -29
- package/lib/models/api/index.d.ts +3 -3
- package/lib/models/api/index.js +19 -19
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/index.d.ts +25 -25
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/index.js +17 -17
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/relatorio_absenteismo.d.ts +60 -60
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/relatorio_absenteismo.js +45 -45
- package/lib/models/api/oncall-exportar-relatorio-absenteismo/index.d.ts +8 -8
- package/lib/models/api/oncall-exportar-relatorio-absenteismo/index.js +2 -2
- package/lib/models/contas/auditoria/modificador/index.d.ts +30 -30
- package/lib/models/contas/auditoria/modificador/index.js +44 -44
- package/lib/models/contas/auditoria/modificador/modificador-fire-convert.d.ts +14 -14
- package/lib/models/contas/auditoria/modificador/modificador-fire-convert.js +43 -43
- package/lib/models/contas/cargo/cargo-fire-convert.d.ts +13 -13
- package/lib/models/contas/cargo/cargo-fire-convert.js +42 -42
- package/lib/models/contas/cargo/index.d.ts +29 -29
- package/lib/models/contas/cargo/index.js +45 -45
- package/lib/models/contas/departamento/departamento-fire-convert.d.ts +12 -12
- package/lib/models/contas/departamento/departamento-fire-convert.js +40 -40
- package/lib/models/contas/departamento/index.d.ts +27 -27
- package/lib/models/contas/departamento/index.js +44 -44
- package/lib/models/contas/escala/escala-fire-convert.d.ts +48 -48
- package/lib/models/contas/escala/escala-fire-convert.js +122 -122
- package/lib/models/contas/escala/index.d.ts +103 -103
- package/lib/models/contas/escala/index.js +71 -71
- package/lib/models/contas/excecoes.d.ts +84 -84
- package/lib/models/contas/excecoes.js +79 -79
- package/lib/models/contas/feriado/empresa-feriado-fire-convert.d.ts +13 -13
- package/lib/models/contas/feriado/empresa-feriado-fire-convert.js +43 -43
- package/lib/models/contas/feriado/empresa-feriado.d.ts +29 -29
- package/lib/models/contas/feriado/empresa-feriado.js +29 -29
- package/lib/models/contas/feriado/feriado-fire-convert.d.ts +17 -17
- package/lib/models/contas/feriado/feriado-fire-convert.js +66 -55
- package/lib/models/contas/feriado/feriado-json-convert.d.ts +18 -18
- package/lib/models/contas/feriado/feriado-json-convert.js +53 -52
- package/lib/models/contas/feriado/index.d.ts +45 -45
- package/lib/models/contas/feriado/index.js +56 -56
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.d.ts +25 -25
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.js +49 -49
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.d.ts +24 -24
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.js +38 -38
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/historico-relatorios-ponto-app-logs-fire-convert.d.ts +11 -11
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/historico-relatorios-ponto-app-logs-fire-convert.js +28 -28
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.d.ts +35 -35
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.js +51 -51
- package/lib/models/contas/historico_relatorios_ponto_app/index.d.ts +58 -58
- package/lib/models/contas/historico_relatorios_ponto_app/index.js +58 -58
- package/lib/models/contas/lancamento/index.d.ts +126 -126
- package/lib/models/contas/lancamento/index.js +94 -94
- package/lib/models/contas/lancamento/lancamento-elastic-convert.d.ts +51 -51
- package/lib/models/contas/lancamento/lancamento-elastic-convert.js +49 -49
- package/lib/models/contas/lancamento/lancamento-fire-convert.d.ts +40 -40
- package/lib/models/contas/lancamento/lancamento-fire-convert.js +99 -99
- package/lib/models/contas/lancamento/lancamento-json-convert.d.ts +41 -41
- package/lib/models/contas/lancamento/lancamento-json-convert.js +102 -102
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.d.ts +24 -24
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.js +80 -80
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.d.ts +55 -55
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.js +34 -34
- package/lib/models/contas/modelo-faixa-hora-extra/index.d.ts +94 -94
- package/lib/models/contas/modelo-faixa-hora-extra/index.js +58 -58
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.d.ts +39 -39
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.js +109 -109
- package/lib/models/contas/ocorrencia_frequencia/index.d.ts +30 -30
- package/lib/models/contas/ocorrencia_frequencia/index.js +76 -76
- package/lib/models/contas/parametros_compartilhados.d.ts +4 -4
- package/lib/models/contas/parametros_compartilhados.js +8 -8
- package/lib/models/contas/regimes_compensacao.d.ts +5 -5
- package/lib/models/contas/regimes_compensacao.js +9 -9
- package/lib/models/contas/solicitacoes-usuario/index.d.ts +91 -91
- package/lib/models/contas/solicitacoes-usuario/index.js +72 -72
- package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.d.ts +40 -40
- package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.js +109 -109
- package/lib/models/index.d.ts +13 -13
- package/lib/models/index.js +29 -29
- package/lib/models/utils/array-helpers.d.ts +3 -3
- package/lib/models/utils/array-helpers.js +17 -17
- package/lib/models/utils/boolean-helper.d.ts +3 -3
- package/lib/models/utils/boolean-helper.js +17 -17
- package/lib/models/utils/date-helper.d.ts +4 -4
- package/lib/models/utils/date-helper.js +21 -21
- package/lib/models/utils/string-helper.d.ts +5 -5
- package/lib/models/utils/string-helper.js +33 -33
- package/lib/models/utils/type-guards.d.ts +17 -17
- package/lib/models/utils/type-guards.js +27 -27
- package/lib/shared/flitModelsDependencyInjection.d.ts +24 -24
- package/lib/shared/flitModelsDependencyInjection.js +61 -61
- package/package.json +46 -46
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { Lancamento, LancamentoBase, LancamentoIntegracaoTipoEnum, LancamentoPeriodo, LancamentoStatusEnum, TipoAcaoLancamentoEnum } from '.';
|
|
2
|
-
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
|
-
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
4
|
-
export declare class LancamentoFirestoreData implements LancamentoBase {
|
|
5
|
-
data_criacao: FirebaseTimestampGeneric;
|
|
6
|
-
data_atualizacao: FirebaseTimestampGeneric;
|
|
7
|
-
data_inicial: FirebaseTimestampGeneric;
|
|
8
|
-
data_final: FirebaseTimestampGeneric | null;
|
|
9
|
-
descricao: string;
|
|
10
|
-
excluido: boolean;
|
|
11
|
-
acao_tipo: TipoAcaoLancamentoEnum;
|
|
12
|
-
ocorrencia?: {
|
|
13
|
-
uid: string;
|
|
14
|
-
tipo: TipoOcorrenciaFrequenciaEnum;
|
|
15
|
-
descricao: string;
|
|
16
|
-
};
|
|
17
|
-
periodos?: LancamentoPeriodo[];
|
|
18
|
-
empresa: {
|
|
19
|
-
ref: FirebaseDocumentReferenceGeneric;
|
|
20
|
-
razao: string;
|
|
21
|
-
fantasia: string;
|
|
22
|
-
documento: string;
|
|
23
|
-
};
|
|
24
|
-
integracao?: {
|
|
25
|
-
id: string;
|
|
26
|
-
tipo: LancamentoIntegracaoTipoEnum;
|
|
27
|
-
detalhes?: {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
gestor_parecer?: string;
|
|
30
|
-
parecer_gestor_concatenado_jornada: boolean;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
status: LancamentoStatusEnum;
|
|
34
|
-
todos_colaboradores: boolean;
|
|
35
|
-
colaboradores_ids: string[];
|
|
36
|
-
}
|
|
37
|
-
export declare abstract class LancamentoFireConvert {
|
|
38
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Lancamento;
|
|
39
|
-
static toFirestore(lancamento: Lancamento): Partial<LancamentoFirestoreData>;
|
|
40
|
-
}
|
|
1
|
+
import { Lancamento, LancamentoBase, LancamentoIntegracaoTipoEnum, LancamentoPeriodo, LancamentoStatusEnum, TipoAcaoLancamentoEnum } from '.';
|
|
2
|
+
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
|
+
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
4
|
+
export declare class LancamentoFirestoreData implements LancamentoBase {
|
|
5
|
+
data_criacao: FirebaseTimestampGeneric;
|
|
6
|
+
data_atualizacao: FirebaseTimestampGeneric;
|
|
7
|
+
data_inicial: FirebaseTimestampGeneric;
|
|
8
|
+
data_final: FirebaseTimestampGeneric | null;
|
|
9
|
+
descricao: string;
|
|
10
|
+
excluido: boolean;
|
|
11
|
+
acao_tipo: TipoAcaoLancamentoEnum;
|
|
12
|
+
ocorrencia?: {
|
|
13
|
+
uid: string;
|
|
14
|
+
tipo: TipoOcorrenciaFrequenciaEnum;
|
|
15
|
+
descricao: string;
|
|
16
|
+
};
|
|
17
|
+
periodos?: LancamentoPeriodo[];
|
|
18
|
+
empresa: {
|
|
19
|
+
ref: FirebaseDocumentReferenceGeneric;
|
|
20
|
+
razao: string;
|
|
21
|
+
fantasia: string;
|
|
22
|
+
documento: string;
|
|
23
|
+
};
|
|
24
|
+
integracao?: {
|
|
25
|
+
id: string;
|
|
26
|
+
tipo: LancamentoIntegracaoTipoEnum;
|
|
27
|
+
detalhes?: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
gestor_parecer?: string;
|
|
30
|
+
parecer_gestor_concatenado_jornada: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
status: LancamentoStatusEnum;
|
|
34
|
+
todos_colaboradores: boolean;
|
|
35
|
+
colaboradores_ids: string[];
|
|
36
|
+
}
|
|
37
|
+
export declare abstract class LancamentoFireConvert {
|
|
38
|
+
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Lancamento;
|
|
39
|
+
static toFirestore(lancamento: Lancamento): Partial<LancamentoFirestoreData>;
|
|
40
|
+
}
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LancamentoFireConvert = exports.LancamentoFirestoreData = void 0;
|
|
4
|
-
var lodash_1 = require("lodash");
|
|
5
|
-
var _1 = require(".");
|
|
6
|
-
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
7
|
-
var array_helpers_1 = require("../../utils/array-helpers");
|
|
8
|
-
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
9
|
-
var string_helper_1 = require("../../utils/string-helper");
|
|
10
|
-
var LancamentoFirestoreData = /** @class */ (function () {
|
|
11
|
-
function LancamentoFirestoreData() {
|
|
12
|
-
}
|
|
13
|
-
return LancamentoFirestoreData;
|
|
14
|
-
}());
|
|
15
|
-
exports.LancamentoFirestoreData = LancamentoFirestoreData;
|
|
16
|
-
var LancamentoFireConvert = /** @class */ (function () {
|
|
17
|
-
function LancamentoFireConvert() {
|
|
18
|
-
}
|
|
19
|
-
LancamentoFireConvert.fromFirestore = function (doc) {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
21
|
-
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
22
|
-
return new _1.Lancamento({
|
|
23
|
-
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
24
|
-
_path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
|
|
25
|
-
data_inicial: ((_d = docData.data_inicial) === null || _d === void 0 ? void 0 : _d.toDate()) || null,
|
|
26
|
-
data_final: ((_e = docData.data_final) === null || _e === void 0 ? void 0 : _e.toDate()) || null,
|
|
27
|
-
descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
|
|
28
|
-
excluido: boolean_helper_1.BooleanHelper.check(docData.excluido, false),
|
|
29
|
-
acao_tipo: string_helper_1.StringHelper.trim(docData.acao_tipo, null),
|
|
30
|
-
status: string_helper_1.StringHelper.trim(docData.status, null),
|
|
31
|
-
empresa: {
|
|
32
|
-
documento: string_helper_1.StringHelper.trim((_f = docData.empresa) === null || _f === void 0 ? void 0 : _f.documento, null),
|
|
33
|
-
fantasia: string_helper_1.StringHelper.trim((_g = docData.empresa) === null || _g === void 0 ? void 0 : _g.fantasia, null),
|
|
34
|
-
razao: string_helper_1.StringHelper.trim((_h = docData.empresa) === null || _h === void 0 ? void 0 : _h.razao, null),
|
|
35
|
-
path: string_helper_1.StringHelper.trim((_j = docData.empresa) === null || _j === void 0 ? void 0 : _j.ref.path, null),
|
|
36
|
-
},
|
|
37
|
-
ocorrencia: docData.ocorrencia
|
|
38
|
-
? {
|
|
39
|
-
descricao: string_helper_1.StringHelper.trim(docData.ocorrencia.descricao, null),
|
|
40
|
-
uid: string_helper_1.StringHelper.trim(docData.ocorrencia.uid, null),
|
|
41
|
-
tipo: string_helper_1.StringHelper.trim(docData.ocorrencia.tipo, null),
|
|
42
|
-
}
|
|
43
|
-
: null,
|
|
44
|
-
todos_colaboradores: boolean_helper_1.BooleanHelper.check(docData.todos_colaboradores, true),
|
|
45
|
-
periodos: ((_k = docData.periodos) === null || _k === void 0 ? void 0 : _k.length) ? docData.periodos : null,
|
|
46
|
-
data_atualizacao: (_m = (_l = docData.data_atualizacao) === null || _l === void 0 ? void 0 : _l.toDate()) !== null && _m !== void 0 ? _m : undefined,
|
|
47
|
-
data_criacao: (_p = (_o = docData.data_criacao) === null || _o === void 0 ? void 0 : _o.toDate()) !== null && _p !== void 0 ? _p : undefined,
|
|
48
|
-
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(docData.colaboradores_ids, null),
|
|
49
|
-
integracao: docData.integracao
|
|
50
|
-
? {
|
|
51
|
-
id: docData.integracao.id,
|
|
52
|
-
tipo: docData.integracao.tipo,
|
|
53
|
-
detalhes: docData.integracao.detalhes,
|
|
54
|
-
}
|
|
55
|
-
: undefined,
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
LancamentoFireConvert.toFirestore = function (lancamento) {
|
|
59
|
-
var _a;
|
|
60
|
-
var lancamentoFire = {
|
|
61
|
-
data_inicial: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_inicial),
|
|
62
|
-
data_final: lancamento.data_final
|
|
63
|
-
? flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_final)
|
|
64
|
-
: null,
|
|
65
|
-
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(lancamento.colaboradores_ids, null),
|
|
66
|
-
descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
|
|
67
|
-
excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
|
|
68
|
-
acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
69
|
-
status: string_helper_1.StringHelper.trim(lancamento.status, null),
|
|
70
|
-
empresa: {
|
|
71
|
-
ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(lancamento.empresa.path),
|
|
72
|
-
documento: string_helper_1.StringHelper.trim(lancamento.empresa.documento, null),
|
|
73
|
-
fantasia: string_helper_1.StringHelper.trim(lancamento.empresa.fantasia, null),
|
|
74
|
-
razao: string_helper_1.StringHelper.trim(lancamento.empresa.razao, null),
|
|
75
|
-
},
|
|
76
|
-
ocorrencia: lancamento.ocorrencia
|
|
77
|
-
? {
|
|
78
|
-
uid: string_helper_1.StringHelper.trim(lancamento.ocorrencia.uid, null),
|
|
79
|
-
descricao: string_helper_1.StringHelper.trim(lancamento.ocorrencia.descricao, null),
|
|
80
|
-
tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
81
|
-
}
|
|
82
|
-
: null,
|
|
83
|
-
todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, true),
|
|
84
|
-
periodos: ((_a = lancamento.periodos) === null || _a === void 0 ? void 0 : _a.length) ? lancamento.periodos : null,
|
|
85
|
-
data_atualizacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_atualizacao),
|
|
86
|
-
data_criacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_criacao),
|
|
87
|
-
integracao: lancamento.integracao
|
|
88
|
-
? {
|
|
89
|
-
id: lancamento.integracao.id,
|
|
90
|
-
tipo: lancamento.integracao.tipo,
|
|
91
|
-
detalhes: lancamento.integracao.detalhes,
|
|
92
|
-
}
|
|
93
|
-
: undefined,
|
|
94
|
-
};
|
|
95
|
-
return (0, lodash_1.omitBy)(lancamentoFire, lodash_1.isUndefined);
|
|
96
|
-
};
|
|
97
|
-
return LancamentoFireConvert;
|
|
98
|
-
}());
|
|
99
|
-
exports.LancamentoFireConvert = LancamentoFireConvert;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LancamentoFireConvert = exports.LancamentoFirestoreData = void 0;
|
|
4
|
+
var lodash_1 = require("lodash");
|
|
5
|
+
var _1 = require(".");
|
|
6
|
+
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
7
|
+
var array_helpers_1 = require("../../utils/array-helpers");
|
|
8
|
+
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
9
|
+
var string_helper_1 = require("../../utils/string-helper");
|
|
10
|
+
var LancamentoFirestoreData = /** @class */ (function () {
|
|
11
|
+
function LancamentoFirestoreData() {
|
|
12
|
+
}
|
|
13
|
+
return LancamentoFirestoreData;
|
|
14
|
+
}());
|
|
15
|
+
exports.LancamentoFirestoreData = LancamentoFirestoreData;
|
|
16
|
+
var LancamentoFireConvert = /** @class */ (function () {
|
|
17
|
+
function LancamentoFireConvert() {
|
|
18
|
+
}
|
|
19
|
+
LancamentoFireConvert.fromFirestore = function (doc) {
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
21
|
+
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
22
|
+
return new _1.Lancamento({
|
|
23
|
+
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
24
|
+
_path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
|
|
25
|
+
data_inicial: ((_d = docData.data_inicial) === null || _d === void 0 ? void 0 : _d.toDate()) || null,
|
|
26
|
+
data_final: ((_e = docData.data_final) === null || _e === void 0 ? void 0 : _e.toDate()) || null,
|
|
27
|
+
descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
|
|
28
|
+
excluido: boolean_helper_1.BooleanHelper.check(docData.excluido, false),
|
|
29
|
+
acao_tipo: string_helper_1.StringHelper.trim(docData.acao_tipo, null),
|
|
30
|
+
status: string_helper_1.StringHelper.trim(docData.status, null),
|
|
31
|
+
empresa: {
|
|
32
|
+
documento: string_helper_1.StringHelper.trim((_f = docData.empresa) === null || _f === void 0 ? void 0 : _f.documento, null),
|
|
33
|
+
fantasia: string_helper_1.StringHelper.trim((_g = docData.empresa) === null || _g === void 0 ? void 0 : _g.fantasia, null),
|
|
34
|
+
razao: string_helper_1.StringHelper.trim((_h = docData.empresa) === null || _h === void 0 ? void 0 : _h.razao, null),
|
|
35
|
+
path: string_helper_1.StringHelper.trim((_j = docData.empresa) === null || _j === void 0 ? void 0 : _j.ref.path, null),
|
|
36
|
+
},
|
|
37
|
+
ocorrencia: docData.ocorrencia
|
|
38
|
+
? {
|
|
39
|
+
descricao: string_helper_1.StringHelper.trim(docData.ocorrencia.descricao, null),
|
|
40
|
+
uid: string_helper_1.StringHelper.trim(docData.ocorrencia.uid, null),
|
|
41
|
+
tipo: string_helper_1.StringHelper.trim(docData.ocorrencia.tipo, null),
|
|
42
|
+
}
|
|
43
|
+
: null,
|
|
44
|
+
todos_colaboradores: boolean_helper_1.BooleanHelper.check(docData.todos_colaboradores, true),
|
|
45
|
+
periodos: ((_k = docData.periodos) === null || _k === void 0 ? void 0 : _k.length) ? docData.periodos : null,
|
|
46
|
+
data_atualizacao: (_m = (_l = docData.data_atualizacao) === null || _l === void 0 ? void 0 : _l.toDate()) !== null && _m !== void 0 ? _m : undefined,
|
|
47
|
+
data_criacao: (_p = (_o = docData.data_criacao) === null || _o === void 0 ? void 0 : _o.toDate()) !== null && _p !== void 0 ? _p : undefined,
|
|
48
|
+
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(docData.colaboradores_ids, null),
|
|
49
|
+
integracao: docData.integracao
|
|
50
|
+
? {
|
|
51
|
+
id: docData.integracao.id,
|
|
52
|
+
tipo: docData.integracao.tipo,
|
|
53
|
+
detalhes: docData.integracao.detalhes,
|
|
54
|
+
}
|
|
55
|
+
: undefined,
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
LancamentoFireConvert.toFirestore = function (lancamento) {
|
|
59
|
+
var _a;
|
|
60
|
+
var lancamentoFire = {
|
|
61
|
+
data_inicial: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_inicial),
|
|
62
|
+
data_final: lancamento.data_final
|
|
63
|
+
? flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_final)
|
|
64
|
+
: null,
|
|
65
|
+
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(lancamento.colaboradores_ids, null),
|
|
66
|
+
descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
|
|
67
|
+
excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
|
|
68
|
+
acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
69
|
+
status: string_helper_1.StringHelper.trim(lancamento.status, null),
|
|
70
|
+
empresa: {
|
|
71
|
+
ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(lancamento.empresa.path),
|
|
72
|
+
documento: string_helper_1.StringHelper.trim(lancamento.empresa.documento, null),
|
|
73
|
+
fantasia: string_helper_1.StringHelper.trim(lancamento.empresa.fantasia, null),
|
|
74
|
+
razao: string_helper_1.StringHelper.trim(lancamento.empresa.razao, null),
|
|
75
|
+
},
|
|
76
|
+
ocorrencia: lancamento.ocorrencia
|
|
77
|
+
? {
|
|
78
|
+
uid: string_helper_1.StringHelper.trim(lancamento.ocorrencia.uid, null),
|
|
79
|
+
descricao: string_helper_1.StringHelper.trim(lancamento.ocorrencia.descricao, null),
|
|
80
|
+
tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
81
|
+
}
|
|
82
|
+
: null,
|
|
83
|
+
todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, true),
|
|
84
|
+
periodos: ((_a = lancamento.periodos) === null || _a === void 0 ? void 0 : _a.length) ? lancamento.periodos : null,
|
|
85
|
+
data_atualizacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_atualizacao),
|
|
86
|
+
data_criacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_criacao),
|
|
87
|
+
integracao: lancamento.integracao
|
|
88
|
+
? {
|
|
89
|
+
id: lancamento.integracao.id,
|
|
90
|
+
tipo: lancamento.integracao.tipo,
|
|
91
|
+
detalhes: lancamento.integracao.detalhes,
|
|
92
|
+
}
|
|
93
|
+
: undefined,
|
|
94
|
+
};
|
|
95
|
+
return (0, lodash_1.omitBy)(lancamentoFire, lodash_1.isUndefined);
|
|
96
|
+
};
|
|
97
|
+
return LancamentoFireConvert;
|
|
98
|
+
}());
|
|
99
|
+
exports.LancamentoFireConvert = LancamentoFireConvert;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Lancamento, LancamentoBase, LancamentoIntegracaoTipoEnum, LancamentoPeriodo, LancamentoStatusEnum, TipoAcaoLancamentoEnum } from '.';
|
|
2
|
-
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
3
|
-
export declare class LancamentoJsonData implements LancamentoBase {
|
|
4
|
-
colaboradores_ids: string[];
|
|
5
|
-
data_criacao: string;
|
|
6
|
-
data_atualizacao: string;
|
|
7
|
-
_id: string;
|
|
8
|
-
_path: string;
|
|
9
|
-
data_inicial: string;
|
|
10
|
-
data_final: string | null;
|
|
11
|
-
descricao: string;
|
|
12
|
-
excluido: boolean;
|
|
13
|
-
acao_tipo: TipoAcaoLancamentoEnum;
|
|
14
|
-
ocorrencia?: {
|
|
15
|
-
uid: string;
|
|
16
|
-
tipo: TipoOcorrenciaFrequenciaEnum;
|
|
17
|
-
descricao: string;
|
|
18
|
-
};
|
|
19
|
-
periodos?: LancamentoPeriodo[];
|
|
20
|
-
empresa: {
|
|
21
|
-
path: string;
|
|
22
|
-
razao: string;
|
|
23
|
-
fantasia: string;
|
|
24
|
-
documento: string;
|
|
25
|
-
};
|
|
26
|
-
status: LancamentoStatusEnum;
|
|
27
|
-
todos_colaboradores: boolean;
|
|
28
|
-
integracao?: {
|
|
29
|
-
id: string;
|
|
30
|
-
tipo: LancamentoIntegracaoTipoEnum;
|
|
31
|
-
detalhes?: {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
gestor_parecer?: string;
|
|
34
|
-
parecer_gestor_concatenado_jornada: boolean;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export declare abstract class LancamentoJsonConvert {
|
|
39
|
-
static fromJson(obj: LancamentoJsonData): Lancamento;
|
|
40
|
-
static toJson(lancamento: Lancamento): Partial<LancamentoJsonData>;
|
|
41
|
-
}
|
|
1
|
+
import { Lancamento, LancamentoBase, LancamentoIntegracaoTipoEnum, LancamentoPeriodo, LancamentoStatusEnum, TipoAcaoLancamentoEnum } from '.';
|
|
2
|
+
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
3
|
+
export declare class LancamentoJsonData implements LancamentoBase {
|
|
4
|
+
colaboradores_ids: string[];
|
|
5
|
+
data_criacao: string;
|
|
6
|
+
data_atualizacao: string;
|
|
7
|
+
_id: string;
|
|
8
|
+
_path: string;
|
|
9
|
+
data_inicial: string;
|
|
10
|
+
data_final: string | null;
|
|
11
|
+
descricao: string;
|
|
12
|
+
excluido: boolean;
|
|
13
|
+
acao_tipo: TipoAcaoLancamentoEnum;
|
|
14
|
+
ocorrencia?: {
|
|
15
|
+
uid: string;
|
|
16
|
+
tipo: TipoOcorrenciaFrequenciaEnum;
|
|
17
|
+
descricao: string;
|
|
18
|
+
};
|
|
19
|
+
periodos?: LancamentoPeriodo[];
|
|
20
|
+
empresa: {
|
|
21
|
+
path: string;
|
|
22
|
+
razao: string;
|
|
23
|
+
fantasia: string;
|
|
24
|
+
documento: string;
|
|
25
|
+
};
|
|
26
|
+
status: LancamentoStatusEnum;
|
|
27
|
+
todos_colaboradores: boolean;
|
|
28
|
+
integracao?: {
|
|
29
|
+
id: string;
|
|
30
|
+
tipo: LancamentoIntegracaoTipoEnum;
|
|
31
|
+
detalhes?: {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
gestor_parecer?: string;
|
|
34
|
+
parecer_gestor_concatenado_jornada: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export declare abstract class LancamentoJsonConvert {
|
|
39
|
+
static fromJson(obj: LancamentoJsonData): Lancamento;
|
|
40
|
+
static toJson(lancamento: Lancamento): Partial<LancamentoJsonData>;
|
|
41
|
+
}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LancamentoJsonConvert = exports.LancamentoJsonData = void 0;
|
|
4
|
-
var lodash_1 = require("lodash");
|
|
5
|
-
var _1 = require(".");
|
|
6
|
-
var array_helpers_1 = require("../../utils/array-helpers");
|
|
7
|
-
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
8
|
-
var date_helper_1 = require("../../utils/date-helper");
|
|
9
|
-
var string_helper_1 = require("../../utils/string-helper");
|
|
10
|
-
var LancamentoJsonData = /** @class */ (function () {
|
|
11
|
-
function LancamentoJsonData() {
|
|
12
|
-
}
|
|
13
|
-
return LancamentoJsonData;
|
|
14
|
-
}());
|
|
15
|
-
exports.LancamentoJsonData = LancamentoJsonData;
|
|
16
|
-
var LancamentoJsonConvert = /** @class */ (function () {
|
|
17
|
-
function LancamentoJsonConvert() {
|
|
18
|
-
}
|
|
19
|
-
LancamentoJsonConvert.fromJson = function (obj) {
|
|
20
|
-
var _a, _b, _c, _d;
|
|
21
|
-
return new _1.Lancamento({
|
|
22
|
-
_id: (_a = obj._id) !== null && _a !== void 0 ? _a : null,
|
|
23
|
-
_path: (_b = obj._path) !== null && _b !== void 0 ? _b : null,
|
|
24
|
-
data_inicial: date_helper_1.DateHelper.fromString(obj.data_inicial, null),
|
|
25
|
-
data_final: obj.data_final
|
|
26
|
-
? date_helper_1.DateHelper.fromString(obj.data_final, null)
|
|
27
|
-
: null,
|
|
28
|
-
descricao: string_helper_1.StringHelper.trim(obj.descricao, null),
|
|
29
|
-
excluido: boolean_helper_1.BooleanHelper.check(obj.excluido, false),
|
|
30
|
-
status: string_helper_1.StringHelper.trim(obj.status, null),
|
|
31
|
-
acao_tipo: string_helper_1.StringHelper.trim(obj.acao_tipo, null),
|
|
32
|
-
empresa: {
|
|
33
|
-
documento: string_helper_1.StringHelper.trim(obj.empresa.documento, null),
|
|
34
|
-
fantasia: string_helper_1.StringHelper.trim(obj.empresa.fantasia, null),
|
|
35
|
-
razao: string_helper_1.StringHelper.trim(obj.empresa.razao, null),
|
|
36
|
-
path: string_helper_1.StringHelper.trim(obj.empresa.path, null),
|
|
37
|
-
},
|
|
38
|
-
ocorrencia: obj.ocorrencia
|
|
39
|
-
? {
|
|
40
|
-
descricao: string_helper_1.StringHelper.trim(obj.ocorrencia.descricao, null),
|
|
41
|
-
uid: string_helper_1.StringHelper.trim(obj.ocorrencia.uid, null),
|
|
42
|
-
tipo: string_helper_1.StringHelper.trim(obj.ocorrencia.tipo, null),
|
|
43
|
-
}
|
|
44
|
-
: null,
|
|
45
|
-
todos_colaboradores: boolean_helper_1.BooleanHelper.check(obj.todos_colaboradores, true),
|
|
46
|
-
periodos: ((_c = obj.periodos) === null || _c === void 0 ? void 0 : _c.length) ? obj.periodos : null,
|
|
47
|
-
data_atualizacao: date_helper_1.DateHelper.fromString(obj.data_atualizacao, null),
|
|
48
|
-
data_criacao: date_helper_1.DateHelper.fromString(obj.data_criacao, null),
|
|
49
|
-
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(obj.colaboradores_ids, null),
|
|
50
|
-
integracao: obj.integracao
|
|
51
|
-
? {
|
|
52
|
-
id: obj.integracao.id,
|
|
53
|
-
tipo: obj.integracao.tipo,
|
|
54
|
-
detalhes: (_d = obj.integracao.detalhes) !== null && _d !== void 0 ? _d : undefined,
|
|
55
|
-
}
|
|
56
|
-
: undefined,
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
LancamentoJsonConvert.toJson = function (lancamento) {
|
|
60
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
61
|
-
var lancamentoJson = {
|
|
62
|
-
_id: (_a = lancamento._id) !== null && _a !== void 0 ? _a : null,
|
|
63
|
-
_path: (_b = lancamento._path) !== null && _b !== void 0 ? _b : null,
|
|
64
|
-
data_inicial: (_c = lancamento.data_inicial) === null || _c === void 0 ? void 0 : _c.toISOString(),
|
|
65
|
-
data_final: lancamento.data_final
|
|
66
|
-
? (_d = lancamento.data_final) === null || _d === void 0 ? void 0 : _d.toISOString()
|
|
67
|
-
: null,
|
|
68
|
-
descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
|
|
69
|
-
excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
|
|
70
|
-
status: string_helper_1.StringHelper.trim(lancamento.status, null),
|
|
71
|
-
acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
72
|
-
empresa: {
|
|
73
|
-
documento: string_helper_1.StringHelper.trim(lancamento.empresa.documento, null),
|
|
74
|
-
fantasia: string_helper_1.StringHelper.trim(lancamento.empresa.fantasia, null),
|
|
75
|
-
razao: string_helper_1.StringHelper.trim(lancamento.empresa.razao, null),
|
|
76
|
-
path: string_helper_1.StringHelper.trim(lancamento.empresa.path, null),
|
|
77
|
-
},
|
|
78
|
-
ocorrencia: lancamento.ocorrencia
|
|
79
|
-
? {
|
|
80
|
-
descricao: string_helper_1.StringHelper.trim(lancamento.ocorrencia.descricao, null),
|
|
81
|
-
uid: string_helper_1.StringHelper.trim(lancamento.ocorrencia.uid, null),
|
|
82
|
-
tipo: string_helper_1.StringHelper.trim(lancamento.ocorrencia.tipo, null),
|
|
83
|
-
}
|
|
84
|
-
: null,
|
|
85
|
-
todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, false),
|
|
86
|
-
periodos: ((_e = lancamento.periodos) === null || _e === void 0 ? void 0 : _e.length) ? lancamento.periodos : null,
|
|
87
|
-
data_criacao: (_f = lancamento.data_criacao) === null || _f === void 0 ? void 0 : _f.toISOString(),
|
|
88
|
-
data_atualizacao: (_g = lancamento.data_atualizacao) === null || _g === void 0 ? void 0 : _g.toISOString(),
|
|
89
|
-
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(lancamento.colaboradores_ids, undefined),
|
|
90
|
-
integracao: lancamento.integracao
|
|
91
|
-
? {
|
|
92
|
-
id: lancamento.integracao.id,
|
|
93
|
-
tipo: lancamento.integracao.tipo,
|
|
94
|
-
detalhes: lancamento.integracao.detalhes,
|
|
95
|
-
}
|
|
96
|
-
: undefined,
|
|
97
|
-
};
|
|
98
|
-
return (0, lodash_1.omitBy)(lancamentoJson, lodash_1.isUndefined);
|
|
99
|
-
};
|
|
100
|
-
return LancamentoJsonConvert;
|
|
101
|
-
}());
|
|
102
|
-
exports.LancamentoJsonConvert = LancamentoJsonConvert;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LancamentoJsonConvert = exports.LancamentoJsonData = void 0;
|
|
4
|
+
var lodash_1 = require("lodash");
|
|
5
|
+
var _1 = require(".");
|
|
6
|
+
var array_helpers_1 = require("../../utils/array-helpers");
|
|
7
|
+
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
8
|
+
var date_helper_1 = require("../../utils/date-helper");
|
|
9
|
+
var string_helper_1 = require("../../utils/string-helper");
|
|
10
|
+
var LancamentoJsonData = /** @class */ (function () {
|
|
11
|
+
function LancamentoJsonData() {
|
|
12
|
+
}
|
|
13
|
+
return LancamentoJsonData;
|
|
14
|
+
}());
|
|
15
|
+
exports.LancamentoJsonData = LancamentoJsonData;
|
|
16
|
+
var LancamentoJsonConvert = /** @class */ (function () {
|
|
17
|
+
function LancamentoJsonConvert() {
|
|
18
|
+
}
|
|
19
|
+
LancamentoJsonConvert.fromJson = function (obj) {
|
|
20
|
+
var _a, _b, _c, _d;
|
|
21
|
+
return new _1.Lancamento({
|
|
22
|
+
_id: (_a = obj._id) !== null && _a !== void 0 ? _a : null,
|
|
23
|
+
_path: (_b = obj._path) !== null && _b !== void 0 ? _b : null,
|
|
24
|
+
data_inicial: date_helper_1.DateHelper.fromString(obj.data_inicial, null),
|
|
25
|
+
data_final: obj.data_final
|
|
26
|
+
? date_helper_1.DateHelper.fromString(obj.data_final, null)
|
|
27
|
+
: null,
|
|
28
|
+
descricao: string_helper_1.StringHelper.trim(obj.descricao, null),
|
|
29
|
+
excluido: boolean_helper_1.BooleanHelper.check(obj.excluido, false),
|
|
30
|
+
status: string_helper_1.StringHelper.trim(obj.status, null),
|
|
31
|
+
acao_tipo: string_helper_1.StringHelper.trim(obj.acao_tipo, null),
|
|
32
|
+
empresa: {
|
|
33
|
+
documento: string_helper_1.StringHelper.trim(obj.empresa.documento, null),
|
|
34
|
+
fantasia: string_helper_1.StringHelper.trim(obj.empresa.fantasia, null),
|
|
35
|
+
razao: string_helper_1.StringHelper.trim(obj.empresa.razao, null),
|
|
36
|
+
path: string_helper_1.StringHelper.trim(obj.empresa.path, null),
|
|
37
|
+
},
|
|
38
|
+
ocorrencia: obj.ocorrencia
|
|
39
|
+
? {
|
|
40
|
+
descricao: string_helper_1.StringHelper.trim(obj.ocorrencia.descricao, null),
|
|
41
|
+
uid: string_helper_1.StringHelper.trim(obj.ocorrencia.uid, null),
|
|
42
|
+
tipo: string_helper_1.StringHelper.trim(obj.ocorrencia.tipo, null),
|
|
43
|
+
}
|
|
44
|
+
: null,
|
|
45
|
+
todos_colaboradores: boolean_helper_1.BooleanHelper.check(obj.todos_colaboradores, true),
|
|
46
|
+
periodos: ((_c = obj.periodos) === null || _c === void 0 ? void 0 : _c.length) ? obj.periodos : null,
|
|
47
|
+
data_atualizacao: date_helper_1.DateHelper.fromString(obj.data_atualizacao, null),
|
|
48
|
+
data_criacao: date_helper_1.DateHelper.fromString(obj.data_criacao, null),
|
|
49
|
+
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(obj.colaboradores_ids, null),
|
|
50
|
+
integracao: obj.integracao
|
|
51
|
+
? {
|
|
52
|
+
id: obj.integracao.id,
|
|
53
|
+
tipo: obj.integracao.tipo,
|
|
54
|
+
detalhes: (_d = obj.integracao.detalhes) !== null && _d !== void 0 ? _d : undefined,
|
|
55
|
+
}
|
|
56
|
+
: undefined,
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
LancamentoJsonConvert.toJson = function (lancamento) {
|
|
60
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
61
|
+
var lancamentoJson = {
|
|
62
|
+
_id: (_a = lancamento._id) !== null && _a !== void 0 ? _a : null,
|
|
63
|
+
_path: (_b = lancamento._path) !== null && _b !== void 0 ? _b : null,
|
|
64
|
+
data_inicial: (_c = lancamento.data_inicial) === null || _c === void 0 ? void 0 : _c.toISOString(),
|
|
65
|
+
data_final: lancamento.data_final
|
|
66
|
+
? (_d = lancamento.data_final) === null || _d === void 0 ? void 0 : _d.toISOString()
|
|
67
|
+
: null,
|
|
68
|
+
descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
|
|
69
|
+
excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
|
|
70
|
+
status: string_helper_1.StringHelper.trim(lancamento.status, null),
|
|
71
|
+
acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
|
|
72
|
+
empresa: {
|
|
73
|
+
documento: string_helper_1.StringHelper.trim(lancamento.empresa.documento, null),
|
|
74
|
+
fantasia: string_helper_1.StringHelper.trim(lancamento.empresa.fantasia, null),
|
|
75
|
+
razao: string_helper_1.StringHelper.trim(lancamento.empresa.razao, null),
|
|
76
|
+
path: string_helper_1.StringHelper.trim(lancamento.empresa.path, null),
|
|
77
|
+
},
|
|
78
|
+
ocorrencia: lancamento.ocorrencia
|
|
79
|
+
? {
|
|
80
|
+
descricao: string_helper_1.StringHelper.trim(lancamento.ocorrencia.descricao, null),
|
|
81
|
+
uid: string_helper_1.StringHelper.trim(lancamento.ocorrencia.uid, null),
|
|
82
|
+
tipo: string_helper_1.StringHelper.trim(lancamento.ocorrencia.tipo, null),
|
|
83
|
+
}
|
|
84
|
+
: null,
|
|
85
|
+
todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, false),
|
|
86
|
+
periodos: ((_e = lancamento.periodos) === null || _e === void 0 ? void 0 : _e.length) ? lancamento.periodos : null,
|
|
87
|
+
data_criacao: (_f = lancamento.data_criacao) === null || _f === void 0 ? void 0 : _f.toISOString(),
|
|
88
|
+
data_atualizacao: (_g = lancamento.data_atualizacao) === null || _g === void 0 ? void 0 : _g.toISOString(),
|
|
89
|
+
colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(lancamento.colaboradores_ids, undefined),
|
|
90
|
+
integracao: lancamento.integracao
|
|
91
|
+
? {
|
|
92
|
+
id: lancamento.integracao.id,
|
|
93
|
+
tipo: lancamento.integracao.tipo,
|
|
94
|
+
detalhes: lancamento.integracao.detalhes,
|
|
95
|
+
}
|
|
96
|
+
: undefined,
|
|
97
|
+
};
|
|
98
|
+
return (0, lodash_1.omitBy)(lancamentoJson, lodash_1.isUndefined);
|
|
99
|
+
};
|
|
100
|
+
return LancamentoJsonConvert;
|
|
101
|
+
}());
|
|
102
|
+
exports.LancamentoJsonConvert = LancamentoJsonConvert;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../../shared/flitModelsDependencyInjection';
|
|
2
|
-
import { VerificacaoLancamento, VerificacaoLancamentoBase, TipoReferenciaVerificacaoLancamento } from './verificacao-lancamento';
|
|
3
|
-
export declare class VerificacaoLancamentoFirestoreData implements VerificacaoLancamentoBase {
|
|
4
|
-
detalhes?: {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
usuario?: {
|
|
7
|
-
documento: string;
|
|
8
|
-
nome: string;
|
|
9
|
-
ref: FirebaseDocumentReferenceGeneric;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
referencia: {
|
|
13
|
-
tipo: TipoReferenciaVerificacaoLancamento;
|
|
14
|
-
data?: FirebaseTimestampGeneric;
|
|
15
|
-
ref: FirebaseDocumentReferenceGeneric;
|
|
16
|
-
};
|
|
17
|
-
visto: boolean;
|
|
18
|
-
data_criacao: FirebaseTimestampGeneric;
|
|
19
|
-
mensagem: string;
|
|
20
|
-
}
|
|
21
|
-
export declare abstract class VerificacaoLancamentoFireConvert {
|
|
22
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): VerificacaoLancamento;
|
|
23
|
-
static toFirestore(logLancamento: VerificacaoLancamento): Partial<VerificacaoLancamentoFirestoreData>;
|
|
24
|
-
}
|
|
1
|
+
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../../shared/flitModelsDependencyInjection';
|
|
2
|
+
import { VerificacaoLancamento, VerificacaoLancamentoBase, TipoReferenciaVerificacaoLancamento } from './verificacao-lancamento';
|
|
3
|
+
export declare class VerificacaoLancamentoFirestoreData implements VerificacaoLancamentoBase {
|
|
4
|
+
detalhes?: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
usuario?: {
|
|
7
|
+
documento: string;
|
|
8
|
+
nome: string;
|
|
9
|
+
ref: FirebaseDocumentReferenceGeneric;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
referencia: {
|
|
13
|
+
tipo: TipoReferenciaVerificacaoLancamento;
|
|
14
|
+
data?: FirebaseTimestampGeneric;
|
|
15
|
+
ref: FirebaseDocumentReferenceGeneric;
|
|
16
|
+
};
|
|
17
|
+
visto: boolean;
|
|
18
|
+
data_criacao: FirebaseTimestampGeneric;
|
|
19
|
+
mensagem: string;
|
|
20
|
+
}
|
|
21
|
+
export declare abstract class VerificacaoLancamentoFireConvert {
|
|
22
|
+
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): VerificacaoLancamento;
|
|
23
|
+
static toFirestore(logLancamento: VerificacaoLancamento): Partial<VerificacaoLancamentoFirestoreData>;
|
|
24
|
+
}
|