@voyant-travel/distribution 0.109.8

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 (168) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +42 -0
  3. package/dist/booking-extension.d.ts +168 -0
  4. package/dist/booking-extension.d.ts.map +1 -0
  5. package/dist/booking-extension.js +102 -0
  6. package/dist/channel-push/admin-routes.d.ts +31 -0
  7. package/dist/channel-push/admin-routes.d.ts.map +1 -0
  8. package/dist/channel-push/admin-routes.js +165 -0
  9. package/dist/channel-push/availability-push.d.ts +76 -0
  10. package/dist/channel-push/availability-push.d.ts.map +1 -0
  11. package/dist/channel-push/availability-push.js +236 -0
  12. package/dist/channel-push/booking-push-helpers.d.ts +36 -0
  13. package/dist/channel-push/booking-push-helpers.d.ts.map +1 -0
  14. package/dist/channel-push/booking-push-helpers.js +169 -0
  15. package/dist/channel-push/booking-push.d.ts +108 -0
  16. package/dist/channel-push/booking-push.d.ts.map +1 -0
  17. package/dist/channel-push/booking-push.js +335 -0
  18. package/dist/channel-push/boundary-sql.d.ts +23 -0
  19. package/dist/channel-push/boundary-sql.d.ts.map +1 -0
  20. package/dist/channel-push/boundary-sql.js +75 -0
  21. package/dist/channel-push/content-push.d.ts +60 -0
  22. package/dist/channel-push/content-push.d.ts.map +1 -0
  23. package/dist/channel-push/content-push.js +252 -0
  24. package/dist/channel-push/index.d.ts +15 -0
  25. package/dist/channel-push/index.d.ts.map +1 -0
  26. package/dist/channel-push/index.js +18 -0
  27. package/dist/channel-push/plugin.d.ts +18 -0
  28. package/dist/channel-push/plugin.d.ts.map +1 -0
  29. package/dist/channel-push/plugin.js +21 -0
  30. package/dist/channel-push/reconciler.d.ts +85 -0
  31. package/dist/channel-push/reconciler.d.ts.map +1 -0
  32. package/dist/channel-push/reconciler.js +179 -0
  33. package/dist/channel-push/subscriber.d.ts +40 -0
  34. package/dist/channel-push/subscriber.d.ts.map +1 -0
  35. package/dist/channel-push/subscriber.js +199 -0
  36. package/dist/channel-push/types.d.ts +43 -0
  37. package/dist/channel-push/types.d.ts.map +1 -0
  38. package/dist/channel-push/types.js +32 -0
  39. package/dist/channel-push/workflows.d.ts +56 -0
  40. package/dist/channel-push/workflows.d.ts.map +1 -0
  41. package/dist/channel-push/workflows.js +100 -0
  42. package/dist/external-refs/index.d.ts +11 -0
  43. package/dist/external-refs/index.d.ts.map +1 -0
  44. package/dist/external-refs/index.js +12 -0
  45. package/dist/external-refs/routes.d.ts +253 -0
  46. package/dist/external-refs/routes.d.ts.map +1 -0
  47. package/dist/external-refs/routes.js +52 -0
  48. package/dist/external-refs/schema.d.ts +251 -0
  49. package/dist/external-refs/schema.d.ts.map +1 -0
  50. package/dist/external-refs/schema.js +32 -0
  51. package/dist/external-refs/service.d.ts +82 -0
  52. package/dist/external-refs/service.d.ts.map +1 -0
  53. package/dist/external-refs/service.js +112 -0
  54. package/dist/external-refs/validation.d.ts +91 -0
  55. package/dist/external-refs/validation.d.ts.map +1 -0
  56. package/dist/external-refs/validation.js +40 -0
  57. package/dist/index.d.ts +21 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.js +20 -0
  60. package/dist/interface-types.d.ts +128 -0
  61. package/dist/interface-types.d.ts.map +1 -0
  62. package/dist/interface-types.js +1 -0
  63. package/dist/interface.d.ts +10 -0
  64. package/dist/interface.d.ts.map +1 -0
  65. package/dist/interface.js +286 -0
  66. package/dist/rate-limit.d.ts +69 -0
  67. package/dist/rate-limit.d.ts.map +1 -0
  68. package/dist/rate-limit.js +135 -0
  69. package/dist/routes/batch.d.ts +200 -0
  70. package/dist/routes/batch.d.ts.map +1 -0
  71. package/dist/routes/batch.js +52 -0
  72. package/dist/routes/env.d.ts +8 -0
  73. package/dist/routes/env.d.ts.map +1 -0
  74. package/dist/routes/env.js +1 -0
  75. package/dist/routes/inventory.d.ts +604 -0
  76. package/dist/routes/inventory.d.ts.map +1 -0
  77. package/dist/routes/inventory.js +138 -0
  78. package/dist/routes/settlements.d.ts +1649 -0
  79. package/dist/routes/settlements.d.ts.map +1 -0
  80. package/dist/routes/settlements.js +265 -0
  81. package/dist/routes.d.ts +3909 -0
  82. package/dist/routes.d.ts.map +1 -0
  83. package/dist/routes.js +323 -0
  84. package/dist/schema-automation.d.ts +680 -0
  85. package/dist/schema-automation.d.ts.map +1 -0
  86. package/dist/schema-automation.js +76 -0
  87. package/dist/schema-core.d.ts +1674 -0
  88. package/dist/schema-core.d.ts.map +1 -0
  89. package/dist/schema-core.js +227 -0
  90. package/dist/schema-finance.d.ts +1372 -0
  91. package/dist/schema-finance.d.ts.map +1 -0
  92. package/dist/schema-finance.js +153 -0
  93. package/dist/schema-inventory.d.ts +855 -0
  94. package/dist/schema-inventory.d.ts.map +1 -0
  95. package/dist/schema-inventory.js +102 -0
  96. package/dist/schema-push-intents.d.ts +387 -0
  97. package/dist/schema-push-intents.d.ts.map +1 -0
  98. package/dist/schema-push-intents.js +77 -0
  99. package/dist/schema-relations.d.ts +95 -0
  100. package/dist/schema-relations.d.ts.map +1 -0
  101. package/dist/schema-relations.js +196 -0
  102. package/dist/schema-shared.d.ts +24 -0
  103. package/dist/schema-shared.d.ts.map +1 -0
  104. package/dist/schema-shared.js +123 -0
  105. package/dist/schema.d.ts +9 -0
  106. package/dist/schema.d.ts.map +1 -0
  107. package/dist/schema.js +8 -0
  108. package/dist/service/channels.d.ts +167 -0
  109. package/dist/service/channels.d.ts.map +1 -0
  110. package/dist/service/channels.js +305 -0
  111. package/dist/service/commercial.d.ts +385 -0
  112. package/dist/service/commercial.d.ts.map +1 -0
  113. package/dist/service/commercial.js +248 -0
  114. package/dist/service/helpers.d.ts +10 -0
  115. package/dist/service/helpers.d.ts.map +1 -0
  116. package/dist/service/helpers.js +7 -0
  117. package/dist/service/inventory.d.ts +193 -0
  118. package/dist/service/inventory.d.ts.map +1 -0
  119. package/dist/service/inventory.js +154 -0
  120. package/dist/service/settlement-policies.d.ts +325 -0
  121. package/dist/service/settlement-policies.d.ts.map +1 -0
  122. package/dist/service/settlement-policies.js +272 -0
  123. package/dist/service/settlements.d.ts +357 -0
  124. package/dist/service/settlements.d.ts.map +1 -0
  125. package/dist/service/settlements.js +319 -0
  126. package/dist/service/types.d.ts +60 -0
  127. package/dist/service/types.d.ts.map +1 -0
  128. package/dist/service/types.js +1 -0
  129. package/dist/service.d.ts +1418 -0
  130. package/dist/service.d.ts.map +1 -0
  131. package/dist/service.js +17 -0
  132. package/dist/suppliers/index.d.ts +15 -0
  133. package/dist/suppliers/index.d.ts.map +1 -0
  134. package/dist/suppliers/index.js +23 -0
  135. package/dist/suppliers/routes.d.ts +1202 -0
  136. package/dist/suppliers/routes.d.ts.map +1 -0
  137. package/dist/suppliers/routes.js +290 -0
  138. package/dist/suppliers/schema.d.ts +1272 -0
  139. package/dist/suppliers/schema.d.ts.map +1 -0
  140. package/dist/suppliers/schema.js +219 -0
  141. package/dist/suppliers/service-aggregates.d.ts +23 -0
  142. package/dist/suppliers/service-aggregates.d.ts.map +1 -0
  143. package/dist/suppliers/service-aggregates.js +51 -0
  144. package/dist/suppliers/service-core.d.ts +89 -0
  145. package/dist/suppliers/service-core.d.ts.map +1 -0
  146. package/dist/suppliers/service-core.js +164 -0
  147. package/dist/suppliers/service-identity.d.ts +162 -0
  148. package/dist/suppliers/service-identity.d.ts.map +1 -0
  149. package/dist/suppliers/service-identity.js +101 -0
  150. package/dist/suppliers/service-operations.d.ts +1500 -0
  151. package/dist/suppliers/service-operations.d.ts.map +1 -0
  152. package/dist/suppliers/service-operations.js +157 -0
  153. package/dist/suppliers/service-shared.d.ts +45 -0
  154. package/dist/suppliers/service-shared.d.ts.map +1 -0
  155. package/dist/suppliers/service-shared.js +294 -0
  156. package/dist/suppliers/service.d.ts +41 -0
  157. package/dist/suppliers/service.d.ts.map +1 -0
  158. package/dist/suppliers/service.js +40 -0
  159. package/dist/suppliers/validation.d.ts +2 -0
  160. package/dist/suppliers/validation.d.ts.map +1 -0
  161. package/dist/suppliers/validation.js +1 -0
  162. package/dist/validation.d.ts +1371 -0
  163. package/dist/validation.d.ts.map +1 -0
  164. package/dist/validation.js +445 -0
  165. package/dist/webhook-deliveries.d.ts +86 -0
  166. package/dist/webhook-deliveries.d.ts.map +1 -0
  167. package/dist/webhook-deliveries.js +296 -0
  168. package/package.json +71 -0
@@ -0,0 +1,1202 @@
1
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2
+ type Env = {
3
+ Variables: {
4
+ db: PostgresJsDatabase;
5
+ userId?: string;
6
+ };
7
+ };
8
+ export declare const supplierRoutes: import("hono/hono-base").HonoBase<Env, {
9
+ "/aggregates": {
10
+ $get: {
11
+ input: {};
12
+ output: {
13
+ data: {
14
+ total: number;
15
+ countsByStatus: {
16
+ status: "active" | "inactive" | "pending";
17
+ count: number;
18
+ }[];
19
+ countsByType: {
20
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
21
+ count: number;
22
+ }[];
23
+ active: number;
24
+ };
25
+ };
26
+ outputFormat: "json";
27
+ status: import("hono/utils/http-status").ContentfulStatusCode;
28
+ };
29
+ };
30
+ } & {
31
+ "/": {
32
+ $get: {
33
+ input: {};
34
+ output: {
35
+ data: {
36
+ id: string;
37
+ name: string;
38
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
39
+ status: "active" | "inactive" | "pending";
40
+ description: string | null;
41
+ defaultCurrency: string | null;
42
+ paymentTermsDays: number | null;
43
+ reservationTimeoutMinutes: number | null;
44
+ primaryFacilityId: string | null;
45
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
46
+ tags: string[] | null;
47
+ createdAt: string;
48
+ updatedAt: string;
49
+ email: string | null;
50
+ phone: string | null;
51
+ website: string | null;
52
+ address: string | null;
53
+ city: string | null;
54
+ country: string | null;
55
+ contactName: string | null;
56
+ contactEmail: string | null;
57
+ contactPhone: string | null;
58
+ }[];
59
+ total: number;
60
+ limit: number;
61
+ offset: number;
62
+ };
63
+ outputFormat: "json";
64
+ status: import("hono/utils/http-status").ContentfulStatusCode;
65
+ };
66
+ };
67
+ } & {
68
+ "/contact-points/:contactPointId": {
69
+ $patch: {
70
+ input: {
71
+ param: {
72
+ contactPointId: string;
73
+ };
74
+ };
75
+ output: {
76
+ error: string;
77
+ };
78
+ outputFormat: "json";
79
+ status: 404;
80
+ } | {
81
+ input: {
82
+ param: {
83
+ contactPointId: string;
84
+ };
85
+ };
86
+ output: {
87
+ data: {
88
+ id: string;
89
+ entityType: string;
90
+ entityId: string;
91
+ kind: "other" | "website" | "email" | "phone" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
92
+ label: string | null;
93
+ value: string;
94
+ normalizedValue: string | null;
95
+ isPrimary: boolean;
96
+ notes: string | null;
97
+ metadata: {
98
+ [x: string]: import("hono/utils/types").JSONValue;
99
+ } | null;
100
+ createdAt: string;
101
+ updatedAt: string;
102
+ };
103
+ };
104
+ outputFormat: "json";
105
+ status: import("hono/utils/http-status").ContentfulStatusCode;
106
+ };
107
+ };
108
+ } & {
109
+ "/contacts/:contactId": {
110
+ $patch: {
111
+ input: {
112
+ param: {
113
+ contactId: string;
114
+ };
115
+ };
116
+ output: {
117
+ error: string;
118
+ };
119
+ outputFormat: "json";
120
+ status: 404;
121
+ } | {
122
+ input: {
123
+ param: {
124
+ contactId: string;
125
+ };
126
+ };
127
+ output: {
128
+ data: {
129
+ id: string;
130
+ entityType: string;
131
+ entityId: string;
132
+ role: "primary" | "other" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | "legal";
133
+ name: string;
134
+ title: string | null;
135
+ email: string | null;
136
+ phone: string | null;
137
+ isPrimary: boolean;
138
+ notes: string | null;
139
+ metadata: {
140
+ [x: string]: import("hono/utils/types").JSONValue;
141
+ } | null;
142
+ createdAt: string;
143
+ updatedAt: string;
144
+ };
145
+ };
146
+ outputFormat: "json";
147
+ status: import("hono/utils/http-status").ContentfulStatusCode;
148
+ };
149
+ };
150
+ } & {
151
+ "/contacts/:contactId": {
152
+ $delete: {
153
+ input: {
154
+ param: {
155
+ contactId: string;
156
+ };
157
+ };
158
+ output: {
159
+ error: string;
160
+ };
161
+ outputFormat: "json";
162
+ status: 404;
163
+ } | {
164
+ input: {
165
+ param: {
166
+ contactId: string;
167
+ };
168
+ };
169
+ output: {
170
+ success: true;
171
+ };
172
+ outputFormat: "json";
173
+ status: 200;
174
+ };
175
+ };
176
+ } & {
177
+ "/contact-points/:contactPointId": {
178
+ $delete: {
179
+ input: {
180
+ param: {
181
+ contactPointId: string;
182
+ };
183
+ };
184
+ output: {
185
+ error: string;
186
+ };
187
+ outputFormat: "json";
188
+ status: 404;
189
+ } | {
190
+ input: {
191
+ param: {
192
+ contactPointId: string;
193
+ };
194
+ };
195
+ output: {
196
+ success: true;
197
+ };
198
+ outputFormat: "json";
199
+ status: 200;
200
+ };
201
+ };
202
+ } & {
203
+ "/addresses/:addressId": {
204
+ $patch: {
205
+ input: {
206
+ param: {
207
+ addressId: string;
208
+ };
209
+ };
210
+ output: {
211
+ error: string;
212
+ };
213
+ outputFormat: "json";
214
+ status: 404;
215
+ } | {
216
+ input: {
217
+ param: {
218
+ addressId: string;
219
+ };
220
+ };
221
+ output: {
222
+ data: {
223
+ id: string;
224
+ entityType: string;
225
+ entityId: string;
226
+ label: "primary" | "other" | "service" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
227
+ fullText: string | null;
228
+ line1: string | null;
229
+ line2: string | null;
230
+ city: string | null;
231
+ region: string | null;
232
+ postalCode: string | null;
233
+ country: string | null;
234
+ latitude: number | null;
235
+ longitude: number | null;
236
+ timezone: string | null;
237
+ isPrimary: boolean;
238
+ notes: string | null;
239
+ metadata: {
240
+ [x: string]: import("hono/utils/types").JSONValue;
241
+ } | null;
242
+ createdAt: string;
243
+ updatedAt: string;
244
+ };
245
+ };
246
+ outputFormat: "json";
247
+ status: import("hono/utils/http-status").ContentfulStatusCode;
248
+ };
249
+ };
250
+ } & {
251
+ "/addresses/:addressId": {
252
+ $delete: {
253
+ input: {
254
+ param: {
255
+ addressId: string;
256
+ };
257
+ };
258
+ output: {
259
+ error: string;
260
+ };
261
+ outputFormat: "json";
262
+ status: 404;
263
+ } | {
264
+ input: {
265
+ param: {
266
+ addressId: string;
267
+ };
268
+ };
269
+ output: {
270
+ success: true;
271
+ };
272
+ outputFormat: "json";
273
+ status: 200;
274
+ };
275
+ };
276
+ } & {
277
+ "/:id": {
278
+ $get: {
279
+ input: {
280
+ param: {
281
+ id: string;
282
+ };
283
+ };
284
+ output: {
285
+ error: string;
286
+ };
287
+ outputFormat: "json";
288
+ status: 404;
289
+ } | {
290
+ input: {
291
+ param: {
292
+ id: string;
293
+ };
294
+ };
295
+ output: {
296
+ data: {
297
+ id: string;
298
+ name: string;
299
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
300
+ status: "active" | "inactive" | "pending";
301
+ description: string | null;
302
+ defaultCurrency: string | null;
303
+ paymentTermsDays: number | null;
304
+ reservationTimeoutMinutes: number | null;
305
+ primaryFacilityId: string | null;
306
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
307
+ tags: string[] | null;
308
+ createdAt: string;
309
+ updatedAt: string;
310
+ email: string | null;
311
+ phone: string | null;
312
+ website: string | null;
313
+ address: string | null;
314
+ city: string | null;
315
+ country: string | null;
316
+ contactName: string | null;
317
+ contactEmail: string | null;
318
+ contactPhone: string | null;
319
+ };
320
+ };
321
+ outputFormat: "json";
322
+ status: import("hono/utils/http-status").ContentfulStatusCode;
323
+ };
324
+ };
325
+ } & {
326
+ "/": {
327
+ $post: {
328
+ input: {};
329
+ output: {
330
+ data: {
331
+ email: string | null;
332
+ phone: string | null;
333
+ website: string | null;
334
+ address: string | null;
335
+ city: string | null;
336
+ country: string | null;
337
+ contactName: string | null;
338
+ contactEmail: string | null;
339
+ contactPhone: string | null;
340
+ name: string;
341
+ createdAt: string;
342
+ updatedAt: string;
343
+ description: string | null;
344
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
345
+ id: string;
346
+ status: "active" | "inactive" | "pending";
347
+ defaultCurrency: string | null;
348
+ paymentTermsDays: number | null;
349
+ reservationTimeoutMinutes: number | null;
350
+ primaryFacilityId: string | null;
351
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
352
+ tags: string[] | null;
353
+ };
354
+ };
355
+ outputFormat: "json";
356
+ status: 201;
357
+ };
358
+ };
359
+ } & {
360
+ "/:id": {
361
+ $patch: {
362
+ input: {
363
+ param: {
364
+ id: string;
365
+ };
366
+ };
367
+ output: {
368
+ error: string;
369
+ };
370
+ outputFormat: "json";
371
+ status: 404;
372
+ } | {
373
+ input: {
374
+ param: {
375
+ id: string;
376
+ };
377
+ };
378
+ output: {
379
+ data: {
380
+ email: string | null;
381
+ phone: string | null;
382
+ website: string | null;
383
+ address: string | null;
384
+ city: string | null;
385
+ country: string | null;
386
+ contactName: string | null;
387
+ contactEmail: string | null;
388
+ contactPhone: string | null;
389
+ id: string;
390
+ name: string;
391
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
392
+ status: "active" | "inactive" | "pending";
393
+ description: string | null;
394
+ defaultCurrency: string | null;
395
+ paymentTermsDays: number | null;
396
+ reservationTimeoutMinutes: number | null;
397
+ primaryFacilityId: string | null;
398
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
399
+ tags: string[] | null;
400
+ createdAt: string;
401
+ updatedAt: string;
402
+ };
403
+ };
404
+ outputFormat: "json";
405
+ status: import("hono/utils/http-status").ContentfulStatusCode;
406
+ };
407
+ };
408
+ } & {
409
+ "/:id": {
410
+ $delete: {
411
+ input: {
412
+ param: {
413
+ id: string;
414
+ };
415
+ };
416
+ output: {
417
+ error: string;
418
+ };
419
+ outputFormat: "json";
420
+ status: 404;
421
+ } | {
422
+ input: {
423
+ param: {
424
+ id: string;
425
+ };
426
+ };
427
+ output: {
428
+ success: true;
429
+ };
430
+ outputFormat: "json";
431
+ status: 200;
432
+ };
433
+ };
434
+ } & {
435
+ "/:id/contact-points": {
436
+ $get: {
437
+ input: {
438
+ param: {
439
+ id: string;
440
+ };
441
+ };
442
+ output: {
443
+ data: {
444
+ id: string;
445
+ entityType: string;
446
+ entityId: string;
447
+ kind: "other" | "website" | "email" | "phone" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
448
+ label: string | null;
449
+ value: string;
450
+ normalizedValue: string | null;
451
+ isPrimary: boolean;
452
+ notes: string | null;
453
+ metadata: {
454
+ [x: string]: import("hono/utils/types").JSONValue;
455
+ } | null;
456
+ createdAt: string;
457
+ updatedAt: string;
458
+ }[];
459
+ };
460
+ outputFormat: "json";
461
+ status: import("hono/utils/http-status").ContentfulStatusCode;
462
+ };
463
+ };
464
+ } & {
465
+ "/:id/contact-points": {
466
+ $post: {
467
+ input: {
468
+ param: {
469
+ id: string;
470
+ };
471
+ };
472
+ output: {
473
+ error: string;
474
+ };
475
+ outputFormat: "json";
476
+ status: 404;
477
+ } | {
478
+ input: {
479
+ param: {
480
+ id: string;
481
+ };
482
+ };
483
+ output: {
484
+ data: {
485
+ createdAt: string;
486
+ updatedAt: string;
487
+ metadata: {
488
+ [x: string]: import("hono/utils/types").JSONValue;
489
+ } | null;
490
+ value: string;
491
+ id: string;
492
+ kind: "other" | "website" | "email" | "phone" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
493
+ notes: string | null;
494
+ entityType: string;
495
+ entityId: string;
496
+ isPrimary: boolean;
497
+ label: string | null;
498
+ normalizedValue: string | null;
499
+ };
500
+ };
501
+ outputFormat: "json";
502
+ status: 201;
503
+ };
504
+ };
505
+ } & {
506
+ "/:id/contacts": {
507
+ $get: {
508
+ input: {
509
+ param: {
510
+ id: string;
511
+ };
512
+ };
513
+ output: {
514
+ data: {
515
+ id: string;
516
+ entityType: string;
517
+ entityId: string;
518
+ role: "primary" | "other" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | "legal";
519
+ name: string;
520
+ title: string | null;
521
+ email: string | null;
522
+ phone: string | null;
523
+ isPrimary: boolean;
524
+ notes: string | null;
525
+ metadata: {
526
+ [x: string]: import("hono/utils/types").JSONValue;
527
+ } | null;
528
+ createdAt: string;
529
+ updatedAt: string;
530
+ }[];
531
+ };
532
+ outputFormat: "json";
533
+ status: import("hono/utils/http-status").ContentfulStatusCode;
534
+ };
535
+ };
536
+ } & {
537
+ "/:id/contacts": {
538
+ $post: {
539
+ input: {
540
+ param: {
541
+ id: string;
542
+ };
543
+ };
544
+ output: {
545
+ error: string;
546
+ };
547
+ outputFormat: "json";
548
+ status: 404;
549
+ } | {
550
+ input: {
551
+ param: {
552
+ id: string;
553
+ };
554
+ };
555
+ output: {
556
+ data: {
557
+ name: string;
558
+ createdAt: string;
559
+ updatedAt: string;
560
+ metadata: {
561
+ [x: string]: import("hono/utils/types").JSONValue;
562
+ } | null;
563
+ id: string;
564
+ title: string | null;
565
+ notes: string | null;
566
+ entityType: string;
567
+ entityId: string;
568
+ isPrimary: boolean;
569
+ email: string | null;
570
+ phone: string | null;
571
+ role: "primary" | "other" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | "legal";
572
+ };
573
+ };
574
+ outputFormat: "json";
575
+ status: 201;
576
+ };
577
+ };
578
+ } & {
579
+ "/:id/addresses": {
580
+ $get: {
581
+ input: {
582
+ param: {
583
+ id: string;
584
+ };
585
+ };
586
+ output: {
587
+ data: {
588
+ id: string;
589
+ entityType: string;
590
+ entityId: string;
591
+ label: "primary" | "other" | "service" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
592
+ fullText: string | null;
593
+ line1: string | null;
594
+ line2: string | null;
595
+ city: string | null;
596
+ region: string | null;
597
+ postalCode: string | null;
598
+ country: string | null;
599
+ latitude: number | null;
600
+ longitude: number | null;
601
+ timezone: string | null;
602
+ isPrimary: boolean;
603
+ notes: string | null;
604
+ metadata: {
605
+ [x: string]: import("hono/utils/types").JSONValue;
606
+ } | null;
607
+ createdAt: string;
608
+ updatedAt: string;
609
+ }[];
610
+ };
611
+ outputFormat: "json";
612
+ status: import("hono/utils/http-status").ContentfulStatusCode;
613
+ };
614
+ };
615
+ } & {
616
+ "/:id/addresses": {
617
+ $post: {
618
+ input: {
619
+ param: {
620
+ id: string;
621
+ };
622
+ };
623
+ output: {
624
+ error: string;
625
+ };
626
+ outputFormat: "json";
627
+ status: 404;
628
+ } | {
629
+ input: {
630
+ param: {
631
+ id: string;
632
+ };
633
+ };
634
+ output: {
635
+ data: {
636
+ createdAt: string;
637
+ updatedAt: string;
638
+ metadata: {
639
+ [x: string]: import("hono/utils/types").JSONValue;
640
+ } | null;
641
+ id: string;
642
+ notes: string | null;
643
+ entityType: string;
644
+ entityId: string;
645
+ isPrimary: boolean;
646
+ label: "primary" | "other" | "service" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
647
+ fullText: string | null;
648
+ line1: string | null;
649
+ line2: string | null;
650
+ city: string | null;
651
+ region: string | null;
652
+ postalCode: string | null;
653
+ country: string | null;
654
+ latitude: number | null;
655
+ longitude: number | null;
656
+ timezone: string | null;
657
+ };
658
+ };
659
+ outputFormat: "json";
660
+ status: 201;
661
+ };
662
+ };
663
+ } & {
664
+ "/:id/services": {
665
+ $get: {
666
+ input: {
667
+ param: {
668
+ id: string;
669
+ };
670
+ };
671
+ output: {
672
+ data: {
673
+ id: string;
674
+ supplierId: string;
675
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
676
+ facilityId: string | null;
677
+ name: string;
678
+ description: string | null;
679
+ duration: string | null;
680
+ capacity: number | null;
681
+ active: boolean;
682
+ tags: string[] | null;
683
+ createdAt: string;
684
+ updatedAt: string;
685
+ }[];
686
+ };
687
+ outputFormat: "json";
688
+ status: import("hono/utils/http-status").ContentfulStatusCode;
689
+ };
690
+ };
691
+ } & {
692
+ "/:id/services": {
693
+ $post: {
694
+ input: {
695
+ param: {
696
+ id: string;
697
+ };
698
+ };
699
+ output: {
700
+ error: string;
701
+ };
702
+ outputFormat: "json";
703
+ status: 404;
704
+ } | {
705
+ input: {
706
+ param: {
707
+ id: string;
708
+ };
709
+ };
710
+ output: {
711
+ data: {
712
+ duration: string | null;
713
+ name: string;
714
+ createdAt: string;
715
+ updatedAt: string;
716
+ description: string | null;
717
+ id: string;
718
+ active: boolean;
719
+ tags: string[] | null;
720
+ supplierId: string;
721
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
722
+ facilityId: string | null;
723
+ capacity: number | null;
724
+ };
725
+ };
726
+ outputFormat: "json";
727
+ status: 201;
728
+ };
729
+ };
730
+ } & {
731
+ "/:id/services/:serviceId": {
732
+ $patch: {
733
+ input: {
734
+ param: {
735
+ id: string;
736
+ } & {
737
+ serviceId: string;
738
+ };
739
+ };
740
+ output: {
741
+ error: string;
742
+ };
743
+ outputFormat: "json";
744
+ status: 404;
745
+ } | {
746
+ input: {
747
+ param: {
748
+ id: string;
749
+ } & {
750
+ serviceId: string;
751
+ };
752
+ };
753
+ output: {
754
+ data: {
755
+ id: string;
756
+ supplierId: string;
757
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
758
+ facilityId: string | null;
759
+ name: string;
760
+ description: string | null;
761
+ duration: string | null;
762
+ capacity: number | null;
763
+ active: boolean;
764
+ tags: string[] | null;
765
+ createdAt: string;
766
+ updatedAt: string;
767
+ };
768
+ };
769
+ outputFormat: "json";
770
+ status: import("hono/utils/http-status").ContentfulStatusCode;
771
+ };
772
+ };
773
+ } & {
774
+ "/:id/services/:serviceId": {
775
+ $delete: {
776
+ input: {
777
+ param: {
778
+ id: string;
779
+ } & {
780
+ serviceId: string;
781
+ };
782
+ };
783
+ output: {
784
+ error: string;
785
+ };
786
+ outputFormat: "json";
787
+ status: 404;
788
+ } | {
789
+ input: {
790
+ param: {
791
+ id: string;
792
+ } & {
793
+ serviceId: string;
794
+ };
795
+ };
796
+ output: {
797
+ success: true;
798
+ };
799
+ outputFormat: "json";
800
+ status: 200;
801
+ };
802
+ };
803
+ } & {
804
+ "/:id/services/:serviceId/rates": {
805
+ $get: {
806
+ input: {
807
+ param: {
808
+ id: string;
809
+ } & {
810
+ serviceId: string;
811
+ };
812
+ };
813
+ output: {
814
+ data: {
815
+ id: string;
816
+ serviceId: string;
817
+ name: string;
818
+ currency: string;
819
+ amountCents: number;
820
+ unit: "flat" | "per_person" | "per_group" | "per_night" | "per_vehicle";
821
+ validFrom: string | null;
822
+ validTo: string | null;
823
+ minPax: number | null;
824
+ maxPax: number | null;
825
+ notes: string | null;
826
+ createdAt: string;
827
+ }[];
828
+ };
829
+ outputFormat: "json";
830
+ status: import("hono/utils/http-status").ContentfulStatusCode;
831
+ };
832
+ };
833
+ } & {
834
+ "/:id/services/:serviceId/rates": {
835
+ $post: {
836
+ input: {
837
+ param: {
838
+ id: string;
839
+ } & {
840
+ serviceId: string;
841
+ };
842
+ };
843
+ output: {
844
+ error: string;
845
+ };
846
+ outputFormat: "json";
847
+ status: 404;
848
+ } | {
849
+ input: {
850
+ param: {
851
+ id: string;
852
+ } & {
853
+ serviceId: string;
854
+ };
855
+ };
856
+ output: {
857
+ data: {
858
+ name: string;
859
+ createdAt: string;
860
+ id: string;
861
+ notes: string | null;
862
+ validFrom: string | null;
863
+ validTo: string | null;
864
+ unit: "flat" | "per_person" | "per_group" | "per_night" | "per_vehicle";
865
+ amountCents: number;
866
+ serviceId: string;
867
+ currency: string;
868
+ minPax: number | null;
869
+ maxPax: number | null;
870
+ };
871
+ };
872
+ outputFormat: "json";
873
+ status: 201;
874
+ };
875
+ };
876
+ } & {
877
+ "/:id/services/:serviceId/rates/:rateId": {
878
+ $patch: {
879
+ input: {
880
+ param: {
881
+ id: string;
882
+ } & {
883
+ serviceId: string;
884
+ } & {
885
+ rateId: string;
886
+ };
887
+ };
888
+ output: {
889
+ error: string;
890
+ };
891
+ outputFormat: "json";
892
+ status: 404;
893
+ } | {
894
+ input: {
895
+ param: {
896
+ id: string;
897
+ } & {
898
+ serviceId: string;
899
+ } & {
900
+ rateId: string;
901
+ };
902
+ };
903
+ output: {
904
+ data: {
905
+ id: string;
906
+ serviceId: string;
907
+ name: string;
908
+ currency: string;
909
+ amountCents: number;
910
+ unit: "flat" | "per_person" | "per_group" | "per_night" | "per_vehicle";
911
+ validFrom: string | null;
912
+ validTo: string | null;
913
+ minPax: number | null;
914
+ maxPax: number | null;
915
+ notes: string | null;
916
+ createdAt: string;
917
+ };
918
+ };
919
+ outputFormat: "json";
920
+ status: import("hono/utils/http-status").ContentfulStatusCode;
921
+ };
922
+ };
923
+ } & {
924
+ "/:id/services/:serviceId/rates/:rateId": {
925
+ $delete: {
926
+ input: {
927
+ param: {
928
+ id: string;
929
+ } & {
930
+ serviceId: string;
931
+ } & {
932
+ rateId: string;
933
+ };
934
+ };
935
+ output: {
936
+ error: string;
937
+ };
938
+ outputFormat: "json";
939
+ status: 404;
940
+ } | {
941
+ input: {
942
+ param: {
943
+ id: string;
944
+ } & {
945
+ serviceId: string;
946
+ } & {
947
+ rateId: string;
948
+ };
949
+ };
950
+ output: {
951
+ success: true;
952
+ };
953
+ outputFormat: "json";
954
+ status: 200;
955
+ };
956
+ };
957
+ } & {
958
+ "/:id/notes": {
959
+ $get: {
960
+ input: {
961
+ param: {
962
+ id: string;
963
+ };
964
+ };
965
+ output: {
966
+ data: {
967
+ id: string;
968
+ supplierId: string;
969
+ authorId: string;
970
+ content: string;
971
+ createdAt: string;
972
+ }[];
973
+ };
974
+ outputFormat: "json";
975
+ status: import("hono/utils/http-status").ContentfulStatusCode;
976
+ };
977
+ };
978
+ } & {
979
+ "/:id/notes": {
980
+ $post: {
981
+ input: {
982
+ param: {
983
+ id: string;
984
+ };
985
+ };
986
+ output: {
987
+ error: string;
988
+ };
989
+ outputFormat: "json";
990
+ status: 404;
991
+ } | {
992
+ input: {
993
+ param: {
994
+ id: string;
995
+ };
996
+ };
997
+ output: {
998
+ data: {
999
+ createdAt: string;
1000
+ id: string;
1001
+ content: string;
1002
+ supplierId: string;
1003
+ authorId: string;
1004
+ };
1005
+ };
1006
+ outputFormat: "json";
1007
+ status: 201;
1008
+ };
1009
+ };
1010
+ } & {
1011
+ "/:id/availability": {
1012
+ $get: {
1013
+ input: {
1014
+ param: {
1015
+ id: string;
1016
+ };
1017
+ };
1018
+ output: {
1019
+ data: {
1020
+ id: string;
1021
+ supplierId: string;
1022
+ date: string;
1023
+ available: boolean;
1024
+ notes: string | null;
1025
+ createdAt: string;
1026
+ }[];
1027
+ };
1028
+ outputFormat: "json";
1029
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1030
+ };
1031
+ };
1032
+ } & {
1033
+ "/:id/availability": {
1034
+ $post: {
1035
+ input: {
1036
+ param: {
1037
+ id: string;
1038
+ };
1039
+ };
1040
+ output: {
1041
+ error: string;
1042
+ };
1043
+ outputFormat: "json";
1044
+ status: 404;
1045
+ } | {
1046
+ input: {
1047
+ param: {
1048
+ id: string;
1049
+ };
1050
+ };
1051
+ output: {
1052
+ data: {
1053
+ date: string;
1054
+ createdAt: string;
1055
+ id: string;
1056
+ supplierId: string;
1057
+ notes: string | null;
1058
+ available: boolean;
1059
+ }[];
1060
+ };
1061
+ outputFormat: "json";
1062
+ status: 201;
1063
+ };
1064
+ };
1065
+ } & {
1066
+ "/:id/contracts": {
1067
+ $get: {
1068
+ input: {
1069
+ param: {
1070
+ id: string;
1071
+ };
1072
+ };
1073
+ output: {
1074
+ data: {
1075
+ id: string;
1076
+ supplierId: string;
1077
+ agreementNumber: string | null;
1078
+ startDate: string;
1079
+ endDate: string | null;
1080
+ renewalDate: string | null;
1081
+ terms: string | null;
1082
+ status: "active" | "pending" | "expired" | "terminated";
1083
+ createdAt: string;
1084
+ updatedAt: string;
1085
+ }[];
1086
+ };
1087
+ outputFormat: "json";
1088
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1089
+ };
1090
+ };
1091
+ } & {
1092
+ "/:id/contracts": {
1093
+ $post: {
1094
+ input: {
1095
+ param: {
1096
+ id: string;
1097
+ };
1098
+ };
1099
+ output: {
1100
+ error: string;
1101
+ };
1102
+ outputFormat: "json";
1103
+ status: 404;
1104
+ } | {
1105
+ input: {
1106
+ param: {
1107
+ id: string;
1108
+ };
1109
+ };
1110
+ output: {
1111
+ data: {
1112
+ createdAt: string;
1113
+ updatedAt: string;
1114
+ id: string;
1115
+ status: "active" | "pending" | "expired" | "terminated";
1116
+ supplierId: string;
1117
+ startDate: string;
1118
+ endDate: string | null;
1119
+ agreementNumber: string | null;
1120
+ renewalDate: string | null;
1121
+ terms: string | null;
1122
+ };
1123
+ };
1124
+ outputFormat: "json";
1125
+ status: 201;
1126
+ };
1127
+ };
1128
+ } & {
1129
+ "/:id/contracts/:contractId": {
1130
+ $patch: {
1131
+ input: {
1132
+ param: {
1133
+ id: string;
1134
+ } & {
1135
+ contractId: string;
1136
+ };
1137
+ };
1138
+ output: {
1139
+ error: string;
1140
+ };
1141
+ outputFormat: "json";
1142
+ status: 404;
1143
+ } | {
1144
+ input: {
1145
+ param: {
1146
+ id: string;
1147
+ } & {
1148
+ contractId: string;
1149
+ };
1150
+ };
1151
+ output: {
1152
+ data: {
1153
+ id: string;
1154
+ supplierId: string;
1155
+ agreementNumber: string | null;
1156
+ startDate: string;
1157
+ endDate: string | null;
1158
+ renewalDate: string | null;
1159
+ terms: string | null;
1160
+ status: "active" | "pending" | "expired" | "terminated";
1161
+ createdAt: string;
1162
+ updatedAt: string;
1163
+ };
1164
+ };
1165
+ outputFormat: "json";
1166
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1167
+ };
1168
+ };
1169
+ } & {
1170
+ "/:id/contracts/:contractId": {
1171
+ $delete: {
1172
+ input: {
1173
+ param: {
1174
+ id: string;
1175
+ } & {
1176
+ contractId: string;
1177
+ };
1178
+ };
1179
+ output: {
1180
+ error: string;
1181
+ };
1182
+ outputFormat: "json";
1183
+ status: 404;
1184
+ } | {
1185
+ input: {
1186
+ param: {
1187
+ id: string;
1188
+ } & {
1189
+ contractId: string;
1190
+ };
1191
+ };
1192
+ output: {
1193
+ success: true;
1194
+ };
1195
+ outputFormat: "json";
1196
+ status: 200;
1197
+ };
1198
+ };
1199
+ }, "/", "/:id/contracts/:contractId">;
1200
+ export type SupplierRoutes = typeof supplierRoutes;
1201
+ export {};
1202
+ //# sourceMappingURL=routes.d.ts.map