@instockng/storefront-ui 1.0.68 → 1.0.70

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.
Files changed (234) hide show
  1. package/dist/index100.mjs +32 -42
  2. package/dist/index101.mjs +2 -2
  3. package/dist/index102.mjs +2 -2
  4. package/dist/index103.mjs +2 -28
  5. package/dist/index104.mjs +26 -16
  6. package/dist/index105.mjs +13 -210
  7. package/dist/index106.mjs +194 -159
  8. package/dist/index107.mjs +175 -17
  9. package/dist/index108.mjs +14 -15
  10. package/dist/index109.mjs +15 -25
  11. package/dist/index110.mjs +27 -150
  12. package/dist/index111.mjs +151 -15
  13. package/dist/index112.mjs +13 -24
  14. package/dist/index113.mjs +22 -75
  15. package/dist/index114.mjs +76 -30
  16. package/dist/index115.mjs +32 -139
  17. package/dist/index116.mjs +135 -45
  18. package/dist/index117.mjs +51 -19
  19. package/dist/index118.mjs +15 -19
  20. package/dist/index119.mjs +21 -17
  21. package/dist/index120.mjs +16 -18
  22. package/dist/index121.mjs +17 -13
  23. package/dist/index122.mjs +13 -14
  24. package/dist/index123.mjs +13 -12
  25. package/dist/index124.mjs +14 -58
  26. package/dist/index125.mjs +57 -10
  27. package/dist/index126.mjs +11 -32
  28. package/dist/index127.mjs +32 -17
  29. package/dist/index128.mjs +17 -27
  30. package/dist/index129.mjs +26 -19
  31. package/dist/index130.mjs +20 -12
  32. package/dist/index131.mjs +12 -14
  33. package/dist/index132.mjs +14 -40
  34. package/dist/index133.mjs +40 -16
  35. package/dist/index134.mjs +16 -261
  36. package/dist/index135.mjs +262 -64
  37. package/dist/index136.mjs +69 -7
  38. package/dist/index137.mjs +8 -2
  39. package/dist/index138.mjs +2 -2
  40. package/dist/index139.mjs +2 -33
  41. package/dist/index140.mjs +33 -2
  42. package/dist/index141.mjs +2 -21
  43. package/dist/index142.mjs +19 -54
  44. package/dist/index143.mjs +55 -28
  45. package/dist/index144.mjs +28 -6
  46. package/dist/index145.mjs +6 -51
  47. package/dist/index146.mjs +51 -5
  48. package/dist/index147.mjs +6 -12
  49. package/dist/index148.mjs +12 -7
  50. package/dist/index149.mjs +6 -27
  51. package/dist/index150.mjs +28 -2
  52. package/dist/index151.mjs +2 -70
  53. package/dist/index152.mjs +67 -164
  54. package/dist/index153.mjs +167 -2
  55. package/dist/index154.mjs +2 -2
  56. package/dist/index155.mjs +2 -2
  57. package/dist/index156.mjs +2 -18
  58. package/dist/index157.mjs +2 -32
  59. package/dist/index158.mjs +14 -34
  60. package/dist/index159.mjs +25 -11
  61. package/dist/index160.mjs +34 -14
  62. package/dist/index161.mjs +18 -2
  63. package/dist/index162.mjs +11 -13
  64. package/dist/index163.mjs +2 -46
  65. package/dist/index164.mjs +20 -2
  66. package/dist/index165.mjs +41 -25
  67. package/dist/index166.mjs +2 -18
  68. package/dist/index167.mjs +30 -2
  69. package/dist/index168.mjs +18 -2
  70. package/dist/index169.mjs +2 -2
  71. package/dist/index170.mjs +2 -2
  72. package/dist/index171.mjs +2 -72
  73. package/dist/index172.mjs +2 -2
  74. package/dist/index173.mjs +59 -40
  75. package/dist/index175.mjs +48 -31
  76. package/dist/index176.mjs +2 -152
  77. package/dist/index177.mjs +36 -2
  78. package/dist/index178.mjs +152 -2
  79. package/dist/index179.mjs +2 -19
  80. package/dist/index180.mjs +2 -2
  81. package/dist/index181.mjs +19 -2
  82. package/dist/index182.mjs +2 -26
  83. package/dist/index183.mjs +2 -2
  84. package/dist/index184.mjs +26 -2
  85. package/dist/index185.mjs +2 -24
  86. package/dist/index186.mjs +2 -23
  87. package/dist/index187.mjs +24 -2
  88. package/dist/index188.mjs +23 -2
  89. package/dist/index189.mjs +2 -2
  90. package/dist/index190.mjs +2 -23
  91. package/dist/index192.mjs +16 -16
  92. package/dist/index193.mjs +2 -2
  93. package/dist/index194.mjs +23 -2
  94. package/dist/index195.mjs +2 -2
  95. package/dist/index196.mjs +2 -23
  96. package/dist/index197.mjs +2 -2
  97. package/dist/index198.mjs +15 -15
  98. package/dist/index200.mjs +23 -2
  99. package/dist/index201.mjs +2 -2
  100. package/dist/index202.mjs +2 -2
  101. package/dist/index203.mjs +2 -2
  102. package/dist/index205.mjs +2 -2
  103. package/dist/index207.mjs +2 -127
  104. package/dist/index208.mjs +2 -2
  105. package/dist/index209.mjs +123 -70
  106. package/dist/index210.mjs +2 -74
  107. package/dist/index211.mjs +74 -2
  108. package/dist/index212.mjs +73 -30
  109. package/dist/index213.mjs +13 -11
  110. package/dist/index214.mjs +7 -4
  111. package/dist/index215.mjs +30 -3
  112. package/dist/index216.mjs +11 -13
  113. package/dist/index217.mjs +4 -7
  114. package/dist/index218.mjs +3 -11
  115. package/dist/index219.mjs +11 -4
  116. package/dist/index220.mjs +5 -33
  117. package/dist/index221.mjs +33 -31
  118. package/dist/index222.mjs +29 -26
  119. package/dist/index223.mjs +26 -59
  120. package/dist/index224.mjs +61 -2
  121. package/dist/index225.mjs +2 -108
  122. package/dist/index226.mjs +2 -2
  123. package/dist/index227.mjs +2 -2
  124. package/dist/index228.mjs +2 -2
  125. package/dist/index229.mjs +108 -2
  126. package/dist/index23.mjs +14 -13
  127. package/dist/index230.mjs +2 -2
  128. package/dist/index231.mjs +2 -2
  129. package/dist/index232.mjs +2 -2
  130. package/dist/index233.mjs +2 -37
  131. package/dist/index234.mjs +2 -2
  132. package/dist/index236.mjs +37 -2
  133. package/dist/index238.mjs +1 -1
  134. package/dist/index240.mjs +3 -3
  135. package/dist/index241.mjs +1 -1
  136. package/dist/index242.mjs +2 -2
  137. package/dist/index243.mjs +2 -2
  138. package/dist/index244.mjs +2 -2
  139. package/dist/index245.mjs +2 -2
  140. package/dist/index246.mjs +2 -2
  141. package/dist/index249.mjs +2 -2
  142. package/dist/index250.mjs +2 -2
  143. package/dist/index251.mjs +2 -2
  144. package/dist/index252.mjs +2 -2
  145. package/dist/index253.mjs +4 -2
  146. package/dist/index254.mjs +2 -4
  147. package/dist/index255.mjs +2 -3
  148. package/dist/index256.mjs +3 -2
  149. package/dist/index257.mjs +2 -2
  150. package/dist/index258.mjs +2 -17
  151. package/dist/index259.mjs +15 -11
  152. package/dist/index26.mjs +6 -5
  153. package/dist/index260.mjs +13 -6
  154. package/dist/index261.mjs +6 -30
  155. package/dist/index262.mjs +30 -2
  156. package/dist/index263.mjs +2 -2
  157. package/dist/index264.mjs +2 -2
  158. package/dist/index265.mjs +2 -18
  159. package/dist/index266.mjs +2 -47
  160. package/dist/index267.mjs +2 -2
  161. package/dist/index268.mjs +91 -2
  162. package/dist/index269.mjs +2 -2
  163. package/dist/index27.mjs +17 -17
  164. package/dist/index270.mjs +16 -89
  165. package/dist/index271.mjs +47 -2
  166. package/dist/index272.mjs +2 -2
  167. package/dist/index273.mjs +2 -2
  168. package/dist/index274.mjs +2 -2
  169. package/dist/index275.mjs +5 -0
  170. package/dist/index28.mjs +45 -45
  171. package/dist/index29.mjs +7 -7
  172. package/dist/index30.mjs +5 -5
  173. package/dist/index31.mjs +6 -6
  174. package/dist/index32.mjs +4 -0
  175. package/dist/index34.mjs +72 -68
  176. package/dist/index35.mjs +1 -1
  177. package/dist/index36.mjs +1 -1
  178. package/dist/index37.mjs +1 -1
  179. package/dist/index38.mjs +1 -1
  180. package/dist/index39.mjs +1 -1
  181. package/dist/index40.mjs +2 -2
  182. package/dist/index42.mjs +2 -2
  183. package/dist/index45.mjs +3 -3
  184. package/dist/index49.mjs +1 -1
  185. package/dist/index54.mjs +17 -17
  186. package/dist/index55.mjs +2 -2
  187. package/dist/index56.mjs +50 -82
  188. package/dist/index57.mjs +13 -75
  189. package/dist/index58.mjs +98 -76
  190. package/dist/index59.mjs +86 -56
  191. package/dist/index60.mjs +55 -57
  192. package/dist/index61.mjs +89 -55
  193. package/dist/index62.mjs +101 -13
  194. package/dist/index63.mjs +1 -1
  195. package/dist/index64.mjs +77 -45
  196. package/dist/index65.mjs +58 -102
  197. package/dist/index66.mjs +45 -111
  198. package/dist/index67.mjs +60 -22
  199. package/dist/index68.mjs +4 -152
  200. package/dist/index69.mjs +23 -2
  201. package/dist/index70.mjs +21 -20
  202. package/dist/index71.mjs +149 -71
  203. package/dist/index72.mjs +2 -15
  204. package/dist/index73.mjs +68 -56
  205. package/dist/index74.mjs +15 -5
  206. package/dist/index75.mjs +63 -2
  207. package/dist/index76.mjs +34 -6
  208. package/dist/index77.mjs +42 -1133
  209. package/dist/index78.mjs +232 -17
  210. package/dist/index79.mjs +5 -54
  211. package/dist/index80.mjs +129 -28
  212. package/dist/index81.mjs +68 -2
  213. package/dist/index82.mjs +80 -228
  214. package/dist/index83.mjs +28 -5
  215. package/dist/index84.mjs +7 -132
  216. package/dist/index85.mjs +69 -62
  217. package/dist/index86.mjs +3 -86
  218. package/dist/index87.mjs +2 -29
  219. package/dist/index88.mjs +81 -7
  220. package/dist/index89.mjs +51 -72
  221. package/dist/index90.mjs +5 -3
  222. package/dist/index91.mjs +5 -2
  223. package/dist/index92.mjs +169 -73
  224. package/dist/index93.mjs +50 -51
  225. package/dist/index94.mjs +69 -6
  226. package/dist/index95.mjs +2 -5
  227. package/dist/index96.mjs +5 -178
  228. package/dist/index97.mjs +1134 -53
  229. package/dist/index98.mjs +20 -69
  230. package/dist/index99.mjs +55 -34
  231. package/dist/providers/StorefrontProvider.d.ts +0 -1
  232. package/dist/providers/StorefrontProvider.d.ts.map +1 -1
  233. package/package.json +2 -2
  234. package/src/providers/StorefrontProvider.tsx +0 -1
package/dist/index28.mjs CHANGED
@@ -1,45 +1,45 @@
1
1
  'use client';
2
- import { createRpcClients as r } from "./index26.mjs";
3
- const o = "https://oms-api.instock.ng";
4
- async function m(n) {
5
- const s = await r(o).carts[":id"].$get({
6
- param: { id: n }
2
+ import { createRpcClients as n } from "./index26.mjs";
3
+ import { API_BASE_URL as o } from "./index23.mjs";
4
+ async function p(e) {
5
+ const s = await n(o).carts[":id"].$get({
6
+ param: { id: e }
7
7
  });
8
8
  if (!s.ok)
9
9
  throw new Error(`Failed to fetch cart: ${s.statusText}`);
10
10
  return s.json();
11
11
  }
12
- async function p(n) {
13
- const s = await r(o).carts.index.$post({
14
- json: { brandSlug: n }
12
+ async function w(e) {
13
+ const s = await n(o).carts.index.$post({
14
+ json: { brandSlug: e }
15
15
  });
16
16
  if (!s.ok)
17
17
  throw new Error(`Failed to create cart: ${s.statusText}`);
18
18
  return s.json();
19
19
  }
20
- async function w(n, e) {
21
- const t = await r(o).carts[":id"].$patch({
22
- param: { id: n },
20
+ async function f(e, r) {
21
+ const t = await n(o).carts[":id"].$patch({
22
+ param: { id: e },
23
23
  // @ts-expect-error - Hono RPC type inference issue
24
- json: e
24
+ json: r
25
25
  });
26
26
  if (!t.ok)
27
27
  throw new Error(`Failed to update cart: ${t.statusText}`);
28
28
  return t.json();
29
29
  }
30
- async function f(n, e, s, t, a, i, d) {
31
- const c = await r(o).carts[":id"].items.$post({
32
- param: { id: n },
30
+ async function $(e, r, s, t, a, i, d) {
31
+ const c = await n(o).carts[":id"].items.$post({
32
+ param: { id: e },
33
33
  // @ts-expect-error - Hono RPC type inference issue
34
- json: { sku: e, quantity: s, fbc: t, fbp: a, ttp: i, ttclid: d }
34
+ json: { sku: r, quantity: s, fbc: t, fbp: a, ttp: i, ttclid: d }
35
35
  });
36
36
  if (!c.ok)
37
37
  throw new Error(`Failed to add item to cart: ${c.statusText}`);
38
38
  return c.json();
39
39
  }
40
- async function h(n, e, s) {
41
- const a = await r(o).carts[":id"].items[":itemId"].$patch({
42
- param: { id: n, itemId: e },
40
+ async function h(e, r, s) {
41
+ const a = await n(o).carts[":id"].items[":itemId"].$patch({
42
+ param: { id: e, itemId: r },
43
43
  // @ts-expect-error - Hono RPC type inference issue
44
44
  json: { quantity: s }
45
45
  });
@@ -47,61 +47,61 @@ async function h(n, e, s) {
47
47
  throw new Error(`Failed to update cart item: ${a.statusText}`);
48
48
  return a.json();
49
49
  }
50
- async function $(n, e) {
51
- const t = await r(o).carts[":id"].items[":itemId"].$delete({
52
- param: { id: n, itemId: e }
50
+ async function j(e, r) {
51
+ const t = await n(o).carts[":id"].items[":itemId"].$delete({
52
+ param: { id: e, itemId: r }
53
53
  });
54
54
  if (!t.ok)
55
55
  throw new Error(`Failed to remove cart item: ${t.statusText}`);
56
56
  return t.json();
57
57
  }
58
- async function j(n, e) {
59
- const t = await r(o).carts[":id"]["apply-discount"].$post({
60
- param: { id: n },
58
+ async function y(e, r) {
59
+ const t = await n(o).carts[":id"]["apply-discount"].$post({
60
+ param: { id: e },
61
61
  // @ts-expect-error - Hono RPC type inference issue
62
- json: { code: e }
62
+ json: { code: r }
63
63
  });
64
64
  if (!t.ok)
65
65
  throw new Error(`Failed to apply discount: ${t.statusText}`);
66
66
  return t.json();
67
67
  }
68
- async function k(n) {
69
- const s = await r(o).carts[":id"]["remove-discount"].$post({
70
- param: { id: n }
68
+ async function k(e) {
69
+ const s = await n(o).carts[":id"]["remove-discount"].$post({
70
+ param: { id: e }
71
71
  });
72
72
  if (!s.ok)
73
73
  throw new Error(`Failed to remove discount: ${s.statusText}`);
74
74
  return s.json();
75
75
  }
76
- async function y(n, e) {
77
- const t = await r(o).carts[":id"].checkout.$post({
78
- param: { id: n },
76
+ async function x(e, r) {
77
+ const t = await n(o).carts[":id"].checkout.$post({
78
+ param: { id: e },
79
79
  // @ts-expect-error - Hono RPC type inference issue
80
- json: e
80
+ json: r
81
81
  });
82
82
  if (!t.ok)
83
83
  throw new Error(`Failed to checkout cart: ${t.statusText}`);
84
84
  return t.json();
85
85
  }
86
- async function x(n, e) {
87
- const t = await r(o).carts[":id"].recommendations.$get({
88
- param: { id: n },
86
+ async function E(e, r) {
87
+ const t = await n(o).carts[":id"].recommendations.$get({
88
+ param: { id: e },
89
89
  // @ts-ignore - Hono RPC type inference issue with query parameters
90
- query: { limit: e.toString() }
90
+ query: { limit: r.toString() }
91
91
  });
92
92
  if (!t.ok)
93
93
  throw new Error(`Failed to fetch cart recommendations: ${t.statusText}`);
94
94
  return t.json();
95
95
  }
96
96
  export {
97
- f as addCartItem,
98
- j as applyDiscount,
99
- y as checkoutCart,
100
- p as createCart,
101
- m as fetchCart,
102
- x as fetchCartRecommendations,
103
- $ as removeCartItem,
97
+ $ as addCartItem,
98
+ y as applyDiscount,
99
+ x as checkoutCart,
100
+ w as createCart,
101
+ p as fetchCart,
102
+ E as fetchCartRecommendations,
103
+ j as removeCartItem,
104
104
  k as removeDiscount,
105
- w as updateCart,
105
+ f as updateCart,
106
106
  h as updateCartItem
107
107
  };
package/dist/index29.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { createRpcClients as s } from "./index26.mjs";
3
- const i = "https://oms-api.instock.ng";
4
- async function a(r, e) {
3
+ import { API_BASE_URL as i } from "./index23.mjs";
4
+ async function d(r, e) {
5
5
  const t = await s(i).orders[":id"][":token"].$get({
6
6
  param: { id: r, token: e }
7
7
  });
@@ -9,7 +9,7 @@ async function a(r, e) {
9
9
  throw new Error(`Failed to fetch order: ${t.statusText}`);
10
10
  return t.json();
11
11
  }
12
- async function d(r, e) {
12
+ async function m(r, e) {
13
13
  const t = await s(i).orders.confirm.$post({
14
14
  json: { orderId: r, token: e }
15
15
  });
@@ -17,7 +17,7 @@ async function d(r, e) {
17
17
  throw new Error(`Failed to confirm order: ${t.statusText}`);
18
18
  return t.json();
19
19
  }
20
- async function m(r, e, o = 4) {
20
+ async function f(r, e, o = 4) {
21
21
  const n = await s(i).orders[":id"][":token"].recommendations.$get({
22
22
  param: { id: r, token: e },
23
23
  // @ts-ignore - Hono RPC type inference issue with query parameters
@@ -28,7 +28,7 @@ async function m(r, e, o = 4) {
28
28
  return n.json();
29
29
  }
30
30
  export {
31
- d as confirmOrder,
32
- a as fetchOrder,
33
- m as fetchOrderRecommendations
31
+ m as confirmOrder,
32
+ d as fetchOrder,
33
+ f as fetchOrderRecommendations
34
34
  };
package/dist/index30.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { createRpcClients as n } from "./index26.mjs";
3
- const o = "https://oms-api.instock.ng";
4
- async function r(t) {
5
- const e = await n(o).deliveryZones.index.$get({
2
+ import { createRpcClients as o } from "./index26.mjs";
3
+ import { API_BASE_URL as r } from "./index23.mjs";
4
+ async function c(t) {
5
+ const e = await o(r).deliveryZones.index.$get({
6
6
  query: t ? { brandId: t } : {}
7
7
  });
8
8
  if (!e.ok)
@@ -10,5 +10,5 @@ async function r(t) {
10
10
  return e.json();
11
11
  }
12
12
  export {
13
- r as fetchDeliveryZones
13
+ c as fetchDeliveryZones
14
14
  };
package/dist/index31.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use client';
2
- import { createRpcClients as s } from "./index26.mjs";
3
- const r = "https://oms-api.instock.ng";
4
- async function a(n) {
5
- const t = await s(r).brands[":slug"].$get({
6
- param: { slug: n }
2
+ import { createRpcClients as e } from "./index26.mjs";
3
+ import { API_BASE_URL as n } from "./index23.mjs";
4
+ async function c(r) {
5
+ const t = await e(n).brands[":slug"].$get({
6
+ param: { slug: r }
7
7
  });
8
8
  if (!t.ok)
9
9
  throw new Error(`Failed to fetch brand: ${t.statusText}`);
10
10
  return t.json();
11
11
  }
12
12
  export {
13
- a as fetchBrandBySlug
13
+ c as fetchBrandBySlug
14
14
  };
package/dist/index32.mjs CHANGED
@@ -100,6 +100,10 @@ const d = {
100
100
  list: (a) => ["admin", "delivery-zones", "zones", "list", a],
101
101
  detail: (a) => ["admin", "delivery-zones", "zones", a]
102
102
  }
103
+ },
104
+ media: {
105
+ all: ["admin", "media"],
106
+ list: (a) => ["admin", "media", "list", a]
103
107
  }
104
108
  }
105
109
  };
package/dist/index34.mjs CHANGED
@@ -1,71 +1,75 @@
1
1
  'use client';
2
- import { useAddOrderNote as s, useCreateOrder as r, useDeleteOrder as u, useGetOrder as o, useListOrders as a, useUpdateOrder as d, useUpdateOrderStatus as n } from "./index56.mjs";
3
- import { useCreateBrand as p, useDeleteBrand as C, useGetBrand as c, useListBrands as D, useUpdateBrand as G } from "./index57.mjs";
4
- import { useCreateProduct as f, useDeleteProduct as m, useGetProduct as v, useGetProductAddOns as x, useListProducts as y, useUpdateProduct as L, useUpdateProductAddOns as O } from "./index58.mjs";
5
- import { useCreateVariant as U, useDeleteVariant as A, useGetVariantInventory as P, useListProductVariants as V, useSearchVariants as h, useUpdateVariant as B } from "./index59.mjs";
6
- import { useCreateWarehouse as W, useDeleteWarehouse as Z, useGetWarehouseInventory as b, useListWarehouses as k, useUpdateWarehouse as w } from "./index60.mjs";
7
- import { useAdjustInventory as j, useGetInventoryTransactions as E, useGetLowStockVariants as H, useListInventory as N, useTransferInventory as g } from "./index61.mjs";
8
- import { useGetCustomerHistory as z } from "./index62.mjs";
9
- import { useGetStats as J } from "./index63.mjs";
10
- import { useCleanupExpiredCarts as M, useGetAbandonedCart as Q, useGetAbandonedCartStats as R, useListAbandonedCarts as X } from "./index64.mjs";
11
- import { useBulkGenerateDiscountCodes as _, useCreateDiscountCode as $, useDeleteDiscountCode as ee, useGetDiscountCode as te, useGetDiscountCodeAnalytics as se, useGetDiscountCodeOverviewStats as re, useListDiscountCodes as ue, useUpdateDiscountCode as oe } from "./index65.mjs";
12
- import { useCreateDeliveryZone as de, useCreateState as ne, useDeleteDeliveryZone as ie, useDeleteState as pe, useListDeliveryZones as Ce, useListStates as ce, useUpdateDeliveryZone as De, useUpdateState as Ge } from "./index66.mjs";
2
+ import { useCreateBrand as s, useDeleteBrand as r, useGetBrand as u, useListBrands as o, useUpdateBrand as a } from "./index56.mjs";
3
+ import { useGetCustomerHistory as n } from "./index57.mjs";
4
+ import { useCreateDeliveryZone as p, useCreateState as C, useDeleteDeliveryZone as D, useDeleteState as c, useListDeliveryZones as l, useListStates as G, useUpdateDeliveryZone as f, useUpdateState as m } from "./index58.mjs";
5
+ import { useBulkGenerateDiscountCodes as v, useCreateDiscountCode as y, useDeleteDiscountCode as L, useGetDiscountCode as U, useGetDiscountCodeAnalytics as O, useGetDiscountCodeOverviewStats as S, useListDiscountCodes as A, useUpdateDiscountCode as P } from "./index59.mjs";
6
+ import { useAdjustInventory as h, useGetInventoryTransactions as B, useGetLowStockVariants as I, useListInventory as W, useTransferInventory as Z } from "./index60.mjs";
7
+ import { useAddOrderNote as M, useCreateOrder as k, useDeleteOrder as w, useGetOrder as T, useListOrders as j, useUpdateOrder as E, useUpdateOrderStatus as H } from "./index61.mjs";
8
+ import { useCreateProduct as g, useDeleteProduct as q, useGetProduct as z, useGetProductAddOns as F, useListProducts as J, useUpdateProduct as K, useUpdateProductAddOns as Q } from "./index62.mjs";
9
+ import { useGetStats as X } from "./index63.mjs";
10
+ import { useCreateVariant as _, useDeleteVariant as $, useGetVariantInventory as ee, useListProductVariants as te, useSearchVariants as se, useUpdateVariant as re } from "./index64.mjs";
11
+ import { useCreateWarehouse as oe, useDeleteWarehouse as ae, useGetWarehouseInventory as de, useListWarehouses as ne, useUpdateWarehouse as ie } from "./index65.mjs";
12
+ import { useCleanupExpiredCarts as Ce, useGetAbandonedCart as De, useGetAbandonedCartStats as ce, useListAbandonedCarts as le } from "./index66.mjs";
13
+ import { useDeleteMedia as fe, useListMedia as me, useUploadMedia as xe } from "./index67.mjs";
13
14
  export {
14
- s as useAddOrderNote,
15
- j as useAdjustInventory,
16
- _ as useBulkGenerateDiscountCodes,
17
- M as useCleanupExpiredCarts,
18
- p as useCreateBrand,
19
- de as useCreateDeliveryZone,
20
- $ as useCreateDiscountCode,
21
- r as useCreateOrder,
22
- f as useCreateProduct,
23
- ne as useCreateState,
24
- U as useCreateVariant,
25
- W as useCreateWarehouse,
26
- C as useDeleteBrand,
27
- ie as useDeleteDeliveryZone,
28
- ee as useDeleteDiscountCode,
29
- u as useDeleteOrder,
30
- m as useDeleteProduct,
31
- pe as useDeleteState,
32
- A as useDeleteVariant,
33
- Z as useDeleteWarehouse,
34
- Q as useGetAbandonedCart,
35
- R as useGetAbandonedCartStats,
36
- c as useGetBrand,
37
- z as useGetCustomerHistory,
38
- te as useGetDiscountCode,
39
- se as useGetDiscountCodeAnalytics,
40
- re as useGetDiscountCodeOverviewStats,
41
- E as useGetInventoryTransactions,
42
- H as useGetLowStockVariants,
43
- o as useGetOrder,
44
- v as useGetProduct,
45
- x as useGetProductAddOns,
46
- J as useGetStats,
47
- P as useGetVariantInventory,
48
- b as useGetWarehouseInventory,
49
- X as useListAbandonedCarts,
50
- D as useListBrands,
51
- Ce as useListDeliveryZones,
52
- ue as useListDiscountCodes,
53
- N as useListInventory,
54
- a as useListOrders,
55
- V as useListProductVariants,
56
- y as useListProducts,
57
- ce as useListStates,
58
- k as useListWarehouses,
59
- h as useSearchVariants,
60
- g as useTransferInventory,
61
- G as useUpdateBrand,
62
- De as useUpdateDeliveryZone,
63
- oe as useUpdateDiscountCode,
64
- d as useUpdateOrder,
65
- n as useUpdateOrderStatus,
66
- L as useUpdateProduct,
67
- O as useUpdateProductAddOns,
68
- Ge as useUpdateState,
69
- B as useUpdateVariant,
70
- w as useUpdateWarehouse
15
+ M as useAddOrderNote,
16
+ h as useAdjustInventory,
17
+ v as useBulkGenerateDiscountCodes,
18
+ Ce as useCleanupExpiredCarts,
19
+ s as useCreateBrand,
20
+ p as useCreateDeliveryZone,
21
+ y as useCreateDiscountCode,
22
+ k as useCreateOrder,
23
+ g as useCreateProduct,
24
+ C as useCreateState,
25
+ _ as useCreateVariant,
26
+ oe as useCreateWarehouse,
27
+ r as useDeleteBrand,
28
+ D as useDeleteDeliveryZone,
29
+ L as useDeleteDiscountCode,
30
+ fe as useDeleteMedia,
31
+ w as useDeleteOrder,
32
+ q as useDeleteProduct,
33
+ c as useDeleteState,
34
+ $ as useDeleteVariant,
35
+ ae as useDeleteWarehouse,
36
+ De as useGetAbandonedCart,
37
+ ce as useGetAbandonedCartStats,
38
+ u as useGetBrand,
39
+ n as useGetCustomerHistory,
40
+ U as useGetDiscountCode,
41
+ O as useGetDiscountCodeAnalytics,
42
+ S as useGetDiscountCodeOverviewStats,
43
+ B as useGetInventoryTransactions,
44
+ I as useGetLowStockVariants,
45
+ T as useGetOrder,
46
+ z as useGetProduct,
47
+ F as useGetProductAddOns,
48
+ X as useGetStats,
49
+ ee as useGetVariantInventory,
50
+ de as useGetWarehouseInventory,
51
+ le as useListAbandonedCarts,
52
+ o as useListBrands,
53
+ l as useListDeliveryZones,
54
+ A as useListDiscountCodes,
55
+ W as useListInventory,
56
+ me as useListMedia,
57
+ j as useListOrders,
58
+ te as useListProductVariants,
59
+ J as useListProducts,
60
+ G as useListStates,
61
+ ne as useListWarehouses,
62
+ se as useSearchVariants,
63
+ Z as useTransferInventory,
64
+ a as useUpdateBrand,
65
+ f as useUpdateDeliveryZone,
66
+ P as useUpdateDiscountCode,
67
+ E as useUpdateOrder,
68
+ H as useUpdateOrderStatus,
69
+ K as useUpdateProduct,
70
+ Q as useUpdateProductAddOns,
71
+ m as useUpdateState,
72
+ re as useUpdateVariant,
73
+ ie as useUpdateWarehouse,
74
+ xe as useUploadMedia
71
75
  };
package/dist/index35.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as s, useMutation as r } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as c } from "./index74.mjs";
3
+ import { useQueryUnwrapped as c } from "./index68.mjs";
4
4
  import { queryKeys as i } from "./index32.mjs";
5
5
  import { updateCart as a, createCart as l, applyDiscount as m, removeDiscount as y, addCartItem as p, updateCartItem as C, removeCartItem as q, checkoutCart as f, fetchCart as d, fetchCartRecommendations as b } from "./index28.mjs";
6
6
  function S(e, t) {
package/dist/index36.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useMutation as m } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as u } from "./index74.mjs";
3
+ import { useQueryUnwrapped as u } from "./index68.mjs";
4
4
  import { queryKeys as o } from "./index32.mjs";
5
5
  import { confirmOrder as i, fetchOrder as c, fetchOrderRecommendations as f } from "./index29.mjs";
6
6
  function a(e, r, n) {
package/dist/index37.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as e } from "./index74.mjs";
2
+ import { useQueryUnwrapped as e } from "./index68.mjs";
3
3
  import { queryKeys as t } from "./index32.mjs";
4
4
  import { fetchProductsByBrand as c, fetchProductBySlug as d, fetchProductAddons as n } from "./index27.mjs";
5
5
  function f(r, u) {
package/dist/index38.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as o } from "./index74.mjs";
2
+ import { useQueryUnwrapped as o } from "./index68.mjs";
3
3
  import { queryKeys as i } from "./index32.mjs";
4
4
  import { fetchDeliveryZones as t } from "./index30.mjs";
5
5
  function p(e, r) {
package/dist/index39.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as t } from "./index74.mjs";
2
+ import { useQueryUnwrapped as t } from "./index68.mjs";
3
3
  import { queryKeys as u } from "./index32.mjs";
4
4
  import { fetchBrandBySlug as n } from "./index31.mjs";
5
5
  function i(r, e) {
package/dist/index40.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { getDefaultExportFromCjs as x } from "./index67.mjs";
3
- import { __module as q } from "./index69.mjs";
2
+ import { getDefaultExportFromCjs as x } from "./index70.mjs";
3
+ import { __module as q } from "./index72.mjs";
4
4
  function S(b, p) {
5
5
  for (var s = 0; s < p.length; s++) {
6
6
  const c = p[s];
package/dist/index42.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { getDefaultExportFromCjs as n } from "./index67.mjs";
3
- import { __require as i } from "./index68.mjs";
2
+ import { getDefaultExportFromCjs as n } from "./index70.mjs";
3
+ import { __require as i } from "./index71.mjs";
4
4
  function s(t, a) {
5
5
  for (var o = 0; o < a.length; o++) {
6
6
  const e = a[o];
package/dist/index45.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { p as S } from "./index71.mjs";
3
- import { t as U } from "./index72.mjs";
4
- import he from "./index73.mjs";
2
+ import { p as S } from "./index73.mjs";
3
+ import { t as U } from "./index74.mjs";
4
+ import he from "./index75.mjs";
5
5
  const fe = Object.prototype.toString, de = Error.prototype.toString, pe = RegExp.prototype.toString, me = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", ye = /^Symbol\((.*)\)(.*)$/;
6
6
  function ge(n) {
7
7
  return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
package/dist/index49.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import * as l from "react";
3
- import { composeRefs as m } from "./index70.mjs";
3
+ import { composeRefs as m } from "./index69.mjs";
4
4
  import { jsx as u } from "react/jsx-runtime";
5
5
  // @__NO_SIDE_EFFECTS__
6
6
  function y(e) {
package/dist/index54.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  'use client';
2
- import a from "./index82.mjs";
3
- import p from "./index83.mjs";
4
- import m from "./index84.mjs";
5
- import i from "./index85.mjs";
6
- import f from "./index86.mjs";
7
- import l from "./index87.mjs";
8
- import c from "./index88.mjs";
9
- import d from "./index89.mjs";
10
- import u from "./index90.mjs";
11
- import { VERSION as x } from "./index91.mjs";
12
- import C from "./index92.mjs";
13
- import A from "./index93.mjs";
14
- import E from "./index94.mjs";
15
- import O from "./index95.mjs";
16
- import S from "./index96.mjs";
17
- import H from "./index97.mjs";
18
- import T from "./index98.mjs";
2
+ import a from "./index78.mjs";
3
+ import p from "./index79.mjs";
4
+ import m from "./index80.mjs";
5
+ import i from "./index81.mjs";
6
+ import f from "./index82.mjs";
7
+ import l from "./index83.mjs";
8
+ import c from "./index84.mjs";
9
+ import d from "./index85.mjs";
10
+ import u from "./index86.mjs";
11
+ import { VERSION as x } from "./index87.mjs";
12
+ import C from "./index88.mjs";
13
+ import A from "./index89.mjs";
14
+ import E from "./index90.mjs";
15
+ import O from "./index91.mjs";
16
+ import S from "./index92.mjs";
17
+ import H from "./index93.mjs";
18
+ import T from "./index94.mjs";
19
19
  function n(o) {
20
20
  const t = new m(o), e = p(m.prototype.request, t);
21
21
  return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
package/dist/index55.mjs CHANGED
@@ -2,8 +2,8 @@
2
2
  var p = Object.defineProperty;
3
3
  var k = (r, e, i) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i;
4
4
  var h = (r, e, i) => k(r, typeof e != "symbol" ? e + "" : e, i);
5
- import { serialize as j } from "./index99.mjs";
6
- import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index100.mjs";
5
+ import { serialize as j } from "./index76.mjs";
6
+ import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index77.mjs";
7
7
  var v = (r, e) => new Proxy(() => {
8
8
  }, {
9
9
  get(t, s) {