@mohasinac/appkit 4.12.4 → 4.13.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/dist/core/hooks/useSiteSettings.d.ts +1 -1
- package/dist/features/account/hooks/useAccount.d.ts +2 -2
- package/dist/features/account/hooks/useAddressSelector.d.ts +1 -1
- package/dist/features/account/hooks/useAddresses.d.ts +2 -2
- package/dist/features/account/hooks/useNotifications.d.ts +1 -1
- package/dist/features/account/hooks/useProfile.d.ts +1 -1
- package/dist/features/account/hooks/usePublicProfile.d.ts +2 -2
- package/dist/features/admin/hooks/useAdmin.d.ts +1 -1
- package/dist/features/admin/hooks/useAdminSectionsListing.d.ts +1 -1
- package/dist/features/admin/hooks/useChat.d.ts +1 -1
- package/dist/features/auctions/hooks/useAuctions.d.ts +8 -8
- package/dist/features/auth/hooks/useAuth.d.ts +2 -2
- package/dist/features/cart/hooks/useCart.d.ts +1 -1
- package/dist/features/cart/hooks/useCartQuery.d.ts +1 -1
- package/dist/features/cart/hooks/useCheckoutReadQueries.d.ts +2 -2
- package/dist/features/cart/hooks/useOrder.d.ts +2 -2
- package/dist/features/categories/hooks/useCategories.d.ts +3 -3
- package/dist/features/categories/hooks/useCategorySelector.d.ts +3 -3
- package/dist/features/categories/hooks/useCategoryTree.d.ts +1 -1
- package/dist/features/checkout/hooks/useCheckoutApi.d.ts +2 -2
- package/dist/features/collections/hooks/useCollections.d.ts +2 -2
- package/dist/features/events/hooks/useEvent.d.ts +3 -3
- package/dist/features/events/hooks/useEvents.d.ts +1 -1
- package/dist/features/faq/hooks/useFAQs.d.ts +1 -1
- package/dist/features/faq/hooks/useFaqList.d.ts +9 -15
- package/dist/features/homepage/hooks/useBlogArticles.d.ts +1 -1
- package/dist/features/homepage/hooks/useFeaturedAuctions.d.ts +1 -1
- package/dist/features/homepage/hooks/useFeaturedPreOrders.d.ts +1 -1
- package/dist/features/homepage/hooks/useFeaturedProducts.d.ts +1 -1
- package/dist/features/homepage/hooks/useFeaturedStores.d.ts +1 -1
- package/dist/features/homepage/hooks/useHeroCarousel.d.ts +1 -1
- package/dist/features/homepage/hooks/useHomepageEvents.d.ts +1 -1
- package/dist/features/homepage/hooks/useHomepageReviews.d.ts +1 -1
- package/dist/features/homepage/hooks/useHomepageSections.d.ts +1 -1
- package/dist/features/homepage/hooks/useTopBrands.d.ts +1 -1
- package/dist/features/homepage/hooks/useTopCategories.d.ts +1 -1
- package/dist/features/loyalty/hooks/useLoyaltyBalance.d.ts +1 -1
- package/dist/features/orders/hooks/useOrders.d.ts +2 -2
- package/dist/features/payments/hooks/usePayments.d.ts +1 -1
- package/dist/features/pre-orders/hooks/usePreOrders.d.ts +2 -2
- package/dist/features/products/hooks/useProductDetail.d.ts +1 -1
- package/dist/features/products/hooks/useRelatedProducts.d.ts +1 -1
- package/dist/features/promotions/hooks/usePromotions.d.ts +2 -2
- package/dist/features/reviews/hooks/useReviews.d.ts +2 -2
- package/dist/features/search/hooks/useSearch.d.ts +2 -2
- package/dist/features/seller/hooks/useSellerPayouts.d.ts +3 -3
- package/dist/features/seller/hooks/useSellerStore.d.ts +6 -6
- package/dist/features/seller/hooks/useSellerStorefront.d.ts +2 -2
- package/dist/features/shipments/hooks/useShipments.d.ts +7 -7
- package/dist/features/stores/hooks/useStoreAddressSelector.d.ts +1 -1
- package/dist/features/stores/hooks/useStores.d.ts +6 -6
- package/dist/features/wishlist/hooks/useUserWishlist.d.ts +9 -15
- package/dist/features/wishlist/hooks/useWishlist.d.ts +1 -1
- package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +1 -1
- package/package.json +15 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useSiteSettings<T = unknown>(endpoint?: "/api/site-settings", staleTime?: number): import("@tanstack/react-query").UseQueryResult<
|
|
1
|
+
export declare function useSiteSettings<T = unknown>(endpoint?: "/api/site-settings", staleTime?: number): import("@tanstack/react-query").UseQueryResult<T, Error>;
|
|
@@ -5,9 +5,9 @@ interface UseProfileOptions {
|
|
|
5
5
|
endpoint?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare function useProfile(userId: string, opts?: UseProfileOptions): {
|
|
8
|
-
profile:
|
|
8
|
+
profile: UserProfile | undefined;
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
error: Error | null;
|
|
11
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
11
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserProfile, Error>>;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -18,7 +18,7 @@ export declare function useAddressSelector(options?: {
|
|
|
18
18
|
}): {
|
|
19
19
|
addresses: SavedAddress[];
|
|
20
20
|
isLoading: boolean;
|
|
21
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
21
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<SavedAddress[], Error>>;
|
|
22
22
|
createAddress: import("@tanstack/react-query").UseMutateFunction<CreateAddressApiResponse, Error, AddressFormData, unknown>;
|
|
23
23
|
isSaving: boolean;
|
|
24
24
|
};
|
|
@@ -36,11 +36,11 @@ export declare function useAddresses(options?: {
|
|
|
36
36
|
enabled?: boolean;
|
|
37
37
|
listEndpoint?: string;
|
|
38
38
|
filters?: AddressFilterParams;
|
|
39
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
39
|
+
}): import("@tanstack/react-query").UseQueryResult<Address[], Error>;
|
|
40
40
|
export declare function useAddress(id: string, options?: {
|
|
41
41
|
enabled?: boolean;
|
|
42
42
|
byIdEndpoint?: (id: string) => string;
|
|
43
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
43
|
+
}): import("@tanstack/react-query").UseQueryResult<Address, Error>;
|
|
44
44
|
export declare function useCreateAddress(options?: {
|
|
45
45
|
listEndpoint?: string;
|
|
46
46
|
onSuccess?: (data: Address) => void;
|
|
@@ -17,7 +17,7 @@ export declare function useNotifications<TNotification = any>(limit?: number, op
|
|
|
17
17
|
notifications: TNotification[];
|
|
18
18
|
unreadCount: number;
|
|
19
19
|
isLoading: boolean;
|
|
20
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
20
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<NotificationsResponse<TNotification>, Error>>;
|
|
21
21
|
markRead: import("@tanstack/react-query").UseMutateFunction<unknown, Error, string, unknown>;
|
|
22
22
|
markAllRead: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
23
23
|
isMarkingAll: boolean;
|
|
@@ -40,7 +40,7 @@ export interface UpdateCurrentProfileInput {
|
|
|
40
40
|
export declare function useCurrentProfile(options?: {
|
|
41
41
|
enabled?: boolean;
|
|
42
42
|
endpoint?: string;
|
|
43
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
43
|
+
}): import("@tanstack/react-query").UseQueryResult<UserProfile, Error>;
|
|
44
44
|
export declare function useUpdateCurrentProfile(options?: {
|
|
45
45
|
onSuccess?: (data: JsonValue) => void;
|
|
46
46
|
onError?: (error: Error) => void;
|
|
@@ -71,8 +71,8 @@ export declare function usePublicProfile(userId: string, options?: PublicProfile
|
|
|
71
71
|
loading: boolean;
|
|
72
72
|
profileError: string;
|
|
73
73
|
isSeller: boolean;
|
|
74
|
-
productsData:
|
|
74
|
+
productsData: ProductsApiResponse | undefined;
|
|
75
75
|
productsLoading: boolean;
|
|
76
|
-
reviewsData:
|
|
76
|
+
reviewsData: SellerReviewsData | undefined;
|
|
77
77
|
reviewsLoading: boolean;
|
|
78
78
|
};
|
|
@@ -23,6 +23,6 @@ export declare function useAdminSectionsListing({ page, pageSize, sorts, filters
|
|
|
23
23
|
hasMore: boolean;
|
|
24
24
|
isLoading: boolean;
|
|
25
25
|
errorMessage: string | undefined;
|
|
26
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
26
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<AdminSectionsListingResponse, ApiClientError>>;
|
|
27
27
|
};
|
|
28
28
|
export {};
|
|
@@ -16,7 +16,7 @@ export interface UseChatReturn {
|
|
|
16
16
|
export declare function useChat(chatId: string | null, options?: {
|
|
17
17
|
realtimeProvider?: IClientRealtimeProvider;
|
|
18
18
|
}): UseChatReturn;
|
|
19
|
-
export declare function useChatRooms(): import("@tanstack/react-query").UseQueryResult<
|
|
19
|
+
export declare function useChatRooms(): import("@tanstack/react-query").UseQueryResult<unknown[], Error>;
|
|
20
20
|
export declare function useCreateChatRoom(): import("@tanstack/react-query").UseMutationResult<unknown, import("@mohasinac/appkit/client").ApiError, {
|
|
21
21
|
orderId: string;
|
|
22
22
|
ownerId: string;
|
|
@@ -17,22 +17,22 @@ interface UseAuctionDetailOptions {
|
|
|
17
17
|
bidsQueryKeyPrefix?: string;
|
|
18
18
|
}
|
|
19
19
|
export declare function useAuctions(params?: AuctionListQuery, opts?: UseAuctionsOptions): {
|
|
20
|
-
data:
|
|
20
|
+
data: AuctionListResponse | undefined;
|
|
21
21
|
auctions: AuctionItem[];
|
|
22
22
|
total: number;
|
|
23
23
|
totalPages: number;
|
|
24
24
|
hasMore: boolean;
|
|
25
25
|
isLoading: boolean;
|
|
26
26
|
error: string | null;
|
|
27
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
27
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<AuctionListResponse, Error>>;
|
|
28
28
|
};
|
|
29
29
|
export declare function useAuction(slug: string, opts?: {
|
|
30
30
|
enabled?: boolean;
|
|
31
31
|
}): {
|
|
32
|
-
auction:
|
|
32
|
+
auction: AuctionItem | null;
|
|
33
33
|
isLoading: boolean;
|
|
34
34
|
error: string | null;
|
|
35
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
35
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<AuctionItem | null, Error>>;
|
|
36
36
|
};
|
|
37
37
|
export declare function useAuctionBids(auctionSlug: string, limit?: number, opts?: {
|
|
38
38
|
enabled?: boolean;
|
|
@@ -43,9 +43,9 @@ export declare function useAuctionBids(auctionSlug: string, limit?: number, opts
|
|
|
43
43
|
error: string | null;
|
|
44
44
|
};
|
|
45
45
|
export declare function useAuctionDetail(id: string, opts?: UseAuctionDetailOptions): {
|
|
46
|
-
productQuery: import("@tanstack/react-query").UseQueryResult<
|
|
47
|
-
product:
|
|
48
|
-
bidsQuery: import("@tanstack/react-query").UseQueryResult<
|
|
49
|
-
bids:
|
|
46
|
+
productQuery: import("@tanstack/react-query").UseQueryResult<ProductItem | null, Error>;
|
|
47
|
+
product: ProductItem | null;
|
|
48
|
+
bidsQuery: import("@tanstack/react-query").UseQueryResult<PublicBid[], Error>;
|
|
49
|
+
bids: PublicBid[];
|
|
50
50
|
};
|
|
51
51
|
export {};
|
|
@@ -5,11 +5,11 @@ interface UseCurrentUserOptions {
|
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function useCurrentUser(opts?: UseCurrentUserOptions): {
|
|
8
|
-
user:
|
|
8
|
+
user: AuthUser | null;
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
isAuthenticated: boolean;
|
|
11
11
|
error: Error | null;
|
|
12
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
12
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<AuthUser | null, Error>>;
|
|
13
13
|
};
|
|
14
14
|
export interface LoginCredentials {
|
|
15
15
|
email: string;
|
|
@@ -12,6 +12,6 @@ export declare function useCart(userIdOrSession: string, opts?: UseCartOptions):
|
|
|
12
12
|
itemCount: number;
|
|
13
13
|
isLoading: boolean;
|
|
14
14
|
error: Error | null;
|
|
15
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
15
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<CartData, Error>>;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -5,5 +5,5 @@ interface UseCartQueryOptions<TData> {
|
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
initialData?: TData;
|
|
7
7
|
}
|
|
8
|
-
export declare function useCartQuery<TData = unknown>(options: UseCartQueryOptions<TData>): import("@tanstack/react-query").UseQueryResult<
|
|
8
|
+
export declare function useCartQuery<TData = unknown>(options: UseCartQueryOptions<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
|
|
9
9
|
export {};
|
|
@@ -9,7 +9,7 @@ interface UseCheckoutReadQueriesOptions<TAddress, TCart> {
|
|
|
9
9
|
initialCart?: TCart;
|
|
10
10
|
}
|
|
11
11
|
export declare function useCheckoutReadQueries<TAddress = unknown, TCart = unknown>(options: UseCheckoutReadQueriesOptions<TAddress, TCart>): {
|
|
12
|
-
addressQuery: import("@tanstack/react-query").UseQueryResult<
|
|
13
|
-
cartQuery: import("@tanstack/react-query").UseQueryResult<
|
|
12
|
+
addressQuery: import("@tanstack/react-query").UseQueryResult<TAddress[], Error>;
|
|
13
|
+
cartQuery: import("@tanstack/react-query").UseQueryResult<TCart, Error>;
|
|
14
14
|
};
|
|
15
15
|
export {};
|
|
@@ -5,9 +5,9 @@ interface UseOrderOptions<TOrder> {
|
|
|
5
5
|
initialData?: TOrder | null;
|
|
6
6
|
}
|
|
7
7
|
export declare function useOrder<TOrder = unknown>(orderId: string | null, options?: UseOrderOptions<TOrder>): {
|
|
8
|
-
order: NonNullable<
|
|
8
|
+
order: NonNullable<TOrder> | null;
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
error: Error | null;
|
|
11
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
11
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<TOrder | null, Error>>;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -4,7 +4,7 @@ interface UseCategoriesListOptions {
|
|
|
4
4
|
enabled?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare function useCategoriesList(opts?: UseCategoriesListOptions): {
|
|
7
|
-
categories:
|
|
7
|
+
categories: CategoryItem[];
|
|
8
8
|
total: number;
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
error: Error | null;
|
|
@@ -37,8 +37,8 @@ interface UseCategoryDetailOptions {
|
|
|
37
37
|
childrenEndpoint?: string;
|
|
38
38
|
}
|
|
39
39
|
export declare function useCategoryDetail(slug: string, opts?: UseCategoryDetailOptions): {
|
|
40
|
-
category:
|
|
41
|
-
children:
|
|
40
|
+
category: CategoryItem | null;
|
|
41
|
+
children: CategoryItem[];
|
|
42
42
|
isLoading: boolean;
|
|
43
43
|
childrenLoading: boolean;
|
|
44
44
|
error: Error | null;
|
|
@@ -9,16 +9,16 @@ export interface UseCategorySelectorOptions {
|
|
|
9
9
|
export declare function useCategorySelector(options?: UseCategorySelectorOptions): {
|
|
10
10
|
categories: CategoryItem[];
|
|
11
11
|
isLoading: boolean;
|
|
12
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
12
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<CategoryItem[], Error>>;
|
|
13
13
|
createCategory: import("@tanstack/react-query").UseMutateFunction<CategoryItem, Error, Record<string, JsonValue>, unknown>;
|
|
14
14
|
isCreating: boolean;
|
|
15
15
|
};
|
|
16
16
|
export declare function useCategories(options?: {
|
|
17
17
|
endpoint?: string;
|
|
18
18
|
}): {
|
|
19
|
-
categories:
|
|
19
|
+
categories: CategoryItem[];
|
|
20
20
|
isLoading: boolean;
|
|
21
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
21
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<CategoryItem[], Error>>;
|
|
22
22
|
};
|
|
23
23
|
export declare function useCreateCategory(options?: {
|
|
24
24
|
endpoint?: string;
|
|
@@ -7,7 +7,7 @@ import type { CategoryItem } from "../types";
|
|
|
7
7
|
export declare function useCategoryTree(opts?: {
|
|
8
8
|
enabled?: boolean;
|
|
9
9
|
}): {
|
|
10
|
-
categories:
|
|
10
|
+
categories: CategoryItem[];
|
|
11
11
|
isLoading: boolean;
|
|
12
12
|
};
|
|
13
13
|
/** Convert category tree to FacetOption[] with indentation prefix for tier > 0. */
|
|
@@ -62,8 +62,8 @@ interface UseCheckoutOptions<TAddress = any, TCart = any> {
|
|
|
62
62
|
initialCart?: CartApiResponse<TCart>;
|
|
63
63
|
}
|
|
64
64
|
export declare function useCheckout<TAddress = any, TCart = any>(options?: UseCheckoutOptions<TAddress, TCart>): {
|
|
65
|
-
addressQuery: import("@tanstack/react-query").UseQueryResult<
|
|
66
|
-
cartQuery: import("@tanstack/react-query").UseQueryResult<
|
|
65
|
+
addressQuery: import("@tanstack/react-query").UseQueryResult<TAddress[], Error>;
|
|
66
|
+
cartQuery: import("@tanstack/react-query").UseQueryResult<CartApiResponse<TCart>, Error>;
|
|
67
67
|
preflightMutation: import("@tanstack/react-query").UseMutationResult<PreflightResponse, Error, string, unknown>;
|
|
68
68
|
placeCodOrderMutation: import("@tanstack/react-query").UseMutationResult<PlaceOrderResponse, Error, PlaceOrderPayload, unknown>;
|
|
69
69
|
createPaymentOrderMutation: import("@tanstack/react-query").UseMutationResult<CreatePaymentOrderResponse, Error, CreatePaymentOrderPayload, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CollectionItem, CollectionListItem } from "../types";
|
|
2
2
|
export declare function useCollections(opts?: {
|
|
3
3
|
endpoint?: string;
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
4
|
+
}): import("@tanstack/react-query").UseQueryResult<CollectionListItem[], Error>;
|
|
5
5
|
export declare function useCollection(slug: string | undefined, opts?: {
|
|
6
6
|
endpoint?: string;
|
|
7
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
7
|
+
}): import("@tanstack/react-query").UseQueryResult<CollectionItem | null, Error>;
|
|
@@ -16,7 +16,7 @@ export declare function useEvent<T extends EventItem = EventItem>(id: string, op
|
|
|
16
16
|
event: T | null;
|
|
17
17
|
isLoading: boolean;
|
|
18
18
|
error: string | null;
|
|
19
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
19
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<EventItem | null, Error>>;
|
|
20
20
|
};
|
|
21
21
|
export declare function useEventEntries(eventId: string, params?: {
|
|
22
22
|
page?: number;
|
|
@@ -30,13 +30,13 @@ export declare function useEventEntries(eventId: string, params?: {
|
|
|
30
30
|
total: number;
|
|
31
31
|
isLoading: boolean;
|
|
32
32
|
error: string | null;
|
|
33
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
33
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<EventEntryListResponse, Error>>;
|
|
34
34
|
};
|
|
35
35
|
export declare function useEventLeaderboard(eventId: string, limit?: number, opts?: {
|
|
36
36
|
enabled?: boolean;
|
|
37
37
|
endpoint?: string;
|
|
38
38
|
}): {
|
|
39
|
-
leaderboard:
|
|
39
|
+
leaderboard: LeaderboardEntry[];
|
|
40
40
|
isLoading: boolean;
|
|
41
41
|
error: string | null;
|
|
42
42
|
};
|
|
@@ -23,6 +23,6 @@ export declare function useEvents<T extends EventItem = EventItem>(params?: Even
|
|
|
23
23
|
hasMore: boolean;
|
|
24
24
|
isLoading: boolean;
|
|
25
25
|
error: string | null;
|
|
26
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
26
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<EventListResponse, Error>>;
|
|
27
27
|
};
|
|
28
28
|
export {};
|
|
@@ -14,7 +14,7 @@ export declare function useFaqList(options?: UseFaqListOptions): {
|
|
|
14
14
|
faqs: import("..").FAQ[];
|
|
15
15
|
total: number;
|
|
16
16
|
categories: readonly string[];
|
|
17
|
-
data:
|
|
17
|
+
data: FAQListResponse;
|
|
18
18
|
error: Error;
|
|
19
19
|
isError: true;
|
|
20
20
|
isPending: false;
|
|
@@ -37,14 +37,13 @@ export declare function useFaqList(options?: UseFaqListOptions): {
|
|
|
37
37
|
isRefetching: boolean;
|
|
38
38
|
isStale: boolean;
|
|
39
39
|
isEnabled: boolean;
|
|
40
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
40
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<FAQListResponse, Error>>;
|
|
41
41
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
42
|
-
promise: Promise<NoInfer<FAQListResponse>>;
|
|
43
42
|
} | {
|
|
44
43
|
faqs: import("..").FAQ[];
|
|
45
44
|
total: number;
|
|
46
45
|
categories: readonly string[];
|
|
47
|
-
data:
|
|
46
|
+
data: FAQListResponse;
|
|
48
47
|
error: null;
|
|
49
48
|
isError: false;
|
|
50
49
|
isPending: false;
|
|
@@ -67,9 +66,8 @@ export declare function useFaqList(options?: UseFaqListOptions): {
|
|
|
67
66
|
isRefetching: boolean;
|
|
68
67
|
isStale: boolean;
|
|
69
68
|
isEnabled: boolean;
|
|
70
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
69
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<FAQListResponse, Error>>;
|
|
71
70
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
72
|
-
promise: Promise<NoInfer<FAQListResponse>>;
|
|
73
71
|
} | {
|
|
74
72
|
faqs: import("..").FAQ[];
|
|
75
73
|
total: number;
|
|
@@ -97,9 +95,8 @@ export declare function useFaqList(options?: UseFaqListOptions): {
|
|
|
97
95
|
isRefetching: boolean;
|
|
98
96
|
isStale: boolean;
|
|
99
97
|
isEnabled: boolean;
|
|
100
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
98
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<FAQListResponse, Error>>;
|
|
101
99
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
102
|
-
promise: Promise<NoInfer<FAQListResponse>>;
|
|
103
100
|
} | {
|
|
104
101
|
faqs: import("..").FAQ[];
|
|
105
102
|
total: number;
|
|
@@ -127,9 +124,8 @@ export declare function useFaqList(options?: UseFaqListOptions): {
|
|
|
127
124
|
isRefetching: boolean;
|
|
128
125
|
isStale: boolean;
|
|
129
126
|
isEnabled: boolean;
|
|
130
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
127
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<FAQListResponse, Error>>;
|
|
131
128
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
132
|
-
promise: Promise<NoInfer<FAQListResponse>>;
|
|
133
129
|
} | {
|
|
134
130
|
faqs: import("..").FAQ[];
|
|
135
131
|
total: number;
|
|
@@ -157,14 +153,13 @@ export declare function useFaqList(options?: UseFaqListOptions): {
|
|
|
157
153
|
isRefetching: boolean;
|
|
158
154
|
isStale: boolean;
|
|
159
155
|
isEnabled: boolean;
|
|
160
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
156
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<FAQListResponse, Error>>;
|
|
161
157
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
162
|
-
promise: Promise<NoInfer<FAQListResponse>>;
|
|
163
158
|
} | {
|
|
164
159
|
faqs: import("..").FAQ[];
|
|
165
160
|
total: number;
|
|
166
161
|
categories: readonly string[];
|
|
167
|
-
data:
|
|
162
|
+
data: FAQListResponse;
|
|
168
163
|
isError: false;
|
|
169
164
|
error: null;
|
|
170
165
|
isPending: false;
|
|
@@ -187,8 +182,7 @@ export declare function useFaqList(options?: UseFaqListOptions): {
|
|
|
187
182
|
isRefetching: boolean;
|
|
188
183
|
isStale: boolean;
|
|
189
184
|
isEnabled: boolean;
|
|
190
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
185
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<FAQListResponse, Error>>;
|
|
191
186
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
192
|
-
promise: Promise<NoInfer<FAQListResponse>>;
|
|
193
187
|
};
|
|
194
188
|
export {};
|
|
@@ -10,4 +10,4 @@ export interface BlogListResult {
|
|
|
10
10
|
export declare function useBlogArticles(options?: {
|
|
11
11
|
endpoint?: string;
|
|
12
12
|
initialPosts?: BlogListResult["posts"];
|
|
13
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
13
|
+
}): import("@tanstack/react-query").UseQueryResult<BlogListResult, Error>;
|
|
@@ -2,4 +2,4 @@ import type { ProductItem } from "../../products/types";
|
|
|
2
2
|
export declare function useFeaturedAuctions(options?: {
|
|
3
3
|
filterByBrand?: string;
|
|
4
4
|
initialData?: ProductItem[];
|
|
5
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
5
|
+
}): import("@tanstack/react-query").UseQueryResult<ProductItem[], Error>;
|
|
@@ -2,4 +2,4 @@ import type { ProductItem } from "../../products/types";
|
|
|
2
2
|
export declare function useFeaturedPreOrders(options?: {
|
|
3
3
|
filterByBrand?: string;
|
|
4
4
|
initialData?: ProductItem[];
|
|
5
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
5
|
+
}): import("@tanstack/react-query").UseQueryResult<ProductItem[], Error>;
|
|
@@ -2,4 +2,4 @@ import type { ProductListResponse } from "../../products/types";
|
|
|
2
2
|
export declare function useFeaturedProducts(options?: {
|
|
3
3
|
initialData?: ProductListResponse;
|
|
4
4
|
filterByBrand?: string;
|
|
5
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
5
|
+
}): import("@tanstack/react-query").UseQueryResult<ProductListResponse, Error>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StoreListItem } from "../../stores/types";
|
|
2
2
|
export declare function useFeaturedStores(limit?: number, options?: {
|
|
3
3
|
initialData?: StoreListItem[];
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
4
|
+
}): import("@tanstack/react-query").UseQueryResult<StoreListItem[], Error>;
|
|
@@ -6,4 +6,4 @@ import type { CarouselSlide } from "../types/index";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function useHeroCarousel(options?: {
|
|
8
8
|
initialData?: CarouselSlide[];
|
|
9
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
9
|
+
}): import("@tanstack/react-query").UseQueryResult<CarouselSlide[], Error>;
|
|
@@ -5,4 +5,4 @@ export interface HomepageEventsListResponse {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function useHomepageEvents(limit?: number, options?: {
|
|
7
7
|
initialData?: EventItem[];
|
|
8
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
8
|
+
}): import("@tanstack/react-query").UseQueryResult<EventItem[], Error>;
|
|
@@ -4,4 +4,4 @@ export interface UseHomepageReviewsOptions {
|
|
|
4
4
|
initialData?: Review[];
|
|
5
5
|
staleTime?: number;
|
|
6
6
|
}
|
|
7
|
-
export declare function useHomepageReviews(options?: UseHomepageReviewsOptions): import("@tanstack/react-query").UseQueryResult<
|
|
7
|
+
export declare function useHomepageReviews(options?: UseHomepageReviewsOptions): import("@tanstack/react-query").UseQueryResult<Review[], Error>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HomepageSectionDocument } from "../schemas";
|
|
2
|
-
export declare function useHomepageSections(params?: string): import("@tanstack/react-query").UseQueryResult<
|
|
2
|
+
export declare function useHomepageSections(params?: string): import("@tanstack/react-query").UseQueryResult<HomepageSectionDocument[], Error>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CategoryItem } from "../../categories/types";
|
|
2
2
|
export declare function useTopBrands(limit?: number, options?: {
|
|
3
3
|
initialData?: CategoryItem[];
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
4
|
+
}): import("@tanstack/react-query").UseQueryResult<CategoryItem[], Error>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CategoryItem } from "../../categories/types";
|
|
2
2
|
export declare function useTopCategories(limit?: number, options?: {
|
|
3
3
|
initialData?: CategoryItem[];
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
4
|
+
}): import("@tanstack/react-query").UseQueryResult<CategoryItem[], Error>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LoyaltyBalance } from "../types";
|
|
2
2
|
export declare function useLoyaltyBalance(uid: string | undefined, opts?: {
|
|
3
3
|
endpoint?: string;
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
4
|
+
}): import("@tanstack/react-query").UseQueryResult<LoyaltyBalance | null, Error>;
|
|
@@ -17,7 +17,7 @@ export declare function useOrder(id: string, opts?: {
|
|
|
17
17
|
enabled?: boolean;
|
|
18
18
|
endpoint?: string;
|
|
19
19
|
}): {
|
|
20
|
-
order:
|
|
20
|
+
order: Order | undefined;
|
|
21
21
|
isLoading: boolean;
|
|
22
22
|
error: Error | null;
|
|
23
23
|
};
|
|
@@ -25,7 +25,7 @@ export declare function useTrackOrder(trackingId: string | null | undefined, opt
|
|
|
25
25
|
enabled?: boolean;
|
|
26
26
|
endpoint?: string;
|
|
27
27
|
}): {
|
|
28
|
-
trackingInfo:
|
|
28
|
+
trackingInfo: TrackingInfo | null;
|
|
29
29
|
isLoading: boolean;
|
|
30
30
|
error: Error | null;
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PreorderItem } from "../types";
|
|
2
2
|
export declare function usePreorders(opts?: {
|
|
3
3
|
endpoint?: string;
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
4
|
+
}): import("@tanstack/react-query").UseQueryResult<PreorderItem[], Error>;
|
|
5
5
|
export declare function usePreorder(slug: string | undefined, opts?: {
|
|
6
6
|
endpoint?: string;
|
|
7
|
-
}): import("@tanstack/react-query").UseQueryResult<
|
|
7
|
+
}): import("@tanstack/react-query").UseQueryResult<PreorderItem | null, Error>;
|
|
@@ -10,6 +10,6 @@ export declare function useProductDetail<TProduct = ProductItem>(slug: string, o
|
|
|
10
10
|
product: TProduct | null;
|
|
11
11
|
isLoading: boolean;
|
|
12
12
|
error: Error | null;
|
|
13
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
13
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<ProductItem | null, Error>>;
|
|
14
14
|
};
|
|
15
15
|
export {};
|
|
@@ -4,4 +4,4 @@ import type { ProductListResponse } from "../types";
|
|
|
4
4
|
* boolean translates to the canonical `listingType` clause; new callers can
|
|
5
5
|
* pass the union directly via the same parameter slot in a follow-up.
|
|
6
6
|
*/
|
|
7
|
-
export declare function useRelatedProducts(category: string, excludeId: string, limit?: number, isAuction?: boolean): import("@tanstack/react-query").UseQueryResult<
|
|
7
|
+
export declare function useRelatedProducts(category: string, excludeId: string, limit?: number, isAuction?: boolean): import("@tanstack/react-query").UseQueryResult<ProductListResponse, Error>;
|
|
@@ -9,13 +9,13 @@ export declare function usePromotions(params?: PromotionsListParams, opts?: {
|
|
|
9
9
|
hasMore: boolean;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
error: string | null;
|
|
12
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
12
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<PromotionsListResponse, Error>>;
|
|
13
13
|
};
|
|
14
14
|
export declare function useCoupon(code: string, opts?: {
|
|
15
15
|
enabled?: boolean;
|
|
16
16
|
endpoint?: string;
|
|
17
17
|
}): {
|
|
18
|
-
coupon:
|
|
18
|
+
coupon: CouponItem | null;
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
error: string | null;
|
|
21
21
|
};
|
|
@@ -15,7 +15,7 @@ export declare function useReviews(params?: ReviewListParams, opts?: UseReviewsO
|
|
|
15
15
|
totalApproved: number | undefined;
|
|
16
16
|
isLoading: boolean;
|
|
17
17
|
error: Error | null;
|
|
18
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
18
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<ReviewListResponse, Error>>;
|
|
19
19
|
};
|
|
20
20
|
interface UseProductReviewsOptions {
|
|
21
21
|
page?: number;
|
|
@@ -38,6 +38,6 @@ export declare function useProductReviews(productId: string, opts?: UseProductRe
|
|
|
38
38
|
totalApproved: number | undefined;
|
|
39
39
|
isLoading: boolean;
|
|
40
40
|
error: Error | null;
|
|
41
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
41
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<ReviewListResponse, Error>>;
|
|
42
42
|
};
|
|
43
43
|
export {};
|
|
@@ -11,11 +11,11 @@ interface UseSearchOptions {
|
|
|
11
11
|
* `options.initialCategories` — server-prefetched category list for filter facets.
|
|
12
12
|
*/
|
|
13
13
|
export declare function useSearch(searchParams: string, options?: UseSearchOptions): {
|
|
14
|
-
results:
|
|
14
|
+
results: SearchResponse | null;
|
|
15
15
|
items: import("..").SearchProductItem[];
|
|
16
16
|
total: number;
|
|
17
17
|
totalPages: number;
|
|
18
18
|
isLoading: boolean;
|
|
19
|
-
categories:
|
|
19
|
+
categories: SearchCategoryOption[];
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
@@ -12,14 +12,14 @@ export declare function useSellerPayouts(params?: {
|
|
|
12
12
|
totalPages: number;
|
|
13
13
|
isLoading: boolean;
|
|
14
14
|
error: string | null;
|
|
15
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
15
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<PayoutListResponse, Error>>;
|
|
16
16
|
};
|
|
17
17
|
export declare function useSellerPayoutSettings(opts?: {
|
|
18
18
|
enabled?: boolean;
|
|
19
19
|
endpoint?: string;
|
|
20
20
|
}): {
|
|
21
|
-
settings:
|
|
21
|
+
settings: SellerPayoutSettings | null;
|
|
22
22
|
isLoading: boolean;
|
|
23
23
|
error: string | null;
|
|
24
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
24
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<SellerPayoutSettings | null, Error>>;
|
|
25
25
|
};
|
|
@@ -3,28 +3,28 @@ export declare function useSellerStore(opts?: {
|
|
|
3
3
|
enabled?: boolean;
|
|
4
4
|
endpoint?: string;
|
|
5
5
|
}): {
|
|
6
|
-
store:
|
|
6
|
+
store: SellerStore | null;
|
|
7
7
|
isLoading: boolean;
|
|
8
8
|
error: string | null;
|
|
9
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
9
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<SellerStore | null, Error>>;
|
|
10
10
|
};
|
|
11
11
|
export declare function useSellerDashboard(opts?: {
|
|
12
12
|
enabled?: boolean;
|
|
13
13
|
endpoint?: string;
|
|
14
14
|
}): {
|
|
15
|
-
stats:
|
|
15
|
+
stats: SellerDashboardStats | null;
|
|
16
16
|
isLoading: boolean;
|
|
17
17
|
error: string | null;
|
|
18
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
18
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<SellerDashboardStats, Error>>;
|
|
19
19
|
};
|
|
20
20
|
export declare function useSellerAnalytics(period?: string, opts?: {
|
|
21
21
|
enabled?: boolean;
|
|
22
22
|
endpoint?: string;
|
|
23
23
|
}): {
|
|
24
|
-
analytics:
|
|
24
|
+
analytics: SellerAnalytics | null;
|
|
25
25
|
isLoading: boolean;
|
|
26
26
|
error: string | null;
|
|
27
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
27
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<SellerAnalytics, Error>>;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated Use useStoreDashboard */
|
|
30
30
|
export { useSellerDashboard as useStoreDashboard };
|
|
@@ -9,8 +9,8 @@ export declare function useSellerStorefront(sellerId: string, options?: {
|
|
|
9
9
|
seller: PublicUserProfile | undefined;
|
|
10
10
|
loading: boolean;
|
|
11
11
|
profileError: string;
|
|
12
|
-
productsData:
|
|
12
|
+
productsData: ProductsApiResponse | undefined;
|
|
13
13
|
productsLoading: boolean;
|
|
14
|
-
reviewsData:
|
|
14
|
+
reviewsData: SellerReviewsData | undefined;
|
|
15
15
|
reviewsLoading: boolean;
|
|
16
16
|
};
|
|
@@ -21,17 +21,17 @@ export declare function useShipments(params?: UseShipmentsParams): {
|
|
|
21
21
|
meta: ListMeta | undefined;
|
|
22
22
|
isLoading: boolean;
|
|
23
23
|
error: string | null;
|
|
24
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
24
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<ShipmentsListResponse, Error>>;
|
|
25
25
|
};
|
|
26
26
|
export declare function useShipment(shipmentId?: string): {
|
|
27
|
-
shipment:
|
|
27
|
+
shipment: ShipmentDocument | undefined;
|
|
28
28
|
lots: ShipmentLot[];
|
|
29
29
|
isLoading: boolean;
|
|
30
30
|
error: string | null;
|
|
31
|
-
refetchShipment: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
32
|
-
refetchLots: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
31
|
+
refetchShipment: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<ShipmentDocument, Error>>;
|
|
32
|
+
refetchLots: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
33
33
|
lots: ShipmentLot[];
|
|
34
|
-
}
|
|
34
|
+
}, Error>>;
|
|
35
35
|
};
|
|
36
36
|
interface ShipmentItemsListResponse {
|
|
37
37
|
items: ShipmentItem[];
|
|
@@ -47,7 +47,7 @@ export declare function useShipmentItems(shipmentId?: string, lotId?: string, pa
|
|
|
47
47
|
meta: ListMeta | undefined;
|
|
48
48
|
isLoading: boolean;
|
|
49
49
|
error: string | null;
|
|
50
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
50
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<ShipmentItemsListResponse, Error>>;
|
|
51
51
|
};
|
|
52
52
|
interface ShipmentProjectionsResponse {
|
|
53
53
|
lots: ShipmentLot[];
|
|
@@ -64,6 +64,6 @@ export declare function useShipmentProjections(params?: UseShipmentProjectionsPa
|
|
|
64
64
|
meta: ListMeta | undefined;
|
|
65
65
|
isLoading: boolean;
|
|
66
66
|
error: string | null;
|
|
67
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
67
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<ShipmentProjectionsResponse, Error>>;
|
|
68
68
|
};
|
|
69
69
|
export {};
|
|
@@ -16,7 +16,7 @@ export declare function useStoreAddressSelector(options?: {
|
|
|
16
16
|
}): {
|
|
17
17
|
addresses: SavedAddress[];
|
|
18
18
|
isLoading: boolean;
|
|
19
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
19
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<SavedAddress[], Error>>;
|
|
20
20
|
createAddress: import("@tanstack/react-query").UseMutateFunction<CreateAddressApiResponse, Error, AddressFormData, unknown>;
|
|
21
21
|
isSaving: boolean;
|
|
22
22
|
};
|
|
@@ -12,16 +12,16 @@ export declare function useStores(params?: StoreListParams, opts?: UseStoresOpti
|
|
|
12
12
|
hasMore: boolean;
|
|
13
13
|
isLoading: false;
|
|
14
14
|
error: string | null;
|
|
15
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
15
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<StoreListResponse, Error>>;
|
|
16
16
|
};
|
|
17
17
|
export declare function useStoreBySlug(storeSlug: string, opts?: {
|
|
18
18
|
enabled?: boolean;
|
|
19
19
|
endpoint?: string;
|
|
20
20
|
}): {
|
|
21
|
-
store:
|
|
21
|
+
store: StoreDetail | null;
|
|
22
22
|
isLoading: boolean;
|
|
23
23
|
error: string | null;
|
|
24
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
24
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<StoreDetail | null, Error>>;
|
|
25
25
|
};
|
|
26
26
|
export declare function useStoreProducts(storeSlug: string, params?: string, opts?: {
|
|
27
27
|
enabled?: boolean;
|
|
@@ -32,7 +32,7 @@ export declare function useStoreProducts(storeSlug: string, params?: string, opt
|
|
|
32
32
|
totalPages: number;
|
|
33
33
|
isLoading: boolean;
|
|
34
34
|
error: string | null;
|
|
35
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
35
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<StoreProductsResponse, Error>>;
|
|
36
36
|
};
|
|
37
37
|
export declare function useStoreAuctions(storeSlug: string, params?: string, opts?: {
|
|
38
38
|
enabled?: boolean;
|
|
@@ -43,7 +43,7 @@ export declare function useStoreAuctions(storeSlug: string, params?: string, opt
|
|
|
43
43
|
totalPages: number;
|
|
44
44
|
isLoading: boolean;
|
|
45
45
|
error: string | null;
|
|
46
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
46
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<StoreAuctionsResponse, Error>>;
|
|
47
47
|
};
|
|
48
48
|
export declare function useStoreReviews(storeSlug: string, params?: {
|
|
49
49
|
rating?: number;
|
|
@@ -66,6 +66,6 @@ export declare function useStoreReviews(storeSlug: string, params?: {
|
|
|
66
66
|
ratingDistribution: Record<number, number>;
|
|
67
67
|
isLoading: boolean;
|
|
68
68
|
error: string | null;
|
|
69
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
69
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<StoreReviewsData, Error>>;
|
|
70
70
|
};
|
|
71
71
|
export {};
|
|
@@ -18,7 +18,7 @@ interface UseUserWishlistOptions<TProduct> {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function useUserWishlist<TProduct = unknown>(options?: UseUserWishlistOptions<TProduct>): {
|
|
20
20
|
total: number;
|
|
21
|
-
data:
|
|
21
|
+
data: UserWishlistResponse<TProduct>;
|
|
22
22
|
error: Error;
|
|
23
23
|
isError: true;
|
|
24
24
|
isPending: false;
|
|
@@ -41,12 +41,11 @@ export declare function useUserWishlist<TProduct = unknown>(options?: UseUserWis
|
|
|
41
41
|
isRefetching: boolean;
|
|
42
42
|
isStale: boolean;
|
|
43
43
|
isEnabled: boolean;
|
|
44
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
44
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserWishlistResponse<TProduct>, Error>>;
|
|
45
45
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
46
|
-
promise: Promise<NoInfer<UserWishlistResponse<TProduct>>>;
|
|
47
46
|
} | {
|
|
48
47
|
total: number;
|
|
49
|
-
data:
|
|
48
|
+
data: UserWishlistResponse<TProduct>;
|
|
50
49
|
error: null;
|
|
51
50
|
isError: false;
|
|
52
51
|
isPending: false;
|
|
@@ -69,9 +68,8 @@ export declare function useUserWishlist<TProduct = unknown>(options?: UseUserWis
|
|
|
69
68
|
isRefetching: boolean;
|
|
70
69
|
isStale: boolean;
|
|
71
70
|
isEnabled: boolean;
|
|
72
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
71
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserWishlistResponse<TProduct>, Error>>;
|
|
73
72
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
74
|
-
promise: Promise<NoInfer<UserWishlistResponse<TProduct>>>;
|
|
75
73
|
} | {
|
|
76
74
|
total: number;
|
|
77
75
|
data: undefined;
|
|
@@ -97,9 +95,8 @@ export declare function useUserWishlist<TProduct = unknown>(options?: UseUserWis
|
|
|
97
95
|
isRefetching: boolean;
|
|
98
96
|
isStale: boolean;
|
|
99
97
|
isEnabled: boolean;
|
|
100
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
98
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserWishlistResponse<TProduct>, Error>>;
|
|
101
99
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
102
|
-
promise: Promise<NoInfer<UserWishlistResponse<TProduct>>>;
|
|
103
100
|
} | {
|
|
104
101
|
total: number;
|
|
105
102
|
data: undefined;
|
|
@@ -125,9 +122,8 @@ export declare function useUserWishlist<TProduct = unknown>(options?: UseUserWis
|
|
|
125
122
|
isRefetching: boolean;
|
|
126
123
|
isStale: boolean;
|
|
127
124
|
isEnabled: boolean;
|
|
128
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
125
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserWishlistResponse<TProduct>, Error>>;
|
|
129
126
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
130
|
-
promise: Promise<NoInfer<UserWishlistResponse<TProduct>>>;
|
|
131
127
|
} | {
|
|
132
128
|
total: number;
|
|
133
129
|
data: undefined;
|
|
@@ -153,12 +149,11 @@ export declare function useUserWishlist<TProduct = unknown>(options?: UseUserWis
|
|
|
153
149
|
isRefetching: boolean;
|
|
154
150
|
isStale: boolean;
|
|
155
151
|
isEnabled: boolean;
|
|
156
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
152
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserWishlistResponse<TProduct>, Error>>;
|
|
157
153
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
158
|
-
promise: Promise<NoInfer<UserWishlistResponse<TProduct>>>;
|
|
159
154
|
} | {
|
|
160
155
|
total: number;
|
|
161
|
-
data:
|
|
156
|
+
data: UserWishlistResponse<TProduct>;
|
|
162
157
|
isError: false;
|
|
163
158
|
error: null;
|
|
164
159
|
isPending: false;
|
|
@@ -181,8 +176,7 @@ export declare function useUserWishlist<TProduct = unknown>(options?: UseUserWis
|
|
|
181
176
|
isRefetching: boolean;
|
|
182
177
|
isStale: boolean;
|
|
183
178
|
isEnabled: boolean;
|
|
184
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
179
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<UserWishlistResponse<TProduct>, Error>>;
|
|
185
180
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
186
|
-
promise: Promise<NoInfer<UserWishlistResponse<TProduct>>>;
|
|
187
181
|
};
|
|
188
182
|
export {};
|
|
@@ -11,6 +11,6 @@ export declare function useWishlist(userId: string, opts?: UseWishlistOptions):
|
|
|
11
11
|
isWishlisted: (productId: string) => boolean;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
error: Error | null;
|
|
14
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
14
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<WishlistResponse, Error>>;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -17,7 +17,7 @@ export declare function useWishlistWithGuest(userId: string | null | undefined,
|
|
|
17
17
|
isWishlisted: (productId: string) => boolean;
|
|
18
18
|
isLoading: boolean;
|
|
19
19
|
error: Error | null;
|
|
20
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
20
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<WishlistResponse, Error>>;
|
|
21
21
|
isGuest: boolean;
|
|
22
22
|
guestWishlist?: undefined;
|
|
23
23
|
} | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mohasinac/appkit",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"@mohasinac/sievejs": "^1.0.0",
|
|
175
175
|
"driver.js": "^1.8.0",
|
|
176
176
|
"jsbarcode": "^3.12.3",
|
|
177
|
-
"motion": "^
|
|
177
|
+
"motion": "^13.1.1",
|
|
178
178
|
"react-advanced-cropper": "^0.20.1",
|
|
179
179
|
"tailwind-merge": "^3.3.0",
|
|
180
180
|
"zod": "^3.24.0",
|
|
@@ -184,8 +184,8 @@
|
|
|
184
184
|
"@tanstack/react-query": ">=5.0.0",
|
|
185
185
|
"@types/react": ">=18",
|
|
186
186
|
"@types/react-dom": ">=18",
|
|
187
|
-
"firebase-admin": "^
|
|
188
|
-
"firebase-functions": "
|
|
187
|
+
"firebase-admin": "^14.3.0",
|
|
188
|
+
"firebase-functions": "^7.3.2",
|
|
189
189
|
"next": ">=14",
|
|
190
190
|
"next-intl": ">=3",
|
|
191
191
|
"razorpay": ">=2.9.0",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"devDependencies": {
|
|
215
215
|
"@tailwindcss/cli": "^4.3.3",
|
|
216
216
|
"@tanstack/react-query": "^5.0.0",
|
|
217
|
-
"@testing-library/jest-dom": "^
|
|
217
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
218
218
|
"@testing-library/react": "^16.3.2",
|
|
219
219
|
"@types/babel__generator": "^7.27.0",
|
|
220
220
|
"@types/babel__template": "^7.4.4",
|
|
@@ -227,13 +227,13 @@
|
|
|
227
227
|
"@types/yargs-parser": "^21.0.3",
|
|
228
228
|
"@upstash/ratelimit": "^2.0.8",
|
|
229
229
|
"@upstash/redis": "^1.37.0",
|
|
230
|
-
"concurrently": "^
|
|
231
|
-
"eslint": "^9.
|
|
232
|
-
"firebase": "^12.
|
|
233
|
-
"firebase-admin": "^
|
|
234
|
-
"firebase-functions": "^
|
|
230
|
+
"concurrently": "^10.0.5",
|
|
231
|
+
"eslint": "^10.9.0",
|
|
232
|
+
"firebase": "^12.18.0",
|
|
233
|
+
"firebase-admin": "^14.3.0",
|
|
234
|
+
"firebase-functions": "^7.3.2",
|
|
235
235
|
"jsdom": "^29.1.1",
|
|
236
|
-
"lucide-react": "^1.
|
|
236
|
+
"lucide-react": "^1.33.0",
|
|
237
237
|
"next": "^15.0.0",
|
|
238
238
|
"next-intl": "^4.9.1",
|
|
239
239
|
"razorpay": "^2.9.6",
|
|
@@ -243,6 +243,9 @@
|
|
|
243
243
|
"server-only": "^0.0.1",
|
|
244
244
|
"tailwindcss": "^4.3.3",
|
|
245
245
|
"typescript": "^5.9.3",
|
|
246
|
-
"vitest": "^4.1.
|
|
246
|
+
"vitest": "^4.1.11"
|
|
247
|
+
},
|
|
248
|
+
"engines": {
|
|
249
|
+
"node": ">=22"
|
|
247
250
|
}
|
|
248
251
|
}
|