flit-models 3.2.21 → 3.2.23
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.js +2 -2
- package/package.json +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/models/contas/auditoria/modificador/index.d.ts +0 -29
- package/lib/models/contas/auditoria/modificador/index.js +0 -43
- package/lib/models/contas/auditoria/modificador/modificador-fire-convert.d.ts +0 -14
- package/lib/models/contas/auditoria/modificador/modificador-fire-convert.js +0 -43
- package/lib/models/contas/cargo/cargo-fire-convert.d.ts +0 -13
- package/lib/models/contas/cargo/cargo-fire-convert.js +0 -42
- package/lib/models/contas/cargo/index.d.ts +0 -29
- package/lib/models/contas/cargo/index.js +0 -45
- package/lib/models/contas/departamento/departamento-fire-convert.d.ts +0 -12
- package/lib/models/contas/departamento/departamento-fire-convert.js +0 -40
- package/lib/models/contas/departamento/index.d.ts +0 -27
- package/lib/models/contas/departamento/index.js +0 -44
- package/lib/models/contas/escala/escala-fire-convert.d.ts +0 -48
- package/lib/models/contas/escala/escala-fire-convert.js +0 -122
- package/lib/models/contas/escala/index.d.ts +0 -103
- package/lib/models/contas/escala/index.js +0 -71
- package/lib/models/contas/excecoes.d.ts +0 -84
- package/lib/models/contas/excecoes.js +0 -79
- package/lib/models/contas/feriado/empresa-feriado-fire-convert.d.ts +0 -13
- package/lib/models/contas/feriado/empresa-feriado-fire-convert.js +0 -43
- package/lib/models/contas/feriado/empresa-feriado.d.ts +0 -29
- package/lib/models/contas/feriado/empresa-feriado.js +0 -29
- package/lib/models/contas/feriado/feriado-fire-convert.d.ts +0 -16
- package/lib/models/contas/feriado/feriado-fire-convert.js +0 -50
- package/lib/models/contas/feriado/feriado-json-convert.d.ts +0 -17
- package/lib/models/contas/feriado/feriado-json-convert.js +0 -50
- package/lib/models/contas/feriado/index.d.ts +0 -43
- package/lib/models/contas/feriado/index.js +0 -55
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.d.ts +0 -25
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.js +0 -49
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.d.ts +0 -24
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.js +0 -38
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.d.ts +0 -28
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.js +0 -28
- package/lib/models/contas/historico_relatorios_ponto_app/index.d.ts +0 -51
- package/lib/models/contas/historico_relatorios_ponto_app/index.js +0 -41
- package/lib/models/contas/lancamento/index.d.ts +0 -122
- package/lib/models/contas/lancamento/index.js +0 -94
- package/lib/models/contas/lancamento/lancamento-fire-convert.d.ts +0 -36
- package/lib/models/contas/lancamento/lancamento-fire-convert.js +0 -91
- package/lib/models/contas/lancamento/lancamento-json-convert.d.ts +0 -37
- package/lib/models/contas/lancamento/lancamento-json-convert.js +0 -92
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.d.ts +0 -24
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.js +0 -80
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.d.ts +0 -55
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.js +0 -34
- package/lib/models/contas/modelo-faixa-hora-extra/index.d.ts +0 -94
- package/lib/models/contas/modelo-faixa-hora-extra/index.js +0 -58
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.d.ts +0 -39
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.js +0 -109
- package/lib/models/contas/ocorrencia_frequencia/index.d.ts +0 -30
- package/lib/models/contas/ocorrencia_frequencia/index.js +0 -76
- package/lib/models/contas/parametros_compartilhados.d.ts +0 -4
- package/lib/models/contas/parametros_compartilhados.js +0 -8
- package/lib/models/contas/regimes_compensacao.d.ts +0 -5
- package/lib/models/contas/regimes_compensacao.js +0 -9
- package/lib/models/contas/solicitacoes-usuario/index.d.ts +0 -89
- package/lib/models/contas/solicitacoes-usuario/index.js +0 -70
- package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.d.ts +0 -39
- package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.js +0 -107
- package/lib/models/index.d.ts +0 -15
- package/lib/models/index.js +0 -31
- package/lib/models/utils/array-helpers.d.ts +0 -3
- package/lib/models/utils/array-helpers.js +0 -17
- package/lib/models/utils/boolean-helper.d.ts +0 -3
- package/lib/models/utils/boolean-helper.js +0 -17
- package/lib/models/utils/date-helper.d.ts +0 -4
- package/lib/models/utils/date-helper.js +0 -21
- package/lib/models/utils/string-helper.d.ts +0 -5
- package/lib/models/utils/string-helper.js +0 -33
- package/lib/models/utils/type-guards.d.ts +0 -17
- package/lib/models/utils/type-guards.js +0 -27
- package/lib/shared/flitModelsDependencyInjection.d.ts +0 -24
- package/lib/shared/flitModelsDependencyInjection.js +0 -61
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { RegimesCompensacaoConta } from '../regimes_compensacao';
|
|
2
|
-
export * from './escala-fire-convert';
|
|
3
|
-
export declare enum RegimesCompensacaoEscala {
|
|
4
|
-
bancohoras = "BANCO_HORAS",
|
|
5
|
-
horasextras = "HORAS_EXTRAS",
|
|
6
|
-
padrao = "PADRAO"
|
|
7
|
-
}
|
|
8
|
-
export declare abstract class EscalaHelpers {
|
|
9
|
-
static obterEquivalenciaRegimeEscalaComConta(valor: RegimesCompensacaoEscala): RegimesCompensacaoConta.BancoDeHoras | RegimesCompensacaoConta.HorasExtras;
|
|
10
|
-
}
|
|
11
|
-
export interface EscalaBase {
|
|
12
|
-
data_atualizacao_doc: any;
|
|
13
|
-
data_criacao_doc: any;
|
|
14
|
-
data_inicial: any;
|
|
15
|
-
descricao: string;
|
|
16
|
-
excluido: boolean;
|
|
17
|
-
existe_marcacao_pre_assinalada: boolean;
|
|
18
|
-
regime_compensacao_dias: {
|
|
19
|
-
seg: RegimesCompensacaoEscala;
|
|
20
|
-
ter: RegimesCompensacaoEscala;
|
|
21
|
-
qua: RegimesCompensacaoEscala;
|
|
22
|
-
qui: RegimesCompensacaoEscala;
|
|
23
|
-
sex: RegimesCompensacaoEscala;
|
|
24
|
-
sab: RegimesCompensacaoEscala;
|
|
25
|
-
dom: RegimesCompensacaoEscala;
|
|
26
|
-
fer?: RegimesCompensacaoEscala;
|
|
27
|
-
};
|
|
28
|
-
jornadas: {
|
|
29
|
-
repetir: number;
|
|
30
|
-
ocorrencia_frequencia_ref: any;
|
|
31
|
-
marcacoes_pre_assinaladas?: {
|
|
32
|
-
todos_intervalos: boolean;
|
|
33
|
-
indices: number[];
|
|
34
|
-
};
|
|
35
|
-
periodos: {
|
|
36
|
-
entrada: {
|
|
37
|
-
hora: string;
|
|
38
|
-
timezone_value: string;
|
|
39
|
-
origem: null | 'marcacao pre assinalada';
|
|
40
|
-
};
|
|
41
|
-
saida: {
|
|
42
|
-
hora: string;
|
|
43
|
-
timezone_value: string;
|
|
44
|
-
origem: null | 'marcacao pre assinalada';
|
|
45
|
-
};
|
|
46
|
-
duracao: string;
|
|
47
|
-
descanso: string;
|
|
48
|
-
}[];
|
|
49
|
-
}[];
|
|
50
|
-
faixa_hora_extra_semanal_ref?: any;
|
|
51
|
-
faixa_hora_extra_diferenciada_ref?: any;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
55
|
-
*
|
|
56
|
-
* @export
|
|
57
|
-
* @class Lancamento
|
|
58
|
-
*/
|
|
59
|
-
export declare class Escala implements EscalaBase {
|
|
60
|
-
_id: string;
|
|
61
|
-
_path: string;
|
|
62
|
-
data_atualizacao_doc: Date;
|
|
63
|
-
data_criacao_doc: Date;
|
|
64
|
-
data_inicial: Date;
|
|
65
|
-
descricao: string;
|
|
66
|
-
excluido: boolean;
|
|
67
|
-
existe_marcacao_pre_assinalada: boolean;
|
|
68
|
-
regime_compensacao_dias: {
|
|
69
|
-
seg: RegimesCompensacaoEscala;
|
|
70
|
-
ter: RegimesCompensacaoEscala;
|
|
71
|
-
qua: RegimesCompensacaoEscala;
|
|
72
|
-
qui: RegimesCompensacaoEscala;
|
|
73
|
-
sex: RegimesCompensacaoEscala;
|
|
74
|
-
sab: RegimesCompensacaoEscala;
|
|
75
|
-
dom: RegimesCompensacaoEscala;
|
|
76
|
-
fer?: RegimesCompensacaoEscala;
|
|
77
|
-
};
|
|
78
|
-
jornadas: {
|
|
79
|
-
repetir: number;
|
|
80
|
-
ocorrencia_frequencia_ref: string;
|
|
81
|
-
marcacoes_pre_assinaladas?: {
|
|
82
|
-
todos_intervalos: boolean;
|
|
83
|
-
indices: number[];
|
|
84
|
-
};
|
|
85
|
-
periodos: {
|
|
86
|
-
entrada: {
|
|
87
|
-
hora: string;
|
|
88
|
-
timezone_value: string;
|
|
89
|
-
origem: null | 'marcacao pre assinalada';
|
|
90
|
-
};
|
|
91
|
-
saida: {
|
|
92
|
-
hora: string;
|
|
93
|
-
timezone_value: string;
|
|
94
|
-
origem: null | 'marcacao pre assinalada';
|
|
95
|
-
};
|
|
96
|
-
duracao: string;
|
|
97
|
-
descanso: string;
|
|
98
|
-
}[];
|
|
99
|
-
}[];
|
|
100
|
-
faixa_hora_extra_semanal_ref?: string;
|
|
101
|
-
faixa_hora_extra_diferenciada_ref?: string;
|
|
102
|
-
constructor(escalaPayload: Partial<Escala>);
|
|
103
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
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.Escala = exports.EscalaHelpers = exports.RegimesCompensacaoEscala = void 0;
|
|
18
|
-
var regimes_compensacao_1 = require("../regimes_compensacao");
|
|
19
|
-
__exportStar(require("./escala-fire-convert"), exports);
|
|
20
|
-
var RegimesCompensacaoEscala;
|
|
21
|
-
(function (RegimesCompensacaoEscala) {
|
|
22
|
-
RegimesCompensacaoEscala["bancohoras"] = "BANCO_HORAS";
|
|
23
|
-
RegimesCompensacaoEscala["horasextras"] = "HORAS_EXTRAS";
|
|
24
|
-
RegimesCompensacaoEscala["padrao"] = "PADRAO";
|
|
25
|
-
})(RegimesCompensacaoEscala = exports.RegimesCompensacaoEscala || (exports.RegimesCompensacaoEscala = {}));
|
|
26
|
-
var EscalaHelpers = /** @class */ (function () {
|
|
27
|
-
function EscalaHelpers() {
|
|
28
|
-
}
|
|
29
|
-
EscalaHelpers.obterEquivalenciaRegimeEscalaComConta = function (valor) {
|
|
30
|
-
switch (valor) {
|
|
31
|
-
case RegimesCompensacaoEscala.bancohoras:
|
|
32
|
-
return regimes_compensacao_1.RegimesCompensacaoConta.BancoDeHoras;
|
|
33
|
-
case RegimesCompensacaoEscala.horasextras:
|
|
34
|
-
return regimes_compensacao_1.RegimesCompensacaoConta.HorasExtras;
|
|
35
|
-
default:
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
return EscalaHelpers;
|
|
40
|
-
}());
|
|
41
|
-
exports.EscalaHelpers = EscalaHelpers;
|
|
42
|
-
/**
|
|
43
|
-
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
44
|
-
*
|
|
45
|
-
* @export
|
|
46
|
-
* @class Lancamento
|
|
47
|
-
*/
|
|
48
|
-
var Escala = /** @class */ (function () {
|
|
49
|
-
// #endregion
|
|
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;
|
|
59
|
-
this.existe_marcacao_pre_assinalada =
|
|
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;
|
|
62
|
-
this.regime_compensacao_dias =
|
|
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;
|
|
68
|
-
}
|
|
69
|
-
return Escala;
|
|
70
|
-
}());
|
|
71
|
-
exports.Escala = Escala;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { FirebaseDocumentReferenceGeneric, FirebaseTimestampGeneric } from '../../shared/flitModelsDependencyInjection';
|
|
2
|
-
export declare enum EnumExcecaoTipo {
|
|
3
|
-
ATRASO = "ATRASO",
|
|
4
|
-
FALTA = "FALTA",
|
|
5
|
-
HORA_EXTRA = "HORA_EXTRA"
|
|
6
|
-
}
|
|
7
|
-
export declare enum EnumExcecaoStatus {
|
|
8
|
-
APROVADO = "APROVADO",
|
|
9
|
-
CANCELADO = "CANCELADO",
|
|
10
|
-
PENDENTE = "PENDENTE",
|
|
11
|
-
REJEITADO = "REJEITADO",
|
|
12
|
-
RETIFICADO = "RETIFICADO"
|
|
13
|
-
}
|
|
14
|
-
export interface IExcecao {
|
|
15
|
-
data_cancelamento?: FirebaseTimestampGeneric;
|
|
16
|
-
data_criacao: FirebaseTimestampGeneric;
|
|
17
|
-
data_lancamento_manual_horas_extras?: FirebaseTimestampGeneric;
|
|
18
|
-
data_parecer?: FirebaseTimestampGeneric;
|
|
19
|
-
data_referencia: FirebaseTimestampGeneric;
|
|
20
|
-
gestor: {
|
|
21
|
-
nome: string;
|
|
22
|
-
email: string;
|
|
23
|
-
ref: FirebaseDocumentReferenceGeneric;
|
|
24
|
-
};
|
|
25
|
-
observacao: string;
|
|
26
|
-
parecer?: string;
|
|
27
|
-
periodo?: {
|
|
28
|
-
inicio: FirebaseTimestampGeneric;
|
|
29
|
-
fim: FirebaseTimestampGeneric;
|
|
30
|
-
};
|
|
31
|
-
retificacao_ref: FirebaseDocumentReferenceGeneric;
|
|
32
|
-
status: EnumExcecaoStatus;
|
|
33
|
-
tempo?: number;
|
|
34
|
-
timezone: string;
|
|
35
|
-
tipo: EnumExcecaoTipo;
|
|
36
|
-
usuario_ref: FirebaseDocumentReferenceGeneric;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Classe construtora dos dos documento da coleção de Exceções.
|
|
40
|
-
*
|
|
41
|
-
* @export
|
|
42
|
-
* @class Excecao
|
|
43
|
-
* @implements {IExcecao}
|
|
44
|
-
*/
|
|
45
|
-
export declare class Excecao implements IExcecao {
|
|
46
|
-
uid: string;
|
|
47
|
-
path: string;
|
|
48
|
-
usuario: any;
|
|
49
|
-
data_cancelamento?: FirebaseTimestampGeneric;
|
|
50
|
-
data_criacao: FirebaseTimestampGeneric;
|
|
51
|
-
data_lancamento_manual_horas_extras?: FirebaseTimestampGeneric;
|
|
52
|
-
data_parecer?: FirebaseTimestampGeneric;
|
|
53
|
-
data_referencia: FirebaseTimestampGeneric;
|
|
54
|
-
gestor: {
|
|
55
|
-
nome: string;
|
|
56
|
-
email: string;
|
|
57
|
-
ref: FirebaseDocumentReferenceGeneric;
|
|
58
|
-
};
|
|
59
|
-
observacao: string;
|
|
60
|
-
parecer?: string | undefined;
|
|
61
|
-
periodo?: {
|
|
62
|
-
inicio: FirebaseTimestampGeneric;
|
|
63
|
-
fim: FirebaseTimestampGeneric;
|
|
64
|
-
} | undefined;
|
|
65
|
-
retificacao_ref: FirebaseDocumentReferenceGeneric;
|
|
66
|
-
status: EnumExcecaoStatus;
|
|
67
|
-
tempo?: number | undefined;
|
|
68
|
-
timezone: string;
|
|
69
|
-
tipo: EnumExcecaoTipo;
|
|
70
|
-
usuario_ref: FirebaseDocumentReferenceGeneric;
|
|
71
|
-
/**
|
|
72
|
-
* Creates an instance of Excecao.
|
|
73
|
-
* @param {Partial<Excecao>} excecaoPayload
|
|
74
|
-
* @memberof Excecao
|
|
75
|
-
*/
|
|
76
|
-
constructor(excecaoPayload: Partial<Excecao>);
|
|
77
|
-
/**
|
|
78
|
-
* Convert class in firestore date.
|
|
79
|
-
*
|
|
80
|
-
* @return {*}
|
|
81
|
-
* @memberof Excecao
|
|
82
|
-
*/
|
|
83
|
-
toFirestoreData(): Object;
|
|
84
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Excecao = exports.EnumExcecaoStatus = exports.EnumExcecaoTipo = void 0;
|
|
15
|
-
var lodash_1 = require("lodash");
|
|
16
|
-
var EnumExcecaoTipo;
|
|
17
|
-
(function (EnumExcecaoTipo) {
|
|
18
|
-
EnumExcecaoTipo["ATRASO"] = "ATRASO";
|
|
19
|
-
EnumExcecaoTipo["FALTA"] = "FALTA";
|
|
20
|
-
EnumExcecaoTipo["HORA_EXTRA"] = "HORA_EXTRA";
|
|
21
|
-
})(EnumExcecaoTipo = exports.EnumExcecaoTipo || (exports.EnumExcecaoTipo = {}));
|
|
22
|
-
var EnumExcecaoStatus;
|
|
23
|
-
(function (EnumExcecaoStatus) {
|
|
24
|
-
EnumExcecaoStatus["APROVADO"] = "APROVADO";
|
|
25
|
-
EnumExcecaoStatus["CANCELADO"] = "CANCELADO";
|
|
26
|
-
EnumExcecaoStatus["PENDENTE"] = "PENDENTE";
|
|
27
|
-
EnumExcecaoStatus["REJEITADO"] = "REJEITADO";
|
|
28
|
-
EnumExcecaoStatus["RETIFICADO"] = "RETIFICADO";
|
|
29
|
-
})(EnumExcecaoStatus = exports.EnumExcecaoStatus || (exports.EnumExcecaoStatus = {}));
|
|
30
|
-
/**
|
|
31
|
-
* Classe construtora dos dos documento da coleção de Exceções.
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @class Excecao
|
|
35
|
-
* @implements {IExcecao}
|
|
36
|
-
*/
|
|
37
|
-
var Excecao = /** @class */ (function () {
|
|
38
|
-
/**
|
|
39
|
-
* Creates an instance of Excecao.
|
|
40
|
-
* @param {Partial<Excecao>} excecaoPayload
|
|
41
|
-
* @memberof Excecao
|
|
42
|
-
*/
|
|
43
|
-
function Excecao(excecaoPayload) {
|
|
44
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
45
|
-
this.data_cancelamento = (_a = excecaoPayload.data_cancelamento) !== null && _a !== void 0 ? _a : undefined;
|
|
46
|
-
this.data_criacao = (_b = excecaoPayload.data_criacao) !== null && _b !== void 0 ? _b : undefined;
|
|
47
|
-
this.data_lancamento_manual_horas_extras =
|
|
48
|
-
(_c = excecaoPayload.data_lancamento_manual_horas_extras) !== null && _c !== void 0 ? _c : undefined;
|
|
49
|
-
this.data_parecer = (_d = excecaoPayload.data_parecer) !== null && _d !== void 0 ? _d : undefined;
|
|
50
|
-
this.data_referencia = (_e = excecaoPayload.data_referencia) !== null && _e !== void 0 ? _e : undefined;
|
|
51
|
-
this.gestor = (_f = excecaoPayload.gestor) !== null && _f !== void 0 ? _f : undefined;
|
|
52
|
-
this.observacao = (_g = excecaoPayload.observacao) !== null && _g !== void 0 ? _g : undefined;
|
|
53
|
-
this.parecer = (_h = excecaoPayload.parecer) !== null && _h !== void 0 ? _h : undefined;
|
|
54
|
-
this.periodo = (_j = excecaoPayload.periodo) !== null && _j !== void 0 ? _j : undefined;
|
|
55
|
-
this.retificacao_ref = (_k = excecaoPayload.retificacao_ref) !== null && _k !== void 0 ? _k : undefined;
|
|
56
|
-
this.status = (_l = excecaoPayload.status) !== null && _l !== void 0 ? _l : undefined;
|
|
57
|
-
this.tempo = (_m = excecaoPayload.tempo) !== null && _m !== void 0 ? _m : undefined;
|
|
58
|
-
this.timezone = (_o = excecaoPayload.timezone) !== null && _o !== void 0 ? _o : undefined;
|
|
59
|
-
this.tipo = (_p = excecaoPayload.tipo) !== null && _p !== void 0 ? _p : undefined;
|
|
60
|
-
this.usuario_ref = (_q = excecaoPayload.usuario_ref) !== null && _q !== void 0 ? _q : undefined;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Convert class in firestore date.
|
|
64
|
-
*
|
|
65
|
-
* @return {*}
|
|
66
|
-
* @memberof Excecao
|
|
67
|
-
*/
|
|
68
|
-
Excecao.prototype.toFirestoreData = function () {
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
70
|
-
var _a = this, toFirestoreData = _a.toFirestoreData, uid = _a.uid, path = _a.path, usuario = _a.usuario, rest = __rest(_a, ["toFirestoreData", "uid", "path", "usuario"]);
|
|
71
|
-
var object = Object.assign({}, (0, lodash_1.omitBy)(rest, lodash_1.isUndefined));
|
|
72
|
-
if (!Object.keys(object).length) {
|
|
73
|
-
throw new Error('Excecao => toFirestoreData => empty object error.');
|
|
74
|
-
}
|
|
75
|
-
return object;
|
|
76
|
-
};
|
|
77
|
-
return Excecao;
|
|
78
|
-
}());
|
|
79
|
-
exports.Excecao = Excecao;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
2
|
-
import { EmpresaFeriado, EmpresaFeriadoBase } from './empresa-feriado';
|
|
3
|
-
export declare class EmpresaFeriadoFirestoreData implements EmpresaFeriadoBase {
|
|
4
|
-
ref: FirebaseDocumentReferenceGeneric;
|
|
5
|
-
documento: string;
|
|
6
|
-
municipio: string;
|
|
7
|
-
nome: string;
|
|
8
|
-
uf: string;
|
|
9
|
-
}
|
|
10
|
-
export declare abstract class EmpresaFeriadoFireConvert {
|
|
11
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): EmpresaFeriado;
|
|
12
|
-
static toFirestore(empresaFeriado: EmpresaFeriado): Partial<EmpresaFeriadoFirestoreData>;
|
|
13
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmpresaFeriadoFireConvert = exports.EmpresaFeriadoFirestoreData = void 0;
|
|
4
|
-
var lodash_1 = require("lodash");
|
|
5
|
-
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
6
|
-
var string_helper_1 = require("../../utils/string-helper");
|
|
7
|
-
var type_guards_1 = require("../../utils/type-guards");
|
|
8
|
-
var empresa_feriado_1 = require("./empresa-feriado");
|
|
9
|
-
var EmpresaFeriadoFirestoreData = /** @class */ (function () {
|
|
10
|
-
function EmpresaFeriadoFirestoreData() {
|
|
11
|
-
}
|
|
12
|
-
return EmpresaFeriadoFirestoreData;
|
|
13
|
-
}());
|
|
14
|
-
exports.EmpresaFeriadoFirestoreData = EmpresaFeriadoFirestoreData;
|
|
15
|
-
var EmpresaFeriadoFireConvert = /** @class */ (function () {
|
|
16
|
-
function EmpresaFeriadoFireConvert() {
|
|
17
|
-
}
|
|
18
|
-
EmpresaFeriadoFireConvert.fromFirestore = function (doc) {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
return new empresa_feriado_1.EmpresaFeriado({
|
|
21
|
-
_id: (_a = doc.id) !== null && _a !== void 0 ? _a : null,
|
|
22
|
-
_path: (_b = doc.ref.path) !== null && _b !== void 0 ? _b : null,
|
|
23
|
-
ref: (0, type_guards_1.TipoDocumentReference)(doc.get('ref'))
|
|
24
|
-
? doc.get('ref').path
|
|
25
|
-
: null,
|
|
26
|
-
documento: string_helper_1.StringHelper.trim(doc.get('documento'), null),
|
|
27
|
-
municipio: string_helper_1.StringHelper.trim(doc.get('municipio'), null),
|
|
28
|
-
nome: string_helper_1.StringHelper.trim(doc.get('nome'), null),
|
|
29
|
-
uf: string_helper_1.StringHelper.trim(doc.get('uf'), null),
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
EmpresaFeriadoFireConvert.toFirestore = function (empresaFeriado) {
|
|
33
|
-
return (0, lodash_1.omitBy)({
|
|
34
|
-
documento: empresaFeriado.documento,
|
|
35
|
-
municipio: empresaFeriado.municipio,
|
|
36
|
-
nome: empresaFeriado.nome,
|
|
37
|
-
ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(empresaFeriado.ref),
|
|
38
|
-
uf: empresaFeriado.uf,
|
|
39
|
-
}, lodash_1.isUndefined);
|
|
40
|
-
};
|
|
41
|
-
return EmpresaFeriadoFireConvert;
|
|
42
|
-
}());
|
|
43
|
-
exports.EmpresaFeriadoFireConvert = EmpresaFeriadoFireConvert;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface EmpresaFeriadoBase {
|
|
2
|
-
documento: any;
|
|
3
|
-
municipio: any;
|
|
4
|
-
nome: any;
|
|
5
|
-
ref: any;
|
|
6
|
-
uf: any;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Internal class col contas/${contaId}/feriados/${feriadoId}/empresas_feriado/${empresaId}.
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
|
-
* @class FeriadoEmpresa
|
|
13
|
-
* @implements {FeriadoFirestoreData}
|
|
14
|
-
*/
|
|
15
|
-
export declare class EmpresaFeriado implements EmpresaFeriadoBase {
|
|
16
|
-
_id: string;
|
|
17
|
-
_path: string;
|
|
18
|
-
documento: string;
|
|
19
|
-
municipio: string;
|
|
20
|
-
nome: string;
|
|
21
|
-
ref: string;
|
|
22
|
-
uf: string;
|
|
23
|
-
/**
|
|
24
|
-
* Creates an instance of FeriadoEmpresa.
|
|
25
|
-
* @param {Partial<EmpresaFeriado>} feriadoEmpresaPayload
|
|
26
|
-
* @memberof Feriado
|
|
27
|
-
*/
|
|
28
|
-
constructor(feriadoEmpresaPayload: Partial<EmpresaFeriado>);
|
|
29
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmpresaFeriado = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Internal class col contas/${contaId}/feriados/${feriadoId}/empresas_feriado/${empresaId}.
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
|
-
* @class FeriadoEmpresa
|
|
9
|
-
* @implements {FeriadoFirestoreData}
|
|
10
|
-
*/
|
|
11
|
-
var EmpresaFeriado = /** @class */ (function () {
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of FeriadoEmpresa.
|
|
14
|
-
* @param {Partial<EmpresaFeriado>} feriadoEmpresaPayload
|
|
15
|
-
* @memberof Feriado
|
|
16
|
-
*/
|
|
17
|
-
function EmpresaFeriado(feriadoEmpresaPayload) {
|
|
18
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
19
|
-
this._id = (_a = feriadoEmpresaPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
20
|
-
this._path = (_b = feriadoEmpresaPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
21
|
-
this.documento = (_c = feriadoEmpresaPayload.documento) !== null && _c !== void 0 ? _c : undefined;
|
|
22
|
-
this.municipio = (_d = feriadoEmpresaPayload.municipio) !== null && _d !== void 0 ? _d : undefined;
|
|
23
|
-
this.nome = (_e = feriadoEmpresaPayload.nome) !== null && _e !== void 0 ? _e : undefined;
|
|
24
|
-
this.ref = (_f = feriadoEmpresaPayload.ref) !== null && _f !== void 0 ? _f : undefined;
|
|
25
|
-
this.uf = (_g = feriadoEmpresaPayload.uf) !== null && _g !== void 0 ? _g : undefined;
|
|
26
|
-
}
|
|
27
|
-
return EmpresaFeriado;
|
|
28
|
-
}());
|
|
29
|
-
exports.EmpresaFeriado = EmpresaFeriado;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Feriado, FeriadoBase, FeriadoTipoEnum } from '.';
|
|
2
|
-
import { FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
|
-
export declare class FeriadoFirestoreData implements FeriadoBase {
|
|
4
|
-
data: FirebaseTimestampGeneric;
|
|
5
|
-
descricao: string;
|
|
6
|
-
excluido: boolean;
|
|
7
|
-
importacao_id: string;
|
|
8
|
-
municipio: string;
|
|
9
|
-
tipo: FeriadoTipoEnum;
|
|
10
|
-
todas_empresas: boolean;
|
|
11
|
-
uf: string;
|
|
12
|
-
}
|
|
13
|
-
export declare abstract class FeriadoFireConvert {
|
|
14
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Feriado;
|
|
15
|
-
static toFirestore(feriado: Feriado): Partial<FeriadoFirestoreData>;
|
|
16
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeriadoFireConvert = exports.FeriadoFirestoreData = void 0;
|
|
4
|
-
var lodash_1 = require("lodash");
|
|
5
|
-
var _1 = require(".");
|
|
6
|
-
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
7
|
-
var boolean_helper_1 = require("../../utils/boolean-helper");
|
|
8
|
-
var string_helper_1 = require("../../utils/string-helper");
|
|
9
|
-
var type_guards_1 = require("../../utils/type-guards");
|
|
10
|
-
var FeriadoFirestoreData = /** @class */ (function () {
|
|
11
|
-
function FeriadoFirestoreData() {
|
|
12
|
-
}
|
|
13
|
-
return FeriadoFirestoreData;
|
|
14
|
-
}());
|
|
15
|
-
exports.FeriadoFirestoreData = FeriadoFirestoreData;
|
|
16
|
-
var FeriadoFireConvert = /** @class */ (function () {
|
|
17
|
-
function FeriadoFireConvert() {
|
|
18
|
-
}
|
|
19
|
-
FeriadoFireConvert.fromFirestore = function (doc) {
|
|
20
|
-
var _a, _b;
|
|
21
|
-
return new _1.Feriado({
|
|
22
|
-
_id: (_a = doc.id) !== null && _a !== void 0 ? _a : null,
|
|
23
|
-
_path: (_b = doc.ref.path) !== null && _b !== void 0 ? _b : null,
|
|
24
|
-
data: (0, type_guards_1.TipoTimestampFirestore)(doc.get('data'))
|
|
25
|
-
? doc.get('data').toDate()
|
|
26
|
-
: null,
|
|
27
|
-
descricao: string_helper_1.StringHelper.trim(doc.get('descricao'), null),
|
|
28
|
-
excluido: boolean_helper_1.BooleanHelper.check(doc.get('excluido'), false),
|
|
29
|
-
importacao_id: string_helper_1.StringHelper.trim(doc.get('importacao_id'), null),
|
|
30
|
-
municipio: string_helper_1.StringHelper.trim(doc.get('municipio'), null),
|
|
31
|
-
tipo: string_helper_1.StringHelper.trim(doc.get('tipo'), null),
|
|
32
|
-
todas_empresas: boolean_helper_1.BooleanHelper.check(doc.get('todas_empresas'), true),
|
|
33
|
-
uf: string_helper_1.StringHelper.trim(doc.get('uf'), null),
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
FeriadoFireConvert.toFirestore = function (feriado) {
|
|
37
|
-
return (0, lodash_1.omitBy)({
|
|
38
|
-
data: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(feriado.data),
|
|
39
|
-
descricao: string_helper_1.StringHelper.trim(feriado.descricao, null),
|
|
40
|
-
excluido: boolean_helper_1.BooleanHelper.check(feriado.excluido, false),
|
|
41
|
-
importacao_id: string_helper_1.StringHelper.trim(feriado.importacao_id, null),
|
|
42
|
-
municipio: string_helper_1.StringHelper.trim(feriado.municipio, null),
|
|
43
|
-
tipo: string_helper_1.StringHelper.trim(feriado.tipo, null),
|
|
44
|
-
todas_empresas: boolean_helper_1.BooleanHelper.check(feriado.todas_empresas, true),
|
|
45
|
-
uf: string_helper_1.StringHelper.trim(feriado.uf, null),
|
|
46
|
-
}, lodash_1.isUndefined);
|
|
47
|
-
};
|
|
48
|
-
return FeriadoFireConvert;
|
|
49
|
-
}());
|
|
50
|
-
exports.FeriadoFireConvert = FeriadoFireConvert;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Feriado, FeriadoBase, FeriadoTipoEnum } from '.';
|
|
2
|
-
export declare class FeriadoJsonData implements FeriadoBase {
|
|
3
|
-
_id: string;
|
|
4
|
-
_path: string;
|
|
5
|
-
data: string;
|
|
6
|
-
descricao: string;
|
|
7
|
-
excluido: boolean;
|
|
8
|
-
importacao_id: string;
|
|
9
|
-
municipio: string;
|
|
10
|
-
tipo: FeriadoTipoEnum;
|
|
11
|
-
todas_empresas: boolean;
|
|
12
|
-
uf: string;
|
|
13
|
-
}
|
|
14
|
-
export declare abstract class FeriadoJsonConvert {
|
|
15
|
-
static fromJson(obj: FeriadoJsonData): Feriado;
|
|
16
|
-
static toJson(feriado: Feriado): Partial<FeriadoJsonData>;
|
|
17
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeriadoJsonConvert = exports.FeriadoJsonData = 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 FeriadoJsonData = /** @class */ (function () {
|
|
10
|
-
function FeriadoJsonData() {
|
|
11
|
-
}
|
|
12
|
-
return FeriadoJsonData;
|
|
13
|
-
}());
|
|
14
|
-
exports.FeriadoJsonData = FeriadoJsonData;
|
|
15
|
-
var FeriadoJsonConvert = /** @class */ (function () {
|
|
16
|
-
function FeriadoJsonConvert() {
|
|
17
|
-
}
|
|
18
|
-
FeriadoJsonConvert.fromJson = function (obj) {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
return new _1.Feriado({
|
|
21
|
-
_id: (_a = obj._id) !== null && _a !== void 0 ? _a : null,
|
|
22
|
-
_path: (_b = obj._path) !== null && _b !== void 0 ? _b : null,
|
|
23
|
-
data: date_helper_1.DateHelper.fromString(obj.data, null),
|
|
24
|
-
descricao: string_helper_1.StringHelper.trim(obj.descricao, null),
|
|
25
|
-
excluido: boolean_helper_1.BooleanHelper.check(obj.excluido, false),
|
|
26
|
-
importacao_id: string_helper_1.StringHelper.trim(obj.importacao_id, null),
|
|
27
|
-
municipio: string_helper_1.StringHelper.trim(obj.municipio, null),
|
|
28
|
-
tipo: string_helper_1.StringHelper.trim(obj.tipo, null),
|
|
29
|
-
todas_empresas: boolean_helper_1.BooleanHelper.check(obj.todas_empresas, true),
|
|
30
|
-
uf: string_helper_1.StringHelper.trim(obj.uf, null),
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
FeriadoJsonConvert.toJson = function (feriado) {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
return (0, lodash_1.omitBy)({
|
|
36
|
-
_id: (_a = feriado._id) !== null && _a !== void 0 ? _a : null,
|
|
37
|
-
_path: (_b = feriado._path) !== null && _b !== void 0 ? _b : null,
|
|
38
|
-
data: feriado.data.toISOString(),
|
|
39
|
-
descricao: string_helper_1.StringHelper.trim(feriado.descricao, null),
|
|
40
|
-
excluido: boolean_helper_1.BooleanHelper.check(feriado.excluido, false),
|
|
41
|
-
importacao_id: string_helper_1.StringHelper.trim(feriado.importacao_id, null),
|
|
42
|
-
municipio: string_helper_1.StringHelper.trim(feriado.municipio, null),
|
|
43
|
-
tipo: string_helper_1.StringHelper.trim(feriado.tipo, null),
|
|
44
|
-
todas_empresas: boolean_helper_1.BooleanHelper.check(feriado.todas_empresas, true),
|
|
45
|
-
uf: string_helper_1.StringHelper.trim(feriado.uf, null),
|
|
46
|
-
}, lodash_1.isUndefined);
|
|
47
|
-
};
|
|
48
|
-
return FeriadoJsonConvert;
|
|
49
|
-
}());
|
|
50
|
-
exports.FeriadoJsonConvert = FeriadoJsonConvert;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export * from './empresa-feriado';
|
|
2
|
-
export * from './feriado-fire-convert';
|
|
3
|
-
export * from './empresa-feriado-fire-convert';
|
|
4
|
-
export * from './feriado-json-convert';
|
|
5
|
-
export declare enum FeriadoTipoEnum {
|
|
6
|
-
Nacional = "Nacional",
|
|
7
|
-
Estadual = "Estadual",
|
|
8
|
-
Municipal = "Municipal"
|
|
9
|
-
}
|
|
10
|
-
export interface FeriadoBase {
|
|
11
|
-
data: any;
|
|
12
|
-
descricao: any;
|
|
13
|
-
excluido: any;
|
|
14
|
-
importacao_id: any;
|
|
15
|
-
municipio: any;
|
|
16
|
-
tipo: any;
|
|
17
|
-
todas_empresas: any;
|
|
18
|
-
uf: any;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Internal class col contas/${contaId}/feriados/${feriadoId}.
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
* @class Feriado
|
|
25
|
-
*/
|
|
26
|
-
export declare class Feriado implements FeriadoBase {
|
|
27
|
-
_id: string;
|
|
28
|
-
_path: string;
|
|
29
|
-
data: Date;
|
|
30
|
-
descricao: string;
|
|
31
|
-
excluido: boolean;
|
|
32
|
-
importacao_id: string;
|
|
33
|
-
municipio: string;
|
|
34
|
-
tipo: FeriadoTipoEnum;
|
|
35
|
-
todas_empresas: boolean;
|
|
36
|
-
uf: string;
|
|
37
|
-
/**
|
|
38
|
-
* Creates an instance of Feriado.
|
|
39
|
-
* @param {Partial<Feriado>} feriadoPayload
|
|
40
|
-
* @memberof Feriado
|
|
41
|
-
*/
|
|
42
|
-
constructor(feriadoPayload: Partial<Feriado>);
|
|
43
|
-
}
|