@voyant-travel/finance 0.151.3 → 0.152.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.
- package/dist/booking-lifecycle.d.ts +13 -0
- package/dist/booking-lifecycle.d.ts.map +1 -0
- package/dist/booking-lifecycle.js +64 -0
- package/dist/booking-schedule/subscriber-runtime.d.ts +20 -0
- package/dist/booking-schedule/subscriber-runtime.d.ts.map +1 -0
- package/dist/booking-schedule/subscriber-runtime.js +39 -0
- package/dist/booking-tax.d.ts +31 -21
- package/dist/booking-tax.d.ts.map +1 -1
- package/dist/booking-tax.js +84 -13
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -7
- package/dist/mcp-runtime.d.ts +3 -0
- package/dist/mcp-runtime.d.ts.map +1 -0
- package/dist/mcp-runtime.js +16 -0
- package/dist/payment-schedule/routes.d.ts +1 -0
- package/dist/payment-schedule/routes.d.ts.map +1 -1
- package/dist/payment-schedule/routes.js +32 -0
- package/dist/routes-action-ledger.d.ts +19 -19
- package/dist/routes-booking-billing.d.ts +30 -30
- package/dist/routes-booking-create.d.ts.map +1 -1
- package/dist/routes-booking-create.js +2 -0
- package/dist/routes-booking-reads.d.ts +11 -11
- package/dist/routes-invoice-core.d.ts +11 -11
- package/dist/routes-public.d.ts +24 -24
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +12 -0
- package/dist/routes-reference-data.d.ts +15 -15
- package/dist/routes-reports.d.ts +11 -11
- package/dist/routes-settlement.d.ts +11 -11
- package/dist/routes-supplier-invoices.d.ts +20 -20
- package/dist/routes.d.ts +78 -78
- package/dist/runtime-contributor.d.ts +7 -0
- package/dist/runtime-contributor.d.ts.map +1 -0
- package/dist/runtime-contributor.js +17 -0
- package/dist/runtime-port.d.ts +70 -0
- package/dist/runtime-port.d.ts.map +1 -0
- package/dist/runtime-port.js +47 -0
- package/dist/runtime.d.ts +10 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +98 -0
- package/dist/stale-booking-holds-runtime.d.ts +9 -0
- package/dist/stale-booking-holds-runtime.d.ts.map +1 -0
- package/dist/stale-booking-holds-runtime.js +25 -0
- package/dist/voyant.d.ts.map +1 -1
- package/dist/voyant.js +157 -8
- package/openapi/admin/booking-tax.json +86 -0
- package/openapi/admin/finance.json +36583 -0
- package/openapi/storefront/finance.json +3678 -0
- package/package.json +45 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/payment-schedule/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAe,WAAW,EAAK,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/payment-schedule/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAe,WAAW,EAAK,MAAM,mBAAmB,CAAA;AAM/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAEzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAa9E,YAAY,EAAE,0BAA0B,EAAE,CAAA;AAE1C;;;;;;;;GAQG;AACH,MAAM,WAAW,4BAA4B;IAC3C,gFAAgF;IAChF,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAA;IACzC,yEAAyE;IACzE,mCAAmC,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAG1F,8EAA8E;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;;QAKrF;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAIpF;AAED,yFAAyF;AACzF,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,4BAA4B,GACpC,aAAa,CAQf;AAED,eAAO,MAAM,kCAAkC,gFAgC9C,CAAA"}
|
|
@@ -25,9 +25,13 @@
|
|
|
25
25
|
import { createRoute, OpenAPIHono, z } from "@hono/zod-openapi";
|
|
26
26
|
import { appendActionLedgerMutation } from "@voyant-travel/action-ledger";
|
|
27
27
|
import { bookingActivityLog, bookings } from "@voyant-travel/bookings/schema";
|
|
28
|
+
import { defineGraphRuntimeFactory } from "@voyant-travel/core/project";
|
|
28
29
|
import { openApiValidationHook, parseJsonBody } from "@voyant-travel/hono";
|
|
29
30
|
import { asc, eq } from "drizzle-orm";
|
|
31
|
+
import { BOOKING_SCHEDULE_SUBSCRIBER_RUNTIME_KEY } from "../booking-schedule/subscriber-runtime.js";
|
|
30
32
|
import { computePaymentSchedule, noDepositPolicy, resolveEffectivePaymentPolicy, } from "../payment-policy.js";
|
|
33
|
+
import { createFinanceBookingScheduleRuntime } from "../runtime.js";
|
|
34
|
+
import { financeAccommodationsPaymentPolicyRuntimePort, financeCruisesPaymentPolicyRuntimePort, financeDistributionPaymentPolicyRuntimePort, financeHostRuntimePort, financeInventoryPaymentPolicyRuntimePort, financeOperatorSettingsRuntimePort, } from "../runtime-port.js";
|
|
31
35
|
import { bookingPaymentSchedules } from "../schema/booking-billing.js";
|
|
32
36
|
import { financeService } from "../service.js";
|
|
33
37
|
/**
|
|
@@ -169,6 +173,7 @@ const regenerateScheduleResponseSchema = z.object({
|
|
|
169
173
|
const regenerateScheduleRoute = createRoute({
|
|
170
174
|
method: "post",
|
|
171
175
|
path: "/{bookingId}/payment-schedule/regenerate",
|
|
176
|
+
"x-voyant-api-id": "@voyant-travel/finance#booking-schedule-extension.api.admin",
|
|
172
177
|
request: { params: z.object({ bookingId: z.string() }) },
|
|
173
178
|
responses: {
|
|
174
179
|
200: {
|
|
@@ -294,6 +299,7 @@ const resolvePolicyResponseSchema = z.object({
|
|
|
294
299
|
const resolvePolicyRoute = createRoute({
|
|
295
300
|
method: "post",
|
|
296
301
|
path: "/resolve",
|
|
302
|
+
"x-voyant-api-id": "@voyant-travel/finance#booking-schedule-extension.api.public",
|
|
297
303
|
request: {
|
|
298
304
|
body: {
|
|
299
305
|
required: true,
|
|
@@ -366,3 +372,29 @@ export function createBookingScheduleHonoExtension(options) {
|
|
|
366
372
|
anonymous: true,
|
|
367
373
|
};
|
|
368
374
|
}
|
|
375
|
+
export const createBookingScheduleVoyantRuntime = defineGraphRuntimeFactory(async ({ api, getPort }) => {
|
|
376
|
+
const provider = createFinanceBookingScheduleRuntime(await getPort(financeHostRuntimePort), await getPort(financeOperatorSettingsRuntimePort), await getPort(financeDistributionPaymentPolicyRuntimePort), await getPort(financeAccommodationsPaymentPolicyRuntimePort), await getPort(financeCruisesPaymentPolicyRuntimePort), await getPort(financeInventoryPaymentPolicyRuntimePort));
|
|
377
|
+
const configured = createBookingScheduleHonoExtension(provider.options);
|
|
378
|
+
const selected = {
|
|
379
|
+
extension: {
|
|
380
|
+
...configured.extension,
|
|
381
|
+
bootstrap: async ({ container }) => {
|
|
382
|
+
container.register(BOOKING_SCHEDULE_SUBSCRIBER_RUNTIME_KEY, {
|
|
383
|
+
resolveRoutesOptions: () => provider.options,
|
|
384
|
+
withDb: provider.withDb,
|
|
385
|
+
});
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
};
|
|
389
|
+
if (api.some(({ surface }) => surface === "admin") && configured.lazyAdminRoutes) {
|
|
390
|
+
selected.lazyAdminRoutes = configured.lazyAdminRoutes;
|
|
391
|
+
}
|
|
392
|
+
if (api.some(({ surface }) => surface === "public") && configured.lazyPublicRoutes) {
|
|
393
|
+
selected.lazyPublicRoutes = configured.lazyPublicRoutes;
|
|
394
|
+
if (configured.publicPath !== undefined)
|
|
395
|
+
selected.publicPath = configured.publicPath;
|
|
396
|
+
if (configured.anonymous !== undefined)
|
|
397
|
+
selected.anonymous = configured.anonymous;
|
|
398
|
+
}
|
|
399
|
+
return selected;
|
|
400
|
+
});
|
|
@@ -36,6 +36,17 @@ declare function getPaymentSessionLedgerTarget(session: {
|
|
|
36
36
|
export declare const financeActionLedgerRoutes: OpenAPIHono<Env, {
|
|
37
37
|
[x: string]: {
|
|
38
38
|
$get: {
|
|
39
|
+
input: {
|
|
40
|
+
param: {
|
|
41
|
+
[x: string]: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
output: {
|
|
45
|
+
error: string;
|
|
46
|
+
};
|
|
47
|
+
outputFormat: "json";
|
|
48
|
+
status: 404;
|
|
49
|
+
} | {
|
|
39
50
|
input: {
|
|
40
51
|
param: {
|
|
41
52
|
[x: string]: string;
|
|
@@ -47,7 +58,7 @@ export declare const financeActionLedgerRoutes: OpenAPIHono<Env, {
|
|
|
47
58
|
occurredAt: string;
|
|
48
59
|
actionName: string;
|
|
49
60
|
actionVersion: string;
|
|
50
|
-
actionKind: "reverse" | "execute" | "
|
|
61
|
+
actionKind: "reverse" | "execute" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
51
62
|
status: "failed" | "cancelled" | "expired" | "approved" | "requested" | "awaiting_approval" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
52
63
|
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
53
64
|
actorType: string | null;
|
|
@@ -89,7 +100,11 @@ export declare const financeActionLedgerRoutes: OpenAPIHono<Env, {
|
|
|
89
100
|
};
|
|
90
101
|
outputFormat: "json";
|
|
91
102
|
status: 200;
|
|
92
|
-
}
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
} & {
|
|
106
|
+
[x: string]: {
|
|
107
|
+
$get: {
|
|
93
108
|
input: {
|
|
94
109
|
param: {
|
|
95
110
|
[x: string]: string;
|
|
@@ -100,11 +115,7 @@ export declare const financeActionLedgerRoutes: OpenAPIHono<Env, {
|
|
|
100
115
|
};
|
|
101
116
|
outputFormat: "json";
|
|
102
117
|
status: 404;
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
} & {
|
|
106
|
-
[x: string]: {
|
|
107
|
-
$get: {
|
|
118
|
+
} | {
|
|
108
119
|
input: {
|
|
109
120
|
param: {
|
|
110
121
|
[x: string]: string;
|
|
@@ -116,7 +127,7 @@ export declare const financeActionLedgerRoutes: OpenAPIHono<Env, {
|
|
|
116
127
|
occurredAt: string;
|
|
117
128
|
actionName: string;
|
|
118
129
|
actionVersion: string;
|
|
119
|
-
actionKind: "reverse" | "execute" | "
|
|
130
|
+
actionKind: "reverse" | "execute" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
|
|
120
131
|
status: "failed" | "cancelled" | "expired" | "approved" | "requested" | "awaiting_approval" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
|
|
121
132
|
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
122
133
|
actorType: string | null;
|
|
@@ -158,17 +169,6 @@ export declare const financeActionLedgerRoutes: OpenAPIHono<Env, {
|
|
|
158
169
|
};
|
|
159
170
|
outputFormat: "json";
|
|
160
171
|
status: 200;
|
|
161
|
-
} | {
|
|
162
|
-
input: {
|
|
163
|
-
param: {
|
|
164
|
-
[x: string]: string;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
output: {
|
|
168
|
-
error: string;
|
|
169
|
-
};
|
|
170
|
-
outputFormat: "json";
|
|
171
|
-
status: 404;
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
174
|
}, "/">;
|
|
@@ -86,13 +86,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
86
86
|
};
|
|
87
87
|
output: {
|
|
88
88
|
error: string;
|
|
89
|
-
code: string;
|
|
90
|
-
details?: {
|
|
91
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
92
|
-
} | undefined;
|
|
93
89
|
};
|
|
94
90
|
outputFormat: "json";
|
|
95
|
-
status:
|
|
91
|
+
status: 404;
|
|
96
92
|
} | {
|
|
97
93
|
input: {
|
|
98
94
|
param: {
|
|
@@ -114,9 +110,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
114
110
|
};
|
|
115
111
|
output: {
|
|
116
112
|
error: string;
|
|
113
|
+
code: string;
|
|
114
|
+
details?: {
|
|
115
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
116
|
+
} | undefined;
|
|
117
117
|
};
|
|
118
118
|
outputFormat: "json";
|
|
119
|
-
status:
|
|
119
|
+
status: 400;
|
|
120
120
|
} | {
|
|
121
121
|
input: {
|
|
122
122
|
param: {
|
|
@@ -182,13 +182,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
182
182
|
};
|
|
183
183
|
output: {
|
|
184
184
|
error: string;
|
|
185
|
-
code: string;
|
|
186
|
-
details?: {
|
|
187
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
188
|
-
} | undefined;
|
|
189
185
|
};
|
|
190
186
|
outputFormat: "json";
|
|
191
|
-
status:
|
|
187
|
+
status: 404;
|
|
192
188
|
} | {
|
|
193
189
|
input: {
|
|
194
190
|
param: {
|
|
@@ -211,9 +207,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
211
207
|
};
|
|
212
208
|
output: {
|
|
213
209
|
error: string;
|
|
210
|
+
code: string;
|
|
211
|
+
details?: {
|
|
212
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
213
|
+
} | undefined;
|
|
214
214
|
};
|
|
215
215
|
outputFormat: "json";
|
|
216
|
-
status:
|
|
216
|
+
status: 400;
|
|
217
217
|
} | {
|
|
218
218
|
input: {
|
|
219
219
|
param: {
|
|
@@ -1116,13 +1116,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
1116
1116
|
};
|
|
1117
1117
|
output: {
|
|
1118
1118
|
error: string;
|
|
1119
|
-
code: string;
|
|
1120
|
-
details?: {
|
|
1121
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1122
|
-
} | undefined;
|
|
1123
1119
|
};
|
|
1124
1120
|
outputFormat: "json";
|
|
1125
|
-
status:
|
|
1121
|
+
status: 404;
|
|
1126
1122
|
} | {
|
|
1127
1123
|
input: {
|
|
1128
1124
|
param: {
|
|
@@ -1132,9 +1128,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
1132
1128
|
};
|
|
1133
1129
|
output: {
|
|
1134
1130
|
error: string;
|
|
1131
|
+
code: string;
|
|
1132
|
+
details?: {
|
|
1133
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1134
|
+
} | undefined;
|
|
1135
1135
|
};
|
|
1136
1136
|
outputFormat: "json";
|
|
1137
|
-
status:
|
|
1137
|
+
status: 400;
|
|
1138
1138
|
} | {
|
|
1139
1139
|
input: {
|
|
1140
1140
|
param: {
|
|
@@ -1229,13 +1229,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
1229
1229
|
};
|
|
1230
1230
|
output: {
|
|
1231
1231
|
error: string;
|
|
1232
|
-
code: string;
|
|
1233
|
-
details?: {
|
|
1234
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1235
|
-
} | undefined;
|
|
1236
1232
|
};
|
|
1237
1233
|
outputFormat: "json";
|
|
1238
|
-
status:
|
|
1234
|
+
status: 404;
|
|
1239
1235
|
} | {
|
|
1240
1236
|
input: {
|
|
1241
1237
|
param: {
|
|
@@ -1254,9 +1250,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
1254
1250
|
};
|
|
1255
1251
|
output: {
|
|
1256
1252
|
error: string;
|
|
1253
|
+
code: string;
|
|
1254
|
+
details?: {
|
|
1255
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1256
|
+
} | undefined;
|
|
1257
1257
|
};
|
|
1258
1258
|
outputFormat: "json";
|
|
1259
|
-
status:
|
|
1259
|
+
status: 400;
|
|
1260
1260
|
} | {
|
|
1261
1261
|
input: {
|
|
1262
1262
|
param: {
|
|
@@ -1388,13 +1388,9 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
1388
1388
|
};
|
|
1389
1389
|
output: {
|
|
1390
1390
|
error: string;
|
|
1391
|
-
code: string;
|
|
1392
|
-
details?: {
|
|
1393
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1394
|
-
} | undefined;
|
|
1395
1391
|
};
|
|
1396
1392
|
outputFormat: "json";
|
|
1397
|
-
status:
|
|
1393
|
+
status: 404;
|
|
1398
1394
|
} | {
|
|
1399
1395
|
input: {
|
|
1400
1396
|
param: {
|
|
@@ -1414,9 +1410,13 @@ export declare const financeBookingBillingRoutes: OpenAPIHono<Env, import("hono/
|
|
|
1414
1410
|
};
|
|
1415
1411
|
output: {
|
|
1416
1412
|
error: string;
|
|
1413
|
+
code: string;
|
|
1414
|
+
details?: {
|
|
1415
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1416
|
+
} | undefined;
|
|
1417
1417
|
};
|
|
1418
1418
|
outputFormat: "json";
|
|
1419
|
-
status:
|
|
1419
|
+
status: 400;
|
|
1420
1420
|
} | {
|
|
1421
1421
|
input: {
|
|
1422
1422
|
param: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes-booking-create.d.ts","sourceRoot":"","sources":["../src/routes-booking-create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"routes-booking-create.d.ts","sourceRoot":"","sources":["../src/routes-booking-create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAgY/D,eAAO,MAAM,uBAAuB,EAAE,aAIrC,CAAA"}
|
|
@@ -118,6 +118,7 @@ function getBookingCreateActionLedgerRequestContext(c) {
|
|
|
118
118
|
const createBookingRoute = createRoute({
|
|
119
119
|
method: "post",
|
|
120
120
|
path: "/create",
|
|
121
|
+
"x-voyant-api-id": "@voyant-travel/finance#bookings-create-extension.api",
|
|
121
122
|
request: {
|
|
122
123
|
body: {
|
|
123
124
|
required: true,
|
|
@@ -147,6 +148,7 @@ const createBookingRoute = createRoute({
|
|
|
147
148
|
const dualCreateBookingRoute = createRoute({
|
|
148
149
|
method: "post",
|
|
149
150
|
path: "/dual-create",
|
|
151
|
+
"x-voyant-api-id": "@voyant-travel/finance#bookings-create-extension.api",
|
|
150
152
|
request: {
|
|
151
153
|
body: {
|
|
152
154
|
required: true,
|
|
@@ -19,6 +19,17 @@ import type { Env } from "./routes-shared.js";
|
|
|
19
19
|
export declare const financeBookingReadRoutes: OpenAPIHono<Env, {
|
|
20
20
|
"/bookings/:bookingId/payments": {
|
|
21
21
|
$get: {
|
|
22
|
+
input: {
|
|
23
|
+
param: {
|
|
24
|
+
bookingId: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
output: {
|
|
28
|
+
error: string;
|
|
29
|
+
};
|
|
30
|
+
outputFormat: "json";
|
|
31
|
+
status: 404;
|
|
32
|
+
} | {
|
|
22
33
|
input: {
|
|
23
34
|
param: {
|
|
24
35
|
bookingId: string;
|
|
@@ -47,17 +58,6 @@ export declare const financeBookingReadRoutes: OpenAPIHono<Env, {
|
|
|
47
58
|
};
|
|
48
59
|
outputFormat: "json";
|
|
49
60
|
status: 200;
|
|
50
|
-
} | {
|
|
51
|
-
input: {
|
|
52
|
-
param: {
|
|
53
|
-
bookingId: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
output: {
|
|
57
|
-
error: string;
|
|
58
|
-
};
|
|
59
|
-
outputFormat: "json";
|
|
60
|
-
status: 404;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
}, "/">;
|
|
@@ -842,6 +842,17 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
|
|
|
842
842
|
}, "/"> & import("hono/types").MergeSchemaPath<{
|
|
843
843
|
"/invoices/:id": {
|
|
844
844
|
$get: {
|
|
845
|
+
input: {
|
|
846
|
+
param: {
|
|
847
|
+
id: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
output: {
|
|
851
|
+
error: string;
|
|
852
|
+
};
|
|
853
|
+
outputFormat: "json";
|
|
854
|
+
status: 404;
|
|
855
|
+
} | {
|
|
845
856
|
input: {
|
|
846
857
|
param: {
|
|
847
858
|
id: string;
|
|
@@ -890,17 +901,6 @@ export declare const financeInvoiceCoreRoutes: OpenAPIHono<Env, import("hono/typ
|
|
|
890
901
|
};
|
|
891
902
|
outputFormat: "json";
|
|
892
903
|
status: 200;
|
|
893
|
-
} | {
|
|
894
|
-
input: {
|
|
895
|
-
param: {
|
|
896
|
-
id: string;
|
|
897
|
-
};
|
|
898
|
-
};
|
|
899
|
-
output: {
|
|
900
|
-
error: string;
|
|
901
|
-
};
|
|
902
|
-
outputFormat: "json";
|
|
903
|
-
status: 404;
|
|
904
904
|
};
|
|
905
905
|
};
|
|
906
906
|
} & {
|
package/dist/routes-public.d.ts
CHANGED
|
@@ -1352,6 +1352,18 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1352
1352
|
} & {
|
|
1353
1353
|
"/documents/by-reference": {
|
|
1354
1354
|
$get: {
|
|
1355
|
+
input: {
|
|
1356
|
+
query: {
|
|
1357
|
+
reference: string;
|
|
1358
|
+
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
output: {
|
|
1362
|
+
error: string;
|
|
1363
|
+
};
|
|
1364
|
+
outputFormat: "json";
|
|
1365
|
+
status: 404;
|
|
1366
|
+
} | {
|
|
1355
1367
|
input: {
|
|
1356
1368
|
query: {
|
|
1357
1369
|
reference: string;
|
|
@@ -1383,18 +1395,6 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
|
|
|
1383
1395
|
};
|
|
1384
1396
|
outputFormat: "json";
|
|
1385
1397
|
status: 200;
|
|
1386
|
-
} | {
|
|
1387
|
-
input: {
|
|
1388
|
-
query: {
|
|
1389
|
-
reference: string;
|
|
1390
|
-
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
1391
|
-
};
|
|
1392
|
-
};
|
|
1393
|
-
output: {
|
|
1394
|
-
error: string;
|
|
1395
|
-
};
|
|
1396
|
-
outputFormat: "json";
|
|
1397
|
-
status: 404;
|
|
1398
1398
|
};
|
|
1399
1399
|
};
|
|
1400
1400
|
}, "/">, "/">;
|
|
@@ -2747,6 +2747,18 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2747
2747
|
} & {
|
|
2748
2748
|
"/documents/by-reference": {
|
|
2749
2749
|
$get: {
|
|
2750
|
+
input: {
|
|
2751
|
+
query: {
|
|
2752
|
+
reference: string;
|
|
2753
|
+
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
2754
|
+
};
|
|
2755
|
+
};
|
|
2756
|
+
output: {
|
|
2757
|
+
error: string;
|
|
2758
|
+
};
|
|
2759
|
+
outputFormat: "json";
|
|
2760
|
+
status: 404;
|
|
2761
|
+
} | {
|
|
2750
2762
|
input: {
|
|
2751
2763
|
query: {
|
|
2752
2764
|
reference: string;
|
|
@@ -2778,18 +2790,6 @@ export declare const publicFinanceRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
2778
2790
|
};
|
|
2779
2791
|
outputFormat: "json";
|
|
2780
2792
|
status: 200;
|
|
2781
|
-
} | {
|
|
2782
|
-
input: {
|
|
2783
|
-
query: {
|
|
2784
|
-
reference: string;
|
|
2785
|
-
invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
|
|
2786
|
-
};
|
|
2787
|
-
};
|
|
2788
|
-
output: {
|
|
2789
|
-
error: string;
|
|
2790
|
-
};
|
|
2791
|
-
outputFormat: "json";
|
|
2792
|
-
status: 404;
|
|
2793
2793
|
};
|
|
2794
2794
|
};
|
|
2795
2795
|
}, "/">, "/">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes-public.d.ts","sourceRoot":"","sources":["../src/routes-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAK,MAAM,mBAAmB,CAAA;AAW/D,OAAO,EAAE,KAAK,GAAG,EAA2B,MAAM,oBAAoB,CAAA;AAqBtE,MAAM,WAAW,yBAAyB;IACxC,0BAA0B,CAAC,EAAE,CAC3B,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,GAAG,IAAI,CAAA;CAC5C;
|
|
1
|
+
{"version":3,"file":"routes-public.d.ts","sourceRoot":"","sources":["../src/routes-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAK,MAAM,mBAAmB,CAAA;AAW/D,OAAO,EAAE,KAAK,GAAG,EAA2B,MAAM,oBAAoB,CAAA;AAqBtE,MAAM,WAAW,yBAAyB;IACxC,0BAA0B,CAAC,EAAE,CAC3B,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,GAAG,IAAI,CAAA;CAC5C;AAyVD,wBAAgB,yBAAyB,CAAC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAA8B,CAAA;AAE9D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
|
package/dist/routes-public.js
CHANGED
|
@@ -49,6 +49,7 @@ function invoiceCheckoutCapability(action) {
|
|
|
49
49
|
// re-check the checkout capability in the handler).
|
|
50
50
|
// ─────────────────────────────────────────────────────────────────
|
|
51
51
|
const validateVoucherRoute = createRoute({
|
|
52
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
52
53
|
method: "post",
|
|
53
54
|
path: "/vouchers/validate",
|
|
54
55
|
request: {
|
|
@@ -67,6 +68,7 @@ const validateVoucherRoute = createRoute({
|
|
|
67
68
|
},
|
|
68
69
|
});
|
|
69
70
|
const documentByReferenceRoute = createRoute({
|
|
71
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
70
72
|
method: "get",
|
|
71
73
|
path: "/documents/by-reference",
|
|
72
74
|
request: { query: publicFinanceDocumentLookupQuerySchema },
|
|
@@ -89,6 +91,7 @@ const documentByReferenceRoute = createRoute({
|
|
|
89
91
|
// ─────────────────────────────────────────────────────────────────
|
|
90
92
|
const bookingParamsSchema = z.object({ bookingId: z.string() });
|
|
91
93
|
const bookingDocumentsRoute = createRoute({
|
|
94
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
92
95
|
method: "get",
|
|
93
96
|
path: "/bookings/{bookingId}/documents",
|
|
94
97
|
request: { params: bookingParamsSchema },
|
|
@@ -106,6 +109,7 @@ const bookingDocumentsRoute = createRoute({
|
|
|
106
109
|
},
|
|
107
110
|
});
|
|
108
111
|
const bookingDocumentByReferenceRoute = createRoute({
|
|
112
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
109
113
|
method: "get",
|
|
110
114
|
path: "/bookings/{bookingId}/documents/by-reference",
|
|
111
115
|
request: { params: bookingParamsSchema, query: publicFinanceDocumentLookupQuerySchema },
|
|
@@ -123,6 +127,7 @@ const bookingDocumentByReferenceRoute = createRoute({
|
|
|
123
127
|
},
|
|
124
128
|
});
|
|
125
129
|
const bookingPaymentsRoute = createRoute({
|
|
130
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
126
131
|
method: "get",
|
|
127
132
|
path: "/bookings/{bookingId}/payments",
|
|
128
133
|
request: { params: bookingParamsSchema },
|
|
@@ -140,6 +145,7 @@ const bookingPaymentsRoute = createRoute({
|
|
|
140
145
|
},
|
|
141
146
|
});
|
|
142
147
|
const bookingPaymentOptionsRoute = createRoute({
|
|
148
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
143
149
|
method: "get",
|
|
144
150
|
path: "/bookings/{bookingId}/payment-options",
|
|
145
151
|
request: { params: bookingParamsSchema, query: publicPaymentOptionsQuerySchema },
|
|
@@ -157,6 +163,7 @@ const bookingPaymentOptionsRoute = createRoute({
|
|
|
157
163
|
},
|
|
158
164
|
});
|
|
159
165
|
const paymentSessionByIdRoute = createRoute({
|
|
166
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
160
167
|
method: "get",
|
|
161
168
|
path: "/payment-sessions/{sessionId}",
|
|
162
169
|
request: { params: z.object({ sessionId: z.string() }) },
|
|
@@ -175,6 +182,7 @@ const paymentSessionByIdRoute = createRoute({
|
|
|
175
182
|
// Payment-session mutations (capability + idempotency middleware).
|
|
176
183
|
// ─────────────────────────────────────────────────────────────────
|
|
177
184
|
const startSchedulePaymentSessionRoute = createRoute({
|
|
185
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
178
186
|
method: "post",
|
|
179
187
|
path: "/bookings/{bookingId}/payment-schedules/{scheduleId}/payment-session",
|
|
180
188
|
request: {
|
|
@@ -200,6 +208,7 @@ const startSchedulePaymentSessionRoute = createRoute({
|
|
|
200
208
|
},
|
|
201
209
|
});
|
|
202
210
|
const startGuaranteePaymentSessionRoute = createRoute({
|
|
211
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
203
212
|
method: "post",
|
|
204
213
|
path: "/bookings/{bookingId}/guarantees/{guaranteeId}/payment-session",
|
|
205
214
|
request: {
|
|
@@ -225,6 +234,7 @@ const startGuaranteePaymentSessionRoute = createRoute({
|
|
|
225
234
|
},
|
|
226
235
|
});
|
|
227
236
|
const startInvoicePaymentSessionRoute = createRoute({
|
|
237
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
228
238
|
method: "post",
|
|
229
239
|
path: "/invoices/{invoiceId}/payment-session",
|
|
230
240
|
request: {
|
|
@@ -262,6 +272,7 @@ const accountantScopeSchema = z.object({
|
|
|
262
272
|
to: z.string().nullish(),
|
|
263
273
|
});
|
|
264
274
|
const accountantSummaryRoute = createRoute({
|
|
275
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
265
276
|
method: "get",
|
|
266
277
|
path: "/accountant/{token}/summary",
|
|
267
278
|
request: { params: accountantTokenParamsSchema },
|
|
@@ -291,6 +302,7 @@ const accountantSummaryRoute = createRoute({
|
|
|
291
302
|
},
|
|
292
303
|
});
|
|
293
304
|
const accountantInvoicesRoute = createRoute({
|
|
305
|
+
"x-voyant-api-id": "@voyant-travel/finance#api.public",
|
|
294
306
|
method: "get",
|
|
295
307
|
path: "/accountant/{token}/invoices",
|
|
296
308
|
request: { params: accountantTokenParamsSchema },
|
|
@@ -1404,6 +1404,21 @@ export declare const financeReferenceDataRoutes: OpenAPIHono<Env, import("hono/t
|
|
|
1404
1404
|
} & {
|
|
1405
1405
|
"/invoice-number-series/:id": {
|
|
1406
1406
|
$get: {
|
|
1407
|
+
input: {
|
|
1408
|
+
param: {
|
|
1409
|
+
id: string;
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
output: {
|
|
1413
|
+
error: string;
|
|
1414
|
+
code?: string | undefined;
|
|
1415
|
+
details?: {
|
|
1416
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1417
|
+
} | undefined;
|
|
1418
|
+
};
|
|
1419
|
+
outputFormat: "json";
|
|
1420
|
+
status: 404;
|
|
1421
|
+
} | {
|
|
1407
1422
|
input: {
|
|
1408
1423
|
param: {
|
|
1409
1424
|
id: string;
|
|
@@ -1431,21 +1446,6 @@ export declare const financeReferenceDataRoutes: OpenAPIHono<Env, import("hono/t
|
|
|
1431
1446
|
};
|
|
1432
1447
|
outputFormat: "json";
|
|
1433
1448
|
status: 200;
|
|
1434
|
-
} | {
|
|
1435
|
-
input: {
|
|
1436
|
-
param: {
|
|
1437
|
-
id: string;
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
output: {
|
|
1441
|
-
error: string;
|
|
1442
|
-
code?: string | undefined;
|
|
1443
|
-
details?: {
|
|
1444
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1445
|
-
} | undefined;
|
|
1446
|
-
};
|
|
1447
|
-
outputFormat: "json";
|
|
1448
|
-
status: 404;
|
|
1449
1449
|
};
|
|
1450
1450
|
};
|
|
1451
1451
|
} & {
|
package/dist/routes-reports.d.ts
CHANGED
|
@@ -208,17 +208,10 @@ export declare const financeReportRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
210
|
output: {
|
|
211
|
-
|
|
212
|
-
id: string;
|
|
213
|
-
name: string;
|
|
214
|
-
sortOrder: number;
|
|
215
|
-
archived: boolean;
|
|
216
|
-
createdAt: string;
|
|
217
|
-
updatedAt: string;
|
|
218
|
-
};
|
|
211
|
+
error: string;
|
|
219
212
|
};
|
|
220
213
|
outputFormat: "json";
|
|
221
|
-
status:
|
|
214
|
+
status: 404;
|
|
222
215
|
} | {
|
|
223
216
|
input: {
|
|
224
217
|
param: {
|
|
@@ -232,10 +225,17 @@ export declare const financeReportRoutes: OpenAPIHono<Env, import("hono/types").
|
|
|
232
225
|
};
|
|
233
226
|
};
|
|
234
227
|
output: {
|
|
235
|
-
|
|
228
|
+
data: {
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
231
|
+
sortOrder: number;
|
|
232
|
+
archived: boolean;
|
|
233
|
+
createdAt: string;
|
|
234
|
+
updatedAt: string;
|
|
235
|
+
};
|
|
236
236
|
};
|
|
237
237
|
outputFormat: "json";
|
|
238
|
-
status:
|
|
238
|
+
status: 200;
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
241
|
}, "/"> & import("hono/types").MergeSchemaPath<{
|