@voyant-travel/commerce 0.1.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 (210) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +145 -0
  3. package/dist/accepted-quote-version-reservation-golden-flow.test.d.ts +2 -0
  4. package/dist/accepted-quote-version-reservation-golden-flow.test.d.ts.map +1 -0
  5. package/dist/accepted-quote-version-reservation-golden-flow.test.js +398 -0
  6. package/dist/index.d.ts +15 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +14 -0
  9. package/dist/interface.d.ts +18 -0
  10. package/dist/interface.d.ts.map +1 -0
  11. package/dist/interface.js +246 -0
  12. package/dist/interface.test.d.ts +2 -0
  13. package/dist/interface.test.d.ts.map +1 -0
  14. package/dist/interface.test.js +357 -0
  15. package/dist/markets/index.d.ts +11 -0
  16. package/dist/markets/index.d.ts.map +1 -0
  17. package/dist/markets/index.js +12 -0
  18. package/dist/markets/routes.d.ts +1182 -0
  19. package/dist/markets/routes.d.ts.map +1 -0
  20. package/dist/markets/routes.js +209 -0
  21. package/dist/markets/schema.d.ts +1527 -0
  22. package/dist/markets/schema.d.ts.map +1 -0
  23. package/dist/markets/schema.js +240 -0
  24. package/dist/markets/service-core.d.ts +253 -0
  25. package/dist/markets/service-core.d.ts.map +1 -0
  26. package/dist/markets/service-core.js +242 -0
  27. package/dist/markets/service-rules.d.ts +191 -0
  28. package/dist/markets/service-rules.d.ts.map +1 -0
  29. package/dist/markets/service-rules.js +155 -0
  30. package/dist/markets/service-shared.d.ts +36 -0
  31. package/dist/markets/service-shared.d.ts.map +1 -0
  32. package/dist/markets/service-shared.js +7 -0
  33. package/dist/markets/service.d.ts +43 -0
  34. package/dist/markets/service.d.ts.map +1 -0
  35. package/dist/markets/service.js +42 -0
  36. package/dist/markets/validation.d.ts +451 -0
  37. package/dist/markets/validation.d.ts.map +1 -0
  38. package/dist/markets/validation.js +160 -0
  39. package/dist/pricing/events.d.ts +53 -0
  40. package/dist/pricing/events.d.ts.map +1 -0
  41. package/dist/pricing/events.js +28 -0
  42. package/dist/pricing/index.d.ts +15 -0
  43. package/dist/pricing/index.d.ts.map +1 -0
  44. package/dist/pricing/index.js +18 -0
  45. package/dist/pricing/routes-core.d.ts +981 -0
  46. package/dist/pricing/routes-core.d.ts.map +1 -0
  47. package/dist/pricing/routes-core.js +102 -0
  48. package/dist/pricing/routes-public.d.ts +136 -0
  49. package/dist/pricing/routes-public.d.ts.map +1 -0
  50. package/dist/pricing/routes-public.js +14 -0
  51. package/dist/pricing/routes-rules.d.ts +1339 -0
  52. package/dist/pricing/routes-rules.d.ts.map +1 -0
  53. package/dist/pricing/routes-rules.js +138 -0
  54. package/dist/pricing/routes-shared.d.ts +14 -0
  55. package/dist/pricing/routes-shared.d.ts.map +1 -0
  56. package/dist/pricing/routes-shared.js +3 -0
  57. package/dist/pricing/routes.d.ts +7 -0
  58. package/dist/pricing/routes.d.ts.map +1 -0
  59. package/dist/pricing/routes.js +6 -0
  60. package/dist/pricing/schema-catalogs.d.ts +467 -0
  61. package/dist/pricing/schema-catalogs.d.ts.map +1 -0
  62. package/dist/pricing/schema-catalogs.js +47 -0
  63. package/dist/pricing/schema-categories.d.ts +497 -0
  64. package/dist/pricing/schema-categories.d.ts.map +1 -0
  65. package/dist/pricing/schema-categories.js +54 -0
  66. package/dist/pricing/schema-departure-overrides.d.ts +228 -0
  67. package/dist/pricing/schema-departure-overrides.d.ts.map +1 -0
  68. package/dist/pricing/schema-departure-overrides.js +36 -0
  69. package/dist/pricing/schema-option-rules.d.ts +1770 -0
  70. package/dist/pricing/schema-option-rules.d.ts.map +1 -0
  71. package/dist/pricing/schema-option-rules.js +181 -0
  72. package/dist/pricing/schema-policies.d.ts +395 -0
  73. package/dist/pricing/schema-policies.d.ts.map +1 -0
  74. package/dist/pricing/schema-policies.js +41 -0
  75. package/dist/pricing/schema-relations.d.ts +59 -0
  76. package/dist/pricing/schema-relations.d.ts.map +1 -0
  77. package/dist/pricing/schema-relations.js +111 -0
  78. package/dist/pricing/schema-shared.d.ts +11 -0
  79. package/dist/pricing/schema-shared.d.ts.map +1 -0
  80. package/dist/pricing/schema-shared.js +67 -0
  81. package/dist/pricing/schema.d.ts +8 -0
  82. package/dist/pricing/schema.d.ts.map +1 -0
  83. package/dist/pricing/schema.js +7 -0
  84. package/dist/pricing/service-catalog-plane-pricing.d.ts +95 -0
  85. package/dist/pricing/service-catalog-plane-pricing.d.ts.map +1 -0
  86. package/dist/pricing/service-catalog-plane-pricing.js +382 -0
  87. package/dist/pricing/service-catalogs.d.ts +139 -0
  88. package/dist/pricing/service-catalogs.d.ts.map +1 -0
  89. package/dist/pricing/service-catalogs.js +89 -0
  90. package/dist/pricing/service-categories.d.ts +147 -0
  91. package/dist/pricing/service-categories.d.ts.map +1 -0
  92. package/dist/pricing/service-categories.js +105 -0
  93. package/dist/pricing/service-departure-overrides.d.ts +67 -0
  94. package/dist/pricing/service-departure-overrides.d.ts.map +1 -0
  95. package/dist/pricing/service-departure-overrides.js +54 -0
  96. package/dist/pricing/service-option-rules.d.ts +321 -0
  97. package/dist/pricing/service-option-rules.d.ts.map +1 -0
  98. package/dist/pricing/service-option-rules.js +340 -0
  99. package/dist/pricing/service-policies.d.ts +123 -0
  100. package/dist/pricing/service-policies.d.ts.map +1 -0
  101. package/dist/pricing/service-policies.js +95 -0
  102. package/dist/pricing/service-public.d.ts +89 -0
  103. package/dist/pricing/service-public.d.ts.map +1 -0
  104. package/dist/pricing/service-public.js +473 -0
  105. package/dist/pricing/service-rule-resolver.d.ts +67 -0
  106. package/dist/pricing/service-rule-resolver.d.ts.map +1 -0
  107. package/dist/pricing/service-rule-resolver.js +204 -0
  108. package/dist/pricing/service-shared.d.ts +53 -0
  109. package/dist/pricing/service-shared.d.ts.map +1 -0
  110. package/dist/pricing/service-shared.js +4 -0
  111. package/dist/pricing/service-transfer-rules.d.ts +211 -0
  112. package/dist/pricing/service-transfer-rules.d.ts.map +1 -0
  113. package/dist/pricing/service-transfer-rules.js +139 -0
  114. package/dist/pricing/service.d.ts +79 -0
  115. package/dist/pricing/service.d.ts.map +1 -0
  116. package/dist/pricing/service.js +78 -0
  117. package/dist/pricing/validation-public.d.ts +412 -0
  118. package/dist/pricing/validation-public.d.ts.map +1 -0
  119. package/dist/pricing/validation-public.js +111 -0
  120. package/dist/pricing/validation-shared.d.ts +71 -0
  121. package/dist/pricing/validation-shared.d.ts.map +1 -0
  122. package/dist/pricing/validation-shared.js +63 -0
  123. package/dist/pricing/validation.d.ts +987 -0
  124. package/dist/pricing/validation.d.ts.map +1 -0
  125. package/dist/pricing/validation.js +307 -0
  126. package/dist/promotions/events.d.ts +38 -0
  127. package/dist/promotions/events.d.ts.map +1 -0
  128. package/dist/promotions/events.js +25 -0
  129. package/dist/promotions/index.d.ts +12 -0
  130. package/dist/promotions/index.d.ts.map +1 -0
  131. package/dist/promotions/index.js +17 -0
  132. package/dist/promotions/routes-shared.d.ts +14 -0
  133. package/dist/promotions/routes-shared.d.ts.map +1 -0
  134. package/dist/promotions/routes-shared.js +3 -0
  135. package/dist/promotions/routes.d.ts +395 -0
  136. package/dist/promotions/routes.d.ts.map +1 -0
  137. package/dist/promotions/routes.js +55 -0
  138. package/dist/promotions/schema.d.ts +675 -0
  139. package/dist/promotions/schema.d.ts.map +1 -0
  140. package/dist/promotions/schema.js +126 -0
  141. package/dist/promotions/service-booking-confirmed.d.ts +77 -0
  142. package/dist/promotions/service-booking-confirmed.d.ts.map +1 -0
  143. package/dist/promotions/service-booking-confirmed.js +134 -0
  144. package/dist/promotions/service-boundary-scheduler.d.ts +85 -0
  145. package/dist/promotions/service-boundary-scheduler.d.ts.map +1 -0
  146. package/dist/promotions/service-boundary-scheduler.js +141 -0
  147. package/dist/promotions/service-catalog-evaluator.d.ts +22 -0
  148. package/dist/promotions/service-catalog-evaluator.d.ts.map +1 -0
  149. package/dist/promotions/service-catalog-evaluator.js +33 -0
  150. package/dist/promotions/service-catalog-plane-promotions.d.ts +73 -0
  151. package/dist/promotions/service-catalog-plane-promotions.d.ts.map +1 -0
  152. package/dist/promotions/service-catalog-plane-promotions.js +118 -0
  153. package/dist/promotions/service-evaluator.d.ts +134 -0
  154. package/dist/promotions/service-evaluator.d.ts.map +1 -0
  155. package/dist/promotions/service-evaluator.js +302 -0
  156. package/dist/promotions/service-storefront.d.ts +147 -0
  157. package/dist/promotions/service-storefront.d.ts.map +1 -0
  158. package/dist/promotions/service-storefront.js +326 -0
  159. package/dist/promotions/service.d.ts +143 -0
  160. package/dist/promotions/service.d.ts.map +1 -0
  161. package/dist/promotions/service.js +359 -0
  162. package/dist/promotions/validation.d.ts +195 -0
  163. package/dist/promotions/validation.d.ts.map +1 -0
  164. package/dist/promotions/validation.js +167 -0
  165. package/dist/promotions/workflow-bulk-reindex.d.ts +36 -0
  166. package/dist/promotions/workflow-bulk-reindex.d.ts.map +1 -0
  167. package/dist/promotions/workflow-bulk-reindex.js +53 -0
  168. package/dist/promotions/workflow-runtime.d.ts +17 -0
  169. package/dist/promotions/workflow-runtime.d.ts.map +1 -0
  170. package/dist/promotions/workflow-runtime.js +9 -0
  171. package/dist/runtime.d.ts +18 -0
  172. package/dist/runtime.d.ts.map +1 -0
  173. package/dist/runtime.js +27 -0
  174. package/dist/runtime.test.d.ts +2 -0
  175. package/dist/runtime.test.d.ts.map +1 -0
  176. package/dist/runtime.test.js +25 -0
  177. package/dist/schema.d.ts +5 -0
  178. package/dist/schema.d.ts.map +1 -0
  179. package/dist/schema.js +4 -0
  180. package/dist/sellability/index.d.ts +13 -0
  181. package/dist/sellability/index.d.ts.map +1 -0
  182. package/dist/sellability/index.js +17 -0
  183. package/dist/sellability/routes.d.ts +2332 -0
  184. package/dist/sellability/routes.d.ts.map +1 -0
  185. package/dist/sellability/routes.js +166 -0
  186. package/dist/sellability/schema.d.ts +1716 -0
  187. package/dist/sellability/schema.d.ts.map +1 -0
  188. package/dist/sellability/schema.js +278 -0
  189. package/dist/sellability/service-records.d.ts +316 -0
  190. package/dist/sellability/service-records.d.ts.map +1 -0
  191. package/dist/sellability/service-records.js +253 -0
  192. package/dist/sellability/service-resolve.d.ts +72 -0
  193. package/dist/sellability/service-resolve.d.ts.map +1 -0
  194. package/dist/sellability/service-resolve.js +580 -0
  195. package/dist/sellability/service-shared.d.ts +124 -0
  196. package/dist/sellability/service-shared.d.ts.map +1 -0
  197. package/dist/sellability/service-shared.js +96 -0
  198. package/dist/sellability/service-snapshots.d.ts +191 -0
  199. package/dist/sellability/service-snapshots.d.ts.map +1 -0
  200. package/dist/sellability/service-snapshots.js +153 -0
  201. package/dist/sellability/service.d.ts +1038 -0
  202. package/dist/sellability/service.d.ts.map +1 -0
  203. package/dist/sellability/service.js +17 -0
  204. package/dist/sellability/validation.d.ts +477 -0
  205. package/dist/sellability/validation.d.ts.map +1 -0
  206. package/dist/sellability/validation.js +192 -0
  207. package/dist/types.d.ts +239 -0
  208. package/dist/types.d.ts.map +1 -0
  209. package/dist/types.js +1 -0
  210. package/package.json +62 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes-rules.d.ts","sourceRoot":"","sources":["../../src/pricing/routes-rules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,oBAAoB,CAAA;AA6BvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAgS1B,CAAA"}
@@ -0,0 +1,138 @@
1
+ import { parseJsonBody, parseQuery } from "@voyant-travel/hono";
2
+ import { Hono } from "hono";
3
+ import { notFound } from "./routes-shared.js";
4
+ import { pricingService } from "./service.js";
5
+ import { departurePriceOverrideListQuerySchema, dropoffPriceRuleListQuerySchema, extraPriceRuleListQuerySchema, insertDeparturePriceOverrideSchema, insertDropoffPriceRuleSchema, insertExtraPriceRuleSchema, insertOptionPriceRuleSchema, insertOptionStartTimeRuleSchema, insertOptionUnitPriceRuleSchema, insertOptionUnitTierSchema, insertPickupPriceRuleSchema, optionPriceRuleListQuerySchema, optionStartTimeRuleListQuerySchema, optionUnitPriceRuleListQuerySchema, optionUnitTierListQuerySchema, pickupPriceRuleListQuerySchema, updateDeparturePriceOverrideSchema, updateDropoffPriceRuleSchema, updateExtraPriceRuleSchema, updateOptionPriceRuleSchema, updateOptionStartTimeRuleSchema, updateOptionUnitPriceRuleSchema, updateOptionUnitTierSchema, updatePickupPriceRuleSchema, } from "./validation.js";
6
+ export const pricingRuleRoutes = new Hono()
7
+ .get("/option-price-rules", async (c) => c.json(await pricingService.listOptionPriceRules(c.get("db"), await parseQuery(c, optionPriceRuleListQuerySchema))))
8
+ .post("/option-price-rules", async (c) => c.json({
9
+ data: await pricingService.createOptionPriceRule(c.get("db"), await parseJsonBody(c, insertOptionPriceRuleSchema), { eventBus: c.get("eventBus") }),
10
+ }, 201))
11
+ .get("/option-price-rules/:id", async (c) => {
12
+ const row = await pricingService.getOptionPriceRuleById(c.get("db"), c.req.param("id"));
13
+ return row ? c.json({ data: row }) : notFound(c, "Option price rule not found");
14
+ })
15
+ .patch("/option-price-rules/:id", async (c) => {
16
+ const row = await pricingService.updateOptionPriceRule(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateOptionPriceRuleSchema), { eventBus: c.get("eventBus") });
17
+ return row ? c.json({ data: row }) : notFound(c, "Option price rule not found");
18
+ })
19
+ .delete("/option-price-rules/:id", async (c) => {
20
+ const row = await pricingService.deleteOptionPriceRule(c.get("db"), c.req.param("id"), {
21
+ eventBus: c.get("eventBus"),
22
+ });
23
+ return row ? c.json({ success: true }) : notFound(c, "Option price rule not found");
24
+ })
25
+ .get("/option-unit-price-rules", async (c) => c.json(await pricingService.listOptionUnitPriceRules(c.get("db"), await parseQuery(c, optionUnitPriceRuleListQuerySchema))))
26
+ .post("/option-unit-price-rules", async (c) => c.json({
27
+ data: await pricingService.createOptionUnitPriceRule(c.get("db"), await parseJsonBody(c, insertOptionUnitPriceRuleSchema), { eventBus: c.get("eventBus") }),
28
+ }, 201))
29
+ .get("/option-unit-price-rules/:id", async (c) => {
30
+ const row = await pricingService.getOptionUnitPriceRuleById(c.get("db"), c.req.param("id"));
31
+ return row ? c.json({ data: row }) : notFound(c, "Option unit price rule not found");
32
+ })
33
+ .patch("/option-unit-price-rules/:id", async (c) => {
34
+ const row = await pricingService.updateOptionUnitPriceRule(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateOptionUnitPriceRuleSchema), { eventBus: c.get("eventBus") });
35
+ return row ? c.json({ data: row }) : notFound(c, "Option unit price rule not found");
36
+ })
37
+ .delete("/option-unit-price-rules/:id", async (c) => {
38
+ const row = await pricingService.deleteOptionUnitPriceRule(c.get("db"), c.req.param("id"), {
39
+ eventBus: c.get("eventBus"),
40
+ });
41
+ return row ? c.json({ success: true }) : notFound(c, "Option unit price rule not found");
42
+ })
43
+ .get("/option-start-time-rules", async (c) => c.json(await pricingService.listOptionStartTimeRules(c.get("db"), await parseQuery(c, optionStartTimeRuleListQuerySchema))))
44
+ .post("/option-start-time-rules", async (c) => c.json({
45
+ data: await pricingService.createOptionStartTimeRule(c.get("db"), await parseJsonBody(c, insertOptionStartTimeRuleSchema)),
46
+ }, 201))
47
+ .get("/option-start-time-rules/:id", async (c) => {
48
+ const row = await pricingService.getOptionStartTimeRuleById(c.get("db"), c.req.param("id"));
49
+ return row ? c.json({ data: row }) : notFound(c, "Option start time rule not found");
50
+ })
51
+ .patch("/option-start-time-rules/:id", async (c) => {
52
+ const row = await pricingService.updateOptionStartTimeRule(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateOptionStartTimeRuleSchema));
53
+ return row ? c.json({ data: row }) : notFound(c, "Option start time rule not found");
54
+ })
55
+ .delete("/option-start-time-rules/:id", async (c) => {
56
+ const row = await pricingService.deleteOptionStartTimeRule(c.get("db"), c.req.param("id"));
57
+ return row ? c.json({ success: true }) : notFound(c, "Option start time rule not found");
58
+ })
59
+ .get("/option-unit-tiers", async (c) => c.json(await pricingService.listOptionUnitTiers(c.get("db"), await parseQuery(c, optionUnitTierListQuerySchema))))
60
+ .post("/option-unit-tiers", async (c) => c.json({
61
+ data: await pricingService.createOptionUnitTier(c.get("db"), await parseJsonBody(c, insertOptionUnitTierSchema)),
62
+ }, 201))
63
+ .get("/option-unit-tiers/:id", async (c) => {
64
+ const row = await pricingService.getOptionUnitTierById(c.get("db"), c.req.param("id"));
65
+ return row ? c.json({ data: row }) : notFound(c, "Option unit tier not found");
66
+ })
67
+ .patch("/option-unit-tiers/:id", async (c) => {
68
+ const row = await pricingService.updateOptionUnitTier(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateOptionUnitTierSchema));
69
+ return row ? c.json({ data: row }) : notFound(c, "Option unit tier not found");
70
+ })
71
+ .delete("/option-unit-tiers/:id", async (c) => {
72
+ const row = await pricingService.deleteOptionUnitTier(c.get("db"), c.req.param("id"));
73
+ return row ? c.json({ success: true }) : notFound(c, "Option unit tier not found");
74
+ })
75
+ .get("/pickup-price-rules", async (c) => c.json(await pricingService.listPickupPriceRules(c.get("db"), await parseQuery(c, pickupPriceRuleListQuerySchema))))
76
+ .post("/pickup-price-rules", async (c) => c.json({
77
+ data: await pricingService.createPickupPriceRule(c.get("db"), await parseJsonBody(c, insertPickupPriceRuleSchema)),
78
+ }, 201))
79
+ .get("/pickup-price-rules/:id", async (c) => {
80
+ const row = await pricingService.getPickupPriceRuleById(c.get("db"), c.req.param("id"));
81
+ return row ? c.json({ data: row }) : notFound(c, "Pickup price rule not found");
82
+ })
83
+ .patch("/pickup-price-rules/:id", async (c) => {
84
+ const row = await pricingService.updatePickupPriceRule(c.get("db"), c.req.param("id"), await parseJsonBody(c, updatePickupPriceRuleSchema));
85
+ return row ? c.json({ data: row }) : notFound(c, "Pickup price rule not found");
86
+ })
87
+ .delete("/pickup-price-rules/:id", async (c) => {
88
+ const row = await pricingService.deletePickupPriceRule(c.get("db"), c.req.param("id"));
89
+ return row ? c.json({ success: true }) : notFound(c, "Pickup price rule not found");
90
+ })
91
+ .get("/dropoff-price-rules", async (c) => c.json(await pricingService.listDropoffPriceRules(c.get("db"), await parseQuery(c, dropoffPriceRuleListQuerySchema))))
92
+ .post("/dropoff-price-rules", async (c) => c.json({
93
+ data: await pricingService.createDropoffPriceRule(c.get("db"), await parseJsonBody(c, insertDropoffPriceRuleSchema)),
94
+ }, 201))
95
+ .get("/dropoff-price-rules/:id", async (c) => {
96
+ const row = await pricingService.getDropoffPriceRuleById(c.get("db"), c.req.param("id"));
97
+ return row ? c.json({ data: row }) : notFound(c, "Dropoff price rule not found");
98
+ })
99
+ .patch("/dropoff-price-rules/:id", async (c) => {
100
+ const row = await pricingService.updateDropoffPriceRule(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateDropoffPriceRuleSchema));
101
+ return row ? c.json({ data: row }) : notFound(c, "Dropoff price rule not found");
102
+ })
103
+ .delete("/dropoff-price-rules/:id", async (c) => {
104
+ const row = await pricingService.deleteDropoffPriceRule(c.get("db"), c.req.param("id"));
105
+ return row ? c.json({ success: true }) : notFound(c, "Dropoff price rule not found");
106
+ })
107
+ .get("/extra-price-rules", async (c) => c.json(await pricingService.listExtraPriceRules(c.get("db"), await parseQuery(c, extraPriceRuleListQuerySchema))))
108
+ .post("/extra-price-rules", async (c) => c.json({
109
+ data: await pricingService.createExtraPriceRule(c.get("db"), await parseJsonBody(c, insertExtraPriceRuleSchema)),
110
+ }, 201))
111
+ .get("/extra-price-rules/:id", async (c) => {
112
+ const row = await pricingService.getExtraPriceRuleById(c.get("db"), c.req.param("id"));
113
+ return row ? c.json({ data: row }) : notFound(c, "Extra price rule not found");
114
+ })
115
+ .patch("/extra-price-rules/:id", async (c) => {
116
+ const row = await pricingService.updateExtraPriceRule(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateExtraPriceRuleSchema));
117
+ return row ? c.json({ data: row }) : notFound(c, "Extra price rule not found");
118
+ })
119
+ .delete("/extra-price-rules/:id", async (c) => {
120
+ const row = await pricingService.deleteExtraPriceRule(c.get("db"), c.req.param("id"));
121
+ return row ? c.json({ success: true }) : notFound(c, "Extra price rule not found");
122
+ })
123
+ .get("/departure-price-overrides", async (c) => c.json(await pricingService.listDeparturePriceOverrides(c.get("db"), await parseQuery(c, departurePriceOverrideListQuerySchema))))
124
+ .post("/departure-price-overrides", async (c) => c.json({
125
+ data: await pricingService.createDeparturePriceOverride(c.get("db"), await parseJsonBody(c, insertDeparturePriceOverrideSchema)),
126
+ }, 201))
127
+ .get("/departure-price-overrides/:id", async (c) => {
128
+ const row = await pricingService.getDeparturePriceOverrideById(c.get("db"), c.req.param("id"));
129
+ return row ? c.json({ data: row }) : notFound(c, "Departure price override not found");
130
+ })
131
+ .patch("/departure-price-overrides/:id", async (c) => {
132
+ const row = await pricingService.updateDeparturePriceOverride(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateDeparturePriceOverrideSchema));
133
+ return row ? c.json({ data: row }) : notFound(c, "Departure price override not found");
134
+ })
135
+ .delete("/departure-price-overrides/:id", async (c) => {
136
+ const row = await pricingService.deleteDeparturePriceOverride(c.get("db"), c.req.param("id"));
137
+ return row ? c.json({ success: true }) : notFound(c, "Departure price override not found");
138
+ });
@@ -0,0 +1,14 @@
1
+ import type { EventBus } from "@voyant-travel/core";
2
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
3
+ import type { Context } from "hono";
4
+ export type Env = {
5
+ Variables: {
6
+ db: PostgresJsDatabase;
7
+ userId?: string;
8
+ eventBus?: EventBus;
9
+ };
10
+ };
11
+ export declare function notFound(c: Context<Env>, message: string): Response & import("hono").TypedResponse<{
12
+ error: string;
13
+ }, 404, "json">;
14
+ //# sourceMappingURL=routes-shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes-shared.d.ts","sourceRoot":"","sources":["../../src/pricing/routes-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,MAAM,MAAM,GAAG,GAAG;IAChB,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,QAAQ,CAAC,EAAE,QAAQ,CAAA;KACpB,CAAA;CACF,CAAA;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM;;gBAExD"}
@@ -0,0 +1,3 @@
1
+ export function notFound(c, message) {
2
+ return c.json({ error: message }, 404);
3
+ }
@@ -0,0 +1,7 @@
1
+ import { Hono } from "hono";
2
+ import type { publicPricingRoutes } from "./routes-public.js";
3
+ import type { Env } from "./routes-shared.js";
4
+ export declare const pricingRoutes: Hono<Env, import("hono/types").BlankSchema, "/">;
5
+ export type PricingRoutes = typeof pricingRoutes;
6
+ export type PublicPricingRoutes = typeof publicPricingRoutes;
7
+ //# sourceMappingURL=routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/pricing/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAE7C,eAAO,MAAM,aAAa,kDAAkB,CAAA;AAI5C,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA;AAChD,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Hono } from "hono";
2
+ import { pricingCoreRoutes } from "./routes-core.js";
3
+ import { pricingRuleRoutes } from "./routes-rules.js";
4
+ export const pricingRoutes = new Hono();
5
+ pricingRoutes.route("/", pricingCoreRoutes);
6
+ pricingRoutes.route("/", pricingRuleRoutes);
@@ -0,0 +1,467 @@
1
+ export declare const priceCatalogs: import("drizzle-orm/pg-core").PgTableWithColumns<{
2
+ name: "price_catalogs";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/pg-core").PgColumn<{
6
+ name: string;
7
+ tableName: "price_catalogs";
8
+ dataType: "string";
9
+ columnType: "PgText";
10
+ data: string;
11
+ driverParam: string;
12
+ notNull: true;
13
+ hasDefault: true;
14
+ isPrimaryKey: true;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: true;
17
+ enumValues: [string, ...string[]];
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {}>;
22
+ code: import("drizzle-orm/pg-core").PgColumn<{
23
+ name: "code";
24
+ tableName: "price_catalogs";
25
+ dataType: "string";
26
+ columnType: "PgText";
27
+ data: string;
28
+ driverParam: string;
29
+ notNull: true;
30
+ hasDefault: false;
31
+ isPrimaryKey: false;
32
+ isAutoincrement: false;
33
+ hasRuntimeDefault: false;
34
+ enumValues: [string, ...string[]];
35
+ baseColumn: never;
36
+ identity: undefined;
37
+ generated: undefined;
38
+ }, {}, {}>;
39
+ name: import("drizzle-orm/pg-core").PgColumn<{
40
+ name: "name";
41
+ tableName: "price_catalogs";
42
+ dataType: "string";
43
+ columnType: "PgText";
44
+ data: string;
45
+ driverParam: string;
46
+ notNull: true;
47
+ hasDefault: false;
48
+ isPrimaryKey: false;
49
+ isAutoincrement: false;
50
+ hasRuntimeDefault: false;
51
+ enumValues: [string, ...string[]];
52
+ baseColumn: never;
53
+ identity: undefined;
54
+ generated: undefined;
55
+ }, {}, {}>;
56
+ currencyCode: import("drizzle-orm/pg-core").PgColumn<{
57
+ name: "currency_code";
58
+ tableName: "price_catalogs";
59
+ dataType: "string";
60
+ columnType: "PgText";
61
+ data: string;
62
+ driverParam: string;
63
+ notNull: false;
64
+ hasDefault: false;
65
+ isPrimaryKey: false;
66
+ isAutoincrement: false;
67
+ hasRuntimeDefault: false;
68
+ enumValues: [string, ...string[]];
69
+ baseColumn: never;
70
+ identity: undefined;
71
+ generated: undefined;
72
+ }, {}, {}>;
73
+ catalogType: import("drizzle-orm/pg-core").PgColumn<{
74
+ name: "catalog_type";
75
+ tableName: "price_catalogs";
76
+ dataType: "string";
77
+ columnType: "PgEnumColumn";
78
+ data: "internal" | "other" | "public" | "contract" | "net" | "gross" | "promo";
79
+ driverParam: string;
80
+ notNull: true;
81
+ hasDefault: true;
82
+ isPrimaryKey: false;
83
+ isAutoincrement: false;
84
+ hasRuntimeDefault: false;
85
+ enumValues: ["public", "contract", "net", "gross", "promo", "internal", "other"];
86
+ baseColumn: never;
87
+ identity: undefined;
88
+ generated: undefined;
89
+ }, {}, {}>;
90
+ isDefault: import("drizzle-orm/pg-core").PgColumn<{
91
+ name: "is_default";
92
+ tableName: "price_catalogs";
93
+ dataType: "boolean";
94
+ columnType: "PgBoolean";
95
+ data: boolean;
96
+ driverParam: boolean;
97
+ notNull: true;
98
+ hasDefault: true;
99
+ isPrimaryKey: false;
100
+ isAutoincrement: false;
101
+ hasRuntimeDefault: false;
102
+ enumValues: undefined;
103
+ baseColumn: never;
104
+ identity: undefined;
105
+ generated: undefined;
106
+ }, {}, {}>;
107
+ active: import("drizzle-orm/pg-core").PgColumn<{
108
+ name: "active";
109
+ tableName: "price_catalogs";
110
+ dataType: "boolean";
111
+ columnType: "PgBoolean";
112
+ data: boolean;
113
+ driverParam: boolean;
114
+ notNull: true;
115
+ hasDefault: true;
116
+ isPrimaryKey: false;
117
+ isAutoincrement: false;
118
+ hasRuntimeDefault: false;
119
+ enumValues: undefined;
120
+ baseColumn: never;
121
+ identity: undefined;
122
+ generated: undefined;
123
+ }, {}, {}>;
124
+ notes: import("drizzle-orm/pg-core").PgColumn<{
125
+ name: "notes";
126
+ tableName: "price_catalogs";
127
+ dataType: "string";
128
+ columnType: "PgText";
129
+ data: string;
130
+ driverParam: string;
131
+ notNull: false;
132
+ hasDefault: false;
133
+ isPrimaryKey: false;
134
+ isAutoincrement: false;
135
+ hasRuntimeDefault: false;
136
+ enumValues: [string, ...string[]];
137
+ baseColumn: never;
138
+ identity: undefined;
139
+ generated: undefined;
140
+ }, {}, {}>;
141
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
142
+ name: "metadata";
143
+ tableName: "price_catalogs";
144
+ dataType: "json";
145
+ columnType: "PgJsonb";
146
+ data: Record<string, unknown>;
147
+ driverParam: unknown;
148
+ notNull: false;
149
+ hasDefault: false;
150
+ isPrimaryKey: false;
151
+ isAutoincrement: false;
152
+ hasRuntimeDefault: false;
153
+ enumValues: undefined;
154
+ baseColumn: never;
155
+ identity: undefined;
156
+ generated: undefined;
157
+ }, {}, {
158
+ $type: Record<string, unknown>;
159
+ }>;
160
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
161
+ name: "created_at";
162
+ tableName: "price_catalogs";
163
+ dataType: "date";
164
+ columnType: "PgTimestamp";
165
+ data: Date;
166
+ driverParam: string;
167
+ notNull: true;
168
+ hasDefault: true;
169
+ isPrimaryKey: false;
170
+ isAutoincrement: false;
171
+ hasRuntimeDefault: false;
172
+ enumValues: undefined;
173
+ baseColumn: never;
174
+ identity: undefined;
175
+ generated: undefined;
176
+ }, {}, {}>;
177
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
178
+ name: "updated_at";
179
+ tableName: "price_catalogs";
180
+ dataType: "date";
181
+ columnType: "PgTimestamp";
182
+ data: Date;
183
+ driverParam: string;
184
+ notNull: true;
185
+ hasDefault: true;
186
+ isPrimaryKey: false;
187
+ isAutoincrement: false;
188
+ hasRuntimeDefault: false;
189
+ enumValues: undefined;
190
+ baseColumn: never;
191
+ identity: undefined;
192
+ generated: undefined;
193
+ }, {}, {}>;
194
+ };
195
+ dialect: "pg";
196
+ }>;
197
+ export declare const priceSchedules: import("drizzle-orm/pg-core").PgTableWithColumns<{
198
+ name: "price_schedules";
199
+ schema: undefined;
200
+ columns: {
201
+ id: import("drizzle-orm/pg-core").PgColumn<{
202
+ name: string;
203
+ tableName: "price_schedules";
204
+ dataType: "string";
205
+ columnType: "PgText";
206
+ data: string;
207
+ driverParam: string;
208
+ notNull: true;
209
+ hasDefault: true;
210
+ isPrimaryKey: true;
211
+ isAutoincrement: false;
212
+ hasRuntimeDefault: true;
213
+ enumValues: [string, ...string[]];
214
+ baseColumn: never;
215
+ identity: undefined;
216
+ generated: undefined;
217
+ }, {}, {}>;
218
+ priceCatalogId: import("drizzle-orm/pg-core").PgColumn<{
219
+ name: string;
220
+ tableName: "price_schedules";
221
+ dataType: "string";
222
+ columnType: "PgText";
223
+ data: string;
224
+ driverParam: string;
225
+ notNull: true;
226
+ hasDefault: false;
227
+ isPrimaryKey: false;
228
+ isAutoincrement: false;
229
+ hasRuntimeDefault: false;
230
+ enumValues: [string, ...string[]];
231
+ baseColumn: never;
232
+ identity: undefined;
233
+ generated: undefined;
234
+ }, {}, {}>;
235
+ code: import("drizzle-orm/pg-core").PgColumn<{
236
+ name: "code";
237
+ tableName: "price_schedules";
238
+ dataType: "string";
239
+ columnType: "PgText";
240
+ data: string;
241
+ driverParam: string;
242
+ notNull: false;
243
+ hasDefault: false;
244
+ isPrimaryKey: false;
245
+ isAutoincrement: false;
246
+ hasRuntimeDefault: false;
247
+ enumValues: [string, ...string[]];
248
+ baseColumn: never;
249
+ identity: undefined;
250
+ generated: undefined;
251
+ }, {}, {}>;
252
+ name: import("drizzle-orm/pg-core").PgColumn<{
253
+ name: "name";
254
+ tableName: "price_schedules";
255
+ dataType: "string";
256
+ columnType: "PgText";
257
+ data: string;
258
+ driverParam: string;
259
+ notNull: true;
260
+ hasDefault: false;
261
+ isPrimaryKey: false;
262
+ isAutoincrement: false;
263
+ hasRuntimeDefault: false;
264
+ enumValues: [string, ...string[]];
265
+ baseColumn: never;
266
+ identity: undefined;
267
+ generated: undefined;
268
+ }, {}, {}>;
269
+ recurrenceRule: import("drizzle-orm/pg-core").PgColumn<{
270
+ name: "recurrence_rule";
271
+ tableName: "price_schedules";
272
+ dataType: "string";
273
+ columnType: "PgText";
274
+ data: string;
275
+ driverParam: string;
276
+ notNull: true;
277
+ hasDefault: false;
278
+ isPrimaryKey: false;
279
+ isAutoincrement: false;
280
+ hasRuntimeDefault: false;
281
+ enumValues: [string, ...string[]];
282
+ baseColumn: never;
283
+ identity: undefined;
284
+ generated: undefined;
285
+ }, {}, {}>;
286
+ timezone: import("drizzle-orm/pg-core").PgColumn<{
287
+ name: "timezone";
288
+ tableName: "price_schedules";
289
+ dataType: "string";
290
+ columnType: "PgText";
291
+ data: string;
292
+ driverParam: string;
293
+ notNull: false;
294
+ hasDefault: false;
295
+ isPrimaryKey: false;
296
+ isAutoincrement: false;
297
+ hasRuntimeDefault: false;
298
+ enumValues: [string, ...string[]];
299
+ baseColumn: never;
300
+ identity: undefined;
301
+ generated: undefined;
302
+ }, {}, {}>;
303
+ validFrom: import("drizzle-orm/pg-core").PgColumn<{
304
+ name: "valid_from";
305
+ tableName: "price_schedules";
306
+ dataType: "string";
307
+ columnType: "PgDateString";
308
+ data: string;
309
+ driverParam: string;
310
+ notNull: false;
311
+ hasDefault: false;
312
+ isPrimaryKey: false;
313
+ isAutoincrement: false;
314
+ hasRuntimeDefault: false;
315
+ enumValues: undefined;
316
+ baseColumn: never;
317
+ identity: undefined;
318
+ generated: undefined;
319
+ }, {}, {}>;
320
+ validTo: import("drizzle-orm/pg-core").PgColumn<{
321
+ name: "valid_to";
322
+ tableName: "price_schedules";
323
+ dataType: "string";
324
+ columnType: "PgDateString";
325
+ data: string;
326
+ driverParam: string;
327
+ notNull: false;
328
+ hasDefault: false;
329
+ isPrimaryKey: false;
330
+ isAutoincrement: false;
331
+ hasRuntimeDefault: false;
332
+ enumValues: undefined;
333
+ baseColumn: never;
334
+ identity: undefined;
335
+ generated: undefined;
336
+ }, {}, {}>;
337
+ weekdays: import("drizzle-orm/pg-core").PgColumn<{
338
+ name: "weekdays";
339
+ tableName: "price_schedules";
340
+ dataType: "json";
341
+ columnType: "PgJsonb";
342
+ data: string[];
343
+ driverParam: unknown;
344
+ notNull: false;
345
+ hasDefault: false;
346
+ isPrimaryKey: false;
347
+ isAutoincrement: false;
348
+ hasRuntimeDefault: false;
349
+ enumValues: undefined;
350
+ baseColumn: never;
351
+ identity: undefined;
352
+ generated: undefined;
353
+ }, {}, {
354
+ $type: string[];
355
+ }>;
356
+ priority: import("drizzle-orm/pg-core").PgColumn<{
357
+ name: "priority";
358
+ tableName: "price_schedules";
359
+ dataType: "number";
360
+ columnType: "PgInteger";
361
+ data: number;
362
+ driverParam: string | number;
363
+ notNull: true;
364
+ hasDefault: true;
365
+ isPrimaryKey: false;
366
+ isAutoincrement: false;
367
+ hasRuntimeDefault: false;
368
+ enumValues: undefined;
369
+ baseColumn: never;
370
+ identity: undefined;
371
+ generated: undefined;
372
+ }, {}, {}>;
373
+ active: import("drizzle-orm/pg-core").PgColumn<{
374
+ name: "active";
375
+ tableName: "price_schedules";
376
+ dataType: "boolean";
377
+ columnType: "PgBoolean";
378
+ data: boolean;
379
+ driverParam: boolean;
380
+ notNull: true;
381
+ hasDefault: true;
382
+ isPrimaryKey: false;
383
+ isAutoincrement: false;
384
+ hasRuntimeDefault: false;
385
+ enumValues: undefined;
386
+ baseColumn: never;
387
+ identity: undefined;
388
+ generated: undefined;
389
+ }, {}, {}>;
390
+ notes: import("drizzle-orm/pg-core").PgColumn<{
391
+ name: "notes";
392
+ tableName: "price_schedules";
393
+ dataType: "string";
394
+ columnType: "PgText";
395
+ data: string;
396
+ driverParam: string;
397
+ notNull: false;
398
+ hasDefault: false;
399
+ isPrimaryKey: false;
400
+ isAutoincrement: false;
401
+ hasRuntimeDefault: false;
402
+ enumValues: [string, ...string[]];
403
+ baseColumn: never;
404
+ identity: undefined;
405
+ generated: undefined;
406
+ }, {}, {}>;
407
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
408
+ name: "metadata";
409
+ tableName: "price_schedules";
410
+ dataType: "json";
411
+ columnType: "PgJsonb";
412
+ data: Record<string, unknown>;
413
+ driverParam: unknown;
414
+ notNull: false;
415
+ hasDefault: false;
416
+ isPrimaryKey: false;
417
+ isAutoincrement: false;
418
+ hasRuntimeDefault: false;
419
+ enumValues: undefined;
420
+ baseColumn: never;
421
+ identity: undefined;
422
+ generated: undefined;
423
+ }, {}, {
424
+ $type: Record<string, unknown>;
425
+ }>;
426
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
427
+ name: "created_at";
428
+ tableName: "price_schedules";
429
+ dataType: "date";
430
+ columnType: "PgTimestamp";
431
+ data: Date;
432
+ driverParam: string;
433
+ notNull: true;
434
+ hasDefault: true;
435
+ isPrimaryKey: false;
436
+ isAutoincrement: false;
437
+ hasRuntimeDefault: false;
438
+ enumValues: undefined;
439
+ baseColumn: never;
440
+ identity: undefined;
441
+ generated: undefined;
442
+ }, {}, {}>;
443
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
444
+ name: "updated_at";
445
+ tableName: "price_schedules";
446
+ dataType: "date";
447
+ columnType: "PgTimestamp";
448
+ data: Date;
449
+ driverParam: string;
450
+ notNull: true;
451
+ hasDefault: true;
452
+ isPrimaryKey: false;
453
+ isAutoincrement: false;
454
+ hasRuntimeDefault: false;
455
+ enumValues: undefined;
456
+ baseColumn: never;
457
+ identity: undefined;
458
+ generated: undefined;
459
+ }, {}, {}>;
460
+ };
461
+ dialect: "pg";
462
+ }>;
463
+ export type PriceCatalog = typeof priceCatalogs.$inferSelect;
464
+ export type NewPriceCatalog = typeof priceCatalogs.$inferInsert;
465
+ export type PriceSchedule = typeof priceSchedules.$inferSelect;
466
+ export type NewPriceSchedule = typeof priceSchedules.$inferInsert;
467
+ //# sourceMappingURL=schema-catalogs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-catalogs.d.ts","sourceRoot":"","sources":["../../src/pricing/schema-catalogs.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBzB,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B1B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAC5D,MAAM,MAAM,eAAe,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAC/D,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA"}