@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/dist/nextjs.d.ts CHANGED
@@ -1,10 +1,10 @@
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
+ 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, h as findStorefrontCmsPageBySlug, f as signInWithEcomiqCredentials, i as useStore } from './find-storefront-cms-page-DNwLo1iV.js';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
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';
7
+ export { m as StorefrontCollection, e as StorefrontProduct, g as StorefrontProductDetail, a as StorefrontProductsParamsInput, f as StorefrontProductsResponse } from './collection-anMkdWa7.js';
8
8
  import 'zustand';
9
9
  import 'react';
10
10
  import 'better-auth/react';
@@ -43,7 +43,10 @@ type GetPublicStoreOptions = {
43
43
  /**
44
44
  * Obtiene la tienda pública: vía proxy `/api/store` o vía KV (`getCloudflareContext` + binding `ecomiq_clients_store`),
45
45
  * según `options.source` o `PUBLIC_STORE_SETTINGS_SOURCE`.
46
- * Usa el mismo criterio slug vs dominio que KV (`resolveStorefrontSettingsHost`).
46
+ *
47
+ * Identificador de tienda:
48
+ * 1. `slugStore` en `ecomiq.config.js` en la raíz del proyecto (prioridad, útil en localhost).
49
+ * 2. Si no, deriva del header `Host` (`resolveStorefrontSettingsHost`).
47
50
  */
48
51
  declare function getPublicStore(options?: GetPublicStoreOptions): Promise<PublicStoreResult>;
49
52
 
@@ -139,7 +142,12 @@ declare function resolveStorefrontSettingsHost(hostHeader: string): string;
139
142
  * - `*.ecomiq.app` → `storefront:snapshots:store:<slug>` (todo lo que va antes de `.ecomiq.app`, p. ej. `plata950`).
140
143
  * - Dominio propio (p. ej. `plata950.com`) → `storefront:snapshots:store:<dominio completo>`.
141
144
  */
145
+ declare function buildStorefrontKvSnapshotKeyFromStoreKey(storeKey: string): string;
142
146
  declare function buildStorefrontKvSnapshotKey(hostHeader: string): string;
147
+ /**
148
+ * Lee settings desde KV con clave ya resuelta (slug o dominio).
149
+ */
150
+ declare function getStorefrontSettingsFromKvByStoreKey(storeKey: string): Promise<StorefrontSettings>;
143
151
  /**
144
152
  * Lee settings desde KV (`ecomiq_clients_store`) usando la clave según el host.
145
153
  */
@@ -236,8 +244,8 @@ declare const CustomerAddressSchema: z.ZodObject<{
236
244
  longitude: z.ZodNullable<z.ZodNumber>;
237
245
  isDefault: z.ZodBoolean;
238
246
  }, "strip", z.ZodTypeAny, {
239
- isDefault: boolean;
240
247
  phone: string;
248
+ isDefault: boolean;
241
249
  province: string;
242
250
  postalCode: string;
243
251
  district: string;
@@ -252,8 +260,8 @@ declare const CustomerAddressSchema: z.ZodObject<{
252
260
  department: string;
253
261
  id?: string | undefined;
254
262
  }, {
255
- isDefault: boolean;
256
263
  phone: string;
264
+ isDefault: boolean;
257
265
  province: string;
258
266
  postalCode: string;
259
267
  district: string;
@@ -287,8 +295,8 @@ declare const CustomerAddressUpsertSchema: z.ZodObject<Omit<{
287
295
  longitude: z.ZodNullable<z.ZodNumber>;
288
296
  isDefault: z.ZodBoolean;
289
297
  }, "id">, "strip", z.ZodTypeAny, {
290
- isDefault: boolean;
291
298
  phone: string;
299
+ isDefault: boolean;
292
300
  province: string;
293
301
  postalCode: string;
294
302
  district: string;
@@ -302,8 +310,8 @@ declare const CustomerAddressUpsertSchema: z.ZodObject<Omit<{
302
310
  cellPhone: string;
303
311
  department: string;
304
312
  }, {
305
- isDefault: boolean;
306
313
  phone: string;
314
+ isDefault: boolean;
307
315
  province: string;
308
316
  postalCode: string;
309
317
  district: string;
@@ -364,8 +372,8 @@ declare const CustomerMeSchema: z.ZodObject<{
364
372
  longitude: z.ZodNullable<z.ZodNumber>;
365
373
  isDefault: z.ZodBoolean;
366
374
  }, "strip", z.ZodTypeAny, {
367
- isDefault: boolean;
368
375
  phone: string;
376
+ isDefault: boolean;
369
377
  province: string;
370
378
  postalCode: string;
371
379
  district: string;
@@ -380,8 +388,8 @@ declare const CustomerMeSchema: z.ZodObject<{
380
388
  department: string;
381
389
  id?: string | undefined;
382
390
  }, {
383
- isDefault: boolean;
384
391
  phone: string;
392
+ isDefault: boolean;
385
393
  province: string;
386
394
  postalCode: string;
387
395
  district: string;
@@ -399,12 +407,12 @@ declare const CustomerMeSchema: z.ZodObject<{
399
407
  createdOn: z.ZodString;
400
408
  updatedOn: z.ZodNullable<z.ZodString>;
401
409
  }, "strip", z.ZodTypeAny, {
402
- id: string;
403
- storeId: string;
404
410
  status: string;
405
- createdOn: string;
406
- updatedOn: string | null;
407
411
  phone: string;
412
+ updatedOn: string | null;
413
+ id: string;
414
+ createdOn: string;
415
+ storeId: string;
408
416
  email: string;
409
417
  firstName: string;
410
418
  lastName: string;
@@ -412,8 +420,8 @@ declare const CustomerMeSchema: z.ZodObject<{
412
420
  role: string | null;
413
421
  countryIsoCode: string;
414
422
  addresses: {
415
- isDefault: boolean;
416
423
  phone: string;
424
+ isDefault: boolean;
417
425
  province: string;
418
426
  postalCode: string;
419
427
  district: string;
@@ -445,12 +453,12 @@ declare const CustomerMeSchema: z.ZodObject<{
445
453
  loyaltyPoints: number;
446
454
  metadata?: unknown;
447
455
  }, {
448
- id: string;
449
- storeId: string;
450
456
  status: string;
451
- createdOn: string;
452
- updatedOn: string | null;
453
457
  phone: string;
458
+ updatedOn: string | null;
459
+ id: string;
460
+ createdOn: string;
461
+ storeId: string;
454
462
  email: string;
455
463
  firstName: string;
456
464
  lastName: string;
@@ -458,8 +466,8 @@ declare const CustomerMeSchema: z.ZodObject<{
458
466
  role: string | null;
459
467
  countryIsoCode: string;
460
468
  addresses: {
461
- isDefault: boolean;
462
469
  phone: string;
470
+ isDefault: boolean;
463
471
  province: string;
464
472
  postalCode: string;
465
473
  district: string;
@@ -634,9 +642,9 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
634
642
  total: z.ZodNumber;
635
643
  status: z.ZodString;
636
644
  }, "strip", z.ZodTypeAny, {
645
+ status: string;
637
646
  id: string;
638
647
  productId: string | null;
639
- status: string;
640
648
  total: number;
641
649
  quantity: number;
642
650
  variantId: string | null;
@@ -648,9 +656,9 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
648
656
  variantTitle?: string | null | undefined;
649
657
  productHandle?: string | null | undefined;
650
658
  }, {
659
+ status: string;
651
660
  id: string;
652
661
  productId: string | null;
653
- status: string;
654
662
  total: number;
655
663
  quantity: number;
656
664
  variantId: string | null;
@@ -666,9 +674,9 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
666
674
  status: string;
667
675
  createdOn: string;
668
676
  items: {
677
+ status: string;
669
678
  id: string;
670
679
  productId: string | null;
671
- status: string;
672
680
  total: number;
673
681
  quantity: number;
674
682
  variantId: string | null;
@@ -710,9 +718,9 @@ declare const CustomerOrderListItemSchema: z.ZodObject<{
710
718
  status: string;
711
719
  createdOn: string;
712
720
  items: {
721
+ status: string;
713
722
  id: string;
714
723
  productId: string | null;
715
- status: string;
716
724
  total: number;
717
725
  quantity: number;
718
726
  variantId: string | null;
@@ -875,9 +883,9 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
875
883
  total: z.ZodNumber;
876
884
  status: z.ZodString;
877
885
  }, "strip", z.ZodTypeAny, {
886
+ status: string;
878
887
  id: string;
879
888
  productId: string | null;
880
- status: string;
881
889
  total: number;
882
890
  quantity: number;
883
891
  variantId: string | null;
@@ -889,9 +897,9 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
889
897
  variantTitle?: string | null | undefined;
890
898
  productHandle?: string | null | undefined;
891
899
  }, {
900
+ status: string;
892
901
  id: string;
893
902
  productId: string | null;
894
- status: string;
895
903
  total: number;
896
904
  quantity: number;
897
905
  variantId: string | null;
@@ -951,13 +959,14 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
951
959
  description?: string | null | undefined;
952
960
  }>, "many">;
953
961
  }, "strip", z.ZodTypeAny, {
954
- id: string;
955
962
  status: string;
963
+ phone: string;
964
+ id: string;
956
965
  createdOn: string;
957
966
  items: {
967
+ status: string;
958
968
  id: string;
959
969
  productId: string | null;
960
- status: string;
961
970
  total: number;
962
971
  quantity: number;
963
972
  variantId: string | null;
@@ -970,7 +979,6 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
970
979
  productHandle?: string | null | undefined;
971
980
  }[];
972
981
  total: number;
973
- phone: string;
974
982
  email: string;
975
983
  firstName: string;
976
984
  lastName: string;
@@ -1034,13 +1042,14 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
1034
1042
  shippingAddressSummary?: string | null | undefined;
1035
1043
  paymentAt?: string | null | undefined;
1036
1044
  }, {
1037
- id: string;
1038
1045
  status: string;
1046
+ phone: string;
1047
+ id: string;
1039
1048
  createdOn: string;
1040
1049
  items: {
1050
+ status: string;
1041
1051
  id: string;
1042
1052
  productId: string | null;
1043
- status: string;
1044
1053
  total: number;
1045
1054
  quantity: number;
1046
1055
  variantId: string | null;
@@ -1053,7 +1062,6 @@ declare const CustomerOrderDetailSchema: z.ZodObject<{
1053
1062
  productHandle?: string | null | undefined;
1054
1063
  }[];
1055
1064
  total: number;
1056
- phone: string;
1057
1065
  email: string;
1058
1066
  firstName: string;
1059
1067
  lastName: string;
@@ -1256,8 +1264,8 @@ declare const OrderDraftSchema: z.ZodObject<{
1256
1264
  shipping: number;
1257
1265
  subTotal: number;
1258
1266
  isTaxInclusive: boolean;
1259
- productId?: string | null | undefined;
1260
1267
  sellerId?: string | null | undefined;
1268
+ productId?: string | null | undefined;
1261
1269
  variantId?: string | null | undefined;
1262
1270
  thumbnail?: string | null | undefined;
1263
1271
  shippingProfileId?: string | null | undefined;
@@ -1265,9 +1273,9 @@ declare const OrderDraftSchema: z.ZodObject<{
1265
1273
  }, {
1266
1274
  id: string;
1267
1275
  title: string;
1276
+ sellerId?: string | null | undefined;
1268
1277
  productId?: string | null | undefined;
1269
1278
  total?: number | undefined;
1270
- sellerId?: string | null | undefined;
1271
1279
  quantity?: number | undefined;
1272
1280
  variantId?: string | null | undefined;
1273
1281
  unitPrice?: number | undefined;
@@ -1306,9 +1314,9 @@ declare const OrderDraftSchema: z.ZodObject<{
1306
1314
  scheduledTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
1315
  data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1308
1316
  }, "strip", z.ZodTypeAny, {
1309
- data: Record<string, unknown>;
1310
- id: string;
1311
1317
  name: string;
1318
+ id: string;
1319
+ data: Record<string, unknown>;
1312
1320
  total: number;
1313
1321
  subtotal: number;
1314
1322
  discountTotal: number;
@@ -1329,11 +1337,11 @@ declare const OrderDraftSchema: z.ZodObject<{
1329
1337
  zoneCode?: string | null | undefined;
1330
1338
  }, {
1331
1339
  id: string;
1332
- data?: Record<string, unknown> | undefined;
1333
1340
  name?: string | undefined;
1334
1341
  description?: string | null | undefined;
1335
- total?: number | undefined;
1342
+ data?: Record<string, unknown> | undefined;
1336
1343
  sellerId?: string | null | undefined;
1344
+ total?: number | undefined;
1337
1345
  subtotal?: number | undefined;
1338
1346
  estimatedDays?: number | null | undefined;
1339
1347
  pickupPointId?: string | null | undefined;
@@ -1353,8 +1361,8 @@ declare const OrderDraftSchema: z.ZodObject<{
1353
1361
  createdOn: z.ZodOptional<z.ZodString>;
1354
1362
  updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1355
1363
  }, "strip", z.ZodTypeAny, {
1356
- id: string;
1357
1364
  status: string;
1365
+ id: string;
1358
1366
  items: {
1359
1367
  id: string;
1360
1368
  total: number;
@@ -1369,8 +1377,8 @@ declare const OrderDraftSchema: z.ZodObject<{
1369
1377
  shipping: number;
1370
1378
  subTotal: number;
1371
1379
  isTaxInclusive: boolean;
1372
- productId?: string | null | undefined;
1373
1380
  sellerId?: string | null | undefined;
1381
+ productId?: string | null | undefined;
1374
1382
  variantId?: string | null | undefined;
1375
1383
  thumbnail?: string | null | undefined;
1376
1384
  shippingProfileId?: string | null | undefined;
@@ -1383,9 +1391,9 @@ declare const OrderDraftSchema: z.ZodObject<{
1383
1391
  warranty: number;
1384
1392
  metadata: Record<string, unknown>;
1385
1393
  shippingMethods: {
1386
- data: Record<string, unknown>;
1387
- id: string;
1388
1394
  name: string;
1395
+ id: string;
1396
+ data: Record<string, unknown>;
1389
1397
  total: number;
1390
1398
  subtotal: number;
1391
1399
  discountTotal: number;
@@ -1411,10 +1419,10 @@ declare const OrderDraftSchema: z.ZodObject<{
1411
1419
  subTotal: number;
1412
1420
  draftNumber: string;
1413
1421
  allowAnonymousShareAccess: boolean;
1414
- storeId?: string | undefined;
1415
- createdOn?: string | undefined;
1416
- updatedOn?: string | null | undefined;
1417
1422
  phone?: string | null | undefined;
1423
+ updatedOn?: string | null | undefined;
1424
+ createdOn?: string | undefined;
1425
+ storeId?: string | undefined;
1418
1426
  email?: string | null | undefined;
1419
1427
  firstName?: string | null | undefined;
1420
1428
  lastName?: string | null | undefined;
@@ -1460,18 +1468,19 @@ declare const OrderDraftSchema: z.ZodObject<{
1460
1468
  shareExpiresAt?: string | null | undefined;
1461
1469
  sharedAt?: string | null | undefined;
1462
1470
  }, {
1463
- id: string;
1464
1471
  status: string;
1472
+ id: string;
1465
1473
  draftNumber: string;
1466
- storeId?: string | undefined;
1467
- createdOn?: string | undefined;
1474
+ phone?: string | null | undefined;
1468
1475
  updatedOn?: string | null | undefined;
1476
+ createdOn?: string | undefined;
1477
+ storeId?: string | undefined;
1469
1478
  items?: {
1470
1479
  id: string;
1471
1480
  title: string;
1481
+ sellerId?: string | null | undefined;
1472
1482
  productId?: string | null | undefined;
1473
1483
  total?: number | undefined;
1474
- sellerId?: string | null | undefined;
1475
1484
  quantity?: number | undefined;
1476
1485
  variantId?: string | null | undefined;
1477
1486
  unitPrice?: number | undefined;
@@ -1488,7 +1497,6 @@ declare const OrderDraftSchema: z.ZodObject<{
1488
1497
  isTaxInclusive?: boolean | undefined;
1489
1498
  }[] | undefined;
1490
1499
  total?: number | undefined;
1491
- phone?: string | null | undefined;
1492
1500
  email?: string | null | undefined;
1493
1501
  firstName?: string | null | undefined;
1494
1502
  lastName?: string | null | undefined;
@@ -1521,11 +1529,11 @@ declare const OrderDraftSchema: z.ZodObject<{
1521
1529
  metadata?: Record<string, unknown> | undefined;
1522
1530
  shippingMethods?: {
1523
1531
  id: string;
1524
- data?: Record<string, unknown> | undefined;
1525
1532
  name?: string | undefined;
1526
1533
  description?: string | null | undefined;
1527
- total?: number | undefined;
1534
+ data?: Record<string, unknown> | undefined;
1528
1535
  sellerId?: string | null | undefined;
1536
+ total?: number | undefined;
1529
1537
  subtotal?: number | undefined;
1530
1538
  estimatedDays?: number | null | undefined;
1531
1539
  pickupPointId?: string | null | undefined;
@@ -1586,8 +1594,8 @@ declare function useStoreProducts(): {
1586
1594
  totalCount: number;
1587
1595
  totalPages: number;
1588
1596
  products: {
1589
- id: string;
1590
1597
  name: string;
1598
+ id: string;
1591
1599
  slug: string;
1592
1600
  price: number;
1593
1601
  variantCount: number;
@@ -1619,8 +1627,8 @@ declare function useStoreProducts(): {
1619
1627
  totalCount: number;
1620
1628
  totalPages: number;
1621
1629
  products: {
1622
- id: string;
1623
1630
  name: string;
1631
+ id: string;
1624
1632
  slug: string;
1625
1633
  price: number;
1626
1634
  variantCount: number;
@@ -1643,18 +1651,18 @@ declare function useStoreProducts(): {
1643
1651
  maxPrice?: number | null | undefined;
1644
1652
  }, unknown>, Error>;
1645
1653
  useProductBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1646
- id: string;
1647
1654
  name: string;
1655
+ id: string;
1656
+ slug: string;
1648
1657
  images: {
1649
1658
  url: string;
1650
1659
  name?: string | null | undefined;
1651
1660
  order?: number | undefined;
1652
1661
  }[];
1653
- slug: string;
1654
1662
  variants: {
1655
1663
  options: {
1656
- name: string;
1657
1664
  value: string;
1665
+ name: string;
1658
1666
  key: string;
1659
1667
  }[];
1660
1668
  id: string;
@@ -1714,8 +1722,8 @@ declare function useStoreProducts(): {
1714
1722
  totalCount: number;
1715
1723
  totalPages: number;
1716
1724
  products: {
1717
- id: string;
1718
1725
  name: string;
1726
+ id: string;
1719
1727
  slug: string;
1720
1728
  price: number;
1721
1729
  variantCount: number;
@@ -1738,6 +1746,7 @@ declare function useStoreProducts(): {
1738
1746
  maxPrice?: number | null | undefined;
1739
1747
  }, Error, {
1740
1748
  sort?: "price_asc" | "price_desc" | "name_asc" | "name_desc" | "newest" | undefined;
1749
+ sellerId?: string | undefined;
1741
1750
  inStock?: boolean | undefined;
1742
1751
  page?: number | undefined;
1743
1752
  pageSize?: number | undefined;
@@ -1747,7 +1756,6 @@ declare function useStoreProducts(): {
1747
1756
  maxPrice?: number | undefined;
1748
1757
  productType?: string | undefined;
1749
1758
  brand?: string | undefined;
1750
- sellerId?: string | undefined;
1751
1759
  collection?: string | undefined;
1752
1760
  } | undefined, unknown>;
1753
1761
  };
@@ -1757,27 +1765,27 @@ declare function useStoreProducts(): {
1757
1765
  */
1758
1766
  declare function useStoreCollections(): {
1759
1767
  useStorefrontCollectionsList: () => _tanstack_react_query.UseQueryResult<{
1760
- id: string;
1761
- name: string;
1762
1768
  type: string;
1769
+ name: string;
1770
+ id: string;
1763
1771
  slug: string;
1764
1772
  productCount: number;
1765
1773
  description?: string | null | undefined;
1766
1774
  imageUrl?: string | null | undefined;
1767
1775
  }[], Error>;
1768
1776
  useCollectionBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1769
- id: string;
1770
- name: string;
1771
1777
  type: string;
1778
+ name: string;
1779
+ id: string;
1772
1780
  slug: string;
1773
1781
  productCount: number;
1774
1782
  description?: string | null | undefined;
1775
1783
  imageUrl?: string | null | undefined;
1776
1784
  }, Error>;
1777
1785
  useRefreshStorefrontCollections: () => _tanstack_react_query.UseMutationResult<{
1778
- id: string;
1779
- name: string;
1780
1786
  type: string;
1787
+ name: string;
1788
+ id: string;
1781
1789
  slug: string;
1782
1790
  productCount: number;
1783
1791
  description?: string | null | undefined;
@@ -1790,14 +1798,14 @@ declare function useStoreCollections(): {
1790
1798
  */
1791
1799
  declare function useStorePages(): {
1792
1800
  useStorefrontPagesList: () => _tanstack_react_query.UseQueryResult<{
1793
- id: string;
1794
1801
  name: string;
1802
+ id: string;
1795
1803
  slug: string;
1796
1804
  layout: string;
1797
1805
  }[], Error>;
1798
1806
  usePageBySlug: (slug: string) => _tanstack_react_query.UseQueryResult<{
1799
- id: string;
1800
1807
  name: string;
1808
+ id: string;
1801
1809
  slug: string;
1802
1810
  layout: string;
1803
1811
  settings?: zod.objectOutputType<{
@@ -1815,21 +1823,21 @@ declare function useStorePages(): {
1815
1823
  title: zod.ZodOptional<zod.ZodString>;
1816
1824
  }, zod.ZodUnknown, "strip"> | undefined;
1817
1825
  sections?: {
1826
+ type: string;
1818
1827
  id: string;
1819
1828
  order: number;
1820
- type: string;
1821
1829
  blocks: {
1830
+ type: string;
1822
1831
  id: string;
1823
1832
  order: number;
1824
- type: string;
1825
1833
  settings?: Record<string, unknown> | undefined;
1826
1834
  }[];
1827
1835
  settings?: Record<string, unknown> | undefined;
1828
1836
  }[] | undefined;
1829
1837
  }, Error>;
1830
1838
  useRefreshStorefrontPages: () => _tanstack_react_query.UseMutationResult<{
1831
- id: string;
1832
1839
  name: string;
1840
+ id: string;
1833
1841
  slug: string;
1834
1842
  layout: string;
1835
1843
  }[], Error, void, unknown>;
@@ -1980,9 +1988,9 @@ declare function useStoreCart(): {
1980
1988
  methods: {
1981
1989
  code: string;
1982
1990
  name: string;
1991
+ isActive: boolean;
1983
1992
  isDefault: boolean;
1984
1993
  sortOrder: number;
1985
- isActive: boolean;
1986
1994
  kind: string;
1987
1995
  isManual: boolean;
1988
1996
  description?: string | null | undefined;
@@ -2403,8 +2411,8 @@ declare function useStoreCart(): {
2403
2411
  cartId: string;
2404
2412
  }, unknown>;
2405
2413
  useUploadPaymentReceipt: () => _tanstack_react_query.UseMutationResult<{
2406
- url: string;
2407
2414
  id: string;
2415
+ url: string;
2408
2416
  }, Error, {
2409
2417
  cartId: string;
2410
2418
  file: File;
@@ -2413,9 +2421,9 @@ declare function useStoreCart(): {
2413
2421
  methods: {
2414
2422
  code: string;
2415
2423
  name: string;
2424
+ isActive: boolean;
2416
2425
  isDefault: boolean;
2417
2426
  sortOrder: number;
2418
- isActive: boolean;
2419
2427
  kind: string;
2420
2428
  isManual: boolean;
2421
2429
  description?: string | null | undefined;
@@ -2941,24 +2949,16 @@ declare const usePublicStore: () => zod.objectOutputType<{
2941
2949
  head: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2942
2950
  bodyEnd: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2943
2951
  }, "strip", zod.ZodTypeAny, {
2944
- head?: string | null | undefined;
2945
2952
  enabled?: boolean | undefined;
2953
+ head?: string | null | undefined;
2946
2954
  bodyEnd?: string | null | undefined;
2947
2955
  }, {
2948
- head?: string | null | undefined;
2949
2956
  enabled?: boolean | undefined;
2957
+ head?: string | null | undefined;
2950
2958
  bodyEnd?: string | null | undefined;
2951
2959
  }>>;
2952
2960
  updatedOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2953
2961
  }, "strip", zod.ZodTypeAny, {
2954
- updatedOn?: string | null | undefined;
2955
- seo?: {
2956
- siteName?: string | null | undefined;
2957
- metaTitle?: string | null | undefined;
2958
- metaDescription?: string | null | undefined;
2959
- titleTemplate?: string | null | undefined;
2960
- robotsIndex?: boolean | undefined;
2961
- } | undefined;
2962
2962
  themeKey?: string | undefined;
2963
2963
  branding?: {
2964
2964
  logoUrl?: string | null | undefined;
@@ -2966,6 +2966,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
2966
2966
  faviconUrl?: string | null | undefined;
2967
2967
  socialImageUrl?: string | null | undefined;
2968
2968
  } | undefined;
2969
+ seo?: {
2970
+ siteName?: string | null | undefined;
2971
+ metaTitle?: string | null | undefined;
2972
+ metaDescription?: string | null | undefined;
2973
+ titleTemplate?: string | null | undefined;
2974
+ robotsIndex?: boolean | undefined;
2975
+ } | undefined;
2969
2976
  contact?: {
2970
2977
  supportEmail?: string | null | undefined;
2971
2978
  phone?: string | null | undefined;
@@ -2985,19 +2992,12 @@ declare const usePublicStore: () => zod.objectOutputType<{
2985
2992
  googleTagManagerContainerId?: string | null | undefined;
2986
2993
  } | undefined;
2987
2994
  customScripts?: {
2988
- head?: string | null | undefined;
2989
2995
  enabled?: boolean | undefined;
2996
+ head?: string | null | undefined;
2990
2997
  bodyEnd?: string | null | undefined;
2991
2998
  } | undefined;
2992
- }, {
2993
2999
  updatedOn?: string | null | undefined;
2994
- seo?: {
2995
- siteName?: string | null | undefined;
2996
- metaTitle?: string | null | undefined;
2997
- metaDescription?: string | null | undefined;
2998
- titleTemplate?: string | null | undefined;
2999
- robotsIndex?: boolean | undefined;
3000
- } | undefined;
3000
+ }, {
3001
3001
  themeKey?: string | undefined;
3002
3002
  branding?: {
3003
3003
  logoUrl?: string | null | undefined;
@@ -3005,6 +3005,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
3005
3005
  faviconUrl?: string | null | undefined;
3006
3006
  socialImageUrl?: string | null | undefined;
3007
3007
  } | undefined;
3008
+ seo?: {
3009
+ siteName?: string | null | undefined;
3010
+ metaTitle?: string | null | undefined;
3011
+ metaDescription?: string | null | undefined;
3012
+ titleTemplate?: string | null | undefined;
3013
+ robotsIndex?: boolean | undefined;
3014
+ } | undefined;
3008
3015
  contact?: {
3009
3016
  supportEmail?: string | null | undefined;
3010
3017
  phone?: string | null | undefined;
@@ -3024,10 +3031,11 @@ declare const usePublicStore: () => zod.objectOutputType<{
3024
3031
  googleTagManagerContainerId?: string | null | undefined;
3025
3032
  } | undefined;
3026
3033
  customScripts?: {
3027
- head?: string | null | undefined;
3028
3034
  enabled?: boolean | undefined;
3035
+ head?: string | null | undefined;
3029
3036
  bodyEnd?: string | null | undefined;
3030
3037
  } | undefined;
3038
+ updatedOn?: string | null | undefined;
3031
3039
  }>;
3032
3040
  pages: zod.ZodArray<zod.ZodObject<{
3033
3041
  id: zod.ZodString;
@@ -3083,14 +3091,6 @@ declare const usePublicStore: () => zod.objectOutputType<{
3083
3091
  }, zod.ZodTypeAny, "passthrough">>, "many">;
3084
3092
  }, "strip", zod.ZodTypeAny, {
3085
3093
  settings: {
3086
- updatedOn?: string | null | undefined;
3087
- seo?: {
3088
- siteName?: string | null | undefined;
3089
- metaTitle?: string | null | undefined;
3090
- metaDescription?: string | null | undefined;
3091
- titleTemplate?: string | null | undefined;
3092
- robotsIndex?: boolean | undefined;
3093
- } | undefined;
3094
3094
  themeKey?: string | undefined;
3095
3095
  branding?: {
3096
3096
  logoUrl?: string | null | undefined;
@@ -3098,6 +3098,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
3098
3098
  faviconUrl?: string | null | undefined;
3099
3099
  socialImageUrl?: string | null | undefined;
3100
3100
  } | undefined;
3101
+ seo?: {
3102
+ siteName?: string | null | undefined;
3103
+ metaTitle?: string | null | undefined;
3104
+ metaDescription?: string | null | undefined;
3105
+ titleTemplate?: string | null | undefined;
3106
+ robotsIndex?: boolean | undefined;
3107
+ } | undefined;
3101
3108
  contact?: {
3102
3109
  supportEmail?: string | null | undefined;
3103
3110
  phone?: string | null | undefined;
@@ -3117,10 +3124,11 @@ declare const usePublicStore: () => zod.objectOutputType<{
3117
3124
  googleTagManagerContainerId?: string | null | undefined;
3118
3125
  } | undefined;
3119
3126
  customScripts?: {
3120
- head?: string | null | undefined;
3121
3127
  enabled?: boolean | undefined;
3128
+ head?: string | null | undefined;
3122
3129
  bodyEnd?: string | null | undefined;
3123
3130
  } | undefined;
3131
+ updatedOn?: string | null | undefined;
3124
3132
  };
3125
3133
  pages: zod.objectOutputType<{
3126
3134
  id: zod.ZodString;
@@ -3142,14 +3150,6 @@ declare const usePublicStore: () => zod.objectOutputType<{
3142
3150
  }, zod.ZodTypeAny, "passthrough">[];
3143
3151
  }, {
3144
3152
  settings: {
3145
- updatedOn?: string | null | undefined;
3146
- seo?: {
3147
- siteName?: string | null | undefined;
3148
- metaTitle?: string | null | undefined;
3149
- metaDescription?: string | null | undefined;
3150
- titleTemplate?: string | null | undefined;
3151
- robotsIndex?: boolean | undefined;
3152
- } | undefined;
3153
3153
  themeKey?: string | undefined;
3154
3154
  branding?: {
3155
3155
  logoUrl?: string | null | undefined;
@@ -3157,6 +3157,13 @@ declare const usePublicStore: () => zod.objectOutputType<{
3157
3157
  faviconUrl?: string | null | undefined;
3158
3158
  socialImageUrl?: string | null | undefined;
3159
3159
  } | undefined;
3160
+ seo?: {
3161
+ siteName?: string | null | undefined;
3162
+ metaTitle?: string | null | undefined;
3163
+ metaDescription?: string | null | undefined;
3164
+ titleTemplate?: string | null | undefined;
3165
+ robotsIndex?: boolean | undefined;
3166
+ } | undefined;
3160
3167
  contact?: {
3161
3168
  supportEmail?: string | null | undefined;
3162
3169
  phone?: string | null | undefined;
@@ -3176,10 +3183,11 @@ declare const usePublicStore: () => zod.objectOutputType<{
3176
3183
  googleTagManagerContainerId?: string | null | undefined;
3177
3184
  } | undefined;
3178
3185
  customScripts?: {
3179
- head?: string | null | undefined;
3180
3186
  enabled?: boolean | undefined;
3187
+ head?: string | null | undefined;
3181
3188
  bodyEnd?: string | null | undefined;
3182
3189
  } | undefined;
3190
+ updatedOn?: string | null | undefined;
3183
3191
  };
3184
3192
  pages: zod.objectInputType<{
3185
3193
  id: zod.ZodString;
@@ -3202,4 +3210,4 @@ declare const usePublicStore: () => zod.objectOutputType<{
3202
3210
  }>;
3203
3211
  }, zod.ZodTypeAny, "passthrough"> | null;
3204
3212
 
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 };
3213
+ 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, buildStorefrontKvSnapshotKeyFromStoreKey, 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, getStorefrontSettingsFromKvByStoreKey, isCartNotActiveApiError, normalizeStoreHost, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartCoupon, resolvePublicStoreSettingsSource, resolveStorefrontSettingsHost, setClientStoreId, setServerRequestOrigin, setServerStoreId, storeApiClient, updateCustomerAddress, uploadPaymentReceipt, usePublicStore, useStoreCart, useStoreCollections, useStorePages, useStoreProducts };