@infrab4a/connect 4.16.2-beta.0 → 4.17.0-beta.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/index.cjs.js +276 -275
- package/index.esm.js +275 -276
- package/package.json +1 -1
- package/src/domain/catalog/models/enums/index.d.ts +1 -0
- package/src/domain/catalog/models/enums/wishlist-log.enum.d.ts +7 -0
- package/src/domain/catalog/repositories/category.repository.d.ts +2 -2
- package/src/domain/general/index.d.ts +2 -0
- package/src/domain/general/models/index.d.ts +1 -0
- package/src/domain/general/models/log-document.d.ts +15 -0
- package/src/domain/general/repositories/index.d.ts +1 -0
- package/src/domain/general/repositories/log.repository.d.ts +4 -0
- package/src/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +2 -2
- package/src/infra/firebase/firestore/repositories/general/index.d.ts +1 -0
- package/src/infra/firebase/firestore/repositories/general/log-firestore.repository.d.ts +7 -0
- package/src/infra/firebase/firestore/repositories/index.d.ts +3 -2
- package/src/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +2 -2
- package/src/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts +2 -2
package/package.json
CHANGED
|
@@ -5,11 +5,11 @@ import { Shops } from '../models/enums/shops.enum';
|
|
|
5
5
|
export interface CategoryRepository<T extends Category = Category> extends CrudRepository<T> {
|
|
6
6
|
getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
|
|
7
7
|
getCategoryByShop(shop: string): Promise<Category[]>;
|
|
8
|
-
getCategoriesForHome(categoryIds: string[],
|
|
8
|
+
getCategoriesForHome(categoryIds: string[], limit?: number, gender?: string): Promise<{
|
|
9
9
|
category: Category;
|
|
10
10
|
products: Product[];
|
|
11
11
|
}[]>;
|
|
12
|
-
mountCategory(category: Category,
|
|
12
|
+
mountCategory(category: Category, options?: {
|
|
13
13
|
limit?: number;
|
|
14
14
|
hasStock?: boolean;
|
|
15
15
|
}): Promise<Product[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './log-document';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from '../../generic';
|
|
2
|
+
export declare class LogDocument extends BaseModel<LogDocument> {
|
|
3
|
+
id?: string;
|
|
4
|
+
collection: string;
|
|
5
|
+
documentId: string;
|
|
6
|
+
user?: {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
};
|
|
11
|
+
document: any;
|
|
12
|
+
date: Date;
|
|
13
|
+
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
14
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './log.repository';
|
package/src/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ declare const CategoryFirestoreRepository_base: import("../../../../../utils").M
|
|
|
4
4
|
export declare class CategoryFirestoreRepository extends CategoryFirestoreRepository_base implements CategoryRepository {
|
|
5
5
|
constructor({ firestore, interceptors }: Pick<FirestoreConstructorParams<Category>, 'firestore' | 'interceptors'>);
|
|
6
6
|
getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
|
|
7
|
-
getCategoriesForHome(categoryIds: string[],
|
|
7
|
+
getCategoriesForHome(categoryIds: string[], limit?: number, gender?: string): Promise<{
|
|
8
8
|
category: Category;
|
|
9
9
|
products: Product[];
|
|
10
10
|
}[]>;
|
|
11
|
-
mountCategory(category: Category,
|
|
11
|
+
mountCategory(category: Category, options?: {
|
|
12
12
|
limit?: number;
|
|
13
13
|
hasStock?: boolean;
|
|
14
14
|
gender?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './log-firestore.repository';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LogDocument, LogRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
declare const LogFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<LogDocument> & import("../../../../../domain").CrudRepository<LogDocument, import("../../../../../domain").CrudParams<LogDocument>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<LogDocument>, ...any[]]>;
|
|
4
|
+
export declare class LogFirestoreRepository extends LogFirestoreRepository_base implements LogRepository {
|
|
5
|
+
constructor({ firestore, interceptors, }: Pick<FirestoreConstructorParams<LogDocument>, 'firestore' | 'interceptors'>);
|
|
6
|
+
}
|
|
7
|
+
export {};
|
package/src/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ export declare class CategoryHasuraGraphQLRepository extends CategoryHasuraGraph
|
|
|
15
15
|
update(params: UpdateRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
|
|
16
16
|
getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
|
|
17
17
|
getCategoryByShop(shop: string): Promise<Category[]>;
|
|
18
|
-
getCategoriesForHome(categoryIds: string[],
|
|
18
|
+
getCategoriesForHome(categoryIds: string[], limit?: number, gender?: string): Promise<{
|
|
19
19
|
category: Category;
|
|
20
20
|
products: Product[];
|
|
21
21
|
}[]>;
|
|
22
|
-
mountCategory(category: Category,
|
|
22
|
+
mountCategory(category: Category, options?: {
|
|
23
23
|
limit?: number;
|
|
24
24
|
hasStock?: boolean;
|
|
25
25
|
gender?: string;
|
package/src/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export declare class WishlistHasuraGraphQLRepository extends WishlistHasuraGraph
|
|
|
17
17
|
getCategoryBySlug(slug: string, _shop: Shops): Promise<Wishlist>;
|
|
18
18
|
getCategoryByShop(shop: string): Promise<any>;
|
|
19
19
|
findBfluOrGlamgirlWishlists(params: FindRepositoryParams<WishlistHasuraGraphQL>, shops: Shops[]): Promise<RepositoryFindResult<WishlistHasuraGraphQL>>;
|
|
20
|
-
getCategoriesForHome(categoryIds: string[],
|
|
21
|
-
mountCategory(category: Category,
|
|
20
|
+
getCategoriesForHome(categoryIds: string[], limit?: number, gender?: string): any;
|
|
21
|
+
mountCategory(category: Category, options?: {
|
|
22
22
|
limit?: number;
|
|
23
23
|
hasStock?: boolean;
|
|
24
24
|
}): Promise<Product[]>;
|