flit-models 3.3.19 → 3.3.21
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 +5 -2
- package/lib/models/contas/cargo/cargo-elastic-convert.d.ts +18 -0
- package/lib/models/contas/cargo/cargo-elastic-convert.js +27 -0
- package/lib/models/contas/cargo/cargo-fire-convert.d.ts +1 -0
- package/lib/models/contas/cargo/cargo-fire-convert.js +4 -2
- package/lib/models/contas/cargo/cargo-json-convert.d.ts +15 -0
- package/lib/models/contas/cargo/cargo-json-convert.js +49 -0
- package/lib/models/contas/cargo/index.d.ts +9 -5
- package/lib/models/contas/cargo/index.js +16 -14
- package/lib/models/contas/lancamento/index.d.ts +3 -0
- package/lib/models/contas/lancamento/index.js +2 -1
- package/lib/models/contas/lancamento/lancamento-elastic-convert.d.ts +2 -0
- package/lib/models/contas/lancamento/lancamento-elastic-convert.js +13 -0
- package/lib/models/contas/lancamento/lancamento-fire-convert.d.ts +3 -1
- package/lib/models/contas/lancamento/lancamento-fire-convert.js +20 -0
- package/lib/models/contas/lancamento/lancamento-json-convert.d.ts +2 -0
- package/lib/models/contas/lancamento/lancamento-json-convert.js +20 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AuditoriaModificador, AuditoriaModificadorBase, AuditoriaModificadorFireConvert, AuditoriaModificadorFirestoreData, Cargo, CargoBase, CargoFireConvert, CargoFirestoreData, 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, 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 = void 0;
|
|
3
|
+
exports.LancamentoJsonConvert = 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.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 = 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; } });
|
|
@@ -9,6 +9,9 @@ Object.defineProperty(exports, "AuditoriaModificadorFirestoreData", { enumerable
|
|
|
9
9
|
Object.defineProperty(exports, "Cargo", { enumerable: true, get: function () { return index_1.Cargo; } });
|
|
10
10
|
Object.defineProperty(exports, "CargoFireConvert", { enumerable: true, get: function () { return index_1.CargoFireConvert; } });
|
|
11
11
|
Object.defineProperty(exports, "CargoFirestoreData", { enumerable: true, get: function () { return index_1.CargoFirestoreData; } });
|
|
12
|
+
Object.defineProperty(exports, "CargoElasticConvert", { enumerable: true, get: function () { return index_1.CargoElasticConvert; } });
|
|
13
|
+
Object.defineProperty(exports, "CargoJsonData", { enumerable: true, get: function () { return index_1.CargoJsonData; } });
|
|
14
|
+
Object.defineProperty(exports, "CargoJsonConvert", { enumerable: true, get: function () { return index_1.CargoJsonConvert; } });
|
|
12
15
|
Object.defineProperty(exports, "Departamento", { enumerable: true, get: function () { return index_1.Departamento; } });
|
|
13
16
|
Object.defineProperty(exports, "DepartamentoFireConvert", { enumerable: true, get: function () { return index_1.DepartamentoFireConvert; } });
|
|
14
17
|
Object.defineProperty(exports, "DepartamentoFirestoreData", { enumerable: true, get: function () { return index_1.DepartamentoFirestoreData; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Cargo } from '.';
|
|
2
|
+
export interface CargoElasticSource {
|
|
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
|
+
cbo: string;
|
|
10
|
+
data_atualizacao_doc: string;
|
|
11
|
+
data_criacao_doc: string;
|
|
12
|
+
excluido: boolean;
|
|
13
|
+
nome: string;
|
|
14
|
+
descricao?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export declare abstract class CargoElasticConvert {
|
|
17
|
+
static fromElastic(doc: CargoElasticSource): Cargo;
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CargoElasticConvert = 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 CargoElasticConvert = /** @class */ (function () {
|
|
9
|
+
function CargoElasticConvert() {
|
|
10
|
+
}
|
|
11
|
+
CargoElasticConvert.fromElastic = function (doc) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
var docData = doc;
|
|
14
|
+
return new _1.Cargo({
|
|
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
|
+
cbo: string_helper_1.StringHelper.trim(docData.cbo, null),
|
|
18
|
+
data_atualizacao_doc: date_helper_1.DateHelper.fromString(docData.data_atualizacao_doc, new Date()),
|
|
19
|
+
data_criacao_doc: date_helper_1.DateHelper.fromString(docData.data_criacao_doc, new Date()),
|
|
20
|
+
excluido: boolean_helper_1.BooleanHelper.check(docData.excluido, false),
|
|
21
|
+
nome: string_helper_1.StringHelper.trim(docData.nome, null),
|
|
22
|
+
descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
return CargoElasticConvert;
|
|
26
|
+
}());
|
|
27
|
+
exports.CargoElasticConvert = CargoElasticConvert;
|
|
@@ -6,6 +6,7 @@ export declare class CargoFirestoreData implements CargoBase {
|
|
|
6
6
|
data_criacao_doc: FirebaseTimestampGeneric;
|
|
7
7
|
excluido: boolean;
|
|
8
8
|
nome: string;
|
|
9
|
+
descricao?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare abstract class CargoFireConvert {
|
|
11
12
|
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseDocumentSnapshotGeneric): Cargo;
|
|
@@ -14,7 +14,7 @@ var CargoFireConvert = /** @class */ (function () {
|
|
|
14
14
|
function CargoFireConvert() {
|
|
15
15
|
}
|
|
16
16
|
CargoFireConvert.fromFirestore = function (doc) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
18
18
|
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
19
19
|
return new _1.Cargo({
|
|
20
20
|
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
@@ -24,16 +24,18 @@ var CargoFireConvert = /** @class */ (function () {
|
|
|
24
24
|
data_criacao_doc: (_h = (_g = docData.data_criacao_doc) === null || _g === void 0 ? void 0 : _g.toDate()) !== null && _h !== void 0 ? _h : null,
|
|
25
25
|
excluido: (_j = docData.excluido) !== null && _j !== void 0 ? _j : false,
|
|
26
26
|
nome: (_k = docData.nome) !== null && _k !== void 0 ? _k : null,
|
|
27
|
+
descricao: (_l = docData.descricao) !== null && _l !== void 0 ? _l : null,
|
|
27
28
|
});
|
|
28
29
|
};
|
|
29
30
|
CargoFireConvert.toFirestore = function (cargo) {
|
|
30
|
-
var _a, _b, _c, _d, _e;
|
|
31
|
+
var _a, _b, _c, _d, _e, _f;
|
|
31
32
|
var cargoFire = {
|
|
32
33
|
cbo: (_a = cargo.cbo) !== null && _a !== void 0 ? _a : null,
|
|
33
34
|
data_atualizacao_doc: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_atualizacao_doc)) !== null && _b !== void 0 ? _b : null,
|
|
34
35
|
data_criacao_doc: (_c = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_criacao_doc)) !== null && _c !== void 0 ? _c : null,
|
|
35
36
|
excluido: (_d = cargo.excluido) !== null && _d !== void 0 ? _d : false,
|
|
36
37
|
nome: (_e = cargo.nome) !== null && _e !== void 0 ? _e : null,
|
|
38
|
+
descricao: (_f = cargo.descricao) !== null && _f !== void 0 ? _f : null,
|
|
37
39
|
};
|
|
38
40
|
return (0, lodash_1.omitBy)(cargoFire, lodash_1.isUndefined);
|
|
39
41
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Cargo, CargoBase } from '.';
|
|
2
|
+
export declare class CargoJsonData implements CargoBase {
|
|
3
|
+
_id: string;
|
|
4
|
+
_path: string;
|
|
5
|
+
cbo: string;
|
|
6
|
+
data_atualizacao_doc: string;
|
|
7
|
+
data_criacao_doc: string;
|
|
8
|
+
excluido: boolean;
|
|
9
|
+
nome: string;
|
|
10
|
+
descricao?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class CargoJsonConvert {
|
|
13
|
+
static fromJson(obj: CargoJsonData): Cargo;
|
|
14
|
+
static toJson(cargo: Cargo): Partial<CargoJsonData>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CargoJsonConvert = exports.CargoJsonData = void 0;
|
|
4
|
+
var lodash_1 = require("lodash");
|
|
5
|
+
var _1 = require(".");
|
|
6
|
+
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
7
|
+
var date_helper_1 = require("../../utils/date-helper");
|
|
8
|
+
var string_helper_1 = require("../../utils/string-helper");
|
|
9
|
+
var CargoJsonData = /** @class */ (function () {
|
|
10
|
+
function CargoJsonData() {
|
|
11
|
+
}
|
|
12
|
+
return CargoJsonData;
|
|
13
|
+
}());
|
|
14
|
+
exports.CargoJsonData = CargoJsonData;
|
|
15
|
+
var CargoJsonConvert = /** @class */ (function () {
|
|
16
|
+
function CargoJsonConvert() {
|
|
17
|
+
}
|
|
18
|
+
CargoJsonConvert.fromJson = function (obj) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
return new _1.Cargo({
|
|
21
|
+
_id: (_a = obj._id) !== null && _a !== void 0 ? _a : null,
|
|
22
|
+
_path: (_b = obj._path) !== null && _b !== void 0 ? _b : null,
|
|
23
|
+
cbo: string_helper_1.StringHelper.trim(obj.cbo, null),
|
|
24
|
+
data_atualizacao_doc: date_helper_1.DateHelper.fromString(obj.data_atualizacao_doc, null),
|
|
25
|
+
data_criacao_doc: date_helper_1.DateHelper.fromString(obj.data_criacao_doc, null),
|
|
26
|
+
excluido: boolean_helper_1.BooleanHelper.check(obj.excluido, false),
|
|
27
|
+
nome: string_helper_1.StringHelper.trim(obj.nome, null),
|
|
28
|
+
descricao: obj.descricao ? string_helper_1.StringHelper.trim(obj.descricao, null) : null,
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
CargoJsonConvert.toJson = function (cargo) {
|
|
32
|
+
var _a, _b, _c, _d;
|
|
33
|
+
var cargoJson = {
|
|
34
|
+
_id: (_a = cargo._id) !== null && _a !== void 0 ? _a : null,
|
|
35
|
+
_path: (_b = cargo._path) !== null && _b !== void 0 ? _b : null,
|
|
36
|
+
cbo: string_helper_1.StringHelper.trim(cargo.cbo, null),
|
|
37
|
+
data_atualizacao_doc: (_c = cargo.data_atualizacao_doc) === null || _c === void 0 ? void 0 : _c.toISOString(),
|
|
38
|
+
data_criacao_doc: (_d = cargo.data_criacao_doc) === null || _d === void 0 ? void 0 : _d.toISOString(),
|
|
39
|
+
excluido: boolean_helper_1.BooleanHelper.check(cargo.excluido, false),
|
|
40
|
+
nome: string_helper_1.StringHelper.trim(cargo.nome, null),
|
|
41
|
+
descricao: cargo.descricao
|
|
42
|
+
? string_helper_1.StringHelper.trim(cargo.descricao, null)
|
|
43
|
+
: null,
|
|
44
|
+
};
|
|
45
|
+
return (0, lodash_1.omitBy)(cargoJson, lodash_1.isUndefined);
|
|
46
|
+
};
|
|
47
|
+
return CargoJsonConvert;
|
|
48
|
+
}());
|
|
49
|
+
exports.CargoJsonConvert = CargoJsonConvert;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
export * from './cargo-fire-convert';
|
|
2
|
+
export * from './cargo-elastic-convert';
|
|
3
|
+
export * from './cargo-json-convert';
|
|
2
4
|
export interface CargoBase {
|
|
3
5
|
cbo: string;
|
|
4
6
|
data_atualizacao_doc: any;
|
|
5
7
|
data_criacao_doc: any;
|
|
6
8
|
excluido: boolean;
|
|
7
9
|
nome: string;
|
|
10
|
+
descricao?: string;
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
10
13
|
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
11
14
|
*
|
|
12
15
|
* @export
|
|
13
|
-
* @class
|
|
16
|
+
* @class Cargo
|
|
14
17
|
*/
|
|
15
18
|
export declare class Cargo implements CargoBase {
|
|
16
19
|
_id: string;
|
|
@@ -20,10 +23,11 @@ export declare class Cargo implements CargoBase {
|
|
|
20
23
|
data_criacao_doc: Date;
|
|
21
24
|
excluido: boolean;
|
|
22
25
|
nome: string;
|
|
26
|
+
descricao?: string;
|
|
23
27
|
/**
|
|
24
|
-
* Creates an instance of
|
|
25
|
-
* @param {Partial<
|
|
26
|
-
* @memberof
|
|
28
|
+
* Creates an instance of Cargo.
|
|
29
|
+
* @param {Partial<Cargo>} cargoPayload
|
|
30
|
+
* @memberof Cargo
|
|
27
31
|
*/
|
|
28
|
-
constructor(
|
|
32
|
+
constructor(cargoPayload: Partial<Cargo>);
|
|
29
33
|
}
|
|
@@ -16,29 +16,31 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.Cargo = void 0;
|
|
18
18
|
__exportStar(require("./cargo-fire-convert"), exports);
|
|
19
|
+
__exportStar(require("./cargo-elastic-convert"), exports);
|
|
20
|
+
__exportStar(require("./cargo-json-convert"), exports);
|
|
19
21
|
/**
|
|
20
22
|
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
21
23
|
*
|
|
22
24
|
* @export
|
|
23
|
-
* @class
|
|
25
|
+
* @class Cargo
|
|
24
26
|
*/
|
|
25
27
|
var Cargo = /** @class */ (function () {
|
|
26
28
|
// #endregion
|
|
27
29
|
/**
|
|
28
|
-
* Creates an instance of
|
|
29
|
-
* @param {Partial<
|
|
30
|
-
* @memberof
|
|
30
|
+
* Creates an instance of Cargo.
|
|
31
|
+
* @param {Partial<Cargo>} cargoPayload
|
|
32
|
+
* @memberof Cargo
|
|
31
33
|
*/
|
|
32
|
-
function Cargo(
|
|
33
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
34
|
-
this._id = (_a =
|
|
35
|
-
this._path = (_b =
|
|
36
|
-
this.cbo = (_c =
|
|
37
|
-
this.data_atualizacao_doc =
|
|
38
|
-
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
34
|
+
function Cargo(cargoPayload) {
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
36
|
+
this._id = (_a = cargoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
37
|
+
this._path = (_b = cargoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
38
|
+
this.cbo = (_c = cargoPayload.cbo) !== null && _c !== void 0 ? _c : undefined;
|
|
39
|
+
this.data_atualizacao_doc = (_d = cargoPayload.data_atualizacao_doc) !== null && _d !== void 0 ? _d : undefined;
|
|
40
|
+
this.data_criacao_doc = (_e = cargoPayload.data_criacao_doc) !== null && _e !== void 0 ? _e : undefined;
|
|
41
|
+
this.excluido = (_f = cargoPayload.excluido) !== null && _f !== void 0 ? _f : undefined;
|
|
42
|
+
this.nome = (_g = cargoPayload.nome) !== null && _g !== void 0 ? _g : undefined;
|
|
43
|
+
this.descricao = (_h = cargoPayload.descricao) !== null && _h !== void 0 ? _h : undefined;
|
|
42
44
|
}
|
|
43
45
|
return Cargo;
|
|
44
46
|
}());
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AuditoriaModificador } from '../auditoria/modificador';
|
|
1
2
|
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
2
3
|
export * from './lancamento-elastic-convert';
|
|
3
4
|
export * from './lancamento-fire-convert';
|
|
@@ -65,6 +66,7 @@ export interface LancamentoBase {
|
|
|
65
66
|
todos_colaboradores: any;
|
|
66
67
|
colaboradores_ids: any[];
|
|
67
68
|
periodos?: LancamentoPeriodoBase[];
|
|
69
|
+
modificador?: AuditoriaModificador;
|
|
68
70
|
}
|
|
69
71
|
export declare class LancamentoPeriodo implements LancamentoPeriodoBase {
|
|
70
72
|
inicial: {
|
|
@@ -117,6 +119,7 @@ export declare class Lancamento implements LancamentoBase {
|
|
|
117
119
|
parecer_gestor_concatenado_jornada: boolean;
|
|
118
120
|
};
|
|
119
121
|
};
|
|
122
|
+
modificador?: AuditoriaModificador;
|
|
120
123
|
/**
|
|
121
124
|
* Creates an instance of Lancamento.
|
|
122
125
|
* @param {Partial<Lancamento>} lancamentoPayload
|
|
@@ -70,7 +70,7 @@ var Lancamento = /** @class */ (function () {
|
|
|
70
70
|
* @memberof Lancamento
|
|
71
71
|
*/
|
|
72
72
|
function Lancamento(lancamentoPayload) {
|
|
73
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
73
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
74
74
|
this._id = (_a = lancamentoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
75
75
|
this._path = (_b = lancamentoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
76
76
|
this.data_criacao = (_c = lancamentoPayload.data_criacao) !== null && _c !== void 0 ? _c : undefined;
|
|
@@ -88,6 +88,7 @@ var Lancamento = /** @class */ (function () {
|
|
|
88
88
|
(_p = lancamentoPayload.todos_colaboradores) !== null && _p !== void 0 ? _p : undefined;
|
|
89
89
|
this.colaboradores_ids = (_q = lancamentoPayload.colaboradores_ids) !== null && _q !== void 0 ? _q : undefined;
|
|
90
90
|
this.integracao = (_r = lancamentoPayload.integracao) !== null && _r !== void 0 ? _r : undefined;
|
|
91
|
+
this.modificador = (_s = lancamentoPayload.modificador) !== null && _s !== void 0 ? _s : undefined;
|
|
91
92
|
}
|
|
92
93
|
return Lancamento;
|
|
93
94
|
}());
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Lancamento, LancamentoIntegracaoTipoEnum, LancamentoPeriodo, LancamentoStatusEnum } from '.';
|
|
2
|
+
import { AuditoriaModificador } from '../auditoria/modificador';
|
|
2
3
|
interface Empresa {
|
|
3
4
|
documento: string;
|
|
4
5
|
fantasia: string;
|
|
@@ -44,6 +45,7 @@ export interface LancamentoElasticSource {
|
|
|
44
45
|
periodos: LancamentoPeriodo[] | null;
|
|
45
46
|
status: LancamentoStatusEnum;
|
|
46
47
|
todos_colaboradores: boolean;
|
|
48
|
+
modificador?: AuditoriaModificador;
|
|
47
49
|
}
|
|
48
50
|
export declare abstract class LancamentoElasticConvert {
|
|
49
51
|
static fromElastic(doc: LancamentoElasticSource): Lancamento;
|
|
@@ -6,6 +6,7 @@ var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
|
6
6
|
var string_helper_1 = require("../../utils/string-helper");
|
|
7
7
|
var _1 = require(".");
|
|
8
8
|
var date_helper_1 = require("../../utils/date-helper");
|
|
9
|
+
var lodash_1 = require("lodash");
|
|
9
10
|
var LancamentoElasticConvert = /** @class */ (function () {
|
|
10
11
|
function LancamentoElasticConvert() {
|
|
11
12
|
}
|
|
@@ -42,6 +43,18 @@ var LancamentoElasticConvert = /** @class */ (function () {
|
|
|
42
43
|
periodos: docData.periodos ? docData.periodos : null,
|
|
43
44
|
status: string_helper_1.StringHelper.trim(docData.status, null),
|
|
44
45
|
todos_colaboradores: boolean_helper_1.BooleanHelper.check(docData.todos_colaboradores, false),
|
|
46
|
+
modificador: docData.modificador
|
|
47
|
+
? (0, lodash_1.omitBy)({
|
|
48
|
+
id: (0, lodash_1.get)(docData.modificador, 'id', null),
|
|
49
|
+
ref: (0, lodash_1.get)(docData.modificador, 'ref', null)
|
|
50
|
+
? (0, lodash_1.get)(docData.modificador, 'ref', null)
|
|
51
|
+
: undefined,
|
|
52
|
+
tipo: (0, lodash_1.get)(docData.modificador, 'tipo', null),
|
|
53
|
+
nome: string_helper_1.StringHelper.trim((0, lodash_1.get)(docData.modificador, 'nome', null), null),
|
|
54
|
+
documento: string_helper_1.StringHelper.trim((0, lodash_1.get)(docData.modificador, 'documento', null), null),
|
|
55
|
+
email: string_helper_1.StringHelper.trim((0, lodash_1.get)(docData.modificador, 'email', null), null),
|
|
56
|
+
}, lodash_1.isUndefined)
|
|
57
|
+
: undefined,
|
|
45
58
|
});
|
|
46
59
|
};
|
|
47
60
|
return LancamentoElasticConvert;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Lancamento, LancamentoBase, LancamentoIntegracaoTipoEnum, LancamentoPeriodo, LancamentoStatusEnum, TipoAcaoLancamentoEnum } from '.';
|
|
2
2
|
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
3
|
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
4
|
-
|
|
4
|
+
import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
|
|
5
|
+
export declare class LancamentoFirestoreData implements Omit<LancamentoBase, 'modificador'> {
|
|
5
6
|
data_criacao: FirebaseTimestampGeneric;
|
|
6
7
|
data_atualizacao: FirebaseTimestampGeneric;
|
|
7
8
|
data_inicial: FirebaseTimestampGeneric;
|
|
@@ -33,6 +34,7 @@ export declare class LancamentoFirestoreData implements LancamentoBase {
|
|
|
33
34
|
status: LancamentoStatusEnum;
|
|
34
35
|
todos_colaboradores: boolean;
|
|
35
36
|
colaboradores_ids: string[];
|
|
37
|
+
modificador?: AuditoriaModificadorFirestoreData;
|
|
36
38
|
}
|
|
37
39
|
export declare abstract class LancamentoFireConvert {
|
|
38
40
|
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Lancamento;
|
|
@@ -53,6 +53,16 @@ var LancamentoFireConvert = /** @class */ (function () {
|
|
|
53
53
|
detalhes: docData.integracao.detalhes,
|
|
54
54
|
}, lodash_1.isUndefined)
|
|
55
55
|
: undefined,
|
|
56
|
+
modificador: docData.modificador
|
|
57
|
+
? (0, lodash_1.omitBy)({
|
|
58
|
+
id: (0, lodash_1.get)(docData.modificador, 'id', null),
|
|
59
|
+
ref: (0, lodash_1.get)(docData.modificador, 'ref.path', null),
|
|
60
|
+
tipo: (0, lodash_1.get)(docData.modificador, 'tipo', null),
|
|
61
|
+
nome: string_helper_1.StringHelper.trim((0, lodash_1.get)(docData.modificador, 'nome', null), null),
|
|
62
|
+
documento: string_helper_1.StringHelper.trim((0, lodash_1.get)(docData.modificador, 'documento', null), null),
|
|
63
|
+
email: string_helper_1.StringHelper.trim((0, lodash_1.get)(docData.modificador, 'email', null), null),
|
|
64
|
+
}, lodash_1.isUndefined)
|
|
65
|
+
: undefined,
|
|
56
66
|
});
|
|
57
67
|
};
|
|
58
68
|
LancamentoFireConvert.toFirestore = function (lancamento) {
|
|
@@ -91,6 +101,16 @@ var LancamentoFireConvert = /** @class */ (function () {
|
|
|
91
101
|
detalhes: lancamento.integracao.detalhes,
|
|
92
102
|
}, lodash_1.isUndefined)
|
|
93
103
|
: undefined,
|
|
104
|
+
modificador: lancamento.modificador
|
|
105
|
+
? (0, lodash_1.omitBy)({
|
|
106
|
+
id: (0, lodash_1.get)(lancamento.modificador, 'id', null),
|
|
107
|
+
ref: (0, lodash_1.get)(lancamento.modificador, 'ref', null),
|
|
108
|
+
tipo: (0, lodash_1.get)(lancamento.modificador, 'tipo', null),
|
|
109
|
+
nome: string_helper_1.StringHelper.trim((0, lodash_1.get)(lancamento.modificador, 'nome', null), null),
|
|
110
|
+
documento: string_helper_1.StringHelper.trim((0, lodash_1.get)(lancamento.modificador, 'documento', null), null),
|
|
111
|
+
email: string_helper_1.StringHelper.trim((0, lodash_1.get)(lancamento.modificador, 'email', null), null),
|
|
112
|
+
}, lodash_1.isUndefined)
|
|
113
|
+
: undefined,
|
|
94
114
|
};
|
|
95
115
|
return (0, lodash_1.omitBy)(lancamentoFire, lodash_1.isUndefined);
|
|
96
116
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Lancamento, LancamentoBase, LancamentoIntegracaoTipoEnum, LancamentoPeriodo, LancamentoStatusEnum, TipoAcaoLancamentoEnum } from '.';
|
|
2
2
|
import { TipoOcorrenciaFrequenciaEnum } from '../ocorrencia_frequencia';
|
|
3
|
+
import { AuditoriaModificador } from '../auditoria/modificador';
|
|
3
4
|
export declare class LancamentoJsonData implements LancamentoBase {
|
|
4
5
|
colaboradores_ids: string[];
|
|
5
6
|
data_criacao: string;
|
|
@@ -34,6 +35,7 @@ export declare class LancamentoJsonData implements LancamentoBase {
|
|
|
34
35
|
parecer_gestor_concatenado_jornada: boolean;
|
|
35
36
|
};
|
|
36
37
|
};
|
|
38
|
+
modificador?: AuditoriaModificador;
|
|
37
39
|
}
|
|
38
40
|
export declare abstract class LancamentoJsonConvert {
|
|
39
41
|
static fromJson(obj: LancamentoJsonData): Lancamento;
|
|
@@ -54,6 +54,16 @@ var LancamentoJsonConvert = /** @class */ (function () {
|
|
|
54
54
|
detalhes: obj.integracao.detalhes,
|
|
55
55
|
}, lodash_1.isUndefined)
|
|
56
56
|
: undefined,
|
|
57
|
+
modificador: obj.modificador
|
|
58
|
+
? (0, lodash_1.omitBy)({
|
|
59
|
+
id: (0, lodash_1.get)(obj.modificador, 'id', null),
|
|
60
|
+
ref: (0, lodash_1.get)(obj.modificador, 'ref', null),
|
|
61
|
+
tipo: (0, lodash_1.get)(obj.modificador, 'tipo', null),
|
|
62
|
+
nome: string_helper_1.StringHelper.trim((0, lodash_1.get)(obj.modificador, 'nome', null), null),
|
|
63
|
+
documento: string_helper_1.StringHelper.trim((0, lodash_1.get)(obj.modificador, 'documento', null), null),
|
|
64
|
+
email: string_helper_1.StringHelper.trim((0, lodash_1.get)(obj.modificador, 'email', null), null),
|
|
65
|
+
}, lodash_1.isUndefined)
|
|
66
|
+
: undefined,
|
|
57
67
|
});
|
|
58
68
|
};
|
|
59
69
|
LancamentoJsonConvert.toJson = function (lancamento) {
|
|
@@ -94,6 +104,16 @@ var LancamentoJsonConvert = /** @class */ (function () {
|
|
|
94
104
|
detalhes: lancamento.integracao.detalhes,
|
|
95
105
|
}, lodash_1.isUndefined)
|
|
96
106
|
: undefined,
|
|
107
|
+
modificador: lancamento.modificador
|
|
108
|
+
? (0, lodash_1.omitBy)({
|
|
109
|
+
id: (0, lodash_1.get)(lancamento.modificador, 'id', null),
|
|
110
|
+
ref: (0, lodash_1.get)(lancamento.modificador, 'ref', null),
|
|
111
|
+
tipo: (0, lodash_1.get)(lancamento.modificador, 'tipo', null),
|
|
112
|
+
nome: string_helper_1.StringHelper.trim((0, lodash_1.get)(lancamento.modificador, 'nome', null), null),
|
|
113
|
+
documento: string_helper_1.StringHelper.trim((0, lodash_1.get)(lancamento.modificador, 'documento', null), null),
|
|
114
|
+
email: string_helper_1.StringHelper.trim((0, lodash_1.get)(lancamento.modificador, 'email', null), null),
|
|
115
|
+
}, lodash_1.isUndefined)
|
|
116
|
+
: undefined,
|
|
97
117
|
};
|
|
98
118
|
return (0, lodash_1.omitBy)(lancamentoJson, lodash_1.isUndefined);
|
|
99
119
|
};
|