@porulle/core 0.7.0 → 0.9.0

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 (325) hide show
  1. package/dist/auth/middleware.d.ts.map +1 -1
  2. package/dist/auth/middleware.js +26 -7
  3. package/dist/auth/setup.d.ts.map +1 -1
  4. package/dist/auth/setup.js +8 -5
  5. package/dist/config/defaults.d.ts.map +1 -1
  6. package/dist/config/defaults.js +7 -0
  7. package/dist/config/types.d.ts +26 -1
  8. package/dist/config/types.d.ts.map +1 -1
  9. package/dist/generated/plugin-manifest.d.ts +3 -0
  10. package/dist/generated/plugin-manifest.d.ts.map +1 -1
  11. package/dist/generated/plugin-manifest.js +1 -0
  12. package/dist/hooks/checkout-completion.d.ts.map +1 -1
  13. package/dist/hooks/checkout-completion.js +2 -2
  14. package/dist/hooks/checkout.d.ts.map +1 -1
  15. package/dist/hooks/checkout.js +17 -2
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +1 -0
  19. package/dist/interfaces/rest/index.d.ts.map +1 -1
  20. package/dist/interfaces/rest/index.js +12 -0
  21. package/dist/interfaces/rest/routes/admin/staff.d.ts +12 -0
  22. package/dist/interfaces/rest/routes/admin/staff.d.ts.map +1 -0
  23. package/dist/interfaces/rest/routes/admin/staff.js +206 -0
  24. package/dist/interfaces/rest/routes/analytics.d.ts +5 -0
  25. package/dist/interfaces/rest/routes/analytics.d.ts.map +1 -0
  26. package/dist/interfaces/rest/routes/analytics.js +24 -0
  27. package/dist/interfaces/rest/routes/carts.d.ts.map +1 -1
  28. package/dist/interfaces/rest/routes/carts.js +39 -2
  29. package/dist/interfaces/rest/routes/catalog.d.ts.map +1 -1
  30. package/dist/interfaces/rest/routes/catalog.js +17 -1
  31. package/dist/interfaces/rest/routes/checkout.d.ts +9 -0
  32. package/dist/interfaces/rest/routes/checkout.d.ts.map +1 -1
  33. package/dist/interfaces/rest/routes/checkout.js +97 -21
  34. package/dist/interfaces/rest/routes/documents.d.ts +10 -0
  35. package/dist/interfaces/rest/routes/documents.d.ts.map +1 -0
  36. package/dist/interfaces/rest/routes/documents.js +40 -0
  37. package/dist/interfaces/rest/routes/inventory.d.ts.map +1 -1
  38. package/dist/interfaces/rest/routes/inventory.js +13 -0
  39. package/dist/interfaces/rest/routes/orders.d.ts.map +1 -1
  40. package/dist/interfaces/rest/routes/orders.js +111 -1
  41. package/dist/interfaces/rest/routes/pricing.d.ts.map +1 -1
  42. package/dist/interfaces/rest/routes/pricing.js +36 -1
  43. package/dist/interfaces/rest/routes/settings.d.ts +5 -0
  44. package/dist/interfaces/rest/routes/settings.d.ts.map +1 -0
  45. package/dist/interfaces/rest/routes/settings.js +50 -0
  46. package/dist/interfaces/rest/routes/shipping.d.ts +5 -0
  47. package/dist/interfaces/rest/routes/shipping.d.ts.map +1 -0
  48. package/dist/interfaces/rest/routes/shipping.js +68 -0
  49. package/dist/interfaces/rest/routes/tax.d.ts +5 -0
  50. package/dist/interfaces/rest/routes/tax.d.ts.map +1 -0
  51. package/dist/interfaces/rest/routes/tax.js +68 -0
  52. package/dist/interfaces/rest/schemas/admin-staff.d.ts +899 -0
  53. package/dist/interfaces/rest/schemas/admin-staff.d.ts.map +1 -0
  54. package/dist/interfaces/rest/schemas/admin-staff.js +98 -0
  55. package/dist/interfaces/rest/schemas/analytics.d.ts +252 -0
  56. package/dist/interfaces/rest/schemas/analytics.d.ts.map +1 -0
  57. package/dist/interfaces/rest/schemas/analytics.js +33 -0
  58. package/dist/interfaces/rest/schemas/carts.d.ts +656 -0
  59. package/dist/interfaces/rest/schemas/carts.d.ts.map +1 -1
  60. package/dist/interfaces/rest/schemas/carts.js +38 -0
  61. package/dist/interfaces/rest/schemas/catalog.d.ts +1218 -1
  62. package/dist/interfaces/rest/schemas/catalog.d.ts.map +1 -1
  63. package/dist/interfaces/rest/schemas/catalog.js +48 -0
  64. package/dist/interfaces/rest/schemas/checkout.d.ts +2 -0
  65. package/dist/interfaces/rest/schemas/checkout.d.ts.map +1 -1
  66. package/dist/interfaces/rest/schemas/checkout.js +4 -0
  67. package/dist/interfaces/rest/schemas/customer-portal.d.ts +35 -0
  68. package/dist/interfaces/rest/schemas/customer-portal.d.ts.map +1 -1
  69. package/dist/interfaces/rest/schemas/documents.d.ts +509 -0
  70. package/dist/interfaces/rest/schemas/documents.d.ts.map +1 -0
  71. package/dist/interfaces/rest/schemas/documents.js +65 -0
  72. package/dist/interfaces/rest/schemas/orders.d.ts +3110 -43
  73. package/dist/interfaces/rest/schemas/orders.d.ts.map +1 -1
  74. package/dist/interfaces/rest/schemas/orders.js +234 -1
  75. package/dist/interfaces/rest/schemas/pricing.d.ts +405 -0
  76. package/dist/interfaces/rest/schemas/pricing.d.ts.map +1 -1
  77. package/dist/interfaces/rest/schemas/pricing.js +70 -0
  78. package/dist/interfaces/rest/schemas/responses.d.ts +190 -0
  79. package/dist/interfaces/rest/schemas/responses.d.ts.map +1 -1
  80. package/dist/interfaces/rest/schemas/search.d.ts +17 -0
  81. package/dist/interfaces/rest/schemas/search.d.ts.map +1 -1
  82. package/dist/interfaces/rest/schemas/settings.d.ts +397 -0
  83. package/dist/interfaces/rest/schemas/settings.d.ts.map +1 -0
  84. package/dist/interfaces/rest/schemas/settings.js +79 -0
  85. package/dist/interfaces/rest/schemas/shipping.d.ts +1093 -0
  86. package/dist/interfaces/rest/schemas/shipping.d.ts.map +1 -0
  87. package/dist/interfaces/rest/schemas/shipping.js +146 -0
  88. package/dist/interfaces/rest/schemas/tax.d.ts +1074 -0
  89. package/dist/interfaces/rest/schemas/tax.d.ts.map +1 -0
  90. package/dist/interfaces/rest/schemas/tax.js +132 -0
  91. package/dist/kernel/database/schema.d.ts +4 -0
  92. package/dist/kernel/database/schema.d.ts.map +1 -1
  93. package/dist/kernel/database/schema.js +8 -0
  94. package/dist/kernel/database/scoped-db.d.ts +2 -1
  95. package/dist/kernel/database/scoped-db.d.ts.map +1 -1
  96. package/dist/kernel/database/scoped-db.js +62 -1
  97. package/dist/kernel/hooks/types.d.ts +1 -1
  98. package/dist/kernel/hooks/types.d.ts.map +1 -1
  99. package/dist/kernel/plugin/manifest.d.ts +26 -0
  100. package/dist/kernel/plugin/manifest.d.ts.map +1 -1
  101. package/dist/kernel/plugin/manifest.js +17 -2
  102. package/dist/modules/analytics/drizzle-adapter.d.ts.map +1 -1
  103. package/dist/modules/analytics/drizzle-adapter.js +16 -3
  104. package/dist/modules/analytics/module.d.ts.map +1 -1
  105. package/dist/modules/analytics/module.js +6 -0
  106. package/dist/modules/analytics/reports.d.ts +58 -0
  107. package/dist/modules/analytics/reports.d.ts.map +1 -0
  108. package/dist/modules/analytics/reports.js +249 -0
  109. package/dist/modules/analytics/service.d.ts +10 -0
  110. package/dist/modules/analytics/service.d.ts.map +1 -1
  111. package/dist/modules/analytics/service.js +14 -0
  112. package/dist/modules/cart/repository/index.d.ts +7 -0
  113. package/dist/modules/cart/repository/index.d.ts.map +1 -1
  114. package/dist/modules/cart/repository/index.js +25 -1
  115. package/dist/modules/cart/schema.d.ts +17 -0
  116. package/dist/modules/cart/schema.d.ts.map +1 -1
  117. package/dist/modules/cart/schema.js +2 -0
  118. package/dist/modules/cart/schemas.d.ts +1 -0
  119. package/dist/modules/cart/schemas.d.ts.map +1 -1
  120. package/dist/modules/cart/schemas.js +1 -0
  121. package/dist/modules/cart/service.d.ts +32 -0
  122. package/dist/modules/cart/service.d.ts.map +1 -1
  123. package/dist/modules/cart/service.js +61 -2
  124. package/dist/modules/catalog/entity-service.d.ts +21 -0
  125. package/dist/modules/catalog/entity-service.d.ts.map +1 -1
  126. package/dist/modules/catalog/entity-service.js +166 -5
  127. package/dist/modules/catalog/schema.d.ts +34 -0
  128. package/dist/modules/catalog/schema.d.ts.map +1 -1
  129. package/dist/modules/catalog/schema.js +5 -0
  130. package/dist/modules/catalog/schemas.d.ts +3 -0
  131. package/dist/modules/catalog/schemas.d.ts.map +1 -1
  132. package/dist/modules/catalog/schemas.js +3 -0
  133. package/dist/modules/catalog/service.d.ts +36 -0
  134. package/dist/modules/catalog/service.d.ts.map +1 -1
  135. package/dist/modules/catalog/service.js +6 -0
  136. package/dist/modules/customers/service.d.ts.map +1 -1
  137. package/dist/modules/customers/service.js +6 -0
  138. package/dist/modules/documents/module.d.ts +7 -0
  139. package/dist/modules/documents/module.d.ts.map +1 -0
  140. package/dist/modules/documents/module.js +12 -0
  141. package/dist/modules/documents/pdf.d.ts +25 -0
  142. package/dist/modules/documents/pdf.d.ts.map +1 -0
  143. package/dist/modules/documents/pdf.js +80 -0
  144. package/dist/modules/documents/render.d.ts +32 -0
  145. package/dist/modules/documents/render.d.ts.map +1 -0
  146. package/dist/modules/documents/render.js +190 -0
  147. package/dist/modules/documents/repository/index.d.ts +25 -0
  148. package/dist/modules/documents/repository/index.d.ts.map +1 -0
  149. package/dist/modules/documents/repository/index.js +47 -0
  150. package/dist/modules/documents/schema.d.ts +214 -0
  151. package/dist/modules/documents/schema.d.ts.map +1 -0
  152. package/dist/modules/documents/schema.js +42 -0
  153. package/dist/modules/documents/service.d.ts +51 -0
  154. package/dist/modules/documents/service.d.ts.map +1 -0
  155. package/dist/modules/documents/service.js +119 -0
  156. package/dist/modules/fulfillment/service.d.ts +18 -0
  157. package/dist/modules/fulfillment/service.d.ts.map +1 -1
  158. package/dist/modules/fulfillment/service.js +85 -1
  159. package/dist/modules/orders/repository/index.d.ts +18 -1
  160. package/dist/modules/orders/repository/index.d.ts.map +1 -1
  161. package/dist/modules/orders/repository/index.js +86 -1
  162. package/dist/modules/orders/schema.d.ts +391 -0
  163. package/dist/modules/orders/schema.d.ts.map +1 -1
  164. package/dist/modules/orders/schema.js +56 -1
  165. package/dist/modules/orders/service.d.ts +102 -3
  166. package/dist/modules/orders/service.d.ts.map +1 -1
  167. package/dist/modules/orders/service.js +653 -29
  168. package/dist/modules/orders/stale-order-cleanup.d.ts.map +1 -1
  169. package/dist/modules/orders/stale-order-cleanup.js +13 -1
  170. package/dist/modules/pricing/repository/index.d.ts +5 -0
  171. package/dist/modules/pricing/repository/index.d.ts.map +1 -1
  172. package/dist/modules/pricing/repository/index.js +19 -0
  173. package/dist/modules/pricing/service.d.ts +18 -0
  174. package/dist/modules/pricing/service.d.ts.map +1 -1
  175. package/dist/modules/pricing/service.js +43 -5
  176. package/dist/modules/settings/module.d.ts +6 -0
  177. package/dist/modules/settings/module.d.ts.map +1 -0
  178. package/dist/modules/settings/module.js +11 -0
  179. package/dist/modules/settings/repository/index.d.ts +16 -0
  180. package/dist/modules/settings/repository/index.d.ts.map +1 -0
  181. package/dist/modules/settings/repository/index.js +41 -0
  182. package/dist/modules/settings/schema.d.ts +121 -0
  183. package/dist/modules/settings/schema.d.ts.map +1 -0
  184. package/dist/modules/settings/schema.js +24 -0
  185. package/dist/modules/settings/service.d.ts +26 -0
  186. package/dist/modules/settings/service.d.ts.map +1 -0
  187. package/dist/modules/settings/service.js +51 -0
  188. package/dist/modules/shipping/calculator.d.ts +5 -0
  189. package/dist/modules/shipping/calculator.d.ts.map +1 -1
  190. package/dist/modules/shipping/calculator.js +10 -0
  191. package/dist/modules/shipping/module.d.ts +5 -1
  192. package/dist/modules/shipping/module.d.ts.map +1 -1
  193. package/dist/modules/shipping/module.js +4 -1
  194. package/dist/modules/shipping/repository/index.d.ts +27 -2
  195. package/dist/modules/shipping/repository/index.d.ts.map +1 -1
  196. package/dist/modules/shipping/repository/index.js +105 -1
  197. package/dist/modules/shipping/schema.d.ts +419 -0
  198. package/dist/modules/shipping/schema.d.ts.map +1 -0
  199. package/dist/modules/shipping/schema.js +56 -0
  200. package/dist/modules/shipping/service.d.ts +54 -0
  201. package/dist/modules/shipping/service.d.ts.map +1 -1
  202. package/dist/modules/shipping/service.js +161 -2
  203. package/dist/modules/tax/adapter.d.ts +13 -0
  204. package/dist/modules/tax/adapter.d.ts.map +1 -1
  205. package/dist/modules/tax/module.d.ts +5 -1
  206. package/dist/modules/tax/module.d.ts.map +1 -1
  207. package/dist/modules/tax/module.js +4 -1
  208. package/dist/modules/tax/repository/index.d.ts +38 -2
  209. package/dist/modules/tax/repository/index.d.ts.map +1 -1
  210. package/dist/modules/tax/repository/index.js +138 -1
  211. package/dist/modules/tax/schema.d.ts +355 -0
  212. package/dist/modules/tax/schema.d.ts.map +1 -0
  213. package/dist/modules/tax/schema.js +55 -0
  214. package/dist/modules/tax/service.d.ts +60 -1
  215. package/dist/modules/tax/service.d.ts.map +1 -1
  216. package/dist/modules/tax/service.js +227 -2
  217. package/dist/runtime/kernel-modules.d.ts +15 -2
  218. package/dist/runtime/kernel-modules.d.ts.map +1 -1
  219. package/dist/runtime/kernel-modules.js +4 -0
  220. package/dist/runtime/kernel-types.d.ts +5 -1
  221. package/dist/runtime/kernel-types.d.ts.map +1 -1
  222. package/dist/runtime/kernel-types.js +2 -0
  223. package/dist/runtime/server.js +1 -1
  224. package/dist/test-utils/create-plugin-test-app.d.ts +3 -0
  225. package/dist/test-utils/create-plugin-test-app.d.ts.map +1 -1
  226. package/dist/test-utils/create-plugin-test-app.js +15 -3
  227. package/dist/test-utils/create-test-config.d.ts.map +1 -1
  228. package/dist/test-utils/create-test-config.js +2 -0
  229. package/dist/test-utils/order-test-helpers.d.ts +12 -0
  230. package/dist/test-utils/order-test-helpers.d.ts.map +1 -0
  231. package/dist/test-utils/order-test-helpers.js +18 -0
  232. package/dist/test-utils/rest-api-test-utils.d.ts.map +1 -1
  233. package/dist/test-utils/rest-api-test-utils.js +7 -0
  234. package/dist/test-utils/test-actors.js +1 -1
  235. package/dist/testing.d.ts +1 -0
  236. package/dist/testing.d.ts.map +1 -1
  237. package/dist/testing.js +1 -0
  238. package/package.json +3 -3
  239. package/src/auth/middleware.ts +26 -7
  240. package/src/auth/setup.ts +11 -4
  241. package/src/config/defaults.ts +7 -0
  242. package/src/config/types.ts +26 -1
  243. package/src/generated/plugin-capabilities.d.ts +1 -0
  244. package/src/generated/plugin-manifest.ts +1 -0
  245. package/src/generated/plugin-repositories.d.ts +1 -0
  246. package/src/hooks/checkout-completion.ts +22 -16
  247. package/src/hooks/checkout.ts +36 -11
  248. package/src/index.ts +1 -0
  249. package/src/interfaces/rest/index.ts +12 -0
  250. package/src/interfaces/rest/routes/admin/staff.ts +260 -0
  251. package/src/interfaces/rest/routes/analytics.ts +33 -0
  252. package/src/interfaces/rest/routes/carts.ts +52 -2
  253. package/src/interfaces/rest/routes/catalog.ts +34 -0
  254. package/src/interfaces/rest/routes/checkout.ts +114 -27
  255. package/src/interfaces/rest/routes/documents.ts +61 -0
  256. package/src/interfaces/rest/routes/inventory.ts +14 -0
  257. package/src/interfaces/rest/routes/orders.ts +148 -1
  258. package/src/interfaces/rest/routes/pricing.ts +44 -1
  259. package/src/interfaces/rest/routes/settings.ts +61 -0
  260. package/src/interfaces/rest/routes/shipping.ts +92 -0
  261. package/src/interfaces/rest/routes/tax.ts +90 -0
  262. package/src/interfaces/rest/schemas/admin-staff.ts +110 -0
  263. package/src/interfaces/rest/schemas/analytics.ts +39 -0
  264. package/src/interfaces/rest/schemas/carts.ts +40 -0
  265. package/src/interfaces/rest/schemas/catalog.ts +53 -0
  266. package/src/interfaces/rest/schemas/checkout.ts +4 -0
  267. package/src/interfaces/rest/schemas/documents.ts +72 -0
  268. package/src/interfaces/rest/schemas/orders.ts +258 -1
  269. package/src/interfaces/rest/schemas/pricing.ts +75 -0
  270. package/src/interfaces/rest/schemas/settings.ts +93 -0
  271. package/src/interfaces/rest/schemas/shipping.ts +164 -0
  272. package/src/interfaces/rest/schemas/tax.ts +148 -0
  273. package/src/kernel/database/schema.ts +12 -0
  274. package/src/kernel/database/scoped-db.ts +70 -1
  275. package/src/kernel/hooks/types.ts +1 -0
  276. package/src/kernel/plugin/manifest.ts +41 -2
  277. package/src/modules/analytics/drizzle-adapter.ts +19 -3
  278. package/src/modules/analytics/module.ts +10 -0
  279. package/src/modules/analytics/reports.ts +311 -0
  280. package/src/modules/analytics/service.ts +23 -0
  281. package/src/modules/cart/repository/index.ts +30 -1
  282. package/src/modules/cart/schema.ts +2 -0
  283. package/src/modules/cart/schemas.ts +1 -0
  284. package/src/modules/cart/service.ts +104 -2
  285. package/src/modules/catalog/entity-service.ts +196 -4
  286. package/src/modules/catalog/schema.ts +5 -0
  287. package/src/modules/catalog/schemas.ts +3 -0
  288. package/src/modules/catalog/service.ts +30 -0
  289. package/src/modules/customers/service.ts +6 -0
  290. package/src/modules/documents/module.ts +19 -0
  291. package/src/modules/documents/pdf.ts +101 -0
  292. package/src/modules/documents/render.ts +231 -0
  293. package/src/modules/documents/repository/index.ts +68 -0
  294. package/src/modules/documents/schema.ts +44 -0
  295. package/src/modules/documents/service.ts +176 -0
  296. package/src/modules/fulfillment/service.ts +139 -1
  297. package/src/modules/orders/repository/index.ts +127 -1
  298. package/src/modules/orders/schema.ts +58 -1
  299. package/src/modules/orders/service.ts +1041 -65
  300. package/src/modules/orders/stale-order-cleanup.ts +18 -4
  301. package/src/modules/pricing/repository/index.ts +34 -0
  302. package/src/modules/pricing/service.ts +76 -6
  303. package/src/modules/settings/module.ts +18 -0
  304. package/src/modules/settings/repository/index.ts +59 -0
  305. package/src/modules/settings/schema.ts +25 -0
  306. package/src/modules/settings/service.ts +82 -0
  307. package/src/modules/shipping/calculator.ts +27 -0
  308. package/src/modules/shipping/module.ts +6 -2
  309. package/src/modules/shipping/repository/index.ts +136 -2
  310. package/src/modules/shipping/schema.ts +58 -0
  311. package/src/modules/shipping/service.ts +260 -1
  312. package/src/modules/tax/adapter.ts +9 -0
  313. package/src/modules/tax/module.ts +6 -2
  314. package/src/modules/tax/repository/index.ts +169 -2
  315. package/src/modules/tax/schema.ts +57 -0
  316. package/src/modules/tax/service.ts +313 -2
  317. package/src/runtime/kernel-modules.ts +4 -0
  318. package/src/runtime/kernel-types.ts +6 -0
  319. package/src/runtime/server.ts +1 -1
  320. package/src/test-utils/create-plugin-test-app.ts +17 -4
  321. package/src/test-utils/create-test-config.ts +2 -0
  322. package/src/test-utils/order-test-helpers.ts +26 -0
  323. package/src/test-utils/rest-api-test-utils.ts +7 -0
  324. package/src/test-utils/test-actors.ts +1 -1
  325. package/src/testing.ts +1 -0
@@ -0,0 +1,1093 @@
1
+ import { z } from "@hono/zod-openapi";
2
+ export declare const CreateShippingZoneBodySchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ countries: z.ZodArray<z.ZodString>;
5
+ states: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ priority: z.ZodOptional<z.ZodNumber>;
7
+ isActive: z.ZodOptional<z.ZodBoolean>;
8
+ }, z.core.$strip>;
9
+ export declare const UpdateShippingZoneBodySchema: z.ZodObject<{
10
+ name: z.ZodOptional<z.ZodString>;
11
+ countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ states: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ priority: z.ZodOptional<z.ZodNumber>;
14
+ isActive: z.ZodOptional<z.ZodBoolean>;
15
+ }, z.core.$strip>;
16
+ export declare const CreateShippingRateBodySchema: z.ZodObject<{
17
+ zoneId: z.ZodUUID;
18
+ name: z.ZodString;
19
+ amount: z.ZodNumber;
20
+ currency: z.ZodOptional<z.ZodString>;
21
+ minSubtotal: z.ZodOptional<z.ZodNumber>;
22
+ maxSubtotal: z.ZodOptional<z.ZodNumber>;
23
+ minWeightGrams: z.ZodOptional<z.ZodNumber>;
24
+ maxWeightGrams: z.ZodOptional<z.ZodNumber>;
25
+ freeShippingThreshold: z.ZodOptional<z.ZodNumber>;
26
+ isActive: z.ZodOptional<z.ZodBoolean>;
27
+ }, z.core.$strip>;
28
+ export declare const UpdateShippingRateBodySchema: z.ZodObject<{
29
+ name: z.ZodOptional<z.ZodString>;
30
+ amount: z.ZodOptional<z.ZodNumber>;
31
+ currency: z.ZodOptional<z.ZodString>;
32
+ minSubtotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ maxSubtotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ minWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ maxWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ freeShippingThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ isActive: z.ZodOptional<z.ZodBoolean>;
38
+ }, z.core.$strip>;
39
+ export declare const createShippingZoneRoute: {
40
+ method: "post";
41
+ path: "/zones";
42
+ tags: string[];
43
+ summary: string;
44
+ request: {
45
+ body: {
46
+ content: {
47
+ "application/json": {
48
+ schema: z.ZodObject<{
49
+ name: z.ZodString;
50
+ countries: z.ZodArray<z.ZodString>;
51
+ states: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ priority: z.ZodOptional<z.ZodNumber>;
53
+ isActive: z.ZodOptional<z.ZodBoolean>;
54
+ }, z.core.$strip>;
55
+ };
56
+ };
57
+ required: true;
58
+ };
59
+ };
60
+ responses: {
61
+ 400: {
62
+ readonly content: {
63
+ readonly "application/json": {
64
+ readonly schema: z.ZodObject<{
65
+ error: z.ZodObject<{
66
+ code: z.ZodString;
67
+ message: z.ZodString;
68
+ details: z.ZodOptional<z.ZodObject<{
69
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ path: z.ZodString;
71
+ message: z.ZodString;
72
+ code: z.ZodString;
73
+ }, z.core.$strip>>>;
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>;
76
+ }, z.core.$strip>;
77
+ };
78
+ };
79
+ readonly description: "Business logic error.";
80
+ };
81
+ 401: {
82
+ readonly content: {
83
+ readonly "application/json": {
84
+ readonly schema: z.ZodObject<{
85
+ error: z.ZodObject<{
86
+ code: z.ZodString;
87
+ message: z.ZodString;
88
+ details: z.ZodOptional<z.ZodObject<{
89
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ path: z.ZodString;
91
+ message: z.ZodString;
92
+ code: z.ZodString;
93
+ }, z.core.$strip>>>;
94
+ }, z.core.$strip>>;
95
+ }, z.core.$strip>;
96
+ }, z.core.$strip>;
97
+ };
98
+ };
99
+ readonly description: "Authentication required.";
100
+ };
101
+ 403: {
102
+ readonly content: {
103
+ readonly "application/json": {
104
+ readonly schema: z.ZodObject<{
105
+ error: z.ZodObject<{
106
+ code: z.ZodString;
107
+ message: z.ZodString;
108
+ details: z.ZodOptional<z.ZodObject<{
109
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
110
+ path: z.ZodString;
111
+ message: z.ZodString;
112
+ code: z.ZodString;
113
+ }, z.core.$strip>>>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>;
116
+ }, z.core.$strip>;
117
+ };
118
+ };
119
+ readonly description: "Insufficient permissions.";
120
+ };
121
+ 404: {
122
+ readonly content: {
123
+ readonly "application/json": {
124
+ readonly schema: z.ZodObject<{
125
+ error: z.ZodObject<{
126
+ code: z.ZodString;
127
+ message: z.ZodString;
128
+ details: z.ZodOptional<z.ZodObject<{
129
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ path: z.ZodString;
131
+ message: z.ZodString;
132
+ code: z.ZodString;
133
+ }, z.core.$strip>>>;
134
+ }, z.core.$strip>>;
135
+ }, z.core.$strip>;
136
+ }, z.core.$strip>;
137
+ };
138
+ };
139
+ readonly description: "Resource not found.";
140
+ };
141
+ 422: {
142
+ readonly content: {
143
+ readonly "application/json": {
144
+ readonly schema: z.ZodObject<{
145
+ error: z.ZodObject<{
146
+ code: z.ZodString;
147
+ message: z.ZodString;
148
+ details: z.ZodOptional<z.ZodObject<{
149
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
150
+ path: z.ZodString;
151
+ message: z.ZodString;
152
+ code: z.ZodString;
153
+ }, z.core.$strip>>>;
154
+ }, z.core.$strip>>;
155
+ }, z.core.$strip>;
156
+ }, z.core.$strip>;
157
+ };
158
+ };
159
+ readonly description: "Validation error.";
160
+ };
161
+ 201: {
162
+ content: {
163
+ "application/json": {
164
+ schema: z.ZodObject<{
165
+ data: z.ZodAny;
166
+ }, z.core.$strip>;
167
+ };
168
+ };
169
+ description: string;
170
+ };
171
+ };
172
+ } & {
173
+ getRoutingPath(): "/zones";
174
+ };
175
+ export declare const listShippingZonesRoute: {
176
+ method: "get";
177
+ path: "/zones";
178
+ tags: string[];
179
+ summary: string;
180
+ responses: {
181
+ 400: {
182
+ readonly content: {
183
+ readonly "application/json": {
184
+ readonly schema: z.ZodObject<{
185
+ error: z.ZodObject<{
186
+ code: z.ZodString;
187
+ message: z.ZodString;
188
+ details: z.ZodOptional<z.ZodObject<{
189
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
+ path: z.ZodString;
191
+ message: z.ZodString;
192
+ code: z.ZodString;
193
+ }, z.core.$strip>>>;
194
+ }, z.core.$strip>>;
195
+ }, z.core.$strip>;
196
+ }, z.core.$strip>;
197
+ };
198
+ };
199
+ readonly description: "Business logic error.";
200
+ };
201
+ 401: {
202
+ readonly content: {
203
+ readonly "application/json": {
204
+ readonly schema: z.ZodObject<{
205
+ error: z.ZodObject<{
206
+ code: z.ZodString;
207
+ message: z.ZodString;
208
+ details: z.ZodOptional<z.ZodObject<{
209
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
+ path: z.ZodString;
211
+ message: z.ZodString;
212
+ code: z.ZodString;
213
+ }, z.core.$strip>>>;
214
+ }, z.core.$strip>>;
215
+ }, z.core.$strip>;
216
+ }, z.core.$strip>;
217
+ };
218
+ };
219
+ readonly description: "Authentication required.";
220
+ };
221
+ 403: {
222
+ readonly content: {
223
+ readonly "application/json": {
224
+ readonly schema: z.ZodObject<{
225
+ error: z.ZodObject<{
226
+ code: z.ZodString;
227
+ message: z.ZodString;
228
+ details: z.ZodOptional<z.ZodObject<{
229
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
230
+ path: z.ZodString;
231
+ message: z.ZodString;
232
+ code: z.ZodString;
233
+ }, z.core.$strip>>>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>;
236
+ }, z.core.$strip>;
237
+ };
238
+ };
239
+ readonly description: "Insufficient permissions.";
240
+ };
241
+ 404: {
242
+ readonly content: {
243
+ readonly "application/json": {
244
+ readonly schema: z.ZodObject<{
245
+ error: z.ZodObject<{
246
+ code: z.ZodString;
247
+ message: z.ZodString;
248
+ details: z.ZodOptional<z.ZodObject<{
249
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
+ path: z.ZodString;
251
+ message: z.ZodString;
252
+ code: z.ZodString;
253
+ }, z.core.$strip>>>;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>;
256
+ }, z.core.$strip>;
257
+ };
258
+ };
259
+ readonly description: "Resource not found.";
260
+ };
261
+ 422: {
262
+ readonly content: {
263
+ readonly "application/json": {
264
+ readonly schema: z.ZodObject<{
265
+ error: z.ZodObject<{
266
+ code: z.ZodString;
267
+ message: z.ZodString;
268
+ details: z.ZodOptional<z.ZodObject<{
269
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ path: z.ZodString;
271
+ message: z.ZodString;
272
+ code: z.ZodString;
273
+ }, z.core.$strip>>>;
274
+ }, z.core.$strip>>;
275
+ }, z.core.$strip>;
276
+ }, z.core.$strip>;
277
+ };
278
+ };
279
+ readonly description: "Validation error.";
280
+ };
281
+ 200: {
282
+ content: {
283
+ "application/json": {
284
+ schema: z.ZodObject<{
285
+ data: z.ZodAny;
286
+ }, z.core.$strip>;
287
+ };
288
+ };
289
+ description: string;
290
+ };
291
+ };
292
+ } & {
293
+ getRoutingPath(): "/zones";
294
+ };
295
+ export declare const updateShippingZoneRoute: {
296
+ method: "patch";
297
+ path: "/zones/{id}";
298
+ tags: string[];
299
+ summary: string;
300
+ request: {
301
+ params: z.ZodObject<{
302
+ id: z.ZodUUID;
303
+ }, z.core.$strip>;
304
+ body: {
305
+ content: {
306
+ "application/json": {
307
+ schema: z.ZodObject<{
308
+ name: z.ZodOptional<z.ZodString>;
309
+ countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
+ states: z.ZodOptional<z.ZodArray<z.ZodString>>;
311
+ priority: z.ZodOptional<z.ZodNumber>;
312
+ isActive: z.ZodOptional<z.ZodBoolean>;
313
+ }, z.core.$strip>;
314
+ };
315
+ };
316
+ required: true;
317
+ };
318
+ };
319
+ responses: {
320
+ 400: {
321
+ readonly content: {
322
+ readonly "application/json": {
323
+ readonly schema: z.ZodObject<{
324
+ error: z.ZodObject<{
325
+ code: z.ZodString;
326
+ message: z.ZodString;
327
+ details: z.ZodOptional<z.ZodObject<{
328
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
+ path: z.ZodString;
330
+ message: z.ZodString;
331
+ code: z.ZodString;
332
+ }, z.core.$strip>>>;
333
+ }, z.core.$strip>>;
334
+ }, z.core.$strip>;
335
+ }, z.core.$strip>;
336
+ };
337
+ };
338
+ readonly description: "Business logic error.";
339
+ };
340
+ 401: {
341
+ readonly content: {
342
+ readonly "application/json": {
343
+ readonly schema: z.ZodObject<{
344
+ error: z.ZodObject<{
345
+ code: z.ZodString;
346
+ message: z.ZodString;
347
+ details: z.ZodOptional<z.ZodObject<{
348
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
349
+ path: z.ZodString;
350
+ message: z.ZodString;
351
+ code: z.ZodString;
352
+ }, z.core.$strip>>>;
353
+ }, z.core.$strip>>;
354
+ }, z.core.$strip>;
355
+ }, z.core.$strip>;
356
+ };
357
+ };
358
+ readonly description: "Authentication required.";
359
+ };
360
+ 403: {
361
+ readonly content: {
362
+ readonly "application/json": {
363
+ readonly schema: z.ZodObject<{
364
+ error: z.ZodObject<{
365
+ code: z.ZodString;
366
+ message: z.ZodString;
367
+ details: z.ZodOptional<z.ZodObject<{
368
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
+ path: z.ZodString;
370
+ message: z.ZodString;
371
+ code: z.ZodString;
372
+ }, z.core.$strip>>>;
373
+ }, z.core.$strip>>;
374
+ }, z.core.$strip>;
375
+ }, z.core.$strip>;
376
+ };
377
+ };
378
+ readonly description: "Insufficient permissions.";
379
+ };
380
+ 404: {
381
+ readonly content: {
382
+ readonly "application/json": {
383
+ readonly schema: z.ZodObject<{
384
+ error: z.ZodObject<{
385
+ code: z.ZodString;
386
+ message: z.ZodString;
387
+ details: z.ZodOptional<z.ZodObject<{
388
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
389
+ path: z.ZodString;
390
+ message: z.ZodString;
391
+ code: z.ZodString;
392
+ }, z.core.$strip>>>;
393
+ }, z.core.$strip>>;
394
+ }, z.core.$strip>;
395
+ }, z.core.$strip>;
396
+ };
397
+ };
398
+ readonly description: "Resource not found.";
399
+ };
400
+ 422: {
401
+ readonly content: {
402
+ readonly "application/json": {
403
+ readonly schema: z.ZodObject<{
404
+ error: z.ZodObject<{
405
+ code: z.ZodString;
406
+ message: z.ZodString;
407
+ details: z.ZodOptional<z.ZodObject<{
408
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
409
+ path: z.ZodString;
410
+ message: z.ZodString;
411
+ code: z.ZodString;
412
+ }, z.core.$strip>>>;
413
+ }, z.core.$strip>>;
414
+ }, z.core.$strip>;
415
+ }, z.core.$strip>;
416
+ };
417
+ };
418
+ readonly description: "Validation error.";
419
+ };
420
+ 200: {
421
+ content: {
422
+ "application/json": {
423
+ schema: z.ZodObject<{
424
+ data: z.ZodAny;
425
+ }, z.core.$strip>;
426
+ };
427
+ };
428
+ description: string;
429
+ };
430
+ };
431
+ } & {
432
+ getRoutingPath(): "/zones/:id";
433
+ };
434
+ export declare const deleteShippingZoneRoute: {
435
+ method: "delete";
436
+ path: "/zones/{id}";
437
+ tags: string[];
438
+ summary: string;
439
+ request: {
440
+ params: z.ZodObject<{
441
+ id: z.ZodUUID;
442
+ }, z.core.$strip>;
443
+ };
444
+ responses: {
445
+ 400: {
446
+ readonly content: {
447
+ readonly "application/json": {
448
+ readonly schema: z.ZodObject<{
449
+ error: z.ZodObject<{
450
+ code: z.ZodString;
451
+ message: z.ZodString;
452
+ details: z.ZodOptional<z.ZodObject<{
453
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
454
+ path: z.ZodString;
455
+ message: z.ZodString;
456
+ code: z.ZodString;
457
+ }, z.core.$strip>>>;
458
+ }, z.core.$strip>>;
459
+ }, z.core.$strip>;
460
+ }, z.core.$strip>;
461
+ };
462
+ };
463
+ readonly description: "Business logic error.";
464
+ };
465
+ 401: {
466
+ readonly content: {
467
+ readonly "application/json": {
468
+ readonly schema: z.ZodObject<{
469
+ error: z.ZodObject<{
470
+ code: z.ZodString;
471
+ message: z.ZodString;
472
+ details: z.ZodOptional<z.ZodObject<{
473
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
474
+ path: z.ZodString;
475
+ message: z.ZodString;
476
+ code: z.ZodString;
477
+ }, z.core.$strip>>>;
478
+ }, z.core.$strip>>;
479
+ }, z.core.$strip>;
480
+ }, z.core.$strip>;
481
+ };
482
+ };
483
+ readonly description: "Authentication required.";
484
+ };
485
+ 403: {
486
+ readonly content: {
487
+ readonly "application/json": {
488
+ readonly schema: z.ZodObject<{
489
+ error: z.ZodObject<{
490
+ code: z.ZodString;
491
+ message: z.ZodString;
492
+ details: z.ZodOptional<z.ZodObject<{
493
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
494
+ path: z.ZodString;
495
+ message: z.ZodString;
496
+ code: z.ZodString;
497
+ }, z.core.$strip>>>;
498
+ }, z.core.$strip>>;
499
+ }, z.core.$strip>;
500
+ }, z.core.$strip>;
501
+ };
502
+ };
503
+ readonly description: "Insufficient permissions.";
504
+ };
505
+ 404: {
506
+ readonly content: {
507
+ readonly "application/json": {
508
+ readonly schema: z.ZodObject<{
509
+ error: z.ZodObject<{
510
+ code: z.ZodString;
511
+ message: z.ZodString;
512
+ details: z.ZodOptional<z.ZodObject<{
513
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
514
+ path: z.ZodString;
515
+ message: z.ZodString;
516
+ code: z.ZodString;
517
+ }, z.core.$strip>>>;
518
+ }, z.core.$strip>>;
519
+ }, z.core.$strip>;
520
+ }, z.core.$strip>;
521
+ };
522
+ };
523
+ readonly description: "Resource not found.";
524
+ };
525
+ 422: {
526
+ readonly content: {
527
+ readonly "application/json": {
528
+ readonly schema: z.ZodObject<{
529
+ error: z.ZodObject<{
530
+ code: z.ZodString;
531
+ message: z.ZodString;
532
+ details: z.ZodOptional<z.ZodObject<{
533
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
534
+ path: z.ZodString;
535
+ message: z.ZodString;
536
+ code: z.ZodString;
537
+ }, z.core.$strip>>>;
538
+ }, z.core.$strip>>;
539
+ }, z.core.$strip>;
540
+ }, z.core.$strip>;
541
+ };
542
+ };
543
+ readonly description: "Validation error.";
544
+ };
545
+ 200: {
546
+ content: {
547
+ "application/json": {
548
+ schema: z.ZodObject<{
549
+ data: z.ZodAny;
550
+ }, z.core.$strip>;
551
+ };
552
+ };
553
+ description: string;
554
+ };
555
+ };
556
+ } & {
557
+ getRoutingPath(): "/zones/:id";
558
+ };
559
+ export declare const createShippingRateRoute: {
560
+ method: "post";
561
+ path: "/rates";
562
+ tags: string[];
563
+ summary: string;
564
+ request: {
565
+ body: {
566
+ content: {
567
+ "application/json": {
568
+ schema: z.ZodObject<{
569
+ zoneId: z.ZodUUID;
570
+ name: z.ZodString;
571
+ amount: z.ZodNumber;
572
+ currency: z.ZodOptional<z.ZodString>;
573
+ minSubtotal: z.ZodOptional<z.ZodNumber>;
574
+ maxSubtotal: z.ZodOptional<z.ZodNumber>;
575
+ minWeightGrams: z.ZodOptional<z.ZodNumber>;
576
+ maxWeightGrams: z.ZodOptional<z.ZodNumber>;
577
+ freeShippingThreshold: z.ZodOptional<z.ZodNumber>;
578
+ isActive: z.ZodOptional<z.ZodBoolean>;
579
+ }, z.core.$strip>;
580
+ };
581
+ };
582
+ required: true;
583
+ };
584
+ };
585
+ responses: {
586
+ 400: {
587
+ readonly content: {
588
+ readonly "application/json": {
589
+ readonly schema: z.ZodObject<{
590
+ error: z.ZodObject<{
591
+ code: z.ZodString;
592
+ message: z.ZodString;
593
+ details: z.ZodOptional<z.ZodObject<{
594
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
595
+ path: z.ZodString;
596
+ message: z.ZodString;
597
+ code: z.ZodString;
598
+ }, z.core.$strip>>>;
599
+ }, z.core.$strip>>;
600
+ }, z.core.$strip>;
601
+ }, z.core.$strip>;
602
+ };
603
+ };
604
+ readonly description: "Business logic error.";
605
+ };
606
+ 401: {
607
+ readonly content: {
608
+ readonly "application/json": {
609
+ readonly schema: z.ZodObject<{
610
+ error: z.ZodObject<{
611
+ code: z.ZodString;
612
+ message: z.ZodString;
613
+ details: z.ZodOptional<z.ZodObject<{
614
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
615
+ path: z.ZodString;
616
+ message: z.ZodString;
617
+ code: z.ZodString;
618
+ }, z.core.$strip>>>;
619
+ }, z.core.$strip>>;
620
+ }, z.core.$strip>;
621
+ }, z.core.$strip>;
622
+ };
623
+ };
624
+ readonly description: "Authentication required.";
625
+ };
626
+ 403: {
627
+ readonly content: {
628
+ readonly "application/json": {
629
+ readonly schema: z.ZodObject<{
630
+ error: z.ZodObject<{
631
+ code: z.ZodString;
632
+ message: z.ZodString;
633
+ details: z.ZodOptional<z.ZodObject<{
634
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
+ path: z.ZodString;
636
+ message: z.ZodString;
637
+ code: z.ZodString;
638
+ }, z.core.$strip>>>;
639
+ }, z.core.$strip>>;
640
+ }, z.core.$strip>;
641
+ }, z.core.$strip>;
642
+ };
643
+ };
644
+ readonly description: "Insufficient permissions.";
645
+ };
646
+ 404: {
647
+ readonly content: {
648
+ readonly "application/json": {
649
+ readonly schema: z.ZodObject<{
650
+ error: z.ZodObject<{
651
+ code: z.ZodString;
652
+ message: z.ZodString;
653
+ details: z.ZodOptional<z.ZodObject<{
654
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
655
+ path: z.ZodString;
656
+ message: z.ZodString;
657
+ code: z.ZodString;
658
+ }, z.core.$strip>>>;
659
+ }, z.core.$strip>>;
660
+ }, z.core.$strip>;
661
+ }, z.core.$strip>;
662
+ };
663
+ };
664
+ readonly description: "Resource not found.";
665
+ };
666
+ 422: {
667
+ readonly content: {
668
+ readonly "application/json": {
669
+ readonly schema: z.ZodObject<{
670
+ error: z.ZodObject<{
671
+ code: z.ZodString;
672
+ message: z.ZodString;
673
+ details: z.ZodOptional<z.ZodObject<{
674
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
675
+ path: z.ZodString;
676
+ message: z.ZodString;
677
+ code: z.ZodString;
678
+ }, z.core.$strip>>>;
679
+ }, z.core.$strip>>;
680
+ }, z.core.$strip>;
681
+ }, z.core.$strip>;
682
+ };
683
+ };
684
+ readonly description: "Validation error.";
685
+ };
686
+ 201: {
687
+ content: {
688
+ "application/json": {
689
+ schema: z.ZodObject<{
690
+ data: z.ZodAny;
691
+ }, z.core.$strip>;
692
+ };
693
+ };
694
+ description: string;
695
+ };
696
+ };
697
+ } & {
698
+ getRoutingPath(): "/rates";
699
+ };
700
+ export declare const listShippingRatesRoute: {
701
+ method: "get";
702
+ path: "/rates";
703
+ tags: string[];
704
+ summary: string;
705
+ request: {
706
+ query: z.ZodObject<{
707
+ zoneId: z.ZodOptional<z.ZodString>;
708
+ }, z.core.$strip>;
709
+ };
710
+ responses: {
711
+ 400: {
712
+ readonly content: {
713
+ readonly "application/json": {
714
+ readonly schema: z.ZodObject<{
715
+ error: z.ZodObject<{
716
+ code: z.ZodString;
717
+ message: z.ZodString;
718
+ details: z.ZodOptional<z.ZodObject<{
719
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
720
+ path: z.ZodString;
721
+ message: z.ZodString;
722
+ code: z.ZodString;
723
+ }, z.core.$strip>>>;
724
+ }, z.core.$strip>>;
725
+ }, z.core.$strip>;
726
+ }, z.core.$strip>;
727
+ };
728
+ };
729
+ readonly description: "Business logic error.";
730
+ };
731
+ 401: {
732
+ readonly content: {
733
+ readonly "application/json": {
734
+ readonly schema: z.ZodObject<{
735
+ error: z.ZodObject<{
736
+ code: z.ZodString;
737
+ message: z.ZodString;
738
+ details: z.ZodOptional<z.ZodObject<{
739
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
740
+ path: z.ZodString;
741
+ message: z.ZodString;
742
+ code: z.ZodString;
743
+ }, z.core.$strip>>>;
744
+ }, z.core.$strip>>;
745
+ }, z.core.$strip>;
746
+ }, z.core.$strip>;
747
+ };
748
+ };
749
+ readonly description: "Authentication required.";
750
+ };
751
+ 403: {
752
+ readonly content: {
753
+ readonly "application/json": {
754
+ readonly schema: z.ZodObject<{
755
+ error: z.ZodObject<{
756
+ code: z.ZodString;
757
+ message: z.ZodString;
758
+ details: z.ZodOptional<z.ZodObject<{
759
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
760
+ path: z.ZodString;
761
+ message: z.ZodString;
762
+ code: z.ZodString;
763
+ }, z.core.$strip>>>;
764
+ }, z.core.$strip>>;
765
+ }, z.core.$strip>;
766
+ }, z.core.$strip>;
767
+ };
768
+ };
769
+ readonly description: "Insufficient permissions.";
770
+ };
771
+ 404: {
772
+ readonly content: {
773
+ readonly "application/json": {
774
+ readonly schema: z.ZodObject<{
775
+ error: z.ZodObject<{
776
+ code: z.ZodString;
777
+ message: z.ZodString;
778
+ details: z.ZodOptional<z.ZodObject<{
779
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
780
+ path: z.ZodString;
781
+ message: z.ZodString;
782
+ code: z.ZodString;
783
+ }, z.core.$strip>>>;
784
+ }, z.core.$strip>>;
785
+ }, z.core.$strip>;
786
+ }, z.core.$strip>;
787
+ };
788
+ };
789
+ readonly description: "Resource not found.";
790
+ };
791
+ 422: {
792
+ readonly content: {
793
+ readonly "application/json": {
794
+ readonly schema: z.ZodObject<{
795
+ error: z.ZodObject<{
796
+ code: z.ZodString;
797
+ message: z.ZodString;
798
+ details: z.ZodOptional<z.ZodObject<{
799
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
800
+ path: z.ZodString;
801
+ message: z.ZodString;
802
+ code: z.ZodString;
803
+ }, z.core.$strip>>>;
804
+ }, z.core.$strip>>;
805
+ }, z.core.$strip>;
806
+ }, z.core.$strip>;
807
+ };
808
+ };
809
+ readonly description: "Validation error.";
810
+ };
811
+ 200: {
812
+ content: {
813
+ "application/json": {
814
+ schema: z.ZodObject<{
815
+ data: z.ZodAny;
816
+ }, z.core.$strip>;
817
+ };
818
+ };
819
+ description: string;
820
+ };
821
+ };
822
+ } & {
823
+ getRoutingPath(): "/rates";
824
+ };
825
+ export declare const updateShippingRateRoute: {
826
+ method: "patch";
827
+ path: "/rates/{id}";
828
+ tags: string[];
829
+ summary: string;
830
+ request: {
831
+ params: z.ZodObject<{
832
+ id: z.ZodUUID;
833
+ }, z.core.$strip>;
834
+ body: {
835
+ content: {
836
+ "application/json": {
837
+ schema: z.ZodObject<{
838
+ name: z.ZodOptional<z.ZodString>;
839
+ amount: z.ZodOptional<z.ZodNumber>;
840
+ currency: z.ZodOptional<z.ZodString>;
841
+ minSubtotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
842
+ maxSubtotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
843
+ minWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
844
+ maxWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
845
+ freeShippingThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
846
+ isActive: z.ZodOptional<z.ZodBoolean>;
847
+ }, z.core.$strip>;
848
+ };
849
+ };
850
+ required: true;
851
+ };
852
+ };
853
+ responses: {
854
+ 400: {
855
+ readonly content: {
856
+ readonly "application/json": {
857
+ readonly schema: z.ZodObject<{
858
+ error: z.ZodObject<{
859
+ code: z.ZodString;
860
+ message: z.ZodString;
861
+ details: z.ZodOptional<z.ZodObject<{
862
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
863
+ path: z.ZodString;
864
+ message: z.ZodString;
865
+ code: z.ZodString;
866
+ }, z.core.$strip>>>;
867
+ }, z.core.$strip>>;
868
+ }, z.core.$strip>;
869
+ }, z.core.$strip>;
870
+ };
871
+ };
872
+ readonly description: "Business logic error.";
873
+ };
874
+ 401: {
875
+ readonly content: {
876
+ readonly "application/json": {
877
+ readonly schema: z.ZodObject<{
878
+ error: z.ZodObject<{
879
+ code: z.ZodString;
880
+ message: z.ZodString;
881
+ details: z.ZodOptional<z.ZodObject<{
882
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
883
+ path: z.ZodString;
884
+ message: z.ZodString;
885
+ code: z.ZodString;
886
+ }, z.core.$strip>>>;
887
+ }, z.core.$strip>>;
888
+ }, z.core.$strip>;
889
+ }, z.core.$strip>;
890
+ };
891
+ };
892
+ readonly description: "Authentication required.";
893
+ };
894
+ 403: {
895
+ readonly content: {
896
+ readonly "application/json": {
897
+ readonly schema: z.ZodObject<{
898
+ error: z.ZodObject<{
899
+ code: z.ZodString;
900
+ message: z.ZodString;
901
+ details: z.ZodOptional<z.ZodObject<{
902
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
903
+ path: z.ZodString;
904
+ message: z.ZodString;
905
+ code: z.ZodString;
906
+ }, z.core.$strip>>>;
907
+ }, z.core.$strip>>;
908
+ }, z.core.$strip>;
909
+ }, z.core.$strip>;
910
+ };
911
+ };
912
+ readonly description: "Insufficient permissions.";
913
+ };
914
+ 404: {
915
+ readonly content: {
916
+ readonly "application/json": {
917
+ readonly schema: z.ZodObject<{
918
+ error: z.ZodObject<{
919
+ code: z.ZodString;
920
+ message: z.ZodString;
921
+ details: z.ZodOptional<z.ZodObject<{
922
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
923
+ path: z.ZodString;
924
+ message: z.ZodString;
925
+ code: z.ZodString;
926
+ }, z.core.$strip>>>;
927
+ }, z.core.$strip>>;
928
+ }, z.core.$strip>;
929
+ }, z.core.$strip>;
930
+ };
931
+ };
932
+ readonly description: "Resource not found.";
933
+ };
934
+ 422: {
935
+ readonly content: {
936
+ readonly "application/json": {
937
+ readonly schema: z.ZodObject<{
938
+ error: z.ZodObject<{
939
+ code: z.ZodString;
940
+ message: z.ZodString;
941
+ details: z.ZodOptional<z.ZodObject<{
942
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
943
+ path: z.ZodString;
944
+ message: z.ZodString;
945
+ code: z.ZodString;
946
+ }, z.core.$strip>>>;
947
+ }, z.core.$strip>>;
948
+ }, z.core.$strip>;
949
+ }, z.core.$strip>;
950
+ };
951
+ };
952
+ readonly description: "Validation error.";
953
+ };
954
+ 200: {
955
+ content: {
956
+ "application/json": {
957
+ schema: z.ZodObject<{
958
+ data: z.ZodAny;
959
+ }, z.core.$strip>;
960
+ };
961
+ };
962
+ description: string;
963
+ };
964
+ };
965
+ } & {
966
+ getRoutingPath(): "/rates/:id";
967
+ };
968
+ export declare const deleteShippingRateRoute: {
969
+ method: "delete";
970
+ path: "/rates/{id}";
971
+ tags: string[];
972
+ summary: string;
973
+ request: {
974
+ params: z.ZodObject<{
975
+ id: z.ZodUUID;
976
+ }, z.core.$strip>;
977
+ };
978
+ responses: {
979
+ 400: {
980
+ readonly content: {
981
+ readonly "application/json": {
982
+ readonly schema: z.ZodObject<{
983
+ error: z.ZodObject<{
984
+ code: z.ZodString;
985
+ message: z.ZodString;
986
+ details: z.ZodOptional<z.ZodObject<{
987
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
988
+ path: z.ZodString;
989
+ message: z.ZodString;
990
+ code: z.ZodString;
991
+ }, z.core.$strip>>>;
992
+ }, z.core.$strip>>;
993
+ }, z.core.$strip>;
994
+ }, z.core.$strip>;
995
+ };
996
+ };
997
+ readonly description: "Business logic error.";
998
+ };
999
+ 401: {
1000
+ readonly content: {
1001
+ readonly "application/json": {
1002
+ readonly schema: z.ZodObject<{
1003
+ error: z.ZodObject<{
1004
+ code: z.ZodString;
1005
+ message: z.ZodString;
1006
+ details: z.ZodOptional<z.ZodObject<{
1007
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1008
+ path: z.ZodString;
1009
+ message: z.ZodString;
1010
+ code: z.ZodString;
1011
+ }, z.core.$strip>>>;
1012
+ }, z.core.$strip>>;
1013
+ }, z.core.$strip>;
1014
+ }, z.core.$strip>;
1015
+ };
1016
+ };
1017
+ readonly description: "Authentication required.";
1018
+ };
1019
+ 403: {
1020
+ readonly content: {
1021
+ readonly "application/json": {
1022
+ readonly schema: z.ZodObject<{
1023
+ error: z.ZodObject<{
1024
+ code: z.ZodString;
1025
+ message: z.ZodString;
1026
+ details: z.ZodOptional<z.ZodObject<{
1027
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1028
+ path: z.ZodString;
1029
+ message: z.ZodString;
1030
+ code: z.ZodString;
1031
+ }, z.core.$strip>>>;
1032
+ }, z.core.$strip>>;
1033
+ }, z.core.$strip>;
1034
+ }, z.core.$strip>;
1035
+ };
1036
+ };
1037
+ readonly description: "Insufficient permissions.";
1038
+ };
1039
+ 404: {
1040
+ readonly content: {
1041
+ readonly "application/json": {
1042
+ readonly schema: z.ZodObject<{
1043
+ error: z.ZodObject<{
1044
+ code: z.ZodString;
1045
+ message: z.ZodString;
1046
+ details: z.ZodOptional<z.ZodObject<{
1047
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
+ path: z.ZodString;
1049
+ message: z.ZodString;
1050
+ code: z.ZodString;
1051
+ }, z.core.$strip>>>;
1052
+ }, z.core.$strip>>;
1053
+ }, z.core.$strip>;
1054
+ }, z.core.$strip>;
1055
+ };
1056
+ };
1057
+ readonly description: "Resource not found.";
1058
+ };
1059
+ 422: {
1060
+ readonly content: {
1061
+ readonly "application/json": {
1062
+ readonly schema: z.ZodObject<{
1063
+ error: z.ZodObject<{
1064
+ code: z.ZodString;
1065
+ message: z.ZodString;
1066
+ details: z.ZodOptional<z.ZodObject<{
1067
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1068
+ path: z.ZodString;
1069
+ message: z.ZodString;
1070
+ code: z.ZodString;
1071
+ }, z.core.$strip>>>;
1072
+ }, z.core.$strip>>;
1073
+ }, z.core.$strip>;
1074
+ }, z.core.$strip>;
1075
+ };
1076
+ };
1077
+ readonly description: "Validation error.";
1078
+ };
1079
+ 200: {
1080
+ content: {
1081
+ "application/json": {
1082
+ schema: z.ZodObject<{
1083
+ data: z.ZodAny;
1084
+ }, z.core.$strip>;
1085
+ };
1086
+ };
1087
+ description: string;
1088
+ };
1089
+ };
1090
+ } & {
1091
+ getRoutingPath(): "/rates/:id";
1092
+ };
1093
+ //# sourceMappingURL=shipping.d.ts.map