@infrab4a/connect 0.9.11-beta.0 → 0.9.12

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 { FirebaseFirestore } from '@firebase/firestore-types';
1
+ import { DocumentData, FirebaseFirestore, QueryDocumentSnapshot } from '@firebase/firestore-types';
2
2
  import { Coupon, CouponRepository } from '../../../../../domain';
3
3
  declare const CouponFirestoreRepository_base: {
4
4
  new (...args: any[]): {
@@ -9,7 +9,7 @@ declare const CouponFirestoreRepository_base: {
9
9
  collectionName: string;
10
10
  model: import("../../../../../domain").BaseModelBuilder<Coupon>;
11
11
  collection(path?: string): import("@firebase/firestore-types").CollectionReference<Coupon>;
12
- toArray<T extends import("../../../../../domain").BaseModelWithIdentifier<T>>(snapShot: import("@firebase/firestore-types").QuerySnapshot<T> | import("@firebase/firestore-types").QueryDocumentSnapshot<T>[]): T[];
12
+ toArray<T extends import("../../../../../domain").BaseModelWithIdentifier<T>>(snapShot: import("@firebase/firestore-types").QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
13
13
  isSubCollection<T_1 extends import("../../../../../domain").BaseModelWithIdentifier<T_1>>(repository: import("@infrab4a/connect").FirestoreRepository<T_1>): repository is import("@infrab4a/connect").FirestoreSubRepository<T_1, import("../../../../../domain").BaseModelWithIdentifier<{}>>;
14
14
  get(identifiers: import("../../../../../domain").NonFunctionProperties<Coupon>): Promise<Coupon>;
15
15
  buildCollectionPathForGet(identifiers: import("../../../../../domain").NonFunctionProperties<Coupon>): string;
@@ -27,7 +27,7 @@ declare const CouponFirestoreRepository_base: {
27
27
  };
28
28
  } & {
29
29
  new (...args: any[]): {
30
- toArray<T_2 extends import("../../../../../domain").BaseModelWithIdentifier<T_2>>(snapShot: import("@firebase/firestore-types").QuerySnapshot<T_2> | import("@firebase/firestore-types").QueryDocumentSnapshot<T_2>[]): T_2[];
30
+ toArray<T_2 extends import("../../../../../domain").BaseModelWithIdentifier<T_2>>(snapShot: import("@firebase/firestore-types").QuerySnapshot<T_2> | QueryDocumentSnapshot<T_2>[]): T_2[];
31
31
  isSubCollection<T_3 extends import("../../../../../domain").BaseModelWithIdentifier<T_3>>(repository: import("@infrab4a/connect").FirestoreRepository<T_3>): repository is import("@infrab4a/connect").FirestoreSubRepository<T_3, import("../../../../../domain").BaseModelWithIdentifier<{}>>;
32
32
  };
33
33
  } & {
@@ -37,13 +37,17 @@ declare const CouponFirestoreRepository_base: {
37
37
  model: import("../../../../../domain").BaseModelBuilder<Coupon>;
38
38
  collection(path?: string): import("@firebase/firestore-types").CollectionReference<Coupon>;
39
39
  buildModelInstance(): {
40
- toFirestore: (data: Coupon) => import("@firebase/firestore-types").DocumentData;
41
- fromFirestore: (snap: import("@firebase/firestore-types").QueryDocumentSnapshot<Coupon>) => Coupon;
40
+ toFirestore: (data: Coupon) => DocumentData;
41
+ fromFirestore: (snap: QueryDocumentSnapshot<Coupon>) => Coupon;
42
42
  };
43
43
  };
44
44
  };
45
45
  export declare class CouponFirestoreRepository extends CouponFirestoreRepository_base implements CouponRepository {
46
46
  readonly firestore: FirebaseFirestore;
47
47
  constructor(firestore: FirebaseFirestore);
48
+ buildModelInstance(): {
49
+ toFirestore: (data: Coupon) => DocumentData;
50
+ fromFirestore: (snap: QueryDocumentSnapshot<Coupon>) => Coupon;
51
+ };
48
52
  }
49
53
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "0.9.11-beta.0",
3
+ "version": "0.9.12",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },