flit-models 2.1.8 → 2.1.9

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.
@@ -30,6 +30,7 @@ export interface LancamentoBase {
30
30
  documento: any;
31
31
  };
32
32
  status: any;
33
+ todos_colaboradores: any;
33
34
  }
34
35
  /**
35
36
  * Internal class col contas/${contaId}/lancamento/${lancamentoId}.
@@ -57,6 +58,7 @@ export declare class Lancamento implements LancamentoBase {
57
58
  descricao: string;
58
59
  };
59
60
  status: LancamentoStatusEnum;
61
+ todos_colaboradores: boolean;
60
62
  /**
61
63
  * Creates an instance of Lancamento.
62
64
  * @param {Partial<Lancamento>} lancamentoPayload
@@ -42,7 +42,7 @@ var Lancamento = /** @class */ (function () {
42
42
  */
43
43
  function Lancamento(lancamentoPayload) {
44
44
  var _this = this;
45
- var keysOfProps = ["status", "_id", "_path", "descricao", "excluido", "data_inicial", "data_final", "ocorrencia_tipo", "ocorrencia", "empresa"];
45
+ var keysOfProps = ["status", "_id", "_path", "descricao", "excluido", "data_inicial", "data_final", "todos_colaboradores", "ocorrencia_tipo", "ocorrencia", "empresa"];
46
46
  keysOfProps.forEach(function (key) {
47
47
  _this[key] = lancamentoPayload
48
48
  ? lancamentoPayload[key]
@@ -19,6 +19,7 @@ export declare class LancamentoFirestoreData implements LancamentoBase {
19
19
  documento: string;
20
20
  };
21
21
  status: LancamentoStatusEnum;
22
+ todos_colaboradores: boolean;
22
23
  }
23
24
  export declare abstract class LancamentoFireConvert {
24
25
  static fromFirestore(doc: DocumentSnapshot<LancamentoFirestoreData> | QueryDocumentSnapshot<LancamentoFirestoreData>): Lancamento;
@@ -42,6 +42,7 @@ var LancamentoFireConvert = /** @class */ (function () {
42
42
  path: string_helper_1.StringHelper.trim(doc.get('ocorrencia.path'), null),
43
43
  tipo: string_helper_1.StringHelper.trim(doc.get('ocorrencia.tipo'), null),
44
44
  },
45
+ todos_colaboradores: boolean_helper_1.BooleanHelper.check(doc.get('todos_colaboradores'), true),
45
46
  });
46
47
  };
47
48
  LancamentoFireConvert.toFirestore = function (lancamento, documentReferenceFromPath, timestampfromDate) {
@@ -67,6 +68,7 @@ var LancamentoFireConvert = /** @class */ (function () {
67
68
  descricao: string_helper_1.StringHelper.trim(lancamento.ocorrencia.descricao, null),
68
69
  tipo: string_helper_1.StringHelper.trim(lancamento.ocorrencia_tipo, null),
69
70
  },
71
+ todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, true),
70
72
  };
71
73
  return (0, lodash_1.omitBy)(lancamentoFire, lodash_1.isUndefined);
72
74
  };
@@ -20,6 +20,7 @@ export declare class LancamentoJsonData implements LancamentoBase {
20
20
  documento: string;
21
21
  };
22
22
  status: LancamentoStatusEnum;
23
+ todos_colaboradores: boolean;
23
24
  }
24
25
  export declare abstract class LancamentoJsonConvert {
25
26
  static fromJson(obj: LancamentoJsonData): Lancamento;
@@ -37,6 +37,7 @@ var LancamentoJsonConvert = /** @class */ (function () {
37
37
  path: string_helper_1.StringHelper.trim(obj.ocorrencia.path, null),
38
38
  tipo: string_helper_1.StringHelper.trim(obj.ocorrencia.tipo, null),
39
39
  },
40
+ todos_colaboradores: boolean_helper_1.BooleanHelper.check(obj.excluido, true),
40
41
  });
41
42
  };
42
43
  LancamentoJsonConvert.toJson = function (lancamento) {
@@ -61,6 +62,7 @@ var LancamentoJsonConvert = /** @class */ (function () {
61
62
  path: string_helper_1.StringHelper.trim(lancamento.ocorrencia.path, null),
62
63
  tipo: string_helper_1.StringHelper.trim(lancamento.ocorrencia.tipo, null),
63
64
  },
65
+ todos_colaboradores: boolean_helper_1.BooleanHelper.check(lancamento.todos_colaboradores, false),
64
66
  };
65
67
  return (0, lodash_1.omitBy)(lancamentoJson, lodash_1.isUndefined);
66
68
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",