@ecomiq/storefront 0.1.1 → 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 +144 -47
- package/dist/..d.ts +30 -0
- package/dist/core.d.ts +47 -42
- package/dist/core.js +324 -212
- package/dist/core.js.map +1 -1
- package/dist/{find-storefront-cms-page-c8CktSz7.d.ts → find-storefront-cms-page-DNwLo1iV.d.ts} +17 -3
- package/dist/index.d.ts +30 -0
- package/dist/index.js +103 -0
- package/dist/index.js.map +1 -0
- package/dist/nextjs.d.ts +119 -111
- package/dist/nextjs.js +336 -43
- package/dist/nextjs.js.map +1 -1
- package/dist/react.d.ts +84 -83
- package/dist/react.js +342 -238
- package/dist/react.js.map +1 -1
- package/package.json +5 -1
- package/dist/{store-to_vuWRF.d.ts → collection-anMkdWa7.d.ts} +2666 -2666
package/dist/react.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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, apiClient, 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 './
|
|
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 './
|
|
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';
|
|
5
6
|
import * as React from 'react';
|
|
6
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
|
-
export { E as EcomiqProvider, e as EcomiqProviderProps, O as OptionGroup, P as ProductVariantSelector,
|
|
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';
|
|
10
11
|
import * as zod from 'zod';
|
|
11
12
|
import { UseFormReturn } from 'react-hook-form';
|
|
12
13
|
import * as zustand_middleware from 'zustand/middleware';
|
|
@@ -30,20 +31,20 @@ declare function useConfig(): {};
|
|
|
30
31
|
declare const useProducts: (storeId?: string) => {
|
|
31
32
|
useProductsList: (filters?: ProductsFilters) => _tanstack_react_query.UseQueryResult<{
|
|
32
33
|
items: {
|
|
33
|
-
id: string;
|
|
34
34
|
name: string;
|
|
35
|
+
id: string;
|
|
36
|
+
slug: string;
|
|
35
37
|
images: {
|
|
36
38
|
url: string;
|
|
37
39
|
name?: string | undefined;
|
|
38
40
|
isPrimary?: boolean | undefined;
|
|
39
41
|
}[];
|
|
40
|
-
|
|
42
|
+
description?: string | undefined;
|
|
41
43
|
basePrice?: number | undefined;
|
|
42
44
|
salePrice?: number | undefined;
|
|
43
|
-
description?: string | undefined;
|
|
44
45
|
categories?: {
|
|
45
|
-
id: string;
|
|
46
46
|
name: string;
|
|
47
|
+
id: string;
|
|
47
48
|
slug: string;
|
|
48
49
|
logo?: string | undefined;
|
|
49
50
|
icon?: string | undefined;
|
|
@@ -51,12 +52,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
51
52
|
tags?: string[] | undefined;
|
|
52
53
|
inStock?: boolean | undefined;
|
|
53
54
|
variants?: {
|
|
54
|
-
id: string;
|
|
55
55
|
name: string;
|
|
56
|
+
id: string;
|
|
56
57
|
storeId: string;
|
|
57
58
|
productId: string;
|
|
58
59
|
weight: number | null;
|
|
59
60
|
order: number | null;
|
|
61
|
+
status?: string | null | undefined;
|
|
62
|
+
updatedOn?: string | null | undefined;
|
|
63
|
+
createdOn?: string | null | undefined;
|
|
60
64
|
basePrice?: number | null | undefined;
|
|
61
65
|
comparePrice?: number | null | undefined;
|
|
62
66
|
originalPrice?: number | null | undefined;
|
|
@@ -71,12 +75,9 @@ declare const useProducts: (storeId?: string) => {
|
|
|
71
75
|
leadTime?: string | null | undefined;
|
|
72
76
|
barCode?: string | null | undefined;
|
|
73
77
|
shippingWeight?: number | null | undefined;
|
|
74
|
-
status?: string | null | undefined;
|
|
75
78
|
images?: string[] | null | undefined;
|
|
76
79
|
attributes?: string[] | null | undefined;
|
|
77
80
|
variantStatus?: string | null | undefined;
|
|
78
|
-
createdOn?: string | null | undefined;
|
|
79
|
-
updatedOn?: string | null | undefined;
|
|
80
81
|
deletedOn?: string | null | undefined;
|
|
81
82
|
}[] | undefined;
|
|
82
83
|
}[];
|
|
@@ -89,20 +90,20 @@ declare const useProducts: (storeId?: string) => {
|
|
|
89
90
|
}, Error>;
|
|
90
91
|
useInfiniteProducts: (filters?: Omit<ProductsFilters, "page">) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<{
|
|
91
92
|
items: {
|
|
92
|
-
id: string;
|
|
93
93
|
name: string;
|
|
94
|
+
id: string;
|
|
95
|
+
slug: string;
|
|
94
96
|
images: {
|
|
95
97
|
url: string;
|
|
96
98
|
name?: string | undefined;
|
|
97
99
|
isPrimary?: boolean | undefined;
|
|
98
100
|
}[];
|
|
99
|
-
|
|
101
|
+
description?: string | undefined;
|
|
100
102
|
basePrice?: number | undefined;
|
|
101
103
|
salePrice?: number | undefined;
|
|
102
|
-
description?: string | undefined;
|
|
103
104
|
categories?: {
|
|
104
|
-
id: string;
|
|
105
105
|
name: string;
|
|
106
|
+
id: string;
|
|
106
107
|
slug: string;
|
|
107
108
|
logo?: string | undefined;
|
|
108
109
|
icon?: string | undefined;
|
|
@@ -110,12 +111,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
110
111
|
tags?: string[] | undefined;
|
|
111
112
|
inStock?: boolean | undefined;
|
|
112
113
|
variants?: {
|
|
113
|
-
id: string;
|
|
114
114
|
name: string;
|
|
115
|
+
id: string;
|
|
115
116
|
storeId: string;
|
|
116
117
|
productId: string;
|
|
117
118
|
weight: number | null;
|
|
118
119
|
order: number | null;
|
|
120
|
+
status?: string | null | undefined;
|
|
121
|
+
updatedOn?: string | null | undefined;
|
|
122
|
+
createdOn?: string | null | undefined;
|
|
119
123
|
basePrice?: number | null | undefined;
|
|
120
124
|
comparePrice?: number | null | undefined;
|
|
121
125
|
originalPrice?: number | null | undefined;
|
|
@@ -130,12 +134,9 @@ declare const useProducts: (storeId?: string) => {
|
|
|
130
134
|
leadTime?: string | null | undefined;
|
|
131
135
|
barCode?: string | null | undefined;
|
|
132
136
|
shippingWeight?: number | null | undefined;
|
|
133
|
-
status?: string | null | undefined;
|
|
134
137
|
images?: string[] | null | undefined;
|
|
135
138
|
attributes?: string[] | null | undefined;
|
|
136
139
|
variantStatus?: string | null | undefined;
|
|
137
|
-
createdOn?: string | null | undefined;
|
|
138
|
-
updatedOn?: string | null | undefined;
|
|
139
140
|
deletedOn?: string | null | undefined;
|
|
140
141
|
}[] | undefined;
|
|
141
142
|
}[];
|
|
@@ -147,20 +148,20 @@ declare const useProducts: (storeId?: string) => {
|
|
|
147
148
|
};
|
|
148
149
|
}, unknown>, Error>;
|
|
149
150
|
useProduct: (id: string) => _tanstack_react_query.UseQueryResult<{
|
|
150
|
-
id: string;
|
|
151
151
|
name: string;
|
|
152
|
+
id: string;
|
|
153
|
+
slug: string;
|
|
152
154
|
images: {
|
|
153
155
|
url: string;
|
|
154
156
|
name?: string | undefined;
|
|
155
157
|
isPrimary?: boolean | undefined;
|
|
156
158
|
}[];
|
|
157
|
-
|
|
159
|
+
description?: string | undefined;
|
|
158
160
|
basePrice?: number | undefined;
|
|
159
161
|
salePrice?: number | undefined;
|
|
160
|
-
description?: string | undefined;
|
|
161
162
|
categories?: {
|
|
162
|
-
id: string;
|
|
163
163
|
name: string;
|
|
164
|
+
id: string;
|
|
164
165
|
slug: string;
|
|
165
166
|
logo?: string | undefined;
|
|
166
167
|
icon?: string | undefined;
|
|
@@ -168,12 +169,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
168
169
|
tags?: string[] | undefined;
|
|
169
170
|
inStock?: boolean | undefined;
|
|
170
171
|
variants?: {
|
|
171
|
-
id: string;
|
|
172
172
|
name: string;
|
|
173
|
+
id: string;
|
|
173
174
|
storeId: string;
|
|
174
175
|
productId: string;
|
|
175
176
|
weight: number | null;
|
|
176
177
|
order: number | null;
|
|
178
|
+
status?: string | null | undefined;
|
|
179
|
+
updatedOn?: string | null | undefined;
|
|
180
|
+
createdOn?: string | null | undefined;
|
|
177
181
|
basePrice?: number | null | undefined;
|
|
178
182
|
comparePrice?: number | null | undefined;
|
|
179
183
|
originalPrice?: number | null | undefined;
|
|
@@ -188,30 +192,27 @@ declare const useProducts: (storeId?: string) => {
|
|
|
188
192
|
leadTime?: string | null | undefined;
|
|
189
193
|
barCode?: string | null | undefined;
|
|
190
194
|
shippingWeight?: number | null | undefined;
|
|
191
|
-
status?: string | null | undefined;
|
|
192
195
|
images?: string[] | null | undefined;
|
|
193
196
|
attributes?: string[] | null | undefined;
|
|
194
197
|
variantStatus?: string | null | undefined;
|
|
195
|
-
createdOn?: string | null | undefined;
|
|
196
|
-
updatedOn?: string | null | undefined;
|
|
197
198
|
deletedOn?: string | null | undefined;
|
|
198
199
|
}[] | undefined;
|
|
199
200
|
}, Error>;
|
|
200
201
|
useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
201
|
-
id: string;
|
|
202
202
|
name: string;
|
|
203
|
+
id: string;
|
|
204
|
+
slug: string;
|
|
203
205
|
images: {
|
|
204
206
|
url: string;
|
|
205
207
|
name?: string | undefined;
|
|
206
208
|
isPrimary?: boolean | undefined;
|
|
207
209
|
}[];
|
|
208
|
-
|
|
210
|
+
description?: string | undefined;
|
|
209
211
|
basePrice?: number | undefined;
|
|
210
212
|
salePrice?: number | undefined;
|
|
211
|
-
description?: string | undefined;
|
|
212
213
|
categories?: {
|
|
213
|
-
id: string;
|
|
214
214
|
name: string;
|
|
215
|
+
id: string;
|
|
215
216
|
slug: string;
|
|
216
217
|
logo?: string | undefined;
|
|
217
218
|
icon?: string | undefined;
|
|
@@ -219,12 +220,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
219
220
|
tags?: string[] | undefined;
|
|
220
221
|
inStock?: boolean | undefined;
|
|
221
222
|
variants?: {
|
|
222
|
-
id: string;
|
|
223
223
|
name: string;
|
|
224
|
+
id: string;
|
|
224
225
|
storeId: string;
|
|
225
226
|
productId: string;
|
|
226
227
|
weight: number | null;
|
|
227
228
|
order: number | null;
|
|
229
|
+
status?: string | null | undefined;
|
|
230
|
+
updatedOn?: string | null | undefined;
|
|
231
|
+
createdOn?: string | null | undefined;
|
|
228
232
|
basePrice?: number | null | undefined;
|
|
229
233
|
comparePrice?: number | null | undefined;
|
|
230
234
|
originalPrice?: number | null | undefined;
|
|
@@ -239,31 +243,28 @@ declare const useProducts: (storeId?: string) => {
|
|
|
239
243
|
leadTime?: string | null | undefined;
|
|
240
244
|
barCode?: string | null | undefined;
|
|
241
245
|
shippingWeight?: number | null | undefined;
|
|
242
|
-
status?: string | null | undefined;
|
|
243
246
|
images?: string[] | null | undefined;
|
|
244
247
|
attributes?: string[] | null | undefined;
|
|
245
248
|
variantStatus?: string | null | undefined;
|
|
246
|
-
createdOn?: string | null | undefined;
|
|
247
|
-
updatedOn?: string | null | undefined;
|
|
248
249
|
deletedOn?: string | null | undefined;
|
|
249
250
|
}[] | undefined;
|
|
250
251
|
}, Error>;
|
|
251
252
|
useSearchProducts: (query: string, filters?: Omit<ProductsFilters, "search">) => _tanstack_react_query.UseQueryResult<{
|
|
252
253
|
items: {
|
|
253
|
-
id: string;
|
|
254
254
|
name: string;
|
|
255
|
+
id: string;
|
|
256
|
+
slug: string;
|
|
255
257
|
images: {
|
|
256
258
|
url: string;
|
|
257
259
|
name?: string | undefined;
|
|
258
260
|
isPrimary?: boolean | undefined;
|
|
259
261
|
}[];
|
|
260
|
-
|
|
262
|
+
description?: string | undefined;
|
|
261
263
|
basePrice?: number | undefined;
|
|
262
264
|
salePrice?: number | undefined;
|
|
263
|
-
description?: string | undefined;
|
|
264
265
|
categories?: {
|
|
265
|
-
id: string;
|
|
266
266
|
name: string;
|
|
267
|
+
id: string;
|
|
267
268
|
slug: string;
|
|
268
269
|
logo?: string | undefined;
|
|
269
270
|
icon?: string | undefined;
|
|
@@ -271,12 +272,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
271
272
|
tags?: string[] | undefined;
|
|
272
273
|
inStock?: boolean | undefined;
|
|
273
274
|
variants?: {
|
|
274
|
-
id: string;
|
|
275
275
|
name: string;
|
|
276
|
+
id: string;
|
|
276
277
|
storeId: string;
|
|
277
278
|
productId: string;
|
|
278
279
|
weight: number | null;
|
|
279
280
|
order: number | null;
|
|
281
|
+
status?: string | null | undefined;
|
|
282
|
+
updatedOn?: string | null | undefined;
|
|
283
|
+
createdOn?: string | null | undefined;
|
|
280
284
|
basePrice?: number | null | undefined;
|
|
281
285
|
comparePrice?: number | null | undefined;
|
|
282
286
|
originalPrice?: number | null | undefined;
|
|
@@ -291,12 +295,9 @@ declare const useProducts: (storeId?: string) => {
|
|
|
291
295
|
leadTime?: string | null | undefined;
|
|
292
296
|
barCode?: string | null | undefined;
|
|
293
297
|
shippingWeight?: number | null | undefined;
|
|
294
|
-
status?: string | null | undefined;
|
|
295
298
|
images?: string[] | null | undefined;
|
|
296
299
|
attributes?: string[] | null | undefined;
|
|
297
300
|
variantStatus?: string | null | undefined;
|
|
298
|
-
createdOn?: string | null | undefined;
|
|
299
|
-
updatedOn?: string | null | undefined;
|
|
300
301
|
deletedOn?: string | null | undefined;
|
|
301
302
|
}[] | undefined;
|
|
302
303
|
}[];
|
|
@@ -309,20 +310,20 @@ declare const useProducts: (storeId?: string) => {
|
|
|
309
310
|
}, Error>;
|
|
310
311
|
useProductsByCategory: (category: string, filters?: Omit<ProductsFilters, "category">) => _tanstack_react_query.UseQueryResult<{
|
|
311
312
|
items: {
|
|
312
|
-
id: string;
|
|
313
313
|
name: string;
|
|
314
|
+
id: string;
|
|
315
|
+
slug: string;
|
|
314
316
|
images: {
|
|
315
317
|
url: string;
|
|
316
318
|
name?: string | undefined;
|
|
317
319
|
isPrimary?: boolean | undefined;
|
|
318
320
|
}[];
|
|
319
|
-
|
|
321
|
+
description?: string | undefined;
|
|
320
322
|
basePrice?: number | undefined;
|
|
321
323
|
salePrice?: number | undefined;
|
|
322
|
-
description?: string | undefined;
|
|
323
324
|
categories?: {
|
|
324
|
-
id: string;
|
|
325
325
|
name: string;
|
|
326
|
+
id: string;
|
|
326
327
|
slug: string;
|
|
327
328
|
logo?: string | undefined;
|
|
328
329
|
icon?: string | undefined;
|
|
@@ -330,12 +331,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
330
331
|
tags?: string[] | undefined;
|
|
331
332
|
inStock?: boolean | undefined;
|
|
332
333
|
variants?: {
|
|
333
|
-
id: string;
|
|
334
334
|
name: string;
|
|
335
|
+
id: string;
|
|
335
336
|
storeId: string;
|
|
336
337
|
productId: string;
|
|
337
338
|
weight: number | null;
|
|
338
339
|
order: number | null;
|
|
340
|
+
status?: string | null | undefined;
|
|
341
|
+
updatedOn?: string | null | undefined;
|
|
342
|
+
createdOn?: string | null | undefined;
|
|
339
343
|
basePrice?: number | null | undefined;
|
|
340
344
|
comparePrice?: number | null | undefined;
|
|
341
345
|
originalPrice?: number | null | undefined;
|
|
@@ -350,12 +354,9 @@ declare const useProducts: (storeId?: string) => {
|
|
|
350
354
|
leadTime?: string | null | undefined;
|
|
351
355
|
barCode?: string | null | undefined;
|
|
352
356
|
shippingWeight?: number | null | undefined;
|
|
353
|
-
status?: string | null | undefined;
|
|
354
357
|
images?: string[] | null | undefined;
|
|
355
358
|
attributes?: string[] | null | undefined;
|
|
356
359
|
variantStatus?: string | null | undefined;
|
|
357
|
-
createdOn?: string | null | undefined;
|
|
358
|
-
updatedOn?: string | null | undefined;
|
|
359
360
|
deletedOn?: string | null | undefined;
|
|
360
361
|
}[] | undefined;
|
|
361
362
|
}[];
|
|
@@ -368,20 +369,20 @@ declare const useProducts: (storeId?: string) => {
|
|
|
368
369
|
}, Error>;
|
|
369
370
|
useProductsOnSale: (filters?: Omit<ProductsFilters, "minPrice" | "maxPrice">) => _tanstack_react_query.UseQueryResult<{
|
|
370
371
|
items: {
|
|
371
|
-
id: string;
|
|
372
372
|
name: string;
|
|
373
|
+
id: string;
|
|
374
|
+
slug: string;
|
|
373
375
|
images: {
|
|
374
376
|
url: string;
|
|
375
377
|
name?: string | undefined;
|
|
376
378
|
isPrimary?: boolean | undefined;
|
|
377
379
|
}[];
|
|
378
|
-
|
|
380
|
+
description?: string | undefined;
|
|
379
381
|
basePrice?: number | undefined;
|
|
380
382
|
salePrice?: number | undefined;
|
|
381
|
-
description?: string | undefined;
|
|
382
383
|
categories?: {
|
|
383
|
-
id: string;
|
|
384
384
|
name: string;
|
|
385
|
+
id: string;
|
|
385
386
|
slug: string;
|
|
386
387
|
logo?: string | undefined;
|
|
387
388
|
icon?: string | undefined;
|
|
@@ -389,12 +390,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
389
390
|
tags?: string[] | undefined;
|
|
390
391
|
inStock?: boolean | undefined;
|
|
391
392
|
variants?: {
|
|
392
|
-
id: string;
|
|
393
393
|
name: string;
|
|
394
|
+
id: string;
|
|
394
395
|
storeId: string;
|
|
395
396
|
productId: string;
|
|
396
397
|
weight: number | null;
|
|
397
398
|
order: number | null;
|
|
399
|
+
status?: string | null | undefined;
|
|
400
|
+
updatedOn?: string | null | undefined;
|
|
401
|
+
createdOn?: string | null | undefined;
|
|
398
402
|
basePrice?: number | null | undefined;
|
|
399
403
|
comparePrice?: number | null | undefined;
|
|
400
404
|
originalPrice?: number | null | undefined;
|
|
@@ -409,12 +413,9 @@ declare const useProducts: (storeId?: string) => {
|
|
|
409
413
|
leadTime?: string | null | undefined;
|
|
410
414
|
barCode?: string | null | undefined;
|
|
411
415
|
shippingWeight?: number | null | undefined;
|
|
412
|
-
status?: string | null | undefined;
|
|
413
416
|
images?: string[] | null | undefined;
|
|
414
417
|
attributes?: string[] | null | undefined;
|
|
415
418
|
variantStatus?: string | null | undefined;
|
|
416
|
-
createdOn?: string | null | undefined;
|
|
417
|
-
updatedOn?: string | null | undefined;
|
|
418
419
|
deletedOn?: string | null | undefined;
|
|
419
420
|
}[] | undefined;
|
|
420
421
|
}[];
|
|
@@ -427,20 +428,20 @@ declare const useProducts: (storeId?: string) => {
|
|
|
427
428
|
}, Error>;
|
|
428
429
|
useProductsInStock: (filters?: Omit<ProductsFilters, "inStock">) => _tanstack_react_query.UseQueryResult<{
|
|
429
430
|
items: {
|
|
430
|
-
id: string;
|
|
431
431
|
name: string;
|
|
432
|
+
id: string;
|
|
433
|
+
slug: string;
|
|
432
434
|
images: {
|
|
433
435
|
url: string;
|
|
434
436
|
name?: string | undefined;
|
|
435
437
|
isPrimary?: boolean | undefined;
|
|
436
438
|
}[];
|
|
437
|
-
|
|
439
|
+
description?: string | undefined;
|
|
438
440
|
basePrice?: number | undefined;
|
|
439
441
|
salePrice?: number | undefined;
|
|
440
|
-
description?: string | undefined;
|
|
441
442
|
categories?: {
|
|
442
|
-
id: string;
|
|
443
443
|
name: string;
|
|
444
|
+
id: string;
|
|
444
445
|
slug: string;
|
|
445
446
|
logo?: string | undefined;
|
|
446
447
|
icon?: string | undefined;
|
|
@@ -448,12 +449,15 @@ declare const useProducts: (storeId?: string) => {
|
|
|
448
449
|
tags?: string[] | undefined;
|
|
449
450
|
inStock?: boolean | undefined;
|
|
450
451
|
variants?: {
|
|
451
|
-
id: string;
|
|
452
452
|
name: string;
|
|
453
|
+
id: string;
|
|
453
454
|
storeId: string;
|
|
454
455
|
productId: string;
|
|
455
456
|
weight: number | null;
|
|
456
457
|
order: number | null;
|
|
458
|
+
status?: string | null | undefined;
|
|
459
|
+
updatedOn?: string | null | undefined;
|
|
460
|
+
createdOn?: string | null | undefined;
|
|
457
461
|
basePrice?: number | null | undefined;
|
|
458
462
|
comparePrice?: number | null | undefined;
|
|
459
463
|
originalPrice?: number | null | undefined;
|
|
@@ -468,12 +472,9 @@ declare const useProducts: (storeId?: string) => {
|
|
|
468
472
|
leadTime?: string | null | undefined;
|
|
469
473
|
barCode?: string | null | undefined;
|
|
470
474
|
shippingWeight?: number | null | undefined;
|
|
471
|
-
status?: string | null | undefined;
|
|
472
475
|
images?: string[] | null | undefined;
|
|
473
476
|
attributes?: string[] | null | undefined;
|
|
474
477
|
variantStatus?: string | null | undefined;
|
|
475
|
-
createdOn?: string | null | undefined;
|
|
476
|
-
updatedOn?: string | null | undefined;
|
|
477
478
|
deletedOn?: string | null | undefined;
|
|
478
479
|
}[] | undefined;
|
|
479
480
|
}[];
|
|
@@ -495,8 +496,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
495
496
|
totalCount: number;
|
|
496
497
|
totalPages: number;
|
|
497
498
|
products: {
|
|
498
|
-
id: string;
|
|
499
499
|
name: string;
|
|
500
|
+
id: string;
|
|
500
501
|
slug: string;
|
|
501
502
|
price: number;
|
|
502
503
|
variantCount: number;
|
|
@@ -528,8 +529,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
528
529
|
totalCount: number;
|
|
529
530
|
totalPages: number;
|
|
530
531
|
products: {
|
|
531
|
-
id: string;
|
|
532
532
|
name: string;
|
|
533
|
+
id: string;
|
|
533
534
|
slug: string;
|
|
534
535
|
price: number;
|
|
535
536
|
variantCount: number;
|
|
@@ -561,8 +562,8 @@ declare const useProducts: (storeId?: string) => {
|
|
|
561
562
|
totalCount: number;
|
|
562
563
|
totalPages: number;
|
|
563
564
|
products: {
|
|
564
|
-
id: string;
|
|
565
565
|
name: string;
|
|
566
|
+
id: string;
|
|
566
567
|
slug: string;
|
|
567
568
|
price: number;
|
|
568
569
|
variantCount: number;
|
|
@@ -585,6 +586,7 @@ declare const useProducts: (storeId?: string) => {
|
|
|
585
586
|
maxPrice?: number | null | undefined;
|
|
586
587
|
}, Error, {
|
|
587
588
|
sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
|
|
589
|
+
sellerId?: string | undefined;
|
|
588
590
|
inStock?: boolean | undefined;
|
|
589
591
|
page?: number | undefined;
|
|
590
592
|
pageSize?: number | undefined;
|
|
@@ -594,34 +596,33 @@ declare const useProducts: (storeId?: string) => {
|
|
|
594
596
|
maxPrice?: number | undefined;
|
|
595
597
|
productType?: string | undefined;
|
|
596
598
|
brand?: string | undefined;
|
|
597
|
-
sellerId?: string | undefined;
|
|
598
599
|
collection?: string | undefined;
|
|
599
600
|
} | undefined, unknown>;
|
|
600
601
|
};
|
|
601
602
|
|
|
602
603
|
declare const useCollections: (storeId?: string) => {
|
|
603
604
|
useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<{
|
|
604
|
-
id: string;
|
|
605
|
-
name: string;
|
|
606
605
|
type: string;
|
|
606
|
+
name: string;
|
|
607
|
+
id: string;
|
|
607
608
|
slug: string;
|
|
608
609
|
productCount: number;
|
|
609
610
|
description?: string | null | undefined;
|
|
610
611
|
imageUrl?: string | null | undefined;
|
|
611
612
|
}[], Error>;
|
|
612
613
|
useStorefrontCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
613
|
-
id: string;
|
|
614
|
-
name: string;
|
|
615
614
|
type: string;
|
|
615
|
+
name: string;
|
|
616
|
+
id: string;
|
|
616
617
|
slug: string;
|
|
617
618
|
productCount: number;
|
|
618
619
|
description?: string | null | undefined;
|
|
619
620
|
imageUrl?: string | null | undefined;
|
|
620
621
|
}, Error>;
|
|
621
622
|
useRefreshStorefrontCollections: () => _tanstack_react_query.UseMutationResult<{
|
|
622
|
-
id: string;
|
|
623
|
-
name: string;
|
|
624
623
|
type: string;
|
|
624
|
+
name: string;
|
|
625
|
+
id: string;
|
|
625
626
|
slug: string;
|
|
626
627
|
productCount: number;
|
|
627
628
|
description?: string | null | undefined;
|
|
@@ -631,14 +632,14 @@ declare const useCollections: (storeId?: string) => {
|
|
|
631
632
|
|
|
632
633
|
declare const usePages: (storeId?: string) => {
|
|
633
634
|
usePagesList: () => _tanstack_react_query.UseQueryResult<{
|
|
634
|
-
id: string;
|
|
635
635
|
name: string;
|
|
636
|
+
id: string;
|
|
636
637
|
slug: string;
|
|
637
638
|
layout: string;
|
|
638
639
|
}[], Error>;
|
|
639
640
|
usePageBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
640
|
-
id: string;
|
|
641
641
|
name: string;
|
|
642
|
+
id: string;
|
|
642
643
|
slug: string;
|
|
643
644
|
layout: string;
|
|
644
645
|
settings?: zod.objectOutputType<{
|
|
@@ -656,21 +657,21 @@ declare const usePages: (storeId?: string) => {
|
|
|
656
657
|
title: zod.ZodOptional<zod.ZodString>;
|
|
657
658
|
}, zod.ZodUnknown, "strip"> | undefined;
|
|
658
659
|
sections?: {
|
|
660
|
+
type: string;
|
|
659
661
|
id: string;
|
|
660
662
|
order: number;
|
|
661
|
-
type: string;
|
|
662
663
|
blocks: {
|
|
664
|
+
type: string;
|
|
663
665
|
id: string;
|
|
664
666
|
order: number;
|
|
665
|
-
type: string;
|
|
666
667
|
settings?: Record<string, unknown> | undefined;
|
|
667
668
|
}[];
|
|
668
669
|
settings?: Record<string, unknown> | undefined;
|
|
669
670
|
}[] | undefined;
|
|
670
671
|
}, Error>;
|
|
671
672
|
useRefreshPages: () => _tanstack_react_query.UseMutationResult<{
|
|
672
|
-
id: string;
|
|
673
673
|
name: string;
|
|
674
|
+
id: string;
|
|
674
675
|
slug: string;
|
|
675
676
|
layout: string;
|
|
676
677
|
}[], Error, void, unknown>;
|