flit-models 3.3.27 → 3.3.29

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.
@@ -42,6 +42,12 @@ export declare class EscalaFirestoreData implements EscalaBase {
42
42
  dom: RegimesCompensacaoEscala;
43
43
  fer?: RegimesCompensacaoEscala;
44
44
  };
45
+ pausas?: {
46
+ ativo: boolean;
47
+ duracao_minutos: number;
48
+ quantidade: number;
49
+ tolerancia_minutos: number;
50
+ };
45
51
  }
46
52
  export declare abstract class EscalaFireConvert {
47
53
  static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Escala;
@@ -15,7 +15,7 @@ var EscalaFireConvert = /** @class */ (function () {
15
15
  function EscalaFireConvert() {
16
16
  }
17
17
  EscalaFireConvert.fromFirestore = function (doc) {
18
- 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 _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, _5, _6, _7, _8, _9, _10, _11, _12;
19
19
  var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
20
20
  return new _1.Escala({
21
21
  _id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
@@ -66,10 +66,16 @@ var EscalaFireConvert = /** @class */ (function () {
66
66
  dom: (_2 = (_0 = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _0 === void 0 ? void 0 : _0.dom) !== null && _2 !== void 0 ? _2 : _1.RegimesCompensacaoEscala.padrao,
67
67
  fer: (_4 = (_3 = docData === null || docData === void 0 ? void 0 : docData.regime_compensacao_dias) === null || _3 === void 0 ? void 0 : _3.fer) !== null && _4 !== void 0 ? _4 : _1.RegimesCompensacaoEscala.padrao,
68
68
  },
69
+ pausas: {
70
+ ativo: (_6 = (_5 = docData === null || docData === void 0 ? void 0 : docData.pausas) === null || _5 === void 0 ? void 0 : _5.ativo) !== null && _6 !== void 0 ? _6 : false,
71
+ duracao_minutos: (_8 = (_7 = docData === null || docData === void 0 ? void 0 : docData.pausas) === null || _7 === void 0 ? void 0 : _7.duracao_minutos) !== null && _8 !== void 0 ? _8 : 0,
72
+ quantidade: (_10 = (_9 = docData === null || docData === void 0 ? void 0 : docData.pausas) === null || _9 === void 0 ? void 0 : _9.quantidade) !== null && _10 !== void 0 ? _10 : 0,
73
+ tolerancia_minutos: (_12 = (_11 = docData === null || docData === void 0 ? void 0 : docData.pausas) === null || _11 === void 0 ? void 0 : _11.tolerancia_minutos) !== null && _12 !== void 0 ? _12 : 0,
74
+ },
69
75
  });
70
76
  };
71
77
  EscalaFireConvert.toFirestore = function (escala) {
72
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
78
+ 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;
73
79
  var escalaFire = {
74
80
  data_atualizacao_doc: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(escala.data_atualizacao_doc),
75
81
  data_criacao_doc: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(escala.data_criacao_doc),
@@ -117,6 +123,12 @@ var EscalaFireConvert = /** @class */ (function () {
117
123
  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,
118
124
  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,
119
125
  },
126
+ pausas: {
127
+ ativo: (_u = (_t = escala === null || escala === void 0 ? void 0 : escala.pausas) === null || _t === void 0 ? void 0 : _t.ativo) !== null && _u !== void 0 ? _u : false,
128
+ duracao_minutos: (_w = (_v = escala === null || escala === void 0 ? void 0 : escala.pausas) === null || _v === void 0 ? void 0 : _v.duracao_minutos) !== null && _w !== void 0 ? _w : 0,
129
+ quantidade: (_y = (_x = escala === null || escala === void 0 ? void 0 : escala.pausas) === null || _x === void 0 ? void 0 : _x.quantidade) !== null && _y !== void 0 ? _y : 0,
130
+ tolerancia_minutos: (_0 = (_z = escala === null || escala === void 0 ? void 0 : escala.pausas) === null || _z === void 0 ? void 0 : _z.tolerancia_minutos) !== null && _0 !== void 0 ? _0 : 0,
131
+ },
120
132
  };
121
133
  return (0, lodash_1.omitBy)(escalaFire, lodash_1.isUndefined);
122
134
  };
@@ -50,6 +50,12 @@ export interface EscalaBase {
50
50
  dom: RegimesCompensacaoEscala;
51
51
  fer?: RegimesCompensacaoEscala;
52
52
  };
53
+ pausas?: {
54
+ ativo: boolean;
55
+ duracao_minutos: number;
56
+ quantidade: number;
57
+ tolerancia_minutos: number;
58
+ };
53
59
  }
54
60
  /**
55
61
  * Internal class col contas/${contaId}/cargo/${cargoId}.
@@ -101,5 +107,11 @@ export declare class Escala implements EscalaBase {
101
107
  dom: RegimesCompensacaoEscala;
102
108
  fer?: RegimesCompensacaoEscala;
103
109
  };
110
+ pausas?: {
111
+ ativo: boolean;
112
+ duracao_minutos: number;
113
+ quantidade: number;
114
+ tolerancia_minutos: number;
115
+ };
104
116
  constructor(escalaPayload: Partial<Escala>);
105
117
  }
@@ -48,7 +48,7 @@ exports.EscalaHelpers = EscalaHelpers;
48
48
  var Escala = /** @class */ (function () {
49
49
  // #endregion
50
50
  function Escala(escalaPayload) {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
52
52
  this._id = (_a = escalaPayload._id) !== null && _a !== void 0 ? _a : undefined;
53
53
  this._path = (_b = escalaPayload._path) !== null && _b !== void 0 ? _b : undefined;
54
54
  this.data_atualizacao_doc = (_c = escalaPayload.data_atualizacao_doc) !== null && _c !== void 0 ? _c : undefined;
@@ -66,6 +66,7 @@ var Escala = /** @class */ (function () {
66
66
  this.jornadas = (_m = escalaPayload.jornadas) !== null && _m !== void 0 ? _m : undefined;
67
67
  this.regime_compensacao_dias =
68
68
  (_o = escalaPayload.regime_compensacao_dias) !== null && _o !== void 0 ? _o : undefined;
69
+ this.pausas = (_p = escalaPayload.pausas) !== null && _p !== void 0 ? _p : undefined;
69
70
  }
70
71
  return Escala;
71
72
  }());
@@ -49,11 +49,11 @@ export interface LancamentoBase {
49
49
  data_atualizacao: any;
50
50
  data_inicial: any;
51
51
  data_final: any;
52
- data_referencia: any;
52
+ data_referencia?: any;
53
53
  descricao: any;
54
54
  excluido: any;
55
55
  acao_tipo: any;
56
- acao_subtipo: any;
56
+ acao_subtipo?: any;
57
57
  ocorrencia?: {
58
58
  uid: any;
59
59
  tipo: any;
@@ -99,10 +99,10 @@ export declare class Lancamento implements LancamentoBase {
99
99
  data_criacao: Date;
100
100
  data_atualizacao: Date;
101
101
  acao_tipo: TipoAcaoLancamentoEnum;
102
- acao_subtipo: SubTipoAcaoLancamentoEnum;
102
+ acao_subtipo?: SubTipoAcaoLancamentoEnum | null;
103
103
  data_final: Date | null;
104
- data_inicial: Date | null;
105
- data_referencia: Date | null;
104
+ data_inicial: Date;
105
+ data_referencia?: Date | null;
106
106
  descricao: string;
107
107
  empresa: {
108
108
  path: string;
@@ -116,6 +116,7 @@ export declare class Lancamento implements LancamentoBase {
116
116
  tipo: TipoOcorrenciaFrequenciaEnum;
117
117
  descricao: string;
118
118
  };
119
+ valor_total_minutos?: number | null;
119
120
  periodos?: LancamentoPeriodo[];
120
121
  status: LancamentoStatusEnum;
121
122
  todos_colaboradores: boolean;
@@ -77,7 +77,7 @@ var Lancamento = /** @class */ (function () {
77
77
  * @memberof Lancamento
78
78
  */
79
79
  function Lancamento(lancamentoPayload) {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
80
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
81
81
  this._id = (_a = lancamentoPayload._id) !== null && _a !== void 0 ? _a : undefined;
82
82
  this._path = (_b = lancamentoPayload._path) !== null && _b !== void 0 ? _b : undefined;
83
83
  this.data_criacao = (_c = lancamentoPayload.data_criacao) !== null && _c !== void 0 ? _c : undefined;
@@ -91,13 +91,15 @@ var Lancamento = /** @class */ (function () {
91
91
  this.empresa = (_l = lancamentoPayload.empresa) !== null && _l !== void 0 ? _l : undefined;
92
92
  this.excluido = (_m = lancamentoPayload.excluido) !== null && _m !== void 0 ? _m : undefined;
93
93
  this.ocorrencia = (_o = lancamentoPayload.ocorrencia) !== null && _o !== void 0 ? _o : undefined;
94
- this.periodos = (_p = lancamentoPayload.periodos) !== null && _p !== void 0 ? _p : undefined;
95
- this.status = (_q = lancamentoPayload.status) !== null && _q !== void 0 ? _q : undefined;
94
+ this.valor_total_minutos =
95
+ (_p = lancamentoPayload.valor_total_minutos) !== null && _p !== void 0 ? _p : undefined;
96
+ this.periodos = (_q = lancamentoPayload.periodos) !== null && _q !== void 0 ? _q : undefined;
97
+ this.status = (_r = lancamentoPayload.status) !== null && _r !== void 0 ? _r : undefined;
96
98
  this.todos_colaboradores =
97
- (_r = lancamentoPayload.todos_colaboradores) !== null && _r !== void 0 ? _r : undefined;
98
- this.colaboradores_ids = (_s = lancamentoPayload.colaboradores_ids) !== null && _s !== void 0 ? _s : undefined;
99
- this.integracao = (_t = lancamentoPayload.integracao) !== null && _t !== void 0 ? _t : undefined;
100
- this.modificador = (_u = lancamentoPayload.modificador) !== null && _u !== void 0 ? _u : undefined;
99
+ (_s = lancamentoPayload.todos_colaboradores) !== null && _s !== void 0 ? _s : undefined;
100
+ this.colaboradores_ids = (_t = lancamentoPayload.colaboradores_ids) !== null && _t !== void 0 ? _t : undefined;
101
+ this.integracao = (_u = lancamentoPayload.integracao) !== null && _u !== void 0 ? _u : undefined;
102
+ this.modificador = (_v = lancamentoPayload.modificador) !== null && _v !== void 0 ? _v : undefined;
101
103
  }
102
104
  return Lancamento;
103
105
  }());
@@ -24,13 +24,13 @@ export interface LancamentoElasticSource {
24
24
  i_type_sync: string;
25
25
  i_updated: string;
26
26
  acao_tipo: string;
27
- acao_subtipo: string;
27
+ acao_subtipo?: string | null;
28
28
  colaboradores_ids: string[];
29
29
  data_atualizacao: string;
30
30
  data_criacao: string;
31
31
  data_final: string | null;
32
- data_inicial: string | null;
33
- data_referencia: string | null;
32
+ data_inicial: string;
33
+ data_referencia?: string | null;
34
34
  descricao: string;
35
35
  empresa: Empresa;
36
36
  excluido: boolean;
@@ -44,6 +44,7 @@ export interface LancamentoElasticSource {
44
44
  };
45
45
  };
46
46
  ocorrencia: Ocorrencia;
47
+ valor_total_minutos?: number | null;
47
48
  periodos: LancamentoPeriodo[] | null;
48
49
  status: LancamentoStatusEnum;
49
50
  todos_colaboradores: boolean;
@@ -7,6 +7,7 @@ var string_helper_1 = require("../../utils/string-helper");
7
7
  var _1 = require(".");
8
8
  var date_helper_1 = require("../../utils/date-helper");
9
9
  var lodash_1 = require("lodash");
10
+ var number_helper_1 = require("../../utils/number-helper");
10
11
  var LancamentoElasticConvert = /** @class */ (function () {
11
12
  function LancamentoElasticConvert() {
12
13
  }
@@ -17,7 +18,9 @@ var LancamentoElasticConvert = /** @class */ (function () {
17
18
  _id: (_a = doc.i_id) !== null && _a !== void 0 ? _a : null,
18
19
  _path: (_b = doc.i_path) !== null && _b !== void 0 ? _b : null,
19
20
  acao_tipo: string_helper_1.StringHelper.trim(docData.acao_tipo, null),
20
- acao_subtipo: string_helper_1.StringHelper.trim(docData.acao_subtipo, null),
21
+ acao_subtipo: docData.acao_subtipo
22
+ ? string_helper_1.StringHelper.trim(docData.acao_subtipo, null)
23
+ : undefined,
21
24
  colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(docData.colaboradores_ids, []),
22
25
  data_atualizacao: date_helper_1.DateHelper.fromString(docData.data_atualizacao, new Date()),
23
26
  data_criacao: date_helper_1.DateHelper.fromString(docData.data_criacao, new Date()),
@@ -29,7 +32,7 @@ var LancamentoElasticConvert = /** @class */ (function () {
29
32
  : null,
30
33
  data_referencia: docData.data_referencia
31
34
  ? date_helper_1.DateHelper.fromString(docData.data_referencia, new Date())
32
- : null,
35
+ : undefined,
33
36
  descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
34
37
  empresa: {
35
38
  documento: string_helper_1.StringHelper.trim(docData.empresa.documento, null),
@@ -46,6 +49,9 @@ var LancamentoElasticConvert = /** @class */ (function () {
46
49
  tipo: string_helper_1.StringHelper.trim(docData.ocorrencia.tipo, null),
47
50
  }
48
51
  : null,
52
+ valor_total_minutos: docData.valor_total_minutos
53
+ ? number_helper_1.NumberHelper.convertToNumber(docData.valor_total_minutos)
54
+ : undefined,
49
55
  periodos: docData.periodos ? docData.periodos : null,
50
56
  status: string_helper_1.StringHelper.trim(docData.status, null),
51
57
  todos_colaboradores: boolean_helper_1.BooleanHelper.check(docData.todos_colaboradores, false),
@@ -5,18 +5,19 @@ import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
5
5
  export declare class LancamentoFirestoreData implements Omit<LancamentoBase, 'modificador'> {
6
6
  data_criacao: FirebaseTimestampGeneric;
7
7
  data_atualizacao: FirebaseTimestampGeneric;
8
- data_inicial: FirebaseTimestampGeneric | null;
8
+ data_inicial: FirebaseTimestampGeneric;
9
9
  data_final: FirebaseTimestampGeneric | null;
10
- data_referencia: FirebaseTimestampGeneric | null;
10
+ data_referencia?: FirebaseTimestampGeneric | null;
11
11
  descricao: string;
12
12
  excluido: boolean;
13
13
  acao_tipo: TipoAcaoLancamentoEnum;
14
- acao_subtipo: SubTipoAcaoLancamentoEnum;
14
+ acao_subtipo?: SubTipoAcaoLancamentoEnum | null;
15
15
  ocorrencia?: {
16
16
  uid: string;
17
17
  tipo: TipoOcorrenciaFrequenciaEnum;
18
18
  descricao: string;
19
19
  };
20
+ valor_total_minutos?: number | null;
20
21
  periodos?: LancamentoPeriodo[];
21
22
  empresa: {
22
23
  ref: FirebaseDocumentReferenceGeneric;
@@ -7,6 +7,7 @@ var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDepende
7
7
  var array_helpers_1 = require("../../utils/array-helpers");
8
8
  var boolean_helper_1 = require("../../utils/boolean-helper");
9
9
  var string_helper_1 = require("../../utils/string-helper");
10
+ var number_helper_1 = require("../../utils/number-helper");
10
11
  var LancamentoFirestoreData = /** @class */ (function () {
11
12
  function LancamentoFirestoreData() {
12
13
  }
@@ -24,11 +25,13 @@ var LancamentoFireConvert = /** @class */ (function () {
24
25
  _path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
25
26
  data_inicial: ((_d = docData.data_inicial) === null || _d === void 0 ? void 0 : _d.toDate()) || null,
26
27
  data_final: ((_e = docData.data_final) === null || _e === void 0 ? void 0 : _e.toDate()) || null,
27
- data_referencia: ((_f = docData.data_referencia) === null || _f === void 0 ? void 0 : _f.toDate()) || null,
28
+ data_referencia: ((_f = docData.data_referencia) === null || _f === void 0 ? void 0 : _f.toDate()) || undefined,
28
29
  descricao: string_helper_1.StringHelper.trim(docData.descricao, null),
29
30
  excluido: boolean_helper_1.BooleanHelper.check(docData.excluido, false),
30
31
  acao_tipo: string_helper_1.StringHelper.trim(docData.acao_tipo, null),
31
- acao_subtipo: string_helper_1.StringHelper.trim(docData.acao_subtipo, null),
32
+ acao_subtipo: docData.acao_subtipo
33
+ ? string_helper_1.StringHelper.trim(docData.acao_subtipo, null)
34
+ : undefined,
32
35
  status: string_helper_1.StringHelper.trim(docData.status, null),
33
36
  empresa: {
34
37
  documento: string_helper_1.StringHelper.trim((_g = docData.empresa) === null || _g === void 0 ? void 0 : _g.documento, null),
@@ -43,6 +46,9 @@ var LancamentoFireConvert = /** @class */ (function () {
43
46
  tipo: string_helper_1.StringHelper.trim(docData.ocorrencia.tipo, null),
44
47
  }
45
48
  : null,
49
+ valor_total_minutos: docData.valor_total_minutos
50
+ ? number_helper_1.NumberHelper.convertToNumber(docData.valor_total_minutos)
51
+ : undefined,
46
52
  todos_colaboradores: boolean_helper_1.BooleanHelper.check(docData.todos_colaboradores, true),
47
53
  periodos: ((_l = docData.periodos) === null || _l === void 0 ? void 0 : _l.length) ? docData.periodos : null,
48
54
  data_atualizacao: (_o = (_m = docData.data_atualizacao) === null || _m === void 0 ? void 0 : _m.toDate()) !== null && _o !== void 0 ? _o : undefined,
@@ -78,12 +84,14 @@ var LancamentoFireConvert = /** @class */ (function () {
78
84
  : null,
79
85
  data_referencia: lancamento.data_referencia
80
86
  ? flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_referencia)
81
- : null,
87
+ : undefined,
82
88
  colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(lancamento.colaboradores_ids, null),
83
89
  descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
84
90
  excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
85
91
  acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
86
- acao_subtipo: string_helper_1.StringHelper.trim(lancamento.acao_subtipo, null),
92
+ acao_subtipo: lancamento.acao_subtipo
93
+ ? string_helper_1.StringHelper.trim(lancamento.acao_subtipo, null)
94
+ : undefined,
87
95
  status: string_helper_1.StringHelper.trim(lancamento.status, null),
88
96
  empresa: {
89
97
  ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(lancamento.empresa.path),
@@ -98,6 +106,9 @@ var LancamentoFireConvert = /** @class */ (function () {
98
106
  tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
99
107
  }
100
108
  : null,
109
+ valor_total_minutos: lancamento.valor_total_minutos
110
+ ? number_helper_1.NumberHelper.convertToNumber(lancamento.valor_total_minutos)
111
+ : undefined,
101
112
  todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, true),
102
113
  periodos: ((_a = lancamento.periodos) === null || _a === void 0 ? void 0 : _a.length) ? lancamento.periodos : null,
103
114
  data_atualizacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_atualizacao),
@@ -7,18 +7,19 @@ export declare class LancamentoJsonData implements LancamentoBase {
7
7
  data_atualizacao: string;
8
8
  _id: string;
9
9
  _path: string;
10
- data_inicial: string | null;
10
+ data_inicial: string;
11
11
  data_final: string | null;
12
- data_referencia: string | null;
12
+ data_referencia?: string | null;
13
13
  descricao: string;
14
14
  excluido: boolean;
15
15
  acao_tipo: TipoAcaoLancamentoEnum;
16
- acao_subtipo: SubTipoAcaoLancamentoEnum;
16
+ acao_subtipo?: SubTipoAcaoLancamentoEnum | null;
17
17
  ocorrencia?: {
18
18
  uid: string;
19
19
  tipo: TipoOcorrenciaFrequenciaEnum;
20
20
  descricao: string;
21
21
  };
22
+ valor_total_minutos?: number | null;
22
23
  periodos?: LancamentoPeriodo[];
23
24
  empresa: {
24
25
  path: string;
@@ -7,6 +7,7 @@ var array_helpers_1 = require("../../utils/array-helpers");
7
7
  var boolean_helper_1 = require("../../utils/boolean-helper");
8
8
  var date_helper_1 = require("../../utils/date-helper");
9
9
  var string_helper_1 = require("../../utils/string-helper");
10
+ var number_helper_1 = require("../../utils/number-helper");
10
11
  var LancamentoJsonData = /** @class */ (function () {
11
12
  function LancamentoJsonData() {
12
13
  }
@@ -29,12 +30,14 @@ var LancamentoJsonConvert = /** @class */ (function () {
29
30
  : null,
30
31
  data_referencia: obj.data_referencia
31
32
  ? date_helper_1.DateHelper.fromString(obj.data_referencia, null)
32
- : null,
33
+ : undefined,
33
34
  descricao: string_helper_1.StringHelper.trim(obj.descricao, null),
34
35
  excluido: boolean_helper_1.BooleanHelper.check(obj.excluido, false),
35
36
  status: string_helper_1.StringHelper.trim(obj.status, null),
36
37
  acao_tipo: string_helper_1.StringHelper.trim(obj.acao_tipo, null),
37
- acao_subtipo: string_helper_1.StringHelper.trim(obj.acao_subtipo, null),
38
+ acao_subtipo: obj.acao_subtipo
39
+ ? string_helper_1.StringHelper.trim(obj.acao_subtipo, null)
40
+ : undefined,
38
41
  empresa: {
39
42
  documento: string_helper_1.StringHelper.trim(obj.empresa.documento, null),
40
43
  fantasia: string_helper_1.StringHelper.trim(obj.empresa.fantasia, null),
@@ -48,6 +51,9 @@ var LancamentoJsonConvert = /** @class */ (function () {
48
51
  tipo: string_helper_1.StringHelper.trim(obj.ocorrencia.tipo, null),
49
52
  }
50
53
  : null,
54
+ valor_total_minutos: obj.valor_total_minutos
55
+ ? number_helper_1.NumberHelper.convertToNumber(obj.valor_total_minutos)
56
+ : undefined,
51
57
  todos_colaboradores: boolean_helper_1.BooleanHelper.check(obj.todos_colaboradores, true),
52
58
  periodos: ((_c = obj.periodos) === null || _c === void 0 ? void 0 : _c.length) ? obj.periodos : null,
53
59
  data_atualizacao: date_helper_1.DateHelper.fromString(obj.data_atualizacao, null),
@@ -85,12 +91,14 @@ var LancamentoJsonConvert = /** @class */ (function () {
85
91
  : null,
86
92
  data_referencia: lancamento.data_referencia
87
93
  ? (_e = lancamento.data_referencia) === null || _e === void 0 ? void 0 : _e.toISOString()
88
- : null,
94
+ : undefined,
89
95
  descricao: string_helper_1.StringHelper.trim(lancamento.descricao, null),
90
96
  excluido: boolean_helper_1.BooleanHelper.check(lancamento.excluido, false),
91
97
  status: string_helper_1.StringHelper.trim(lancamento.status, null),
92
98
  acao_tipo: string_helper_1.StringHelper.trim(lancamento.acao_tipo, null),
93
- acao_subtipo: string_helper_1.StringHelper.trim(lancamento.acao_subtipo, null),
99
+ acao_subtipo: lancamento.acao_subtipo
100
+ ? string_helper_1.StringHelper.trim(lancamento.acao_subtipo, null)
101
+ : undefined,
94
102
  empresa: {
95
103
  documento: string_helper_1.StringHelper.trim(lancamento.empresa.documento, null),
96
104
  fantasia: string_helper_1.StringHelper.trim(lancamento.empresa.fantasia, null),
@@ -104,6 +112,9 @@ var LancamentoJsonConvert = /** @class */ (function () {
104
112
  tipo: string_helper_1.StringHelper.trim(lancamento.ocorrencia.tipo, null),
105
113
  }
106
114
  : null,
115
+ valor_total_minutos: lancamento.valor_total_minutos
116
+ ? number_helper_1.NumberHelper.convertToNumber(lancamento.valor_total_minutos)
117
+ : undefined,
107
118
  todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, false),
108
119
  periodos: ((_f = lancamento.periodos) === null || _f === void 0 ? void 0 : _f.length) ? lancamento.periodos : null,
109
120
  data_criacao: (_g = lancamento.data_criacao) === null || _g === void 0 ? void 0 : _g.toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "3.3.27",
3
+ "version": "3.3.29",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",