@porulle/core 0.6.0 → 0.8.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 (301) hide show
  1. package/dist/auth/setup.d.ts.map +1 -1
  2. package/dist/auth/setup.js +1 -0
  3. package/dist/config/defaults.d.ts.map +1 -1
  4. package/dist/config/defaults.js +5 -0
  5. package/dist/config/types.d.ts +17 -1
  6. package/dist/config/types.d.ts.map +1 -1
  7. package/dist/generated/plugin-manifest.d.ts +3 -0
  8. package/dist/generated/plugin-manifest.d.ts.map +1 -1
  9. package/dist/generated/plugin-manifest.js +1 -0
  10. package/dist/hooks/checkout.d.ts.map +1 -1
  11. package/dist/hooks/checkout.js +16 -1
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -0
  15. package/dist/interfaces/rest/index.d.ts.map +1 -1
  16. package/dist/interfaces/rest/index.js +12 -0
  17. package/dist/interfaces/rest/routes/admin/staff.d.ts +12 -0
  18. package/dist/interfaces/rest/routes/admin/staff.d.ts.map +1 -0
  19. package/dist/interfaces/rest/routes/admin/staff.js +172 -0
  20. package/dist/interfaces/rest/routes/analytics.d.ts +5 -0
  21. package/dist/interfaces/rest/routes/analytics.d.ts.map +1 -0
  22. package/dist/interfaces/rest/routes/analytics.js +24 -0
  23. package/dist/interfaces/rest/routes/carts.d.ts.map +1 -1
  24. package/dist/interfaces/rest/routes/carts.js +39 -2
  25. package/dist/interfaces/rest/routes/catalog.d.ts.map +1 -1
  26. package/dist/interfaces/rest/routes/catalog.js +17 -1
  27. package/dist/interfaces/rest/routes/checkout.d.ts.map +1 -1
  28. package/dist/interfaces/rest/routes/checkout.js +17 -0
  29. package/dist/interfaces/rest/routes/documents.d.ts +10 -0
  30. package/dist/interfaces/rest/routes/documents.d.ts.map +1 -0
  31. package/dist/interfaces/rest/routes/documents.js +40 -0
  32. package/dist/interfaces/rest/routes/orders.d.ts.map +1 -1
  33. package/dist/interfaces/rest/routes/orders.js +122 -1
  34. package/dist/interfaces/rest/routes/pricing.d.ts.map +1 -1
  35. package/dist/interfaces/rest/routes/pricing.js +36 -1
  36. package/dist/interfaces/rest/routes/settings.d.ts +5 -0
  37. package/dist/interfaces/rest/routes/settings.d.ts.map +1 -0
  38. package/dist/interfaces/rest/routes/settings.js +50 -0
  39. package/dist/interfaces/rest/routes/shipping.d.ts +5 -0
  40. package/dist/interfaces/rest/routes/shipping.d.ts.map +1 -0
  41. package/dist/interfaces/rest/routes/shipping.js +68 -0
  42. package/dist/interfaces/rest/routes/tax.d.ts +5 -0
  43. package/dist/interfaces/rest/routes/tax.d.ts.map +1 -0
  44. package/dist/interfaces/rest/routes/tax.js +68 -0
  45. package/dist/interfaces/rest/schemas/admin-staff.d.ts +899 -0
  46. package/dist/interfaces/rest/schemas/admin-staff.d.ts.map +1 -0
  47. package/dist/interfaces/rest/schemas/admin-staff.js +98 -0
  48. package/dist/interfaces/rest/schemas/analytics.d.ts +252 -0
  49. package/dist/interfaces/rest/schemas/analytics.d.ts.map +1 -0
  50. package/dist/interfaces/rest/schemas/analytics.js +33 -0
  51. package/dist/interfaces/rest/schemas/carts.d.ts +656 -0
  52. package/dist/interfaces/rest/schemas/carts.d.ts.map +1 -1
  53. package/dist/interfaces/rest/schemas/carts.js +38 -0
  54. package/dist/interfaces/rest/schemas/catalog.d.ts +1230 -2
  55. package/dist/interfaces/rest/schemas/catalog.d.ts.map +1 -1
  56. package/dist/interfaces/rest/schemas/catalog.js +48 -0
  57. package/dist/interfaces/rest/schemas/checkout.d.ts +2 -0
  58. package/dist/interfaces/rest/schemas/checkout.d.ts.map +1 -1
  59. package/dist/interfaces/rest/schemas/checkout.js +4 -0
  60. package/dist/interfaces/rest/schemas/customer-portal.d.ts +35 -0
  61. package/dist/interfaces/rest/schemas/customer-portal.d.ts.map +1 -1
  62. package/dist/interfaces/rest/schemas/documents.d.ts +509 -0
  63. package/dist/interfaces/rest/schemas/documents.d.ts.map +1 -0
  64. package/dist/interfaces/rest/schemas/documents.js +65 -0
  65. package/dist/interfaces/rest/schemas/orders.d.ts +4467 -7
  66. package/dist/interfaces/rest/schemas/orders.d.ts.map +1 -1
  67. package/dist/interfaces/rest/schemas/orders.js +330 -0
  68. package/dist/interfaces/rest/schemas/pricing.d.ts +405 -0
  69. package/dist/interfaces/rest/schemas/pricing.d.ts.map +1 -1
  70. package/dist/interfaces/rest/schemas/pricing.js +70 -0
  71. package/dist/interfaces/rest/schemas/responses.d.ts +156 -0
  72. package/dist/interfaces/rest/schemas/responses.d.ts.map +1 -1
  73. package/dist/interfaces/rest/schemas/search.d.ts +17 -0
  74. package/dist/interfaces/rest/schemas/search.d.ts.map +1 -1
  75. package/dist/interfaces/rest/schemas/settings.d.ts +397 -0
  76. package/dist/interfaces/rest/schemas/settings.d.ts.map +1 -0
  77. package/dist/interfaces/rest/schemas/settings.js +79 -0
  78. package/dist/interfaces/rest/schemas/shipping.d.ts +1093 -0
  79. package/dist/interfaces/rest/schemas/shipping.d.ts.map +1 -0
  80. package/dist/interfaces/rest/schemas/shipping.js +146 -0
  81. package/dist/interfaces/rest/schemas/tax.d.ts +1074 -0
  82. package/dist/interfaces/rest/schemas/tax.d.ts.map +1 -0
  83. package/dist/interfaces/rest/schemas/tax.js +132 -0
  84. package/dist/kernel/database/schema.d.ts +4 -0
  85. package/dist/kernel/database/schema.d.ts.map +1 -1
  86. package/dist/kernel/database/schema.js +8 -0
  87. package/dist/kernel/error-mapper.d.ts.map +1 -1
  88. package/dist/kernel/error-mapper.js +1 -0
  89. package/dist/kernel/errors.d.ts +5 -0
  90. package/dist/kernel/errors.d.ts.map +1 -1
  91. package/dist/kernel/errors.js +9 -0
  92. package/dist/kernel/hooks/types.d.ts +1 -1
  93. package/dist/kernel/hooks/types.d.ts.map +1 -1
  94. package/dist/kernel/plugin/manifest.d.ts +23 -0
  95. package/dist/kernel/plugin/manifest.d.ts.map +1 -1
  96. package/dist/kernel/plugin/manifest.js +17 -2
  97. package/dist/modules/analytics/module.d.ts.map +1 -1
  98. package/dist/modules/analytics/module.js +6 -0
  99. package/dist/modules/analytics/reports.d.ts +58 -0
  100. package/dist/modules/analytics/reports.d.ts.map +1 -0
  101. package/dist/modules/analytics/reports.js +249 -0
  102. package/dist/modules/analytics/service.d.ts +10 -0
  103. package/dist/modules/analytics/service.d.ts.map +1 -1
  104. package/dist/modules/analytics/service.js +14 -0
  105. package/dist/modules/cart/repository/index.d.ts +7 -0
  106. package/dist/modules/cart/repository/index.d.ts.map +1 -1
  107. package/dist/modules/cart/repository/index.js +25 -1
  108. package/dist/modules/cart/schema.d.ts +17 -0
  109. package/dist/modules/cart/schema.d.ts.map +1 -1
  110. package/dist/modules/cart/schema.js +2 -0
  111. package/dist/modules/cart/schemas.d.ts +1 -0
  112. package/dist/modules/cart/schemas.d.ts.map +1 -1
  113. package/dist/modules/cart/schemas.js +1 -0
  114. package/dist/modules/cart/service.d.ts +32 -0
  115. package/dist/modules/cart/service.d.ts.map +1 -1
  116. package/dist/modules/cart/service.js +58 -0
  117. package/dist/modules/catalog/entity-service.d.ts +21 -0
  118. package/dist/modules/catalog/entity-service.d.ts.map +1 -1
  119. package/dist/modules/catalog/entity-service.js +151 -6
  120. package/dist/modules/catalog/schema.d.ts +34 -0
  121. package/dist/modules/catalog/schema.d.ts.map +1 -1
  122. package/dist/modules/catalog/schema.js +5 -0
  123. package/dist/modules/catalog/schemas.d.ts +15 -1
  124. package/dist/modules/catalog/schemas.d.ts.map +1 -1
  125. package/dist/modules/catalog/schemas.js +17 -1
  126. package/dist/modules/catalog/service.d.ts +43 -1
  127. package/dist/modules/catalog/service.d.ts.map +1 -1
  128. package/dist/modules/catalog/service.js +6 -0
  129. package/dist/modules/documents/module.d.ts +7 -0
  130. package/dist/modules/documents/module.d.ts.map +1 -0
  131. package/dist/modules/documents/module.js +12 -0
  132. package/dist/modules/documents/pdf.d.ts +25 -0
  133. package/dist/modules/documents/pdf.d.ts.map +1 -0
  134. package/dist/modules/documents/pdf.js +80 -0
  135. package/dist/modules/documents/render.d.ts +32 -0
  136. package/dist/modules/documents/render.d.ts.map +1 -0
  137. package/dist/modules/documents/render.js +190 -0
  138. package/dist/modules/documents/repository/index.d.ts +25 -0
  139. package/dist/modules/documents/repository/index.d.ts.map +1 -0
  140. package/dist/modules/documents/repository/index.js +47 -0
  141. package/dist/modules/documents/schema.d.ts +214 -0
  142. package/dist/modules/documents/schema.d.ts.map +1 -0
  143. package/dist/modules/documents/schema.js +42 -0
  144. package/dist/modules/documents/service.d.ts +51 -0
  145. package/dist/modules/documents/service.d.ts.map +1 -0
  146. package/dist/modules/documents/service.js +119 -0
  147. package/dist/modules/fulfillment/service.d.ts +18 -0
  148. package/dist/modules/fulfillment/service.d.ts.map +1 -1
  149. package/dist/modules/fulfillment/service.js +85 -1
  150. package/dist/modules/media/service.d.ts +18 -0
  151. package/dist/modules/media/service.d.ts.map +1 -1
  152. package/dist/modules/media/service.js +26 -0
  153. package/dist/modules/orders/repository/index.d.ts +18 -1
  154. package/dist/modules/orders/repository/index.d.ts.map +1 -1
  155. package/dist/modules/orders/repository/index.js +86 -1
  156. package/dist/modules/orders/schema.d.ts +374 -0
  157. package/dist/modules/orders/schema.d.ts.map +1 -1
  158. package/dist/modules/orders/schema.js +52 -1
  159. package/dist/modules/orders/service.d.ts +102 -2
  160. package/dist/modules/orders/service.d.ts.map +1 -1
  161. package/dist/modules/orders/service.js +494 -23
  162. package/dist/modules/pricing/repository/index.d.ts +5 -0
  163. package/dist/modules/pricing/repository/index.d.ts.map +1 -1
  164. package/dist/modules/pricing/repository/index.js +19 -0
  165. package/dist/modules/pricing/service.d.ts +18 -0
  166. package/dist/modules/pricing/service.d.ts.map +1 -1
  167. package/dist/modules/pricing/service.js +57 -1
  168. package/dist/modules/settings/module.d.ts +6 -0
  169. package/dist/modules/settings/module.d.ts.map +1 -0
  170. package/dist/modules/settings/module.js +11 -0
  171. package/dist/modules/settings/repository/index.d.ts +16 -0
  172. package/dist/modules/settings/repository/index.d.ts.map +1 -0
  173. package/dist/modules/settings/repository/index.js +41 -0
  174. package/dist/modules/settings/schema.d.ts +121 -0
  175. package/dist/modules/settings/schema.d.ts.map +1 -0
  176. package/dist/modules/settings/schema.js +24 -0
  177. package/dist/modules/settings/service.d.ts +26 -0
  178. package/dist/modules/settings/service.d.ts.map +1 -0
  179. package/dist/modules/settings/service.js +51 -0
  180. package/dist/modules/shipping/calculator.d.ts +5 -0
  181. package/dist/modules/shipping/calculator.d.ts.map +1 -1
  182. package/dist/modules/shipping/calculator.js +10 -0
  183. package/dist/modules/shipping/module.d.ts +5 -1
  184. package/dist/modules/shipping/module.d.ts.map +1 -1
  185. package/dist/modules/shipping/module.js +4 -1
  186. package/dist/modules/shipping/repository/index.d.ts +27 -2
  187. package/dist/modules/shipping/repository/index.d.ts.map +1 -1
  188. package/dist/modules/shipping/repository/index.js +105 -1
  189. package/dist/modules/shipping/schema.d.ts +419 -0
  190. package/dist/modules/shipping/schema.d.ts.map +1 -0
  191. package/dist/modules/shipping/schema.js +56 -0
  192. package/dist/modules/shipping/service.d.ts +54 -0
  193. package/dist/modules/shipping/service.d.ts.map +1 -1
  194. package/dist/modules/shipping/service.js +161 -2
  195. package/dist/modules/tax/adapter.d.ts +13 -0
  196. package/dist/modules/tax/adapter.d.ts.map +1 -1
  197. package/dist/modules/tax/module.d.ts +5 -1
  198. package/dist/modules/tax/module.d.ts.map +1 -1
  199. package/dist/modules/tax/module.js +4 -1
  200. package/dist/modules/tax/repository/index.d.ts +38 -2
  201. package/dist/modules/tax/repository/index.d.ts.map +1 -1
  202. package/dist/modules/tax/repository/index.js +138 -1
  203. package/dist/modules/tax/schema.d.ts +355 -0
  204. package/dist/modules/tax/schema.d.ts.map +1 -0
  205. package/dist/modules/tax/schema.js +55 -0
  206. package/dist/modules/tax/service.d.ts +60 -1
  207. package/dist/modules/tax/service.d.ts.map +1 -1
  208. package/dist/modules/tax/service.js +227 -2
  209. package/dist/runtime/kernel-modules.d.ts +15 -2
  210. package/dist/runtime/kernel-modules.d.ts.map +1 -1
  211. package/dist/runtime/kernel-modules.js +4 -0
  212. package/dist/runtime/kernel-types.d.ts +5 -1
  213. package/dist/runtime/kernel-types.d.ts.map +1 -1
  214. package/dist/runtime/kernel-types.js +2 -0
  215. package/dist/runtime/server.d.ts.map +1 -1
  216. package/dist/runtime/server.js +35 -3
  217. package/dist/test-utils/create-plugin-test-app.d.ts +3 -0
  218. package/dist/test-utils/create-plugin-test-app.d.ts.map +1 -1
  219. package/dist/test-utils/create-plugin-test-app.js +15 -3
  220. package/dist/test-utils/rest-api-test-utils.d.ts.map +1 -1
  221. package/dist/test-utils/rest-api-test-utils.js +6 -0
  222. package/package.json +3 -3
  223. package/src/auth/setup.ts +1 -0
  224. package/src/config/defaults.ts +5 -0
  225. package/src/config/types.ts +17 -1
  226. package/src/generated/plugin-capabilities.d.ts +1 -0
  227. package/src/generated/plugin-manifest.ts +1 -0
  228. package/src/generated/plugin-repositories.d.ts +1 -0
  229. package/src/hooks/checkout.ts +25 -3
  230. package/src/index.ts +1 -0
  231. package/src/interfaces/rest/index.ts +12 -0
  232. package/src/interfaces/rest/routes/admin/staff.ts +218 -0
  233. package/src/interfaces/rest/routes/analytics.ts +33 -0
  234. package/src/interfaces/rest/routes/carts.ts +52 -2
  235. package/src/interfaces/rest/routes/catalog.ts +34 -0
  236. package/src/interfaces/rest/routes/checkout.ts +22 -0
  237. package/src/interfaces/rest/routes/documents.ts +61 -0
  238. package/src/interfaces/rest/routes/orders.ts +172 -1
  239. package/src/interfaces/rest/routes/pricing.ts +44 -1
  240. package/src/interfaces/rest/routes/settings.ts +61 -0
  241. package/src/interfaces/rest/routes/shipping.ts +92 -0
  242. package/src/interfaces/rest/routes/tax.ts +90 -0
  243. package/src/interfaces/rest/schemas/admin-staff.ts +110 -0
  244. package/src/interfaces/rest/schemas/analytics.ts +39 -0
  245. package/src/interfaces/rest/schemas/carts.ts +40 -0
  246. package/src/interfaces/rest/schemas/catalog.ts +53 -0
  247. package/src/interfaces/rest/schemas/checkout.ts +4 -0
  248. package/src/interfaces/rest/schemas/documents.ts +72 -0
  249. package/src/interfaces/rest/schemas/orders.ts +361 -0
  250. package/src/interfaces/rest/schemas/pricing.ts +75 -0
  251. package/src/interfaces/rest/schemas/settings.ts +93 -0
  252. package/src/interfaces/rest/schemas/shipping.ts +164 -0
  253. package/src/interfaces/rest/schemas/tax.ts +148 -0
  254. package/src/kernel/database/schema.ts +12 -0
  255. package/src/kernel/error-mapper.ts +1 -0
  256. package/src/kernel/errors.ts +11 -0
  257. package/src/kernel/hooks/types.ts +1 -0
  258. package/src/kernel/plugin/manifest.ts +38 -2
  259. package/src/modules/analytics/module.ts +10 -0
  260. package/src/modules/analytics/reports.ts +311 -0
  261. package/src/modules/analytics/service.ts +23 -0
  262. package/src/modules/cart/repository/index.ts +30 -1
  263. package/src/modules/cart/schema.ts +2 -0
  264. package/src/modules/cart/schemas.ts +1 -0
  265. package/src/modules/cart/service.ts +101 -0
  266. package/src/modules/catalog/entity-service.ts +195 -6
  267. package/src/modules/catalog/schema.ts +5 -0
  268. package/src/modules/catalog/schemas.ts +18 -1
  269. package/src/modules/catalog/service.ts +32 -2
  270. package/src/modules/documents/module.ts +19 -0
  271. package/src/modules/documents/pdf.ts +101 -0
  272. package/src/modules/documents/render.ts +231 -0
  273. package/src/modules/documents/repository/index.ts +68 -0
  274. package/src/modules/documents/schema.ts +44 -0
  275. package/src/modules/documents/service.ts +176 -0
  276. package/src/modules/fulfillment/service.ts +139 -1
  277. package/src/modules/media/service.ts +40 -0
  278. package/src/modules/orders/repository/index.ts +127 -1
  279. package/src/modules/orders/schema.ts +54 -1
  280. package/src/modules/orders/service.ts +739 -24
  281. package/src/modules/pricing/repository/index.ts +34 -0
  282. package/src/modules/pricing/service.ts +100 -1
  283. package/src/modules/settings/module.ts +18 -0
  284. package/src/modules/settings/repository/index.ts +59 -0
  285. package/src/modules/settings/schema.ts +25 -0
  286. package/src/modules/settings/service.ts +82 -0
  287. package/src/modules/shipping/calculator.ts +27 -0
  288. package/src/modules/shipping/module.ts +6 -2
  289. package/src/modules/shipping/repository/index.ts +136 -2
  290. package/src/modules/shipping/schema.ts +58 -0
  291. package/src/modules/shipping/service.ts +260 -1
  292. package/src/modules/tax/adapter.ts +9 -0
  293. package/src/modules/tax/module.ts +6 -2
  294. package/src/modules/tax/repository/index.ts +169 -2
  295. package/src/modules/tax/schema.ts +57 -0
  296. package/src/modules/tax/service.ts +313 -2
  297. package/src/runtime/kernel-modules.ts +4 -0
  298. package/src/runtime/kernel-types.ts +6 -0
  299. package/src/runtime/server.ts +36 -3
  300. package/src/test-utils/create-plugin-test-app.ts +17 -4
  301. package/src/test-utils/rest-api-test-utils.ts +6 -0
@@ -3,6 +3,39 @@ export declare const ChangeOrderStatusBodySchema: z.ZodObject<{
3
3
  status: z.ZodString;
4
4
  reason: z.ZodOptional<z.ZodString>;
5
5
  }, z.core.$strip>;
6
+ export declare const RefundOrderBodySchema: z.ZodObject<{
7
+ amount: z.ZodOptional<z.ZodNumber>;
8
+ reason: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export declare const CaptureOrderBodySchema: z.ZodObject<{
11
+ amount: z.ZodOptional<z.ZodNumber>;
12
+ }, z.core.$strip>;
13
+ export declare const CreateOrderBodySchema: z.ZodObject<{
14
+ customerId: z.ZodOptional<z.ZodUUID>;
15
+ idempotencyKey: z.ZodOptional<z.ZodString>;
16
+ currency: z.ZodString;
17
+ subtotal: z.ZodNumber;
18
+ taxTotal: z.ZodNumber;
19
+ shippingTotal: z.ZodNumber;
20
+ discountTotal: z.ZodOptional<z.ZodNumber>;
21
+ grandTotal: z.ZodNumber;
22
+ paymentIntentId: z.ZodOptional<z.ZodString>;
23
+ paymentMethodId: z.ZodOptional<z.ZodString>;
24
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
25
+ lineItems: z.ZodArray<z.ZodObject<{
26
+ entityId: z.ZodUUID;
27
+ entityType: z.ZodString;
28
+ variantId: z.ZodOptional<z.ZodUUID>;
29
+ sku: z.ZodOptional<z.ZodString>;
30
+ title: z.ZodString;
31
+ quantity: z.ZodNumber;
32
+ unitPrice: z.ZodNumber;
33
+ totalPrice: z.ZodNumber;
34
+ taxAmount: z.ZodOptional<z.ZodNumber>;
35
+ discountAmount: z.ZodOptional<z.ZodNumber>;
36
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>;
6
39
  export declare const OrderDataResponseSchema: z.ZodObject<{
7
40
  data: import("drizzle-zod").BuildSchema<"select", {
8
41
  id: import("drizzle-orm/pg-core").PgColumn<{
@@ -243,6 +276,23 @@ export declare const OrderDataResponseSchema: z.ZodObject<{
243
276
  identity: undefined;
244
277
  generated: undefined;
245
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
+ }, {}, {}>;
246
296
  metadata: import("drizzle-orm/pg-core").PgColumn<{
247
297
  name: "metadata";
248
298
  tableName: "orders";
@@ -573,6 +623,23 @@ export declare const listOrdersRoute: {
573
623
  identity: undefined;
574
624
  generated: undefined;
575
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
+ }, {}, {}>;
576
643
  metadata: import("drizzle-orm/pg-core").PgColumn<{
577
644
  name: "metadata";
578
645
  tableName: "orders";
@@ -1045,6 +1112,23 @@ export declare const getOrderRoute: {
1045
1112
  identity: undefined;
1046
1113
  generated: undefined;
1047
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
+ }, {}, {}>;
1048
1132
  metadata: import("drizzle-orm/pg-core").PgColumn<{
1049
1133
  name: "metadata";
1050
1134
  tableName: "orders";
@@ -1481,6 +1565,23 @@ export declare const getOrderFulfillmentsRoute: {
1481
1565
  identity: undefined;
1482
1566
  generated: undefined;
1483
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
+ }, {}, {}>;
1484
1585
  metadata: import("drizzle-orm/pg-core").PgColumn<{
1485
1586
  name: "metadata";
1486
1587
  tableName: "orders";
@@ -1563,11 +1664,24 @@ export declare const getOrderFulfillmentsRoute: {
1563
1664
  } & {
1564
1665
  getRoutingPath(): "/:id/fulfillments";
1565
1666
  };
1566
- export declare const changeOrderStatusRoute: {
1567
- method: "patch";
1568
- path: "/{id}/status";
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: {
1680
+ method: "post";
1681
+ path: "/{id}/fulfillments";
1569
1682
  tags: string[];
1570
1683
  summary: string;
1684
+ description: string;
1571
1685
  request: {
1572
1686
  params: z.ZodObject<{
1573
1687
  id: z.ZodUUID;
@@ -1576,8 +1690,16 @@ export declare const changeOrderStatusRoute: {
1576
1690
  content: {
1577
1691
  "application/json": {
1578
1692
  schema: z.ZodObject<{
1579
- status: z.ZodString;
1580
- reason: z.ZodOptional<z.ZodString>;
1693
+ lineItems: z.ZodArray<z.ZodObject<{
1694
+ orderLineItemId: z.ZodUUID;
1695
+ quantity: z.ZodNumber;
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>>;
1581
1703
  }, z.core.$strip>;
1582
1704
  };
1583
1705
  };
@@ -1685,7 +1807,7 @@ export declare const changeOrderStatusRoute: {
1685
1807
  };
1686
1808
  readonly description: "Validation error.";
1687
1809
  };
1688
- 200: {
1810
+ 201: {
1689
1811
  content: {
1690
1812
  "application/json": {
1691
1813
  schema: z.ZodObject<{
@@ -1928,6 +2050,23 @@ export declare const changeOrderStatusRoute: {
1928
2050
  identity: undefined;
1929
2051
  generated: undefined;
1930
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
+ }, {}, {}>;
1931
2070
  metadata: import("drizzle-orm/pg-core").PgColumn<{
1932
2071
  name: "metadata";
1933
2072
  tableName: "orders";
@@ -2008,6 +2147,4327 @@ export declare const changeOrderStatusRoute: {
2008
2147
  };
2009
2148
  };
2010
2149
  } & {
2011
- getRoutingPath(): "/:id/status";
2150
+ getRoutingPath(): "/:id/fulfillments";
2151
+ };
2152
+ export declare const createOrderRoute: {
2153
+ method: "post";
2154
+ path: "/";
2155
+ tags: string[];
2156
+ summary: string;
2157
+ description: string;
2158
+ request: {
2159
+ body: {
2160
+ content: {
2161
+ "application/json": {
2162
+ schema: z.ZodObject<{
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>>;
2187
+ }, z.core.$strip>;
2188
+ };
2189
+ };
2190
+ required: true;
2191
+ };
2192
+ };
2193
+ responses: {
2194
+ 400: {
2195
+ readonly content: {
2196
+ readonly "application/json": {
2197
+ readonly schema: z.ZodObject<{
2198
+ error: z.ZodObject<{
2199
+ code: z.ZodString;
2200
+ message: z.ZodString;
2201
+ details: z.ZodOptional<z.ZodObject<{
2202
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2203
+ path: z.ZodString;
2204
+ message: z.ZodString;
2205
+ code: z.ZodString;
2206
+ }, z.core.$strip>>>;
2207
+ }, z.core.$strip>>;
2208
+ }, z.core.$strip>;
2209
+ }, z.core.$strip>;
2210
+ };
2211
+ };
2212
+ readonly description: "Business logic error.";
2213
+ };
2214
+ 401: {
2215
+ readonly content: {
2216
+ readonly "application/json": {
2217
+ readonly schema: z.ZodObject<{
2218
+ error: z.ZodObject<{
2219
+ code: z.ZodString;
2220
+ message: z.ZodString;
2221
+ details: z.ZodOptional<z.ZodObject<{
2222
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2223
+ path: z.ZodString;
2224
+ message: z.ZodString;
2225
+ code: z.ZodString;
2226
+ }, z.core.$strip>>>;
2227
+ }, z.core.$strip>>;
2228
+ }, z.core.$strip>;
2229
+ }, z.core.$strip>;
2230
+ };
2231
+ };
2232
+ readonly description: "Authentication required.";
2233
+ };
2234
+ 403: {
2235
+ readonly content: {
2236
+ readonly "application/json": {
2237
+ readonly schema: z.ZodObject<{
2238
+ error: z.ZodObject<{
2239
+ code: z.ZodString;
2240
+ message: z.ZodString;
2241
+ details: z.ZodOptional<z.ZodObject<{
2242
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2243
+ path: z.ZodString;
2244
+ message: z.ZodString;
2245
+ code: z.ZodString;
2246
+ }, z.core.$strip>>>;
2247
+ }, z.core.$strip>>;
2248
+ }, z.core.$strip>;
2249
+ }, z.core.$strip>;
2250
+ };
2251
+ };
2252
+ readonly description: "Insufficient permissions.";
2253
+ };
2254
+ 404: {
2255
+ readonly content: {
2256
+ readonly "application/json": {
2257
+ readonly schema: z.ZodObject<{
2258
+ error: z.ZodObject<{
2259
+ code: z.ZodString;
2260
+ message: z.ZodString;
2261
+ details: z.ZodOptional<z.ZodObject<{
2262
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2263
+ path: z.ZodString;
2264
+ message: z.ZodString;
2265
+ code: z.ZodString;
2266
+ }, z.core.$strip>>>;
2267
+ }, z.core.$strip>>;
2268
+ }, z.core.$strip>;
2269
+ }, z.core.$strip>;
2270
+ };
2271
+ };
2272
+ readonly description: "Resource not found.";
2273
+ };
2274
+ 422: {
2275
+ readonly content: {
2276
+ readonly "application/json": {
2277
+ readonly schema: z.ZodObject<{
2278
+ error: z.ZodObject<{
2279
+ code: z.ZodString;
2280
+ message: z.ZodString;
2281
+ details: z.ZodOptional<z.ZodObject<{
2282
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2283
+ path: z.ZodString;
2284
+ message: z.ZodString;
2285
+ code: z.ZodString;
2286
+ }, z.core.$strip>>>;
2287
+ }, z.core.$strip>>;
2288
+ }, z.core.$strip>;
2289
+ }, z.core.$strip>;
2290
+ };
2291
+ };
2292
+ readonly description: "Validation error.";
2293
+ };
2294
+ 201: {
2295
+ content: {
2296
+ "application/json": {
2297
+ schema: z.ZodObject<{
2298
+ data: import("drizzle-zod").BuildSchema<"select", {
2299
+ id: import("drizzle-orm/pg-core").PgColumn<{
2300
+ name: "id";
2301
+ tableName: "orders";
2302
+ dataType: "string";
2303
+ columnType: "PgUUID";
2304
+ data: string;
2305
+ driverParam: string;
2306
+ notNull: true;
2307
+ hasDefault: true;
2308
+ isPrimaryKey: true;
2309
+ isAutoincrement: false;
2310
+ hasRuntimeDefault: false;
2311
+ enumValues: undefined;
2312
+ baseColumn: never;
2313
+ identity: undefined;
2314
+ generated: undefined;
2315
+ }, {}, {}>;
2316
+ organizationId: import("drizzle-orm/pg-core").PgColumn<{
2317
+ name: "organization_id";
2318
+ tableName: "orders";
2319
+ dataType: "string";
2320
+ columnType: "PgText";
2321
+ data: string;
2322
+ driverParam: string;
2323
+ notNull: true;
2324
+ hasDefault: false;
2325
+ isPrimaryKey: false;
2326
+ isAutoincrement: false;
2327
+ hasRuntimeDefault: false;
2328
+ enumValues: [string, ...string[]];
2329
+ baseColumn: never;
2330
+ identity: undefined;
2331
+ generated: undefined;
2332
+ }, {}, {}>;
2333
+ orderNumber: import("drizzle-orm/pg-core").PgColumn<{
2334
+ name: "order_number";
2335
+ tableName: "orders";
2336
+ dataType: "string";
2337
+ columnType: "PgText";
2338
+ data: string;
2339
+ driverParam: string;
2340
+ notNull: true;
2341
+ hasDefault: false;
2342
+ isPrimaryKey: false;
2343
+ isAutoincrement: false;
2344
+ hasRuntimeDefault: false;
2345
+ enumValues: [string, ...string[]];
2346
+ baseColumn: never;
2347
+ identity: undefined;
2348
+ generated: undefined;
2349
+ }, {}, {}>;
2350
+ customerId: import("drizzle-orm/pg-core").PgColumn<{
2351
+ name: "customer_id";
2352
+ tableName: "orders";
2353
+ dataType: "string";
2354
+ columnType: "PgUUID";
2355
+ data: string;
2356
+ driverParam: string;
2357
+ notNull: false;
2358
+ hasDefault: false;
2359
+ isPrimaryKey: false;
2360
+ isAutoincrement: false;
2361
+ hasRuntimeDefault: false;
2362
+ enumValues: undefined;
2363
+ baseColumn: never;
2364
+ identity: undefined;
2365
+ generated: undefined;
2366
+ }, {}, {}>;
2367
+ status: import("drizzle-orm/pg-core").PgColumn<{
2368
+ name: "status";
2369
+ tableName: "orders";
2370
+ dataType: "string";
2371
+ columnType: "PgText";
2372
+ data: string;
2373
+ driverParam: string;
2374
+ notNull: true;
2375
+ hasDefault: true;
2376
+ isPrimaryKey: false;
2377
+ isAutoincrement: false;
2378
+ hasRuntimeDefault: false;
2379
+ enumValues: [string, ...string[]];
2380
+ baseColumn: never;
2381
+ identity: undefined;
2382
+ generated: undefined;
2383
+ }, {}, {}>;
2384
+ currency: import("drizzle-orm/pg-core").PgColumn<{
2385
+ name: "currency";
2386
+ tableName: "orders";
2387
+ dataType: "string";
2388
+ columnType: "PgText";
2389
+ data: string;
2390
+ driverParam: string;
2391
+ notNull: true;
2392
+ hasDefault: false;
2393
+ isPrimaryKey: false;
2394
+ isAutoincrement: false;
2395
+ hasRuntimeDefault: false;
2396
+ enumValues: [string, ...string[]];
2397
+ baseColumn: never;
2398
+ identity: undefined;
2399
+ generated: undefined;
2400
+ }, {}, {}>;
2401
+ subtotal: import("drizzle-orm/pg-core").PgColumn<{
2402
+ name: "subtotal";
2403
+ tableName: "orders";
2404
+ dataType: "number";
2405
+ columnType: "PgInteger";
2406
+ data: number;
2407
+ driverParam: string | number;
2408
+ notNull: true;
2409
+ hasDefault: false;
2410
+ isPrimaryKey: false;
2411
+ isAutoincrement: false;
2412
+ hasRuntimeDefault: false;
2413
+ enumValues: undefined;
2414
+ baseColumn: never;
2415
+ identity: undefined;
2416
+ generated: undefined;
2417
+ }, {}, {}>;
2418
+ taxTotal: import("drizzle-orm/pg-core").PgColumn<{
2419
+ name: "tax_total";
2420
+ tableName: "orders";
2421
+ dataType: "number";
2422
+ columnType: "PgInteger";
2423
+ data: number;
2424
+ driverParam: string | number;
2425
+ notNull: true;
2426
+ hasDefault: false;
2427
+ isPrimaryKey: false;
2428
+ isAutoincrement: false;
2429
+ hasRuntimeDefault: false;
2430
+ enumValues: undefined;
2431
+ baseColumn: never;
2432
+ identity: undefined;
2433
+ generated: undefined;
2434
+ }, {}, {}>;
2435
+ shippingTotal: import("drizzle-orm/pg-core").PgColumn<{
2436
+ name: "shipping_total";
2437
+ tableName: "orders";
2438
+ dataType: "number";
2439
+ columnType: "PgInteger";
2440
+ data: number;
2441
+ driverParam: string | number;
2442
+ notNull: true;
2443
+ hasDefault: false;
2444
+ isPrimaryKey: false;
2445
+ isAutoincrement: false;
2446
+ hasRuntimeDefault: false;
2447
+ enumValues: undefined;
2448
+ baseColumn: never;
2449
+ identity: undefined;
2450
+ generated: undefined;
2451
+ }, {}, {}>;
2452
+ discountTotal: import("drizzle-orm/pg-core").PgColumn<{
2453
+ name: "discount_total";
2454
+ tableName: "orders";
2455
+ dataType: "number";
2456
+ columnType: "PgInteger";
2457
+ data: number;
2458
+ driverParam: string | number;
2459
+ notNull: true;
2460
+ hasDefault: true;
2461
+ isPrimaryKey: false;
2462
+ isAutoincrement: false;
2463
+ hasRuntimeDefault: false;
2464
+ enumValues: undefined;
2465
+ baseColumn: never;
2466
+ identity: undefined;
2467
+ generated: undefined;
2468
+ }, {}, {}>;
2469
+ grandTotal: import("drizzle-orm/pg-core").PgColumn<{
2470
+ name: "grand_total";
2471
+ tableName: "orders";
2472
+ dataType: "number";
2473
+ columnType: "PgInteger";
2474
+ data: number;
2475
+ driverParam: string | number;
2476
+ notNull: true;
2477
+ hasDefault: false;
2478
+ isPrimaryKey: false;
2479
+ isAutoincrement: false;
2480
+ hasRuntimeDefault: false;
2481
+ enumValues: undefined;
2482
+ baseColumn: never;
2483
+ identity: undefined;
2484
+ generated: undefined;
2485
+ }, {}, {}>;
2486
+ amountCaptured: import("drizzle-orm/pg-core").PgColumn<{
2487
+ name: "amount_captured";
2488
+ tableName: "orders";
2489
+ dataType: "number";
2490
+ columnType: "PgInteger";
2491
+ data: number;
2492
+ driverParam: string | number;
2493
+ notNull: false;
2494
+ hasDefault: false;
2495
+ isPrimaryKey: false;
2496
+ isAutoincrement: false;
2497
+ hasRuntimeDefault: false;
2498
+ enumValues: undefined;
2499
+ baseColumn: never;
2500
+ identity: undefined;
2501
+ generated: undefined;
2502
+ }, {}, {}>;
2503
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
2504
+ name: "payment_intent_id";
2505
+ tableName: "orders";
2506
+ dataType: "string";
2507
+ columnType: "PgText";
2508
+ data: string;
2509
+ driverParam: string;
2510
+ notNull: false;
2511
+ hasDefault: false;
2512
+ isPrimaryKey: false;
2513
+ isAutoincrement: false;
2514
+ hasRuntimeDefault: false;
2515
+ enumValues: [string, ...string[]];
2516
+ baseColumn: never;
2517
+ identity: undefined;
2518
+ generated: undefined;
2519
+ }, {}, {}>;
2520
+ paymentMethodId: import("drizzle-orm/pg-core").PgColumn<{
2521
+ name: "payment_method_id";
2522
+ tableName: "orders";
2523
+ dataType: "string";
2524
+ columnType: "PgText";
2525
+ data: string;
2526
+ driverParam: string;
2527
+ notNull: false;
2528
+ hasDefault: false;
2529
+ isPrimaryKey: false;
2530
+ isAutoincrement: false;
2531
+ hasRuntimeDefault: false;
2532
+ enumValues: [string, ...string[]];
2533
+ baseColumn: never;
2534
+ identity: undefined;
2535
+ generated: undefined;
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
+ }, {}, {}>;
2554
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
2555
+ name: "metadata";
2556
+ tableName: "orders";
2557
+ dataType: "json";
2558
+ columnType: "PgJsonb";
2559
+ data: Record<string, unknown>;
2560
+ driverParam: unknown;
2561
+ notNull: false;
2562
+ hasDefault: true;
2563
+ isPrimaryKey: false;
2564
+ isAutoincrement: false;
2565
+ hasRuntimeDefault: false;
2566
+ enumValues: undefined;
2567
+ baseColumn: never;
2568
+ identity: undefined;
2569
+ generated: undefined;
2570
+ }, {}, {
2571
+ $type: Record<string, unknown>;
2572
+ }>;
2573
+ placedAt: import("drizzle-orm/pg-core").PgColumn<{
2574
+ name: "placed_at";
2575
+ tableName: "orders";
2576
+ dataType: "date";
2577
+ columnType: "PgTimestamp";
2578
+ data: Date;
2579
+ driverParam: string;
2580
+ notNull: true;
2581
+ hasDefault: true;
2582
+ isPrimaryKey: false;
2583
+ isAutoincrement: false;
2584
+ hasRuntimeDefault: false;
2585
+ enumValues: undefined;
2586
+ baseColumn: never;
2587
+ identity: undefined;
2588
+ generated: undefined;
2589
+ }, {}, {}>;
2590
+ fulfilledAt: import("drizzle-orm/pg-core").PgColumn<{
2591
+ name: "fulfilled_at";
2592
+ tableName: "orders";
2593
+ dataType: "date";
2594
+ columnType: "PgTimestamp";
2595
+ data: Date;
2596
+ driverParam: string;
2597
+ notNull: false;
2598
+ hasDefault: false;
2599
+ isPrimaryKey: false;
2600
+ isAutoincrement: false;
2601
+ hasRuntimeDefault: false;
2602
+ enumValues: undefined;
2603
+ baseColumn: never;
2604
+ identity: undefined;
2605
+ generated: undefined;
2606
+ }, {}, {}>;
2607
+ cancelledAt: import("drizzle-orm/pg-core").PgColumn<{
2608
+ name: "cancelled_at";
2609
+ tableName: "orders";
2610
+ dataType: "date";
2611
+ columnType: "PgTimestamp";
2612
+ data: Date;
2613
+ driverParam: string;
2614
+ notNull: false;
2615
+ hasDefault: false;
2616
+ isPrimaryKey: false;
2617
+ isAutoincrement: false;
2618
+ hasRuntimeDefault: false;
2619
+ enumValues: undefined;
2620
+ baseColumn: never;
2621
+ identity: undefined;
2622
+ generated: undefined;
2623
+ }, {}, {}>;
2624
+ }, {
2625
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2626
+ }, undefined>;
2627
+ }, z.core.$strip>;
2628
+ };
2629
+ };
2630
+ description: string;
2631
+ };
2632
+ };
2633
+ } & {
2634
+ getRoutingPath(): "/";
2635
+ };
2636
+ export declare const refundOrderRoute: {
2637
+ method: "post";
2638
+ path: "/{id}/refund";
2639
+ tags: string[];
2640
+ summary: string;
2641
+ description: string;
2642
+ request: {
2643
+ params: z.ZodObject<{
2644
+ id: z.ZodUUID;
2645
+ }, z.core.$strip>;
2646
+ body: {
2647
+ content: {
2648
+ "application/json": {
2649
+ schema: z.ZodObject<{
2650
+ amount: z.ZodOptional<z.ZodNumber>;
2651
+ reason: z.ZodOptional<z.ZodString>;
2652
+ }, z.core.$strip>;
2653
+ };
2654
+ };
2655
+ required: false;
2656
+ };
2657
+ };
2658
+ responses: {
2659
+ 400: {
2660
+ readonly content: {
2661
+ readonly "application/json": {
2662
+ readonly schema: z.ZodObject<{
2663
+ error: z.ZodObject<{
2664
+ code: z.ZodString;
2665
+ message: z.ZodString;
2666
+ details: z.ZodOptional<z.ZodObject<{
2667
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2668
+ path: z.ZodString;
2669
+ message: z.ZodString;
2670
+ code: z.ZodString;
2671
+ }, z.core.$strip>>>;
2672
+ }, z.core.$strip>>;
2673
+ }, z.core.$strip>;
2674
+ }, z.core.$strip>;
2675
+ };
2676
+ };
2677
+ readonly description: "Business logic error.";
2678
+ };
2679
+ 401: {
2680
+ readonly content: {
2681
+ readonly "application/json": {
2682
+ readonly schema: z.ZodObject<{
2683
+ error: z.ZodObject<{
2684
+ code: z.ZodString;
2685
+ message: z.ZodString;
2686
+ details: z.ZodOptional<z.ZodObject<{
2687
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2688
+ path: z.ZodString;
2689
+ message: z.ZodString;
2690
+ code: z.ZodString;
2691
+ }, z.core.$strip>>>;
2692
+ }, z.core.$strip>>;
2693
+ }, z.core.$strip>;
2694
+ }, z.core.$strip>;
2695
+ };
2696
+ };
2697
+ readonly description: "Authentication required.";
2698
+ };
2699
+ 403: {
2700
+ readonly content: {
2701
+ readonly "application/json": {
2702
+ readonly schema: z.ZodObject<{
2703
+ error: z.ZodObject<{
2704
+ code: z.ZodString;
2705
+ message: z.ZodString;
2706
+ details: z.ZodOptional<z.ZodObject<{
2707
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2708
+ path: z.ZodString;
2709
+ message: z.ZodString;
2710
+ code: z.ZodString;
2711
+ }, z.core.$strip>>>;
2712
+ }, z.core.$strip>>;
2713
+ }, z.core.$strip>;
2714
+ }, z.core.$strip>;
2715
+ };
2716
+ };
2717
+ readonly description: "Insufficient permissions.";
2718
+ };
2719
+ 404: {
2720
+ readonly content: {
2721
+ readonly "application/json": {
2722
+ readonly schema: z.ZodObject<{
2723
+ error: z.ZodObject<{
2724
+ code: z.ZodString;
2725
+ message: z.ZodString;
2726
+ details: z.ZodOptional<z.ZodObject<{
2727
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2728
+ path: z.ZodString;
2729
+ message: z.ZodString;
2730
+ code: z.ZodString;
2731
+ }, z.core.$strip>>>;
2732
+ }, z.core.$strip>>;
2733
+ }, z.core.$strip>;
2734
+ }, z.core.$strip>;
2735
+ };
2736
+ };
2737
+ readonly description: "Resource not found.";
2738
+ };
2739
+ 422: {
2740
+ readonly content: {
2741
+ readonly "application/json": {
2742
+ readonly schema: z.ZodObject<{
2743
+ error: z.ZodObject<{
2744
+ code: z.ZodString;
2745
+ message: z.ZodString;
2746
+ details: z.ZodOptional<z.ZodObject<{
2747
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2748
+ path: z.ZodString;
2749
+ message: z.ZodString;
2750
+ code: z.ZodString;
2751
+ }, z.core.$strip>>>;
2752
+ }, z.core.$strip>>;
2753
+ }, z.core.$strip>;
2754
+ }, z.core.$strip>;
2755
+ };
2756
+ };
2757
+ readonly description: "Validation error.";
2758
+ };
2759
+ 200: {
2760
+ content: {
2761
+ "application/json": {
2762
+ schema: z.ZodObject<{
2763
+ data: import("drizzle-zod").BuildSchema<"select", {
2764
+ id: import("drizzle-orm/pg-core").PgColumn<{
2765
+ name: "id";
2766
+ tableName: "orders";
2767
+ dataType: "string";
2768
+ columnType: "PgUUID";
2769
+ data: string;
2770
+ driverParam: string;
2771
+ notNull: true;
2772
+ hasDefault: true;
2773
+ isPrimaryKey: true;
2774
+ isAutoincrement: false;
2775
+ hasRuntimeDefault: false;
2776
+ enumValues: undefined;
2777
+ baseColumn: never;
2778
+ identity: undefined;
2779
+ generated: undefined;
2780
+ }, {}, {}>;
2781
+ organizationId: import("drizzle-orm/pg-core").PgColumn<{
2782
+ name: "organization_id";
2783
+ tableName: "orders";
2784
+ dataType: "string";
2785
+ columnType: "PgText";
2786
+ data: string;
2787
+ driverParam: string;
2788
+ notNull: true;
2789
+ hasDefault: false;
2790
+ isPrimaryKey: false;
2791
+ isAutoincrement: false;
2792
+ hasRuntimeDefault: false;
2793
+ enumValues: [string, ...string[]];
2794
+ baseColumn: never;
2795
+ identity: undefined;
2796
+ generated: undefined;
2797
+ }, {}, {}>;
2798
+ orderNumber: import("drizzle-orm/pg-core").PgColumn<{
2799
+ name: "order_number";
2800
+ tableName: "orders";
2801
+ dataType: "string";
2802
+ columnType: "PgText";
2803
+ data: string;
2804
+ driverParam: string;
2805
+ notNull: true;
2806
+ hasDefault: false;
2807
+ isPrimaryKey: false;
2808
+ isAutoincrement: false;
2809
+ hasRuntimeDefault: false;
2810
+ enumValues: [string, ...string[]];
2811
+ baseColumn: never;
2812
+ identity: undefined;
2813
+ generated: undefined;
2814
+ }, {}, {}>;
2815
+ customerId: import("drizzle-orm/pg-core").PgColumn<{
2816
+ name: "customer_id";
2817
+ tableName: "orders";
2818
+ dataType: "string";
2819
+ columnType: "PgUUID";
2820
+ data: string;
2821
+ driverParam: string;
2822
+ notNull: false;
2823
+ hasDefault: false;
2824
+ isPrimaryKey: false;
2825
+ isAutoincrement: false;
2826
+ hasRuntimeDefault: false;
2827
+ enumValues: undefined;
2828
+ baseColumn: never;
2829
+ identity: undefined;
2830
+ generated: undefined;
2831
+ }, {}, {}>;
2832
+ status: import("drizzle-orm/pg-core").PgColumn<{
2833
+ name: "status";
2834
+ tableName: "orders";
2835
+ dataType: "string";
2836
+ columnType: "PgText";
2837
+ data: string;
2838
+ driverParam: string;
2839
+ notNull: true;
2840
+ hasDefault: true;
2841
+ isPrimaryKey: false;
2842
+ isAutoincrement: false;
2843
+ hasRuntimeDefault: false;
2844
+ enumValues: [string, ...string[]];
2845
+ baseColumn: never;
2846
+ identity: undefined;
2847
+ generated: undefined;
2848
+ }, {}, {}>;
2849
+ currency: import("drizzle-orm/pg-core").PgColumn<{
2850
+ name: "currency";
2851
+ tableName: "orders";
2852
+ dataType: "string";
2853
+ columnType: "PgText";
2854
+ data: string;
2855
+ driverParam: string;
2856
+ notNull: true;
2857
+ hasDefault: false;
2858
+ isPrimaryKey: false;
2859
+ isAutoincrement: false;
2860
+ hasRuntimeDefault: false;
2861
+ enumValues: [string, ...string[]];
2862
+ baseColumn: never;
2863
+ identity: undefined;
2864
+ generated: undefined;
2865
+ }, {}, {}>;
2866
+ subtotal: import("drizzle-orm/pg-core").PgColumn<{
2867
+ name: "subtotal";
2868
+ tableName: "orders";
2869
+ dataType: "number";
2870
+ columnType: "PgInteger";
2871
+ data: number;
2872
+ driverParam: string | number;
2873
+ notNull: true;
2874
+ hasDefault: false;
2875
+ isPrimaryKey: false;
2876
+ isAutoincrement: false;
2877
+ hasRuntimeDefault: false;
2878
+ enumValues: undefined;
2879
+ baseColumn: never;
2880
+ identity: undefined;
2881
+ generated: undefined;
2882
+ }, {}, {}>;
2883
+ taxTotal: import("drizzle-orm/pg-core").PgColumn<{
2884
+ name: "tax_total";
2885
+ tableName: "orders";
2886
+ dataType: "number";
2887
+ columnType: "PgInteger";
2888
+ data: number;
2889
+ driverParam: string | number;
2890
+ notNull: true;
2891
+ hasDefault: false;
2892
+ isPrimaryKey: false;
2893
+ isAutoincrement: false;
2894
+ hasRuntimeDefault: false;
2895
+ enumValues: undefined;
2896
+ baseColumn: never;
2897
+ identity: undefined;
2898
+ generated: undefined;
2899
+ }, {}, {}>;
2900
+ shippingTotal: import("drizzle-orm/pg-core").PgColumn<{
2901
+ name: "shipping_total";
2902
+ tableName: "orders";
2903
+ dataType: "number";
2904
+ columnType: "PgInteger";
2905
+ data: number;
2906
+ driverParam: string | number;
2907
+ notNull: true;
2908
+ hasDefault: false;
2909
+ isPrimaryKey: false;
2910
+ isAutoincrement: false;
2911
+ hasRuntimeDefault: false;
2912
+ enumValues: undefined;
2913
+ baseColumn: never;
2914
+ identity: undefined;
2915
+ generated: undefined;
2916
+ }, {}, {}>;
2917
+ discountTotal: import("drizzle-orm/pg-core").PgColumn<{
2918
+ name: "discount_total";
2919
+ tableName: "orders";
2920
+ dataType: "number";
2921
+ columnType: "PgInteger";
2922
+ data: number;
2923
+ driverParam: string | number;
2924
+ notNull: true;
2925
+ hasDefault: true;
2926
+ isPrimaryKey: false;
2927
+ isAutoincrement: false;
2928
+ hasRuntimeDefault: false;
2929
+ enumValues: undefined;
2930
+ baseColumn: never;
2931
+ identity: undefined;
2932
+ generated: undefined;
2933
+ }, {}, {}>;
2934
+ grandTotal: import("drizzle-orm/pg-core").PgColumn<{
2935
+ name: "grand_total";
2936
+ tableName: "orders";
2937
+ dataType: "number";
2938
+ columnType: "PgInteger";
2939
+ data: number;
2940
+ driverParam: string | number;
2941
+ notNull: true;
2942
+ hasDefault: false;
2943
+ isPrimaryKey: false;
2944
+ isAutoincrement: false;
2945
+ hasRuntimeDefault: false;
2946
+ enumValues: undefined;
2947
+ baseColumn: never;
2948
+ identity: undefined;
2949
+ generated: undefined;
2950
+ }, {}, {}>;
2951
+ amountCaptured: import("drizzle-orm/pg-core").PgColumn<{
2952
+ name: "amount_captured";
2953
+ tableName: "orders";
2954
+ dataType: "number";
2955
+ columnType: "PgInteger";
2956
+ data: number;
2957
+ driverParam: string | number;
2958
+ notNull: false;
2959
+ hasDefault: false;
2960
+ isPrimaryKey: false;
2961
+ isAutoincrement: false;
2962
+ hasRuntimeDefault: false;
2963
+ enumValues: undefined;
2964
+ baseColumn: never;
2965
+ identity: undefined;
2966
+ generated: undefined;
2967
+ }, {}, {}>;
2968
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
2969
+ name: "payment_intent_id";
2970
+ tableName: "orders";
2971
+ dataType: "string";
2972
+ columnType: "PgText";
2973
+ data: string;
2974
+ driverParam: string;
2975
+ notNull: false;
2976
+ hasDefault: false;
2977
+ isPrimaryKey: false;
2978
+ isAutoincrement: false;
2979
+ hasRuntimeDefault: false;
2980
+ enumValues: [string, ...string[]];
2981
+ baseColumn: never;
2982
+ identity: undefined;
2983
+ generated: undefined;
2984
+ }, {}, {}>;
2985
+ paymentMethodId: import("drizzle-orm/pg-core").PgColumn<{
2986
+ name: "payment_method_id";
2987
+ tableName: "orders";
2988
+ dataType: "string";
2989
+ columnType: "PgText";
2990
+ data: string;
2991
+ driverParam: string;
2992
+ notNull: false;
2993
+ hasDefault: false;
2994
+ isPrimaryKey: false;
2995
+ isAutoincrement: false;
2996
+ hasRuntimeDefault: false;
2997
+ enumValues: [string, ...string[]];
2998
+ baseColumn: never;
2999
+ identity: undefined;
3000
+ generated: undefined;
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
+ }, {}, {}>;
3019
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
3020
+ name: "metadata";
3021
+ tableName: "orders";
3022
+ dataType: "json";
3023
+ columnType: "PgJsonb";
3024
+ data: Record<string, unknown>;
3025
+ driverParam: unknown;
3026
+ notNull: false;
3027
+ hasDefault: true;
3028
+ isPrimaryKey: false;
3029
+ isAutoincrement: false;
3030
+ hasRuntimeDefault: false;
3031
+ enumValues: undefined;
3032
+ baseColumn: never;
3033
+ identity: undefined;
3034
+ generated: undefined;
3035
+ }, {}, {
3036
+ $type: Record<string, unknown>;
3037
+ }>;
3038
+ placedAt: import("drizzle-orm/pg-core").PgColumn<{
3039
+ name: "placed_at";
3040
+ tableName: "orders";
3041
+ dataType: "date";
3042
+ columnType: "PgTimestamp";
3043
+ data: Date;
3044
+ driverParam: string;
3045
+ notNull: true;
3046
+ hasDefault: true;
3047
+ isPrimaryKey: false;
3048
+ isAutoincrement: false;
3049
+ hasRuntimeDefault: false;
3050
+ enumValues: undefined;
3051
+ baseColumn: never;
3052
+ identity: undefined;
3053
+ generated: undefined;
3054
+ }, {}, {}>;
3055
+ fulfilledAt: import("drizzle-orm/pg-core").PgColumn<{
3056
+ name: "fulfilled_at";
3057
+ tableName: "orders";
3058
+ dataType: "date";
3059
+ columnType: "PgTimestamp";
3060
+ data: Date;
3061
+ driverParam: string;
3062
+ notNull: false;
3063
+ hasDefault: false;
3064
+ isPrimaryKey: false;
3065
+ isAutoincrement: false;
3066
+ hasRuntimeDefault: false;
3067
+ enumValues: undefined;
3068
+ baseColumn: never;
3069
+ identity: undefined;
3070
+ generated: undefined;
3071
+ }, {}, {}>;
3072
+ cancelledAt: import("drizzle-orm/pg-core").PgColumn<{
3073
+ name: "cancelled_at";
3074
+ tableName: "orders";
3075
+ dataType: "date";
3076
+ columnType: "PgTimestamp";
3077
+ data: Date;
3078
+ driverParam: string;
3079
+ notNull: false;
3080
+ hasDefault: false;
3081
+ isPrimaryKey: false;
3082
+ isAutoincrement: false;
3083
+ hasRuntimeDefault: false;
3084
+ enumValues: undefined;
3085
+ baseColumn: never;
3086
+ identity: undefined;
3087
+ generated: undefined;
3088
+ }, {}, {}>;
3089
+ }, {
3090
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3091
+ }, undefined>;
3092
+ }, z.core.$strip>;
3093
+ };
3094
+ };
3095
+ description: string;
3096
+ };
3097
+ };
3098
+ } & {
3099
+ getRoutingPath(): "/:id/refund";
3100
+ };
3101
+ export declare const captureOrderRoute: {
3102
+ method: "post";
3103
+ path: "/{id}/capture";
3104
+ tags: string[];
3105
+ summary: string;
3106
+ description: string;
3107
+ request: {
3108
+ params: z.ZodObject<{
3109
+ id: z.ZodUUID;
3110
+ }, z.core.$strip>;
3111
+ body: {
3112
+ content: {
3113
+ "application/json": {
3114
+ schema: z.ZodObject<{
3115
+ amount: z.ZodOptional<z.ZodNumber>;
3116
+ }, z.core.$strip>;
3117
+ };
3118
+ };
3119
+ required: false;
3120
+ };
3121
+ };
3122
+ responses: {
3123
+ 400: {
3124
+ readonly content: {
3125
+ readonly "application/json": {
3126
+ readonly schema: z.ZodObject<{
3127
+ error: z.ZodObject<{
3128
+ code: z.ZodString;
3129
+ message: z.ZodString;
3130
+ details: z.ZodOptional<z.ZodObject<{
3131
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3132
+ path: z.ZodString;
3133
+ message: z.ZodString;
3134
+ code: z.ZodString;
3135
+ }, z.core.$strip>>>;
3136
+ }, z.core.$strip>>;
3137
+ }, z.core.$strip>;
3138
+ }, z.core.$strip>;
3139
+ };
3140
+ };
3141
+ readonly description: "Business logic error.";
3142
+ };
3143
+ 401: {
3144
+ readonly content: {
3145
+ readonly "application/json": {
3146
+ readonly schema: z.ZodObject<{
3147
+ error: z.ZodObject<{
3148
+ code: z.ZodString;
3149
+ message: z.ZodString;
3150
+ details: z.ZodOptional<z.ZodObject<{
3151
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3152
+ path: z.ZodString;
3153
+ message: z.ZodString;
3154
+ code: z.ZodString;
3155
+ }, z.core.$strip>>>;
3156
+ }, z.core.$strip>>;
3157
+ }, z.core.$strip>;
3158
+ }, z.core.$strip>;
3159
+ };
3160
+ };
3161
+ readonly description: "Authentication required.";
3162
+ };
3163
+ 403: {
3164
+ readonly content: {
3165
+ readonly "application/json": {
3166
+ readonly schema: z.ZodObject<{
3167
+ error: z.ZodObject<{
3168
+ code: z.ZodString;
3169
+ message: z.ZodString;
3170
+ details: z.ZodOptional<z.ZodObject<{
3171
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3172
+ path: z.ZodString;
3173
+ message: z.ZodString;
3174
+ code: z.ZodString;
3175
+ }, z.core.$strip>>>;
3176
+ }, z.core.$strip>>;
3177
+ }, z.core.$strip>;
3178
+ }, z.core.$strip>;
3179
+ };
3180
+ };
3181
+ readonly description: "Insufficient permissions.";
3182
+ };
3183
+ 404: {
3184
+ readonly content: {
3185
+ readonly "application/json": {
3186
+ readonly schema: z.ZodObject<{
3187
+ error: z.ZodObject<{
3188
+ code: z.ZodString;
3189
+ message: z.ZodString;
3190
+ details: z.ZodOptional<z.ZodObject<{
3191
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3192
+ path: z.ZodString;
3193
+ message: z.ZodString;
3194
+ code: z.ZodString;
3195
+ }, z.core.$strip>>>;
3196
+ }, z.core.$strip>>;
3197
+ }, z.core.$strip>;
3198
+ }, z.core.$strip>;
3199
+ };
3200
+ };
3201
+ readonly description: "Resource not found.";
3202
+ };
3203
+ 422: {
3204
+ readonly content: {
3205
+ readonly "application/json": {
3206
+ readonly schema: z.ZodObject<{
3207
+ error: z.ZodObject<{
3208
+ code: z.ZodString;
3209
+ message: z.ZodString;
3210
+ details: z.ZodOptional<z.ZodObject<{
3211
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3212
+ path: z.ZodString;
3213
+ message: z.ZodString;
3214
+ code: z.ZodString;
3215
+ }, z.core.$strip>>>;
3216
+ }, z.core.$strip>>;
3217
+ }, z.core.$strip>;
3218
+ }, z.core.$strip>;
3219
+ };
3220
+ };
3221
+ readonly description: "Validation error.";
3222
+ };
3223
+ 200: {
3224
+ content: {
3225
+ "application/json": {
3226
+ schema: z.ZodObject<{
3227
+ data: import("drizzle-zod").BuildSchema<"select", {
3228
+ id: import("drizzle-orm/pg-core").PgColumn<{
3229
+ name: "id";
3230
+ tableName: "orders";
3231
+ dataType: "string";
3232
+ columnType: "PgUUID";
3233
+ data: string;
3234
+ driverParam: string;
3235
+ notNull: true;
3236
+ hasDefault: true;
3237
+ isPrimaryKey: true;
3238
+ isAutoincrement: false;
3239
+ hasRuntimeDefault: false;
3240
+ enumValues: undefined;
3241
+ baseColumn: never;
3242
+ identity: undefined;
3243
+ generated: undefined;
3244
+ }, {}, {}>;
3245
+ organizationId: import("drizzle-orm/pg-core").PgColumn<{
3246
+ name: "organization_id";
3247
+ tableName: "orders";
3248
+ dataType: "string";
3249
+ columnType: "PgText";
3250
+ data: string;
3251
+ driverParam: string;
3252
+ notNull: true;
3253
+ hasDefault: false;
3254
+ isPrimaryKey: false;
3255
+ isAutoincrement: false;
3256
+ hasRuntimeDefault: false;
3257
+ enumValues: [string, ...string[]];
3258
+ baseColumn: never;
3259
+ identity: undefined;
3260
+ generated: undefined;
3261
+ }, {}, {}>;
3262
+ orderNumber: import("drizzle-orm/pg-core").PgColumn<{
3263
+ name: "order_number";
3264
+ tableName: "orders";
3265
+ dataType: "string";
3266
+ columnType: "PgText";
3267
+ data: string;
3268
+ driverParam: string;
3269
+ notNull: true;
3270
+ hasDefault: false;
3271
+ isPrimaryKey: false;
3272
+ isAutoincrement: false;
3273
+ hasRuntimeDefault: false;
3274
+ enumValues: [string, ...string[]];
3275
+ baseColumn: never;
3276
+ identity: undefined;
3277
+ generated: undefined;
3278
+ }, {}, {}>;
3279
+ customerId: import("drizzle-orm/pg-core").PgColumn<{
3280
+ name: "customer_id";
3281
+ tableName: "orders";
3282
+ dataType: "string";
3283
+ columnType: "PgUUID";
3284
+ data: string;
3285
+ driverParam: string;
3286
+ notNull: false;
3287
+ hasDefault: false;
3288
+ isPrimaryKey: false;
3289
+ isAutoincrement: false;
3290
+ hasRuntimeDefault: false;
3291
+ enumValues: undefined;
3292
+ baseColumn: never;
3293
+ identity: undefined;
3294
+ generated: undefined;
3295
+ }, {}, {}>;
3296
+ status: import("drizzle-orm/pg-core").PgColumn<{
3297
+ name: "status";
3298
+ tableName: "orders";
3299
+ dataType: "string";
3300
+ columnType: "PgText";
3301
+ data: string;
3302
+ driverParam: string;
3303
+ notNull: true;
3304
+ hasDefault: true;
3305
+ isPrimaryKey: false;
3306
+ isAutoincrement: false;
3307
+ hasRuntimeDefault: false;
3308
+ enumValues: [string, ...string[]];
3309
+ baseColumn: never;
3310
+ identity: undefined;
3311
+ generated: undefined;
3312
+ }, {}, {}>;
3313
+ currency: import("drizzle-orm/pg-core").PgColumn<{
3314
+ name: "currency";
3315
+ tableName: "orders";
3316
+ dataType: "string";
3317
+ columnType: "PgText";
3318
+ data: string;
3319
+ driverParam: string;
3320
+ notNull: true;
3321
+ hasDefault: false;
3322
+ isPrimaryKey: false;
3323
+ isAutoincrement: false;
3324
+ hasRuntimeDefault: false;
3325
+ enumValues: [string, ...string[]];
3326
+ baseColumn: never;
3327
+ identity: undefined;
3328
+ generated: undefined;
3329
+ }, {}, {}>;
3330
+ subtotal: import("drizzle-orm/pg-core").PgColumn<{
3331
+ name: "subtotal";
3332
+ tableName: "orders";
3333
+ dataType: "number";
3334
+ columnType: "PgInteger";
3335
+ data: number;
3336
+ driverParam: string | number;
3337
+ notNull: true;
3338
+ hasDefault: false;
3339
+ isPrimaryKey: false;
3340
+ isAutoincrement: false;
3341
+ hasRuntimeDefault: false;
3342
+ enumValues: undefined;
3343
+ baseColumn: never;
3344
+ identity: undefined;
3345
+ generated: undefined;
3346
+ }, {}, {}>;
3347
+ taxTotal: import("drizzle-orm/pg-core").PgColumn<{
3348
+ name: "tax_total";
3349
+ tableName: "orders";
3350
+ dataType: "number";
3351
+ columnType: "PgInteger";
3352
+ data: number;
3353
+ driverParam: string | number;
3354
+ notNull: true;
3355
+ hasDefault: false;
3356
+ isPrimaryKey: false;
3357
+ isAutoincrement: false;
3358
+ hasRuntimeDefault: false;
3359
+ enumValues: undefined;
3360
+ baseColumn: never;
3361
+ identity: undefined;
3362
+ generated: undefined;
3363
+ }, {}, {}>;
3364
+ shippingTotal: import("drizzle-orm/pg-core").PgColumn<{
3365
+ name: "shipping_total";
3366
+ tableName: "orders";
3367
+ dataType: "number";
3368
+ columnType: "PgInteger";
3369
+ data: number;
3370
+ driverParam: string | number;
3371
+ notNull: true;
3372
+ hasDefault: false;
3373
+ isPrimaryKey: false;
3374
+ isAutoincrement: false;
3375
+ hasRuntimeDefault: false;
3376
+ enumValues: undefined;
3377
+ baseColumn: never;
3378
+ identity: undefined;
3379
+ generated: undefined;
3380
+ }, {}, {}>;
3381
+ discountTotal: import("drizzle-orm/pg-core").PgColumn<{
3382
+ name: "discount_total";
3383
+ tableName: "orders";
3384
+ dataType: "number";
3385
+ columnType: "PgInteger";
3386
+ data: number;
3387
+ driverParam: string | number;
3388
+ notNull: true;
3389
+ hasDefault: true;
3390
+ isPrimaryKey: false;
3391
+ isAutoincrement: false;
3392
+ hasRuntimeDefault: false;
3393
+ enumValues: undefined;
3394
+ baseColumn: never;
3395
+ identity: undefined;
3396
+ generated: undefined;
3397
+ }, {}, {}>;
3398
+ grandTotal: import("drizzle-orm/pg-core").PgColumn<{
3399
+ name: "grand_total";
3400
+ tableName: "orders";
3401
+ dataType: "number";
3402
+ columnType: "PgInteger";
3403
+ data: number;
3404
+ driverParam: string | number;
3405
+ notNull: true;
3406
+ hasDefault: false;
3407
+ isPrimaryKey: false;
3408
+ isAutoincrement: false;
3409
+ hasRuntimeDefault: false;
3410
+ enumValues: undefined;
3411
+ baseColumn: never;
3412
+ identity: undefined;
3413
+ generated: undefined;
3414
+ }, {}, {}>;
3415
+ amountCaptured: import("drizzle-orm/pg-core").PgColumn<{
3416
+ name: "amount_captured";
3417
+ tableName: "orders";
3418
+ dataType: "number";
3419
+ columnType: "PgInteger";
3420
+ data: number;
3421
+ driverParam: string | number;
3422
+ notNull: false;
3423
+ hasDefault: false;
3424
+ isPrimaryKey: false;
3425
+ isAutoincrement: false;
3426
+ hasRuntimeDefault: false;
3427
+ enumValues: undefined;
3428
+ baseColumn: never;
3429
+ identity: undefined;
3430
+ generated: undefined;
3431
+ }, {}, {}>;
3432
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
3433
+ name: "payment_intent_id";
3434
+ tableName: "orders";
3435
+ dataType: "string";
3436
+ columnType: "PgText";
3437
+ data: string;
3438
+ driverParam: string;
3439
+ notNull: false;
3440
+ hasDefault: false;
3441
+ isPrimaryKey: false;
3442
+ isAutoincrement: false;
3443
+ hasRuntimeDefault: false;
3444
+ enumValues: [string, ...string[]];
3445
+ baseColumn: never;
3446
+ identity: undefined;
3447
+ generated: undefined;
3448
+ }, {}, {}>;
3449
+ paymentMethodId: import("drizzle-orm/pg-core").PgColumn<{
3450
+ name: "payment_method_id";
3451
+ tableName: "orders";
3452
+ dataType: "string";
3453
+ columnType: "PgText";
3454
+ data: string;
3455
+ driverParam: string;
3456
+ notNull: false;
3457
+ hasDefault: false;
3458
+ isPrimaryKey: false;
3459
+ isAutoincrement: false;
3460
+ hasRuntimeDefault: false;
3461
+ enumValues: [string, ...string[]];
3462
+ baseColumn: never;
3463
+ identity: undefined;
3464
+ generated: undefined;
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
+ }, {}, {}>;
3483
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
3484
+ name: "metadata";
3485
+ tableName: "orders";
3486
+ dataType: "json";
3487
+ columnType: "PgJsonb";
3488
+ data: Record<string, unknown>;
3489
+ driverParam: unknown;
3490
+ notNull: false;
3491
+ hasDefault: true;
3492
+ isPrimaryKey: false;
3493
+ isAutoincrement: false;
3494
+ hasRuntimeDefault: false;
3495
+ enumValues: undefined;
3496
+ baseColumn: never;
3497
+ identity: undefined;
3498
+ generated: undefined;
3499
+ }, {}, {
3500
+ $type: Record<string, unknown>;
3501
+ }>;
3502
+ placedAt: import("drizzle-orm/pg-core").PgColumn<{
3503
+ name: "placed_at";
3504
+ tableName: "orders";
3505
+ dataType: "date";
3506
+ columnType: "PgTimestamp";
3507
+ data: Date;
3508
+ driverParam: string;
3509
+ notNull: true;
3510
+ hasDefault: true;
3511
+ isPrimaryKey: false;
3512
+ isAutoincrement: false;
3513
+ hasRuntimeDefault: false;
3514
+ enumValues: undefined;
3515
+ baseColumn: never;
3516
+ identity: undefined;
3517
+ generated: undefined;
3518
+ }, {}, {}>;
3519
+ fulfilledAt: import("drizzle-orm/pg-core").PgColumn<{
3520
+ name: "fulfilled_at";
3521
+ tableName: "orders";
3522
+ dataType: "date";
3523
+ columnType: "PgTimestamp";
3524
+ data: Date;
3525
+ driverParam: string;
3526
+ notNull: false;
3527
+ hasDefault: false;
3528
+ isPrimaryKey: false;
3529
+ isAutoincrement: false;
3530
+ hasRuntimeDefault: false;
3531
+ enumValues: undefined;
3532
+ baseColumn: never;
3533
+ identity: undefined;
3534
+ generated: undefined;
3535
+ }, {}, {}>;
3536
+ cancelledAt: import("drizzle-orm/pg-core").PgColumn<{
3537
+ name: "cancelled_at";
3538
+ tableName: "orders";
3539
+ dataType: "date";
3540
+ columnType: "PgTimestamp";
3541
+ data: Date;
3542
+ driverParam: string;
3543
+ notNull: false;
3544
+ hasDefault: false;
3545
+ isPrimaryKey: false;
3546
+ isAutoincrement: false;
3547
+ hasRuntimeDefault: false;
3548
+ enumValues: undefined;
3549
+ baseColumn: never;
3550
+ identity: undefined;
3551
+ generated: undefined;
3552
+ }, {}, {}>;
3553
+ }, {
3554
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3555
+ }, undefined>;
3556
+ }, z.core.$strip>;
3557
+ };
3558
+ };
3559
+ description: string;
3560
+ };
3561
+ };
3562
+ } & {
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";
2012
6472
  };
2013
6473
  //# sourceMappingURL=orders.d.ts.map