flit-models 2.1.23 → 2.1.26

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.
@@ -15,6 +15,7 @@ export declare enum TipoAcaoLancamentoEnum {
15
15
  AbonoParcial = "Abono Parcial",
16
16
  Afastado = "Afastado",
17
17
  Atestado = "Atestado",
18
+ AtestadoParcial = "Atestado Parcial",
18
19
  DiaTrabalhado = "Dia trabalhado",
19
20
  Falta = "Falta",
20
21
  FaltaBH = "Falta BH",
@@ -33,6 +33,7 @@ var TipoAcaoLancamentoEnum;
33
33
  TipoAcaoLancamentoEnum["AbonoParcial"] = "Abono Parcial";
34
34
  TipoAcaoLancamentoEnum["Afastado"] = "Afastado";
35
35
  TipoAcaoLancamentoEnum["Atestado"] = "Atestado";
36
+ TipoAcaoLancamentoEnum["AtestadoParcial"] = "Atestado Parcial";
36
37
  TipoAcaoLancamentoEnum["DiaTrabalhado"] = "Dia trabalhado";
37
38
  TipoAcaoLancamentoEnum["Falta"] = "Falta";
38
39
  TipoAcaoLancamentoEnum["FaltaBH"] = "Falta BH";
@@ -40,7 +40,7 @@ var LancamentoJsonConvert = /** @class */ (function () {
40
40
  tipo: string_helper_1.StringHelper.trim(obj.ocorrencia.tipo, null),
41
41
  }
42
42
  : null,
43
- todos_colaboradores: boolean_helper_1.BooleanHelper.check(obj.excluido, true),
43
+ todos_colaboradores: boolean_helper_1.BooleanHelper.check(obj.todos_colaboradores, true),
44
44
  periodos: ((_c = obj.periodos) === null || _c === void 0 ? void 0 : _c.length) ? obj.periodos : null,
45
45
  data_atualizacao: date_helper_1.DateHelper.fromString(obj.data_atualizacao, null),
46
46
  data_criacao: date_helper_1.DateHelper.fromString(obj.data_criacao, null),
@@ -20,20 +20,20 @@ var LogLancamentoFireConvert = /** @class */ (function () {
20
20
  return new log_lancamento_1.LogLancamento({
21
21
  _id: (_a = doc.id) !== null && _a !== void 0 ? _a : null,
22
22
  _path: (_b = doc.ref.path) !== null && _b !== void 0 ? _b : null,
23
- data_criacao: (0, type_guards_1.TipoTimestampFirestore)(doc.get('jornada.data'))
24
- ? doc.get('data_inicial').toDate()
23
+ data_criacao: (0, type_guards_1.TipoTimestampFirestore)(doc.get('data_criacao'))
24
+ ? doc.get('data_criacao').toDate()
25
25
  : null,
26
26
  referencia: {
27
- ref: (0, type_guards_1.TipoDocumentReference)(doc.get('ref'))
28
- ? doc.get('ref').path
27
+ ref: (0, type_guards_1.TipoDocumentReference)(doc.get('referencia.ref'))
28
+ ? doc.get('referencia.ref').path
29
29
  : null,
30
- data: (0, type_guards_1.TipoTimestampFirestore)(doc.get('jornada.data'))
31
- ? doc.get('data_inicial').toDate()
30
+ data: (0, type_guards_1.TipoTimestampFirestore)(doc.get('referencia.data'))
31
+ ? doc.get('referencia.data').toDate()
32
32
  : null,
33
33
  tipo: string_helper_1.StringHelper.trim(doc.get('referencia.tipo'), null),
34
34
  },
35
35
  mensagem: string_helper_1.StringHelper.trim(doc.get('mensagem'), null),
36
- tipo: string_helper_1.StringHelper.trim(doc.get('status'), null),
36
+ tipo: string_helper_1.StringHelper.trim(doc.get('tipo'), null),
37
37
  detalhes: (_c = doc.get('detalhes')) !== null && _c !== void 0 ? _c : null,
38
38
  visto: (_d = doc.get('visto')) !== null && _d !== void 0 ? _d : false,
39
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "2.1.23",
3
+ "version": "2.1.26",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",