@ecomiq/storefront 0.1.0 → 0.1.2
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/README.md +183 -78
- package/dist/..d.ts +30 -0
- package/dist/{store-CYBCpY6v.d.ts → collection-anMkdWa7.d.ts} +2667 -2667
- package/dist/core.d.ts +47 -51
- package/dist/core.js +324 -212
- package/dist/core.js.map +1 -1
- package/dist/find-storefront-cms-page-DNwLo1iV.d.ts +178 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +103 -0
- package/dist/index.js.map +1 -0
- package/dist/nextjs/globals.css +3 -4
- package/dist/nextjs.d.ts +59 -54
- package/dist/nextjs.js +871 -1483
- package/dist/nextjs.js.map +1 -1
- package/dist/react.d.ts +50 -130
- package/dist/react.js +1019 -1548
- package/dist/react.js.map +1 -1
- package/package.json +5 -1
- package/dist/find-storefront-cms-page-Bo0-G1FK.d.ts +0 -119
package/dist/react.d.ts
CHANGED
|
@@ -1,106 +1,28 @@
|
|
|
1
1
|
import { GeoItem } from './core.js';
|
|
2
|
-
export { CartAddressesRequest, CartAddressesRequestSchema, CartBuyerRequest, CartBuyerRequestSchema, CartCheckoutPayment, CartCheckoutPaymentAction, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutRequest, CartCheckoutRequestSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartCouponRequest, CartCouponRequestSchema, CartCreateRequest, CartCreateRequestSchema, CartItemModifierRequest, CartItemModifierRequestSchema, CartItemRequest, CartItemRequestSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentMethodsResponse, CartPaymentMethodsResponseSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartResponse, CartResponseBundleItemSchema, CartResponseItemSchema, CartResponseSchema, CartShippingMethodPutRequest, CartShippingMethodPutRequestSchema, CustomerAddressUpsertInput, CustomerOrderDetail, CustomerOrderLineItem, CustomerOrderListItem, CustomerOrderShippingAddress, CustomerProfile, CustomerProfilePatch, CustomerSavedAddress, STOREFRONT_API_PATH_PREFIX, STOREFRONT_ECOMIQ_OAUTH_COOKIE_NAME, STOREFRONT_ECOMIQ_OAUTH_COOKIE_PATH, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StoreTheme, StorefrontPageBlock, StorefrontPageDetail, StorefrontPageDetailSchema, StorefrontPageListItem, StorefrontPageListItemSchema, StorefrontPageSection,
|
|
3
|
-
import { P as ProductsFilters,
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
import
|
|
2
|
+
export { CartAddressesRequest, CartAddressesRequestSchema, CartBuyerRequest, CartBuyerRequestSchema, CartCheckoutPayment, CartCheckoutPaymentAction, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutRequest, CartCheckoutRequestSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartCouponRequest, CartCouponRequestSchema, CartCreateRequest, CartCreateRequestSchema, CartItemModifierRequest, CartItemModifierRequestSchema, CartItemRequest, CartItemRequestSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentMethodsResponse, CartPaymentMethodsResponseSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartResponse, CartResponseBundleItemSchema, CartResponseItemSchema, CartResponseSchema, CartShippingMethodPutRequest, CartShippingMethodPutRequestSchema, CustomerAddressUpsertInput, CustomerOrderDetail, CustomerOrderLineItem, CustomerOrderListItem, CustomerOrderShippingAddress, CustomerProfile, CustomerProfilePatch, CustomerSavedAddress, EcomiqOAuthIdentityHeaders, STOREFRONT_API_PATH_PREFIX, STOREFRONT_ECOMIQ_OAUTH_COOKIE_NAME, STOREFRONT_ECOMIQ_OAUTH_COOKIE_PATH, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StoreTheme, StorefrontPageBlock, StorefrontPageDetail, StorefrontPageDetailSchema, StorefrontPageListItem, StorefrontPageListItemSchema, StorefrontPageSection, apiClient, buildEcomiqOAuthIdentityHeaders, cartService, collectionService, countryCurrency, customerOrderStatusTone, fetchStorefrontGeoDistricts, fetchStorefrontGeoProvinces, formatCurrency, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, loadStorefrontGeoDepartments, pageService, productService, resolveIneiCodesFromLabels, storeService, toGeoItems } from './core.js';
|
|
3
|
+
import { P as ProductsFilters, a as StorefrontProductsParamsInput } from './collection-anMkdWa7.js';
|
|
4
|
+
export { b as Product, t as ProductSchema, c as ProductVariant, u as ProductVariantSchema, w as ProductsFiltersSchema, d as ProductsResponse, v as ProductsResponseSchema, l as StorefrontBundleItem, C as StorefrontBundleItemSchema, I as StorefrontCheckoutSettingsSchema, r as StorefrontCmsPage, q as StorefrontCmsSettings, m as StorefrontCollection, o as StorefrontCollectionDetail, F as StorefrontCollectionDetailSchema, D as StorefrontCollectionSchema, n as StorefrontCollectionsResponse, E as StorefrontCollectionsResponseSchema, k as StorefrontPriceTier, B as StorefrontPriceTierSchema, e as StorefrontProduct, g as StorefrontProductDetail, A as StorefrontProductDetailSchema, j as StorefrontProductImage, x as StorefrontProductSchema, z as StorefrontProductsParamsSchema, f as StorefrontProductsResponse, y as StorefrontProductsResponseSchema, S as StorefrontSettings, s as StorefrontSettingsLegacyFlat, J as StorefrontSettingsLegacyFlatSchema, G as StorefrontSettingsSchema, p as StorefrontStore, H as StorefrontStoreSchema, h as StorefrontVariant, i as StorefrontVariantOption, N as normalizeStorefrontSettingsPayload, L as storefrontFaviconUrl, M as storefrontOgImageUrl, K as storefrontStoreRecord } from './collection-anMkdWa7.js';
|
|
5
|
+
export { EcomiqConfig, EcomiqConfigSchema, clearEcomiqConfigCache, hasEcomiqSlugStoreConfig, loadEcomiqConfig, resolvePublicStoreKey } from './index.js';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
7
8
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
8
9
|
import { DehydratedState } from '@tanstack/react-query';
|
|
9
|
-
|
|
10
|
-
import { createAuthClient } from 'better-auth/react';
|
|
11
|
-
import * as better_auth from 'better-auth';
|
|
12
|
-
import { BetterAuthPlugin } from 'better-auth';
|
|
10
|
+
export { E as EcomiqProvider, e as EcomiqProviderProps, g as EcomiqSignInCredentials, O as OptionGroup, P as ProductVariantSelector, j as ProductVariantSelectorProps, l as ProductVariantSelectorRenderProps, k as SelectedOptions, c as StorefrontAuthClientInstance, S as StorefrontAuthProvider, d as StorefrontSessionUser, h as findStorefrontCmsPageBySlug, f as signInWithEcomiqCredentials, s as storefrontAccessTokenNeedsRefresh, a as storefrontSessionEndsSoon, i as useStore, u as useStorefrontAuthClient, b as useStorefrontSession } from './find-storefront-cms-page-DNwLo1iV.js';
|
|
13
11
|
import * as zod from 'zod';
|
|
14
12
|
import { UseFormReturn } from 'react-hook-form';
|
|
15
|
-
import { C as CmsSectionsRendererProps } from './find-storefront-cms-page-Bo0-G1FK.js';
|
|
16
|
-
export { b as CmsLinkProps, d as CmsProduct, e as CmsRenderBlock, h as CmsRenderSection, i as CmsRenderSettings, j as CmsSectionData, D as DEFAULT_CMS_IMAGE_URL, O as OptionGroup, P as ProductVariantSelector, k as ProductVariantSelectorProps, m as ProductVariantSelectorRenderProps, S as SafeThemeInjector, l as SelectedOptions, c as canonicalSectionType, f as findStorefrontCmsPageBySlug, g as getCmsSectionKey, p as productSortValue, s as sanitizeHtml, a as storefrontHref, u as useStore } from './find-storefront-cms-page-Bo0-G1FK.js';
|
|
17
13
|
import * as zustand_middleware from 'zustand/middleware';
|
|
18
14
|
import * as zustand from 'zustand';
|
|
15
|
+
import { BetterAuthPlugin } from 'better-auth';
|
|
19
16
|
import { BetterAuthClientPlugin } from 'better-auth/client';
|
|
20
17
|
import 'axios';
|
|
18
|
+
import 'better-auth/react';
|
|
21
19
|
import '@ecomiq/storefront/react';
|
|
22
20
|
|
|
23
21
|
interface QueryProviderProps {
|
|
24
22
|
children: ReactNode;
|
|
25
23
|
dehydratedState?: DehydratedState;
|
|
26
24
|
}
|
|
27
|
-
declare function QueryProvider({ children, dehydratedState }: QueryProviderProps):
|
|
28
|
-
|
|
29
|
-
/** Instancia de `createAuthClient` (better-auth/react) con los plugins de la app. */
|
|
30
|
-
type StorefrontAuthClientInstance = ReturnType<typeof createAuthClient>;
|
|
31
|
-
declare function StorefrontAuthProvider({ authClient, children, }: {
|
|
32
|
-
authClient: StorefrontAuthClientInstance;
|
|
33
|
-
children: react__default.ReactNode;
|
|
34
|
-
}): react__default.JSX.Element;
|
|
35
|
-
declare function useStorefrontAuthClient(): StorefrontAuthClientInstance;
|
|
36
|
-
type StorefrontSessionUser = {
|
|
37
|
-
id: string;
|
|
38
|
-
email: string;
|
|
39
|
-
firstName: string;
|
|
40
|
-
lastName: string;
|
|
41
|
-
name?: string;
|
|
42
|
-
phone?: string;
|
|
43
|
-
};
|
|
44
|
-
/** Caducidad alineada con OAuth/`expires_in` (skew en ms). El bearer ya no viene en JSON de sesión. */
|
|
45
|
-
declare function storefrontSessionEndsSoon(expiresAt: Date | undefined, skewMs?: number): boolean;
|
|
46
|
-
/** @deprecated Usar `storefrontSessionEndsSoon` */
|
|
47
|
-
declare const storefrontAccessTokenNeedsRefresh: typeof storefrontSessionEndsSoon;
|
|
48
|
-
/**
|
|
49
|
-
* Sesión Better Auth + usuario mapeado para UI (headers, drawer).
|
|
50
|
-
*/
|
|
51
|
-
declare function useStorefrontSession(): {
|
|
52
|
-
session: {
|
|
53
|
-
data: {
|
|
54
|
-
user: better_auth.StripEmptyObjects<{
|
|
55
|
-
id: string;
|
|
56
|
-
createdAt: Date;
|
|
57
|
-
updatedAt: Date;
|
|
58
|
-
email: string;
|
|
59
|
-
emailVerified: boolean;
|
|
60
|
-
name: string;
|
|
61
|
-
image?: string | null | undefined;
|
|
62
|
-
}>;
|
|
63
|
-
session: better_auth.StripEmptyObjects<{
|
|
64
|
-
id: string;
|
|
65
|
-
createdAt: Date;
|
|
66
|
-
updatedAt: Date;
|
|
67
|
-
userId: string;
|
|
68
|
-
expiresAt: Date;
|
|
69
|
-
token: string;
|
|
70
|
-
ipAddress?: string | null | undefined;
|
|
71
|
-
userAgent?: string | null | undefined;
|
|
72
|
-
}>;
|
|
73
|
-
} | null;
|
|
74
|
-
isPending: boolean;
|
|
75
|
-
isRefetching: boolean;
|
|
76
|
-
error: better_auth_react.BetterFetchError | null;
|
|
77
|
-
refetch: (queryParams?: {
|
|
78
|
-
query?: better_auth.SessionQueryParams;
|
|
79
|
-
} | undefined) => Promise<void>;
|
|
80
|
-
};
|
|
81
|
-
user: StorefrontSessionUser | null;
|
|
82
|
-
sessionExpiresAt: Date | undefined;
|
|
83
|
-
isAuthenticated: boolean;
|
|
84
|
-
isPending: boolean;
|
|
85
|
-
error: better_auth_react.BetterFetchError | null;
|
|
86
|
-
refetch: (queryParams?: {
|
|
87
|
-
query?: better_auth.SessionQueryParams;
|
|
88
|
-
} | undefined) => Promise<void>;
|
|
89
|
-
signOut: () => Promise<{
|
|
90
|
-
data: {
|
|
91
|
-
success: boolean;
|
|
92
|
-
};
|
|
93
|
-
error: null;
|
|
94
|
-
} | {
|
|
95
|
-
data: null;
|
|
96
|
-
error: {
|
|
97
|
-
code?: string | undefined | undefined;
|
|
98
|
-
message?: string | undefined | undefined;
|
|
99
|
-
status: number;
|
|
100
|
-
statusText: string;
|
|
101
|
-
};
|
|
102
|
-
}>;
|
|
103
|
-
};
|
|
25
|
+
declare function QueryProvider({ children, dehydratedState }: QueryProviderProps): React.JSX.Element;
|
|
104
26
|
|
|
105
27
|
declare function useUser(): {};
|
|
106
28
|
|
|
@@ -109,8 +31,8 @@ declare function useConfig(): {};
|
|
|
109
31
|
declare const useProducts: (storeId?: string) => {
|
|
110
32
|
useProductsList: (filters?: ProductsFilters) => _tanstack_react_query.UseQueryResult<{
|
|
111
33
|
items: {
|
|
112
|
-
id: string;
|
|
113
34
|
name: string;
|
|
35
|
+
id: string;
|
|
114
36
|
slug: string;
|
|
115
37
|
images: {
|
|
116
38
|
url: string;
|
|
@@ -121,8 +43,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
121
43
|
basePrice?: number | undefined;
|
|
122
44
|
salePrice?: number | undefined;
|
|
123
45
|
categories?: {
|
|
124
|
-
id: string;
|
|
125
46
|
name: string;
|
|
47
|
+
id: string;
|
|
126
48
|
slug: string;
|
|
127
49
|
logo?: string | undefined;
|
|
128
50
|
icon?: string | undefined;
|
|
@@ -130,8 +52,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
130
52
|
tags?: string[] | undefined;
|
|
131
53
|
inStock?: boolean | undefined;
|
|
132
54
|
variants?: {
|
|
133
|
-
id: string;
|
|
134
55
|
name: string;
|
|
56
|
+
id: string;
|
|
135
57
|
storeId: string;
|
|
136
58
|
productId: string;
|
|
137
59
|
weight: number | null;
|
|
@@ -168,8 +90,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
168
90
|
}, Error>;
|
|
169
91
|
useInfiniteProducts: (filters?: Omit<ProductsFilters, "page">) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<{
|
|
170
92
|
items: {
|
|
171
|
-
id: string;
|
|
172
93
|
name: string;
|
|
94
|
+
id: string;
|
|
173
95
|
slug: string;
|
|
174
96
|
images: {
|
|
175
97
|
url: string;
|
|
@@ -180,8 +102,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
180
102
|
basePrice?: number | undefined;
|
|
181
103
|
salePrice?: number | undefined;
|
|
182
104
|
categories?: {
|
|
183
|
-
id: string;
|
|
184
105
|
name: string;
|
|
106
|
+
id: string;
|
|
185
107
|
slug: string;
|
|
186
108
|
logo?: string | undefined;
|
|
187
109
|
icon?: string | undefined;
|
|
@@ -189,8 +111,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
189
111
|
tags?: string[] | undefined;
|
|
190
112
|
inStock?: boolean | undefined;
|
|
191
113
|
variants?: {
|
|
192
|
-
id: string;
|
|
193
114
|
name: string;
|
|
115
|
+
id: string;
|
|
194
116
|
storeId: string;
|
|
195
117
|
productId: string;
|
|
196
118
|
weight: number | null;
|
|
@@ -226,8 +148,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
226
148
|
};
|
|
227
149
|
}, unknown>, Error>;
|
|
228
150
|
useProduct: (id: string) => _tanstack_react_query.UseQueryResult<{
|
|
229
|
-
id: string;
|
|
230
151
|
name: string;
|
|
152
|
+
id: string;
|
|
231
153
|
slug: string;
|
|
232
154
|
images: {
|
|
233
155
|
url: string;
|
|
@@ -238,8 +160,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
238
160
|
basePrice?: number | undefined;
|
|
239
161
|
salePrice?: number | undefined;
|
|
240
162
|
categories?: {
|
|
241
|
-
id: string;
|
|
242
163
|
name: string;
|
|
164
|
+
id: string;
|
|
243
165
|
slug: string;
|
|
244
166
|
logo?: string | undefined;
|
|
245
167
|
icon?: string | undefined;
|
|
@@ -247,8 +169,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
247
169
|
tags?: string[] | undefined;
|
|
248
170
|
inStock?: boolean | undefined;
|
|
249
171
|
variants?: {
|
|
250
|
-
id: string;
|
|
251
172
|
name: string;
|
|
173
|
+
id: string;
|
|
252
174
|
storeId: string;
|
|
253
175
|
productId: string;
|
|
254
176
|
weight: number | null;
|
|
@@ -277,8 +199,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
277
199
|
}[] | undefined;
|
|
278
200
|
}, Error>;
|
|
279
201
|
useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
280
|
-
id: string;
|
|
281
202
|
name: string;
|
|
203
|
+
id: string;
|
|
282
204
|
slug: string;
|
|
283
205
|
images: {
|
|
284
206
|
url: string;
|
|
@@ -289,8 +211,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
289
211
|
basePrice?: number | undefined;
|
|
290
212
|
salePrice?: number | undefined;
|
|
291
213
|
categories?: {
|
|
292
|
-
id: string;
|
|
293
214
|
name: string;
|
|
215
|
+
id: string;
|
|
294
216
|
slug: string;
|
|
295
217
|
logo?: string | undefined;
|
|
296
218
|
icon?: string | undefined;
|
|
@@ -298,8 +220,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
298
220
|
tags?: string[] | undefined;
|
|
299
221
|
inStock?: boolean | undefined;
|
|
300
222
|
variants?: {
|
|
301
|
-
id: string;
|
|
302
223
|
name: string;
|
|
224
|
+
id: string;
|
|
303
225
|
storeId: string;
|
|
304
226
|
productId: string;
|
|
305
227
|
weight: number | null;
|
|
@@ -329,8 +251,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
329
251
|
}, Error>;
|
|
330
252
|
useSearchProducts: (query: string, filters?: Omit<ProductsFilters, "search">) => _tanstack_react_query.UseQueryResult<{
|
|
331
253
|
items: {
|
|
332
|
-
id: string;
|
|
333
254
|
name: string;
|
|
255
|
+
id: string;
|
|
334
256
|
slug: string;
|
|
335
257
|
images: {
|
|
336
258
|
url: string;
|
|
@@ -341,8 +263,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
341
263
|
basePrice?: number | undefined;
|
|
342
264
|
salePrice?: number | undefined;
|
|
343
265
|
categories?: {
|
|
344
|
-
id: string;
|
|
345
266
|
name: string;
|
|
267
|
+
id: string;
|
|
346
268
|
slug: string;
|
|
347
269
|
logo?: string | undefined;
|
|
348
270
|
icon?: string | undefined;
|
|
@@ -350,8 +272,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
350
272
|
tags?: string[] | undefined;
|
|
351
273
|
inStock?: boolean | undefined;
|
|
352
274
|
variants?: {
|
|
353
|
-
id: string;
|
|
354
275
|
name: string;
|
|
276
|
+
id: string;
|
|
355
277
|
storeId: string;
|
|
356
278
|
productId: string;
|
|
357
279
|
weight: number | null;
|
|
@@ -388,8 +310,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
388
310
|
}, Error>;
|
|
389
311
|
useProductsByCategory: (category: string, filters?: Omit<ProductsFilters, "category">) => _tanstack_react_query.UseQueryResult<{
|
|
390
312
|
items: {
|
|
391
|
-
id: string;
|
|
392
313
|
name: string;
|
|
314
|
+
id: string;
|
|
393
315
|
slug: string;
|
|
394
316
|
images: {
|
|
395
317
|
url: string;
|
|
@@ -400,8 +322,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
400
322
|
basePrice?: number | undefined;
|
|
401
323
|
salePrice?: number | undefined;
|
|
402
324
|
categories?: {
|
|
403
|
-
id: string;
|
|
404
325
|
name: string;
|
|
326
|
+
id: string;
|
|
405
327
|
slug: string;
|
|
406
328
|
logo?: string | undefined;
|
|
407
329
|
icon?: string | undefined;
|
|
@@ -409,8 +331,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
409
331
|
tags?: string[] | undefined;
|
|
410
332
|
inStock?: boolean | undefined;
|
|
411
333
|
variants?: {
|
|
412
|
-
id: string;
|
|
413
334
|
name: string;
|
|
335
|
+
id: string;
|
|
414
336
|
storeId: string;
|
|
415
337
|
productId: string;
|
|
416
338
|
weight: number | null;
|
|
@@ -447,8 +369,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
447
369
|
}, Error>;
|
|
448
370
|
useProductsOnSale: (filters?: Omit<ProductsFilters, "minPrice" | "maxPrice">) => _tanstack_react_query.UseQueryResult<{
|
|
449
371
|
items: {
|
|
450
|
-
id: string;
|
|
451
372
|
name: string;
|
|
373
|
+
id: string;
|
|
452
374
|
slug: string;
|
|
453
375
|
images: {
|
|
454
376
|
url: string;
|
|
@@ -459,8 +381,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
459
381
|
basePrice?: number | undefined;
|
|
460
382
|
salePrice?: number | undefined;
|
|
461
383
|
categories?: {
|
|
462
|
-
id: string;
|
|
463
384
|
name: string;
|
|
385
|
+
id: string;
|
|
464
386
|
slug: string;
|
|
465
387
|
logo?: string | undefined;
|
|
466
388
|
icon?: string | undefined;
|
|
@@ -468,8 +390,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
468
390
|
tags?: string[] | undefined;
|
|
469
391
|
inStock?: boolean | undefined;
|
|
470
392
|
variants?: {
|
|
471
|
-
id: string;
|
|
472
393
|
name: string;
|
|
394
|
+
id: string;
|
|
473
395
|
storeId: string;
|
|
474
396
|
productId: string;
|
|
475
397
|
weight: number | null;
|
|
@@ -506,8 +428,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
506
428
|
}, Error>;
|
|
507
429
|
useProductsInStock: (filters?: Omit<ProductsFilters, "inStock">) => _tanstack_react_query.UseQueryResult<{
|
|
508
430
|
items: {
|
|
509
|
-
id: string;
|
|
510
431
|
name: string;
|
|
432
|
+
id: string;
|
|
511
433
|
slug: string;
|
|
512
434
|
images: {
|
|
513
435
|
url: string;
|
|
@@ -518,8 +440,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
518
440
|
basePrice?: number | undefined;
|
|
519
441
|
salePrice?: number | undefined;
|
|
520
442
|
categories?: {
|
|
521
|
-
id: string;
|
|
522
443
|
name: string;
|
|
444
|
+
id: string;
|
|
523
445
|
slug: string;
|
|
524
446
|
logo?: string | undefined;
|
|
525
447
|
icon?: string | undefined;
|
|
@@ -527,8 +449,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
527
449
|
tags?: string[] | undefined;
|
|
528
450
|
inStock?: boolean | undefined;
|
|
529
451
|
variants?: {
|
|
530
|
-
id: string;
|
|
531
452
|
name: string;
|
|
453
|
+
id: string;
|
|
532
454
|
storeId: string;
|
|
533
455
|
productId: string;
|
|
534
456
|
weight: number | null;
|
|
@@ -574,8 +496,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
574
496
|
totalCount: number;
|
|
575
497
|
totalPages: number;
|
|
576
498
|
products: {
|
|
577
|
-
id: string;
|
|
578
499
|
name: string;
|
|
500
|
+
id: string;
|
|
579
501
|
slug: string;
|
|
580
502
|
price: number;
|
|
581
503
|
variantCount: number;
|
|
@@ -607,8 +529,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
607
529
|
totalCount: number;
|
|
608
530
|
totalPages: number;
|
|
609
531
|
products: {
|
|
610
|
-
id: string;
|
|
611
532
|
name: string;
|
|
533
|
+
id: string;
|
|
612
534
|
slug: string;
|
|
613
535
|
price: number;
|
|
614
536
|
variantCount: number;
|
|
@@ -640,8 +562,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
640
562
|
totalCount: number;
|
|
641
563
|
totalPages: number;
|
|
642
564
|
products: {
|
|
643
|
-
id: string;
|
|
644
565
|
name: string;
|
|
566
|
+
id: string;
|
|
645
567
|
slug: string;
|
|
646
568
|
price: number;
|
|
647
569
|
variantCount: number;
|
|
@@ -665,11 +587,11 @@ declare const useProducts: (storeId?: string) => {
|
|
|
665
587
|
}, Error, {
|
|
666
588
|
sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
|
|
667
589
|
sellerId?: string | undefined;
|
|
668
|
-
search?: string | undefined;
|
|
669
590
|
inStock?: boolean | undefined;
|
|
670
591
|
page?: number | undefined;
|
|
671
592
|
pageSize?: number | undefined;
|
|
672
593
|
category?: string | undefined;
|
|
594
|
+
search?: string | undefined;
|
|
673
595
|
minPrice?: number | undefined;
|
|
674
596
|
maxPrice?: number | undefined;
|
|
675
597
|
productType?: string | undefined;
|
|
@@ -680,28 +602,28 @@ declare const useProducts: (storeId?: string) => {
|
|
|
680
602
|
|
|
681
603
|
declare const useCollections: (storeId?: string) => {
|
|
682
604
|
useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<{
|
|
683
|
-
|
|
605
|
+
type: string;
|
|
684
606
|
name: string;
|
|
607
|
+
id: string;
|
|
685
608
|
slug: string;
|
|
686
|
-
type: string;
|
|
687
609
|
productCount: number;
|
|
688
610
|
description?: string | null | undefined;
|
|
689
611
|
imageUrl?: string | null | undefined;
|
|
690
612
|
}[], Error>;
|
|
691
613
|
useStorefrontCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
692
|
-
|
|
614
|
+
type: string;
|
|
693
615
|
name: string;
|
|
616
|
+
id: string;
|
|
694
617
|
slug: string;
|
|
695
|
-
type: string;
|
|
696
618
|
productCount: number;
|
|
697
619
|
description?: string | null | undefined;
|
|
698
620
|
imageUrl?: string | null | undefined;
|
|
699
621
|
}, Error>;
|
|
700
622
|
useRefreshStorefrontCollections: () => _tanstack_react_query.UseMutationResult<{
|
|
701
|
-
|
|
623
|
+
type: string;
|
|
702
624
|
name: string;
|
|
625
|
+
id: string;
|
|
703
626
|
slug: string;
|
|
704
|
-
type: string;
|
|
705
627
|
productCount: number;
|
|
706
628
|
description?: string | null | undefined;
|
|
707
629
|
imageUrl?: string | null | undefined;
|
|
@@ -710,14 +632,14 @@ declare const useCollections: (storeId?: string) => {
|
|
|
710
632
|
|
|
711
633
|
declare const usePages: (storeId?: string) => {
|
|
712
634
|
usePagesList: () => _tanstack_react_query.UseQueryResult<{
|
|
713
|
-
id: string;
|
|
714
635
|
name: string;
|
|
636
|
+
id: string;
|
|
715
637
|
slug: string;
|
|
716
638
|
layout: string;
|
|
717
639
|
}[], Error>;
|
|
718
640
|
usePageBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
719
|
-
id: string;
|
|
720
641
|
name: string;
|
|
642
|
+
id: string;
|
|
721
643
|
slug: string;
|
|
722
644
|
layout: string;
|
|
723
645
|
settings?: zod.objectOutputType<{
|
|
@@ -735,12 +657,12 @@ declare const usePages: (storeId?: string) => {
|
|
|
735
657
|
title: zod.ZodOptional<zod.ZodString>;
|
|
736
658
|
}, zod.ZodUnknown, "strip"> | undefined;
|
|
737
659
|
sections?: {
|
|
738
|
-
id: string;
|
|
739
660
|
type: string;
|
|
661
|
+
id: string;
|
|
740
662
|
order: number;
|
|
741
663
|
blocks: {
|
|
742
|
-
id: string;
|
|
743
664
|
type: string;
|
|
665
|
+
id: string;
|
|
744
666
|
order: number;
|
|
745
667
|
settings?: Record<string, unknown> | undefined;
|
|
746
668
|
}[];
|
|
@@ -748,8 +670,8 @@ declare const usePages: (storeId?: string) => {
|
|
|
748
670
|
}[] | undefined;
|
|
749
671
|
}, Error>;
|
|
750
672
|
useRefreshPages: () => _tanstack_react_query.UseMutationResult<{
|
|
751
|
-
id: string;
|
|
752
673
|
name: string;
|
|
674
|
+
id: string;
|
|
753
675
|
slug: string;
|
|
754
676
|
layout: string;
|
|
755
677
|
}[], Error, void, unknown>;
|
|
@@ -1039,6 +961,4 @@ declare function ecomiqOAuthPassword(): BetterAuthPlugin;
|
|
|
1039
961
|
*/
|
|
1040
962
|
declare function ecomiqOAuthPasswordClient(): BetterAuthClientPlugin;
|
|
1041
963
|
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
export { type CartItem, type CheckoutCustomerLocal, CmsSectionsRenderer, CmsSectionsRendererProps, type GeoIneiFormFields, GeoItem, ProductsFilters, QueryProvider, type StorefrontAuthClientInstance, StorefrontAuthProvider, StorefrontProductsParamsInput, type StorefrontSessionUser, ecomiqOAuthPassword, ecomiqOAuthPasswordClient, storefrontAccessTokenNeedsRefresh, storefrontSessionEndsSoon, useCart, useCartAddresses, useCartCreate, useCartGet, useCollections, useConfig, usePages, useProducts, useStorefrontAuthClient, useStorefrontGeoInei, useStorefrontSession, useUser };
|
|
964
|
+
export { type CartItem, type CheckoutCustomerLocal, type GeoIneiFormFields, GeoItem, ProductsFilters, QueryProvider, StorefrontProductsParamsInput, ecomiqOAuthPassword, ecomiqOAuthPasswordClient, useCart, useCartAddresses, useCartCreate, useCartGet, useCollections, useConfig, usePages, useProducts, useStorefrontGeoInei, useUser };
|