flit-models 3.2.9 → 3.2.10

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.
@@ -39,6 +39,8 @@ export declare class EscalaFirestoreData implements EscalaBase {
39
39
  descanso: string;
40
40
  }[];
41
41
  }[];
42
+ faixa_hora_extra_semanal_ref?: FirebaseDocumentReferenceGeneric;
43
+ faixa_hora_extra_diferenciada_ref?: FirebaseDocumentReferenceGeneric;
42
44
  }
43
45
  export declare abstract class EscalaFireConvert {
44
46
  static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): Escala;
@@ -14,7 +14,7 @@ var EscalaFireConvert = /** @class */ (function () {
14
14
  function EscalaFireConvert() {
15
15
  }
16
16
  EscalaFireConvert.fromFirestore = function (doc) {
17
- 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;
17
+ 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
18
  var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
19
19
  return new _1.Escala({
20
20
  _id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
@@ -62,6 +62,8 @@ var EscalaFireConvert = /** @class */ (function () {
62
62
  repetir: jornada.repetir,
63
63
  });
64
64
  }),
65
+ faixa_hora_extra_semanal_ref: ((_2 = docData.faixa_hora_extra_semanal_ref) === null || _2 === void 0 ? void 0 : _2.path) || null,
66
+ faixa_hora_extra_diferenciada_ref: (_4 = (_3 = docData.faixa_hora_extra_diferenciada_ref) === null || _3 === void 0 ? void 0 : _3.path) !== null && _4 !== void 0 ? _4 : null,
65
67
  });
66
68
  };
67
69
  EscalaFireConvert.toFirestore = function (escala) {
@@ -110,6 +112,8 @@ var EscalaFireConvert = /** @class */ (function () {
110
112
  repetir: jornada.repetir,
111
113
  });
112
114
  }),
115
+ faixa_hora_extra_semanal_ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(escala.faixa_hora_extra_semanal_ref) || null,
116
+ faixa_hora_extra_diferenciada_ref: flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(escala.faixa_hora_extra_diferenciada_ref) || null,
113
117
  };
114
118
  return (0, lodash_1.omitBy)(escalaFire, lodash_1.isUndefined);
115
119
  };
@@ -47,6 +47,8 @@ export interface EscalaBase {
47
47
  descanso: string;
48
48
  }[];
49
49
  }[];
50
+ faixa_hora_extra_semanal_ref?: any;
51
+ faixa_hora_extra_diferenciada_ref?: any;
50
52
  }
51
53
  /**
52
54
  * Internal class col contas/${contaId}/cargo/${cargoId}.
@@ -95,5 +97,7 @@ export declare class Escala implements EscalaBase {
95
97
  descanso: string;
96
98
  }[];
97
99
  }[];
98
- constructor(feriadoPayload: Partial<Escala>);
100
+ faixa_hora_extra_semanal_ref?: string;
101
+ faixa_hora_extra_diferenciada_ref?: string;
102
+ constructor(escalaPayload: Partial<Escala>);
99
103
  }
@@ -47,21 +47,24 @@ exports.EscalaHelpers = EscalaHelpers;
47
47
  */
48
48
  var Escala = /** @class */ (function () {
49
49
  // #endregion
50
- function Escala(feriadoPayload) {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
52
- this._id = (_a = feriadoPayload._id) !== null && _a !== void 0 ? _a : undefined;
53
- this._path = (_b = feriadoPayload._path) !== null && _b !== void 0 ? _b : undefined;
54
- this.data_atualizacao_doc =
55
- (_c = feriadoPayload.data_atualizacao_doc) !== null && _c !== void 0 ? _c : undefined;
56
- this.data_criacao_doc = (_d = feriadoPayload.data_criacao_doc) !== null && _d !== void 0 ? _d : undefined;
57
- this.data_inicial = (_e = feriadoPayload.data_inicial) !== null && _e !== void 0 ? _e : undefined;
58
- this.descricao = (_f = feriadoPayload.descricao) !== null && _f !== void 0 ? _f : undefined;
59
- this.excluido = (_g = feriadoPayload.excluido) !== null && _g !== void 0 ? _g : undefined;
50
+ function Escala(escalaPayload) {
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
52
+ this._id = (_a = escalaPayload._id) !== null && _a !== void 0 ? _a : undefined;
53
+ this._path = (_b = escalaPayload._path) !== null && _b !== void 0 ? _b : undefined;
54
+ this.data_atualizacao_doc = (_c = escalaPayload.data_atualizacao_doc) !== null && _c !== void 0 ? _c : undefined;
55
+ this.data_criacao_doc = (_d = escalaPayload.data_criacao_doc) !== null && _d !== void 0 ? _d : undefined;
56
+ this.data_inicial = (_e = escalaPayload.data_inicial) !== null && _e !== void 0 ? _e : undefined;
57
+ this.descricao = (_f = escalaPayload.descricao) !== null && _f !== void 0 ? _f : undefined;
58
+ this.excluido = (_g = escalaPayload.excluido) !== null && _g !== void 0 ? _g : undefined;
60
59
  this.existe_marcacao_pre_assinalada =
61
- (_h = feriadoPayload.existe_marcacao_pre_assinalada) !== null && _h !== void 0 ? _h : undefined;
62
- this.jornadas = (_j = feriadoPayload.jornadas) !== null && _j !== void 0 ? _j : undefined;
60
+ (_h = escalaPayload.existe_marcacao_pre_assinalada) !== null && _h !== void 0 ? _h : undefined;
61
+ this.jornadas = (_j = escalaPayload.jornadas) !== null && _j !== void 0 ? _j : undefined;
63
62
  this.regime_compensacao_dias =
64
- (_k = feriadoPayload.regime_compensacao_dias) !== null && _k !== void 0 ? _k : undefined;
63
+ (_k = escalaPayload.regime_compensacao_dias) !== null && _k !== void 0 ? _k : undefined;
64
+ this.faixa_hora_extra_semanal_ref =
65
+ (_l = escalaPayload.faixa_hora_extra_semanal_ref) !== null && _l !== void 0 ? _l : undefined;
66
+ this.faixa_hora_extra_diferenciada_ref =
67
+ (_m = escalaPayload.faixa_hora_extra_diferenciada_ref) !== null && _m !== void 0 ? _m : undefined;
65
68
  }
66
69
  return Escala;
67
70
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "3.2.9",
3
+ "version": "3.2.10",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",