flit-models 3.2.8 → 3.2.10
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 +10 -3
- package/lib/models/contas/escala/escala-fire-convert.d.ts +2 -0
- package/lib/models/contas/escala/escala-fire-convert.js +5 -1
- package/lib/models/contas/escala/index.d.ts +5 -1
- package/lib/models/contas/escala/index.js +16 -13
- package/lib/models/contas/modelo-faixa-hora-extra/index.d.ts +90 -0
- package/lib/models/contas/modelo-faixa-hora-extra/index.js +59 -0
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.d.ts +39 -0
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.js +95 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +1 -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, EnumExcecaoStatus, EnumExcecaoTipo, Escala, EscalaBase, EscalaFireConvert, EscalaFirestoreData, EscalaHelpers, Excecao, Feriado, FeriadoBase, FeriadoFireConvert, FeriadoFirestoreData, FeriadoJsonConvert, FeriadoJsonData, FeriadoTipoEnum, IExcecao, Lancamento, LancamentoBase, LancamentoFireConvert, LancamentoFirestoreData, LancamentoJsonConvert, LancamentoJsonData, LancamentoPeriodo, LancamentoPeriodoBase, LancamentoStatusEnum, OcorrenciaFrequenciaCopiaEmDocumento, OcorrenciaFrequenciaRelacaoJornadas, OcorrenciaFrequenciaRelacaoJornadasValue, RegimesCompensacaoEscala, SolicitacoesUsuario, SolicitacoesUsuarioBase, StatusSolicitacaoUsuario, TipoAcaoLancamentoEnum, TipoAnexoExtensao, TipoOcorrenciaFrequenciaEnum, TipoReferenciaVerificacaoLancamento, TipoSolicitacaoUsuario, VerificacaoLancamento, VerificacaoLancamentoBase, VerificacaoLancamentoFireConvert, VerificacaoLancamentoFirestoreData,
|
|
1
|
+
export { AuditoriaModificador, AuditoriaModificadorBase, AuditoriaModificadorFireConvert, AuditoriaModificadorFirestoreData, Cargo, CargoBase, CargoFireConvert, CargoFirestoreData, Departamento, DepartamentoBase, DepartamentoFireConvert, DepartamentoFirestoreData, EmpresaFeriado, EmpresaFeriadoBase, EmpresaFeriadoFireConvert, EmpresaFeriadoFirestoreData, EnumAuditoriaModificadorTipo, EnumExcecaoStatus, EnumExcecaoTipo, Escala, EscalaBase, EscalaFireConvert, EscalaFirestoreData, EscalaHelpers, Excecao, Feriado, FeriadoBase, FeriadoFireConvert, FeriadoFirestoreData, FeriadoJsonConvert, FeriadoJsonData, FeriadoTipoEnum, IExcecao, Lancamento, LancamentoBase, LancamentoFireConvert, LancamentoFirestoreData, LancamentoIntegracaoTipoEnum, LancamentoJsonConvert, LancamentoJsonData, LancamentoPeriodo, LancamentoPeriodoBase, LancamentoStatusEnum, ModeloFaixaHoraExtra, ModeloFaixaHoraExtraBase, ModeloFaixaHoraExtraFireConvert, ModeloFaixaHoraExtraFirestoreData, NiveisDeFaixaDeHorasExtras, OcorrenciaFrequenciaCopiaEmDocumento, OcorrenciaFrequenciaRelacaoJornadas, OcorrenciaFrequenciaRelacaoJornadasValue, RegimesCompensacaoEscala, SolicitacoesUsuario, SolicitacoesUsuarioBase, SolicitacoesUsuarioFireConvert, SolicitacoesUsuarioFirestoreData, StatusSolicitacaoUsuario, TipoAcaoLancamentoEnum, TipoAnexoExtensao, TipoFaixaDeHorasExtras, TipoOcorrenciaFrequenciaEnum, TipoReferenciaVerificacaoLancamento, TipoSolicitacaoUsuario, VerificacaoLancamento, VerificacaoLancamentoBase, VerificacaoLancamentoFireConvert, VerificacaoLancamentoFirestoreData, } from './models/index';
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TipoSolicitacaoUsuario = exports.TipoReferenciaVerificacaoLancamento = exports.TipoOcorrenciaFrequenciaEnum = exports.TipoFaixaDeHorasExtras = exports.TipoAnexoExtensao = exports.TipoAcaoLancamentoEnum = exports.StatusSolicitacaoUsuario = exports.SolicitacoesUsuarioFirestoreData = exports.SolicitacoesUsuarioFireConvert = exports.SolicitacoesUsuario = exports.RegimesCompensacaoEscala = exports.OcorrenciaFrequenciaRelacaoJornadas = exports.NiveisDeFaixaDeHorasExtras = exports.ModeloFaixaHoraExtraFirestoreData = exports.ModeloFaixaHoraExtraFireConvert = exports.ModeloFaixaHoraExtra = exports.LancamentoStatusEnum = exports.LancamentoPeriodo = exports.LancamentoJsonData = exports.LancamentoJsonConvert = exports.LancamentoIntegracaoTipoEnum = exports.LancamentoFirestoreData = exports.LancamentoFireConvert = exports.Lancamento = exports.FeriadoTipoEnum = exports.FeriadoJsonData = exports.FeriadoJsonConvert = exports.FeriadoFirestoreData = exports.FeriadoFireConvert = exports.Feriado = exports.Excecao = exports.EscalaHelpers = exports.EscalaFirestoreData = exports.EscalaFireConvert = exports.Escala = exports.EnumExcecaoTipo = exports.EnumExcecaoStatus = exports.EnumAuditoriaModificadorTipo = exports.EmpresaFeriadoFirestoreData = exports.EmpresaFeriadoFireConvert = exports.EmpresaFeriado = exports.DepartamentoFirestoreData = exports.DepartamentoFireConvert = exports.Departamento = exports.CargoFirestoreData = exports.CargoFireConvert = exports.Cargo = exports.AuditoriaModificadorFirestoreData = exports.AuditoriaModificadorFireConvert = exports.AuditoriaModificador = void 0;
|
|
4
|
+
exports.VerificacaoLancamentoFirestoreData = exports.VerificacaoLancamentoFireConvert = exports.VerificacaoLancamento = void 0;
|
|
4
5
|
var index_1 = require("./models/index");
|
|
5
6
|
Object.defineProperty(exports, "AuditoriaModificador", { enumerable: true, get: function () { return index_1.AuditoriaModificador; } });
|
|
6
7
|
Object.defineProperty(exports, "AuditoriaModificadorFireConvert", { enumerable: true, get: function () { return index_1.AuditoriaModificadorFireConvert; } });
|
|
@@ -31,21 +32,27 @@ Object.defineProperty(exports, "FeriadoTipoEnum", { enumerable: true, get: funct
|
|
|
31
32
|
Object.defineProperty(exports, "Lancamento", { enumerable: true, get: function () { return index_1.Lancamento; } });
|
|
32
33
|
Object.defineProperty(exports, "LancamentoFireConvert", { enumerable: true, get: function () { return index_1.LancamentoFireConvert; } });
|
|
33
34
|
Object.defineProperty(exports, "LancamentoFirestoreData", { enumerable: true, get: function () { return index_1.LancamentoFirestoreData; } });
|
|
35
|
+
Object.defineProperty(exports, "LancamentoIntegracaoTipoEnum", { enumerable: true, get: function () { return index_1.LancamentoIntegracaoTipoEnum; } });
|
|
34
36
|
Object.defineProperty(exports, "LancamentoJsonConvert", { enumerable: true, get: function () { return index_1.LancamentoJsonConvert; } });
|
|
35
37
|
Object.defineProperty(exports, "LancamentoJsonData", { enumerable: true, get: function () { return index_1.LancamentoJsonData; } });
|
|
36
38
|
Object.defineProperty(exports, "LancamentoPeriodo", { enumerable: true, get: function () { return index_1.LancamentoPeriodo; } });
|
|
37
39
|
Object.defineProperty(exports, "LancamentoStatusEnum", { enumerable: true, get: function () { return index_1.LancamentoStatusEnum; } });
|
|
40
|
+
Object.defineProperty(exports, "ModeloFaixaHoraExtra", { enumerable: true, get: function () { return index_1.ModeloFaixaHoraExtra; } });
|
|
41
|
+
Object.defineProperty(exports, "ModeloFaixaHoraExtraFireConvert", { enumerable: true, get: function () { return index_1.ModeloFaixaHoraExtraFireConvert; } });
|
|
42
|
+
Object.defineProperty(exports, "ModeloFaixaHoraExtraFirestoreData", { enumerable: true, get: function () { return index_1.ModeloFaixaHoraExtraFirestoreData; } });
|
|
43
|
+
Object.defineProperty(exports, "NiveisDeFaixaDeHorasExtras", { enumerable: true, get: function () { return index_1.NiveisDeFaixaDeHorasExtras; } });
|
|
38
44
|
Object.defineProperty(exports, "OcorrenciaFrequenciaRelacaoJornadas", { enumerable: true, get: function () { return index_1.OcorrenciaFrequenciaRelacaoJornadas; } });
|
|
39
45
|
Object.defineProperty(exports, "RegimesCompensacaoEscala", { enumerable: true, get: function () { return index_1.RegimesCompensacaoEscala; } });
|
|
40
46
|
Object.defineProperty(exports, "SolicitacoesUsuario", { enumerable: true, get: function () { return index_1.SolicitacoesUsuario; } });
|
|
47
|
+
Object.defineProperty(exports, "SolicitacoesUsuarioFireConvert", { enumerable: true, get: function () { return index_1.SolicitacoesUsuarioFireConvert; } });
|
|
48
|
+
Object.defineProperty(exports, "SolicitacoesUsuarioFirestoreData", { enumerable: true, get: function () { return index_1.SolicitacoesUsuarioFirestoreData; } });
|
|
41
49
|
Object.defineProperty(exports, "StatusSolicitacaoUsuario", { enumerable: true, get: function () { return index_1.StatusSolicitacaoUsuario; } });
|
|
42
50
|
Object.defineProperty(exports, "TipoAcaoLancamentoEnum", { enumerable: true, get: function () { return index_1.TipoAcaoLancamentoEnum; } });
|
|
43
51
|
Object.defineProperty(exports, "TipoAnexoExtensao", { enumerable: true, get: function () { return index_1.TipoAnexoExtensao; } });
|
|
52
|
+
Object.defineProperty(exports, "TipoFaixaDeHorasExtras", { enumerable: true, get: function () { return index_1.TipoFaixaDeHorasExtras; } });
|
|
44
53
|
Object.defineProperty(exports, "TipoOcorrenciaFrequenciaEnum", { enumerable: true, get: function () { return index_1.TipoOcorrenciaFrequenciaEnum; } });
|
|
45
54
|
Object.defineProperty(exports, "TipoReferenciaVerificacaoLancamento", { enumerable: true, get: function () { return index_1.TipoReferenciaVerificacaoLancamento; } });
|
|
46
55
|
Object.defineProperty(exports, "TipoSolicitacaoUsuario", { enumerable: true, get: function () { return index_1.TipoSolicitacaoUsuario; } });
|
|
47
56
|
Object.defineProperty(exports, "VerificacaoLancamento", { enumerable: true, get: function () { return index_1.VerificacaoLancamento; } });
|
|
48
57
|
Object.defineProperty(exports, "VerificacaoLancamentoFireConvert", { enumerable: true, get: function () { return index_1.VerificacaoLancamentoFireConvert; } });
|
|
49
58
|
Object.defineProperty(exports, "VerificacaoLancamentoFirestoreData", { enumerable: true, get: function () { return index_1.VerificacaoLancamentoFirestoreData; } });
|
|
50
|
-
Object.defineProperty(exports, "SolicitacoesUsuarioFireConvert", { enumerable: true, get: function () { return index_1.SolicitacoesUsuarioFireConvert; } });
|
|
51
|
-
Object.defineProperty(exports, "SolicitacoesUsuarioFirestoreData", { enumerable: true, get: function () { return index_1.SolicitacoesUsuarioFirestoreData; } });
|
|
@@ -39,6 +39,8 @@ export declare class EscalaFirestoreData implements EscalaBase {
|
|
|
39
39
|
descanso: string;
|
|
40
40
|
}[];
|
|
41
41
|
}[];
|
|
42
|
+
faixa_hora_extra_semanal_ref?: FirebaseDocumentReferenceGeneric;
|
|
43
|
+
faixa_hora_extra_diferenciada_ref?: FirebaseDocumentReferenceGeneric;
|
|
42
44
|
}
|
|
43
45
|
export declare abstract class EscalaFireConvert {
|
|
44
46
|
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Escala;
|
|
@@ -14,7 +14,7 @@ var EscalaFireConvert = /** @class */ (function () {
|
|
|
14
14
|
function EscalaFireConvert() {
|
|
15
15
|
}
|
|
16
16
|
EscalaFireConvert.fromFirestore = function (doc) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4;
|
|
18
18
|
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
19
19
|
return new _1.Escala({
|
|
20
20
|
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
@@ -62,6 +62,8 @@ var EscalaFireConvert = /** @class */ (function () {
|
|
|
62
62
|
repetir: jornada.repetir,
|
|
63
63
|
});
|
|
64
64
|
}),
|
|
65
|
+
faixa_hora_extra_semanal_ref: ((_2 = docData.faixa_hora_extra_semanal_ref) === null || _2 === void 0 ? void 0 : _2.path) || null,
|
|
66
|
+
faixa_hora_extra_diferenciada_ref: (_4 = (_3 = docData.faixa_hora_extra_diferenciada_ref) === null || _3 === void 0 ? void 0 : _3.path) !== null && _4 !== void 0 ? _4 : null,
|
|
65
67
|
});
|
|
66
68
|
};
|
|
67
69
|
EscalaFireConvert.toFirestore = function (escala) {
|
|
@@ -110,6 +112,8 @@ var EscalaFireConvert = /** @class */ (function () {
|
|
|
110
112
|
repetir: jornada.repetir,
|
|
111
113
|
});
|
|
112
114
|
}),
|
|
115
|
+
faixa_hora_extra_semanal_ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(escala.faixa_hora_extra_semanal_ref) || null,
|
|
116
|
+
faixa_hora_extra_diferenciada_ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(escala.faixa_hora_extra_diferenciada_ref) || null,
|
|
113
117
|
};
|
|
114
118
|
return (0, lodash_1.omitBy)(escalaFire, lodash_1.isUndefined);
|
|
115
119
|
};
|
|
@@ -47,6 +47,8 @@ export interface EscalaBase {
|
|
|
47
47
|
descanso: string;
|
|
48
48
|
}[];
|
|
49
49
|
}[];
|
|
50
|
+
faixa_hora_extra_semanal_ref?: any;
|
|
51
|
+
faixa_hora_extra_diferenciada_ref?: any;
|
|
50
52
|
}
|
|
51
53
|
/**
|
|
52
54
|
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
@@ -95,5 +97,7 @@ export declare class Escala implements EscalaBase {
|
|
|
95
97
|
descanso: string;
|
|
96
98
|
}[];
|
|
97
99
|
}[];
|
|
98
|
-
|
|
100
|
+
faixa_hora_extra_semanal_ref?: string;
|
|
101
|
+
faixa_hora_extra_diferenciada_ref?: string;
|
|
102
|
+
constructor(escalaPayload: Partial<Escala>);
|
|
99
103
|
}
|
|
@@ -47,21 +47,24 @@ exports.EscalaHelpers = EscalaHelpers;
|
|
|
47
47
|
*/
|
|
48
48
|
var Escala = /** @class */ (function () {
|
|
49
49
|
// #endregion
|
|
50
|
-
function Escala(
|
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
52
|
-
this._id = (_a =
|
|
53
|
-
this._path = (_b =
|
|
54
|
-
this.data_atualizacao_doc =
|
|
55
|
-
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.excluido = (_g = feriadoPayload.excluido) !== null && _g !== void 0 ? _g : undefined;
|
|
50
|
+
function Escala(escalaPayload) {
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
52
|
+
this._id = (_a = escalaPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
53
|
+
this._path = (_b = escalaPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
54
|
+
this.data_atualizacao_doc = (_c = escalaPayload.data_atualizacao_doc) !== null && _c !== void 0 ? _c : undefined;
|
|
55
|
+
this.data_criacao_doc = (_d = escalaPayload.data_criacao_doc) !== null && _d !== void 0 ? _d : undefined;
|
|
56
|
+
this.data_inicial = (_e = escalaPayload.data_inicial) !== null && _e !== void 0 ? _e : undefined;
|
|
57
|
+
this.descricao = (_f = escalaPayload.descricao) !== null && _f !== void 0 ? _f : undefined;
|
|
58
|
+
this.excluido = (_g = escalaPayload.excluido) !== null && _g !== void 0 ? _g : undefined;
|
|
60
59
|
this.existe_marcacao_pre_assinalada =
|
|
61
|
-
(_h =
|
|
62
|
-
this.jornadas = (_j =
|
|
60
|
+
(_h = escalaPayload.existe_marcacao_pre_assinalada) !== null && _h !== void 0 ? _h : undefined;
|
|
61
|
+
this.jornadas = (_j = escalaPayload.jornadas) !== null && _j !== void 0 ? _j : undefined;
|
|
63
62
|
this.regime_compensacao_dias =
|
|
64
|
-
(_k =
|
|
63
|
+
(_k = escalaPayload.regime_compensacao_dias) !== null && _k !== void 0 ? _k : undefined;
|
|
64
|
+
this.faixa_hora_extra_semanal_ref =
|
|
65
|
+
(_l = escalaPayload.faixa_hora_extra_semanal_ref) !== null && _l !== void 0 ? _l : undefined;
|
|
66
|
+
this.faixa_hora_extra_diferenciada_ref =
|
|
67
|
+
(_m = escalaPayload.faixa_hora_extra_diferenciada_ref) !== null && _m !== void 0 ? _m : undefined;
|
|
65
68
|
}
|
|
66
69
|
return Escala;
|
|
67
70
|
}());
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export * from './modelo-faixa-hora-extra-fire-convert';
|
|
2
|
+
export interface ModeloFaixaHoraExtraBase {
|
|
3
|
+
data_atualizacao_doc: any;
|
|
4
|
+
data_criacao_doc: any;
|
|
5
|
+
excluido: boolean;
|
|
6
|
+
descricao_modelo: string;
|
|
7
|
+
descricao_faixas: {
|
|
8
|
+
total: {
|
|
9
|
+
faixa1: string;
|
|
10
|
+
faixa2: string;
|
|
11
|
+
faixa3: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
tipo: TipoFaixaDeHorasExtras;
|
|
15
|
+
semanal?: {
|
|
16
|
+
total: {
|
|
17
|
+
segunda: NiveisDeFaixaDeHorasExtras;
|
|
18
|
+
terca: NiveisDeFaixaDeHorasExtras;
|
|
19
|
+
quarta: NiveisDeFaixaDeHorasExtras;
|
|
20
|
+
quinta: NiveisDeFaixaDeHorasExtras;
|
|
21
|
+
sexta: NiveisDeFaixaDeHorasExtras;
|
|
22
|
+
sabado: NiveisDeFaixaDeHorasExtras;
|
|
23
|
+
domingo: NiveisDeFaixaDeHorasExtras;
|
|
24
|
+
feriado: NiveisDeFaixaDeHorasExtras;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
diferenciada?: {
|
|
28
|
+
total: {
|
|
29
|
+
faixa1: number;
|
|
30
|
+
faixa2: number;
|
|
31
|
+
faixa3: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare enum NiveisDeFaixaDeHorasExtras {
|
|
36
|
+
FAIXA_1 = "FAIXA_1",
|
|
37
|
+
FAIXA_2 = "FAIXA_2",
|
|
38
|
+
FAIXA_3 = "FAIXA_3"
|
|
39
|
+
}
|
|
40
|
+
export declare enum TipoFaixaDeHorasExtras {
|
|
41
|
+
SEMANAL = "SEMANAL",
|
|
42
|
+
DIFERENCIADA = "DIFERENCIADA"
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Internal class col contas/${contaId}/modelos_faixas_horas_extras/${modeloId}.
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class FaixaHoraExtra
|
|
49
|
+
*/
|
|
50
|
+
export declare class ModeloFaixaHoraExtra implements ModeloFaixaHoraExtraBase {
|
|
51
|
+
_id: string;
|
|
52
|
+
_path: string;
|
|
53
|
+
data_atualizacao_doc: Date;
|
|
54
|
+
data_criacao_doc: Date;
|
|
55
|
+
excluido: boolean;
|
|
56
|
+
descricao_modelo: string;
|
|
57
|
+
descricao_faixas: {
|
|
58
|
+
total: {
|
|
59
|
+
faixa1: string;
|
|
60
|
+
faixa2: string;
|
|
61
|
+
faixa3: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
tipo: TipoFaixaDeHorasExtras;
|
|
65
|
+
semanal?: {
|
|
66
|
+
total: {
|
|
67
|
+
segunda: NiveisDeFaixaDeHorasExtras;
|
|
68
|
+
terca: NiveisDeFaixaDeHorasExtras;
|
|
69
|
+
quarta: NiveisDeFaixaDeHorasExtras;
|
|
70
|
+
quinta: NiveisDeFaixaDeHorasExtras;
|
|
71
|
+
sexta: NiveisDeFaixaDeHorasExtras;
|
|
72
|
+
sabado: NiveisDeFaixaDeHorasExtras;
|
|
73
|
+
domingo: NiveisDeFaixaDeHorasExtras;
|
|
74
|
+
feriado: NiveisDeFaixaDeHorasExtras;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
diferenciada?: {
|
|
78
|
+
total: {
|
|
79
|
+
faixa1: number;
|
|
80
|
+
faixa2: number;
|
|
81
|
+
faixa3: number;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Creates an instance of Lancamento.
|
|
86
|
+
* @param {Partial<Lancamento>} lancamentoPayload
|
|
87
|
+
* @memberof Lancamento
|
|
88
|
+
*/
|
|
89
|
+
constructor(lancamentoPayload: Partial<ModeloFaixaHoraExtra>);
|
|
90
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ModeloFaixaHoraExtra = exports.TipoFaixaDeHorasExtras = exports.NiveisDeFaixaDeHorasExtras = void 0;
|
|
18
|
+
__exportStar(require("./modelo-faixa-hora-extra-fire-convert"), exports);
|
|
19
|
+
var NiveisDeFaixaDeHorasExtras;
|
|
20
|
+
(function (NiveisDeFaixaDeHorasExtras) {
|
|
21
|
+
NiveisDeFaixaDeHorasExtras["FAIXA_1"] = "FAIXA_1";
|
|
22
|
+
NiveisDeFaixaDeHorasExtras["FAIXA_2"] = "FAIXA_2";
|
|
23
|
+
NiveisDeFaixaDeHorasExtras["FAIXA_3"] = "FAIXA_3";
|
|
24
|
+
})(NiveisDeFaixaDeHorasExtras = exports.NiveisDeFaixaDeHorasExtras || (exports.NiveisDeFaixaDeHorasExtras = {}));
|
|
25
|
+
var TipoFaixaDeHorasExtras;
|
|
26
|
+
(function (TipoFaixaDeHorasExtras) {
|
|
27
|
+
TipoFaixaDeHorasExtras["SEMANAL"] = "SEMANAL";
|
|
28
|
+
TipoFaixaDeHorasExtras["DIFERENCIADA"] = "DIFERENCIADA";
|
|
29
|
+
})(TipoFaixaDeHorasExtras = exports.TipoFaixaDeHorasExtras || (exports.TipoFaixaDeHorasExtras = {}));
|
|
30
|
+
/**
|
|
31
|
+
* Internal class col contas/${contaId}/modelos_faixas_horas_extras/${modeloId}.
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @class FaixaHoraExtra
|
|
35
|
+
*/
|
|
36
|
+
var ModeloFaixaHoraExtra = /** @class */ (function () {
|
|
37
|
+
// #endregion
|
|
38
|
+
/**
|
|
39
|
+
* Creates an instance of Lancamento.
|
|
40
|
+
* @param {Partial<Lancamento>} lancamentoPayload
|
|
41
|
+
* @memberof Lancamento
|
|
42
|
+
*/
|
|
43
|
+
function ModeloFaixaHoraExtra(lancamentoPayload) {
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45
|
+
this._id = (_a = lancamentoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
46
|
+
this._path = (_b = lancamentoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
47
|
+
this.data_atualizacao_doc =
|
|
48
|
+
(_c = lancamentoPayload.data_atualizacao_doc) !== null && _c !== void 0 ? _c : undefined;
|
|
49
|
+
this.data_criacao_doc = (_d = lancamentoPayload.data_criacao_doc) !== null && _d !== void 0 ? _d : undefined;
|
|
50
|
+
this.excluido = (_e = lancamentoPayload.excluido) !== null && _e !== void 0 ? _e : undefined;
|
|
51
|
+
this.descricao_modelo = (_f = lancamentoPayload.descricao_modelo) !== null && _f !== void 0 ? _f : undefined;
|
|
52
|
+
this.descricao_faixas = (_g = lancamentoPayload.descricao_faixas) !== null && _g !== void 0 ? _g : undefined;
|
|
53
|
+
this.tipo = (_h = lancamentoPayload.tipo) !== null && _h !== void 0 ? _h : undefined;
|
|
54
|
+
this.semanal = (_j = lancamentoPayload.semanal) !== null && _j !== void 0 ? _j : undefined;
|
|
55
|
+
this.diferenciada = (_k = lancamentoPayload.diferenciada) !== null && _k !== void 0 ? _k : undefined;
|
|
56
|
+
}
|
|
57
|
+
return ModeloFaixaHoraExtra;
|
|
58
|
+
}());
|
|
59
|
+
exports.ModeloFaixaHoraExtra = ModeloFaixaHoraExtra;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ModeloFaixaHoraExtra, ModeloFaixaHoraExtraBase, NiveisDeFaixaDeHorasExtras, TipoFaixaDeHorasExtras } from '.';
|
|
2
|
+
import { FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
|
+
export declare class ModeloFaixaHoraExtraFirestoreData implements ModeloFaixaHoraExtraBase {
|
|
4
|
+
data_atualizacao_doc: FirebaseTimestampGeneric;
|
|
5
|
+
data_criacao_doc: FirebaseTimestampGeneric;
|
|
6
|
+
descricao_modelo: string;
|
|
7
|
+
excluido: boolean;
|
|
8
|
+
descricao_faixas: {
|
|
9
|
+
total: {
|
|
10
|
+
faixa1: string;
|
|
11
|
+
faixa2: string;
|
|
12
|
+
faixa3: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
tipo: TipoFaixaDeHorasExtras;
|
|
16
|
+
semanal?: {
|
|
17
|
+
total: {
|
|
18
|
+
segunda: NiveisDeFaixaDeHorasExtras;
|
|
19
|
+
terca: NiveisDeFaixaDeHorasExtras;
|
|
20
|
+
quarta: NiveisDeFaixaDeHorasExtras;
|
|
21
|
+
quinta: NiveisDeFaixaDeHorasExtras;
|
|
22
|
+
sexta: NiveisDeFaixaDeHorasExtras;
|
|
23
|
+
sabado: NiveisDeFaixaDeHorasExtras;
|
|
24
|
+
domingo: NiveisDeFaixaDeHorasExtras;
|
|
25
|
+
feriado: NiveisDeFaixaDeHorasExtras;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
diferenciada?: {
|
|
29
|
+
total: {
|
|
30
|
+
faixa1: number;
|
|
31
|
+
faixa2: number;
|
|
32
|
+
faixa3: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare abstract class ModeloFaixaHoraExtraFireConvert {
|
|
37
|
+
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): ModeloFaixaHoraExtra;
|
|
38
|
+
static toFirestore(faixa: ModeloFaixaHoraExtra): Partial<ModeloFaixaHoraExtraFirestoreData>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModeloFaixaHoraExtraFireConvert = exports.ModeloFaixaHoraExtraFirestoreData = void 0;
|
|
4
|
+
var lodash_1 = require("lodash");
|
|
5
|
+
var _1 = require(".");
|
|
6
|
+
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
7
|
+
var string_helper_1 = require("../../utils/string-helper");
|
|
8
|
+
var ModeloFaixaHoraExtraFirestoreData = /** @class */ (function () {
|
|
9
|
+
function ModeloFaixaHoraExtraFirestoreData() {
|
|
10
|
+
}
|
|
11
|
+
return ModeloFaixaHoraExtraFirestoreData;
|
|
12
|
+
}());
|
|
13
|
+
exports.ModeloFaixaHoraExtraFirestoreData = ModeloFaixaHoraExtraFirestoreData;
|
|
14
|
+
var ModeloFaixaHoraExtraFireConvert = /** @class */ (function () {
|
|
15
|
+
function ModeloFaixaHoraExtraFireConvert() {
|
|
16
|
+
}
|
|
17
|
+
ModeloFaixaHoraExtraFireConvert.fromFirestore = function (doc) {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
19
|
+
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
20
|
+
return new _1.ModeloFaixaHoraExtra({
|
|
21
|
+
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
22
|
+
_path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
|
|
23
|
+
data_atualizacao_doc: (_e = (_d = docData.data_atualizacao_doc) === null || _d === void 0 ? void 0 : _d.toDate()) !== null && _e !== void 0 ? _e : null,
|
|
24
|
+
data_criacao_doc: (_g = (_f = docData.data_criacao_doc) === null || _f === void 0 ? void 0 : _f.toDate()) !== null && _g !== void 0 ? _g : null,
|
|
25
|
+
descricao_modelo: string_helper_1.StringHelper.trim(docData.descricao_modelo, null),
|
|
26
|
+
excluido: (_h = docData.excluido) !== null && _h !== void 0 ? _h : false,
|
|
27
|
+
descricao_faixas: {
|
|
28
|
+
total: {
|
|
29
|
+
faixa1: string_helper_1.StringHelper.trim(docData.descricao_faixas.total.faixa1, null),
|
|
30
|
+
faixa2: string_helper_1.StringHelper.trim(docData.descricao_faixas.total.faixa2, null),
|
|
31
|
+
faixa3: string_helper_1.StringHelper.trim(docData.descricao_faixas.total.faixa3, null),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
tipo: (_j = docData.tipo) !== null && _j !== void 0 ? _j : null,
|
|
35
|
+
semanal: {
|
|
36
|
+
total: {
|
|
37
|
+
segunda: (_k = docData.semanal.total.segunda) !== null && _k !== void 0 ? _k : null,
|
|
38
|
+
terca: (_l = docData.semanal.total.segunda) !== null && _l !== void 0 ? _l : null,
|
|
39
|
+
quarta: (_m = docData.semanal.total.segunda) !== null && _m !== void 0 ? _m : null,
|
|
40
|
+
quinta: (_o = docData.semanal.total.segunda) !== null && _o !== void 0 ? _o : null,
|
|
41
|
+
sexta: (_p = docData.semanal.total.segunda) !== null && _p !== void 0 ? _p : null,
|
|
42
|
+
sabado: (_q = docData.semanal.total.segunda) !== null && _q !== void 0 ? _q : null,
|
|
43
|
+
domingo: (_r = docData.semanal.total.segunda) !== null && _r !== void 0 ? _r : null,
|
|
44
|
+
feriado: (_s = docData.semanal.total.segunda) !== null && _s !== void 0 ? _s : null,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
diferenciada: {
|
|
48
|
+
total: {
|
|
49
|
+
faixa1: (_t = docData.diferenciada.total.faixa1) !== null && _t !== void 0 ? _t : null,
|
|
50
|
+
faixa2: (_u = docData.diferenciada.total.faixa2) !== null && _u !== void 0 ? _u : null,
|
|
51
|
+
faixa3: (_v = docData.diferenciada.total.faixa3) !== null && _v !== void 0 ? _v : null,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
ModeloFaixaHoraExtraFireConvert.toFirestore = function (faixa) {
|
|
57
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
58
|
+
var faixaHoraExtraFire = {
|
|
59
|
+
data_atualizacao_doc: (_a = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(faixa.data_atualizacao_doc)) !== null && _a !== void 0 ? _a : null,
|
|
60
|
+
data_criacao_doc: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(faixa.data_criacao_doc)) !== null && _b !== void 0 ? _b : null,
|
|
61
|
+
descricao_modelo: (_c = faixa.descricao_modelo) !== null && _c !== void 0 ? _c : null,
|
|
62
|
+
excluido: (_d = faixa.excluido) !== null && _d !== void 0 ? _d : false,
|
|
63
|
+
descricao_faixas: {
|
|
64
|
+
total: {
|
|
65
|
+
faixa1: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa1, null),
|
|
66
|
+
faixa2: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa2, null),
|
|
67
|
+
faixa3: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa3, null),
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
tipo: (_e = faixa.tipo) !== null && _e !== void 0 ? _e : null,
|
|
71
|
+
semanal: {
|
|
72
|
+
total: {
|
|
73
|
+
segunda: (_f = faixa.semanal.total.segunda) !== null && _f !== void 0 ? _f : null,
|
|
74
|
+
terca: (_g = faixa.semanal.total.terca) !== null && _g !== void 0 ? _g : null,
|
|
75
|
+
quarta: (_h = faixa.semanal.total.quarta) !== null && _h !== void 0 ? _h : null,
|
|
76
|
+
quinta: (_j = faixa.semanal.total.quinta) !== null && _j !== void 0 ? _j : null,
|
|
77
|
+
sexta: (_k = faixa.semanal.total.sexta) !== null && _k !== void 0 ? _k : null,
|
|
78
|
+
sabado: (_l = faixa.semanal.total.sabado) !== null && _l !== void 0 ? _l : null,
|
|
79
|
+
domingo: (_m = faixa.semanal.total.domingo) !== null && _m !== void 0 ? _m : null,
|
|
80
|
+
feriado: (_o = faixa.semanal.total.feriado) !== null && _o !== void 0 ? _o : null,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
diferenciada: {
|
|
84
|
+
total: {
|
|
85
|
+
faixa1: (_p = faixa.diferenciada.total.faixa1) !== null && _p !== void 0 ? _p : null,
|
|
86
|
+
faixa2: (_q = faixa.diferenciada.total.faixa2) !== null && _q !== void 0 ? _q : null,
|
|
87
|
+
faixa3: (_r = faixa.diferenciada.total.faixa3) !== null && _r !== void 0 ? _r : null,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
return (0, lodash_1.omitBy)(faixaHoraExtraFire, lodash_1.isUndefined);
|
|
92
|
+
};
|
|
93
|
+
return ModeloFaixaHoraExtraFireConvert;
|
|
94
|
+
}());
|
|
95
|
+
exports.ModeloFaixaHoraExtraFireConvert = ModeloFaixaHoraExtraFireConvert;
|
package/lib/models/index.d.ts
CHANGED
package/lib/models/index.js
CHANGED
|
@@ -23,3 +23,4 @@ __exportStar(require("./contas/feriado"), exports);
|
|
|
23
23
|
__exportStar(require("./contas/lancamento"), exports);
|
|
24
24
|
__exportStar(require("./contas/ocorrencia_frequencia"), exports);
|
|
25
25
|
__exportStar(require("./contas/solicitacoes-usuario"), exports);
|
|
26
|
+
__exportStar(require("./contas/modelo-faixa-hora-extra"), exports);
|