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