@voyant-travel/inventory 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 (311) hide show
  1. package/LICENSE +201 -0
  2. package/dist/action-ledger-drift.d.ts +29 -0
  3. package/dist/action-ledger-drift.d.ts.map +1 -0
  4. package/dist/action-ledger-drift.js +338 -0
  5. package/dist/action-ledger.d.ts +104 -0
  6. package/dist/action-ledger.d.ts.map +1 -0
  7. package/dist/action-ledger.js +100 -0
  8. package/dist/authoring/builder.d.ts +37 -0
  9. package/dist/authoring/builder.d.ts.map +1 -0
  10. package/dist/authoring/builder.js +248 -0
  11. package/dist/authoring/clone-content.d.ts +38 -0
  12. package/dist/authoring/clone-content.d.ts.map +1 -0
  13. package/dist/authoring/clone-content.js +367 -0
  14. package/dist/authoring/clone-pricing.d.ts +9 -0
  15. package/dist/authoring/clone-pricing.d.ts.map +1 -0
  16. package/dist/authoring/clone-pricing.js +242 -0
  17. package/dist/authoring/clone.d.ts +45 -0
  18. package/dist/authoring/clone.d.ts.map +1 -0
  19. package/dist/authoring/clone.js +142 -0
  20. package/dist/authoring/errors.d.ts +21 -0
  21. package/dist/authoring/errors.d.ts.map +1 -0
  22. package/dist/authoring/errors.js +13 -0
  23. package/dist/authoring/extension.d.ts +248 -0
  24. package/dist/authoring/extension.d.ts.map +1 -0
  25. package/dist/authoring/extension.js +116 -0
  26. package/dist/authoring/index.d.ts +12 -0
  27. package/dist/authoring/index.d.ts.map +1 -0
  28. package/dist/authoring/index.js +11 -0
  29. package/dist/authoring/schema.d.ts +85 -0
  30. package/dist/authoring/schema.d.ts.map +1 -0
  31. package/dist/authoring/schema.js +16 -0
  32. package/dist/authoring/service.d.ts +28 -0
  33. package/dist/authoring/service.d.ts.map +1 -0
  34. package/dist/authoring/service.js +66 -0
  35. package/dist/authoring/spec.d.ts +524 -0
  36. package/dist/authoring/spec.d.ts.map +1 -0
  37. package/dist/authoring/spec.js +167 -0
  38. package/dist/authoring/validate.d.ts +17 -0
  39. package/dist/authoring/validate.d.ts.map +1 -0
  40. package/dist/authoring/validate.js +83 -0
  41. package/dist/authoring.d.ts +2 -0
  42. package/dist/authoring.d.ts.map +1 -0
  43. package/dist/authoring.js +1 -0
  44. package/dist/booking-engine/handler-support.d.ts +91 -0
  45. package/dist/booking-engine/handler-support.d.ts.map +1 -0
  46. package/dist/booking-engine/handler-support.js +355 -0
  47. package/dist/booking-engine/handler.d.ts +404 -0
  48. package/dist/booking-engine/handler.d.ts.map +1 -0
  49. package/dist/booking-engine/handler.js +398 -0
  50. package/dist/booking-engine/index.d.ts +8 -0
  51. package/dist/booking-engine/index.d.ts.map +1 -0
  52. package/dist/booking-engine/index.js +7 -0
  53. package/dist/booking-engine.d.ts +2 -0
  54. package/dist/booking-engine.d.ts.map +1 -0
  55. package/dist/booking-engine.js +1 -0
  56. package/dist/booking-extension.d.ts +278 -0
  57. package/dist/booking-extension.d.ts.map +1 -0
  58. package/dist/booking-extension.js +161 -0
  59. package/dist/catalog-policy-departures.d.ts +52 -0
  60. package/dist/catalog-policy-departures.d.ts.map +1 -0
  61. package/dist/catalog-policy-departures.js +169 -0
  62. package/dist/catalog-policy-destinations.d.ts +43 -0
  63. package/dist/catalog-policy-destinations.d.ts.map +1 -0
  64. package/dist/catalog-policy-destinations.js +165 -0
  65. package/dist/catalog-policy-pricing.d.ts +55 -0
  66. package/dist/catalog-policy-pricing.d.ts.map +1 -0
  67. package/dist/catalog-policy-pricing.js +109 -0
  68. package/dist/catalog-policy-promotions.d.ts +52 -0
  69. package/dist/catalog-policy-promotions.d.ts.map +1 -0
  70. package/dist/catalog-policy-promotions.js +270 -0
  71. package/dist/catalog-policy-taxonomy.d.ts +51 -0
  72. package/dist/catalog-policy-taxonomy.d.ts.map +1 -0
  73. package/dist/catalog-policy-taxonomy.js +191 -0
  74. package/dist/catalog-policy.d.ts +33 -0
  75. package/dist/catalog-policy.d.ts.map +1 -0
  76. package/dist/catalog-policy.js +733 -0
  77. package/dist/content-shape.d.ts +15 -0
  78. package/dist/content-shape.d.ts.map +1 -0
  79. package/dist/content-shape.js +28 -0
  80. package/dist/draft-shape.d.ts +43 -0
  81. package/dist/draft-shape.d.ts.map +1 -0
  82. package/dist/draft-shape.js +48 -0
  83. package/dist/events.d.ts +37 -0
  84. package/dist/events.d.ts.map +1 -0
  85. package/dist/events.js +32 -0
  86. package/dist/extras/catalog-policy.d.ts +30 -0
  87. package/dist/extras/catalog-policy.d.ts.map +1 -0
  88. package/dist/extras/catalog-policy.js +319 -0
  89. package/dist/extras/content-shape.d.ts +5 -0
  90. package/dist/extras/content-shape.d.ts.map +1 -0
  91. package/dist/extras/content-shape.js +13 -0
  92. package/dist/extras/draft-shape.d.ts +34 -0
  93. package/dist/extras/draft-shape.d.ts.map +1 -0
  94. package/dist/extras/draft-shape.js +69 -0
  95. package/dist/extras/routes.d.ts +380 -0
  96. package/dist/extras/routes.d.ts.map +1 -0
  97. package/dist/extras/routes.js +59 -0
  98. package/dist/extras/schema-sourced-content.d.ts +254 -0
  99. package/dist/extras/schema-sourced-content.d.ts.map +1 -0
  100. package/dist/extras/schema-sourced-content.js +45 -0
  101. package/dist/extras/schema.d.ts +628 -0
  102. package/dist/extras/schema.d.ts.map +1 -0
  103. package/dist/extras/schema.js +87 -0
  104. package/dist/extras/service-catalog-plane.d.ts +77 -0
  105. package/dist/extras/service-catalog-plane.d.ts.map +1 -0
  106. package/dist/extras/service-catalog-plane.js +219 -0
  107. package/dist/extras/service-content-synthesizer.d.ts +41 -0
  108. package/dist/extras/service-content-synthesizer.d.ts.map +1 -0
  109. package/dist/extras/service-content-synthesizer.js +138 -0
  110. package/dist/extras/service-content.d.ts +48 -0
  111. package/dist/extras/service-content.d.ts.map +1 -0
  112. package/dist/extras/service-content.js +253 -0
  113. package/dist/extras/service.d.ts +185 -0
  114. package/dist/extras/service.d.ts.map +1 -0
  115. package/dist/extras/service.js +96 -0
  116. package/dist/extras/validation.d.ts +437 -0
  117. package/dist/extras/validation.d.ts.map +1 -0
  118. package/dist/extras/validation.js +149 -0
  119. package/dist/extras.d.ts +267 -0
  120. package/dist/extras.d.ts.map +1 -0
  121. package/dist/extras.js +19 -0
  122. package/dist/index.d.ts +22 -0
  123. package/dist/index.d.ts.map +1 -0
  124. package/dist/index.js +32 -0
  125. package/dist/interface.d.ts +5869 -0
  126. package/dist/interface.d.ts.map +1 -0
  127. package/dist/interface.js +54 -0
  128. package/dist/public-routes.d.ts +2 -0
  129. package/dist/public-routes.d.ts.map +1 -0
  130. package/dist/public-routes.js +1 -0
  131. package/dist/public-validation.d.ts +2 -0
  132. package/dist/public-validation.d.ts.map +1 -0
  133. package/dist/public-validation.js +1 -0
  134. package/dist/read-model.d.ts +25 -0
  135. package/dist/read-model.d.ts.map +1 -0
  136. package/dist/read-model.js +99 -0
  137. package/dist/route-env.d.ts +22 -0
  138. package/dist/route-env.d.ts.map +1 -0
  139. package/dist/route-env.js +1 -0
  140. package/dist/routes-associations.d.ts +164 -0
  141. package/dist/routes-associations.d.ts.map +1 -0
  142. package/dist/routes-associations.js +100 -0
  143. package/dist/routes-catalog.d.ts +436 -0
  144. package/dist/routes-catalog.d.ts.map +1 -0
  145. package/dist/routes-catalog.js +104 -0
  146. package/dist/routes-configuration.d.ts +773 -0
  147. package/dist/routes-configuration.d.ts.map +1 -0
  148. package/dist/routes-configuration.js +364 -0
  149. package/dist/routes-content.d.ts +74 -0
  150. package/dist/routes-content.d.ts.map +1 -0
  151. package/dist/routes-content.js +117 -0
  152. package/dist/routes-core.d.ts +331 -0
  153. package/dist/routes-core.d.ts.map +1 -0
  154. package/dist/routes-core.js +95 -0
  155. package/dist/routes-itinerary.d.ts +759 -0
  156. package/dist/routes-itinerary.d.ts.map +1 -0
  157. package/dist/routes-itinerary.js +387 -0
  158. package/dist/routes-maintenance.d.ts +32 -0
  159. package/dist/routes-maintenance.d.ts.map +1 -0
  160. package/dist/routes-maintenance.js +14 -0
  161. package/dist/routes-media.d.ts +634 -0
  162. package/dist/routes-media.d.ts.map +1 -0
  163. package/dist/routes-media.js +245 -0
  164. package/dist/routes-merchandising.d.ts +1120 -0
  165. package/dist/routes-merchandising.d.ts.map +1 -0
  166. package/dist/routes-merchandising.js +377 -0
  167. package/dist/routes-options.d.ts +363 -0
  168. package/dist/routes-options.d.ts.map +1 -0
  169. package/dist/routes-options.js +173 -0
  170. package/dist/routes-public.d.ts +776 -0
  171. package/dist/routes-public.d.ts.map +1 -0
  172. package/dist/routes-public.js +119 -0
  173. package/dist/routes-translations.d.ts +489 -0
  174. package/dist/routes-translations.d.ts.map +1 -0
  175. package/dist/routes-translations.js +258 -0
  176. package/dist/routes.d.ts +5097 -0
  177. package/dist/routes.d.ts.map +1 -0
  178. package/dist/routes.js +64 -0
  179. package/dist/schema-core.d.ts +1238 -0
  180. package/dist/schema-core.d.ts.map +1 -0
  181. package/dist/schema-core.js +157 -0
  182. package/dist/schema-itinerary.d.ts +1169 -0
  183. package/dist/schema-itinerary.d.ts.map +1 -0
  184. package/dist/schema-itinerary.js +130 -0
  185. package/dist/schema-relations.d.ts +117 -0
  186. package/dist/schema-relations.d.ts.map +1 -0
  187. package/dist/schema-relations.js +192 -0
  188. package/dist/schema-settings.d.ts +1800 -0
  189. package/dist/schema-settings.d.ts.map +1 -0
  190. package/dist/schema-settings.js +220 -0
  191. package/dist/schema-shared.d.ts +15 -0
  192. package/dist/schema-shared.d.ts.map +1 -0
  193. package/dist/schema-shared.js +91 -0
  194. package/dist/schema-sourced-content.d.ts +262 -0
  195. package/dist/schema-sourced-content.d.ts.map +1 -0
  196. package/dist/schema-sourced-content.js +69 -0
  197. package/dist/schema-taxonomy.d.ts +1363 -0
  198. package/dist/schema-taxonomy.d.ts.map +1 -0
  199. package/dist/schema-taxonomy.js +203 -0
  200. package/dist/schema.d.ts +10 -0
  201. package/dist/schema.d.ts.map +1 -0
  202. package/dist/schema.js +9 -0
  203. package/dist/service-aggregates.d.ts +29 -0
  204. package/dist/service-aggregates.d.ts.map +1 -0
  205. package/dist/service-aggregates.js +56 -0
  206. package/dist/service-catalog-plane-destinations.d.ts +30 -0
  207. package/dist/service-catalog-plane-destinations.d.ts.map +1 -0
  208. package/dist/service-catalog-plane-destinations.js +143 -0
  209. package/dist/service-catalog-plane-taxonomy.d.ts +73 -0
  210. package/dist/service-catalog-plane-taxonomy.d.ts.map +1 -0
  211. package/dist/service-catalog-plane-taxonomy.js +242 -0
  212. package/dist/service-catalog-plane.d.ts +179 -0
  213. package/dist/service-catalog-plane.d.ts.map +1 -0
  214. package/dist/service-catalog-plane.js +431 -0
  215. package/dist/service-catalog.d.ts +251 -0
  216. package/dist/service-catalog.d.ts.map +1 -0
  217. package/dist/service-catalog.js +517 -0
  218. package/dist/service-configuration.d.ts +261 -0
  219. package/dist/service-configuration.d.ts.map +1 -0
  220. package/dist/service-configuration.js +343 -0
  221. package/dist/service-content-owned.d.ts +68 -0
  222. package/dist/service-content-owned.d.ts.map +1 -0
  223. package/dist/service-content-owned.js +329 -0
  224. package/dist/service-content-synthesizer.d.ts +90 -0
  225. package/dist/service-content-synthesizer.d.ts.map +1 -0
  226. package/dist/service-content-synthesizer.js +178 -0
  227. package/dist/service-content.d.ts +106 -0
  228. package/dist/service-content.d.ts.map +1 -0
  229. package/dist/service-content.js +388 -0
  230. package/dist/service-core.d.ts +194 -0
  231. package/dist/service-core.d.ts.map +1 -0
  232. package/dist/service-core.js +213 -0
  233. package/dist/service-delivery-formats.d.ts +58 -0
  234. package/dist/service-delivery-formats.d.ts.map +1 -0
  235. package/dist/service-delivery-formats.js +107 -0
  236. package/dist/service-destinations.d.ts +223 -0
  237. package/dist/service-destinations.d.ts.map +1 -0
  238. package/dist/service-destinations.js +310 -0
  239. package/dist/service-itinerary-history.d.ts +457 -0
  240. package/dist/service-itinerary-history.d.ts.map +1 -0
  241. package/dist/service-itinerary-history.js +135 -0
  242. package/dist/service-itinerary.d.ts +1149 -0
  243. package/dist/service-itinerary.d.ts.map +1 -0
  244. package/dist/service-itinerary.js +419 -0
  245. package/dist/service-media.d.ts +272 -0
  246. package/dist/service-media.d.ts.map +1 -0
  247. package/dist/service-media.js +320 -0
  248. package/dist/service-merchandising.d.ts +184 -0
  249. package/dist/service-merchandising.d.ts.map +1 -0
  250. package/dist/service-merchandising.js +181 -0
  251. package/dist/service-option-translations.d.ts +268 -0
  252. package/dist/service-option-translations.d.ts.map +1 -0
  253. package/dist/service-option-translations.js +300 -0
  254. package/dist/service-options.d.ts +181 -0
  255. package/dist/service-options.d.ts.map +1 -0
  256. package/dist/service-options.js +179 -0
  257. package/dist/service-product-destinations.d.ts +37 -0
  258. package/dist/service-product-destinations.d.ts.map +1 -0
  259. package/dist/service-product-destinations.js +94 -0
  260. package/dist/service-public.d.ts +664 -0
  261. package/dist/service-public.d.ts.map +1 -0
  262. package/dist/service-public.js +374 -0
  263. package/dist/service-taxonomy.d.ts +197 -0
  264. package/dist/service-taxonomy.d.ts.map +1 -0
  265. package/dist/service-taxonomy.js +221 -0
  266. package/dist/service.d.ts +3929 -0
  267. package/dist/service.d.ts.map +1 -0
  268. package/dist/service.js +28 -0
  269. package/dist/tasks/brochure-printers.d.ts +31 -0
  270. package/dist/tasks/brochure-printers.d.ts.map +1 -0
  271. package/dist/tasks/brochure-printers.js +149 -0
  272. package/dist/tasks/brochure-templates.d.ts +36 -0
  273. package/dist/tasks/brochure-templates.d.ts.map +1 -0
  274. package/dist/tasks/brochure-templates.js +110 -0
  275. package/dist/tasks/brochures.d.ts +43 -0
  276. package/dist/tasks/brochures.d.ts.map +1 -0
  277. package/dist/tasks/brochures.js +72 -0
  278. package/dist/tasks/generate-pdf.d.ts +8 -0
  279. package/dist/tasks/generate-pdf.d.ts.map +1 -0
  280. package/dist/tasks/generate-pdf.js +106 -0
  281. package/dist/tasks/index.d.ts +5 -0
  282. package/dist/tasks/index.d.ts.map +1 -0
  283. package/dist/tasks/index.js +4 -0
  284. package/dist/tasks/pdf-text.d.ts +2 -0
  285. package/dist/tasks/pdf-text.d.ts.map +1 -0
  286. package/dist/tasks/pdf-text.js +40 -0
  287. package/dist/tasks.d.ts +2 -0
  288. package/dist/tasks.d.ts.map +1 -0
  289. package/dist/tasks.js +1 -0
  290. package/dist/validation-catalog.d.ts +2 -0
  291. package/dist/validation-catalog.d.ts.map +1 -0
  292. package/dist/validation-catalog.js +3 -0
  293. package/dist/validation-config.d.ts +2 -0
  294. package/dist/validation-config.d.ts.map +1 -0
  295. package/dist/validation-config.js +3 -0
  296. package/dist/validation-content.d.ts +2 -0
  297. package/dist/validation-content.d.ts.map +1 -0
  298. package/dist/validation-content.js +3 -0
  299. package/dist/validation-core.d.ts +2 -0
  300. package/dist/validation-core.d.ts.map +1 -0
  301. package/dist/validation-core.js +3 -0
  302. package/dist/validation-public.d.ts +2 -0
  303. package/dist/validation-public.d.ts.map +1 -0
  304. package/dist/validation-public.js +3 -0
  305. package/dist/validation-shared.d.ts +2 -0
  306. package/dist/validation-shared.d.ts.map +1 -0
  307. package/dist/validation-shared.js +3 -0
  308. package/dist/validation.d.ts +2 -0
  309. package/dist/validation.d.ts.map +1 -0
  310. package/dist/validation.js +3 -0
  311. package/package.json +204 -0
@@ -0,0 +1,634 @@
1
+ import type { Env } from "./route-env.js";
2
+ export declare const productMediaRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/media/:mediaId": {
4
+ $get: {
5
+ input: {
6
+ param: {
7
+ mediaId: string;
8
+ };
9
+ };
10
+ output: {
11
+ error: string;
12
+ };
13
+ outputFormat: "json";
14
+ status: 404;
15
+ } | {
16
+ input: {
17
+ param: {
18
+ mediaId: string;
19
+ };
20
+ };
21
+ output: {
22
+ data: {
23
+ id: string;
24
+ productId: string;
25
+ dayId: string | null;
26
+ mediaType: "image" | "video" | "document";
27
+ name: string;
28
+ url: string;
29
+ storageKey: string | null;
30
+ mimeType: string | null;
31
+ fileSize: number | null;
32
+ altText: string | null;
33
+ sortOrder: number;
34
+ isCover: boolean;
35
+ isBrochure: boolean;
36
+ isBrochureCurrent: boolean;
37
+ brochureVersion: number | null;
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ };
41
+ };
42
+ outputFormat: "json";
43
+ status: import("hono/utils/http-status").ContentfulStatusCode;
44
+ };
45
+ };
46
+ } & {
47
+ "/media/:mediaId": {
48
+ $patch: {
49
+ input: {
50
+ param: {
51
+ mediaId: string;
52
+ };
53
+ };
54
+ output: {
55
+ error: string;
56
+ };
57
+ outputFormat: "json";
58
+ status: 404;
59
+ } | {
60
+ input: {
61
+ param: {
62
+ mediaId: string;
63
+ };
64
+ };
65
+ output: {
66
+ data: {
67
+ id: string;
68
+ productId: string;
69
+ dayId: string | null;
70
+ mediaType: "image" | "video" | "document";
71
+ name: string;
72
+ url: string;
73
+ storageKey: string | null;
74
+ mimeType: string | null;
75
+ fileSize: number | null;
76
+ altText: string | null;
77
+ sortOrder: number;
78
+ isCover: boolean;
79
+ isBrochure: boolean;
80
+ isBrochureCurrent: boolean;
81
+ brochureVersion: number | null;
82
+ createdAt: string;
83
+ updatedAt: string;
84
+ };
85
+ };
86
+ outputFormat: "json";
87
+ status: import("hono/utils/http-status").ContentfulStatusCode;
88
+ };
89
+ };
90
+ } & {
91
+ "/media/:mediaId/set-cover": {
92
+ $patch: {
93
+ input: {
94
+ param: {
95
+ mediaId: string;
96
+ };
97
+ };
98
+ output: {
99
+ error: string;
100
+ };
101
+ outputFormat: "json";
102
+ status: 404;
103
+ } | {
104
+ input: {
105
+ param: {
106
+ mediaId: string;
107
+ };
108
+ };
109
+ output: {
110
+ error: string;
111
+ };
112
+ outputFormat: "json";
113
+ status: 500;
114
+ } | {
115
+ input: {
116
+ param: {
117
+ mediaId: string;
118
+ };
119
+ };
120
+ output: {
121
+ data: {
122
+ id: string;
123
+ productId: string;
124
+ dayId: string | null;
125
+ mediaType: "image" | "video" | "document";
126
+ name: string;
127
+ url: string;
128
+ storageKey: string | null;
129
+ mimeType: string | null;
130
+ fileSize: number | null;
131
+ altText: string | null;
132
+ sortOrder: number;
133
+ isCover: boolean;
134
+ isBrochure: boolean;
135
+ isBrochureCurrent: boolean;
136
+ brochureVersion: number | null;
137
+ createdAt: string;
138
+ updatedAt: string;
139
+ };
140
+ };
141
+ outputFormat: "json";
142
+ status: import("hono/utils/http-status").ContentfulStatusCode;
143
+ };
144
+ };
145
+ } & {
146
+ "/media/:mediaId": {
147
+ $delete: {
148
+ input: {
149
+ param: {
150
+ mediaId: string;
151
+ };
152
+ };
153
+ output: {
154
+ error: string;
155
+ };
156
+ outputFormat: "json";
157
+ status: 404;
158
+ } | {
159
+ input: {
160
+ param: {
161
+ mediaId: string;
162
+ };
163
+ };
164
+ output: {
165
+ data: {
166
+ id: string;
167
+ name: string;
168
+ createdAt: string;
169
+ updatedAt: string;
170
+ productId: string;
171
+ sortOrder: number;
172
+ dayId: string | null;
173
+ mediaType: "image" | "video" | "document";
174
+ isBrochure: boolean;
175
+ isBrochureCurrent: boolean;
176
+ url: string;
177
+ storageKey: string | null;
178
+ mimeType: string | null;
179
+ fileSize: number | null;
180
+ altText: string | null;
181
+ isCover: boolean;
182
+ brochureVersion: number | null;
183
+ };
184
+ };
185
+ outputFormat: "json";
186
+ status: import("hono/utils/http-status").ContentfulStatusCode;
187
+ };
188
+ };
189
+ } & {
190
+ "/:id/brochure": {
191
+ $get: {
192
+ input: {
193
+ param: {
194
+ id: string;
195
+ };
196
+ };
197
+ output: {
198
+ error: string;
199
+ };
200
+ outputFormat: "json";
201
+ status: 404;
202
+ } | {
203
+ input: {
204
+ param: {
205
+ id: string;
206
+ };
207
+ };
208
+ output: {
209
+ data: {
210
+ id: string;
211
+ productId: string;
212
+ dayId: string | null;
213
+ mediaType: "image" | "video" | "document";
214
+ name: string;
215
+ url: string;
216
+ storageKey: string | null;
217
+ mimeType: string | null;
218
+ fileSize: number | null;
219
+ altText: string | null;
220
+ sortOrder: number;
221
+ isCover: boolean;
222
+ isBrochure: boolean;
223
+ isBrochureCurrent: boolean;
224
+ brochureVersion: number | null;
225
+ createdAt: string;
226
+ updatedAt: string;
227
+ };
228
+ };
229
+ outputFormat: "json";
230
+ status: import("hono/utils/http-status").ContentfulStatusCode;
231
+ };
232
+ };
233
+ } & {
234
+ "/:id/brochure/versions": {
235
+ $get: {
236
+ input: {
237
+ param: {
238
+ id: string;
239
+ };
240
+ };
241
+ output: {
242
+ data: {
243
+ id: string;
244
+ productId: string;
245
+ dayId: string | null;
246
+ mediaType: "image" | "video" | "document";
247
+ name: string;
248
+ url: string;
249
+ storageKey: string | null;
250
+ mimeType: string | null;
251
+ fileSize: number | null;
252
+ altText: string | null;
253
+ sortOrder: number;
254
+ isCover: boolean;
255
+ isBrochure: boolean;
256
+ isBrochureCurrent: boolean;
257
+ brochureVersion: number | null;
258
+ createdAt: string;
259
+ updatedAt: string;
260
+ }[];
261
+ };
262
+ outputFormat: "json";
263
+ status: import("hono/utils/http-status").ContentfulStatusCode;
264
+ };
265
+ };
266
+ } & {
267
+ "/:id/brochure": {
268
+ $put: {
269
+ input: {
270
+ param: {
271
+ id: string;
272
+ };
273
+ };
274
+ output: {
275
+ error: string;
276
+ };
277
+ outputFormat: "json";
278
+ status: 404;
279
+ } | {
280
+ input: {
281
+ param: {
282
+ id: string;
283
+ };
284
+ };
285
+ output: {
286
+ data: {
287
+ id: string;
288
+ name: string;
289
+ createdAt: string;
290
+ updatedAt: string;
291
+ productId: string;
292
+ sortOrder: number;
293
+ dayId: string | null;
294
+ mediaType: "image" | "video" | "document";
295
+ isBrochure: boolean;
296
+ isBrochureCurrent: boolean;
297
+ url: string;
298
+ storageKey: string | null;
299
+ mimeType: string | null;
300
+ fileSize: number | null;
301
+ altText: string | null;
302
+ isCover: boolean;
303
+ brochureVersion: number | null;
304
+ };
305
+ };
306
+ outputFormat: "json";
307
+ status: 201;
308
+ };
309
+ };
310
+ } & {
311
+ "/:id/brochure": {
312
+ $delete: {
313
+ input: {
314
+ param: {
315
+ id: string;
316
+ };
317
+ };
318
+ output: {
319
+ error: string;
320
+ };
321
+ outputFormat: "json";
322
+ status: 404;
323
+ } | {
324
+ input: {
325
+ param: {
326
+ id: string;
327
+ };
328
+ };
329
+ output: {
330
+ data: {
331
+ id: string;
332
+ name: string;
333
+ createdAt: string;
334
+ updatedAt: string;
335
+ productId: string;
336
+ sortOrder: number;
337
+ dayId: string | null;
338
+ mediaType: "image" | "video" | "document";
339
+ isBrochure: boolean;
340
+ isBrochureCurrent: boolean;
341
+ url: string;
342
+ storageKey: string | null;
343
+ mimeType: string | null;
344
+ fileSize: number | null;
345
+ altText: string | null;
346
+ isCover: boolean;
347
+ brochureVersion: number | null;
348
+ };
349
+ };
350
+ outputFormat: "json";
351
+ status: import("hono/utils/http-status").ContentfulStatusCode;
352
+ };
353
+ };
354
+ } & {
355
+ "/:id/brochure/versions/:brochureId/set-current": {
356
+ $post: {
357
+ input: {
358
+ param: {
359
+ id: string;
360
+ } & {
361
+ brochureId: string;
362
+ };
363
+ };
364
+ output: {
365
+ error: string;
366
+ };
367
+ outputFormat: "json";
368
+ status: 404;
369
+ } | {
370
+ input: {
371
+ param: {
372
+ id: string;
373
+ } & {
374
+ brochureId: string;
375
+ };
376
+ };
377
+ output: {
378
+ data: {
379
+ id: string;
380
+ productId: string;
381
+ dayId: string | null;
382
+ mediaType: "image" | "video" | "document";
383
+ name: string;
384
+ url: string;
385
+ storageKey: string | null;
386
+ mimeType: string | null;
387
+ fileSize: number | null;
388
+ altText: string | null;
389
+ sortOrder: number;
390
+ isCover: boolean;
391
+ isBrochure: boolean;
392
+ isBrochureCurrent: boolean;
393
+ brochureVersion: number | null;
394
+ createdAt: string;
395
+ updatedAt: string;
396
+ };
397
+ };
398
+ outputFormat: "json";
399
+ status: import("hono/utils/http-status").ContentfulStatusCode;
400
+ };
401
+ };
402
+ } & {
403
+ "/:id/brochure/versions/:brochureId": {
404
+ $delete: {
405
+ input: {
406
+ param: {
407
+ id: string;
408
+ } & {
409
+ brochureId: string;
410
+ };
411
+ };
412
+ output: {
413
+ error: string;
414
+ };
415
+ outputFormat: "json";
416
+ status: 404;
417
+ } | {
418
+ input: {
419
+ param: {
420
+ id: string;
421
+ } & {
422
+ brochureId: string;
423
+ };
424
+ };
425
+ output: {
426
+ data: {
427
+ id: string;
428
+ name: string;
429
+ createdAt: string;
430
+ updatedAt: string;
431
+ productId: string;
432
+ sortOrder: number;
433
+ dayId: string | null;
434
+ mediaType: "image" | "video" | "document";
435
+ isBrochure: boolean;
436
+ isBrochureCurrent: boolean;
437
+ url: string;
438
+ storageKey: string | null;
439
+ mimeType: string | null;
440
+ fileSize: number | null;
441
+ altText: string | null;
442
+ isCover: boolean;
443
+ brochureVersion: number | null;
444
+ };
445
+ };
446
+ outputFormat: "json";
447
+ status: import("hono/utils/http-status").ContentfulStatusCode;
448
+ };
449
+ };
450
+ } & {
451
+ "/:id/media": {
452
+ $get: {
453
+ input: {
454
+ param: {
455
+ id: string;
456
+ };
457
+ };
458
+ output: {
459
+ data: {
460
+ id: string;
461
+ productId: string;
462
+ dayId: string | null;
463
+ mediaType: "image" | "video" | "document";
464
+ name: string;
465
+ url: string;
466
+ storageKey: string | null;
467
+ mimeType: string | null;
468
+ fileSize: number | null;
469
+ altText: string | null;
470
+ sortOrder: number;
471
+ isCover: boolean;
472
+ isBrochure: boolean;
473
+ isBrochureCurrent: boolean;
474
+ brochureVersion: number | null;
475
+ createdAt: string;
476
+ updatedAt: string;
477
+ }[];
478
+ total: number;
479
+ limit: number;
480
+ offset: number;
481
+ };
482
+ outputFormat: "json";
483
+ status: import("hono/utils/http-status").ContentfulStatusCode;
484
+ };
485
+ };
486
+ } & {
487
+ "/:id/media": {
488
+ $post: {
489
+ input: {
490
+ param: {
491
+ id: string;
492
+ };
493
+ };
494
+ output: {
495
+ error: string;
496
+ };
497
+ outputFormat: "json";
498
+ status: 404;
499
+ } | {
500
+ input: {
501
+ param: {
502
+ id: string;
503
+ };
504
+ };
505
+ output: {
506
+ data: {
507
+ id: string;
508
+ name: string;
509
+ createdAt: string;
510
+ updatedAt: string;
511
+ productId: string;
512
+ sortOrder: number;
513
+ dayId: string | null;
514
+ mediaType: "image" | "video" | "document";
515
+ isBrochure: boolean;
516
+ isBrochureCurrent: boolean;
517
+ url: string;
518
+ storageKey: string | null;
519
+ mimeType: string | null;
520
+ fileSize: number | null;
521
+ altText: string | null;
522
+ isCover: boolean;
523
+ brochureVersion: number | null;
524
+ };
525
+ };
526
+ outputFormat: "json";
527
+ status: 201;
528
+ };
529
+ };
530
+ } & {
531
+ "/:id/media/reorder": {
532
+ $post: {
533
+ input: {
534
+ param: {
535
+ id: string;
536
+ };
537
+ };
538
+ output: {
539
+ data: {
540
+ id: string;
541
+ }[];
542
+ };
543
+ outputFormat: "json";
544
+ status: import("hono/utils/http-status").ContentfulStatusCode;
545
+ };
546
+ };
547
+ } & {
548
+ "/:id/days/:dayId/media": {
549
+ $get: {
550
+ input: {
551
+ param: {
552
+ id: string;
553
+ } & {
554
+ dayId: string;
555
+ };
556
+ };
557
+ output: {
558
+ data: {
559
+ id: string;
560
+ productId: string;
561
+ dayId: string | null;
562
+ mediaType: "image" | "video" | "document";
563
+ name: string;
564
+ url: string;
565
+ storageKey: string | null;
566
+ mimeType: string | null;
567
+ fileSize: number | null;
568
+ altText: string | null;
569
+ sortOrder: number;
570
+ isCover: boolean;
571
+ isBrochure: boolean;
572
+ isBrochureCurrent: boolean;
573
+ brochureVersion: number | null;
574
+ createdAt: string;
575
+ updatedAt: string;
576
+ }[];
577
+ total: number;
578
+ limit: number;
579
+ offset: number;
580
+ };
581
+ outputFormat: "json";
582
+ status: import("hono/utils/http-status").ContentfulStatusCode;
583
+ };
584
+ };
585
+ } & {
586
+ "/:id/days/:dayId/media": {
587
+ $post: {
588
+ input: {
589
+ param: {
590
+ id: string;
591
+ } & {
592
+ dayId: string;
593
+ };
594
+ };
595
+ output: {
596
+ error: string;
597
+ };
598
+ outputFormat: "json";
599
+ status: 404;
600
+ } | {
601
+ input: {
602
+ param: {
603
+ id: string;
604
+ } & {
605
+ dayId: string;
606
+ };
607
+ };
608
+ output: {
609
+ data: {
610
+ id: string;
611
+ name: string;
612
+ createdAt: string;
613
+ updatedAt: string;
614
+ productId: string;
615
+ sortOrder: number;
616
+ dayId: string | null;
617
+ mediaType: "image" | "video" | "document";
618
+ isBrochure: boolean;
619
+ isBrochureCurrent: boolean;
620
+ url: string;
621
+ storageKey: string | null;
622
+ mimeType: string | null;
623
+ fileSize: number | null;
624
+ altText: string | null;
625
+ isCover: boolean;
626
+ brochureVersion: number | null;
627
+ };
628
+ };
629
+ outputFormat: "json";
630
+ status: 201;
631
+ };
632
+ };
633
+ }, "/", "/:id/days/:dayId/media">;
634
+ //# sourceMappingURL=routes-media.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes-media.d.ts","sourceRoot":"","sources":["../src/routes-media.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAIzC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAoR3B,CAAA"}