flit-models 3.2.45 → 3.2.47

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.
@@ -2,7 +2,8 @@ export * from './modificador-fire-convert';
2
2
  export declare enum EnumAuditoriaModificadorTipo {
3
3
  USUARIO = "USUARIO",
4
4
  API_ECONTADOR = "API_ECONTADOR",
5
- API_DOMINIO = "API_DOMINIO"
5
+ API_DOMINIO = "API_DOMINIO",
6
+ INTERNO = "INTERNO"
6
7
  }
7
8
  export interface AuditoriaModificadorBase {
8
9
  id: string;
@@ -21,6 +21,7 @@ var EnumAuditoriaModificadorTipo;
21
21
  EnumAuditoriaModificadorTipo["USUARIO"] = "USUARIO";
22
22
  EnumAuditoriaModificadorTipo["API_ECONTADOR"] = "API_ECONTADOR";
23
23
  EnumAuditoriaModificadorTipo["API_DOMINIO"] = "API_DOMINIO";
24
+ EnumAuditoriaModificadorTipo["INTERNO"] = "INTERNO";
24
25
  })(EnumAuditoriaModificadorTipo = exports.EnumAuditoriaModificadorTipo || (exports.EnumAuditoriaModificadorTipo = {}));
25
26
  /**
26
27
  * Internal class auditoria doc.
@@ -111,6 +111,11 @@ export declare class Lancamento implements LancamentoBase {
111
111
  integracao?: {
112
112
  id: string;
113
113
  tipo: LancamentoIntegracaoTipoEnum;
114
+ detalhes?: {
115
+ [key: string]: any;
116
+ gestor_parecer?: string;
117
+ parecer_gestor_concatenado_jornada: boolean;
118
+ };
114
119
  };
115
120
  /**
116
121
  * Creates an instance of Lancamento.
@@ -31,9 +31,14 @@ export interface LancamentoElasticSource {
31
31
  descricao: string;
32
32
  empresa: Empresa;
33
33
  excluido: boolean;
34
- integracao: {
34
+ integracao?: {
35
35
  id: string;
36
36
  tipo: LancamentoIntegracaoTipoEnum;
37
+ detalhes?: {
38
+ [key: string]: any;
39
+ gestor_parecer?: string;
40
+ parecer_gestor_concatenado_jornada: boolean;
41
+ };
37
42
  };
38
43
  ocorrencia: Ocorrencia;
39
44
  periodos: LancamentoPeriodo[] | null;
@@ -24,6 +24,11 @@ export declare class LancamentoFirestoreData implements LancamentoBase {
24
24
  integracao?: {
25
25
  id: string;
26
26
  tipo: LancamentoIntegracaoTipoEnum;
27
+ detalhes?: {
28
+ [key: string]: any;
29
+ gestor_parecer?: string;
30
+ parecer_gestor_concatenado_jornada: boolean;
31
+ };
27
32
  };
28
33
  status: LancamentoStatusEnum;
29
34
  todos_colaboradores: boolean;
@@ -47,7 +47,11 @@ var LancamentoFireConvert = /** @class */ (function () {
47
47
  data_criacao: (_p = (_o = docData.data_criacao) === null || _o === void 0 ? void 0 : _o.toDate()) !== null && _p !== void 0 ? _p : undefined,
48
48
  colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(docData.colaboradores_ids, null),
49
49
  integracao: docData.integracao
50
- ? { id: docData.integracao.id, tipo: docData.integracao.tipo }
50
+ ? {
51
+ id: docData.integracao.id,
52
+ tipo: docData.integracao.tipo,
53
+ detalhes: docData.integracao.detalhes,
54
+ }
51
55
  : undefined,
52
56
  });
53
57
  };
@@ -81,7 +85,11 @@ var LancamentoFireConvert = /** @class */ (function () {
81
85
  data_atualizacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_atualizacao),
82
86
  data_criacao: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(lancamento.data_criacao),
83
87
  integracao: lancamento.integracao
84
- ? { id: lancamento.integracao.id, tipo: lancamento.integracao.tipo }
88
+ ? {
89
+ id: lancamento.integracao.id,
90
+ tipo: lancamento.integracao.tipo,
91
+ detalhes: lancamento.integracao.detalhes,
92
+ }
85
93
  : undefined,
86
94
  };
87
95
  return (0, lodash_1.omitBy)(lancamentoFire, lodash_1.isUndefined);
@@ -28,6 +28,11 @@ export declare class LancamentoJsonData implements LancamentoBase {
28
28
  integracao?: {
29
29
  id: string;
30
30
  tipo: LancamentoIntegracaoTipoEnum;
31
+ detalhes?: {
32
+ [key: string]: any;
33
+ gestor_parecer?: string;
34
+ parecer_gestor_concatenado_jornada: boolean;
35
+ };
31
36
  };
32
37
  }
33
38
  export declare abstract class LancamentoJsonConvert {
@@ -17,7 +17,7 @@ var LancamentoJsonConvert = /** @class */ (function () {
17
17
  function LancamentoJsonConvert() {
18
18
  }
19
19
  LancamentoJsonConvert.fromJson = function (obj) {
20
- var _a, _b, _c;
20
+ var _a, _b, _c, _d;
21
21
  return new _1.Lancamento({
22
22
  _id: (_a = obj._id) !== null && _a !== void 0 ? _a : null,
23
23
  _path: (_b = obj._path) !== null && _b !== void 0 ? _b : null,
@@ -48,7 +48,11 @@ var LancamentoJsonConvert = /** @class */ (function () {
48
48
  data_criacao: date_helper_1.DateHelper.fromString(obj.data_criacao, null),
49
49
  colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(obj.colaboradores_ids, null),
50
50
  integracao: obj.integracao
51
- ? { id: obj.integracao.id, tipo: obj.integracao.tipo }
51
+ ? {
52
+ id: obj.integracao.id,
53
+ tipo: obj.integracao.tipo,
54
+ detalhes: (_d = obj.integracao.detalhes) !== null && _d !== void 0 ? _d : undefined,
55
+ }
52
56
  : undefined,
53
57
  });
54
58
  };
@@ -84,7 +88,11 @@ var LancamentoJsonConvert = /** @class */ (function () {
84
88
  data_atualizacao: (_g = lancamento.data_atualizacao) === null || _g === void 0 ? void 0 : _g.toISOString(),
85
89
  colaboradores_ids: array_helpers_1.ArrayHelper.checkStringArray(lancamento.colaboradores_ids, undefined),
86
90
  integracao: lancamento.integracao
87
- ? { id: lancamento.integracao.id, tipo: lancamento.integracao.tipo }
91
+ ? {
92
+ id: lancamento.integracao.id,
93
+ tipo: lancamento.integracao.tipo,
94
+ detalhes: lancamento.integracao.detalhes,
95
+ }
88
96
  : undefined,
89
97
  };
90
98
  return (0, lodash_1.omitBy)(lancamentoJson, lodash_1.isUndefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "3.2.45",
3
+ "version": "3.2.47",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",