@infrab4a/connect 4.3.0-beta.2 → 4.3.0-beta.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.
- package/index.cjs.js +399 -371
- package/index.esm.js +399 -372
- package/package.json +1 -1
- package/src/domain/general/index.d.ts +1 -0
- package/src/domain/general/storage/file-uploader.service.d.ts +3 -0
- package/src/domain/general/storage/index.d.ts +1 -0
- package/src/domain/index.d.ts +4 -3
- package/src/domain/shop-settings/models/types/brands-carousel.type.d.ts +3 -0
- package/src/domain/shop-settings/models/types/index.d.ts +3 -0
- package/src/domain/shop-settings/models/types/landing-page.d.ts +8 -0
- package/src/domain/shop-settings/models/types/promotion-page.d.ts +10 -0
- package/src/domain/shop-settings/models/types/sections.type.d.ts +6 -0
- package/src/domain/users/models/user.d.ts +1 -0
- package/src/domain/users/use-cases/update-user-image.d.ts +9 -0
- package/src/infra/firebase/index.d.ts +2 -1
- package/src/infra/firebase/storage/firebase-file-uploader.service.d.ts +8 -0
- package/src/infra/firebase/storage/index.d.ts +1 -0
- package/src/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts +2 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './storage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file-uploader.service';
|
package/src/domain/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from './generic';
|
|
2
|
-
export * from './users';
|
|
3
1
|
export * from './catalog';
|
|
2
|
+
export * from './general';
|
|
3
|
+
export * from './generic';
|
|
4
4
|
export * from './location';
|
|
5
|
-
export * from './shopping';
|
|
6
5
|
export * from './shop-settings';
|
|
6
|
+
export * from './shopping';
|
|
7
|
+
export * from './users';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './banner.type';
|
|
2
2
|
export * from './benefit.type';
|
|
3
|
+
export * from './brands-carousel.type';
|
|
3
4
|
export * from './campaign-page';
|
|
4
5
|
export * from './home-data.type';
|
|
6
|
+
export * from './landing-page';
|
|
5
7
|
export * from './menu-nav.type';
|
|
6
8
|
export * from './sections.type';
|
|
7
9
|
export * from './shop-banner.type';
|
|
@@ -9,6 +11,7 @@ export * from './shop-brands.type';
|
|
|
9
11
|
export * from './shop-carousel.type';
|
|
10
12
|
export * from './shop-collection.type';
|
|
11
13
|
export * from './shop-gift.type';
|
|
14
|
+
export * from './shop-home';
|
|
12
15
|
export * from './shop-post.type';
|
|
13
16
|
export * from './shop-section.type';
|
|
14
17
|
export * from './sub-menu.type';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ShopBanner } from './shop-banner.type';
|
|
2
|
+
import { ShopCarousel } from './shop-carousel.type';
|
|
3
|
+
import { ShopSection } from './shop-section.type';
|
|
4
|
+
export type LandingPageList = {
|
|
5
|
+
ShopCarousel: ShopCarousel;
|
|
6
|
+
ShopBanner: ShopBanner;
|
|
7
|
+
};
|
|
8
|
+
export type LandingPage<T extends keyof LandingPageList> = LandingPageList[T] & ShopSection;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BrandsCarousel } from './brands-carousel.type';
|
|
2
|
+
import { ShopBanner } from './shop-banner.type';
|
|
3
|
+
import { ShopGift } from './shop-gift.type';
|
|
4
|
+
import { ShopSection } from './shop-section.type';
|
|
5
|
+
export type PromotionPageList = {
|
|
6
|
+
ShopBanner: ShopBanner;
|
|
7
|
+
BrandsCarousel: BrandsCarousel;
|
|
8
|
+
ShopGift: ShopGift;
|
|
9
|
+
};
|
|
10
|
+
export type PromotionPage<T extends keyof PromotionPageList> = PromotionPageList[T] & ShopSection;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { LandingPage } from './landing-page';
|
|
2
|
+
import { PromotionPage } from './promotion-page';
|
|
1
3
|
import { ShopBanner } from './shop-banner.type';
|
|
2
4
|
import { ShopCarousel } from './shop-carousel.type';
|
|
3
5
|
import { ShopGift } from './shop-gift.type';
|
|
@@ -17,6 +19,8 @@ export type GlampointsVitrineShopSection = [ShopBanner];
|
|
|
17
19
|
export type SimpleLPShopSection = [(ShopBanner & {
|
|
18
20
|
carouselColor?: string;
|
|
19
21
|
})[]];
|
|
22
|
+
export type LandingPageSection = [LandingPage<any>];
|
|
23
|
+
export type PromotionPageSection = [PromotionPage<any>];
|
|
20
24
|
export type SectionList = {
|
|
21
25
|
HomeSection: HomeSection;
|
|
22
26
|
LPClubeShopSection: LPClubeShopSection;
|
|
@@ -27,5 +31,7 @@ export type SectionList = {
|
|
|
27
31
|
PostsShopSection: PostsShopSection;
|
|
28
32
|
GlampointsVitrineShopSection: GlampointsVitrineShopSection;
|
|
29
33
|
SimpleLPShopSection: SimpleLPShopSection;
|
|
34
|
+
LandingPageSection: LandingPageSection;
|
|
35
|
+
PromotionPageSection: PromotionPageSection;
|
|
30
36
|
};
|
|
31
37
|
export type Section<T extends keyof SectionList> = SectionList[T];
|
|
@@ -20,6 +20,7 @@ export declare class User extends BaseModel<User> {
|
|
|
20
20
|
badgeMultiplier?: number;
|
|
21
21
|
dateCreated?: Date;
|
|
22
22
|
dateModified?: Date;
|
|
23
|
+
urlImageProfile?: string;
|
|
23
24
|
beautyProfile?: BeautyProfile;
|
|
24
25
|
static toInstance<T>(this: new () => T, data?: Partial<NonFunctionAndIdentifierProperties<User>>): T;
|
|
25
26
|
toPlain(): Record<string, any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FileUploaderService } from '../../general';
|
|
2
|
+
import { User } from '../models';
|
|
3
|
+
import { UserRepository } from '../repositories';
|
|
4
|
+
export declare class UpdateUserAndWishlistImage {
|
|
5
|
+
private userRepository;
|
|
6
|
+
private fileUploader;
|
|
7
|
+
constructor(userRepository: UserRepository, fileUploader: FileUploaderService);
|
|
8
|
+
execute(file: Blob, user: User): Promise<User>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Storage } from '@angular/fire/storage';
|
|
2
|
+
import { FileUploaderService } from '../../../domain';
|
|
3
|
+
export declare class FirebaseFileUploaderService implements FileUploaderService {
|
|
4
|
+
private storage;
|
|
5
|
+
private baseUrl;
|
|
6
|
+
constructor(storage: Storage, baseUrl: string);
|
|
7
|
+
upload(path: string, file: Blob | Uint8Array | ArrayBuffer): Promise<string>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './firebase-file-uploader.service';
|
package/src/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Category, CreateRepositoryParams, GetRepositoryParams, Product, Shops, UpdateRepositoryParams, Wishlist, WishlistRepository } from '../../../../domain';
|
|
1
|
+
import { Category, CreateRepositoryParams, FindRepositoryParams, GetRepositoryParams, Product, RepositoryFindResult, Shops, UpdateRepositoryParams, Wishlist, WishlistRepository } from '../../../../domain';
|
|
2
2
|
import { HasuraConstructorParams } from '../../mixins';
|
|
3
3
|
import { CategoryFilterHasuraGraphQLRepository } from './category-filter-hasura-graphql.repository';
|
|
4
4
|
declare const WishlistHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<Wishlist> & import("../../../../domain").CrudRepository<Wishlist, import("../../../../domain").CrudParams<Wishlist>> & import("../../../../domain").UpdateRepository<Wishlist, import("../../../../domain").RepositoryUpdateParams<Wishlist>> & {
|
|
@@ -9,6 +9,7 @@ export declare class WishlistHasuraGraphQLRepository extends WishlistHasuraGraph
|
|
|
9
9
|
constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<Wishlist>, 'endpoint' | 'authOptions' | 'interceptors'>, categoryFilterRepository: CategoryFilterHasuraGraphQLRepository);
|
|
10
10
|
create(params: CreateRepositoryParams<Wishlist>): Promise<Wishlist>;
|
|
11
11
|
get(identifiers: GetRepositoryParams<Wishlist>): Promise<Wishlist>;
|
|
12
|
+
find(params?: FindRepositoryParams<Wishlist>): Promise<RepositoryFindResult<Wishlist>>;
|
|
12
13
|
update(params: UpdateRepositoryParams<Wishlist>): Promise<Wishlist>;
|
|
13
14
|
getWishlistBySlug(slug: string): Promise<Wishlist>;
|
|
14
15
|
getWishlistByPerson(personId: string): Promise<Wishlist[]>;
|