@infrab4a/connect 5.0.0-alpha.8 → 5.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.0.0-alpha.8",
3
+ "version": "5.0.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -7,7 +7,7 @@ export declare class FirestoreOperationsHelper<TBase extends ModelBaseStructure<
7
7
  validateDocumentData(data: any, collectionName: string, identifiers: any): void;
8
8
  getDocumentSnapshot(collection: any, instance: TBase): Promise<any>;
9
9
  executeDelete(collection: any, instance: TBase): Promise<void>;
10
- calculateCount<T>(data: T[], limits: {
10
+ calculateCount<T>(data: T[], limits?: {
11
11
  limit?: number;
12
12
  }): number;
13
13
  handleError(error: unknown, logger: any, req: any): void;
@@ -5,7 +5,7 @@ import { FirestoreRepository, FirestoreSubRepository } from '../types';
5
5
  export declare const withHelpers: <TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<any, any[]> & TMixinBase) => {
6
6
  new (...args: any[]): {
7
7
  [x: string]: any;
8
- toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
8
+ toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T, import("firebase/firestore").DocumentData> | QueryDocumentSnapshot<T, import("firebase/firestore").DocumentData>[]): T[];
9
9
  isSubCollection<T_1 extends ModelBaseStructure<T_1, T_1["identifiersFields"][number]>, E extends ModelBaseStructure<E, E["identifiersFields"][number]>>(repository: FirestoreRepository<T_1> | FirestoreSubRepository<T_1, E>): repository is FirestoreSubRepository<T_1, E>;
10
10
  };
11
11
  } & TMixinBase;
@@ -1,7 +1,3 @@
1
- /**
2
- * Este arquivo define funções para resolver dependências circulares
3
- * em ambiente ESM, onde não podemos usar require()
4
- */
5
1
  export declare function registerClass(name: string, classConstructor: any): void;
6
2
  export declare function getClass(name: string): any;
7
3
  export declare function resolveClass(name: string): () => any;