@infrab4a/connect 0.9.6-beta.0 → 0.9.8
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/bundles/infrab4a-connect.umd.js +27 -0
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/lib/domain/catalog/models/category.js +1 -1
- package/esm2015/lib/domain/users/models/index.js +2 -1
- package/esm2015/lib/domain/users/models/user-payment-method.js +7 -0
- package/esm2015/lib/domain/users/repositories/index.js +2 -1
- package/esm2015/lib/domain/users/repositories/user-payment-method.repository.js +2 -0
- package/esm2015/lib/infra/firebase/firestore/repositories/users/index.js +2 -1
- package/esm2015/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -0
- package/fesm2015/infrab4a-connect.js +18 -1
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/lib/domain/catalog/models/category.d.ts +1 -0
- package/lib/domain/users/models/index.d.ts +1 -0
- package/lib/domain/users/models/user-payment-method.d.ts +13 -0
- package/lib/domain/users/repositories/index.d.ts +1 -0
- package/lib/domain/users/repositories/user-payment-method.repository.d.ts +4 -0
- package/lib/infra/firebase/firestore/repositories/users/index.d.ts +1 -0
- package/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FirebaseFirestore } from '@firebase/firestore-types';
|
|
2
|
+
import { User, UserPaymentMethod, UserPaymentMethodRepository } from '../../../../../domain';
|
|
3
|
+
import { UserFirestoreRepository } from './user-firestore.repository';
|
|
4
|
+
declare const UserPaymentMethodFirestoreRepository_base: {
|
|
5
|
+
new (...args: any[]): {
|
|
6
|
+
readonly parentRepository: import("@infrab4a/connect").FirestoreRepository<User>;
|
|
7
|
+
parentIdField: import("../../../../../domain").NonFunctionPropertyNames<UserPaymentMethod>;
|
|
8
|
+
collection(path?: string): import("@firebase/firestore-types").CollectionReference<UserPaymentMethod>;
|
|
9
|
+
readonly firestore?: FirebaseFirestore;
|
|
10
|
+
collectionName: string;
|
|
11
|
+
model: import("../../../../../domain").BaseModelBuilder<UserPaymentMethod>;
|
|
12
|
+
};
|
|
13
|
+
} & {
|
|
14
|
+
new (...args: any[]): {
|
|
15
|
+
update(data: import("../../../../../domain").RepositoryUpdateParams<UserPaymentMethod>): Promise<UserPaymentMethod>;
|
|
16
|
+
buildCollectionPathForUpdate(identifiers: import("../../../../../domain").RepositoryUpdateParams<UserPaymentMethod>): string;
|
|
17
|
+
paramsToPlain(params: import("../../../../../domain").RepositoryUpdateParams<UserPaymentMethod>): Partial<UserPaymentMethod>;
|
|
18
|
+
readonly firestore?: FirebaseFirestore;
|
|
19
|
+
collectionName: string;
|
|
20
|
+
model: import("../../../../../domain").BaseModelBuilder<UserPaymentMethod>;
|
|
21
|
+
collection(path?: string): import("@firebase/firestore-types").CollectionReference<UserPaymentMethod>;
|
|
22
|
+
toArray<T extends import("../../../../../domain").BaseModelWithIdentifier<T>>(snapShot: import("@firebase/firestore-types").QuerySnapshot<T> | import("@firebase/firestore-types").QueryDocumentSnapshot<T>[]): T[];
|
|
23
|
+
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<{}>>;
|
|
24
|
+
get(identifiers: import("../../../../../domain").NonFunctionProperties<UserPaymentMethod>): Promise<UserPaymentMethod>;
|
|
25
|
+
buildCollectionPathForGet(identifiers: import("../../../../../domain").NonFunctionProperties<UserPaymentMethod>): string;
|
|
26
|
+
find(filters?: import("../../../../../domain").RepositoryFindFielters<UserPaymentMethod>[], limits?: import("../../../../../domain").RepositoryLimitOptions<UserPaymentMethod>, orderBy?: import("../../../../../domain").RepositoryOrderByList<UserPaymentMethod>): Promise<import("../../../../../domain").RepositoryFindResult<UserPaymentMethod>>;
|
|
27
|
+
buildCollectionPathForFind(filters: import("../../../../../domain").RepositoryFindFielters<UserPaymentMethod>[]): string;
|
|
28
|
+
makeFirestoreWhere: (queryReference: import("@firebase/firestore-types").CollectionReference<UserPaymentMethod> | import("@firebase/firestore-types").Query<UserPaymentMethod>, filter: import("../../../../../domain").RepositoryFindFielters<UserPaymentMethod>) => import("@firebase/firestore-types").Query<UserPaymentMethod>;
|
|
29
|
+
buildWhereSentence: (queryReference: import("@firebase/firestore-types").CollectionReference<UserPaymentMethod> | import("@firebase/firestore-types").Query<UserPaymentMethod>, fieldName: string, options: import("../../../../../domain").RepositoryFindFieltersOptions<UserPaymentMethod, import("../../../../../domain").NonFunctionPropertyNames<UserPaymentMethod>>) => import("@firebase/firestore-types").Query<UserPaymentMethod>;
|
|
30
|
+
defineLimits(query: import("@firebase/firestore-types").CollectionReference<UserPaymentMethod> | import("@firebase/firestore-types").Query<UserPaymentMethod>, filters: import("../../../../../domain").RepositoryFindFielters<UserPaymentMethod>[], limits: import("../../../../../domain").RepositoryLimitOptions<UserPaymentMethod>): Promise<import("@firebase/firestore-types").Query<UserPaymentMethod>>;
|
|
31
|
+
calculateCount(data: UserPaymentMethod[], limits: import("../../../../../domain").RepositoryLimitOptions<UserPaymentMethod>): number;
|
|
32
|
+
delete(identifiers: import("../../../../../domain").NonFunctionProperties<UserPaymentMethod>): Promise<void>;
|
|
33
|
+
buildCollectionPathForRemove(identifiers: import("../../../../../domain").NonFunctionProperties<UserPaymentMethod>): string;
|
|
34
|
+
create(data: Partial<UserPaymentMethod>): Promise<UserPaymentMethod>;
|
|
35
|
+
save(data: UserPaymentMethod): Promise<import("@firebase/firestore-types").DocumentReference<UserPaymentMethod>>;
|
|
36
|
+
buildCollectionPathForAdd(identifiers: Partial<UserPaymentMethod>): string;
|
|
37
|
+
};
|
|
38
|
+
} & {
|
|
39
|
+
new (...args: any[]): {
|
|
40
|
+
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[];
|
|
41
|
+
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<{}>>;
|
|
42
|
+
};
|
|
43
|
+
} & {
|
|
44
|
+
new (...args: any[]): {
|
|
45
|
+
readonly firestore?: FirebaseFirestore;
|
|
46
|
+
collectionName: string;
|
|
47
|
+
model: import("../../../../../domain").BaseModelBuilder<UserPaymentMethod>;
|
|
48
|
+
collection(path?: string): import("@firebase/firestore-types").CollectionReference<UserPaymentMethod>;
|
|
49
|
+
buildModelInstance(): {
|
|
50
|
+
toFirestore: (data: UserPaymentMethod) => import("@firebase/firestore-types").DocumentData;
|
|
51
|
+
fromFirestore: (snap: import("@firebase/firestore-types").QueryDocumentSnapshot<UserPaymentMethod>) => UserPaymentMethod;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare class UserPaymentMethodFirestoreRepository extends UserPaymentMethodFirestoreRepository_base implements UserPaymentMethodRepository {
|
|
56
|
+
readonly firestore: FirebaseFirestore;
|
|
57
|
+
readonly parentRepository: UserFirestoreRepository;
|
|
58
|
+
constructor(firestore: FirebaseFirestore, parentRepository: UserFirestoreRepository);
|
|
59
|
+
}
|
|
60
|
+
export {};
|