flit-models 3.2.22 → 3.2.24
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/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
package/package.json
CHANGED
package/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AuditoriaModificador, AuditoriaModificadorBase, AuditoriaModificadorFireConvert, AuditoriaModificadorFirestoreData, Cargo, CargoBase, CargoFireConvert, CargoFirestoreData, Departamento, DepartamentoBase, DepartamentoFireConvert, DepartamentoFirestoreData, EmpresaFeriado, EmpresaFeriadoBase, EmpresaFeriadoFireConvert, EmpresaFeriadoFirestoreData, EnumAuditoriaModificadorTipo, EnumConfiguracaoTipoFaltaJornada, EnumExcecaoStatus, EnumExcecaoTipo, EnumStatusHistoricoRelatorioPontoApp, Escala, EscalaBase, EscalaFireConvert, EscalaFirestoreData, EscalaHelpers, Excecao, FaixaHoraExtraDiferenciada, Feriado, FeriadoBase, FeriadoFireConvert, FeriadoFirestoreData, FeriadoJsonConvert, FeriadoJsonData, FeriadoTipoEnum, HistoricoRelatorioPontoApp, HistoricoRelatorioPontoAppBase, HistoricoRelatorioPontoAppElasticConvert, HistoricoRelatorioPontoAppElasticData, HistoricoRelatorioPontoAppFireConvert, HistoricoRelatorioPontoAppFirestoreData, HistoricoRelatorioPontoAppLog, HistoricoRelatorioPontoAppLogAppInfo, HistoricoRelatorioPontoAppLogBase, 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';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from './modificador-fire-convert';
|
|
2
|
-
export declare enum EnumAuditoriaModificadorTipo {
|
|
3
|
-
USUARIO = "USUARIO",
|
|
4
|
-
API_ECONTADOR = "API_ECONTADOR",
|
|
5
|
-
API_DOMINIO = "API_DOMINIO"
|
|
6
|
-
}
|
|
7
|
-
export interface AuditoriaModificadorBase {
|
|
8
|
-
id: string;
|
|
9
|
-
ref: any;
|
|
10
|
-
tipo: EnumAuditoriaModificadorTipo;
|
|
11
|
-
nome: string;
|
|
12
|
-
documento: string;
|
|
13
|
-
email: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Internal class auditoria doc.
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @class Lancamento
|
|
20
|
-
*/
|
|
21
|
-
export declare class AuditoriaModificador implements AuditoriaModificadorBase {
|
|
22
|
-
id: string;
|
|
23
|
-
ref: string;
|
|
24
|
-
tipo: EnumAuditoriaModificadorTipo;
|
|
25
|
-
nome: string;
|
|
26
|
-
documento: string;
|
|
27
|
-
email: string;
|
|
28
|
-
constructor(lancamentoPayload: Partial<AuditoriaModificador>);
|
|
29
|
-
}
|
|
@@ -1,43 +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.AuditoriaModificador = exports.EnumAuditoriaModificadorTipo = void 0;
|
|
18
|
-
__exportStar(require("./modificador-fire-convert"), exports);
|
|
19
|
-
var EnumAuditoriaModificadorTipo;
|
|
20
|
-
(function (EnumAuditoriaModificadorTipo) {
|
|
21
|
-
EnumAuditoriaModificadorTipo["USUARIO"] = "USUARIO";
|
|
22
|
-
EnumAuditoriaModificadorTipo["API_ECONTADOR"] = "API_ECONTADOR";
|
|
23
|
-
EnumAuditoriaModificadorTipo["API_DOMINIO"] = "API_DOMINIO";
|
|
24
|
-
})(EnumAuditoriaModificadorTipo = exports.EnumAuditoriaModificadorTipo || (exports.EnumAuditoriaModificadorTipo = {}));
|
|
25
|
-
/**
|
|
26
|
-
* Internal class auditoria doc.
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class Lancamento
|
|
30
|
-
*/
|
|
31
|
-
var AuditoriaModificador = /** @class */ (function () {
|
|
32
|
-
function AuditoriaModificador(lancamentoPayload) {
|
|
33
|
-
var _a, _b, _c, _d, _e, _f;
|
|
34
|
-
this.id = (_a = lancamentoPayload.id) !== null && _a !== void 0 ? _a : undefined;
|
|
35
|
-
this.ref = (_b = lancamentoPayload.ref) !== null && _b !== void 0 ? _b : undefined;
|
|
36
|
-
this.tipo = (_c = lancamentoPayload.tipo) !== null && _c !== void 0 ? _c : undefined;
|
|
37
|
-
this.nome = (_d = lancamentoPayload.nome) !== null && _d !== void 0 ? _d : undefined;
|
|
38
|
-
this.documento = (_e = lancamentoPayload.documento) !== null && _e !== void 0 ? _e : undefined;
|
|
39
|
-
this.email = (_f = lancamentoPayload.email) !== null && _f !== void 0 ? _f : undefined;
|
|
40
|
-
}
|
|
41
|
-
return AuditoriaModificador;
|
|
42
|
-
}());
|
|
43
|
-
exports.AuditoriaModificador = AuditoriaModificador;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AuditoriaModificador, AuditoriaModificadorBase, EnumAuditoriaModificadorTipo } from '.';
|
|
2
|
-
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric } from '../../../../shared/flitModelsDependencyInjection';
|
|
3
|
-
export declare class AuditoriaModificadorFirestoreData implements AuditoriaModificadorBase {
|
|
4
|
-
id: string;
|
|
5
|
-
ref: FirebaseDocumentReferenceGeneric;
|
|
6
|
-
tipo: EnumAuditoriaModificadorTipo;
|
|
7
|
-
nome: string;
|
|
8
|
-
documento: string;
|
|
9
|
-
email: string;
|
|
10
|
-
}
|
|
11
|
-
export declare abstract class AuditoriaModificadorFireConvert {
|
|
12
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): AuditoriaModificador;
|
|
13
|
-
static toFirestore(auditoriaModificador: AuditoriaModificador): Partial<AuditoriaModificadorFirestoreData>;
|
|
14
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuditoriaModificadorFireConvert = exports.AuditoriaModificadorFirestoreData = 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 AuditoriaModificadorFirestoreData = /** @class */ (function () {
|
|
9
|
-
function AuditoriaModificadorFirestoreData() {
|
|
10
|
-
}
|
|
11
|
-
return AuditoriaModificadorFirestoreData;
|
|
12
|
-
}());
|
|
13
|
-
exports.AuditoriaModificadorFirestoreData = AuditoriaModificadorFirestoreData;
|
|
14
|
-
var AuditoriaModificadorFireConvert = /** @class */ (function () {
|
|
15
|
-
function AuditoriaModificadorFireConvert() {
|
|
16
|
-
}
|
|
17
|
-
AuditoriaModificadorFireConvert.fromFirestore = function (doc) {
|
|
18
|
-
var _a, _b, _c, _d, _e;
|
|
19
|
-
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
20
|
-
return new _1.AuditoriaModificador({
|
|
21
|
-
id: (_b = docData.id) !== null && _b !== void 0 ? _b : null,
|
|
22
|
-
ref: (_d = (_c = docData.ref) === null || _c === void 0 ? void 0 : _c.path) !== null && _d !== void 0 ? _d : null,
|
|
23
|
-
tipo: (_e = docData.tipo) !== null && _e !== void 0 ? _e : null,
|
|
24
|
-
nome: string_helper_1.StringHelper.trim(docData.nome, null),
|
|
25
|
-
documento: string_helper_1.StringHelper.check(docData.documento, null),
|
|
26
|
-
email: string_helper_1.StringHelper.lower(docData.email, null),
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
AuditoriaModificadorFireConvert.toFirestore = function (auditoriaModificador) {
|
|
30
|
-
var _a, _b, _c;
|
|
31
|
-
var auditoriaModificadorFire = {
|
|
32
|
-
id: (_a = auditoriaModificador.id) !== null && _a !== void 0 ? _a : null,
|
|
33
|
-
ref: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(auditoriaModificador.ref)) !== null && _b !== void 0 ? _b : null,
|
|
34
|
-
tipo: (_c = auditoriaModificador.tipo) !== null && _c !== void 0 ? _c : null,
|
|
35
|
-
nome: string_helper_1.StringHelper.trim(auditoriaModificador.nome, null),
|
|
36
|
-
documento: string_helper_1.StringHelper.check(auditoriaModificador.documento, null),
|
|
37
|
-
email: string_helper_1.StringHelper.lower(auditoriaModificador.email, null),
|
|
38
|
-
};
|
|
39
|
-
return (0, lodash_1.omitBy)(auditoriaModificadorFire, lodash_1.isUndefined);
|
|
40
|
-
};
|
|
41
|
-
return AuditoriaModificadorFireConvert;
|
|
42
|
-
}());
|
|
43
|
-
exports.AuditoriaModificadorFireConvert = AuditoriaModificadorFireConvert;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Cargo, CargoBase } from '.';
|
|
2
|
-
import { FirebaseDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
|
-
export declare class CargoFirestoreData implements CargoBase {
|
|
4
|
-
cbo: string;
|
|
5
|
-
data_atualizacao_doc: FirebaseTimestampGeneric;
|
|
6
|
-
data_criacao_doc: FirebaseTimestampGeneric;
|
|
7
|
-
excluido: boolean;
|
|
8
|
-
nome: string;
|
|
9
|
-
}
|
|
10
|
-
export declare abstract class CargoFireConvert {
|
|
11
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseDocumentSnapshotGeneric): Cargo;
|
|
12
|
-
static toFirestore(cargo: Cargo): Partial<CargoFirestoreData>;
|
|
13
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CargoFireConvert = exports.CargoFirestoreData = void 0;
|
|
4
|
-
var lodash_1 = require("lodash");
|
|
5
|
-
var _1 = require(".");
|
|
6
|
-
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
7
|
-
var CargoFirestoreData = /** @class */ (function () {
|
|
8
|
-
function CargoFirestoreData() {
|
|
9
|
-
}
|
|
10
|
-
return CargoFirestoreData;
|
|
11
|
-
}());
|
|
12
|
-
exports.CargoFirestoreData = CargoFirestoreData;
|
|
13
|
-
var CargoFireConvert = /** @class */ (function () {
|
|
14
|
-
function CargoFireConvert() {
|
|
15
|
-
}
|
|
16
|
-
CargoFireConvert.fromFirestore = function (doc) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
18
|
-
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
19
|
-
return new _1.Cargo({
|
|
20
|
-
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
21
|
-
_path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
|
|
22
|
-
cbo: (_d = docData.cbo) !== null && _d !== void 0 ? _d : null,
|
|
23
|
-
data_atualizacao_doc: (_f = (_e = docData.data_atualizacao_doc) === null || _e === void 0 ? void 0 : _e.toDate()) !== null && _f !== void 0 ? _f : null,
|
|
24
|
-
data_criacao_doc: (_h = (_g = docData.data_criacao_doc) === null || _g === void 0 ? void 0 : _g.toDate()) !== null && _h !== void 0 ? _h : null,
|
|
25
|
-
excluido: (_j = docData.excluido) !== null && _j !== void 0 ? _j : false,
|
|
26
|
-
nome: (_k = docData.nome) !== null && _k !== void 0 ? _k : null,
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
CargoFireConvert.toFirestore = function (cargo) {
|
|
30
|
-
var _a, _b, _c, _d, _e;
|
|
31
|
-
var cargoFire = {
|
|
32
|
-
cbo: (_a = cargo.cbo) !== null && _a !== void 0 ? _a : null,
|
|
33
|
-
data_atualizacao_doc: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_atualizacao_doc)) !== null && _b !== void 0 ? _b : null,
|
|
34
|
-
data_criacao_doc: (_c = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_criacao_doc)) !== null && _c !== void 0 ? _c : null,
|
|
35
|
-
excluido: (_d = cargo.excluido) !== null && _d !== void 0 ? _d : false,
|
|
36
|
-
nome: (_e = cargo.nome) !== null && _e !== void 0 ? _e : null,
|
|
37
|
-
};
|
|
38
|
-
return (0, lodash_1.omitBy)(cargoFire, lodash_1.isUndefined);
|
|
39
|
-
};
|
|
40
|
-
return CargoFireConvert;
|
|
41
|
-
}());
|
|
42
|
-
exports.CargoFireConvert = CargoFireConvert;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from './cargo-fire-convert';
|
|
2
|
-
export interface CargoBase {
|
|
3
|
-
cbo: string;
|
|
4
|
-
data_atualizacao_doc: any;
|
|
5
|
-
data_criacao_doc: any;
|
|
6
|
-
excluido: boolean;
|
|
7
|
-
nome: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
11
|
-
*
|
|
12
|
-
* @export
|
|
13
|
-
* @class Lancamento
|
|
14
|
-
*/
|
|
15
|
-
export declare class Cargo implements CargoBase {
|
|
16
|
-
_id: string;
|
|
17
|
-
_path: string;
|
|
18
|
-
cbo: string;
|
|
19
|
-
data_atualizacao_doc: Date;
|
|
20
|
-
data_criacao_doc: Date;
|
|
21
|
-
excluido: boolean;
|
|
22
|
-
nome: string;
|
|
23
|
-
/**
|
|
24
|
-
* Creates an instance of Lancamento.
|
|
25
|
-
* @param {Partial<Lancamento>} lancamentoPayload
|
|
26
|
-
* @memberof Lancamento
|
|
27
|
-
*/
|
|
28
|
-
constructor(lancamentoPayload: Partial<Cargo>);
|
|
29
|
-
}
|
|
@@ -1,45 +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.Cargo = void 0;
|
|
18
|
-
__exportStar(require("./cargo-fire-convert"), exports);
|
|
19
|
-
/**
|
|
20
|
-
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
21
|
-
*
|
|
22
|
-
* @export
|
|
23
|
-
* @class Lancamento
|
|
24
|
-
*/
|
|
25
|
-
var Cargo = /** @class */ (function () {
|
|
26
|
-
// #endregion
|
|
27
|
-
/**
|
|
28
|
-
* Creates an instance of Lancamento.
|
|
29
|
-
* @param {Partial<Lancamento>} lancamentoPayload
|
|
30
|
-
* @memberof Lancamento
|
|
31
|
-
*/
|
|
32
|
-
function Cargo(lancamentoPayload) {
|
|
33
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
34
|
-
this._id = (_a = lancamentoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
35
|
-
this._path = (_b = lancamentoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
36
|
-
this.cbo = (_c = lancamentoPayload.cbo) !== null && _c !== void 0 ? _c : undefined;
|
|
37
|
-
this.data_atualizacao_doc =
|
|
38
|
-
(_d = lancamentoPayload.data_atualizacao_doc) !== null && _d !== void 0 ? _d : undefined;
|
|
39
|
-
this.data_criacao_doc = (_e = lancamentoPayload.data_criacao_doc) !== null && _e !== void 0 ? _e : undefined;
|
|
40
|
-
this.excluido = (_f = lancamentoPayload.excluido) !== null && _f !== void 0 ? _f : undefined;
|
|
41
|
-
this.nome = (_g = lancamentoPayload.nome) !== null && _g !== void 0 ? _g : undefined;
|
|
42
|
-
}
|
|
43
|
-
return Cargo;
|
|
44
|
-
}());
|
|
45
|
-
exports.Cargo = Cargo;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Departamento, DepartamentoBase } from '.';
|
|
2
|
-
import { FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
|
-
export declare class DepartamentoFirestoreData implements DepartamentoBase {
|
|
4
|
-
data_atualizacao_doc: FirebaseTimestampGeneric;
|
|
5
|
-
data_criacao_doc: FirebaseTimestampGeneric;
|
|
6
|
-
descricao: string;
|
|
7
|
-
excluido: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare abstract class DepartamentoFireConvert {
|
|
10
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Departamento;
|
|
11
|
-
static toFirestore(departamento: Departamento): Partial<DepartamentoFirestoreData>;
|
|
12
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DepartamentoFireConvert = exports.DepartamentoFirestoreData = void 0;
|
|
4
|
-
var lodash_1 = require("lodash");
|
|
5
|
-
var _1 = require(".");
|
|
6
|
-
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
7
|
-
var DepartamentoFirestoreData = /** @class */ (function () {
|
|
8
|
-
function DepartamentoFirestoreData() {
|
|
9
|
-
}
|
|
10
|
-
return DepartamentoFirestoreData;
|
|
11
|
-
}());
|
|
12
|
-
exports.DepartamentoFirestoreData = DepartamentoFirestoreData;
|
|
13
|
-
var DepartamentoFireConvert = /** @class */ (function () {
|
|
14
|
-
function DepartamentoFireConvert() {
|
|
15
|
-
}
|
|
16
|
-
DepartamentoFireConvert.fromFirestore = function (doc) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
18
|
-
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
19
|
-
return new _1.Departamento({
|
|
20
|
-
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
21
|
-
_path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
|
|
22
|
-
data_atualizacao_doc: (_e = (_d = docData.data_atualizacao_doc) === null || _d === void 0 ? void 0 : _d.toDate()) !== null && _e !== void 0 ? _e : null,
|
|
23
|
-
data_criacao_doc: (_g = (_f = docData.data_criacao_doc) === null || _f === void 0 ? void 0 : _f.toDate()) !== null && _g !== void 0 ? _g : null,
|
|
24
|
-
descricao: (_h = docData.descricao) !== null && _h !== void 0 ? _h : null,
|
|
25
|
-
excluido: (_j = docData.excluido) !== null && _j !== void 0 ? _j : false,
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
DepartamentoFireConvert.toFirestore = function (departamento) {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
var departamentoFire = {
|
|
31
|
-
data_atualizacao_doc: (_a = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(departamento.data_atualizacao_doc)) !== null && _a !== void 0 ? _a : null,
|
|
32
|
-
data_criacao_doc: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(departamento.data_criacao_doc)) !== null && _b !== void 0 ? _b : null,
|
|
33
|
-
descricao: (_c = departamento.descricao) !== null && _c !== void 0 ? _c : null,
|
|
34
|
-
excluido: (_d = departamento.excluido) !== null && _d !== void 0 ? _d : false,
|
|
35
|
-
};
|
|
36
|
-
return (0, lodash_1.omitBy)(departamentoFire, lodash_1.isUndefined);
|
|
37
|
-
};
|
|
38
|
-
return DepartamentoFireConvert;
|
|
39
|
-
}());
|
|
40
|
-
exports.DepartamentoFireConvert = DepartamentoFireConvert;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export * from './departamento-fire-convert';
|
|
2
|
-
export interface DepartamentoBase {
|
|
3
|
-
data_atualizacao_doc: any;
|
|
4
|
-
data_criacao_doc: any;
|
|
5
|
-
descricao: string;
|
|
6
|
-
excluido: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
|
-
* @class Lancamento
|
|
13
|
-
*/
|
|
14
|
-
export declare class Departamento implements DepartamentoBase {
|
|
15
|
-
_id: string;
|
|
16
|
-
_path: string;
|
|
17
|
-
data_atualizacao_doc: Date;
|
|
18
|
-
data_criacao_doc: Date;
|
|
19
|
-
descricao: string;
|
|
20
|
-
excluido: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Creates an instance of Lancamento.
|
|
23
|
-
* @param {Partial<Lancamento>} lancamentoPayload
|
|
24
|
-
* @memberof Lancamento
|
|
25
|
-
*/
|
|
26
|
-
constructor(lancamentoPayload: Partial<Departamento>);
|
|
27
|
-
}
|
|
@@ -1,44 +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.Departamento = void 0;
|
|
18
|
-
__exportStar(require("./departamento-fire-convert"), exports);
|
|
19
|
-
/**
|
|
20
|
-
* Internal class col contas/${contaId}/cargo/${cargoId}.
|
|
21
|
-
*
|
|
22
|
-
* @export
|
|
23
|
-
* @class Lancamento
|
|
24
|
-
*/
|
|
25
|
-
var Departamento = /** @class */ (function () {
|
|
26
|
-
// #endregion
|
|
27
|
-
/**
|
|
28
|
-
* Creates an instance of Lancamento.
|
|
29
|
-
* @param {Partial<Lancamento>} lancamentoPayload
|
|
30
|
-
* @memberof Lancamento
|
|
31
|
-
*/
|
|
32
|
-
function Departamento(lancamentoPayload) {
|
|
33
|
-
var _a, _b, _c, _d, _e, _f;
|
|
34
|
-
this._id = (_a = lancamentoPayload._id) !== null && _a !== void 0 ? _a : undefined;
|
|
35
|
-
this._path = (_b = lancamentoPayload._path) !== null && _b !== void 0 ? _b : undefined;
|
|
36
|
-
this.data_atualizacao_doc =
|
|
37
|
-
(_c = lancamentoPayload.data_atualizacao_doc) !== null && _c !== void 0 ? _c : undefined;
|
|
38
|
-
this.data_criacao_doc = (_d = lancamentoPayload.data_criacao_doc) !== null && _d !== void 0 ? _d : undefined;
|
|
39
|
-
this.descricao = (_e = lancamentoPayload.descricao) !== null && _e !== void 0 ? _e : undefined;
|
|
40
|
-
this.excluido = (_f = lancamentoPayload.excluido) !== null && _f !== void 0 ? _f : undefined;
|
|
41
|
-
}
|
|
42
|
-
return Departamento;
|
|
43
|
-
}());
|
|
44
|
-
exports.Departamento = Departamento;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Escala, EscalaBase, RegimesCompensacaoEscala } from '.';
|
|
2
|
-
import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
|
-
export declare class EscalaFirestoreData implements EscalaBase {
|
|
4
|
-
data_atualizacao_doc: FirebaseTimestampGeneric;
|
|
5
|
-
data_criacao_doc: FirebaseTimestampGeneric;
|
|
6
|
-
data_inicial: FirebaseTimestampGeneric;
|
|
7
|
-
descricao: string;
|
|
8
|
-
excluido: boolean;
|
|
9
|
-
existe_marcacao_pre_assinalada: boolean;
|
|
10
|
-
regime_compensacao_dias: {
|
|
11
|
-
seg: RegimesCompensacaoEscala;
|
|
12
|
-
ter: RegimesCompensacaoEscala;
|
|
13
|
-
qua: RegimesCompensacaoEscala;
|
|
14
|
-
qui: RegimesCompensacaoEscala;
|
|
15
|
-
sex: RegimesCompensacaoEscala;
|
|
16
|
-
sab: RegimesCompensacaoEscala;
|
|
17
|
-
dom: RegimesCompensacaoEscala;
|
|
18
|
-
fer?: RegimesCompensacaoEscala;
|
|
19
|
-
};
|
|
20
|
-
jornadas: {
|
|
21
|
-
marcacoes_pre_assinaladas?: {
|
|
22
|
-
todos_intervalos: boolean;
|
|
23
|
-
indices: number[];
|
|
24
|
-
};
|
|
25
|
-
repetir: number;
|
|
26
|
-
ocorrencia_frequencia_ref: FirebaseDocumentReferenceGeneric;
|
|
27
|
-
periodos: {
|
|
28
|
-
entrada: {
|
|
29
|
-
hora: string;
|
|
30
|
-
timezone_value: string;
|
|
31
|
-
origem: null | 'marcacao pre assinalada';
|
|
32
|
-
};
|
|
33
|
-
saida: {
|
|
34
|
-
hora: string;
|
|
35
|
-
timezone_value: string;
|
|
36
|
-
origem: null | 'marcacao pre assinalada';
|
|
37
|
-
};
|
|
38
|
-
duracao: string;
|
|
39
|
-
descanso: string;
|
|
40
|
-
}[];
|
|
41
|
-
}[];
|
|
42
|
-
faixa_hora_extra_semanal_ref?: FirebaseDocumentReferenceGeneric;
|
|
43
|
-
faixa_hora_extra_diferenciada_ref?: FirebaseDocumentReferenceGeneric;
|
|
44
|
-
}
|
|
45
|
-
export declare abstract class EscalaFireConvert {
|
|
46
|
-
static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Escala;
|
|
47
|
-
static toFirestore(escala: Escala): Partial<EscalaFirestoreData>;
|
|
48
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EscalaFireConvert = exports.EscalaFirestoreData = void 0;
|
|
4
|
-
var lodash_1 = require("lodash");
|
|
5
|
-
var _1 = require(".");
|
|
6
|
-
var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
|
|
7
|
-
var EscalaFirestoreData = /** @class */ (function () {
|
|
8
|
-
function EscalaFirestoreData() {
|
|
9
|
-
}
|
|
10
|
-
return EscalaFirestoreData;
|
|
11
|
-
}());
|
|
12
|
-
exports.EscalaFirestoreData = EscalaFirestoreData;
|
|
13
|
-
var EscalaFireConvert = /** @class */ (function () {
|
|
14
|
-
function EscalaFireConvert() {
|
|
15
|
-
}
|
|
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, _2, _3, _4;
|
|
18
|
-
var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
|
|
19
|
-
return new _1.Escala({
|
|
20
|
-
_id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
|
|
21
|
-
_path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
|
|
22
|
-
data_atualizacao_doc: ((_d = docData.data_atualizacao_doc) === null || _d === void 0 ? void 0 : _d.toDate()) || null,
|
|
23
|
-
data_criacao_doc: ((_e = docData.data_criacao_doc) === null || _e === void 0 ? void 0 : _e.toDate()) || null,
|
|
24
|
-
data_inicial: ((_f = docData.data_inicial) === null || _f === void 0 ? void 0 : _f.toDate()) || null,
|
|
25
|
-
descricao: (_g = docData.descricao) !== null && _g !== void 0 ? _g : null,
|
|
26
|
-
excluido: (_h = docData.excluido) !== null && _h !== void 0 ? _h : false,
|
|
27
|
-
existe_marcacao_pre_assinalada: (_j = docData.existe_marcacao_pre_assinalada) !== null && _j !== void 0 ? _j : false,
|
|
28
|
-
regime_compensacao_dias: {
|
|
29
|
-
seg: (_l = (_k = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _k === void 0 ? void 0 : _k.seg) !== null && _l !== void 0 ? _l : _1.RegimesCompensacaoEscala.padrao,
|
|
30
|
-
ter: (_o = (_m = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _m === void 0 ? void 0 : _m.ter) !== null && _o !== void 0 ? _o : _1.RegimesCompensacaoEscala.padrao,
|
|
31
|
-
qua: (_q = (_p = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _p === void 0 ? void 0 : _p.qua) !== null && _q !== void 0 ? _q : _1.RegimesCompensacaoEscala.padrao,
|
|
32
|
-
qui: (_s = (_r = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _r === void 0 ? void 0 : _r.qui) !== null && _s !== void 0 ? _s : _1.RegimesCompensacaoEscala.padrao,
|
|
33
|
-
sex: (_u = (_t = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _t === void 0 ? void 0 : _t.sex) !== null && _u !== void 0 ? _u : _1.RegimesCompensacaoEscala.padrao,
|
|
34
|
-
sab: (_w = (_v = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _v === void 0 ? void 0 : _v.sab) !== null && _w !== void 0 ? _w : _1.RegimesCompensacaoEscala.padrao,
|
|
35
|
-
dom: (_y = (_x = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _x === void 0 ? void 0 : _x.dom) !== null && _y !== void 0 ? _y : _1.RegimesCompensacaoEscala.padrao,
|
|
36
|
-
fer: (_0 = (_z = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _z === void 0 ? void 0 : _z.fer) !== null && _0 !== void 0 ? _0 : _1.RegimesCompensacaoEscala.padrao,
|
|
37
|
-
},
|
|
38
|
-
jornadas: docData.jornadas.map(function (jornada) {
|
|
39
|
-
var _a, _b, _c;
|
|
40
|
-
return ({
|
|
41
|
-
marcacoes_pre_assinaladas: jornada.marcacoes_pre_assinaladas
|
|
42
|
-
? {
|
|
43
|
-
indices: (_a = jornada.marcacoes_pre_assinaladas.indices) !== null && _a !== void 0 ? _a : null,
|
|
44
|
-
todos_intervalos: (_b = jornada.marcacoes_pre_assinaladas.todos_intervalos) !== null && _b !== void 0 ? _b : false,
|
|
45
|
-
}
|
|
46
|
-
: null,
|
|
47
|
-
ocorrencia_frequencia_ref: ((_c = jornada.ocorrencia_frequencia_ref) === null || _c === void 0 ? void 0 : _c.path) || null,
|
|
48
|
-
periodos: jornada.periodos.map(function (periodo) { return ({
|
|
49
|
-
entrada: {
|
|
50
|
-
hora: periodo.entrada.hora,
|
|
51
|
-
timezone_value: periodo.entrada.timezone_value,
|
|
52
|
-
origem: periodo.entrada.origem || null,
|
|
53
|
-
},
|
|
54
|
-
saida: {
|
|
55
|
-
hora: periodo.saida.hora,
|
|
56
|
-
timezone_value: periodo.saida.timezone_value,
|
|
57
|
-
origem: periodo.saida.origem || null,
|
|
58
|
-
},
|
|
59
|
-
duracao: periodo.duracao,
|
|
60
|
-
descanso: periodo.descanso,
|
|
61
|
-
}); }),
|
|
62
|
-
repetir: jornada.repetir,
|
|
63
|
-
});
|
|
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,
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
EscalaFireConvert.toFirestore = function (escala) {
|
|
70
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
71
|
-
var escalaFire = {
|
|
72
|
-
data_atualizacao_doc: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(escala.data_atualizacao_doc),
|
|
73
|
-
data_criacao_doc: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(escala.data_criacao_doc),
|
|
74
|
-
data_inicial: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(escala.data_inicial),
|
|
75
|
-
existe_marcacao_pre_assinalada: escala.existe_marcacao_pre_assinalada,
|
|
76
|
-
descricao: escala.descricao,
|
|
77
|
-
excluido: (_a = escala.excluido) !== null && _a !== void 0 ? _a : false,
|
|
78
|
-
regime_compensacao_dias: {
|
|
79
|
-
seg: (_c = (_b = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _b === void 0 ? void 0 : _b.seg) !== null && _c !== void 0 ? _c : _1.RegimesCompensacaoEscala.padrao,
|
|
80
|
-
ter: (_e = (_d = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _d === void 0 ? void 0 : _d.ter) !== null && _e !== void 0 ? _e : _1.RegimesCompensacaoEscala.padrao,
|
|
81
|
-
qua: (_g = (_f = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _f === void 0 ? void 0 : _f.qua) !== null && _g !== void 0 ? _g : _1.RegimesCompensacaoEscala.padrao,
|
|
82
|
-
qui: (_j = (_h = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _h === void 0 ? void 0 : _h.qui) !== null && _j !== void 0 ? _j : _1.RegimesCompensacaoEscala.padrao,
|
|
83
|
-
sex: (_l = (_k = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _k === void 0 ? void 0 : _k.sex) !== null && _l !== void 0 ? _l : _1.RegimesCompensacaoEscala.padrao,
|
|
84
|
-
sab: (_o = (_m = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _m === void 0 ? void 0 : _m.sab) !== null && _o !== void 0 ? _o : _1.RegimesCompensacaoEscala.padrao,
|
|
85
|
-
dom: (_q = (_p = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _p === void 0 ? void 0 : _p.dom) !== null && _q !== void 0 ? _q : _1.RegimesCompensacaoEscala.padrao,
|
|
86
|
-
fer: (_s = (_r = escala === null || escala === void 0 ? void 0 : escala.regime_compensacao_dias) === null || _r === void 0 ? void 0 : _r.fer) !== null && _s !== void 0 ? _s : _1.RegimesCompensacaoEscala.padrao,
|
|
87
|
-
},
|
|
88
|
-
jornadas: escala.jornadas.map(function (jornada) {
|
|
89
|
-
var _a, _b;
|
|
90
|
-
return ({
|
|
91
|
-
marcacoes_pre_assinaladas: jornada.marcacoes_pre_assinaladas
|
|
92
|
-
? {
|
|
93
|
-
indices: (_a = jornada.marcacoes_pre_assinaladas.indices) !== null && _a !== void 0 ? _a : null,
|
|
94
|
-
todos_intervalos: (_b = jornada.marcacoes_pre_assinaladas.todos_intervalos) !== null && _b !== void 0 ? _b : false,
|
|
95
|
-
}
|
|
96
|
-
: null,
|
|
97
|
-
ocorrencia_frequencia_ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(jornada.ocorrencia_frequencia_ref) || null,
|
|
98
|
-
periodos: jornada.periodos.map(function (periodo) { return ({
|
|
99
|
-
entrada: {
|
|
100
|
-
hora: periodo.entrada.hora,
|
|
101
|
-
timezone_value: periodo.entrada.timezone_value,
|
|
102
|
-
origem: periodo.entrada.origem || null,
|
|
103
|
-
},
|
|
104
|
-
saida: {
|
|
105
|
-
hora: periodo.saida.hora,
|
|
106
|
-
timezone_value: periodo.saida.timezone_value,
|
|
107
|
-
origem: periodo.saida.origem || null,
|
|
108
|
-
},
|
|
109
|
-
duracao: periodo.duracao,
|
|
110
|
-
descanso: periodo.descanso,
|
|
111
|
-
}); }),
|
|
112
|
-
repetir: jornada.repetir,
|
|
113
|
-
});
|
|
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,
|
|
117
|
-
};
|
|
118
|
-
return (0, lodash_1.omitBy)(escalaFire, lodash_1.isUndefined);
|
|
119
|
-
};
|
|
120
|
-
return EscalaFireConvert;
|
|
121
|
-
}());
|
|
122
|
-
exports.EscalaFireConvert = EscalaFireConvert;
|