flit-models 3.2.47 → 3.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/lib/index.d.ts +1 -1
- package/lib/index.js +76 -76
- package/lib/models/api/exportar_relatorio.d.ts +38 -38
- package/lib/models/api/exportar_relatorio.js +29 -29
- package/lib/models/api/index.d.ts +3 -3
- package/lib/models/api/index.js +19 -19
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/index.d.ts +25 -25
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/index.js +17 -17
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/relatorio_absenteismo.d.ts +60 -60
- package/lib/models/api/oncall-buscar-relatorio-absenteismo/relatorio_absenteismo.js +45 -45
- package/lib/models/api/oncall-exportar-relatorio-absenteismo/index.d.ts +8 -8
- package/lib/models/api/oncall-exportar-relatorio-absenteismo/index.js +2 -2
- package/lib/models/contas/auditoria/modificador/index.d.ts +30 -30
- package/lib/models/contas/auditoria/modificador/index.js +44 -44
- package/lib/models/contas/auditoria/modificador/modificador-fire-convert.d.ts +14 -14
- package/lib/models/contas/auditoria/modificador/modificador-fire-convert.js +43 -43
- package/lib/models/contas/cargo/cargo-fire-convert.d.ts +13 -13
- package/lib/models/contas/cargo/cargo-fire-convert.js +42 -42
- package/lib/models/contas/cargo/index.d.ts +29 -29
- package/lib/models/contas/cargo/index.js +45 -45
- package/lib/models/contas/departamento/departamento-fire-convert.d.ts +12 -12
- package/lib/models/contas/departamento/departamento-fire-convert.js +40 -40
- package/lib/models/contas/departamento/index.d.ts +27 -27
- package/lib/models/contas/departamento/index.js +44 -44
- package/lib/models/contas/escala/escala-fire-convert.d.ts +48 -48
- package/lib/models/contas/escala/escala-fire-convert.js +122 -122
- package/lib/models/contas/escala/index.d.ts +103 -103
- package/lib/models/contas/escala/index.js +71 -71
- package/lib/models/contas/excecoes.d.ts +84 -84
- package/lib/models/contas/excecoes.js +79 -79
- package/lib/models/contas/feriado/empresa-feriado-fire-convert.d.ts +13 -13
- package/lib/models/contas/feriado/empresa-feriado-fire-convert.js +43 -43
- package/lib/models/contas/feriado/empresa-feriado.d.ts +29 -29
- package/lib/models/contas/feriado/empresa-feriado.js +29 -29
- package/lib/models/contas/feriado/feriado-fire-convert.d.ts +17 -17
- package/lib/models/contas/feriado/feriado-fire-convert.js +66 -55
- package/lib/models/contas/feriado/feriado-json-convert.d.ts +18 -18
- package/lib/models/contas/feriado/feriado-json-convert.js +53 -52
- package/lib/models/contas/feriado/index.d.ts +45 -45
- package/lib/models/contas/feriado/index.js +56 -56
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.d.ts +25 -25
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.js +49 -49
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.d.ts +24 -24
- package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.js +38 -38
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/historico-relatorios-ponto-app-logs-fire-convert.d.ts +11 -11
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/historico-relatorios-ponto-app-logs-fire-convert.js +28 -28
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.d.ts +35 -35
- package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.js +51 -51
- package/lib/models/contas/historico_relatorios_ponto_app/index.d.ts +58 -58
- package/lib/models/contas/historico_relatorios_ponto_app/index.js +58 -58
- package/lib/models/contas/lancamento/index.d.ts +126 -126
- package/lib/models/contas/lancamento/index.js +94 -94
- package/lib/models/contas/lancamento/lancamento-elastic-convert.d.ts +51 -51
- package/lib/models/contas/lancamento/lancamento-elastic-convert.js +49 -49
- package/lib/models/contas/lancamento/lancamento-fire-convert.d.ts +40 -40
- package/lib/models/contas/lancamento/lancamento-fire-convert.js +99 -99
- package/lib/models/contas/lancamento/lancamento-json-convert.d.ts +41 -41
- package/lib/models/contas/lancamento/lancamento-json-convert.js +102 -102
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.d.ts +24 -24
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.js +80 -80
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.d.ts +55 -55
- package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.js +34 -34
- package/lib/models/contas/modelo-faixa-hora-extra/index.d.ts +94 -94
- package/lib/models/contas/modelo-faixa-hora-extra/index.js +58 -58
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.d.ts +39 -39
- package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.js +109 -109
- package/lib/models/contas/ocorrencia_frequencia/index.d.ts +30 -30
- package/lib/models/contas/ocorrencia_frequencia/index.js +76 -76
- package/lib/models/contas/parametros_compartilhados.d.ts +4 -4
- package/lib/models/contas/parametros_compartilhados.js +8 -8
- package/lib/models/contas/regimes_compensacao.d.ts +5 -5
- package/lib/models/contas/regimes_compensacao.js +9 -9
- package/lib/models/contas/solicitacoes-usuario/index.d.ts +91 -91
- package/lib/models/contas/solicitacoes-usuario/index.js +72 -72
- package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.d.ts +40 -40
- package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.js +109 -109
- package/lib/models/index.d.ts +13 -13
- package/lib/models/index.js +29 -29
- package/lib/models/utils/array-helpers.d.ts +3 -3
- package/lib/models/utils/array-helpers.js +17 -17
- package/lib/models/utils/boolean-helper.d.ts +3 -3
- package/lib/models/utils/boolean-helper.js +17 -17
- package/lib/models/utils/date-helper.d.ts +4 -4
- package/lib/models/utils/date-helper.js +21 -21
- package/lib/models/utils/string-helper.d.ts +5 -5
- package/lib/models/utils/string-helper.js +33 -33
- package/lib/models/utils/type-guards.d.ts +17 -17
- package/lib/models/utils/type-guards.js +27 -27
- package/lib/shared/flitModelsDependencyInjection.d.ts +24 -24
- package/lib/shared/flitModelsDependencyInjection.js +61 -61
- package/package.json +46 -46
|
@@ -1,84 +1,84 @@
|
|
|
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
|
+
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 +1,79 @@
|
|
|
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
|
+
"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 +1,13 @@
|
|
|
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
|
+
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 +1,43 @@
|
|
|
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
|
+
"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 +1,29 @@
|
|
|
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
|
+
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 +1,29 @@
|
|
|
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
|
+
"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,17 +1,17 @@
|
|
|
1
|
-
import { Feriado, FeriadoBase, FeriadoTipoEnum } from '.';
|
|
2
|
-
import {
|
|
3
|
-
export declare class FeriadoFirestoreData implements FeriadoBase {
|
|
4
|
-
data: FirebaseTimestampGeneric;
|
|
5
|
-
descricao: string;
|
|
6
|
-
excluido: boolean;
|
|
7
|
-
importacao_id: string;
|
|
8
|
-
municipio: string;
|
|
9
|
-
|
|
10
|
-
tipo: FeriadoTipoEnum;
|
|
11
|
-
todas_empresas: boolean;
|
|
12
|
-
uf: string;
|
|
13
|
-
}
|
|
14
|
-
export declare abstract class FeriadoFireConvert {
|
|
15
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Feriado;
|
|
16
|
-
static toFirestore(feriado: Feriado): Partial<FeriadoFirestoreData>;
|
|
17
|
-
}
|
|
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
|
+
departamentos_ids?: string[];
|
|
10
|
+
tipo: FeriadoTipoEnum;
|
|
11
|
+
todas_empresas: boolean;
|
|
12
|
+
uf: string;
|
|
13
|
+
}
|
|
14
|
+
export declare abstract class FeriadoFireConvert {
|
|
15
|
+
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Feriado;
|
|
16
|
+
static toFirestore(feriado: Feriado): Partial<FeriadoFirestoreData>;
|
|
17
|
+
}
|