flit-models 3.2.48 → 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/lib/models/contas/feriado/feriado-fire-convert.d.ts +2 -2
- package/lib/models/contas/feriado/feriado-fire-convert.js +4 -4
- package/lib/models/contas/feriado/feriado-json-convert.d.ts +1 -1
- package/lib/models/contas/feriado/feriado-json-convert.js +2 -2
- package/lib/models/contas/feriado/index.d.ts +2 -2
- package/lib/models/contas/feriado/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Feriado, FeriadoBase, FeriadoTipoEnum } from '.';
|
|
2
|
-
import {
|
|
2
|
+
import { FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
|
|
3
3
|
export declare class FeriadoFirestoreData implements FeriadoBase {
|
|
4
4
|
data: FirebaseTimestampGeneric;
|
|
5
5
|
descricao: string;
|
|
6
6
|
excluido: boolean;
|
|
7
7
|
importacao_id: string;
|
|
8
8
|
municipio: string;
|
|
9
|
-
|
|
9
|
+
departamentos_ids?: string[];
|
|
10
10
|
tipo: FeriadoTipoEnum;
|
|
11
11
|
todas_empresas: boolean;
|
|
12
12
|
uf: string;
|
|
@@ -34,7 +34,7 @@ var FeriadoFireConvert = /** @class */ (function () {
|
|
|
34
34
|
excluido: boolean_helper_1.BooleanHelper.check(doc.get('excluido'), false),
|
|
35
35
|
importacao_id: string_helper_1.StringHelper.trim(doc.get('importacao_id'), null),
|
|
36
36
|
municipio: string_helper_1.StringHelper.trim(doc.get('municipio'), null),
|
|
37
|
-
|
|
37
|
+
departamentos_ids: departamentos.length > 0 ? departamentos : null,
|
|
38
38
|
tipo: string_helper_1.StringHelper.trim(doc.get('tipo'), null),
|
|
39
39
|
todas_empresas: boolean_helper_1.BooleanHelper.check(doc.get('todas_empresas'), true),
|
|
40
40
|
uf: string_helper_1.StringHelper.trim(doc.get('uf'), null),
|
|
@@ -43,9 +43,9 @@ var FeriadoFireConvert = /** @class */ (function () {
|
|
|
43
43
|
FeriadoFireConvert.toFirestore = function (feriado) {
|
|
44
44
|
var _a;
|
|
45
45
|
var departamentos = [];
|
|
46
|
-
((_a = feriado.
|
|
46
|
+
((_a = feriado.departamentos_ids) !== null && _a !== void 0 ? _a : []).forEach(function (departamento) {
|
|
47
47
|
if (departamento) {
|
|
48
|
-
departamentos.push(
|
|
48
|
+
departamentos.push(departamento);
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
var feriadoFirestoreData = {
|
|
@@ -54,7 +54,7 @@ var FeriadoFireConvert = /** @class */ (function () {
|
|
|
54
54
|
excluido: boolean_helper_1.BooleanHelper.check(feriado.excluido, false),
|
|
55
55
|
importacao_id: string_helper_1.StringHelper.trim(feriado.importacao_id, null),
|
|
56
56
|
municipio: string_helper_1.StringHelper.trim(feriado.municipio, null),
|
|
57
|
-
|
|
57
|
+
departamentos_ids: departamentos.length > 0 ? departamentos : null,
|
|
58
58
|
tipo: string_helper_1.StringHelper.trim(feriado.tipo, null),
|
|
59
59
|
todas_empresas: boolean_helper_1.BooleanHelper.check(feriado.todas_empresas, true),
|
|
60
60
|
uf: string_helper_1.StringHelper.trim(feriado.uf, null),
|
|
@@ -26,7 +26,7 @@ var FeriadoJsonConvert = /** @class */ (function () {
|
|
|
26
26
|
excluido: boolean_helper_1.BooleanHelper.check(obj.excluido, false),
|
|
27
27
|
importacao_id: string_helper_1.StringHelper.trim(obj.importacao_id, null),
|
|
28
28
|
municipio: string_helper_1.StringHelper.trim(obj.municipio, null),
|
|
29
|
-
|
|
29
|
+
departamentos_ids: array_helpers_1.ArrayHelper.checkStringArray(obj.departamentos_ids, null),
|
|
30
30
|
tipo: string_helper_1.StringHelper.trim(obj.tipo, null),
|
|
31
31
|
todas_empresas: boolean_helper_1.BooleanHelper.check(obj.todas_empresas, true),
|
|
32
32
|
uf: string_helper_1.StringHelper.trim(obj.uf, null),
|
|
@@ -42,7 +42,7 @@ var FeriadoJsonConvert = /** @class */ (function () {
|
|
|
42
42
|
excluido: boolean_helper_1.BooleanHelper.check(feriado.excluido, false),
|
|
43
43
|
importacao_id: string_helper_1.StringHelper.trim(feriado.importacao_id, null),
|
|
44
44
|
municipio: string_helper_1.StringHelper.trim(feriado.municipio, null),
|
|
45
|
-
|
|
45
|
+
departamentos_ids: array_helpers_1.ArrayHelper.checkStringArray(feriado.departamentos_ids, null),
|
|
46
46
|
tipo: string_helper_1.StringHelper.trim(feriado.tipo, null),
|
|
47
47
|
todas_empresas: boolean_helper_1.BooleanHelper.check(feriado.todas_empresas, true),
|
|
48
48
|
uf: string_helper_1.StringHelper.trim(feriado.uf, null),
|
|
@@ -13,7 +13,7 @@ export interface FeriadoBase {
|
|
|
13
13
|
excluido: any;
|
|
14
14
|
importacao_id: any;
|
|
15
15
|
municipio: any;
|
|
16
|
-
|
|
16
|
+
departamentos_ids?: any;
|
|
17
17
|
tipo: any;
|
|
18
18
|
todas_empresas: any;
|
|
19
19
|
uf: any;
|
|
@@ -32,7 +32,7 @@ export declare class Feriado implements FeriadoBase {
|
|
|
32
32
|
excluido: boolean;
|
|
33
33
|
importacao_id: string;
|
|
34
34
|
municipio: string;
|
|
35
|
-
|
|
35
|
+
departamentos_ids?: string[];
|
|
36
36
|
tipo: FeriadoTipoEnum;
|
|
37
37
|
todas_empresas: boolean;
|
|
38
38
|
uf: string;
|
|
@@ -46,7 +46,7 @@ var Feriado = /** @class */ (function () {
|
|
|
46
46
|
this.excluido = (_e = feriadoPayload.excluido) !== null && _e !== void 0 ? _e : undefined;
|
|
47
47
|
this.importacao_id = (_f = feriadoPayload.importacao_id) !== null && _f !== void 0 ? _f : undefined;
|
|
48
48
|
this.municipio = (_g = feriadoPayload.municipio) !== null && _g !== void 0 ? _g : undefined;
|
|
49
|
-
this.
|
|
49
|
+
this.departamentos_ids = (_h = feriadoPayload.departamentos_ids) !== null && _h !== void 0 ? _h : undefined;
|
|
50
50
|
this.tipo = (_j = feriadoPayload.tipo) !== null && _j !== void 0 ? _j : undefined;
|
|
51
51
|
this.todas_empresas = (_k = feriadoPayload.todas_empresas) !== null && _k !== void 0 ? _k : undefined;
|
|
52
52
|
this.uf = (_l = feriadoPayload.uf) !== null && _l !== void 0 ? _l : undefined;
|