@ecomiq/storefront 0.1.0 → 0.1.1
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 +94 -86
- package/dist/core.d.ts +3 -12
- package/dist/find-storefront-cms-page-c8CktSz7.d.ts +164 -0
- package/dist/nextjs/globals.css +3 -4
- package/dist/nextjs.d.ts +102 -105
- package/dist/nextjs.js +580 -1485
- package/dist/nextjs.js.map +1 -1
- package/dist/react.d.ts +57 -138
- package/dist/react.js +427 -1060
- package/dist/react.js.map +1 -1
- package/dist/{store-CYBCpY6v.d.ts → store-to_vuWRF.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/find-storefront-cms-page-Bo0-G1FK.d.ts +0 -119
package/dist/nextjs.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { StorefrontSettings, StorefrontProductsParamsInput, StorefrontProductsResponse, StorefrontProductDetail, StorefrontCollection, StorefrontCollectionDetail, StorefrontPageListItem, StorefrontPageDetail, CartBuyerRequest, CartResponse, CartAddressesRequest, CartCheckoutReadResponse, ShippingOptionsResponse, CartShippingMethodPutRequest, CartCouponRequest, CartCreateRequest, CartCheckoutRequest, CartCheckoutResponse, CartPaymentReceiptResponse, CartPaymentMethodsResponse } from '@ecomiq/storefront/core';
|
|
4
|
+
export { E as EcomiqProvider, e as EcomiqProviderProps, O as OptionGroup, P as ProductVariantSelector, h as ProductVariantSelectorProps, j as ProductVariantSelectorRenderProps, i as SelectedOptions, f as findStorefrontCmsPageBySlug, g as useStore } from './find-storefront-cms-page-c8CktSz7.js';
|
|
4
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
|
-
import { StorefrontProductsParamsInput as StorefrontProductsParamsInput$1, CartBuyerRequest as CartBuyerRequest$1, CartAddressesRequest as CartAddressesRequest$1, CartItemRequest, CartCheckoutRequest as CartCheckoutRequest$1, CartShippingMethodPutRequest as CartShippingMethodPutRequest$1, CartCouponRequest as CartCouponRequest$1
|
|
6
|
-
export {
|
|
7
|
-
import * as react from 'react';
|
|
8
|
-
export { c as StorefrontCollection, a as StorefrontProduct, b as StorefrontProductDetail, d as StorefrontProductsParamsInput, h as StorefrontProductsResponse } from './store-CYBCpY6v.js';
|
|
6
|
+
import { StorefrontProductsParamsInput as StorefrontProductsParamsInput$1, CartBuyerRequest as CartBuyerRequest$1, CartAddressesRequest as CartAddressesRequest$1, CartItemRequest, CartCheckoutRequest as CartCheckoutRequest$1, CartShippingMethodPutRequest as CartShippingMethodPutRequest$1, CartCouponRequest as CartCouponRequest$1 } from '@ecomiq/storefront/react';
|
|
7
|
+
export { m as StorefrontCollection, e as StorefrontProduct, g as StorefrontProductDetail, a as StorefrontProductsParamsInput, f as StorefrontProductsResponse } from './store-to_vuWRF.js';
|
|
9
8
|
import 'zustand';
|
|
9
|
+
import 'react';
|
|
10
|
+
import 'better-auth/react';
|
|
11
|
+
import 'better-auth';
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
14
|
* Devuelve el host completo de la request (ej. "plata950.ecomiq.pe", "localhost:3000").
|
|
@@ -234,8 +236,8 @@ declare const CustomerAddressSchema: z.ZodObject<{
|
|
|
234
236
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
235
237
|
isDefault: z.ZodBoolean;
|
|
236
238
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
phone: string;
|
|
238
239
|
isDefault: boolean;
|
|
240
|
+
phone: string;
|
|
239
241
|
province: string;
|
|
240
242
|
postalCode: string;
|
|
241
243
|
district: string;
|
|
@@ -250,8 +252,8 @@ declare const CustomerAddressSchema: z.ZodObject<{
|
|
|
250
252
|
department: string;
|
|
251
253
|
id?: string | undefined;
|
|
252
254
|
}, {
|
|
253
|
-
phone: string;
|
|
254
255
|
isDefault: boolean;
|
|
256
|
+
phone: string;
|
|
255
257
|
province: string;
|
|
256
258
|
postalCode: string;
|
|
257
259
|
district: string;
|
|
@@ -285,8 +287,8 @@ declare const CustomerAddressUpsertSchema: z.ZodObject<Omit<{
|
|
|
285
287
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
286
288
|
isDefault: z.ZodBoolean;
|
|
287
289
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
288
|
-
phone: string;
|
|
289
290
|
isDefault: boolean;
|
|
291
|
+
phone: string;
|
|
290
292
|
province: string;
|
|
291
293
|
postalCode: string;
|
|
292
294
|
district: string;
|
|
@@ -300,8 +302,8 @@ declare const CustomerAddressUpsertSchema: z.ZodObject<Omit<{
|
|
|
300
302
|
cellPhone: string;
|
|
301
303
|
department: string;
|
|
302
304
|
}, {
|
|
303
|
-
phone: string;
|
|
304
305
|
isDefault: boolean;
|
|
306
|
+
phone: string;
|
|
305
307
|
province: string;
|
|
306
308
|
postalCode: string;
|
|
307
309
|
district: string;
|
|
@@ -362,8 +364,8 @@ declare const CustomerMeSchema: z.ZodObject<{
|
|
|
362
364
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
363
365
|
isDefault: z.ZodBoolean;
|
|
364
366
|
}, "strip", z.ZodTypeAny, {
|
|
365
|
-
phone: string;
|
|
366
367
|
isDefault: boolean;
|
|
368
|
+
phone: string;
|
|
367
369
|
province: string;
|
|
368
370
|
postalCode: string;
|
|
369
371
|
district: string;
|
|
@@ -378,8 +380,8 @@ declare const CustomerMeSchema: z.ZodObject<{
|
|
|
378
380
|
department: string;
|
|
379
381
|
id?: string | undefined;
|
|
380
382
|
}, {
|
|
381
|
-
phone: string;
|
|
382
383
|
isDefault: boolean;
|
|
384
|
+
phone: string;
|
|
383
385
|
province: string;
|
|
384
386
|
postalCode: string;
|
|
385
387
|
district: string;
|
|
@@ -398,11 +400,11 @@ declare const CustomerMeSchema: z.ZodObject<{
|
|
|
398
400
|
updatedOn: z.ZodNullable<z.ZodString>;
|
|
399
401
|
}, "strip", z.ZodTypeAny, {
|
|
400
402
|
id: string;
|
|
403
|
+
storeId: string;
|
|
401
404
|
status: string;
|
|
402
|
-
phone: string;
|
|
403
|
-
updatedOn: string | null;
|
|
404
405
|
createdOn: string;
|
|
405
|
-
|
|
406
|
+
updatedOn: string | null;
|
|
407
|
+
phone: string;
|
|
406
408
|
email: string;
|
|
407
409
|
firstName: string;
|
|
408
410
|
lastName: string;
|
|
@@ -410,8 +412,8 @@ declare const CustomerMeSchema: z.ZodObject<{
|
|
|
410
412
|
role: string | null;
|
|
411
413
|
countryIsoCode: string;
|
|
412
414
|
addresses: {
|
|
413
|
-
phone: string;
|
|
414
415
|
isDefault: boolean;
|
|
416
|
+
phone: string;
|
|
415
417
|
province: string;
|
|
416
418
|
postalCode: string;
|
|
417
419
|
district: string;
|
|
@@ -444,11 +446,11 @@ declare const CustomerMeSchema: z.ZodObject<{
|
|
|
444
446
|
metadata?: unknown;
|
|
445
447
|
}, {
|
|
446
448
|
id: string;
|
|
449
|
+
storeId: string;
|
|
447
450
|
status: string;
|
|
448
|
-
phone: string;
|
|
449
|
-
updatedOn: string | null;
|
|
450
451
|
createdOn: string;
|
|
451
|
-
|
|
452
|
+
updatedOn: string | null;
|
|
453
|
+
phone: string;
|
|
452
454
|
email: string;
|
|
453
455
|
firstName: string;
|
|
454
456
|
lastName: string;
|
|
@@ -456,8 +458,8 @@ declare const CustomerMeSchema: z.ZodObject<{
|
|
|
456
458
|
role: string | null;
|
|
457
459
|
countryIsoCode: string;
|
|
458
460
|
addresses: {
|
|
459
|
-
phone: string;
|
|
460
461
|
isDefault: boolean;
|
|
462
|
+
phone: string;
|
|
461
463
|
province: string;
|
|
462
464
|
postalCode: string;
|
|
463
465
|
district: string;
|
|
@@ -633,8 +635,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
|
|
|
633
635
|
status: z.ZodString;
|
|
634
636
|
}, "strip", z.ZodTypeAny, {
|
|
635
637
|
id: string;
|
|
636
|
-
status: string;
|
|
637
638
|
productId: string | null;
|
|
639
|
+
status: string;
|
|
638
640
|
total: number;
|
|
639
641
|
quantity: number;
|
|
640
642
|
variantId: string | null;
|
|
@@ -647,8 +649,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
|
|
|
647
649
|
productHandle?: string | null | undefined;
|
|
648
650
|
}, {
|
|
649
651
|
id: string;
|
|
650
|
-
status: string;
|
|
651
652
|
productId: string | null;
|
|
653
|
+
status: string;
|
|
652
654
|
total: number;
|
|
653
655
|
quantity: number;
|
|
654
656
|
variantId: string | null;
|
|
@@ -665,8 +667,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
|
|
|
665
667
|
createdOn: string;
|
|
666
668
|
items: {
|
|
667
669
|
id: string;
|
|
668
|
-
status: string;
|
|
669
670
|
productId: string | null;
|
|
671
|
+
status: string;
|
|
670
672
|
total: number;
|
|
671
673
|
quantity: number;
|
|
672
674
|
variantId: string | null;
|
|
@@ -709,8 +711,8 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
|
|
|
709
711
|
createdOn: string;
|
|
710
712
|
items: {
|
|
711
713
|
id: string;
|
|
712
|
-
status: string;
|
|
713
714
|
productId: string | null;
|
|
715
|
+
status: string;
|
|
714
716
|
total: number;
|
|
715
717
|
quantity: number;
|
|
716
718
|
variantId: string | null;
|
|
@@ -874,8 +876,8 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
|
|
|
874
876
|
status: z.ZodString;
|
|
875
877
|
}, "strip", z.ZodTypeAny, {
|
|
876
878
|
id: string;
|
|
877
|
-
status: string;
|
|
878
879
|
productId: string | null;
|
|
880
|
+
status: string;
|
|
879
881
|
total: number;
|
|
880
882
|
quantity: number;
|
|
881
883
|
variantId: string | null;
|
|
@@ -888,8 +890,8 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
|
|
|
888
890
|
productHandle?: string | null | undefined;
|
|
889
891
|
}, {
|
|
890
892
|
id: string;
|
|
891
|
-
status: string;
|
|
892
893
|
productId: string | null;
|
|
894
|
+
status: string;
|
|
893
895
|
total: number;
|
|
894
896
|
quantity: number;
|
|
895
897
|
variantId: string | null;
|
|
@@ -951,12 +953,11 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
|
|
|
951
953
|
}, "strip", z.ZodTypeAny, {
|
|
952
954
|
id: string;
|
|
953
955
|
status: string;
|
|
954
|
-
phone: string;
|
|
955
956
|
createdOn: string;
|
|
956
957
|
items: {
|
|
957
958
|
id: string;
|
|
958
|
-
status: string;
|
|
959
959
|
productId: string | null;
|
|
960
|
+
status: string;
|
|
960
961
|
total: number;
|
|
961
962
|
quantity: number;
|
|
962
963
|
variantId: string | null;
|
|
@@ -969,6 +970,7 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
|
|
|
969
970
|
productHandle?: string | null | undefined;
|
|
970
971
|
}[];
|
|
971
972
|
total: number;
|
|
973
|
+
phone: string;
|
|
972
974
|
email: string;
|
|
973
975
|
firstName: string;
|
|
974
976
|
lastName: string;
|
|
@@ -1034,12 +1036,11 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
|
|
|
1034
1036
|
}, {
|
|
1035
1037
|
id: string;
|
|
1036
1038
|
status: string;
|
|
1037
|
-
phone: string;
|
|
1038
1039
|
createdOn: string;
|
|
1039
1040
|
items: {
|
|
1040
1041
|
id: string;
|
|
1041
|
-
status: string;
|
|
1042
1042
|
productId: string | null;
|
|
1043
|
+
status: string;
|
|
1043
1044
|
total: number;
|
|
1044
1045
|
quantity: number;
|
|
1045
1046
|
variantId: string | null;
|
|
@@ -1052,6 +1053,7 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
|
|
|
1052
1053
|
productHandle?: string | null | undefined;
|
|
1053
1054
|
}[];
|
|
1054
1055
|
total: number;
|
|
1056
|
+
phone: string;
|
|
1055
1057
|
email: string;
|
|
1056
1058
|
firstName: string;
|
|
1057
1059
|
lastName: string;
|
|
@@ -1254,8 +1256,8 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1254
1256
|
shipping: number;
|
|
1255
1257
|
subTotal: number;
|
|
1256
1258
|
isTaxInclusive: boolean;
|
|
1257
|
-
sellerId?: string | null | undefined;
|
|
1258
1259
|
productId?: string | null | undefined;
|
|
1260
|
+
sellerId?: string | null | undefined;
|
|
1259
1261
|
variantId?: string | null | undefined;
|
|
1260
1262
|
thumbnail?: string | null | undefined;
|
|
1261
1263
|
shippingProfileId?: string | null | undefined;
|
|
@@ -1263,9 +1265,9 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1263
1265
|
}, {
|
|
1264
1266
|
id: string;
|
|
1265
1267
|
title: string;
|
|
1266
|
-
sellerId?: string | null | undefined;
|
|
1267
1268
|
productId?: string | null | undefined;
|
|
1268
1269
|
total?: number | undefined;
|
|
1270
|
+
sellerId?: string | null | undefined;
|
|
1269
1271
|
quantity?: number | undefined;
|
|
1270
1272
|
variantId?: string | null | undefined;
|
|
1271
1273
|
unitPrice?: number | undefined;
|
|
@@ -1304,16 +1306,16 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1304
1306
|
scheduledTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1305
1307
|
data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1306
1308
|
}, "strip", z.ZodTypeAny, {
|
|
1309
|
+
data: Record<string, unknown>;
|
|
1307
1310
|
id: string;
|
|
1308
1311
|
name: string;
|
|
1309
|
-
data: Record<string, unknown>;
|
|
1310
1312
|
total: number;
|
|
1311
1313
|
subtotal: number;
|
|
1312
1314
|
discountTotal: number;
|
|
1313
1315
|
taxTotal: number;
|
|
1314
1316
|
isTaxInclusive: boolean;
|
|
1315
|
-
sellerId?: string | null | undefined;
|
|
1316
1317
|
description?: string | null | undefined;
|
|
1318
|
+
sellerId?: string | null | undefined;
|
|
1317
1319
|
estimatedDays?: number | null | undefined;
|
|
1318
1320
|
pickupPointId?: string | null | undefined;
|
|
1319
1321
|
scheduledDate?: string | null | undefined;
|
|
@@ -1327,11 +1329,11 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1327
1329
|
zoneCode?: string | null | undefined;
|
|
1328
1330
|
}, {
|
|
1329
1331
|
id: string;
|
|
1330
|
-
|
|
1332
|
+
data?: Record<string, unknown> | undefined;
|
|
1331
1333
|
name?: string | undefined;
|
|
1332
1334
|
description?: string | null | undefined;
|
|
1333
|
-
data?: Record<string, unknown> | undefined;
|
|
1334
1335
|
total?: number | undefined;
|
|
1336
|
+
sellerId?: string | null | undefined;
|
|
1335
1337
|
subtotal?: number | undefined;
|
|
1336
1338
|
estimatedDays?: number | null | undefined;
|
|
1337
1339
|
pickupPointId?: string | null | undefined;
|
|
@@ -1367,8 +1369,8 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1367
1369
|
shipping: number;
|
|
1368
1370
|
subTotal: number;
|
|
1369
1371
|
isTaxInclusive: boolean;
|
|
1370
|
-
sellerId?: string | null | undefined;
|
|
1371
1372
|
productId?: string | null | undefined;
|
|
1373
|
+
sellerId?: string | null | undefined;
|
|
1372
1374
|
variantId?: string | null | undefined;
|
|
1373
1375
|
thumbnail?: string | null | undefined;
|
|
1374
1376
|
shippingProfileId?: string | null | undefined;
|
|
@@ -1381,16 +1383,16 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1381
1383
|
warranty: number;
|
|
1382
1384
|
metadata: Record<string, unknown>;
|
|
1383
1385
|
shippingMethods: {
|
|
1386
|
+
data: Record<string, unknown>;
|
|
1384
1387
|
id: string;
|
|
1385
1388
|
name: string;
|
|
1386
|
-
data: Record<string, unknown>;
|
|
1387
1389
|
total: number;
|
|
1388
1390
|
subtotal: number;
|
|
1389
1391
|
discountTotal: number;
|
|
1390
1392
|
taxTotal: number;
|
|
1391
1393
|
isTaxInclusive: boolean;
|
|
1392
|
-
sellerId?: string | null | undefined;
|
|
1393
1394
|
description?: string | null | undefined;
|
|
1395
|
+
sellerId?: string | null | undefined;
|
|
1394
1396
|
estimatedDays?: number | null | undefined;
|
|
1395
1397
|
pickupPointId?: string | null | undefined;
|
|
1396
1398
|
scheduledDate?: string | null | undefined;
|
|
@@ -1409,10 +1411,10 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1409
1411
|
subTotal: number;
|
|
1410
1412
|
draftNumber: string;
|
|
1411
1413
|
allowAnonymousShareAccess: boolean;
|
|
1412
|
-
phone?: string | null | undefined;
|
|
1413
|
-
updatedOn?: string | null | undefined;
|
|
1414
|
-
createdOn?: string | undefined;
|
|
1415
1414
|
storeId?: string | undefined;
|
|
1415
|
+
createdOn?: string | undefined;
|
|
1416
|
+
updatedOn?: string | null | undefined;
|
|
1417
|
+
phone?: string | null | undefined;
|
|
1416
1418
|
email?: string | null | undefined;
|
|
1417
1419
|
firstName?: string | null | undefined;
|
|
1418
1420
|
lastName?: string | null | undefined;
|
|
@@ -1461,16 +1463,15 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1461
1463
|
id: string;
|
|
1462
1464
|
status: string;
|
|
1463
1465
|
draftNumber: string;
|
|
1464
|
-
phone?: string | null | undefined;
|
|
1465
|
-
updatedOn?: string | null | undefined;
|
|
1466
|
-
createdOn?: string | undefined;
|
|
1467
1466
|
storeId?: string | undefined;
|
|
1467
|
+
createdOn?: string | undefined;
|
|
1468
|
+
updatedOn?: string | null | undefined;
|
|
1468
1469
|
items?: {
|
|
1469
1470
|
id: string;
|
|
1470
1471
|
title: string;
|
|
1471
|
-
sellerId?: string | null | undefined;
|
|
1472
1472
|
productId?: string | null | undefined;
|
|
1473
1473
|
total?: number | undefined;
|
|
1474
|
+
sellerId?: string | null | undefined;
|
|
1474
1475
|
quantity?: number | undefined;
|
|
1475
1476
|
variantId?: string | null | undefined;
|
|
1476
1477
|
unitPrice?: number | undefined;
|
|
@@ -1487,6 +1488,7 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1487
1488
|
isTaxInclusive?: boolean | undefined;
|
|
1488
1489
|
}[] | undefined;
|
|
1489
1490
|
total?: number | undefined;
|
|
1491
|
+
phone?: string | null | undefined;
|
|
1490
1492
|
email?: string | null | undefined;
|
|
1491
1493
|
firstName?: string | null | undefined;
|
|
1492
1494
|
lastName?: string | null | undefined;
|
|
@@ -1519,11 +1521,11 @@ declare const OrderDraftSchema: z.ZodObject<{
|
|
|
1519
1521
|
metadata?: Record<string, unknown> | undefined;
|
|
1520
1522
|
shippingMethods?: {
|
|
1521
1523
|
id: string;
|
|
1522
|
-
|
|
1524
|
+
data?: Record<string, unknown> | undefined;
|
|
1523
1525
|
name?: string | undefined;
|
|
1524
1526
|
description?: string | null | undefined;
|
|
1525
|
-
data?: Record<string, unknown> | undefined;
|
|
1526
1527
|
total?: number | undefined;
|
|
1528
|
+
sellerId?: string | null | undefined;
|
|
1527
1529
|
subtotal?: number | undefined;
|
|
1528
1530
|
estimatedDays?: number | null | undefined;
|
|
1529
1531
|
pickupPointId?: string | null | undefined;
|
|
@@ -1643,19 +1645,19 @@ declare function useStoreProducts(): {
|
|
|
1643
1645
|
useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
1644
1646
|
id: string;
|
|
1645
1647
|
name: string;
|
|
1646
|
-
slug: string;
|
|
1647
1648
|
images: {
|
|
1648
1649
|
url: string;
|
|
1649
1650
|
name?: string | null | undefined;
|
|
1650
1651
|
order?: number | undefined;
|
|
1651
1652
|
}[];
|
|
1653
|
+
slug: string;
|
|
1652
1654
|
variants: {
|
|
1653
|
-
id: string;
|
|
1654
1655
|
options: {
|
|
1655
1656
|
name: string;
|
|
1656
1657
|
value: string;
|
|
1657
1658
|
key: string;
|
|
1658
1659
|
}[];
|
|
1660
|
+
id: string;
|
|
1659
1661
|
sku: string;
|
|
1660
1662
|
images: {
|
|
1661
1663
|
url: string;
|
|
@@ -1690,8 +1692,8 @@ declare function useStoreProducts(): {
|
|
|
1690
1692
|
unitPrice: number;
|
|
1691
1693
|
maxQuantity?: number | null | undefined;
|
|
1692
1694
|
}[];
|
|
1693
|
-
description?: string | null | undefined;
|
|
1694
1695
|
status?: string | null | undefined;
|
|
1696
|
+
description?: string | null | undefined;
|
|
1695
1697
|
tags?: string[] | null | undefined;
|
|
1696
1698
|
category?: string | null | undefined;
|
|
1697
1699
|
createdAt?: string | null | undefined;
|
|
@@ -1736,16 +1738,16 @@ declare function useStoreProducts(): {
|
|
|
1736
1738
|
maxPrice?: number | null | undefined;
|
|
1737
1739
|
}, Error, {
|
|
1738
1740
|
sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
|
|
1739
|
-
sellerId?: string | undefined;
|
|
1740
|
-
search?: string | undefined;
|
|
1741
1741
|
inStock?: boolean | undefined;
|
|
1742
1742
|
page?: number | undefined;
|
|
1743
1743
|
pageSize?: number | undefined;
|
|
1744
1744
|
category?: string | undefined;
|
|
1745
|
+
search?: string | undefined;
|
|
1745
1746
|
minPrice?: number | undefined;
|
|
1746
1747
|
maxPrice?: number | undefined;
|
|
1747
1748
|
productType?: string | undefined;
|
|
1748
1749
|
brand?: string | undefined;
|
|
1750
|
+
sellerId?: string | undefined;
|
|
1749
1751
|
collection?: string | undefined;
|
|
1750
1752
|
} | undefined, unknown>;
|
|
1751
1753
|
};
|
|
@@ -1757,8 +1759,8 @@ declare function useStoreCollections(): {
|
|
|
1757
1759
|
useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<{
|
|
1758
1760
|
id: string;
|
|
1759
1761
|
name: string;
|
|
1760
|
-
slug: string;
|
|
1761
1762
|
type: string;
|
|
1763
|
+
slug: string;
|
|
1762
1764
|
productCount: number;
|
|
1763
1765
|
description?: string | null | undefined;
|
|
1764
1766
|
imageUrl?: string | null | undefined;
|
|
@@ -1766,8 +1768,8 @@ declare function useStoreCollections(): {
|
|
|
1766
1768
|
useCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
|
|
1767
1769
|
id: string;
|
|
1768
1770
|
name: string;
|
|
1769
|
-
slug: string;
|
|
1770
1771
|
type: string;
|
|
1772
|
+
slug: string;
|
|
1771
1773
|
productCount: number;
|
|
1772
1774
|
description?: string | null | undefined;
|
|
1773
1775
|
imageUrl?: string | null | undefined;
|
|
@@ -1775,8 +1777,8 @@ declare function useStoreCollections(): {
|
|
|
1775
1777
|
useRefreshStorefrontCollections: () => _tanstack_react_query.UseMutationResult<{
|
|
1776
1778
|
id: string;
|
|
1777
1779
|
name: string;
|
|
1778
|
-
slug: string;
|
|
1779
1780
|
type: string;
|
|
1781
|
+
slug: string;
|
|
1780
1782
|
productCount: number;
|
|
1781
1783
|
description?: string | null | undefined;
|
|
1782
1784
|
imageUrl?: string | null | undefined;
|
|
@@ -1814,12 +1816,12 @@ declare function useStorePages(): {
|
|
|
1814
1816
|
}, zod.ZodUnknown, "strip"> | undefined;
|
|
1815
1817
|
sections?: {
|
|
1816
1818
|
id: string;
|
|
1817
|
-
type: string;
|
|
1818
1819
|
order: number;
|
|
1820
|
+
type: string;
|
|
1819
1821
|
blocks: {
|
|
1820
1822
|
id: string;
|
|
1821
|
-
type: string;
|
|
1822
1823
|
order: number;
|
|
1824
|
+
type: string;
|
|
1823
1825
|
settings?: Record<string, unknown> | undefined;
|
|
1824
1826
|
}[];
|
|
1825
1827
|
settings?: Record<string, unknown> | undefined;
|
|
@@ -1976,11 +1978,11 @@ declare function useStoreCart(): {
|
|
|
1976
1978
|
};
|
|
1977
1979
|
paymentMethods: {
|
|
1978
1980
|
methods: {
|
|
1979
|
-
isActive: boolean;
|
|
1980
|
-
name: string;
|
|
1981
1981
|
code: string;
|
|
1982
|
+
name: string;
|
|
1982
1983
|
isDefault: boolean;
|
|
1983
1984
|
sortOrder: number;
|
|
1985
|
+
isActive: boolean;
|
|
1984
1986
|
kind: string;
|
|
1985
1987
|
isManual: boolean;
|
|
1986
1988
|
description?: string | null | undefined;
|
|
@@ -2401,19 +2403,19 @@ declare function useStoreCart(): {
|
|
|
2401
2403
|
cartId: string;
|
|
2402
2404
|
}, unknown>;
|
|
2403
2405
|
useUploadPaymentReceipt: () => _tanstack_react_query.UseMutationResult<{
|
|
2404
|
-
id: string;
|
|
2405
2406
|
url: string;
|
|
2407
|
+
id: string;
|
|
2406
2408
|
}, Error, {
|
|
2407
2409
|
cartId: string;
|
|
2408
2410
|
file: File;
|
|
2409
2411
|
}, unknown>;
|
|
2410
2412
|
useGetCartPaymentMethods: (cartId?: string | null) => _tanstack_react_query.UseQueryResult<{
|
|
2411
2413
|
methods: {
|
|
2412
|
-
isActive: boolean;
|
|
2413
|
-
name: string;
|
|
2414
2414
|
code: string;
|
|
2415
|
+
name: string;
|
|
2415
2416
|
isDefault: boolean;
|
|
2416
2417
|
sortOrder: number;
|
|
2418
|
+
isActive: boolean;
|
|
2417
2419
|
kind: string;
|
|
2418
2420
|
isManual: boolean;
|
|
2419
2421
|
description?: string | null | undefined;
|
|
@@ -2620,11 +2622,6 @@ declare function useStoreCart(): {
|
|
|
2620
2622
|
}, unknown>;
|
|
2621
2623
|
};
|
|
2622
2624
|
|
|
2623
|
-
type DefaultCmsSectionsRendererProps = {
|
|
2624
|
-
sections: StorefrontPageSection[];
|
|
2625
|
-
};
|
|
2626
|
-
declare function DefaultCmsSectionsRenderer({ sections, }: DefaultCmsSectionsRendererProps): Promise<react.JSX.Element>;
|
|
2627
|
-
|
|
2628
2625
|
declare const usePublicStore: () => zod.objectOutputType<{
|
|
2629
2626
|
schemaVersion: zod.ZodNumber;
|
|
2630
2627
|
generatedAt: zod.ZodString;
|
|
@@ -2944,23 +2941,17 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
2944
2941
|
head: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2945
2942
|
bodyEnd: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2946
2943
|
}, "strip", zod.ZodTypeAny, {
|
|
2947
|
-
enabled?: boolean | undefined;
|
|
2948
2944
|
head?: string | null | undefined;
|
|
2945
|
+
enabled?: boolean | undefined;
|
|
2949
2946
|
bodyEnd?: string | null | undefined;
|
|
2950
2947
|
}, {
|
|
2951
|
-
enabled?: boolean | undefined;
|
|
2952
2948
|
head?: string | null | undefined;
|
|
2949
|
+
enabled?: boolean | undefined;
|
|
2953
2950
|
bodyEnd?: string | null | undefined;
|
|
2954
2951
|
}>>;
|
|
2955
2952
|
updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2956
2953
|
}, "strip", zod.ZodTypeAny, {
|
|
2957
|
-
|
|
2958
|
-
branding?: {
|
|
2959
|
-
logoUrl?: string | null | undefined;
|
|
2960
|
-
logoDarkUrl?: string | null | undefined;
|
|
2961
|
-
faviconUrl?: string | null | undefined;
|
|
2962
|
-
socialImageUrl?: string | null | undefined;
|
|
2963
|
-
} | undefined;
|
|
2954
|
+
updatedOn?: string | null | undefined;
|
|
2964
2955
|
seo?: {
|
|
2965
2956
|
siteName?: string | null | undefined;
|
|
2966
2957
|
metaTitle?: string | null | undefined;
|
|
@@ -2968,6 +2959,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
2968
2959
|
titleTemplate?: string | null | undefined;
|
|
2969
2960
|
robotsIndex?: boolean | undefined;
|
|
2970
2961
|
} | undefined;
|
|
2962
|
+
themeKey?: string | undefined;
|
|
2963
|
+
branding?: {
|
|
2964
|
+
logoUrl?: string | null | undefined;
|
|
2965
|
+
logoDarkUrl?: string | null | undefined;
|
|
2966
|
+
faviconUrl?: string | null | undefined;
|
|
2967
|
+
socialImageUrl?: string | null | undefined;
|
|
2968
|
+
} | undefined;
|
|
2971
2969
|
contact?: {
|
|
2972
2970
|
supportEmail?: string | null | undefined;
|
|
2973
2971
|
phone?: string | null | undefined;
|
|
@@ -2987,19 +2985,12 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
2987
2985
|
googleTagManagerContainerId?: string | null | undefined;
|
|
2988
2986
|
} | undefined;
|
|
2989
2987
|
customScripts?: {
|
|
2990
|
-
enabled?: boolean | undefined;
|
|
2991
2988
|
head?: string | null | undefined;
|
|
2989
|
+
enabled?: boolean | undefined;
|
|
2992
2990
|
bodyEnd?: string | null | undefined;
|
|
2993
2991
|
} | undefined;
|
|
2994
|
-
updatedOn?: string | null | undefined;
|
|
2995
2992
|
}, {
|
|
2996
|
-
|
|
2997
|
-
branding?: {
|
|
2998
|
-
logoUrl?: string | null | undefined;
|
|
2999
|
-
logoDarkUrl?: string | null | undefined;
|
|
3000
|
-
faviconUrl?: string | null | undefined;
|
|
3001
|
-
socialImageUrl?: string | null | undefined;
|
|
3002
|
-
} | undefined;
|
|
2993
|
+
updatedOn?: string | null | undefined;
|
|
3003
2994
|
seo?: {
|
|
3004
2995
|
siteName?: string | null | undefined;
|
|
3005
2996
|
metaTitle?: string | null | undefined;
|
|
@@ -3007,6 +2998,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3007
2998
|
titleTemplate?: string | null | undefined;
|
|
3008
2999
|
robotsIndex?: boolean | undefined;
|
|
3009
3000
|
} | undefined;
|
|
3001
|
+
themeKey?: string | undefined;
|
|
3002
|
+
branding?: {
|
|
3003
|
+
logoUrl?: string | null | undefined;
|
|
3004
|
+
logoDarkUrl?: string | null | undefined;
|
|
3005
|
+
faviconUrl?: string | null | undefined;
|
|
3006
|
+
socialImageUrl?: string | null | undefined;
|
|
3007
|
+
} | undefined;
|
|
3010
3008
|
contact?: {
|
|
3011
3009
|
supportEmail?: string | null | undefined;
|
|
3012
3010
|
phone?: string | null | undefined;
|
|
@@ -3026,11 +3024,10 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3026
3024
|
googleTagManagerContainerId?: string | null | undefined;
|
|
3027
3025
|
} | undefined;
|
|
3028
3026
|
customScripts?: {
|
|
3029
|
-
enabled?: boolean | undefined;
|
|
3030
3027
|
head?: string | null | undefined;
|
|
3028
|
+
enabled?: boolean | undefined;
|
|
3031
3029
|
bodyEnd?: string | null | undefined;
|
|
3032
3030
|
} | undefined;
|
|
3033
|
-
updatedOn?: string | null | undefined;
|
|
3034
3031
|
}>;
|
|
3035
3032
|
pages: zod.ZodArray<zod.ZodObject<{
|
|
3036
3033
|
id: zod.ZodString;
|
|
@@ -3086,13 +3083,7 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3086
3083
|
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
3087
3084
|
}, "strip", zod.ZodTypeAny, {
|
|
3088
3085
|
settings: {
|
|
3089
|
-
|
|
3090
|
-
branding?: {
|
|
3091
|
-
logoUrl?: string | null | undefined;
|
|
3092
|
-
logoDarkUrl?: string | null | undefined;
|
|
3093
|
-
faviconUrl?: string | null | undefined;
|
|
3094
|
-
socialImageUrl?: string | null | undefined;
|
|
3095
|
-
} | undefined;
|
|
3086
|
+
updatedOn?: string | null | undefined;
|
|
3096
3087
|
seo?: {
|
|
3097
3088
|
siteName?: string | null | undefined;
|
|
3098
3089
|
metaTitle?: string | null | undefined;
|
|
@@ -3100,6 +3091,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3100
3091
|
titleTemplate?: string | null | undefined;
|
|
3101
3092
|
robotsIndex?: boolean | undefined;
|
|
3102
3093
|
} | undefined;
|
|
3094
|
+
themeKey?: string | undefined;
|
|
3095
|
+
branding?: {
|
|
3096
|
+
logoUrl?: string | null | undefined;
|
|
3097
|
+
logoDarkUrl?: string | null | undefined;
|
|
3098
|
+
faviconUrl?: string | null | undefined;
|
|
3099
|
+
socialImageUrl?: string | null | undefined;
|
|
3100
|
+
} | undefined;
|
|
3103
3101
|
contact?: {
|
|
3104
3102
|
supportEmail?: string | null | undefined;
|
|
3105
3103
|
phone?: string | null | undefined;
|
|
@@ -3119,11 +3117,10 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3119
3117
|
googleTagManagerContainerId?: string | null | undefined;
|
|
3120
3118
|
} | undefined;
|
|
3121
3119
|
customScripts?: {
|
|
3122
|
-
enabled?: boolean | undefined;
|
|
3123
3120
|
head?: string | null | undefined;
|
|
3121
|
+
enabled?: boolean | undefined;
|
|
3124
3122
|
bodyEnd?: string | null | undefined;
|
|
3125
3123
|
} | undefined;
|
|
3126
|
-
updatedOn?: string | null | undefined;
|
|
3127
3124
|
};
|
|
3128
3125
|
pages: zod.objectOutputType<{
|
|
3129
3126
|
id: zod.ZodString;
|
|
@@ -3145,13 +3142,7 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3145
3142
|
}, zod.ZodTypeAny, "passthrough">[];
|
|
3146
3143
|
}, {
|
|
3147
3144
|
settings: {
|
|
3148
|
-
|
|
3149
|
-
branding?: {
|
|
3150
|
-
logoUrl?: string | null | undefined;
|
|
3151
|
-
logoDarkUrl?: string | null | undefined;
|
|
3152
|
-
faviconUrl?: string | null | undefined;
|
|
3153
|
-
socialImageUrl?: string | null | undefined;
|
|
3154
|
-
} | undefined;
|
|
3145
|
+
updatedOn?: string | null | undefined;
|
|
3155
3146
|
seo?: {
|
|
3156
3147
|
siteName?: string | null | undefined;
|
|
3157
3148
|
metaTitle?: string | null | undefined;
|
|
@@ -3159,6 +3150,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3159
3150
|
titleTemplate?: string | null | undefined;
|
|
3160
3151
|
robotsIndex?: boolean | undefined;
|
|
3161
3152
|
} | undefined;
|
|
3153
|
+
themeKey?: string | undefined;
|
|
3154
|
+
branding?: {
|
|
3155
|
+
logoUrl?: string | null | undefined;
|
|
3156
|
+
logoDarkUrl?: string | null | undefined;
|
|
3157
|
+
faviconUrl?: string | null | undefined;
|
|
3158
|
+
socialImageUrl?: string | null | undefined;
|
|
3159
|
+
} | undefined;
|
|
3162
3160
|
contact?: {
|
|
3163
3161
|
supportEmail?: string | null | undefined;
|
|
3164
3162
|
phone?: string | null | undefined;
|
|
@@ -3178,11 +3176,10 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3178
3176
|
googleTagManagerContainerId?: string | null | undefined;
|
|
3179
3177
|
} | undefined;
|
|
3180
3178
|
customScripts?: {
|
|
3181
|
-
enabled?: boolean | undefined;
|
|
3182
3179
|
head?: string | null | undefined;
|
|
3180
|
+
enabled?: boolean | undefined;
|
|
3183
3181
|
bodyEnd?: string | null | undefined;
|
|
3184
3182
|
} | undefined;
|
|
3185
|
-
updatedOn?: string | null | undefined;
|
|
3186
3183
|
};
|
|
3187
3184
|
pages: zod.objectInputType<{
|
|
3188
3185
|
id: zod.ZodString;
|
|
@@ -3205,4 +3202,4 @@ declare const usePublicStore: () => zod.objectOutputType<{
|
|
|
3205
3202
|
}>;
|
|
3206
3203
|
}, zod.ZodTypeAny, "passthrough"> | null;
|
|
3207
3204
|
|
|
3208
|
-
export { type CustomerAddress, CustomerAddressSchema, type CustomerAddressUpsert, CustomerAddressUpsertSchema, type CustomerMe, CustomerMeSchema, type CustomerOrderDetailDto as CustomerOrderDetail, type CustomerOrderDetailDto, CustomerOrderDetailSchema, type CustomerOrderListItemDto as CustomerOrderListItem, type CustomerOrderListItemDto, CustomerOrderListItemSchema, type CustomerProfilePatch, CustomerProfilePatchSchema, type CustomerRegisterRequest, CustomerRegisterRequestSchema,
|
|
3205
|
+
export { type CustomerAddress, CustomerAddressSchema, type CustomerAddressUpsert, CustomerAddressUpsertSchema, type CustomerMe, CustomerMeSchema, type CustomerOrderDetailDto as CustomerOrderDetail, type CustomerOrderDetailDto, CustomerOrderDetailSchema, type CustomerOrderListItemDto as CustomerOrderListItem, type CustomerOrderListItemDto, CustomerOrderListItemSchema, type CustomerProfilePatch, CustomerProfilePatchSchema, type CustomerRegisterRequest, CustomerRegisterRequestSchema, ECOMIQ_CLIENTS_STORE_KV_BINDING, type PublicStoreSettingsSource, StoreApiClient, type StoreApiGetOptions, addCartCoupon, buildStorefrontKvSnapshotKey, checkoutCart, createCart, createCustomerAddress, createStoreApiClient, customerMeToProfilePatch, deleteCustomerAddress, getCart, getCartCheckout, getCartPaymentMethods, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getHostname, getPublicStore, getSharedOrderDraft, getShippingOptions, getStoreApiBaseUrl, getStoreApiClient, getStorefrontCollectionBySlug, getStorefrontCollections, getStorefrontPageBySlug, getStorefrontPagePreview, getStorefrontPages, getStorefrontProductBySlug, getStorefrontProducts, getStorefrontSettings, getStorefrontSettingsFromKv, isCartNotActiveApiError, normalizeStoreHost, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartCoupon, resolvePublicStoreSettingsSource, resolveStorefrontSettingsHost, setClientStoreId, setServerRequestOrigin, setServerStoreId, storeApiClient, updateCustomerAddress, uploadPaymentReceipt, usePublicStore, useStoreCart, useStoreCollections, useStorePages, useStoreProducts };
|