flit-models 3.3.40 → 3.3.41

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.
@@ -7,8 +7,8 @@ export interface ModeloFaixaHoraExtraBase {
7
7
  descricao_faixas: {
8
8
  total: {
9
9
  faixa1: string;
10
- faixa2: string;
11
- faixa3: string;
10
+ faixa2?: string;
11
+ faixa3?: string;
12
12
  };
13
13
  };
14
14
  tipo: TipoFaixaDeHorasExtras;
@@ -8,14 +8,14 @@ export declare class ModeloFaixaHoraExtraFirestoreData implements ModeloFaixaHor
8
8
  descricao_faixas: {
9
9
  total: {
10
10
  faixa1: string;
11
- faixa2: string;
12
- faixa3: string;
13
- faixa4: string;
14
- faixa5: string;
15
- faixa6: string;
16
- faixa7: string;
17
- faixa8: string;
18
- faixa9: string;
11
+ faixa2?: string;
12
+ faixa3?: string;
13
+ faixa4?: string;
14
+ faixa5?: string;
15
+ faixa6?: string;
16
+ faixa7?: string;
17
+ faixa8?: string;
18
+ faixa9?: string;
19
19
  };
20
20
  };
21
21
  tipo: TipoFaixaDeHorasExtras;
@@ -86,6 +86,15 @@ var ModeloFaixaHoraExtraFireConvert = /** @class */ (function () {
86
86
  };
87
87
  ModeloFaixaHoraExtraFireConvert.toFirestore = function (faixa) {
88
88
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
89
+ var tratarDescricoesFaixas = function () {
90
+ var total = {};
91
+ Object.keys(faixa.descricao_faixas.total).forEach(function (key) {
92
+ if (faixa.descricao_faixas.total[key]) {
93
+ total[key] = string_helper_1.StringHelper.trim(faixa.descricao_faixas.total[key], null);
94
+ }
95
+ });
96
+ return total;
97
+ };
89
98
  var faixaHoraExtraFire = {
90
99
  data_atualizacao_doc: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(faixa.data_atualizacao_doc),
91
100
  data_criacao_doc: faixa.data_criacao_doc
@@ -94,17 +103,7 @@ var ModeloFaixaHoraExtraFireConvert = /** @class */ (function () {
94
103
  descricao_modelo: (_a = faixa.descricao_modelo) !== null && _a !== void 0 ? _a : null,
95
104
  excluido: (_b = faixa.excluido) !== null && _b !== void 0 ? _b : false,
96
105
  descricao_faixas: {
97
- total: {
98
- faixa1: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa1, null),
99
- faixa2: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa2, null),
100
- faixa3: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa3, null),
101
- faixa4: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa4, null),
102
- faixa5: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa5, null),
103
- faixa6: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa6, null),
104
- faixa7: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa7, null),
105
- faixa8: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa8, null),
106
- faixa9: string_helper_1.StringHelper.trim(faixa.descricao_faixas.total.faixa9, null),
107
- },
106
+ total: tratarDescricoesFaixas(),
108
107
  },
109
108
  tipo: (_c = faixa.tipo) !== null && _c !== void 0 ? _c : null,
110
109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "3.3.40",
3
+ "version": "3.3.41",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",