flit-models 2.0.1 → 2.0.2

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.
@@ -17,6 +17,7 @@ export interface FeriadoFirestoreData {
17
17
  importacao_id: string;
18
18
  municipio: string;
19
19
  tipo: FeriadoTipoEnum;
20
+ todas_as_empresas: boolean;
20
21
  uf: string;
21
22
  }
22
23
  /**
@@ -34,6 +35,7 @@ export declare class Feriado implements FeriadoFirestoreData {
34
35
  importacao_id: string;
35
36
  municipio: string;
36
37
  tipo: FeriadoTipoEnum;
38
+ todas_as_empresas: boolean;
37
39
  uf: string;
38
40
  /**
39
41
  * Creates an instance of Feriado.
@@ -33,7 +33,7 @@ var Feriado = /** @class */ (function () {
33
33
  */
34
34
  function Feriado(feriadoPayload) {
35
35
  var _this = this;
36
- var keysOfProps = ["uid", "path", "tipo", "data", "descricao", "excluido", "importacao_id", "municipio", "uf"];
36
+ var keysOfProps = ["uid", "path", "tipo", "data", "descricao", "excluido", "importacao_id", "municipio", "todas_as_empresas", "uf"];
37
37
  keysOfProps.forEach(function (key) {
38
38
  _this[key] = feriadoPayload ? feriadoPayload[key] : undefined;
39
39
  });
@@ -0,0 +1,9 @@
1
+ import { Timestamp } from 'firebase/firestore';
2
+ /**
3
+ * Typeguard para o tipo Timestamp do firestore.
4
+ *
5
+ * @export
6
+ * @param {(Timestamp | string | Date)} timestamp
7
+ * @return {*} {timestamp is Timestamp}
8
+ */
9
+ export declare function tipoTimestampFirestore(timestamp: Timestamp | string | Date): timestamp is Timestamp;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tipoTimestampFirestore = void 0;
4
+ /**
5
+ * Typeguard para o tipo Timestamp do firestore.
6
+ *
7
+ * @export
8
+ * @param {(Timestamp | string | Date)} timestamp
9
+ * @return {*} {timestamp is Timestamp}
10
+ */
11
+ function tipoTimestampFirestore(timestamp) {
12
+ var _a, _b;
13
+ return (((_a = timestamp) === null || _a === void 0 ? void 0 : _a.seconds) !== undefined &&
14
+ ((_b = timestamp) === null || _b === void 0 ? void 0 : _b.nanoseconds) !== undefined);
15
+ }
16
+ exports.tipoTimestampFirestore = tipoTimestampFirestore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",