@86d-app/products 0.0.4 → 0.0.13
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/.turbo/turbo-build.log +1 -0
- package/AGENTS.md +41 -41
- package/README.md +266 -5
- package/dist/__tests__/controllers.test.d.ts +2 -0
- package/dist/__tests__/controllers.test.d.ts.map +1 -0
- package/dist/__tests__/endpoint-security.test.d.ts +2 -0
- package/dist/__tests__/endpoint-security.test.d.ts.map +1 -0
- package/dist/__tests__/service-impl.test.d.ts +2 -0
- package/dist/__tests__/service-impl.test.d.ts.map +1 -0
- package/dist/__tests__/state.test.d.ts +2 -0
- package/dist/__tests__/state.test.d.ts.map +1 -0
- package/dist/admin/components/categories-admin.d.ts +2 -0
- package/dist/admin/components/categories-admin.d.ts.map +1 -0
- package/dist/admin/components/category-form.d.ts +7 -0
- package/dist/admin/components/category-form.d.ts.map +1 -0
- package/dist/admin/components/category-list.d.ts +7 -0
- package/dist/admin/components/category-list.d.ts.map +1 -0
- package/dist/admin/components/collections-admin.d.ts +2 -0
- package/dist/admin/components/collections-admin.d.ts.map +1 -0
- package/dist/admin/components/index.d.ts +9 -0
- package/dist/admin/components/index.d.ts.map +1 -0
- package/dist/admin/components/product-detail.d.ts +7 -0
- package/dist/admin/components/product-detail.d.ts.map +1 -0
- package/dist/admin/components/product-edit.d.ts +6 -0
- package/dist/admin/components/product-edit.d.ts.map +1 -0
- package/dist/admin/components/product-form.d.ts +7 -0
- package/dist/admin/components/product-form.d.ts.map +1 -0
- package/dist/admin/components/product-list.d.ts +2 -0
- package/dist/admin/components/product-list.d.ts.map +1 -0
- package/dist/admin/components/product-new.d.ts +2 -0
- package/dist/admin/components/product-new.d.ts.map +1 -0
- package/dist/admin/endpoints/add-collection-product.d.ts +15 -0
- package/dist/admin/endpoints/add-collection-product.d.ts.map +1 -0
- package/dist/admin/endpoints/bulk-action.d.ts +17 -0
- package/dist/admin/endpoints/bulk-action.d.ts.map +1 -0
- package/dist/admin/endpoints/create-category.d.ts +23 -0
- package/dist/admin/endpoints/create-category.d.ts.map +1 -0
- package/dist/admin/endpoints/create-collection.d.ts +22 -0
- package/dist/admin/endpoints/create-collection.d.ts.map +1 -0
- package/dist/admin/endpoints/create-product.d.ts +44 -0
- package/dist/admin/endpoints/create-product.d.ts.map +1 -0
- package/dist/admin/endpoints/create-variant.d.ts +35 -0
- package/dist/admin/endpoints/create-variant.d.ts.map +1 -0
- package/dist/admin/endpoints/delete-category.d.ts +18 -0
- package/dist/admin/endpoints/delete-category.d.ts.map +1 -0
- package/dist/admin/endpoints/delete-collection.d.ts +8 -0
- package/dist/admin/endpoints/delete-collection.d.ts.map +1 -0
- package/dist/admin/endpoints/delete-product.d.ts +18 -0
- package/dist/admin/endpoints/delete-product.d.ts.map +1 -0
- package/dist/admin/endpoints/delete-variant.d.ts +18 -0
- package/dist/admin/endpoints/delete-variant.d.ts.map +1 -0
- package/dist/admin/endpoints/get-product.d.ts +16 -0
- package/dist/admin/endpoints/get-product.d.ts.map +1 -0
- package/dist/admin/endpoints/import-products.d.ts +36 -0
- package/dist/admin/endpoints/import-products.d.ts.map +1 -0
- package/dist/admin/endpoints/index.d.ts +418 -0
- package/dist/admin/endpoints/index.d.ts.map +1 -0
- package/dist/admin/endpoints/list-categories.d.ts +11 -0
- package/dist/admin/endpoints/list-categories.d.ts.map +1 -0
- package/dist/admin/endpoints/list-collections.d.ts +11 -0
- package/dist/admin/endpoints/list-collections.d.ts.map +1 -0
- package/dist/admin/endpoints/list-products.d.ts +27 -0
- package/dist/admin/endpoints/list-products.d.ts.map +1 -0
- package/dist/admin/endpoints/remove-collection-product.d.ts +9 -0
- package/dist/admin/endpoints/remove-collection-product.d.ts.map +1 -0
- package/dist/admin/endpoints/update-category.d.ts +26 -0
- package/dist/admin/endpoints/update-category.d.ts.map +1 -0
- package/dist/admin/endpoints/update-collection.d.ts +19 -0
- package/dist/admin/endpoints/update-collection.d.ts.map +1 -0
- package/dist/admin/endpoints/update-product.d.ts +47 -0
- package/dist/admin/endpoints/update-product.d.ts.map +1 -0
- package/dist/admin/endpoints/update-variant.d.ts +35 -0
- package/dist/admin/endpoints/update-variant.d.ts.map +1 -0
- package/dist/controllers.d.ts +130 -0
- package/dist/controllers.d.ts.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/markdown.d.ts +6 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/schema.d.ts +351 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/service-impl.d.ts +4 -0
- package/dist/service-impl.d.ts.map +1 -0
- package/dist/service.d.ts +280 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/state.d.ts +38 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/store/components/_hooks.d.ts +88 -0
- package/dist/store/components/_hooks.d.ts.map +1 -0
- package/dist/store/components/_types.d.ts +70 -0
- package/dist/store/components/_types.d.ts.map +1 -0
- package/dist/store/components/_utils.d.ts +5 -0
- package/dist/store/components/_utils.d.ts.map +1 -0
- package/dist/store/components/back-in-stock-notify.d.ts +8 -0
- package/dist/store/components/back-in-stock-notify.d.ts.map +1 -0
- package/dist/store/components/collection-card.d.ts +6 -0
- package/dist/store/components/collection-card.d.ts.map +1 -0
- package/dist/store/components/collection-detail.d.ts +6 -0
- package/dist/store/components/collection-detail.d.ts.map +1 -0
- package/dist/store/components/collection-grid.d.ts +6 -0
- package/dist/store/components/collection-grid.d.ts.map +1 -0
- package/dist/store/components/featured-products.d.ts +6 -0
- package/dist/store/components/featured-products.d.ts.map +1 -0
- package/dist/store/components/filter-chip.d.ts +6 -0
- package/dist/store/components/filter-chip.d.ts.map +1 -0
- package/dist/store/components/index.d.ts +37 -0
- package/dist/store/components/index.d.ts.map +1 -0
- package/dist/store/components/product-card.d.ts +7 -0
- package/dist/store/components/product-card.d.ts.map +1 -0
- package/dist/store/components/product-detail.d.ts +6 -0
- package/dist/store/components/product-detail.d.ts.map +1 -0
- package/dist/store/components/product-listing.d.ts +7 -0
- package/dist/store/components/product-listing.d.ts.map +1 -0
- package/dist/store/components/product-qa-section.d.ts +5 -0
- package/dist/store/components/product-qa-section.d.ts.map +1 -0
- package/dist/store/components/product-reviews-section.d.ts +5 -0
- package/dist/store/components/product-reviews-section.d.ts.map +1 -0
- package/dist/store/components/recently-viewed.d.ts +12 -0
- package/dist/store/components/recently-viewed.d.ts.map +1 -0
- package/dist/store/components/recommended-products.d.ts +7 -0
- package/dist/store/components/recommended-products.d.ts.map +1 -0
- package/dist/store/components/related-products.d.ts +7 -0
- package/dist/store/components/related-products.d.ts.map +1 -0
- package/dist/store/components/star-display.d.ts +6 -0
- package/dist/store/components/star-display.d.ts.map +1 -0
- package/dist/store/components/star-picker.d.ts +6 -0
- package/dist/store/components/star-picker.d.ts.map +1 -0
- package/dist/store/components/stock-badge.d.ts +5 -0
- package/dist/store/components/stock-badge.d.ts.map +1 -0
- package/dist/store/endpoints/get-category.d.ts +22 -0
- package/dist/store/endpoints/get-category.d.ts.map +1 -0
- package/dist/store/endpoints/get-collection.d.ts +17 -0
- package/dist/store/endpoints/get-collection.d.ts.map +1 -0
- package/dist/store/endpoints/get-featured.d.ts +10 -0
- package/dist/store/endpoints/get-featured.d.ts.map +1 -0
- package/dist/store/endpoints/get-product.d.ts +17 -0
- package/dist/store/endpoints/get-product.d.ts.map +1 -0
- package/dist/store/endpoints/get-related.d.ts +11 -0
- package/dist/store/endpoints/get-related.d.ts.map +1 -0
- package/dist/store/endpoints/index.d.ts +129 -0
- package/dist/store/endpoints/index.d.ts.map +1 -0
- package/dist/store/endpoints/list-categories.d.ts +6 -0
- package/dist/store/endpoints/list-categories.d.ts.map +1 -0
- package/dist/store/endpoints/list-collections.d.ts +10 -0
- package/dist/store/endpoints/list-collections.d.ts.map +1 -0
- package/dist/store/endpoints/list-products.d.ts +26 -0
- package/dist/store/endpoints/list-products.d.ts.map +1 -0
- package/dist/store/endpoints/search-products.d.ts +11 -0
- package/dist/store/endpoints/search-products.d.ts.map +1 -0
- package/dist/store/endpoints/store-search.d.ts +18 -0
- package/dist/store/endpoints/store-search.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/endpoint-security.test.ts +457 -0
- package/src/__tests__/service-impl.test.ts +1745 -0
- package/src/admin/endpoints/create-category.ts +5 -2
- package/src/admin/endpoints/create-collection.ts +1 -1
- package/src/admin/endpoints/create-product.ts +5 -2
- package/src/admin/endpoints/delete-category.ts +1 -1
- package/src/admin/endpoints/delete-collection.ts +1 -1
- package/src/admin/endpoints/delete-product.ts +1 -1
- package/src/admin/endpoints/delete-variant.ts +1 -1
- package/src/admin/endpoints/list-categories.ts +1 -1
- package/src/admin/endpoints/list-collections.ts +1 -1
- package/src/admin/endpoints/list-products.ts +1 -1
- package/src/admin/endpoints/remove-collection-product.ts +1 -1
- package/src/admin/endpoints/update-category.ts +5 -2
- package/src/admin/endpoints/update-collection.ts +1 -1
- package/src/admin/endpoints/update-product.ts +5 -2
- package/src/admin/endpoints/update-variant.ts +1 -1
- package/src/service-impl.ts +1139 -0
- package/src/service.ts +312 -0
- package/src/store/components/_hooks.ts +81 -0
- package/src/store/components/_utils.ts +8 -0
- package/src/store/components/collection-detail.tsx +21 -1
- package/src/store/components/collection-grid.tsx +5 -1
- package/src/store/components/featured-products.tsx +5 -1
- package/src/store/components/index.tsx +2 -0
- package/src/store/components/product-card.mdx +1 -1
- package/src/store/components/product-card.tsx +25 -5
- package/src/store/components/product-detail.mdx +2 -0
- package/src/store/components/product-detail.tsx +55 -8
- package/src/store/components/product-listing.tsx +25 -4
- package/src/store/components/product-qa-section.mdx +21 -0
- package/src/store/components/product-qa-section.tsx +503 -0
- package/src/store/components/recommended-products.mdx +6 -0
- package/src/store/components/recommended-products.tsx +119 -0
- package/src/store/endpoints/get-category.ts +2 -2
- package/src/store/endpoints/get-collection.ts +1 -1
- package/src/store/endpoints/get-featured.ts +1 -1
- package/src/store/endpoints/get-product.ts +1 -1
- package/src/store/endpoints/get-related.ts +2 -2
- package/src/store/endpoints/list-collections.ts +3 -3
- package/src/store/endpoints/list-products.ts +9 -9
- package/src/store/endpoints/search-products.ts +4 -6
- package/src/store/endpoints/store-search.ts +1 -1
- package/COMPONENTS.md +0 -231
package/dist/state.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type SortField = "name" | "price" | "createdAt";
|
|
2
|
+
export type SortOrder = "asc" | "desc";
|
|
3
|
+
export type ViewMode = "grid" | "list";
|
|
4
|
+
/**
|
|
5
|
+
* Products UI state — shared across components via MobX.
|
|
6
|
+
* Persists active filters, sort order, and view mode across navigations.
|
|
7
|
+
*/
|
|
8
|
+
export declare const productsState: {
|
|
9
|
+
/** Active category filter (empty = all categories) */
|
|
10
|
+
activeCategory: string;
|
|
11
|
+
/** Search query */
|
|
12
|
+
searchQuery: string;
|
|
13
|
+
/** Sort field */
|
|
14
|
+
sortField: SortField;
|
|
15
|
+
/** Sort direction */
|
|
16
|
+
sortOrder: SortOrder;
|
|
17
|
+
/** Grid vs list view */
|
|
18
|
+
viewMode: ViewMode;
|
|
19
|
+
/** Price range filter (in display dollars, not cents) */
|
|
20
|
+
minPrice: string;
|
|
21
|
+
maxPrice: string;
|
|
22
|
+
/** Stock filter */
|
|
23
|
+
inStockOnly: boolean;
|
|
24
|
+
/** Tag filter */
|
|
25
|
+
activeTag: string;
|
|
26
|
+
setCategory(category: string): void;
|
|
27
|
+
setSearchQuery(query: string): void;
|
|
28
|
+
setSortField(field: SortField): void;
|
|
29
|
+
setSortOrder(order: SortOrder): void;
|
|
30
|
+
setViewMode(mode: ViewMode): void;
|
|
31
|
+
setPriceRange(min: string, max: string): void;
|
|
32
|
+
setInStockOnly(v: boolean): void;
|
|
33
|
+
setActiveTag(tag: string): void;
|
|
34
|
+
clearFilters(): void;
|
|
35
|
+
readonly hasActiveFilters: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type ProductsState = typeof productsState;
|
|
38
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,aAAa;IACzB,sDAAsD;;IAEtD,mBAAmB;;IAEnB,iBAAiB;eACS,SAAS;IACnC,qBAAqB;eACA,SAAS;IAC9B,wBAAwB;cACJ,QAAQ;IAC5B,yDAAyD;;;IAGzD,mBAAmB;;IAEnB,iBAAiB;;0BAGK,MAAM;0BAIN,MAAM;wBAIR,SAAS;wBAIT,SAAS;sBAIX,QAAQ;uBAIP,MAAM,OAAO,MAAM;sBAKpB,OAAO;sBAIP,MAAM;;+BAaA,OAAO;CAU9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
type RawCartItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
productId: string;
|
|
4
|
+
variantId?: string | null;
|
|
5
|
+
quantity: number;
|
|
6
|
+
price: number;
|
|
7
|
+
productName: string;
|
|
8
|
+
productSlug: string;
|
|
9
|
+
productImage?: string | null;
|
|
10
|
+
variantName?: string | null;
|
|
11
|
+
variantOptions?: Record<string, string> | null;
|
|
12
|
+
};
|
|
13
|
+
type AddToCartResponse = {
|
|
14
|
+
cart: {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
items: RawCartItem[];
|
|
18
|
+
itemCount: number;
|
|
19
|
+
subtotal: number;
|
|
20
|
+
};
|
|
21
|
+
export declare function normalizeCartQueryData(data: AddToCartResponse): {
|
|
22
|
+
id: string;
|
|
23
|
+
items: {
|
|
24
|
+
id: string;
|
|
25
|
+
productId: string;
|
|
26
|
+
variantId: string | null;
|
|
27
|
+
quantity: number;
|
|
28
|
+
price: number;
|
|
29
|
+
product: {
|
|
30
|
+
name: string;
|
|
31
|
+
price: number;
|
|
32
|
+
images: string[];
|
|
33
|
+
slug: string;
|
|
34
|
+
};
|
|
35
|
+
variant: {
|
|
36
|
+
name: string;
|
|
37
|
+
options: Record<string, string>;
|
|
38
|
+
} | null;
|
|
39
|
+
}[];
|
|
40
|
+
itemCount: number;
|
|
41
|
+
subtotal: number;
|
|
42
|
+
};
|
|
43
|
+
export declare function useProductsApi(): {
|
|
44
|
+
listProducts: import("@86d-app/core/client").AnyEndpointHook;
|
|
45
|
+
getFeaturedProducts: import("@86d-app/core/client").AnyEndpointHook;
|
|
46
|
+
getProduct: import("@86d-app/core/client").AnyEndpointHook;
|
|
47
|
+
getRelatedProducts: import("@86d-app/core/client").AnyEndpointHook;
|
|
48
|
+
listCategories: import("@86d-app/core/client").AnyEndpointHook;
|
|
49
|
+
};
|
|
50
|
+
export declare function useCartMutation(): {
|
|
51
|
+
addToCart: import("@86d-app/core/client").AnyEndpointHook;
|
|
52
|
+
getCart: import("@86d-app/core/client").AnyEndpointHook;
|
|
53
|
+
queryClient: import("@tanstack/react-query").QueryClient;
|
|
54
|
+
};
|
|
55
|
+
export declare function useReviewsApi(): {
|
|
56
|
+
listProductReviews: import("@86d-app/core/client").AnyEndpointHook;
|
|
57
|
+
submitReview: import("@86d-app/core/client").AnyEndpointHook;
|
|
58
|
+
};
|
|
59
|
+
export declare function useInventoryApi(): {
|
|
60
|
+
checkStock: import("@86d-app/core/client").AnyEndpointHook;
|
|
61
|
+
subscribeBackInStock: import("@86d-app/core/client").AnyEndpointHook;
|
|
62
|
+
checkBackInStock: import("@86d-app/core/client").AnyEndpointHook;
|
|
63
|
+
unsubscribeBackInStock: import("@86d-app/core/client").AnyEndpointHook;
|
|
64
|
+
};
|
|
65
|
+
export declare function useAnalyticsApi(): {
|
|
66
|
+
recentlyViewed: import("@86d-app/core/client").AnyEndpointHook;
|
|
67
|
+
};
|
|
68
|
+
export declare function useProductQaApi(): {
|
|
69
|
+
listProductQuestions: import("@86d-app/core/client").AnyEndpointHook;
|
|
70
|
+
productQaSummary: import("@86d-app/core/client").AnyEndpointHook;
|
|
71
|
+
submitQuestion: import("@86d-app/core/client").AnyEndpointHook;
|
|
72
|
+
listAnswers: import("@86d-app/core/client").AnyEndpointHook;
|
|
73
|
+
upvoteQuestion: import("@86d-app/core/client").AnyEndpointHook;
|
|
74
|
+
upvoteAnswer: import("@86d-app/core/client").AnyEndpointHook;
|
|
75
|
+
};
|
|
76
|
+
export declare function useRecommendationsApi(): {
|
|
77
|
+
getForProduct: import("@86d-app/core/client").AnyEndpointHook;
|
|
78
|
+
getTrending: import("@86d-app/core/client").AnyEndpointHook;
|
|
79
|
+
};
|
|
80
|
+
/** Fire-and-forget analytics event via the analytics module endpoint. */
|
|
81
|
+
export declare function useTrack(): (params: {
|
|
82
|
+
type: string;
|
|
83
|
+
productId?: string;
|
|
84
|
+
value?: number;
|
|
85
|
+
data?: Record<string, unknown>;
|
|
86
|
+
}) => void;
|
|
87
|
+
export {};
|
|
88
|
+
//# sourceMappingURL=_hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_hooks.d.ts","sourceRoot":"","sources":["../../../src/store/components/_hooks.ts"],"names":[],"mappings":"AAKA,KAAK,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC/C,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAyB7D;AAED,wBAAgB,cAAc;;;;;;EAU7B;AAED,wBAAgB,eAAe;;;;EAO9B;AAED,wBAAgB,aAAa;;;EAO5B;AAED,wBAAgB,eAAe;;;;;EAW9B;AAED,wBAAgB,eAAe;;EAM9B;AAED,wBAAgB,eAAe;;;;;;;EAqB9B;AAED,wBAAgB,qBAAqB;;;EAQpC;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,aAOb;IACR,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B,UASF"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface Product {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
price: number;
|
|
6
|
+
compareAtPrice?: number | null;
|
|
7
|
+
shortDescription?: string | null;
|
|
8
|
+
description?: string | null;
|
|
9
|
+
images: string[];
|
|
10
|
+
isFeatured: boolean;
|
|
11
|
+
status: string;
|
|
12
|
+
inventory: number;
|
|
13
|
+
categoryId?: string | null;
|
|
14
|
+
tags: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface ProductVariant {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
price: number;
|
|
20
|
+
compareAtPrice?: number | null;
|
|
21
|
+
inventory: number;
|
|
22
|
+
options: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
export interface ProductWithVariants extends Product {
|
|
25
|
+
variants: ProductVariant[];
|
|
26
|
+
category?: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
} | null;
|
|
31
|
+
}
|
|
32
|
+
export interface Category {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
slug: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ListResult {
|
|
38
|
+
products: Product[];
|
|
39
|
+
total: number;
|
|
40
|
+
page: number;
|
|
41
|
+
limit: number;
|
|
42
|
+
}
|
|
43
|
+
export interface CollectionCardData {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
slug: string;
|
|
47
|
+
description?: string | null;
|
|
48
|
+
image?: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface Review {
|
|
51
|
+
id: string;
|
|
52
|
+
authorName: string;
|
|
53
|
+
rating: number;
|
|
54
|
+
title?: string | undefined;
|
|
55
|
+
body: string;
|
|
56
|
+
isVerifiedPurchase: boolean;
|
|
57
|
+
helpfulCount: number;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
}
|
|
60
|
+
export interface RatingSummary {
|
|
61
|
+
average: number;
|
|
62
|
+
count: number;
|
|
63
|
+
distribution: Record<string, number>;
|
|
64
|
+
}
|
|
65
|
+
export interface ReviewsResponse {
|
|
66
|
+
reviews: Review[];
|
|
67
|
+
summary: RatingSummary;
|
|
68
|
+
total: number;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=_types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../src/store/components/_types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,mBAAoB,SAAQ,OAAO;IACnD,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAC7D;AAED,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,UAAU;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,MAAM;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,OAAO,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Extract a URL string from an image entry (handles both string and {url,alt} formats). */
|
|
2
|
+
export declare function imageUrl(img: unknown): string;
|
|
3
|
+
export declare function formatPrice(cents: number): string;
|
|
4
|
+
export declare function formatDate(iso: string): string;
|
|
5
|
+
//# sourceMappingURL=_utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../src/store/components/_utils.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAK7C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKjD;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM9C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface BackInStockNotifyProps {
|
|
2
|
+
productId: string;
|
|
3
|
+
variantId?: string | undefined;
|
|
4
|
+
productName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function BackInStockNotify({ productId, variantId, productName, }: BackInStockNotifyProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=back-in-stock-notify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"back-in-stock-notify.d.ts","sourceRoot":"","sources":["../../../src/store/components/back-in-stock-notify.tsx"],"names":[],"mappings":"AAKA,UAAU,sBAAsB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EACjC,SAAS,EACT,SAAS,EACT,WAAW,GACX,EAAE,sBAAsB,+BAiFxB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CollectionCardData } from "./_types";
|
|
2
|
+
export interface CollectionCardProps {
|
|
3
|
+
collection: CollectionCardData;
|
|
4
|
+
}
|
|
5
|
+
export declare function CollectionCard({ collection }: CollectionCardProps): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=collection-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-card.d.ts","sourceRoot":"","sources":["../../../src/store/components/collection-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,MAAM,WAAW,mBAAmB;IACnC,UAAU,EAAE,kBAAkB,CAAC;CAC/B;AAED,wBAAgB,cAAc,CAAC,EAAE,UAAU,EAAE,EAAE,mBAAmB,+BAEjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-detail.d.ts","sourceRoot":"","sources":["../../../src/store/components/collection-detail.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,qBAAqB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BA4J5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-grid.d.ts","sourceRoot":"","sources":["../../../src/store/components/collection-grid.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,cAAc,CAAC,EAC9B,KAAqB,EACrB,QAAQ,GACR,EAAE,mBAAmB,sCAoErB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-products.d.ts","sourceRoot":"","sources":["../../../src/store/components/featured-products.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAS,EACT,KAA2B,GAC3B,EAAE,qBAAqB,sCAgEvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-chip.d.ts","sourceRoot":"","sources":["../../../src/store/components/filter-chip.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,eAAe,+BAE9D"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CollectionCardData, Product } from "./_types";
|
|
2
|
+
import { CollectionDetail } from "./collection-detail";
|
|
3
|
+
import { CollectionGrid } from "./collection-grid";
|
|
4
|
+
import { FeaturedProducts } from "./featured-products";
|
|
5
|
+
import { FilterChip } from "./filter-chip";
|
|
6
|
+
import { ProductDetail } from "./product-detail";
|
|
7
|
+
import { ProductListing } from "./product-listing";
|
|
8
|
+
import { ProductReviewsSection } from "./product-reviews-section";
|
|
9
|
+
import { RecentlyViewedProducts } from "./recently-viewed";
|
|
10
|
+
import { RecommendedProducts } from "./recommended-products";
|
|
11
|
+
import { RelatedProducts } from "./related-products";
|
|
12
|
+
import { StarDisplay } from "./star-display";
|
|
13
|
+
import { StarPicker } from "./star-picker";
|
|
14
|
+
import { StockBadge } from "./stock-badge";
|
|
15
|
+
declare const _default: {
|
|
16
|
+
ProductCard: ({ product }: {
|
|
17
|
+
product: Product;
|
|
18
|
+
}) => import("react").JSX.Element;
|
|
19
|
+
FeaturedProducts: typeof FeaturedProducts;
|
|
20
|
+
ProductListing: typeof ProductListing;
|
|
21
|
+
ProductDetail: typeof ProductDetail;
|
|
22
|
+
RelatedProducts: typeof RelatedProducts;
|
|
23
|
+
CollectionCard: ({ collection }: {
|
|
24
|
+
collection: CollectionCardData;
|
|
25
|
+
}) => import("react").JSX.Element;
|
|
26
|
+
CollectionGrid: typeof CollectionGrid;
|
|
27
|
+
CollectionDetail: typeof CollectionDetail;
|
|
28
|
+
FilterChip: typeof FilterChip;
|
|
29
|
+
StarDisplay: typeof StarDisplay;
|
|
30
|
+
StarPicker: typeof StarPicker;
|
|
31
|
+
StockBadge: typeof StockBadge;
|
|
32
|
+
ProductReviewsSection: typeof ProductReviewsSection;
|
|
33
|
+
RecentlyViewedProducts: typeof RecentlyViewedProducts;
|
|
34
|
+
RecommendedProducts: typeof RecommendedProducts;
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/components/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;+BAGf;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE;;;;;qCAOd;QAAE,UAAU,EAAE,kBAAkB,CAAA;KAAE;;;;;;;;;;;AARpE,wBAoB0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-card.d.ts","sourceRoot":"","sources":["../../../src/store/components/product-card.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,wDA4EtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-detail.d.ts","sourceRoot":"","sources":["../../../src/store/components/product-detail.tsx"],"names":[],"mappings":"AA2BA,MAAM,WAAW,kBAAkB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAsftD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ProductListingProps {
|
|
2
|
+
initialCategory?: string;
|
|
3
|
+
initialSearch?: string;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function ProductListing({ initialCategory, initialSearch, pageSize, }: ProductListingProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=product-listing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-listing.d.ts","sourceRoot":"","sources":["../../../src/store/components/product-listing.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,mBAAmB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAC9B,eAAoB,EACpB,aAAkB,EAClB,QAAa,GACb,EAAE,mBAAmB,+BAwarB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-qa-section.d.ts","sourceRoot":"","sources":["../../../src/store/components/product-qa-section.tsx"],"names":[],"mappings":"AAqDA,MAAM,WAAW,qBAAqB;IACrC,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE,qBAAqB,+BA8PpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-reviews-section.d.ts","sourceRoot":"","sources":["../../../src/store/components/product-reviews-section.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,0BAA0B;IAC1C,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,qBAAqB,CAAC,EACrC,SAAS,GACT,EAAE,0BAA0B,+BAiW5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface RecentlyViewedProductsProps {
|
|
2
|
+
/** Current product ID to exclude from the list. */
|
|
3
|
+
excludeProductId?: string;
|
|
4
|
+
/** Maximum items to show (default: 6). */
|
|
5
|
+
limit?: number;
|
|
6
|
+
/** Section title (default: "Recently viewed"). */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Analytics session ID for anonymous visitors. */
|
|
9
|
+
sessionId?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function RecentlyViewedProducts({ excludeProductId, limit, title, sessionId, }: RecentlyViewedProductsProps): import("react").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=recently-viewed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recently-viewed.d.ts","sourceRoot":"","sources":["../../../src/store/components/recently-viewed.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,2BAA2B;IAC3C,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,sBAAsB,CAAC,EACtC,gBAAgB,EAChB,KAAS,EACT,KAAyB,EACzB,SAAS,GACT,EAAE,2BAA2B,sCAqE7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface RecommendedProductsProps {
|
|
2
|
+
productId: string;
|
|
3
|
+
limit?: number;
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function RecommendedProducts({ productId, limit, title, }: RecommendedProductsProps): import("react").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=recommended-products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommended-products.d.ts","sourceRoot":"","sources":["../../../src/store/components/recommended-products.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,wBAAwB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,mBAAmB,CAAC,EACnC,SAAS,EACT,KAAS,EACT,KAA6B,GAC7B,EAAE,wBAAwB,sCA4F1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface RelatedProductsProps {
|
|
2
|
+
productId: string;
|
|
3
|
+
limit?: number;
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function RelatedProducts({ productId, limit, title, }: RelatedProductsProps): import("react").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=related-products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"related-products.d.ts","sourceRoot":"","sources":["../../../src/store/components/related-products.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,eAAe,CAAC,EAC/B,SAAS,EACT,KAAS,EACT,KAA6B,GAC7B,EAAE,oBAAoB,sCA6CtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"star-display.d.ts","sourceRoot":"","sources":["../../../src/store/components/star-display.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1B;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAW,EAAE,EAAE,gBAAgB,+BAiBpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"star-picker.d.ts","sourceRoot":"","sources":["../../../src/store/components/star-picker.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,eAAe,+BAU9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stock-badge.d.ts","sourceRoot":"","sources":["../../../src/store/components/stock-badge.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC/B,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,eAAe,+BAUxD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "@86d-app/core";
|
|
2
|
+
import type { Category } from "../../controllers";
|
|
3
|
+
export declare const getCategory: import("better-call").StrictEndpoint<"/categories/:id", {
|
|
4
|
+
method: "GET";
|
|
5
|
+
params: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
includeProducts: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, {
|
|
12
|
+
error: string;
|
|
13
|
+
status: number;
|
|
14
|
+
category?: never;
|
|
15
|
+
products?: never;
|
|
16
|
+
} | {
|
|
17
|
+
category: Category;
|
|
18
|
+
products: unknown[] | undefined;
|
|
19
|
+
error?: never;
|
|
20
|
+
status?: never;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=get-category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-category.d.ts","sourceRoot":"","sources":["../../../src/store/endpoints/get-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAW,MAAM,mBAAmB,CAAC;AAE3D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;EAyDvB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "@86d-app/core";
|
|
2
|
+
import type { CollectionWithProducts } from "../../controllers";
|
|
3
|
+
export declare const getCollection: import("better-call").StrictEndpoint<"/collections/:id", {
|
|
4
|
+
method: "GET";
|
|
5
|
+
params: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
status: number;
|
|
11
|
+
collection?: never;
|
|
12
|
+
} | {
|
|
13
|
+
collection: CollectionWithProducts;
|
|
14
|
+
error?: never;
|
|
15
|
+
status?: never;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=get-collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-collection.d.ts","sourceRoot":"","sources":["../../../src/store/endpoints/get-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAc,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,eAAO,MAAM,aAAa;;;;;;;;;;;;;EA0CzB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "@86d-app/core";
|
|
2
|
+
export declare const getFeaturedProducts: import("better-call").StrictEndpoint<"/products/featured", {
|
|
3
|
+
method: "GET";
|
|
4
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>>;
|
|
7
|
+
}, {
|
|
8
|
+
products: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=get-featured.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-featured.d.ts","sourceRoot":"","sources":["../../../src/store/endpoints/get-featured.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,mBAAmB;;;;;;;EAe/B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "@86d-app/core";
|
|
2
|
+
import type { ProductWithVariants } from "../../controllers";
|
|
3
|
+
export declare const getProduct: import("better-call").StrictEndpoint<"/products/:id", {
|
|
4
|
+
method: "GET";
|
|
5
|
+
params: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
status: number;
|
|
11
|
+
product?: never;
|
|
12
|
+
} | {
|
|
13
|
+
product: ProductWithVariants;
|
|
14
|
+
error?: never;
|
|
15
|
+
status?: never;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=get-product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-product.d.ts","sourceRoot":"","sources":["../../../src/store/endpoints/get-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAW,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEtE,eAAO,MAAM,UAAU;;;;;;;;;;;;;EAgDtB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "@86d-app/core";
|
|
2
|
+
export declare const getRelatedProducts: import("better-call").StrictEndpoint<"/products/:id/related", {
|
|
3
|
+
method: "GET";
|
|
4
|
+
params: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
//# sourceMappingURL=get-related.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-related.d.ts","sourceRoot":"","sources":["../../../src/store/endpoints/get-related.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,kBAAkB;;;;;;;;WAiB9B,CAAC"}
|