flit-models 2.1.3 → 2.1.4

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.
@@ -1,4 +1,4 @@
1
- import { DocumentReference, DocumentSnapshot } from 'firebase/firestore';
1
+ import { DocumentReference, DocumentSnapshot, QueryDocumentSnapshot } from 'firebase/firestore';
2
2
  import { EmpresaFeriado, EmpresaFeriadoBase } from './empresas-feriado';
3
3
  export declare class EmpresaFeriadoFirestoreData implements EmpresaFeriadoBase {
4
4
  ref: DocumentReference;
@@ -7,6 +7,6 @@ export declare class EmpresaFeriadoFirestoreData implements EmpresaFeriadoBase {
7
7
  razao_social: string;
8
8
  }
9
9
  export declare abstract class EmpresasFeriadoFireConvert {
10
- static fromFirestore(doc: DocumentSnapshot<EmpresaFeriadoFirestoreData>): EmpresaFeriado;
10
+ static fromFirestore(doc: DocumentSnapshot<EmpresaFeriadoFirestoreData> | QueryDocumentSnapshot<EmpresaFeriadoFirestoreData>): EmpresaFeriado;
11
11
  static toFirestore(empresaFeriado: EmpresaFeriado, docRefConstructor: (path: string) => DocumentReference<any>): Partial<EmpresaFeriadoFirestoreData>;
12
12
  }
@@ -1,4 +1,4 @@
1
- import { DocumentSnapshot, Timestamp } from 'firebase/firestore';
1
+ import { DocumentSnapshot, QueryDocumentSnapshot, Timestamp } from 'firebase/firestore';
2
2
  import { Feriado, FeriadoBase, FeriadoTipoEnum } from '.';
3
3
  export declare class FeriadoFirestoreData implements FeriadoBase {
4
4
  data: Timestamp;
@@ -11,6 +11,6 @@ export declare class FeriadoFirestoreData implements FeriadoBase {
11
11
  uf: string;
12
12
  }
13
13
  export declare abstract class FeriadoFireConvert {
14
- static fromFirestore(doc: DocumentSnapshot<FeriadoFirestoreData>): Feriado;
14
+ static fromFirestore(doc: DocumentSnapshot<FeriadoFirestoreData> | QueryDocumentSnapshot<FeriadoFirestoreData>): Feriado;
15
15
  static toFirestore(feriado: Feriado): Partial<FeriadoFirestoreData>;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",