@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
@@ -12,6 +12,7 @@ export declare const CaptureOrderBodySchema: z.ZodObject<{
12
12
  }, z.core.$strip>;
13
13
  export declare const CreateOrderBodySchema: z.ZodObject<{
14
14
  customerId: z.ZodOptional<z.ZodUUID>;
15
+ idempotencyKey: z.ZodOptional<z.ZodString>;
15
16
  currency: z.ZodString;
16
17
  subtotal: z.ZodNumber;
17
18
  taxTotal: z.ZodNumber;
@@ -275,6 +276,23 @@ export declare const OrderDataResponseSchema: z.ZodObject<{
275
276
  identity: undefined;
276
277
  generated: undefined;
277
278
  }, {}, {}>;
279
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
280
+ name: "idempotency_key";
281
+ tableName: "orders";
282
+ dataType: "string";
283
+ columnType: "PgText";
284
+ data: string;
285
+ driverParam: string;
286
+ notNull: false;
287
+ hasDefault: false;
288
+ isPrimaryKey: false;
289
+ isAutoincrement: false;
290
+ hasRuntimeDefault: false;
291
+ enumValues: [string, ...string[]];
292
+ baseColumn: never;
293
+ identity: undefined;
294
+ generated: undefined;
295
+ }, {}, {}>;
278
296
  metadata: import("drizzle-orm/pg-core").PgColumn<{
279
297
  name: "metadata";
280
298
  tableName: "orders";
@@ -605,6 +623,23 @@ export declare const listOrdersRoute: {
605
623
  identity: undefined;
606
624
  generated: undefined;
607
625
  }, {}, {}>;
626
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
627
+ name: "idempotency_key";
628
+ tableName: "orders";
629
+ dataType: "string";
630
+ columnType: "PgText";
631
+ data: string;
632
+ driverParam: string;
633
+ notNull: false;
634
+ hasDefault: false;
635
+ isPrimaryKey: false;
636
+ isAutoincrement: false;
637
+ hasRuntimeDefault: false;
638
+ enumValues: [string, ...string[]];
639
+ baseColumn: never;
640
+ identity: undefined;
641
+ generated: undefined;
642
+ }, {}, {}>;
608
643
  metadata: import("drizzle-orm/pg-core").PgColumn<{
609
644
  name: "metadata";
610
645
  tableName: "orders";
@@ -1077,6 +1112,23 @@ export declare const getOrderRoute: {
1077
1112
  identity: undefined;
1078
1113
  generated: undefined;
1079
1114
  }, {}, {}>;
1115
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
1116
+ name: "idempotency_key";
1117
+ tableName: "orders";
1118
+ dataType: "string";
1119
+ columnType: "PgText";
1120
+ data: string;
1121
+ driverParam: string;
1122
+ notNull: false;
1123
+ hasDefault: false;
1124
+ isPrimaryKey: false;
1125
+ isAutoincrement: false;
1126
+ hasRuntimeDefault: false;
1127
+ enumValues: [string, ...string[]];
1128
+ baseColumn: never;
1129
+ identity: undefined;
1130
+ generated: undefined;
1131
+ }, {}, {}>;
1080
1132
  metadata: import("drizzle-orm/pg-core").PgColumn<{
1081
1133
  name: "metadata";
1082
1134
  tableName: "orders";
@@ -1513,6 +1565,23 @@ export declare const getOrderFulfillmentsRoute: {
1513
1565
  identity: undefined;
1514
1566
  generated: undefined;
1515
1567
  }, {}, {}>;
1568
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
1569
+ name: "idempotency_key";
1570
+ tableName: "orders";
1571
+ dataType: "string";
1572
+ columnType: "PgText";
1573
+ data: string;
1574
+ driverParam: string;
1575
+ notNull: false;
1576
+ hasDefault: false;
1577
+ isPrimaryKey: false;
1578
+ isAutoincrement: false;
1579
+ hasRuntimeDefault: false;
1580
+ enumValues: [string, ...string[]];
1581
+ baseColumn: never;
1582
+ identity: undefined;
1583
+ generated: undefined;
1584
+ }, {}, {}>;
1516
1585
  metadata: import("drizzle-orm/pg-core").PgColumn<{
1517
1586
  name: "metadata";
1518
1587
  tableName: "orders";
@@ -1595,40 +1664,42 @@ export declare const getOrderFulfillmentsRoute: {
1595
1664
  } & {
1596
1665
  getRoutingPath(): "/:id/fulfillments";
1597
1666
  };
1598
- export declare const createOrderRoute: {
1667
+ export declare const CreateFulfillmentBodySchema: z.ZodObject<{
1668
+ lineItems: z.ZodArray<z.ZodObject<{
1669
+ orderLineItemId: z.ZodUUID;
1670
+ quantity: z.ZodNumber;
1671
+ }, z.core.$strip>>;
1672
+ carrier: z.ZodOptional<z.ZodString>;
1673
+ trackingNumber: z.ZodOptional<z.ZodString>;
1674
+ trackingUrl: z.ZodOptional<z.ZodString>;
1675
+ type: z.ZodOptional<z.ZodString>;
1676
+ status: z.ZodOptional<z.ZodString>;
1677
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1678
+ }, z.core.$strip>;
1679
+ export declare const createOrderFulfillmentRoute: {
1599
1680
  method: "post";
1600
- path: "/";
1681
+ path: "/{id}/fulfillments";
1601
1682
  tags: string[];
1602
1683
  summary: string;
1603
1684
  description: string;
1604
1685
  request: {
1686
+ params: z.ZodObject<{
1687
+ id: z.ZodUUID;
1688
+ }, z.core.$strip>;
1605
1689
  body: {
1606
1690
  content: {
1607
1691
  "application/json": {
1608
1692
  schema: z.ZodObject<{
1609
- customerId: z.ZodOptional<z.ZodUUID>;
1610
- currency: z.ZodString;
1611
- subtotal: z.ZodNumber;
1612
- taxTotal: z.ZodNumber;
1613
- shippingTotal: z.ZodNumber;
1614
- discountTotal: z.ZodOptional<z.ZodNumber>;
1615
- grandTotal: z.ZodNumber;
1616
- paymentIntentId: z.ZodOptional<z.ZodString>;
1617
- paymentMethodId: z.ZodOptional<z.ZodString>;
1618
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1619
1693
  lineItems: z.ZodArray<z.ZodObject<{
1620
- entityId: z.ZodUUID;
1621
- entityType: z.ZodString;
1622
- variantId: z.ZodOptional<z.ZodUUID>;
1623
- sku: z.ZodOptional<z.ZodString>;
1624
- title: z.ZodString;
1694
+ orderLineItemId: z.ZodUUID;
1625
1695
  quantity: z.ZodNumber;
1626
- unitPrice: z.ZodNumber;
1627
- totalPrice: z.ZodNumber;
1628
- taxAmount: z.ZodOptional<z.ZodNumber>;
1629
- discountAmount: z.ZodOptional<z.ZodNumber>;
1630
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1631
1696
  }, z.core.$strip>>;
1697
+ carrier: z.ZodOptional<z.ZodString>;
1698
+ trackingNumber: z.ZodOptional<z.ZodString>;
1699
+ trackingUrl: z.ZodOptional<z.ZodString>;
1700
+ type: z.ZodOptional<z.ZodString>;
1701
+ status: z.ZodOptional<z.ZodString>;
1702
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1632
1703
  }, z.core.$strip>;
1633
1704
  };
1634
1705
  };
@@ -1979,6 +2050,23 @@ export declare const createOrderRoute: {
1979
2050
  identity: undefined;
1980
2051
  generated: undefined;
1981
2052
  }, {}, {}>;
2053
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
2054
+ name: "idempotency_key";
2055
+ tableName: "orders";
2056
+ dataType: "string";
2057
+ columnType: "PgText";
2058
+ data: string;
2059
+ driverParam: string;
2060
+ notNull: false;
2061
+ hasDefault: false;
2062
+ isPrimaryKey: false;
2063
+ isAutoincrement: false;
2064
+ hasRuntimeDefault: false;
2065
+ enumValues: [string, ...string[]];
2066
+ baseColumn: never;
2067
+ identity: undefined;
2068
+ generated: undefined;
2069
+ }, {}, {}>;
1982
2070
  metadata: import("drizzle-orm/pg-core").PgColumn<{
1983
2071
  name: "metadata";
1984
2072
  tableName: "orders";
@@ -2059,28 +2147,47 @@ export declare const createOrderRoute: {
2059
2147
  };
2060
2148
  };
2061
2149
  } & {
2062
- getRoutingPath(): "/";
2150
+ getRoutingPath(): "/:id/fulfillments";
2063
2151
  };
2064
- export declare const refundOrderRoute: {
2152
+ export declare const createOrderRoute: {
2065
2153
  method: "post";
2066
- path: "/{id}/refund";
2154
+ path: "/";
2067
2155
  tags: string[];
2068
2156
  summary: string;
2069
2157
  description: string;
2070
2158
  request: {
2071
- params: z.ZodObject<{
2072
- id: z.ZodUUID;
2073
- }, z.core.$strip>;
2074
2159
  body: {
2075
2160
  content: {
2076
2161
  "application/json": {
2077
2162
  schema: z.ZodObject<{
2078
- amount: z.ZodOptional<z.ZodNumber>;
2079
- reason: z.ZodOptional<z.ZodString>;
2163
+ customerId: z.ZodOptional<z.ZodUUID>;
2164
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2165
+ currency: z.ZodString;
2166
+ subtotal: z.ZodNumber;
2167
+ taxTotal: z.ZodNumber;
2168
+ shippingTotal: z.ZodNumber;
2169
+ discountTotal: z.ZodOptional<z.ZodNumber>;
2170
+ grandTotal: z.ZodNumber;
2171
+ paymentIntentId: z.ZodOptional<z.ZodString>;
2172
+ paymentMethodId: z.ZodOptional<z.ZodString>;
2173
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2174
+ lineItems: z.ZodArray<z.ZodObject<{
2175
+ entityId: z.ZodUUID;
2176
+ entityType: z.ZodString;
2177
+ variantId: z.ZodOptional<z.ZodUUID>;
2178
+ sku: z.ZodOptional<z.ZodString>;
2179
+ title: z.ZodString;
2180
+ quantity: z.ZodNumber;
2181
+ unitPrice: z.ZodNumber;
2182
+ totalPrice: z.ZodNumber;
2183
+ taxAmount: z.ZodOptional<z.ZodNumber>;
2184
+ discountAmount: z.ZodOptional<z.ZodNumber>;
2185
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2186
+ }, z.core.$strip>>;
2080
2187
  }, z.core.$strip>;
2081
2188
  };
2082
2189
  };
2083
- required: false;
2190
+ required: true;
2084
2191
  };
2085
2192
  };
2086
2193
  responses: {
@@ -2184,7 +2291,7 @@ export declare const refundOrderRoute: {
2184
2291
  };
2185
2292
  readonly description: "Validation error.";
2186
2293
  };
2187
- 200: {
2294
+ 201: {
2188
2295
  content: {
2189
2296
  "application/json": {
2190
2297
  schema: z.ZodObject<{
@@ -2427,6 +2534,23 @@ export declare const refundOrderRoute: {
2427
2534
  identity: undefined;
2428
2535
  generated: undefined;
2429
2536
  }, {}, {}>;
2537
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
2538
+ name: "idempotency_key";
2539
+ tableName: "orders";
2540
+ dataType: "string";
2541
+ columnType: "PgText";
2542
+ data: string;
2543
+ driverParam: string;
2544
+ notNull: false;
2545
+ hasDefault: false;
2546
+ isPrimaryKey: false;
2547
+ isAutoincrement: false;
2548
+ hasRuntimeDefault: false;
2549
+ enumValues: [string, ...string[]];
2550
+ baseColumn: never;
2551
+ identity: undefined;
2552
+ generated: undefined;
2553
+ }, {}, {}>;
2430
2554
  metadata: import("drizzle-orm/pg-core").PgColumn<{
2431
2555
  name: "metadata";
2432
2556
  tableName: "orders";
@@ -2507,11 +2631,11 @@ export declare const refundOrderRoute: {
2507
2631
  };
2508
2632
  };
2509
2633
  } & {
2510
- getRoutingPath(): "/:id/refund";
2634
+ getRoutingPath(): "/";
2511
2635
  };
2512
- export declare const captureOrderRoute: {
2636
+ export declare const refundOrderRoute: {
2513
2637
  method: "post";
2514
- path: "/{id}/capture";
2638
+ path: "/{id}/refund";
2515
2639
  tags: string[];
2516
2640
  summary: string;
2517
2641
  description: string;
@@ -2524,6 +2648,7 @@ export declare const captureOrderRoute: {
2524
2648
  "application/json": {
2525
2649
  schema: z.ZodObject<{
2526
2650
  amount: z.ZodOptional<z.ZodNumber>;
2651
+ reason: z.ZodOptional<z.ZodString>;
2527
2652
  }, z.core.$strip>;
2528
2653
  };
2529
2654
  };
@@ -2874,6 +2999,23 @@ export declare const captureOrderRoute: {
2874
2999
  identity: undefined;
2875
3000
  generated: undefined;
2876
3001
  }, {}, {}>;
3002
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
3003
+ name: "idempotency_key";
3004
+ tableName: "orders";
3005
+ dataType: "string";
3006
+ columnType: "PgText";
3007
+ data: string;
3008
+ driverParam: string;
3009
+ notNull: false;
3010
+ hasDefault: false;
3011
+ isPrimaryKey: false;
3012
+ isAutoincrement: false;
3013
+ hasRuntimeDefault: false;
3014
+ enumValues: [string, ...string[]];
3015
+ baseColumn: never;
3016
+ identity: undefined;
3017
+ generated: undefined;
3018
+ }, {}, {}>;
2877
3019
  metadata: import("drizzle-orm/pg-core").PgColumn<{
2878
3020
  name: "metadata";
2879
3021
  tableName: "orders";
@@ -2954,13 +3096,14 @@ export declare const captureOrderRoute: {
2954
3096
  };
2955
3097
  };
2956
3098
  } & {
2957
- getRoutingPath(): "/:id/capture";
3099
+ getRoutingPath(): "/:id/refund";
2958
3100
  };
2959
- export declare const changeOrderStatusRoute: {
2960
- method: "patch";
2961
- path: "/{id}/status";
3101
+ export declare const captureOrderRoute: {
3102
+ method: "post";
3103
+ path: "/{id}/capture";
2962
3104
  tags: string[];
2963
3105
  summary: string;
3106
+ description: string;
2964
3107
  request: {
2965
3108
  params: z.ZodObject<{
2966
3109
  id: z.ZodUUID;
@@ -2969,12 +3112,11 @@ export declare const changeOrderStatusRoute: {
2969
3112
  content: {
2970
3113
  "application/json": {
2971
3114
  schema: z.ZodObject<{
2972
- status: z.ZodString;
2973
- reason: z.ZodOptional<z.ZodString>;
3115
+ amount: z.ZodOptional<z.ZodNumber>;
2974
3116
  }, z.core.$strip>;
2975
3117
  };
2976
3118
  };
2977
- required: true;
3119
+ required: false;
2978
3120
  };
2979
3121
  };
2980
3122
  responses: {
@@ -3321,6 +3463,23 @@ export declare const changeOrderStatusRoute: {
3321
3463
  identity: undefined;
3322
3464
  generated: undefined;
3323
3465
  }, {}, {}>;
3466
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
3467
+ name: "idempotency_key";
3468
+ tableName: "orders";
3469
+ dataType: "string";
3470
+ columnType: "PgText";
3471
+ data: string;
3472
+ driverParam: string;
3473
+ notNull: false;
3474
+ hasDefault: false;
3475
+ isPrimaryKey: false;
3476
+ isAutoincrement: false;
3477
+ hasRuntimeDefault: false;
3478
+ enumValues: [string, ...string[]];
3479
+ baseColumn: never;
3480
+ identity: undefined;
3481
+ generated: undefined;
3482
+ }, {}, {}>;
3324
3483
  metadata: import("drizzle-orm/pg-core").PgColumn<{
3325
3484
  name: "metadata";
3326
3485
  tableName: "orders";
@@ -3401,6 +3560,2914 @@ export declare const changeOrderStatusRoute: {
3401
3560
  };
3402
3561
  };
3403
3562
  } & {
3404
- getRoutingPath(): "/:id/status";
3563
+ getRoutingPath(): "/:id/capture";
3564
+ };
3565
+ export declare const AddOrderLineItemBodySchema: z.ZodObject<{
3566
+ entityId: z.ZodUUID;
3567
+ entityType: z.ZodString;
3568
+ variantId: z.ZodOptional<z.ZodUUID>;
3569
+ sku: z.ZodOptional<z.ZodString>;
3570
+ title: z.ZodString;
3571
+ quantity: z.ZodNumber;
3572
+ unitPrice: z.ZodNumber;
3573
+ totalPrice: z.ZodOptional<z.ZodNumber>;
3574
+ taxAmount: z.ZodOptional<z.ZodNumber>;
3575
+ discountAmount: z.ZodOptional<z.ZodNumber>;
3576
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3577
+ }, z.core.$strip>;
3578
+ export declare const UpdateOrderLineItemBodySchema: z.ZodObject<{
3579
+ quantity: z.ZodNumber;
3580
+ }, z.core.$strip>;
3581
+ export declare const addOrderLineItemRoute: {
3582
+ method: "post";
3583
+ path: "/{id}/line-items";
3584
+ tags: string[];
3585
+ summary: string;
3586
+ description: string;
3587
+ request: {
3588
+ params: z.ZodObject<{
3589
+ id: z.ZodUUID;
3590
+ }, z.core.$strip>;
3591
+ body: {
3592
+ content: {
3593
+ "application/json": {
3594
+ schema: z.ZodObject<{
3595
+ entityId: z.ZodUUID;
3596
+ entityType: z.ZodString;
3597
+ variantId: z.ZodOptional<z.ZodUUID>;
3598
+ sku: z.ZodOptional<z.ZodString>;
3599
+ title: z.ZodString;
3600
+ quantity: z.ZodNumber;
3601
+ unitPrice: z.ZodNumber;
3602
+ totalPrice: z.ZodOptional<z.ZodNumber>;
3603
+ taxAmount: z.ZodOptional<z.ZodNumber>;
3604
+ discountAmount: z.ZodOptional<z.ZodNumber>;
3605
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3606
+ }, z.core.$strip>;
3607
+ };
3608
+ };
3609
+ required: true;
3610
+ };
3611
+ };
3612
+ responses: {
3613
+ 400: {
3614
+ readonly content: {
3615
+ readonly "application/json": {
3616
+ readonly schema: z.ZodObject<{
3617
+ error: z.ZodObject<{
3618
+ code: z.ZodString;
3619
+ message: z.ZodString;
3620
+ details: z.ZodOptional<z.ZodObject<{
3621
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3622
+ path: z.ZodString;
3623
+ message: z.ZodString;
3624
+ code: z.ZodString;
3625
+ }, z.core.$strip>>>;
3626
+ }, z.core.$strip>>;
3627
+ }, z.core.$strip>;
3628
+ }, z.core.$strip>;
3629
+ };
3630
+ };
3631
+ readonly description: "Business logic error.";
3632
+ };
3633
+ 401: {
3634
+ readonly content: {
3635
+ readonly "application/json": {
3636
+ readonly schema: z.ZodObject<{
3637
+ error: z.ZodObject<{
3638
+ code: z.ZodString;
3639
+ message: z.ZodString;
3640
+ details: z.ZodOptional<z.ZodObject<{
3641
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3642
+ path: z.ZodString;
3643
+ message: z.ZodString;
3644
+ code: z.ZodString;
3645
+ }, z.core.$strip>>>;
3646
+ }, z.core.$strip>>;
3647
+ }, z.core.$strip>;
3648
+ }, z.core.$strip>;
3649
+ };
3650
+ };
3651
+ readonly description: "Authentication required.";
3652
+ };
3653
+ 403: {
3654
+ readonly content: {
3655
+ readonly "application/json": {
3656
+ readonly schema: z.ZodObject<{
3657
+ error: z.ZodObject<{
3658
+ code: z.ZodString;
3659
+ message: z.ZodString;
3660
+ details: z.ZodOptional<z.ZodObject<{
3661
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3662
+ path: z.ZodString;
3663
+ message: z.ZodString;
3664
+ code: z.ZodString;
3665
+ }, z.core.$strip>>>;
3666
+ }, z.core.$strip>>;
3667
+ }, z.core.$strip>;
3668
+ }, z.core.$strip>;
3669
+ };
3670
+ };
3671
+ readonly description: "Insufficient permissions.";
3672
+ };
3673
+ 404: {
3674
+ readonly content: {
3675
+ readonly "application/json": {
3676
+ readonly schema: z.ZodObject<{
3677
+ error: z.ZodObject<{
3678
+ code: z.ZodString;
3679
+ message: z.ZodString;
3680
+ details: z.ZodOptional<z.ZodObject<{
3681
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3682
+ path: z.ZodString;
3683
+ message: z.ZodString;
3684
+ code: z.ZodString;
3685
+ }, z.core.$strip>>>;
3686
+ }, z.core.$strip>>;
3687
+ }, z.core.$strip>;
3688
+ }, z.core.$strip>;
3689
+ };
3690
+ };
3691
+ readonly description: "Resource not found.";
3692
+ };
3693
+ 422: {
3694
+ readonly content: {
3695
+ readonly "application/json": {
3696
+ readonly schema: z.ZodObject<{
3697
+ error: z.ZodObject<{
3698
+ code: z.ZodString;
3699
+ message: z.ZodString;
3700
+ details: z.ZodOptional<z.ZodObject<{
3701
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3702
+ path: z.ZodString;
3703
+ message: z.ZodString;
3704
+ code: z.ZodString;
3705
+ }, z.core.$strip>>>;
3706
+ }, z.core.$strip>>;
3707
+ }, z.core.$strip>;
3708
+ }, z.core.$strip>;
3709
+ };
3710
+ };
3711
+ readonly description: "Validation error.";
3712
+ };
3713
+ 201: {
3714
+ content: {
3715
+ "application/json": {
3716
+ schema: z.ZodObject<{
3717
+ data: import("drizzle-zod").BuildSchema<"select", {
3718
+ id: import("drizzle-orm/pg-core").PgColumn<{
3719
+ name: "id";
3720
+ tableName: "orders";
3721
+ dataType: "string";
3722
+ columnType: "PgUUID";
3723
+ data: string;
3724
+ driverParam: string;
3725
+ notNull: true;
3726
+ hasDefault: true;
3727
+ isPrimaryKey: true;
3728
+ isAutoincrement: false;
3729
+ hasRuntimeDefault: false;
3730
+ enumValues: undefined;
3731
+ baseColumn: never;
3732
+ identity: undefined;
3733
+ generated: undefined;
3734
+ }, {}, {}>;
3735
+ organizationId: import("drizzle-orm/pg-core").PgColumn<{
3736
+ name: "organization_id";
3737
+ tableName: "orders";
3738
+ dataType: "string";
3739
+ columnType: "PgText";
3740
+ data: string;
3741
+ driverParam: string;
3742
+ notNull: true;
3743
+ hasDefault: false;
3744
+ isPrimaryKey: false;
3745
+ isAutoincrement: false;
3746
+ hasRuntimeDefault: false;
3747
+ enumValues: [string, ...string[]];
3748
+ baseColumn: never;
3749
+ identity: undefined;
3750
+ generated: undefined;
3751
+ }, {}, {}>;
3752
+ orderNumber: import("drizzle-orm/pg-core").PgColumn<{
3753
+ name: "order_number";
3754
+ tableName: "orders";
3755
+ dataType: "string";
3756
+ columnType: "PgText";
3757
+ data: string;
3758
+ driverParam: string;
3759
+ notNull: true;
3760
+ hasDefault: false;
3761
+ isPrimaryKey: false;
3762
+ isAutoincrement: false;
3763
+ hasRuntimeDefault: false;
3764
+ enumValues: [string, ...string[]];
3765
+ baseColumn: never;
3766
+ identity: undefined;
3767
+ generated: undefined;
3768
+ }, {}, {}>;
3769
+ customerId: import("drizzle-orm/pg-core").PgColumn<{
3770
+ name: "customer_id";
3771
+ tableName: "orders";
3772
+ dataType: "string";
3773
+ columnType: "PgUUID";
3774
+ data: string;
3775
+ driverParam: string;
3776
+ notNull: false;
3777
+ hasDefault: false;
3778
+ isPrimaryKey: false;
3779
+ isAutoincrement: false;
3780
+ hasRuntimeDefault: false;
3781
+ enumValues: undefined;
3782
+ baseColumn: never;
3783
+ identity: undefined;
3784
+ generated: undefined;
3785
+ }, {}, {}>;
3786
+ status: import("drizzle-orm/pg-core").PgColumn<{
3787
+ name: "status";
3788
+ tableName: "orders";
3789
+ dataType: "string";
3790
+ columnType: "PgText";
3791
+ data: string;
3792
+ driverParam: string;
3793
+ notNull: true;
3794
+ hasDefault: true;
3795
+ isPrimaryKey: false;
3796
+ isAutoincrement: false;
3797
+ hasRuntimeDefault: false;
3798
+ enumValues: [string, ...string[]];
3799
+ baseColumn: never;
3800
+ identity: undefined;
3801
+ generated: undefined;
3802
+ }, {}, {}>;
3803
+ currency: import("drizzle-orm/pg-core").PgColumn<{
3804
+ name: "currency";
3805
+ tableName: "orders";
3806
+ dataType: "string";
3807
+ columnType: "PgText";
3808
+ data: string;
3809
+ driverParam: string;
3810
+ notNull: true;
3811
+ hasDefault: false;
3812
+ isPrimaryKey: false;
3813
+ isAutoincrement: false;
3814
+ hasRuntimeDefault: false;
3815
+ enumValues: [string, ...string[]];
3816
+ baseColumn: never;
3817
+ identity: undefined;
3818
+ generated: undefined;
3819
+ }, {}, {}>;
3820
+ subtotal: import("drizzle-orm/pg-core").PgColumn<{
3821
+ name: "subtotal";
3822
+ tableName: "orders";
3823
+ dataType: "number";
3824
+ columnType: "PgInteger";
3825
+ data: number;
3826
+ driverParam: string | number;
3827
+ notNull: true;
3828
+ hasDefault: false;
3829
+ isPrimaryKey: false;
3830
+ isAutoincrement: false;
3831
+ hasRuntimeDefault: false;
3832
+ enumValues: undefined;
3833
+ baseColumn: never;
3834
+ identity: undefined;
3835
+ generated: undefined;
3836
+ }, {}, {}>;
3837
+ taxTotal: import("drizzle-orm/pg-core").PgColumn<{
3838
+ name: "tax_total";
3839
+ tableName: "orders";
3840
+ dataType: "number";
3841
+ columnType: "PgInteger";
3842
+ data: number;
3843
+ driverParam: string | number;
3844
+ notNull: true;
3845
+ hasDefault: false;
3846
+ isPrimaryKey: false;
3847
+ isAutoincrement: false;
3848
+ hasRuntimeDefault: false;
3849
+ enumValues: undefined;
3850
+ baseColumn: never;
3851
+ identity: undefined;
3852
+ generated: undefined;
3853
+ }, {}, {}>;
3854
+ shippingTotal: import("drizzle-orm/pg-core").PgColumn<{
3855
+ name: "shipping_total";
3856
+ tableName: "orders";
3857
+ dataType: "number";
3858
+ columnType: "PgInteger";
3859
+ data: number;
3860
+ driverParam: string | number;
3861
+ notNull: true;
3862
+ hasDefault: false;
3863
+ isPrimaryKey: false;
3864
+ isAutoincrement: false;
3865
+ hasRuntimeDefault: false;
3866
+ enumValues: undefined;
3867
+ baseColumn: never;
3868
+ identity: undefined;
3869
+ generated: undefined;
3870
+ }, {}, {}>;
3871
+ discountTotal: import("drizzle-orm/pg-core").PgColumn<{
3872
+ name: "discount_total";
3873
+ tableName: "orders";
3874
+ dataType: "number";
3875
+ columnType: "PgInteger";
3876
+ data: number;
3877
+ driverParam: string | number;
3878
+ notNull: true;
3879
+ hasDefault: true;
3880
+ isPrimaryKey: false;
3881
+ isAutoincrement: false;
3882
+ hasRuntimeDefault: false;
3883
+ enumValues: undefined;
3884
+ baseColumn: never;
3885
+ identity: undefined;
3886
+ generated: undefined;
3887
+ }, {}, {}>;
3888
+ grandTotal: import("drizzle-orm/pg-core").PgColumn<{
3889
+ name: "grand_total";
3890
+ tableName: "orders";
3891
+ dataType: "number";
3892
+ columnType: "PgInteger";
3893
+ data: number;
3894
+ driverParam: string | number;
3895
+ notNull: true;
3896
+ hasDefault: false;
3897
+ isPrimaryKey: false;
3898
+ isAutoincrement: false;
3899
+ hasRuntimeDefault: false;
3900
+ enumValues: undefined;
3901
+ baseColumn: never;
3902
+ identity: undefined;
3903
+ generated: undefined;
3904
+ }, {}, {}>;
3905
+ amountCaptured: import("drizzle-orm/pg-core").PgColumn<{
3906
+ name: "amount_captured";
3907
+ tableName: "orders";
3908
+ dataType: "number";
3909
+ columnType: "PgInteger";
3910
+ data: number;
3911
+ driverParam: string | number;
3912
+ notNull: false;
3913
+ hasDefault: false;
3914
+ isPrimaryKey: false;
3915
+ isAutoincrement: false;
3916
+ hasRuntimeDefault: false;
3917
+ enumValues: undefined;
3918
+ baseColumn: never;
3919
+ identity: undefined;
3920
+ generated: undefined;
3921
+ }, {}, {}>;
3922
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
3923
+ name: "payment_intent_id";
3924
+ tableName: "orders";
3925
+ dataType: "string";
3926
+ columnType: "PgText";
3927
+ data: string;
3928
+ driverParam: string;
3929
+ notNull: false;
3930
+ hasDefault: false;
3931
+ isPrimaryKey: false;
3932
+ isAutoincrement: false;
3933
+ hasRuntimeDefault: false;
3934
+ enumValues: [string, ...string[]];
3935
+ baseColumn: never;
3936
+ identity: undefined;
3937
+ generated: undefined;
3938
+ }, {}, {}>;
3939
+ paymentMethodId: import("drizzle-orm/pg-core").PgColumn<{
3940
+ name: "payment_method_id";
3941
+ tableName: "orders";
3942
+ dataType: "string";
3943
+ columnType: "PgText";
3944
+ data: string;
3945
+ driverParam: string;
3946
+ notNull: false;
3947
+ hasDefault: false;
3948
+ isPrimaryKey: false;
3949
+ isAutoincrement: false;
3950
+ hasRuntimeDefault: false;
3951
+ enumValues: [string, ...string[]];
3952
+ baseColumn: never;
3953
+ identity: undefined;
3954
+ generated: undefined;
3955
+ }, {}, {}>;
3956
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
3957
+ name: "idempotency_key";
3958
+ tableName: "orders";
3959
+ dataType: "string";
3960
+ columnType: "PgText";
3961
+ data: string;
3962
+ driverParam: string;
3963
+ notNull: false;
3964
+ hasDefault: false;
3965
+ isPrimaryKey: false;
3966
+ isAutoincrement: false;
3967
+ hasRuntimeDefault: false;
3968
+ enumValues: [string, ...string[]];
3969
+ baseColumn: never;
3970
+ identity: undefined;
3971
+ generated: undefined;
3972
+ }, {}, {}>;
3973
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
3974
+ name: "metadata";
3975
+ tableName: "orders";
3976
+ dataType: "json";
3977
+ columnType: "PgJsonb";
3978
+ data: Record<string, unknown>;
3979
+ driverParam: unknown;
3980
+ notNull: false;
3981
+ hasDefault: true;
3982
+ isPrimaryKey: false;
3983
+ isAutoincrement: false;
3984
+ hasRuntimeDefault: false;
3985
+ enumValues: undefined;
3986
+ baseColumn: never;
3987
+ identity: undefined;
3988
+ generated: undefined;
3989
+ }, {}, {
3990
+ $type: Record<string, unknown>;
3991
+ }>;
3992
+ placedAt: import("drizzle-orm/pg-core").PgColumn<{
3993
+ name: "placed_at";
3994
+ tableName: "orders";
3995
+ dataType: "date";
3996
+ columnType: "PgTimestamp";
3997
+ data: Date;
3998
+ driverParam: string;
3999
+ notNull: true;
4000
+ hasDefault: true;
4001
+ isPrimaryKey: false;
4002
+ isAutoincrement: false;
4003
+ hasRuntimeDefault: false;
4004
+ enumValues: undefined;
4005
+ baseColumn: never;
4006
+ identity: undefined;
4007
+ generated: undefined;
4008
+ }, {}, {}>;
4009
+ fulfilledAt: import("drizzle-orm/pg-core").PgColumn<{
4010
+ name: "fulfilled_at";
4011
+ tableName: "orders";
4012
+ dataType: "date";
4013
+ columnType: "PgTimestamp";
4014
+ data: Date;
4015
+ driverParam: string;
4016
+ notNull: false;
4017
+ hasDefault: false;
4018
+ isPrimaryKey: false;
4019
+ isAutoincrement: false;
4020
+ hasRuntimeDefault: false;
4021
+ enumValues: undefined;
4022
+ baseColumn: never;
4023
+ identity: undefined;
4024
+ generated: undefined;
4025
+ }, {}, {}>;
4026
+ cancelledAt: import("drizzle-orm/pg-core").PgColumn<{
4027
+ name: "cancelled_at";
4028
+ tableName: "orders";
4029
+ dataType: "date";
4030
+ columnType: "PgTimestamp";
4031
+ data: Date;
4032
+ driverParam: string;
4033
+ notNull: false;
4034
+ hasDefault: false;
4035
+ isPrimaryKey: false;
4036
+ isAutoincrement: false;
4037
+ hasRuntimeDefault: false;
4038
+ enumValues: undefined;
4039
+ baseColumn: never;
4040
+ identity: undefined;
4041
+ generated: undefined;
4042
+ }, {}, {}>;
4043
+ }, {
4044
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4045
+ }, undefined>;
4046
+ }, z.core.$strip>;
4047
+ };
4048
+ };
4049
+ description: string;
4050
+ };
4051
+ };
4052
+ } & {
4053
+ getRoutingPath(): "/:id/line-items";
4054
+ };
4055
+ export declare const updateOrderLineItemRoute: {
4056
+ method: "patch";
4057
+ path: "/{id}/line-items/{lineItemId}";
4058
+ tags: string[];
4059
+ summary: string;
4060
+ description: string;
4061
+ request: {
4062
+ params: z.ZodObject<{
4063
+ id: z.ZodUUID;
4064
+ lineItemId: z.ZodUUID;
4065
+ }, z.core.$strip>;
4066
+ body: {
4067
+ content: {
4068
+ "application/json": {
4069
+ schema: z.ZodObject<{
4070
+ quantity: z.ZodNumber;
4071
+ }, z.core.$strip>;
4072
+ };
4073
+ };
4074
+ required: true;
4075
+ };
4076
+ };
4077
+ responses: {
4078
+ 400: {
4079
+ readonly content: {
4080
+ readonly "application/json": {
4081
+ readonly schema: z.ZodObject<{
4082
+ error: z.ZodObject<{
4083
+ code: z.ZodString;
4084
+ message: z.ZodString;
4085
+ details: z.ZodOptional<z.ZodObject<{
4086
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4087
+ path: z.ZodString;
4088
+ message: z.ZodString;
4089
+ code: z.ZodString;
4090
+ }, z.core.$strip>>>;
4091
+ }, z.core.$strip>>;
4092
+ }, z.core.$strip>;
4093
+ }, z.core.$strip>;
4094
+ };
4095
+ };
4096
+ readonly description: "Business logic error.";
4097
+ };
4098
+ 401: {
4099
+ readonly content: {
4100
+ readonly "application/json": {
4101
+ readonly schema: z.ZodObject<{
4102
+ error: z.ZodObject<{
4103
+ code: z.ZodString;
4104
+ message: z.ZodString;
4105
+ details: z.ZodOptional<z.ZodObject<{
4106
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4107
+ path: z.ZodString;
4108
+ message: z.ZodString;
4109
+ code: z.ZodString;
4110
+ }, z.core.$strip>>>;
4111
+ }, z.core.$strip>>;
4112
+ }, z.core.$strip>;
4113
+ }, z.core.$strip>;
4114
+ };
4115
+ };
4116
+ readonly description: "Authentication required.";
4117
+ };
4118
+ 403: {
4119
+ readonly content: {
4120
+ readonly "application/json": {
4121
+ readonly schema: z.ZodObject<{
4122
+ error: z.ZodObject<{
4123
+ code: z.ZodString;
4124
+ message: z.ZodString;
4125
+ details: z.ZodOptional<z.ZodObject<{
4126
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4127
+ path: z.ZodString;
4128
+ message: z.ZodString;
4129
+ code: z.ZodString;
4130
+ }, z.core.$strip>>>;
4131
+ }, z.core.$strip>>;
4132
+ }, z.core.$strip>;
4133
+ }, z.core.$strip>;
4134
+ };
4135
+ };
4136
+ readonly description: "Insufficient permissions.";
4137
+ };
4138
+ 404: {
4139
+ readonly content: {
4140
+ readonly "application/json": {
4141
+ readonly schema: z.ZodObject<{
4142
+ error: z.ZodObject<{
4143
+ code: z.ZodString;
4144
+ message: z.ZodString;
4145
+ details: z.ZodOptional<z.ZodObject<{
4146
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4147
+ path: z.ZodString;
4148
+ message: z.ZodString;
4149
+ code: z.ZodString;
4150
+ }, z.core.$strip>>>;
4151
+ }, z.core.$strip>>;
4152
+ }, z.core.$strip>;
4153
+ }, z.core.$strip>;
4154
+ };
4155
+ };
4156
+ readonly description: "Resource not found.";
4157
+ };
4158
+ 422: {
4159
+ readonly content: {
4160
+ readonly "application/json": {
4161
+ readonly schema: z.ZodObject<{
4162
+ error: z.ZodObject<{
4163
+ code: z.ZodString;
4164
+ message: z.ZodString;
4165
+ details: z.ZodOptional<z.ZodObject<{
4166
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4167
+ path: z.ZodString;
4168
+ message: z.ZodString;
4169
+ code: z.ZodString;
4170
+ }, z.core.$strip>>>;
4171
+ }, z.core.$strip>>;
4172
+ }, z.core.$strip>;
4173
+ }, z.core.$strip>;
4174
+ };
4175
+ };
4176
+ readonly description: "Validation error.";
4177
+ };
4178
+ 200: {
4179
+ content: {
4180
+ "application/json": {
4181
+ schema: z.ZodObject<{
4182
+ data: import("drizzle-zod").BuildSchema<"select", {
4183
+ id: import("drizzle-orm/pg-core").PgColumn<{
4184
+ name: "id";
4185
+ tableName: "orders";
4186
+ dataType: "string";
4187
+ columnType: "PgUUID";
4188
+ data: string;
4189
+ driverParam: string;
4190
+ notNull: true;
4191
+ hasDefault: true;
4192
+ isPrimaryKey: true;
4193
+ isAutoincrement: false;
4194
+ hasRuntimeDefault: false;
4195
+ enumValues: undefined;
4196
+ baseColumn: never;
4197
+ identity: undefined;
4198
+ generated: undefined;
4199
+ }, {}, {}>;
4200
+ organizationId: import("drizzle-orm/pg-core").PgColumn<{
4201
+ name: "organization_id";
4202
+ tableName: "orders";
4203
+ dataType: "string";
4204
+ columnType: "PgText";
4205
+ data: string;
4206
+ driverParam: string;
4207
+ notNull: true;
4208
+ hasDefault: false;
4209
+ isPrimaryKey: false;
4210
+ isAutoincrement: false;
4211
+ hasRuntimeDefault: false;
4212
+ enumValues: [string, ...string[]];
4213
+ baseColumn: never;
4214
+ identity: undefined;
4215
+ generated: undefined;
4216
+ }, {}, {}>;
4217
+ orderNumber: import("drizzle-orm/pg-core").PgColumn<{
4218
+ name: "order_number";
4219
+ tableName: "orders";
4220
+ dataType: "string";
4221
+ columnType: "PgText";
4222
+ data: string;
4223
+ driverParam: string;
4224
+ notNull: true;
4225
+ hasDefault: false;
4226
+ isPrimaryKey: false;
4227
+ isAutoincrement: false;
4228
+ hasRuntimeDefault: false;
4229
+ enumValues: [string, ...string[]];
4230
+ baseColumn: never;
4231
+ identity: undefined;
4232
+ generated: undefined;
4233
+ }, {}, {}>;
4234
+ customerId: import("drizzle-orm/pg-core").PgColumn<{
4235
+ name: "customer_id";
4236
+ tableName: "orders";
4237
+ dataType: "string";
4238
+ columnType: "PgUUID";
4239
+ data: string;
4240
+ driverParam: string;
4241
+ notNull: false;
4242
+ hasDefault: false;
4243
+ isPrimaryKey: false;
4244
+ isAutoincrement: false;
4245
+ hasRuntimeDefault: false;
4246
+ enumValues: undefined;
4247
+ baseColumn: never;
4248
+ identity: undefined;
4249
+ generated: undefined;
4250
+ }, {}, {}>;
4251
+ status: import("drizzle-orm/pg-core").PgColumn<{
4252
+ name: "status";
4253
+ tableName: "orders";
4254
+ dataType: "string";
4255
+ columnType: "PgText";
4256
+ data: string;
4257
+ driverParam: string;
4258
+ notNull: true;
4259
+ hasDefault: true;
4260
+ isPrimaryKey: false;
4261
+ isAutoincrement: false;
4262
+ hasRuntimeDefault: false;
4263
+ enumValues: [string, ...string[]];
4264
+ baseColumn: never;
4265
+ identity: undefined;
4266
+ generated: undefined;
4267
+ }, {}, {}>;
4268
+ currency: import("drizzle-orm/pg-core").PgColumn<{
4269
+ name: "currency";
4270
+ tableName: "orders";
4271
+ dataType: "string";
4272
+ columnType: "PgText";
4273
+ data: string;
4274
+ driverParam: string;
4275
+ notNull: true;
4276
+ hasDefault: false;
4277
+ isPrimaryKey: false;
4278
+ isAutoincrement: false;
4279
+ hasRuntimeDefault: false;
4280
+ enumValues: [string, ...string[]];
4281
+ baseColumn: never;
4282
+ identity: undefined;
4283
+ generated: undefined;
4284
+ }, {}, {}>;
4285
+ subtotal: import("drizzle-orm/pg-core").PgColumn<{
4286
+ name: "subtotal";
4287
+ tableName: "orders";
4288
+ dataType: "number";
4289
+ columnType: "PgInteger";
4290
+ data: number;
4291
+ driverParam: string | number;
4292
+ notNull: true;
4293
+ hasDefault: false;
4294
+ isPrimaryKey: false;
4295
+ isAutoincrement: false;
4296
+ hasRuntimeDefault: false;
4297
+ enumValues: undefined;
4298
+ baseColumn: never;
4299
+ identity: undefined;
4300
+ generated: undefined;
4301
+ }, {}, {}>;
4302
+ taxTotal: import("drizzle-orm/pg-core").PgColumn<{
4303
+ name: "tax_total";
4304
+ tableName: "orders";
4305
+ dataType: "number";
4306
+ columnType: "PgInteger";
4307
+ data: number;
4308
+ driverParam: string | number;
4309
+ notNull: true;
4310
+ hasDefault: false;
4311
+ isPrimaryKey: false;
4312
+ isAutoincrement: false;
4313
+ hasRuntimeDefault: false;
4314
+ enumValues: undefined;
4315
+ baseColumn: never;
4316
+ identity: undefined;
4317
+ generated: undefined;
4318
+ }, {}, {}>;
4319
+ shippingTotal: import("drizzle-orm/pg-core").PgColumn<{
4320
+ name: "shipping_total";
4321
+ tableName: "orders";
4322
+ dataType: "number";
4323
+ columnType: "PgInteger";
4324
+ data: number;
4325
+ driverParam: string | number;
4326
+ notNull: true;
4327
+ hasDefault: false;
4328
+ isPrimaryKey: false;
4329
+ isAutoincrement: false;
4330
+ hasRuntimeDefault: false;
4331
+ enumValues: undefined;
4332
+ baseColumn: never;
4333
+ identity: undefined;
4334
+ generated: undefined;
4335
+ }, {}, {}>;
4336
+ discountTotal: import("drizzle-orm/pg-core").PgColumn<{
4337
+ name: "discount_total";
4338
+ tableName: "orders";
4339
+ dataType: "number";
4340
+ columnType: "PgInteger";
4341
+ data: number;
4342
+ driverParam: string | number;
4343
+ notNull: true;
4344
+ hasDefault: true;
4345
+ isPrimaryKey: false;
4346
+ isAutoincrement: false;
4347
+ hasRuntimeDefault: false;
4348
+ enumValues: undefined;
4349
+ baseColumn: never;
4350
+ identity: undefined;
4351
+ generated: undefined;
4352
+ }, {}, {}>;
4353
+ grandTotal: import("drizzle-orm/pg-core").PgColumn<{
4354
+ name: "grand_total";
4355
+ tableName: "orders";
4356
+ dataType: "number";
4357
+ columnType: "PgInteger";
4358
+ data: number;
4359
+ driverParam: string | number;
4360
+ notNull: true;
4361
+ hasDefault: false;
4362
+ isPrimaryKey: false;
4363
+ isAutoincrement: false;
4364
+ hasRuntimeDefault: false;
4365
+ enumValues: undefined;
4366
+ baseColumn: never;
4367
+ identity: undefined;
4368
+ generated: undefined;
4369
+ }, {}, {}>;
4370
+ amountCaptured: import("drizzle-orm/pg-core").PgColumn<{
4371
+ name: "amount_captured";
4372
+ tableName: "orders";
4373
+ dataType: "number";
4374
+ columnType: "PgInteger";
4375
+ data: number;
4376
+ driverParam: string | number;
4377
+ notNull: false;
4378
+ hasDefault: false;
4379
+ isPrimaryKey: false;
4380
+ isAutoincrement: false;
4381
+ hasRuntimeDefault: false;
4382
+ enumValues: undefined;
4383
+ baseColumn: never;
4384
+ identity: undefined;
4385
+ generated: undefined;
4386
+ }, {}, {}>;
4387
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
4388
+ name: "payment_intent_id";
4389
+ tableName: "orders";
4390
+ dataType: "string";
4391
+ columnType: "PgText";
4392
+ data: string;
4393
+ driverParam: string;
4394
+ notNull: false;
4395
+ hasDefault: false;
4396
+ isPrimaryKey: false;
4397
+ isAutoincrement: false;
4398
+ hasRuntimeDefault: false;
4399
+ enumValues: [string, ...string[]];
4400
+ baseColumn: never;
4401
+ identity: undefined;
4402
+ generated: undefined;
4403
+ }, {}, {}>;
4404
+ paymentMethodId: import("drizzle-orm/pg-core").PgColumn<{
4405
+ name: "payment_method_id";
4406
+ tableName: "orders";
4407
+ dataType: "string";
4408
+ columnType: "PgText";
4409
+ data: string;
4410
+ driverParam: string;
4411
+ notNull: false;
4412
+ hasDefault: false;
4413
+ isPrimaryKey: false;
4414
+ isAutoincrement: false;
4415
+ hasRuntimeDefault: false;
4416
+ enumValues: [string, ...string[]];
4417
+ baseColumn: never;
4418
+ identity: undefined;
4419
+ generated: undefined;
4420
+ }, {}, {}>;
4421
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
4422
+ name: "idempotency_key";
4423
+ tableName: "orders";
4424
+ dataType: "string";
4425
+ columnType: "PgText";
4426
+ data: string;
4427
+ driverParam: string;
4428
+ notNull: false;
4429
+ hasDefault: false;
4430
+ isPrimaryKey: false;
4431
+ isAutoincrement: false;
4432
+ hasRuntimeDefault: false;
4433
+ enumValues: [string, ...string[]];
4434
+ baseColumn: never;
4435
+ identity: undefined;
4436
+ generated: undefined;
4437
+ }, {}, {}>;
4438
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
4439
+ name: "metadata";
4440
+ tableName: "orders";
4441
+ dataType: "json";
4442
+ columnType: "PgJsonb";
4443
+ data: Record<string, unknown>;
4444
+ driverParam: unknown;
4445
+ notNull: false;
4446
+ hasDefault: true;
4447
+ isPrimaryKey: false;
4448
+ isAutoincrement: false;
4449
+ hasRuntimeDefault: false;
4450
+ enumValues: undefined;
4451
+ baseColumn: never;
4452
+ identity: undefined;
4453
+ generated: undefined;
4454
+ }, {}, {
4455
+ $type: Record<string, unknown>;
4456
+ }>;
4457
+ placedAt: import("drizzle-orm/pg-core").PgColumn<{
4458
+ name: "placed_at";
4459
+ tableName: "orders";
4460
+ dataType: "date";
4461
+ columnType: "PgTimestamp";
4462
+ data: Date;
4463
+ driverParam: string;
4464
+ notNull: true;
4465
+ hasDefault: true;
4466
+ isPrimaryKey: false;
4467
+ isAutoincrement: false;
4468
+ hasRuntimeDefault: false;
4469
+ enumValues: undefined;
4470
+ baseColumn: never;
4471
+ identity: undefined;
4472
+ generated: undefined;
4473
+ }, {}, {}>;
4474
+ fulfilledAt: import("drizzle-orm/pg-core").PgColumn<{
4475
+ name: "fulfilled_at";
4476
+ tableName: "orders";
4477
+ dataType: "date";
4478
+ columnType: "PgTimestamp";
4479
+ data: Date;
4480
+ driverParam: string;
4481
+ notNull: false;
4482
+ hasDefault: false;
4483
+ isPrimaryKey: false;
4484
+ isAutoincrement: false;
4485
+ hasRuntimeDefault: false;
4486
+ enumValues: undefined;
4487
+ baseColumn: never;
4488
+ identity: undefined;
4489
+ generated: undefined;
4490
+ }, {}, {}>;
4491
+ cancelledAt: import("drizzle-orm/pg-core").PgColumn<{
4492
+ name: "cancelled_at";
4493
+ tableName: "orders";
4494
+ dataType: "date";
4495
+ columnType: "PgTimestamp";
4496
+ data: Date;
4497
+ driverParam: string;
4498
+ notNull: false;
4499
+ hasDefault: false;
4500
+ isPrimaryKey: false;
4501
+ isAutoincrement: false;
4502
+ hasRuntimeDefault: false;
4503
+ enumValues: undefined;
4504
+ baseColumn: never;
4505
+ identity: undefined;
4506
+ generated: undefined;
4507
+ }, {}, {}>;
4508
+ }, {
4509
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4510
+ }, undefined>;
4511
+ }, z.core.$strip>;
4512
+ };
4513
+ };
4514
+ description: string;
4515
+ };
4516
+ };
4517
+ } & {
4518
+ getRoutingPath(): "/:id/line-items/:lineItemId";
4519
+ };
4520
+ export declare const removeOrderLineItemRoute: {
4521
+ method: "delete";
4522
+ path: "/{id}/line-items/{lineItemId}";
4523
+ tags: string[];
4524
+ summary: string;
4525
+ description: string;
4526
+ request: {
4527
+ params: z.ZodObject<{
4528
+ id: z.ZodUUID;
4529
+ lineItemId: z.ZodUUID;
4530
+ }, z.core.$strip>;
4531
+ };
4532
+ responses: {
4533
+ 400: {
4534
+ readonly content: {
4535
+ readonly "application/json": {
4536
+ readonly schema: z.ZodObject<{
4537
+ error: z.ZodObject<{
4538
+ code: z.ZodString;
4539
+ message: z.ZodString;
4540
+ details: z.ZodOptional<z.ZodObject<{
4541
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4542
+ path: z.ZodString;
4543
+ message: z.ZodString;
4544
+ code: z.ZodString;
4545
+ }, z.core.$strip>>>;
4546
+ }, z.core.$strip>>;
4547
+ }, z.core.$strip>;
4548
+ }, z.core.$strip>;
4549
+ };
4550
+ };
4551
+ readonly description: "Business logic error.";
4552
+ };
4553
+ 401: {
4554
+ readonly content: {
4555
+ readonly "application/json": {
4556
+ readonly schema: z.ZodObject<{
4557
+ error: z.ZodObject<{
4558
+ code: z.ZodString;
4559
+ message: z.ZodString;
4560
+ details: z.ZodOptional<z.ZodObject<{
4561
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4562
+ path: z.ZodString;
4563
+ message: z.ZodString;
4564
+ code: z.ZodString;
4565
+ }, z.core.$strip>>>;
4566
+ }, z.core.$strip>>;
4567
+ }, z.core.$strip>;
4568
+ }, z.core.$strip>;
4569
+ };
4570
+ };
4571
+ readonly description: "Authentication required.";
4572
+ };
4573
+ 403: {
4574
+ readonly content: {
4575
+ readonly "application/json": {
4576
+ readonly schema: z.ZodObject<{
4577
+ error: z.ZodObject<{
4578
+ code: z.ZodString;
4579
+ message: z.ZodString;
4580
+ details: z.ZodOptional<z.ZodObject<{
4581
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4582
+ path: z.ZodString;
4583
+ message: z.ZodString;
4584
+ code: z.ZodString;
4585
+ }, z.core.$strip>>>;
4586
+ }, z.core.$strip>>;
4587
+ }, z.core.$strip>;
4588
+ }, z.core.$strip>;
4589
+ };
4590
+ };
4591
+ readonly description: "Insufficient permissions.";
4592
+ };
4593
+ 404: {
4594
+ readonly content: {
4595
+ readonly "application/json": {
4596
+ readonly schema: z.ZodObject<{
4597
+ error: z.ZodObject<{
4598
+ code: z.ZodString;
4599
+ message: z.ZodString;
4600
+ details: z.ZodOptional<z.ZodObject<{
4601
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4602
+ path: z.ZodString;
4603
+ message: z.ZodString;
4604
+ code: z.ZodString;
4605
+ }, z.core.$strip>>>;
4606
+ }, z.core.$strip>>;
4607
+ }, z.core.$strip>;
4608
+ }, z.core.$strip>;
4609
+ };
4610
+ };
4611
+ readonly description: "Resource not found.";
4612
+ };
4613
+ 422: {
4614
+ readonly content: {
4615
+ readonly "application/json": {
4616
+ readonly schema: z.ZodObject<{
4617
+ error: z.ZodObject<{
4618
+ code: z.ZodString;
4619
+ message: z.ZodString;
4620
+ details: z.ZodOptional<z.ZodObject<{
4621
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4622
+ path: z.ZodString;
4623
+ message: z.ZodString;
4624
+ code: z.ZodString;
4625
+ }, z.core.$strip>>>;
4626
+ }, z.core.$strip>>;
4627
+ }, z.core.$strip>;
4628
+ }, z.core.$strip>;
4629
+ };
4630
+ };
4631
+ readonly description: "Validation error.";
4632
+ };
4633
+ 200: {
4634
+ content: {
4635
+ "application/json": {
4636
+ schema: z.ZodObject<{
4637
+ data: import("drizzle-zod").BuildSchema<"select", {
4638
+ id: import("drizzle-orm/pg-core").PgColumn<{
4639
+ name: "id";
4640
+ tableName: "orders";
4641
+ dataType: "string";
4642
+ columnType: "PgUUID";
4643
+ data: string;
4644
+ driverParam: string;
4645
+ notNull: true;
4646
+ hasDefault: true;
4647
+ isPrimaryKey: true;
4648
+ isAutoincrement: false;
4649
+ hasRuntimeDefault: false;
4650
+ enumValues: undefined;
4651
+ baseColumn: never;
4652
+ identity: undefined;
4653
+ generated: undefined;
4654
+ }, {}, {}>;
4655
+ organizationId: import("drizzle-orm/pg-core").PgColumn<{
4656
+ name: "organization_id";
4657
+ tableName: "orders";
4658
+ dataType: "string";
4659
+ columnType: "PgText";
4660
+ data: string;
4661
+ driverParam: string;
4662
+ notNull: true;
4663
+ hasDefault: false;
4664
+ isPrimaryKey: false;
4665
+ isAutoincrement: false;
4666
+ hasRuntimeDefault: false;
4667
+ enumValues: [string, ...string[]];
4668
+ baseColumn: never;
4669
+ identity: undefined;
4670
+ generated: undefined;
4671
+ }, {}, {}>;
4672
+ orderNumber: import("drizzle-orm/pg-core").PgColumn<{
4673
+ name: "order_number";
4674
+ tableName: "orders";
4675
+ dataType: "string";
4676
+ columnType: "PgText";
4677
+ data: string;
4678
+ driverParam: string;
4679
+ notNull: true;
4680
+ hasDefault: false;
4681
+ isPrimaryKey: false;
4682
+ isAutoincrement: false;
4683
+ hasRuntimeDefault: false;
4684
+ enumValues: [string, ...string[]];
4685
+ baseColumn: never;
4686
+ identity: undefined;
4687
+ generated: undefined;
4688
+ }, {}, {}>;
4689
+ customerId: import("drizzle-orm/pg-core").PgColumn<{
4690
+ name: "customer_id";
4691
+ tableName: "orders";
4692
+ dataType: "string";
4693
+ columnType: "PgUUID";
4694
+ data: string;
4695
+ driverParam: string;
4696
+ notNull: false;
4697
+ hasDefault: false;
4698
+ isPrimaryKey: false;
4699
+ isAutoincrement: false;
4700
+ hasRuntimeDefault: false;
4701
+ enumValues: undefined;
4702
+ baseColumn: never;
4703
+ identity: undefined;
4704
+ generated: undefined;
4705
+ }, {}, {}>;
4706
+ status: import("drizzle-orm/pg-core").PgColumn<{
4707
+ name: "status";
4708
+ tableName: "orders";
4709
+ dataType: "string";
4710
+ columnType: "PgText";
4711
+ data: string;
4712
+ driverParam: string;
4713
+ notNull: true;
4714
+ hasDefault: true;
4715
+ isPrimaryKey: false;
4716
+ isAutoincrement: false;
4717
+ hasRuntimeDefault: false;
4718
+ enumValues: [string, ...string[]];
4719
+ baseColumn: never;
4720
+ identity: undefined;
4721
+ generated: undefined;
4722
+ }, {}, {}>;
4723
+ currency: import("drizzle-orm/pg-core").PgColumn<{
4724
+ name: "currency";
4725
+ tableName: "orders";
4726
+ dataType: "string";
4727
+ columnType: "PgText";
4728
+ data: string;
4729
+ driverParam: string;
4730
+ notNull: true;
4731
+ hasDefault: false;
4732
+ isPrimaryKey: false;
4733
+ isAutoincrement: false;
4734
+ hasRuntimeDefault: false;
4735
+ enumValues: [string, ...string[]];
4736
+ baseColumn: never;
4737
+ identity: undefined;
4738
+ generated: undefined;
4739
+ }, {}, {}>;
4740
+ subtotal: import("drizzle-orm/pg-core").PgColumn<{
4741
+ name: "subtotal";
4742
+ tableName: "orders";
4743
+ dataType: "number";
4744
+ columnType: "PgInteger";
4745
+ data: number;
4746
+ driverParam: string | number;
4747
+ notNull: true;
4748
+ hasDefault: false;
4749
+ isPrimaryKey: false;
4750
+ isAutoincrement: false;
4751
+ hasRuntimeDefault: false;
4752
+ enumValues: undefined;
4753
+ baseColumn: never;
4754
+ identity: undefined;
4755
+ generated: undefined;
4756
+ }, {}, {}>;
4757
+ taxTotal: import("drizzle-orm/pg-core").PgColumn<{
4758
+ name: "tax_total";
4759
+ tableName: "orders";
4760
+ dataType: "number";
4761
+ columnType: "PgInteger";
4762
+ data: number;
4763
+ driverParam: string | number;
4764
+ notNull: true;
4765
+ hasDefault: false;
4766
+ isPrimaryKey: false;
4767
+ isAutoincrement: false;
4768
+ hasRuntimeDefault: false;
4769
+ enumValues: undefined;
4770
+ baseColumn: never;
4771
+ identity: undefined;
4772
+ generated: undefined;
4773
+ }, {}, {}>;
4774
+ shippingTotal: import("drizzle-orm/pg-core").PgColumn<{
4775
+ name: "shipping_total";
4776
+ tableName: "orders";
4777
+ dataType: "number";
4778
+ columnType: "PgInteger";
4779
+ data: number;
4780
+ driverParam: string | number;
4781
+ notNull: true;
4782
+ hasDefault: false;
4783
+ isPrimaryKey: false;
4784
+ isAutoincrement: false;
4785
+ hasRuntimeDefault: false;
4786
+ enumValues: undefined;
4787
+ baseColumn: never;
4788
+ identity: undefined;
4789
+ generated: undefined;
4790
+ }, {}, {}>;
4791
+ discountTotal: import("drizzle-orm/pg-core").PgColumn<{
4792
+ name: "discount_total";
4793
+ tableName: "orders";
4794
+ dataType: "number";
4795
+ columnType: "PgInteger";
4796
+ data: number;
4797
+ driverParam: string | number;
4798
+ notNull: true;
4799
+ hasDefault: true;
4800
+ isPrimaryKey: false;
4801
+ isAutoincrement: false;
4802
+ hasRuntimeDefault: false;
4803
+ enumValues: undefined;
4804
+ baseColumn: never;
4805
+ identity: undefined;
4806
+ generated: undefined;
4807
+ }, {}, {}>;
4808
+ grandTotal: import("drizzle-orm/pg-core").PgColumn<{
4809
+ name: "grand_total";
4810
+ tableName: "orders";
4811
+ dataType: "number";
4812
+ columnType: "PgInteger";
4813
+ data: number;
4814
+ driverParam: string | number;
4815
+ notNull: true;
4816
+ hasDefault: false;
4817
+ isPrimaryKey: false;
4818
+ isAutoincrement: false;
4819
+ hasRuntimeDefault: false;
4820
+ enumValues: undefined;
4821
+ baseColumn: never;
4822
+ identity: undefined;
4823
+ generated: undefined;
4824
+ }, {}, {}>;
4825
+ amountCaptured: import("drizzle-orm/pg-core").PgColumn<{
4826
+ name: "amount_captured";
4827
+ tableName: "orders";
4828
+ dataType: "number";
4829
+ columnType: "PgInteger";
4830
+ data: number;
4831
+ driverParam: string | number;
4832
+ notNull: false;
4833
+ hasDefault: false;
4834
+ isPrimaryKey: false;
4835
+ isAutoincrement: false;
4836
+ hasRuntimeDefault: false;
4837
+ enumValues: undefined;
4838
+ baseColumn: never;
4839
+ identity: undefined;
4840
+ generated: undefined;
4841
+ }, {}, {}>;
4842
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
4843
+ name: "payment_intent_id";
4844
+ tableName: "orders";
4845
+ dataType: "string";
4846
+ columnType: "PgText";
4847
+ data: string;
4848
+ driverParam: string;
4849
+ notNull: false;
4850
+ hasDefault: false;
4851
+ isPrimaryKey: false;
4852
+ isAutoincrement: false;
4853
+ hasRuntimeDefault: false;
4854
+ enumValues: [string, ...string[]];
4855
+ baseColumn: never;
4856
+ identity: undefined;
4857
+ generated: undefined;
4858
+ }, {}, {}>;
4859
+ paymentMethodId: import("drizzle-orm/pg-core").PgColumn<{
4860
+ name: "payment_method_id";
4861
+ tableName: "orders";
4862
+ dataType: "string";
4863
+ columnType: "PgText";
4864
+ data: string;
4865
+ driverParam: string;
4866
+ notNull: false;
4867
+ hasDefault: false;
4868
+ isPrimaryKey: false;
4869
+ isAutoincrement: false;
4870
+ hasRuntimeDefault: false;
4871
+ enumValues: [string, ...string[]];
4872
+ baseColumn: never;
4873
+ identity: undefined;
4874
+ generated: undefined;
4875
+ }, {}, {}>;
4876
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
4877
+ name: "idempotency_key";
4878
+ tableName: "orders";
4879
+ dataType: "string";
4880
+ columnType: "PgText";
4881
+ data: string;
4882
+ driverParam: string;
4883
+ notNull: false;
4884
+ hasDefault: false;
4885
+ isPrimaryKey: false;
4886
+ isAutoincrement: false;
4887
+ hasRuntimeDefault: false;
4888
+ enumValues: [string, ...string[]];
4889
+ baseColumn: never;
4890
+ identity: undefined;
4891
+ generated: undefined;
4892
+ }, {}, {}>;
4893
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
4894
+ name: "metadata";
4895
+ tableName: "orders";
4896
+ dataType: "json";
4897
+ columnType: "PgJsonb";
4898
+ data: Record<string, unknown>;
4899
+ driverParam: unknown;
4900
+ notNull: false;
4901
+ hasDefault: true;
4902
+ isPrimaryKey: false;
4903
+ isAutoincrement: false;
4904
+ hasRuntimeDefault: false;
4905
+ enumValues: undefined;
4906
+ baseColumn: never;
4907
+ identity: undefined;
4908
+ generated: undefined;
4909
+ }, {}, {
4910
+ $type: Record<string, unknown>;
4911
+ }>;
4912
+ placedAt: import("drizzle-orm/pg-core").PgColumn<{
4913
+ name: "placed_at";
4914
+ tableName: "orders";
4915
+ dataType: "date";
4916
+ columnType: "PgTimestamp";
4917
+ data: Date;
4918
+ driverParam: string;
4919
+ notNull: true;
4920
+ hasDefault: true;
4921
+ isPrimaryKey: false;
4922
+ isAutoincrement: false;
4923
+ hasRuntimeDefault: false;
4924
+ enumValues: undefined;
4925
+ baseColumn: never;
4926
+ identity: undefined;
4927
+ generated: undefined;
4928
+ }, {}, {}>;
4929
+ fulfilledAt: import("drizzle-orm/pg-core").PgColumn<{
4930
+ name: "fulfilled_at";
4931
+ tableName: "orders";
4932
+ dataType: "date";
4933
+ columnType: "PgTimestamp";
4934
+ data: Date;
4935
+ driverParam: string;
4936
+ notNull: false;
4937
+ hasDefault: false;
4938
+ isPrimaryKey: false;
4939
+ isAutoincrement: false;
4940
+ hasRuntimeDefault: false;
4941
+ enumValues: undefined;
4942
+ baseColumn: never;
4943
+ identity: undefined;
4944
+ generated: undefined;
4945
+ }, {}, {}>;
4946
+ cancelledAt: import("drizzle-orm/pg-core").PgColumn<{
4947
+ name: "cancelled_at";
4948
+ tableName: "orders";
4949
+ dataType: "date";
4950
+ columnType: "PgTimestamp";
4951
+ data: Date;
4952
+ driverParam: string;
4953
+ notNull: false;
4954
+ hasDefault: false;
4955
+ isPrimaryKey: false;
4956
+ isAutoincrement: false;
4957
+ hasRuntimeDefault: false;
4958
+ enumValues: undefined;
4959
+ baseColumn: never;
4960
+ identity: undefined;
4961
+ generated: undefined;
4962
+ }, {}, {}>;
4963
+ }, {
4964
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4965
+ }, undefined>;
4966
+ }, z.core.$strip>;
4967
+ };
4968
+ };
4969
+ description: string;
4970
+ };
4971
+ };
4972
+ } & {
4973
+ getRoutingPath(): "/:id/line-items/:lineItemId";
4974
+ };
4975
+ export declare const changeOrderStatusRoute: {
4976
+ method: "patch";
4977
+ path: "/{id}/status";
4978
+ tags: string[];
4979
+ summary: string;
4980
+ request: {
4981
+ params: z.ZodObject<{
4982
+ id: z.ZodUUID;
4983
+ }, z.core.$strip>;
4984
+ body: {
4985
+ content: {
4986
+ "application/json": {
4987
+ schema: z.ZodObject<{
4988
+ status: z.ZodString;
4989
+ reason: z.ZodOptional<z.ZodString>;
4990
+ }, z.core.$strip>;
4991
+ };
4992
+ };
4993
+ required: true;
4994
+ };
4995
+ };
4996
+ responses: {
4997
+ 400: {
4998
+ readonly content: {
4999
+ readonly "application/json": {
5000
+ readonly schema: z.ZodObject<{
5001
+ error: z.ZodObject<{
5002
+ code: z.ZodString;
5003
+ message: z.ZodString;
5004
+ details: z.ZodOptional<z.ZodObject<{
5005
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5006
+ path: z.ZodString;
5007
+ message: z.ZodString;
5008
+ code: z.ZodString;
5009
+ }, z.core.$strip>>>;
5010
+ }, z.core.$strip>>;
5011
+ }, z.core.$strip>;
5012
+ }, z.core.$strip>;
5013
+ };
5014
+ };
5015
+ readonly description: "Business logic error.";
5016
+ };
5017
+ 401: {
5018
+ readonly content: {
5019
+ readonly "application/json": {
5020
+ readonly schema: z.ZodObject<{
5021
+ error: z.ZodObject<{
5022
+ code: z.ZodString;
5023
+ message: z.ZodString;
5024
+ details: z.ZodOptional<z.ZodObject<{
5025
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5026
+ path: z.ZodString;
5027
+ message: z.ZodString;
5028
+ code: z.ZodString;
5029
+ }, z.core.$strip>>>;
5030
+ }, z.core.$strip>>;
5031
+ }, z.core.$strip>;
5032
+ }, z.core.$strip>;
5033
+ };
5034
+ };
5035
+ readonly description: "Authentication required.";
5036
+ };
5037
+ 403: {
5038
+ readonly content: {
5039
+ readonly "application/json": {
5040
+ readonly schema: z.ZodObject<{
5041
+ error: z.ZodObject<{
5042
+ code: z.ZodString;
5043
+ message: z.ZodString;
5044
+ details: z.ZodOptional<z.ZodObject<{
5045
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5046
+ path: z.ZodString;
5047
+ message: z.ZodString;
5048
+ code: z.ZodString;
5049
+ }, z.core.$strip>>>;
5050
+ }, z.core.$strip>>;
5051
+ }, z.core.$strip>;
5052
+ }, z.core.$strip>;
5053
+ };
5054
+ };
5055
+ readonly description: "Insufficient permissions.";
5056
+ };
5057
+ 404: {
5058
+ readonly content: {
5059
+ readonly "application/json": {
5060
+ readonly schema: z.ZodObject<{
5061
+ error: z.ZodObject<{
5062
+ code: z.ZodString;
5063
+ message: z.ZodString;
5064
+ details: z.ZodOptional<z.ZodObject<{
5065
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5066
+ path: z.ZodString;
5067
+ message: z.ZodString;
5068
+ code: z.ZodString;
5069
+ }, z.core.$strip>>>;
5070
+ }, z.core.$strip>>;
5071
+ }, z.core.$strip>;
5072
+ }, z.core.$strip>;
5073
+ };
5074
+ };
5075
+ readonly description: "Resource not found.";
5076
+ };
5077
+ 422: {
5078
+ readonly content: {
5079
+ readonly "application/json": {
5080
+ readonly schema: z.ZodObject<{
5081
+ error: z.ZodObject<{
5082
+ code: z.ZodString;
5083
+ message: z.ZodString;
5084
+ details: z.ZodOptional<z.ZodObject<{
5085
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5086
+ path: z.ZodString;
5087
+ message: z.ZodString;
5088
+ code: z.ZodString;
5089
+ }, z.core.$strip>>>;
5090
+ }, z.core.$strip>>;
5091
+ }, z.core.$strip>;
5092
+ }, z.core.$strip>;
5093
+ };
5094
+ };
5095
+ readonly description: "Validation error.";
5096
+ };
5097
+ 200: {
5098
+ content: {
5099
+ "application/json": {
5100
+ schema: z.ZodObject<{
5101
+ data: import("drizzle-zod").BuildSchema<"select", {
5102
+ id: import("drizzle-orm/pg-core").PgColumn<{
5103
+ name: "id";
5104
+ tableName: "orders";
5105
+ dataType: "string";
5106
+ columnType: "PgUUID";
5107
+ data: string;
5108
+ driverParam: string;
5109
+ notNull: true;
5110
+ hasDefault: true;
5111
+ isPrimaryKey: true;
5112
+ isAutoincrement: false;
5113
+ hasRuntimeDefault: false;
5114
+ enumValues: undefined;
5115
+ baseColumn: never;
5116
+ identity: undefined;
5117
+ generated: undefined;
5118
+ }, {}, {}>;
5119
+ organizationId: import("drizzle-orm/pg-core").PgColumn<{
5120
+ name: "organization_id";
5121
+ tableName: "orders";
5122
+ dataType: "string";
5123
+ columnType: "PgText";
5124
+ data: string;
5125
+ driverParam: string;
5126
+ notNull: true;
5127
+ hasDefault: false;
5128
+ isPrimaryKey: false;
5129
+ isAutoincrement: false;
5130
+ hasRuntimeDefault: false;
5131
+ enumValues: [string, ...string[]];
5132
+ baseColumn: never;
5133
+ identity: undefined;
5134
+ generated: undefined;
5135
+ }, {}, {}>;
5136
+ orderNumber: import("drizzle-orm/pg-core").PgColumn<{
5137
+ name: "order_number";
5138
+ tableName: "orders";
5139
+ dataType: "string";
5140
+ columnType: "PgText";
5141
+ data: string;
5142
+ driverParam: string;
5143
+ notNull: true;
5144
+ hasDefault: false;
5145
+ isPrimaryKey: false;
5146
+ isAutoincrement: false;
5147
+ hasRuntimeDefault: false;
5148
+ enumValues: [string, ...string[]];
5149
+ baseColumn: never;
5150
+ identity: undefined;
5151
+ generated: undefined;
5152
+ }, {}, {}>;
5153
+ customerId: import("drizzle-orm/pg-core").PgColumn<{
5154
+ name: "customer_id";
5155
+ tableName: "orders";
5156
+ dataType: "string";
5157
+ columnType: "PgUUID";
5158
+ data: string;
5159
+ driverParam: string;
5160
+ notNull: false;
5161
+ hasDefault: false;
5162
+ isPrimaryKey: false;
5163
+ isAutoincrement: false;
5164
+ hasRuntimeDefault: false;
5165
+ enumValues: undefined;
5166
+ baseColumn: never;
5167
+ identity: undefined;
5168
+ generated: undefined;
5169
+ }, {}, {}>;
5170
+ status: import("drizzle-orm/pg-core").PgColumn<{
5171
+ name: "status";
5172
+ tableName: "orders";
5173
+ dataType: "string";
5174
+ columnType: "PgText";
5175
+ data: string;
5176
+ driverParam: string;
5177
+ notNull: true;
5178
+ hasDefault: true;
5179
+ isPrimaryKey: false;
5180
+ isAutoincrement: false;
5181
+ hasRuntimeDefault: false;
5182
+ enumValues: [string, ...string[]];
5183
+ baseColumn: never;
5184
+ identity: undefined;
5185
+ generated: undefined;
5186
+ }, {}, {}>;
5187
+ currency: import("drizzle-orm/pg-core").PgColumn<{
5188
+ name: "currency";
5189
+ tableName: "orders";
5190
+ dataType: "string";
5191
+ columnType: "PgText";
5192
+ data: string;
5193
+ driverParam: string;
5194
+ notNull: true;
5195
+ hasDefault: false;
5196
+ isPrimaryKey: false;
5197
+ isAutoincrement: false;
5198
+ hasRuntimeDefault: false;
5199
+ enumValues: [string, ...string[]];
5200
+ baseColumn: never;
5201
+ identity: undefined;
5202
+ generated: undefined;
5203
+ }, {}, {}>;
5204
+ subtotal: import("drizzle-orm/pg-core").PgColumn<{
5205
+ name: "subtotal";
5206
+ tableName: "orders";
5207
+ dataType: "number";
5208
+ columnType: "PgInteger";
5209
+ data: number;
5210
+ driverParam: string | number;
5211
+ notNull: true;
5212
+ hasDefault: false;
5213
+ isPrimaryKey: false;
5214
+ isAutoincrement: false;
5215
+ hasRuntimeDefault: false;
5216
+ enumValues: undefined;
5217
+ baseColumn: never;
5218
+ identity: undefined;
5219
+ generated: undefined;
5220
+ }, {}, {}>;
5221
+ taxTotal: import("drizzle-orm/pg-core").PgColumn<{
5222
+ name: "tax_total";
5223
+ tableName: "orders";
5224
+ dataType: "number";
5225
+ columnType: "PgInteger";
5226
+ data: number;
5227
+ driverParam: string | number;
5228
+ notNull: true;
5229
+ hasDefault: false;
5230
+ isPrimaryKey: false;
5231
+ isAutoincrement: false;
5232
+ hasRuntimeDefault: false;
5233
+ enumValues: undefined;
5234
+ baseColumn: never;
5235
+ identity: undefined;
5236
+ generated: undefined;
5237
+ }, {}, {}>;
5238
+ shippingTotal: import("drizzle-orm/pg-core").PgColumn<{
5239
+ name: "shipping_total";
5240
+ tableName: "orders";
5241
+ dataType: "number";
5242
+ columnType: "PgInteger";
5243
+ data: number;
5244
+ driverParam: string | number;
5245
+ notNull: true;
5246
+ hasDefault: false;
5247
+ isPrimaryKey: false;
5248
+ isAutoincrement: false;
5249
+ hasRuntimeDefault: false;
5250
+ enumValues: undefined;
5251
+ baseColumn: never;
5252
+ identity: undefined;
5253
+ generated: undefined;
5254
+ }, {}, {}>;
5255
+ discountTotal: import("drizzle-orm/pg-core").PgColumn<{
5256
+ name: "discount_total";
5257
+ tableName: "orders";
5258
+ dataType: "number";
5259
+ columnType: "PgInteger";
5260
+ data: number;
5261
+ driverParam: string | number;
5262
+ notNull: true;
5263
+ hasDefault: true;
5264
+ isPrimaryKey: false;
5265
+ isAutoincrement: false;
5266
+ hasRuntimeDefault: false;
5267
+ enumValues: undefined;
5268
+ baseColumn: never;
5269
+ identity: undefined;
5270
+ generated: undefined;
5271
+ }, {}, {}>;
5272
+ grandTotal: import("drizzle-orm/pg-core").PgColumn<{
5273
+ name: "grand_total";
5274
+ tableName: "orders";
5275
+ dataType: "number";
5276
+ columnType: "PgInteger";
5277
+ data: number;
5278
+ driverParam: string | number;
5279
+ notNull: true;
5280
+ hasDefault: false;
5281
+ isPrimaryKey: false;
5282
+ isAutoincrement: false;
5283
+ hasRuntimeDefault: false;
5284
+ enumValues: undefined;
5285
+ baseColumn: never;
5286
+ identity: undefined;
5287
+ generated: undefined;
5288
+ }, {}, {}>;
5289
+ amountCaptured: import("drizzle-orm/pg-core").PgColumn<{
5290
+ name: "amount_captured";
5291
+ tableName: "orders";
5292
+ dataType: "number";
5293
+ columnType: "PgInteger";
5294
+ data: number;
5295
+ driverParam: string | number;
5296
+ notNull: false;
5297
+ hasDefault: false;
5298
+ isPrimaryKey: false;
5299
+ isAutoincrement: false;
5300
+ hasRuntimeDefault: false;
5301
+ enumValues: undefined;
5302
+ baseColumn: never;
5303
+ identity: undefined;
5304
+ generated: undefined;
5305
+ }, {}, {}>;
5306
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
5307
+ name: "payment_intent_id";
5308
+ tableName: "orders";
5309
+ dataType: "string";
5310
+ columnType: "PgText";
5311
+ data: string;
5312
+ driverParam: string;
5313
+ notNull: false;
5314
+ hasDefault: false;
5315
+ isPrimaryKey: false;
5316
+ isAutoincrement: false;
5317
+ hasRuntimeDefault: false;
5318
+ enumValues: [string, ...string[]];
5319
+ baseColumn: never;
5320
+ identity: undefined;
5321
+ generated: undefined;
5322
+ }, {}, {}>;
5323
+ paymentMethodId: import("drizzle-orm/pg-core").PgColumn<{
5324
+ name: "payment_method_id";
5325
+ tableName: "orders";
5326
+ dataType: "string";
5327
+ columnType: "PgText";
5328
+ data: string;
5329
+ driverParam: string;
5330
+ notNull: false;
5331
+ hasDefault: false;
5332
+ isPrimaryKey: false;
5333
+ isAutoincrement: false;
5334
+ hasRuntimeDefault: false;
5335
+ enumValues: [string, ...string[]];
5336
+ baseColumn: never;
5337
+ identity: undefined;
5338
+ generated: undefined;
5339
+ }, {}, {}>;
5340
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
5341
+ name: "idempotency_key";
5342
+ tableName: "orders";
5343
+ dataType: "string";
5344
+ columnType: "PgText";
5345
+ data: string;
5346
+ driverParam: string;
5347
+ notNull: false;
5348
+ hasDefault: false;
5349
+ isPrimaryKey: false;
5350
+ isAutoincrement: false;
5351
+ hasRuntimeDefault: false;
5352
+ enumValues: [string, ...string[]];
5353
+ baseColumn: never;
5354
+ identity: undefined;
5355
+ generated: undefined;
5356
+ }, {}, {}>;
5357
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
5358
+ name: "metadata";
5359
+ tableName: "orders";
5360
+ dataType: "json";
5361
+ columnType: "PgJsonb";
5362
+ data: Record<string, unknown>;
5363
+ driverParam: unknown;
5364
+ notNull: false;
5365
+ hasDefault: true;
5366
+ isPrimaryKey: false;
5367
+ isAutoincrement: false;
5368
+ hasRuntimeDefault: false;
5369
+ enumValues: undefined;
5370
+ baseColumn: never;
5371
+ identity: undefined;
5372
+ generated: undefined;
5373
+ }, {}, {
5374
+ $type: Record<string, unknown>;
5375
+ }>;
5376
+ placedAt: import("drizzle-orm/pg-core").PgColumn<{
5377
+ name: "placed_at";
5378
+ tableName: "orders";
5379
+ dataType: "date";
5380
+ columnType: "PgTimestamp";
5381
+ data: Date;
5382
+ driverParam: string;
5383
+ notNull: true;
5384
+ hasDefault: true;
5385
+ isPrimaryKey: false;
5386
+ isAutoincrement: false;
5387
+ hasRuntimeDefault: false;
5388
+ enumValues: undefined;
5389
+ baseColumn: never;
5390
+ identity: undefined;
5391
+ generated: undefined;
5392
+ }, {}, {}>;
5393
+ fulfilledAt: import("drizzle-orm/pg-core").PgColumn<{
5394
+ name: "fulfilled_at";
5395
+ tableName: "orders";
5396
+ dataType: "date";
5397
+ columnType: "PgTimestamp";
5398
+ data: Date;
5399
+ driverParam: string;
5400
+ notNull: false;
5401
+ hasDefault: false;
5402
+ isPrimaryKey: false;
5403
+ isAutoincrement: false;
5404
+ hasRuntimeDefault: false;
5405
+ enumValues: undefined;
5406
+ baseColumn: never;
5407
+ identity: undefined;
5408
+ generated: undefined;
5409
+ }, {}, {}>;
5410
+ cancelledAt: import("drizzle-orm/pg-core").PgColumn<{
5411
+ name: "cancelled_at";
5412
+ tableName: "orders";
5413
+ dataType: "date";
5414
+ columnType: "PgTimestamp";
5415
+ data: Date;
5416
+ driverParam: string;
5417
+ notNull: false;
5418
+ hasDefault: false;
5419
+ isPrimaryKey: false;
5420
+ isAutoincrement: false;
5421
+ hasRuntimeDefault: false;
5422
+ enumValues: undefined;
5423
+ baseColumn: never;
5424
+ identity: undefined;
5425
+ generated: undefined;
5426
+ }, {}, {}>;
5427
+ }, {
5428
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5429
+ }, undefined>;
5430
+ }, z.core.$strip>;
5431
+ };
5432
+ };
5433
+ description: string;
5434
+ };
5435
+ };
5436
+ } & {
5437
+ getRoutingPath(): "/:id/status";
5438
+ };
5439
+ export declare const RefundLinesBodySchema: z.ZodObject<{
5440
+ lines: z.ZodArray<z.ZodObject<{
5441
+ lineItemId: z.ZodUUID;
5442
+ quantity: z.ZodNumber;
5443
+ }, z.core.$strip>>;
5444
+ reason: z.ZodOptional<z.ZodString>;
5445
+ }, z.core.$strip>;
5446
+ export declare const refundOrderLinesRoute: {
5447
+ method: "post";
5448
+ path: "/{id}/refunds";
5449
+ tags: string[];
5450
+ summary: string;
5451
+ description: string;
5452
+ request: {
5453
+ params: z.ZodObject<{
5454
+ id: z.ZodUUID;
5455
+ }, z.core.$strip>;
5456
+ body: {
5457
+ content: {
5458
+ "application/json": {
5459
+ schema: z.ZodObject<{
5460
+ lines: z.ZodArray<z.ZodObject<{
5461
+ lineItemId: z.ZodUUID;
5462
+ quantity: z.ZodNumber;
5463
+ }, z.core.$strip>>;
5464
+ reason: z.ZodOptional<z.ZodString>;
5465
+ }, z.core.$strip>;
5466
+ };
5467
+ };
5468
+ required: true;
5469
+ };
5470
+ };
5471
+ responses: {
5472
+ 400: {
5473
+ readonly content: {
5474
+ readonly "application/json": {
5475
+ readonly schema: z.ZodObject<{
5476
+ error: z.ZodObject<{
5477
+ code: z.ZodString;
5478
+ message: z.ZodString;
5479
+ details: z.ZodOptional<z.ZodObject<{
5480
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5481
+ path: z.ZodString;
5482
+ message: z.ZodString;
5483
+ code: z.ZodString;
5484
+ }, z.core.$strip>>>;
5485
+ }, z.core.$strip>>;
5486
+ }, z.core.$strip>;
5487
+ }, z.core.$strip>;
5488
+ };
5489
+ };
5490
+ readonly description: "Business logic error.";
5491
+ };
5492
+ 401: {
5493
+ readonly content: {
5494
+ readonly "application/json": {
5495
+ readonly schema: z.ZodObject<{
5496
+ error: z.ZodObject<{
5497
+ code: z.ZodString;
5498
+ message: z.ZodString;
5499
+ details: z.ZodOptional<z.ZodObject<{
5500
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5501
+ path: z.ZodString;
5502
+ message: z.ZodString;
5503
+ code: z.ZodString;
5504
+ }, z.core.$strip>>>;
5505
+ }, z.core.$strip>>;
5506
+ }, z.core.$strip>;
5507
+ }, z.core.$strip>;
5508
+ };
5509
+ };
5510
+ readonly description: "Authentication required.";
5511
+ };
5512
+ 403: {
5513
+ readonly content: {
5514
+ readonly "application/json": {
5515
+ readonly schema: z.ZodObject<{
5516
+ error: z.ZodObject<{
5517
+ code: z.ZodString;
5518
+ message: z.ZodString;
5519
+ details: z.ZodOptional<z.ZodObject<{
5520
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5521
+ path: z.ZodString;
5522
+ message: z.ZodString;
5523
+ code: z.ZodString;
5524
+ }, z.core.$strip>>>;
5525
+ }, z.core.$strip>>;
5526
+ }, z.core.$strip>;
5527
+ }, z.core.$strip>;
5528
+ };
5529
+ };
5530
+ readonly description: "Insufficient permissions.";
5531
+ };
5532
+ 404: {
5533
+ readonly content: {
5534
+ readonly "application/json": {
5535
+ readonly schema: z.ZodObject<{
5536
+ error: z.ZodObject<{
5537
+ code: z.ZodString;
5538
+ message: z.ZodString;
5539
+ details: z.ZodOptional<z.ZodObject<{
5540
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5541
+ path: z.ZodString;
5542
+ message: z.ZodString;
5543
+ code: z.ZodString;
5544
+ }, z.core.$strip>>>;
5545
+ }, z.core.$strip>>;
5546
+ }, z.core.$strip>;
5547
+ }, z.core.$strip>;
5548
+ };
5549
+ };
5550
+ readonly description: "Resource not found.";
5551
+ };
5552
+ 422: {
5553
+ readonly content: {
5554
+ readonly "application/json": {
5555
+ readonly schema: z.ZodObject<{
5556
+ error: z.ZodObject<{
5557
+ code: z.ZodString;
5558
+ message: z.ZodString;
5559
+ details: z.ZodOptional<z.ZodObject<{
5560
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5561
+ path: z.ZodString;
5562
+ message: z.ZodString;
5563
+ code: z.ZodString;
5564
+ }, z.core.$strip>>>;
5565
+ }, z.core.$strip>>;
5566
+ }, z.core.$strip>;
5567
+ }, z.core.$strip>;
5568
+ };
5569
+ };
5570
+ readonly description: "Validation error.";
5571
+ };
5572
+ 201: {
5573
+ content: {
5574
+ "application/json": {
5575
+ schema: z.ZodObject<{
5576
+ data: z.ZodAny;
5577
+ }, z.core.$strip>;
5578
+ };
5579
+ };
5580
+ description: string;
5581
+ };
5582
+ };
5583
+ } & {
5584
+ getRoutingPath(): "/:id/refunds";
5585
+ };
5586
+ export declare const undoOrderRefundRoute: {
5587
+ method: "post";
5588
+ path: "/{id}/refunds/{refundId}/undo";
5589
+ tags: string[];
5590
+ summary: string;
5591
+ request: {
5592
+ params: z.ZodObject<{
5593
+ id: z.ZodUUID;
5594
+ refundId: z.ZodUUID;
5595
+ }, z.core.$strip>;
5596
+ };
5597
+ responses: {
5598
+ 400: {
5599
+ readonly content: {
5600
+ readonly "application/json": {
5601
+ readonly schema: z.ZodObject<{
5602
+ error: z.ZodObject<{
5603
+ code: z.ZodString;
5604
+ message: z.ZodString;
5605
+ details: z.ZodOptional<z.ZodObject<{
5606
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5607
+ path: z.ZodString;
5608
+ message: z.ZodString;
5609
+ code: z.ZodString;
5610
+ }, z.core.$strip>>>;
5611
+ }, z.core.$strip>>;
5612
+ }, z.core.$strip>;
5613
+ }, z.core.$strip>;
5614
+ };
5615
+ };
5616
+ readonly description: "Business logic error.";
5617
+ };
5618
+ 401: {
5619
+ readonly content: {
5620
+ readonly "application/json": {
5621
+ readonly schema: z.ZodObject<{
5622
+ error: z.ZodObject<{
5623
+ code: z.ZodString;
5624
+ message: z.ZodString;
5625
+ details: z.ZodOptional<z.ZodObject<{
5626
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5627
+ path: z.ZodString;
5628
+ message: z.ZodString;
5629
+ code: z.ZodString;
5630
+ }, z.core.$strip>>>;
5631
+ }, z.core.$strip>>;
5632
+ }, z.core.$strip>;
5633
+ }, z.core.$strip>;
5634
+ };
5635
+ };
5636
+ readonly description: "Authentication required.";
5637
+ };
5638
+ 403: {
5639
+ readonly content: {
5640
+ readonly "application/json": {
5641
+ readonly schema: z.ZodObject<{
5642
+ error: z.ZodObject<{
5643
+ code: z.ZodString;
5644
+ message: z.ZodString;
5645
+ details: z.ZodOptional<z.ZodObject<{
5646
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5647
+ path: z.ZodString;
5648
+ message: z.ZodString;
5649
+ code: z.ZodString;
5650
+ }, z.core.$strip>>>;
5651
+ }, z.core.$strip>>;
5652
+ }, z.core.$strip>;
5653
+ }, z.core.$strip>;
5654
+ };
5655
+ };
5656
+ readonly description: "Insufficient permissions.";
5657
+ };
5658
+ 404: {
5659
+ readonly content: {
5660
+ readonly "application/json": {
5661
+ readonly schema: z.ZodObject<{
5662
+ error: z.ZodObject<{
5663
+ code: z.ZodString;
5664
+ message: z.ZodString;
5665
+ details: z.ZodOptional<z.ZodObject<{
5666
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5667
+ path: z.ZodString;
5668
+ message: z.ZodString;
5669
+ code: z.ZodString;
5670
+ }, z.core.$strip>>>;
5671
+ }, z.core.$strip>>;
5672
+ }, z.core.$strip>;
5673
+ }, z.core.$strip>;
5674
+ };
5675
+ };
5676
+ readonly description: "Resource not found.";
5677
+ };
5678
+ 422: {
5679
+ readonly content: {
5680
+ readonly "application/json": {
5681
+ readonly schema: z.ZodObject<{
5682
+ error: z.ZodObject<{
5683
+ code: z.ZodString;
5684
+ message: z.ZodString;
5685
+ details: z.ZodOptional<z.ZodObject<{
5686
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5687
+ path: z.ZodString;
5688
+ message: z.ZodString;
5689
+ code: z.ZodString;
5690
+ }, z.core.$strip>>>;
5691
+ }, z.core.$strip>>;
5692
+ }, z.core.$strip>;
5693
+ }, z.core.$strip>;
5694
+ };
5695
+ };
5696
+ readonly description: "Validation error.";
5697
+ };
5698
+ 200: {
5699
+ content: {
5700
+ "application/json": {
5701
+ schema: z.ZodObject<{
5702
+ data: z.ZodAny;
5703
+ }, z.core.$strip>;
5704
+ };
5705
+ };
5706
+ description: string;
5707
+ };
5708
+ };
5709
+ } & {
5710
+ getRoutingPath(): "/:id/refunds/:refundId/undo";
5711
+ };
5712
+ export declare const listOrderRefundsRoute: {
5713
+ method: "get";
5714
+ path: "/{id}/refunds";
5715
+ tags: string[];
5716
+ summary: string;
5717
+ request: {
5718
+ params: z.ZodObject<{
5719
+ id: z.ZodUUID;
5720
+ }, z.core.$strip>;
5721
+ };
5722
+ responses: {
5723
+ 400: {
5724
+ readonly content: {
5725
+ readonly "application/json": {
5726
+ readonly schema: z.ZodObject<{
5727
+ error: z.ZodObject<{
5728
+ code: z.ZodString;
5729
+ message: z.ZodString;
5730
+ details: z.ZodOptional<z.ZodObject<{
5731
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5732
+ path: z.ZodString;
5733
+ message: z.ZodString;
5734
+ code: z.ZodString;
5735
+ }, z.core.$strip>>>;
5736
+ }, z.core.$strip>>;
5737
+ }, z.core.$strip>;
5738
+ }, z.core.$strip>;
5739
+ };
5740
+ };
5741
+ readonly description: "Business logic error.";
5742
+ };
5743
+ 401: {
5744
+ readonly content: {
5745
+ readonly "application/json": {
5746
+ readonly schema: z.ZodObject<{
5747
+ error: z.ZodObject<{
5748
+ code: z.ZodString;
5749
+ message: z.ZodString;
5750
+ details: z.ZodOptional<z.ZodObject<{
5751
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5752
+ path: z.ZodString;
5753
+ message: z.ZodString;
5754
+ code: z.ZodString;
5755
+ }, z.core.$strip>>>;
5756
+ }, z.core.$strip>>;
5757
+ }, z.core.$strip>;
5758
+ }, z.core.$strip>;
5759
+ };
5760
+ };
5761
+ readonly description: "Authentication required.";
5762
+ };
5763
+ 403: {
5764
+ readonly content: {
5765
+ readonly "application/json": {
5766
+ readonly schema: z.ZodObject<{
5767
+ error: z.ZodObject<{
5768
+ code: z.ZodString;
5769
+ message: z.ZodString;
5770
+ details: z.ZodOptional<z.ZodObject<{
5771
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5772
+ path: z.ZodString;
5773
+ message: z.ZodString;
5774
+ code: z.ZodString;
5775
+ }, z.core.$strip>>>;
5776
+ }, z.core.$strip>>;
5777
+ }, z.core.$strip>;
5778
+ }, z.core.$strip>;
5779
+ };
5780
+ };
5781
+ readonly description: "Insufficient permissions.";
5782
+ };
5783
+ 404: {
5784
+ readonly content: {
5785
+ readonly "application/json": {
5786
+ readonly schema: z.ZodObject<{
5787
+ error: z.ZodObject<{
5788
+ code: z.ZodString;
5789
+ message: z.ZodString;
5790
+ details: z.ZodOptional<z.ZodObject<{
5791
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5792
+ path: z.ZodString;
5793
+ message: z.ZodString;
5794
+ code: z.ZodString;
5795
+ }, z.core.$strip>>>;
5796
+ }, z.core.$strip>>;
5797
+ }, z.core.$strip>;
5798
+ }, z.core.$strip>;
5799
+ };
5800
+ };
5801
+ readonly description: "Resource not found.";
5802
+ };
5803
+ 422: {
5804
+ readonly content: {
5805
+ readonly "application/json": {
5806
+ readonly schema: z.ZodObject<{
5807
+ error: z.ZodObject<{
5808
+ code: z.ZodString;
5809
+ message: z.ZodString;
5810
+ details: z.ZodOptional<z.ZodObject<{
5811
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5812
+ path: z.ZodString;
5813
+ message: z.ZodString;
5814
+ code: z.ZodString;
5815
+ }, z.core.$strip>>>;
5816
+ }, z.core.$strip>>;
5817
+ }, z.core.$strip>;
5818
+ }, z.core.$strip>;
5819
+ };
5820
+ };
5821
+ readonly description: "Validation error.";
5822
+ };
5823
+ 200: {
5824
+ content: {
5825
+ "application/json": {
5826
+ schema: z.ZodObject<{
5827
+ data: z.ZodAny;
5828
+ }, z.core.$strip>;
5829
+ };
5830
+ };
5831
+ description: string;
5832
+ };
5833
+ };
5834
+ } & {
5835
+ getRoutingPath(): "/:id/refunds";
5836
+ };
5837
+ export declare const refundCapStatusRoute: {
5838
+ method: "get";
5839
+ path: "/refunds/cap";
5840
+ tags: string[];
5841
+ summary: string;
5842
+ responses: {
5843
+ 400: {
5844
+ readonly content: {
5845
+ readonly "application/json": {
5846
+ readonly schema: z.ZodObject<{
5847
+ error: z.ZodObject<{
5848
+ code: z.ZodString;
5849
+ message: z.ZodString;
5850
+ details: z.ZodOptional<z.ZodObject<{
5851
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5852
+ path: z.ZodString;
5853
+ message: z.ZodString;
5854
+ code: z.ZodString;
5855
+ }, z.core.$strip>>>;
5856
+ }, z.core.$strip>>;
5857
+ }, z.core.$strip>;
5858
+ }, z.core.$strip>;
5859
+ };
5860
+ };
5861
+ readonly description: "Business logic error.";
5862
+ };
5863
+ 401: {
5864
+ readonly content: {
5865
+ readonly "application/json": {
5866
+ readonly schema: z.ZodObject<{
5867
+ error: z.ZodObject<{
5868
+ code: z.ZodString;
5869
+ message: z.ZodString;
5870
+ details: z.ZodOptional<z.ZodObject<{
5871
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5872
+ path: z.ZodString;
5873
+ message: z.ZodString;
5874
+ code: z.ZodString;
5875
+ }, z.core.$strip>>>;
5876
+ }, z.core.$strip>>;
5877
+ }, z.core.$strip>;
5878
+ }, z.core.$strip>;
5879
+ };
5880
+ };
5881
+ readonly description: "Authentication required.";
5882
+ };
5883
+ 403: {
5884
+ readonly content: {
5885
+ readonly "application/json": {
5886
+ readonly schema: z.ZodObject<{
5887
+ error: z.ZodObject<{
5888
+ code: z.ZodString;
5889
+ message: z.ZodString;
5890
+ details: z.ZodOptional<z.ZodObject<{
5891
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5892
+ path: z.ZodString;
5893
+ message: z.ZodString;
5894
+ code: z.ZodString;
5895
+ }, z.core.$strip>>>;
5896
+ }, z.core.$strip>>;
5897
+ }, z.core.$strip>;
5898
+ }, z.core.$strip>;
5899
+ };
5900
+ };
5901
+ readonly description: "Insufficient permissions.";
5902
+ };
5903
+ 404: {
5904
+ readonly content: {
5905
+ readonly "application/json": {
5906
+ readonly schema: z.ZodObject<{
5907
+ error: z.ZodObject<{
5908
+ code: z.ZodString;
5909
+ message: z.ZodString;
5910
+ details: z.ZodOptional<z.ZodObject<{
5911
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5912
+ path: z.ZodString;
5913
+ message: z.ZodString;
5914
+ code: z.ZodString;
5915
+ }, z.core.$strip>>>;
5916
+ }, z.core.$strip>>;
5917
+ }, z.core.$strip>;
5918
+ }, z.core.$strip>;
5919
+ };
5920
+ };
5921
+ readonly description: "Resource not found.";
5922
+ };
5923
+ 422: {
5924
+ readonly content: {
5925
+ readonly "application/json": {
5926
+ readonly schema: z.ZodObject<{
5927
+ error: z.ZodObject<{
5928
+ code: z.ZodString;
5929
+ message: z.ZodString;
5930
+ details: z.ZodOptional<z.ZodObject<{
5931
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5932
+ path: z.ZodString;
5933
+ message: z.ZodString;
5934
+ code: z.ZodString;
5935
+ }, z.core.$strip>>>;
5936
+ }, z.core.$strip>>;
5937
+ }, z.core.$strip>;
5938
+ }, z.core.$strip>;
5939
+ };
5940
+ };
5941
+ readonly description: "Validation error.";
5942
+ };
5943
+ 200: {
5944
+ content: {
5945
+ "application/json": {
5946
+ schema: z.ZodObject<{
5947
+ data: z.ZodAny;
5948
+ }, z.core.$strip>;
5949
+ };
5950
+ };
5951
+ description: string;
5952
+ };
5953
+ };
5954
+ } & {
5955
+ getRoutingPath(): "/refunds/cap";
5956
+ };
5957
+ export declare const CreateOrderNoteBodySchema: z.ZodObject<{
5958
+ body: z.ZodString;
5959
+ pinned: z.ZodOptional<z.ZodBoolean>;
5960
+ }, z.core.$strip>;
5961
+ export declare const createOrderNoteRoute: {
5962
+ method: "post";
5963
+ path: "/{id}/notes";
5964
+ tags: string[];
5965
+ summary: string;
5966
+ request: {
5967
+ params: z.ZodObject<{
5968
+ id: z.ZodUUID;
5969
+ }, z.core.$strip>;
5970
+ body: {
5971
+ content: {
5972
+ "application/json": {
5973
+ schema: z.ZodObject<{
5974
+ body: z.ZodString;
5975
+ pinned: z.ZodOptional<z.ZodBoolean>;
5976
+ }, z.core.$strip>;
5977
+ };
5978
+ };
5979
+ required: true;
5980
+ };
5981
+ };
5982
+ responses: {
5983
+ 400: {
5984
+ readonly content: {
5985
+ readonly "application/json": {
5986
+ readonly schema: z.ZodObject<{
5987
+ error: z.ZodObject<{
5988
+ code: z.ZodString;
5989
+ message: z.ZodString;
5990
+ details: z.ZodOptional<z.ZodObject<{
5991
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
5992
+ path: z.ZodString;
5993
+ message: z.ZodString;
5994
+ code: z.ZodString;
5995
+ }, z.core.$strip>>>;
5996
+ }, z.core.$strip>>;
5997
+ }, z.core.$strip>;
5998
+ }, z.core.$strip>;
5999
+ };
6000
+ };
6001
+ readonly description: "Business logic error.";
6002
+ };
6003
+ 401: {
6004
+ readonly content: {
6005
+ readonly "application/json": {
6006
+ readonly schema: z.ZodObject<{
6007
+ error: z.ZodObject<{
6008
+ code: z.ZodString;
6009
+ message: z.ZodString;
6010
+ details: z.ZodOptional<z.ZodObject<{
6011
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6012
+ path: z.ZodString;
6013
+ message: z.ZodString;
6014
+ code: z.ZodString;
6015
+ }, z.core.$strip>>>;
6016
+ }, z.core.$strip>>;
6017
+ }, z.core.$strip>;
6018
+ }, z.core.$strip>;
6019
+ };
6020
+ };
6021
+ readonly description: "Authentication required.";
6022
+ };
6023
+ 403: {
6024
+ readonly content: {
6025
+ readonly "application/json": {
6026
+ readonly schema: z.ZodObject<{
6027
+ error: z.ZodObject<{
6028
+ code: z.ZodString;
6029
+ message: z.ZodString;
6030
+ details: z.ZodOptional<z.ZodObject<{
6031
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6032
+ path: z.ZodString;
6033
+ message: z.ZodString;
6034
+ code: z.ZodString;
6035
+ }, z.core.$strip>>>;
6036
+ }, z.core.$strip>>;
6037
+ }, z.core.$strip>;
6038
+ }, z.core.$strip>;
6039
+ };
6040
+ };
6041
+ readonly description: "Insufficient permissions.";
6042
+ };
6043
+ 404: {
6044
+ readonly content: {
6045
+ readonly "application/json": {
6046
+ readonly schema: z.ZodObject<{
6047
+ error: z.ZodObject<{
6048
+ code: z.ZodString;
6049
+ message: z.ZodString;
6050
+ details: z.ZodOptional<z.ZodObject<{
6051
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6052
+ path: z.ZodString;
6053
+ message: z.ZodString;
6054
+ code: z.ZodString;
6055
+ }, z.core.$strip>>>;
6056
+ }, z.core.$strip>>;
6057
+ }, z.core.$strip>;
6058
+ }, z.core.$strip>;
6059
+ };
6060
+ };
6061
+ readonly description: "Resource not found.";
6062
+ };
6063
+ 422: {
6064
+ readonly content: {
6065
+ readonly "application/json": {
6066
+ readonly schema: z.ZodObject<{
6067
+ error: z.ZodObject<{
6068
+ code: z.ZodString;
6069
+ message: z.ZodString;
6070
+ details: z.ZodOptional<z.ZodObject<{
6071
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6072
+ path: z.ZodString;
6073
+ message: z.ZodString;
6074
+ code: z.ZodString;
6075
+ }, z.core.$strip>>>;
6076
+ }, z.core.$strip>>;
6077
+ }, z.core.$strip>;
6078
+ }, z.core.$strip>;
6079
+ };
6080
+ };
6081
+ readonly description: "Validation error.";
6082
+ };
6083
+ 201: {
6084
+ content: {
6085
+ "application/json": {
6086
+ schema: z.ZodObject<{
6087
+ data: z.ZodAny;
6088
+ }, z.core.$strip>;
6089
+ };
6090
+ };
6091
+ description: string;
6092
+ };
6093
+ };
6094
+ } & {
6095
+ getRoutingPath(): "/:id/notes";
6096
+ };
6097
+ export declare const listOrderNotesRoute: {
6098
+ method: "get";
6099
+ path: "/{id}/notes";
6100
+ tags: string[];
6101
+ summary: string;
6102
+ request: {
6103
+ params: z.ZodObject<{
6104
+ id: z.ZodUUID;
6105
+ }, z.core.$strip>;
6106
+ };
6107
+ responses: {
6108
+ 400: {
6109
+ readonly content: {
6110
+ readonly "application/json": {
6111
+ readonly schema: z.ZodObject<{
6112
+ error: z.ZodObject<{
6113
+ code: z.ZodString;
6114
+ message: z.ZodString;
6115
+ details: z.ZodOptional<z.ZodObject<{
6116
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6117
+ path: z.ZodString;
6118
+ message: z.ZodString;
6119
+ code: z.ZodString;
6120
+ }, z.core.$strip>>>;
6121
+ }, z.core.$strip>>;
6122
+ }, z.core.$strip>;
6123
+ }, z.core.$strip>;
6124
+ };
6125
+ };
6126
+ readonly description: "Business logic error.";
6127
+ };
6128
+ 401: {
6129
+ readonly content: {
6130
+ readonly "application/json": {
6131
+ readonly schema: z.ZodObject<{
6132
+ error: z.ZodObject<{
6133
+ code: z.ZodString;
6134
+ message: z.ZodString;
6135
+ details: z.ZodOptional<z.ZodObject<{
6136
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6137
+ path: z.ZodString;
6138
+ message: z.ZodString;
6139
+ code: z.ZodString;
6140
+ }, z.core.$strip>>>;
6141
+ }, z.core.$strip>>;
6142
+ }, z.core.$strip>;
6143
+ }, z.core.$strip>;
6144
+ };
6145
+ };
6146
+ readonly description: "Authentication required.";
6147
+ };
6148
+ 403: {
6149
+ readonly content: {
6150
+ readonly "application/json": {
6151
+ readonly schema: z.ZodObject<{
6152
+ error: z.ZodObject<{
6153
+ code: z.ZodString;
6154
+ message: z.ZodString;
6155
+ details: z.ZodOptional<z.ZodObject<{
6156
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6157
+ path: z.ZodString;
6158
+ message: z.ZodString;
6159
+ code: z.ZodString;
6160
+ }, z.core.$strip>>>;
6161
+ }, z.core.$strip>>;
6162
+ }, z.core.$strip>;
6163
+ }, z.core.$strip>;
6164
+ };
6165
+ };
6166
+ readonly description: "Insufficient permissions.";
6167
+ };
6168
+ 404: {
6169
+ readonly content: {
6170
+ readonly "application/json": {
6171
+ readonly schema: z.ZodObject<{
6172
+ error: z.ZodObject<{
6173
+ code: z.ZodString;
6174
+ message: z.ZodString;
6175
+ details: z.ZodOptional<z.ZodObject<{
6176
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6177
+ path: z.ZodString;
6178
+ message: z.ZodString;
6179
+ code: z.ZodString;
6180
+ }, z.core.$strip>>>;
6181
+ }, z.core.$strip>>;
6182
+ }, z.core.$strip>;
6183
+ }, z.core.$strip>;
6184
+ };
6185
+ };
6186
+ readonly description: "Resource not found.";
6187
+ };
6188
+ 422: {
6189
+ readonly content: {
6190
+ readonly "application/json": {
6191
+ readonly schema: z.ZodObject<{
6192
+ error: z.ZodObject<{
6193
+ code: z.ZodString;
6194
+ message: z.ZodString;
6195
+ details: z.ZodOptional<z.ZodObject<{
6196
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6197
+ path: z.ZodString;
6198
+ message: z.ZodString;
6199
+ code: z.ZodString;
6200
+ }, z.core.$strip>>>;
6201
+ }, z.core.$strip>>;
6202
+ }, z.core.$strip>;
6203
+ }, z.core.$strip>;
6204
+ };
6205
+ };
6206
+ readonly description: "Validation error.";
6207
+ };
6208
+ 200: {
6209
+ content: {
6210
+ "application/json": {
6211
+ schema: z.ZodObject<{
6212
+ data: z.ZodAny;
6213
+ }, z.core.$strip>;
6214
+ };
6215
+ };
6216
+ description: string;
6217
+ };
6218
+ };
6219
+ } & {
6220
+ getRoutingPath(): "/:id/notes";
6221
+ };
6222
+ export declare const deleteOrderNoteRoute: {
6223
+ method: "delete";
6224
+ path: "/{id}/notes/{noteId}";
6225
+ tags: string[];
6226
+ summary: string;
6227
+ request: {
6228
+ params: z.ZodObject<{
6229
+ id: z.ZodUUID;
6230
+ noteId: z.ZodUUID;
6231
+ }, z.core.$strip>;
6232
+ };
6233
+ responses: {
6234
+ 400: {
6235
+ readonly content: {
6236
+ readonly "application/json": {
6237
+ readonly schema: z.ZodObject<{
6238
+ error: z.ZodObject<{
6239
+ code: z.ZodString;
6240
+ message: z.ZodString;
6241
+ details: z.ZodOptional<z.ZodObject<{
6242
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6243
+ path: z.ZodString;
6244
+ message: z.ZodString;
6245
+ code: z.ZodString;
6246
+ }, z.core.$strip>>>;
6247
+ }, z.core.$strip>>;
6248
+ }, z.core.$strip>;
6249
+ }, z.core.$strip>;
6250
+ };
6251
+ };
6252
+ readonly description: "Business logic error.";
6253
+ };
6254
+ 401: {
6255
+ readonly content: {
6256
+ readonly "application/json": {
6257
+ readonly schema: z.ZodObject<{
6258
+ error: z.ZodObject<{
6259
+ code: z.ZodString;
6260
+ message: z.ZodString;
6261
+ details: z.ZodOptional<z.ZodObject<{
6262
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6263
+ path: z.ZodString;
6264
+ message: z.ZodString;
6265
+ code: z.ZodString;
6266
+ }, z.core.$strip>>>;
6267
+ }, z.core.$strip>>;
6268
+ }, z.core.$strip>;
6269
+ }, z.core.$strip>;
6270
+ };
6271
+ };
6272
+ readonly description: "Authentication required.";
6273
+ };
6274
+ 403: {
6275
+ readonly content: {
6276
+ readonly "application/json": {
6277
+ readonly schema: z.ZodObject<{
6278
+ error: z.ZodObject<{
6279
+ code: z.ZodString;
6280
+ message: z.ZodString;
6281
+ details: z.ZodOptional<z.ZodObject<{
6282
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6283
+ path: z.ZodString;
6284
+ message: z.ZodString;
6285
+ code: z.ZodString;
6286
+ }, z.core.$strip>>>;
6287
+ }, z.core.$strip>>;
6288
+ }, z.core.$strip>;
6289
+ }, z.core.$strip>;
6290
+ };
6291
+ };
6292
+ readonly description: "Insufficient permissions.";
6293
+ };
6294
+ 404: {
6295
+ readonly content: {
6296
+ readonly "application/json": {
6297
+ readonly schema: z.ZodObject<{
6298
+ error: z.ZodObject<{
6299
+ code: z.ZodString;
6300
+ message: z.ZodString;
6301
+ details: z.ZodOptional<z.ZodObject<{
6302
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6303
+ path: z.ZodString;
6304
+ message: z.ZodString;
6305
+ code: z.ZodString;
6306
+ }, z.core.$strip>>>;
6307
+ }, z.core.$strip>>;
6308
+ }, z.core.$strip>;
6309
+ }, z.core.$strip>;
6310
+ };
6311
+ };
6312
+ readonly description: "Resource not found.";
6313
+ };
6314
+ 422: {
6315
+ readonly content: {
6316
+ readonly "application/json": {
6317
+ readonly schema: z.ZodObject<{
6318
+ error: z.ZodObject<{
6319
+ code: z.ZodString;
6320
+ message: z.ZodString;
6321
+ details: z.ZodOptional<z.ZodObject<{
6322
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6323
+ path: z.ZodString;
6324
+ message: z.ZodString;
6325
+ code: z.ZodString;
6326
+ }, z.core.$strip>>>;
6327
+ }, z.core.$strip>>;
6328
+ }, z.core.$strip>;
6329
+ }, z.core.$strip>;
6330
+ };
6331
+ };
6332
+ readonly description: "Validation error.";
6333
+ };
6334
+ 200: {
6335
+ content: {
6336
+ "application/json": {
6337
+ schema: z.ZodObject<{
6338
+ data: z.ZodAny;
6339
+ }, z.core.$strip>;
6340
+ };
6341
+ };
6342
+ description: string;
6343
+ };
6344
+ };
6345
+ } & {
6346
+ getRoutingPath(): "/:id/notes/:noteId";
6347
+ };
6348
+ export declare const orderTimelineRoute: {
6349
+ method: "get";
6350
+ path: "/{id}/timeline";
6351
+ tags: string[];
6352
+ summary: string;
6353
+ request: {
6354
+ params: z.ZodObject<{
6355
+ id: z.ZodUUID;
6356
+ }, z.core.$strip>;
6357
+ };
6358
+ responses: {
6359
+ 400: {
6360
+ readonly content: {
6361
+ readonly "application/json": {
6362
+ readonly schema: z.ZodObject<{
6363
+ error: z.ZodObject<{
6364
+ code: z.ZodString;
6365
+ message: z.ZodString;
6366
+ details: z.ZodOptional<z.ZodObject<{
6367
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6368
+ path: z.ZodString;
6369
+ message: z.ZodString;
6370
+ code: z.ZodString;
6371
+ }, z.core.$strip>>>;
6372
+ }, z.core.$strip>>;
6373
+ }, z.core.$strip>;
6374
+ }, z.core.$strip>;
6375
+ };
6376
+ };
6377
+ readonly description: "Business logic error.";
6378
+ };
6379
+ 401: {
6380
+ readonly content: {
6381
+ readonly "application/json": {
6382
+ readonly schema: z.ZodObject<{
6383
+ error: z.ZodObject<{
6384
+ code: z.ZodString;
6385
+ message: z.ZodString;
6386
+ details: z.ZodOptional<z.ZodObject<{
6387
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6388
+ path: z.ZodString;
6389
+ message: z.ZodString;
6390
+ code: z.ZodString;
6391
+ }, z.core.$strip>>>;
6392
+ }, z.core.$strip>>;
6393
+ }, z.core.$strip>;
6394
+ }, z.core.$strip>;
6395
+ };
6396
+ };
6397
+ readonly description: "Authentication required.";
6398
+ };
6399
+ 403: {
6400
+ readonly content: {
6401
+ readonly "application/json": {
6402
+ readonly schema: z.ZodObject<{
6403
+ error: z.ZodObject<{
6404
+ code: z.ZodString;
6405
+ message: z.ZodString;
6406
+ details: z.ZodOptional<z.ZodObject<{
6407
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6408
+ path: z.ZodString;
6409
+ message: z.ZodString;
6410
+ code: z.ZodString;
6411
+ }, z.core.$strip>>>;
6412
+ }, z.core.$strip>>;
6413
+ }, z.core.$strip>;
6414
+ }, z.core.$strip>;
6415
+ };
6416
+ };
6417
+ readonly description: "Insufficient permissions.";
6418
+ };
6419
+ 404: {
6420
+ readonly content: {
6421
+ readonly "application/json": {
6422
+ readonly schema: z.ZodObject<{
6423
+ error: z.ZodObject<{
6424
+ code: z.ZodString;
6425
+ message: z.ZodString;
6426
+ details: z.ZodOptional<z.ZodObject<{
6427
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6428
+ path: z.ZodString;
6429
+ message: z.ZodString;
6430
+ code: z.ZodString;
6431
+ }, z.core.$strip>>>;
6432
+ }, z.core.$strip>>;
6433
+ }, z.core.$strip>;
6434
+ }, z.core.$strip>;
6435
+ };
6436
+ };
6437
+ readonly description: "Resource not found.";
6438
+ };
6439
+ 422: {
6440
+ readonly content: {
6441
+ readonly "application/json": {
6442
+ readonly schema: z.ZodObject<{
6443
+ error: z.ZodObject<{
6444
+ code: z.ZodString;
6445
+ message: z.ZodString;
6446
+ details: z.ZodOptional<z.ZodObject<{
6447
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
6448
+ path: z.ZodString;
6449
+ message: z.ZodString;
6450
+ code: z.ZodString;
6451
+ }, z.core.$strip>>>;
6452
+ }, z.core.$strip>>;
6453
+ }, z.core.$strip>;
6454
+ }, z.core.$strip>;
6455
+ };
6456
+ };
6457
+ readonly description: "Validation error.";
6458
+ };
6459
+ 200: {
6460
+ content: {
6461
+ "application/json": {
6462
+ schema: z.ZodObject<{
6463
+ data: z.ZodAny;
6464
+ }, z.core.$strip>;
6465
+ };
6466
+ };
6467
+ description: string;
6468
+ };
6469
+ };
6470
+ } & {
6471
+ getRoutingPath(): "/:id/timeline";
3405
6472
  };
3406
6473
  //# sourceMappingURL=orders.d.ts.map