@voyant-travel/finance 0.119.5
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/LICENSE +201 -0
- package/README.md +192 -0
- package/dist/action-ledger-drift.d.ts +29 -0
- package/dist/action-ledger-drift.d.ts.map +1 -0
- package/dist/action-ledger-drift.js +166 -0
- package/dist/booking-tax.d.ts +124 -0
- package/dist/booking-tax.d.ts.map +1 -0
- package/dist/booking-tax.js +264 -0
- package/dist/checkout-routes.d.ts +1154 -0
- package/dist/checkout-routes.d.ts.map +1 -0
- package/dist/checkout-routes.js +116 -0
- package/dist/checkout-service-plan.d.ts +137 -0
- package/dist/checkout-service-plan.d.ts.map +1 -0
- package/dist/checkout-service-plan.js +119 -0
- package/dist/checkout-service.d.ts +9 -0
- package/dist/checkout-service.d.ts.map +1 -0
- package/dist/checkout-service.js +324 -0
- package/dist/checkout-validation.d.ts +1682 -0
- package/dist/checkout-validation.d.ts.map +1 -0
- package/dist/checkout-validation.js +228 -0
- package/dist/document-download.d.ts +3 -0
- package/dist/document-download.d.ts.map +1 -0
- package/dist/document-download.js +1 -0
- package/dist/fx-money.d.ts +17 -0
- package/dist/fx-money.d.ts.map +1 -0
- package/dist/fx-money.js +194 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +108 -0
- package/dist/invoice-fx.d.ts +134 -0
- package/dist/invoice-fx.d.ts.map +1 -0
- package/dist/invoice-fx.js +240 -0
- package/dist/invoice-number-errors.d.ts +2 -0
- package/dist/invoice-number-errors.d.ts.map +1 -0
- package/dist/invoice-number-errors.js +58 -0
- package/dist/markets-ref.d.ts +149 -0
- package/dist/markets-ref.d.ts.map +1 -0
- package/dist/markets-ref.js +17 -0
- package/dist/payment-link.d.ts +23 -0
- package/dist/payment-link.d.ts.map +1 -0
- package/dist/payment-link.js +30 -0
- package/dist/payment-policy.d.ts +113 -0
- package/dist/payment-policy.d.ts.map +1 -0
- package/dist/payment-policy.js +193 -0
- package/dist/route-runtime.d.ts +22 -0
- package/dist/route-runtime.d.ts.map +1 -0
- package/dist/route-runtime.js +18 -0
- package/dist/routes-action-ledger.d.ts +181 -0
- package/dist/routes-action-ledger.d.ts.map +1 -0
- package/dist/routes-action-ledger.js +142 -0
- package/dist/routes-booking-billing.d.ts +852 -0
- package/dist/routes-booking-billing.d.ts.map +1 -0
- package/dist/routes-booking-billing.js +223 -0
- package/dist/routes-booking-create.d.ts +3 -0
- package/dist/routes-booking-create.d.ts.map +1 -0
- package/dist/routes-booking-create.js +194 -0
- package/dist/routes-booking-reads.d.ts +46 -0
- package/dist/routes-booking-reads.d.ts.map +1 -0
- package/dist/routes-booking-reads.js +20 -0
- package/dist/routes-documents.d.ts +195 -0
- package/dist/routes-documents.d.ts.map +1 -0
- package/dist/routes-documents.js +93 -0
- package/dist/routes-invoice-core.d.ts +794 -0
- package/dist/routes-invoice-core.d.ts.map +1 -0
- package/dist/routes-invoice-core.js +238 -0
- package/dist/routes-invoice-documents.d.ts +401 -0
- package/dist/routes-invoice-documents.d.ts.map +1 -0
- package/dist/routes-invoice-documents.js +91 -0
- package/dist/routes-invoice-issue.d.ts +384 -0
- package/dist/routes-invoice-issue.d.ts.map +1 -0
- package/dist/routes-invoice-issue.js +208 -0
- package/dist/routes-payment-processing.d.ts +1193 -0
- package/dist/routes-payment-processing.d.ts.map +1 -0
- package/dist/routes-payment-processing.js +238 -0
- package/dist/routes-payments.d.ts +309 -0
- package/dist/routes-payments.d.ts.map +1 -0
- package/dist/routes-payments.js +94 -0
- package/dist/routes-public.d.ts +1948 -0
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-public.js +275 -0
- package/dist/routes-reference-data.d.ts +977 -0
- package/dist/routes-reference-data.d.ts.map +1 -0
- package/dist/routes-reference-data.js +191 -0
- package/dist/routes-reports.d.ts +344 -0
- package/dist/routes-reports.d.ts.map +1 -0
- package/dist/routes-reports.js +93 -0
- package/dist/routes-runtime.d.ts +71 -0
- package/dist/routes-runtime.d.ts.map +1 -0
- package/dist/routes-runtime.js +59 -0
- package/dist/routes-settlement.d.ts +67 -0
- package/dist/routes-settlement.d.ts.map +1 -0
- package/dist/routes-settlement.js +23 -0
- package/dist/routes-shared.d.ts +35 -0
- package/dist/routes-shared.d.ts.map +1 -0
- package/dist/routes-shared.js +10 -0
- package/dist/routes-supplier-invoices.d.ts +778 -0
- package/dist/routes-supplier-invoices.d.ts.map +1 -0
- package/dist/routes-supplier-invoices.js +159 -0
- package/dist/routes-vouchers.d.ts +228 -0
- package/dist/routes-vouchers.d.ts.map +1 -0
- package/dist/routes-vouchers.js +54 -0
- package/dist/routes.d.ts +5577 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +44 -0
- package/dist/schema/booking-billing.d.ts +1006 -0
- package/dist/schema/booking-billing.d.ts.map +1 -0
- package/dist/schema/booking-billing.js +106 -0
- package/dist/schema/enums.d.ts +48 -0
- package/dist/schema/enums.d.ts.map +1 -0
- package/dist/schema/enums.js +237 -0
- package/dist/schema/invoice-documents.d.ts +1245 -0
- package/dist/schema/invoice-documents.d.ts.map +1 -0
- package/dist/schema/invoice-documents.js +140 -0
- package/dist/schema/payment-instruments.d.ts +418 -0
- package/dist/schema/payment-instruments.d.ts.map +1 -0
- package/dist/schema/payment-instruments.js +45 -0
- package/dist/schema/payment-processing.d.ts +563 -0
- package/dist/schema/payment-processing.d.ts.map +1 -0
- package/dist/schema/payment-processing.js +65 -0
- package/dist/schema/payment-sessions.d.ts +728 -0
- package/dist/schema/payment-sessions.d.ts.map +1 -0
- package/dist/schema/payment-sessions.js +79 -0
- package/dist/schema/receivables.d.ts +1474 -0
- package/dist/schema/receivables.d.ts.map +1 -0
- package/dist/schema/receivables.js +179 -0
- package/dist/schema/relations.d.ts +82 -0
- package/dist/schema/relations.d.ts.map +1 -0
- package/dist/schema/relations.js +144 -0
- package/dist/schema/supplier-invoices.d.ts +1619 -0
- package/dist/schema/supplier-invoices.d.ts.map +1 -0
- package/dist/schema/supplier-invoices.js +228 -0
- package/dist/schema/tax.d.ts +712 -0
- package/dist/schema/tax.d.ts.map +1 -0
- package/dist/schema/tax.js +98 -0
- package/dist/schema/vouchers.d.ts +444 -0
- package/dist/schema/vouchers.d.ts.map +1 -0
- package/dist/schema/vouchers.js +64 -0
- package/dist/schema.d.ts +12 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +11 -0
- package/dist/service-accountant-shares.d.ts +106 -0
- package/dist/service-accountant-shares.d.ts.map +1 -0
- package/dist/service-accountant-shares.js +331 -0
- package/dist/service-action-ledger-accounting.d.ts +104 -0
- package/dist/service-action-ledger-accounting.d.ts.map +1 -0
- package/dist/service-action-ledger-accounting.js +386 -0
- package/dist/service-action-ledger-booking-payments.d.ts +48 -0
- package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
- package/dist/service-action-ledger-booking-payments.js +178 -0
- package/dist/service-action-ledger-bookings.d.ts +44 -0
- package/dist/service-action-ledger-bookings.d.ts.map +1 -0
- package/dist/service-action-ledger-bookings.js +81 -0
- package/dist/service-action-ledger-payment-authorizations.d.ts +48 -0
- package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-authorizations.js +209 -0
- package/dist/service-action-ledger-payment-sessions.d.ts +83 -0
- package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
- package/dist/service-action-ledger-payment-sessions.js +294 -0
- package/dist/service-action-ledger-supplier-invoices.d.ts +27 -0
- package/dist/service-action-ledger-supplier-invoices.d.ts.map +1 -0
- package/dist/service-action-ledger-supplier-invoices.js +111 -0
- package/dist/service-action-ledger-supplier-payments.d.ts +21 -0
- package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
- package/dist/service-action-ledger-supplier-payments.js +97 -0
- package/dist/service-action-ledger.d.ts +7 -0
- package/dist/service-action-ledger.d.ts.map +1 -0
- package/dist/service-action-ledger.js +6 -0
- package/dist/service-aggregates.d.ts +96 -0
- package/dist/service-aggregates.d.ts.map +1 -0
- package/dist/service-aggregates.js +294 -0
- package/dist/service-booking-billing.d.ts +2322 -0
- package/dist/service-booking-billing.d.ts.map +1 -0
- package/dist/service-booking-billing.js +8 -0
- package/dist/service-booking-create.d.ts +410 -0
- package/dist/service-booking-create.d.ts.map +1 -0
- package/dist/service-booking-create.js +1256 -0
- package/dist/service-booking-guarantees.d.ts +725 -0
- package/dist/service-booking-guarantees.d.ts.map +1 -0
- package/dist/service-booking-guarantees.js +153 -0
- package/dist/service-booking-item-billing.d.ts +1062 -0
- package/dist/service-booking-item-billing.d.ts.map +1 -0
- package/dist/service-booking-item-billing.js +77 -0
- package/dist/service-booking-payment-schedules.d.ts +557 -0
- package/dist/service-booking-payment-schedules.d.ts.map +1 -0
- package/dist/service-booking-payment-schedules.js +372 -0
- package/dist/service-bookings-dual-create.d.ts +308 -0
- package/dist/service-bookings-dual-create.d.ts.map +1 -0
- package/dist/service-bookings-dual-create.js +131 -0
- package/dist/service-boundary-sql.d.ts +6 -0
- package/dist/service-boundary-sql.d.ts.map +1 -0
- package/dist/service-boundary-sql.js +15 -0
- package/dist/service-cost-categories.d.ts +26 -0
- package/dist/service-cost-categories.d.ts.map +1 -0
- package/dist/service-cost-categories.js +76 -0
- package/dist/service-documents.d.ts +80 -0
- package/dist/service-documents.d.ts.map +1 -0
- package/dist/service-documents.js +228 -0
- package/dist/service-invoice-artifacts.d.ts +246 -0
- package/dist/service-invoice-artifacts.d.ts.map +1 -0
- package/dist/service-invoice-artifacts.js +277 -0
- package/dist/service-invoice-core.d.ts +405 -0
- package/dist/service-invoice-core.d.ts.map +1 -0
- package/dist/service-invoice-core.js +290 -0
- package/dist/service-invoice-credit-notes.d.ts +973 -0
- package/dist/service-invoice-credit-notes.d.ts.map +1 -0
- package/dist/service-invoice-credit-notes.js +142 -0
- package/dist/service-invoice-from-booking.d.ts +41 -0
- package/dist/service-invoice-from-booking.d.ts.map +1 -0
- package/dist/service-invoice-from-booking.js +267 -0
- package/dist/service-invoice-line-items.d.ts +432 -0
- package/dist/service-invoice-line-items.d.ts.map +1 -0
- package/dist/service-invoice-line-items.js +102 -0
- package/dist/service-invoice-numbering.d.ts +227 -0
- package/dist/service-invoice-numbering.d.ts.map +1 -0
- package/dist/service-invoice-numbering.js +260 -0
- package/dist/service-invoice-payments.d.ts +673 -0
- package/dist/service-invoice-payments.d.ts.map +1 -0
- package/dist/service-invoice-payments.js +398 -0
- package/dist/service-invoices.d.ts +2501 -0
- package/dist/service-invoices.d.ts.map +1 -0
- package/dist/service-invoices.js +12 -0
- package/dist/service-issue.d.ts +207 -0
- package/dist/service-issue.d.ts.map +1 -0
- package/dist/service-issue.js +431 -0
- package/dist/service-payment-authorizations.d.ts +164 -0
- package/dist/service-payment-authorizations.d.ts.map +1 -0
- package/dist/service-payment-authorizations.js +227 -0
- package/dist/service-payment-instruments.d.ts +116 -0
- package/dist/service-payment-instruments.d.ts.map +1 -0
- package/dist/service-payment-instruments.js +99 -0
- package/dist/service-payment-processing.d.ts +676 -0
- package/dist/service-payment-processing.d.ts.map +1 -0
- package/dist/service-payment-processing.js +10 -0
- package/dist/service-payment-session-completion.d.ts +48 -0
- package/dist/service-payment-session-completion.d.ts.map +1 -0
- package/dist/service-payment-session-completion.js +238 -0
- package/dist/service-payment-sessions.d.ts +361 -0
- package/dist/service-payment-sessions.d.ts.map +1 -0
- package/dist/service-payment-sessions.js +280 -0
- package/dist/service-profitability.d.ts +114 -0
- package/dist/service-profitability.d.ts.map +1 -0
- package/dist/service-profitability.js +794 -0
- package/dist/service-public.d.ts +553 -0
- package/dist/service-public.d.ts.map +1 -0
- package/dist/service-public.js +583 -0
- package/dist/service-reference-data.d.ts +272 -0
- package/dist/service-reference-data.d.ts.map +1 -0
- package/dist/service-reference-data.js +280 -0
- package/dist/service-rendition-wait.d.ts +38 -0
- package/dist/service-rendition-wait.d.ts.map +1 -0
- package/dist/service-rendition-wait.js +67 -0
- package/dist/service-reports.d.ts +37 -0
- package/dist/service-reports.d.ts.map +1 -0
- package/dist/service-reports.js +62 -0
- package/dist/service-settlement.d.ts +46 -0
- package/dist/service-settlement.d.ts.map +1 -0
- package/dist/service-settlement.js +185 -0
- package/dist/service-shared.d.ts +541 -0
- package/dist/service-shared.d.ts.map +1 -0
- package/dist/service-shared.js +764 -0
- package/dist/service-supplier-invoices.d.ts +871 -0
- package/dist/service-supplier-invoices.d.ts.map +1 -0
- package/dist/service-supplier-invoices.js +744 -0
- package/dist/service-supplier-payments.d.ts +69 -0
- package/dist/service-supplier-payments.d.ts.map +1 -0
- package/dist/service-supplier-payments.js +136 -0
- package/dist/service-vouchers-migration.d.ts +44 -0
- package/dist/service-vouchers-migration.d.ts.map +1 -0
- package/dist/service-vouchers-migration.js +148 -0
- package/dist/service-vouchers.d.ts +157 -0
- package/dist/service-vouchers.d.ts.map +1 -0
- package/dist/service-vouchers.js +191 -0
- package/dist/service.d.ts +6490 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +29 -0
- package/dist/validation-billing.d.ts +2 -0
- package/dist/validation-billing.d.ts.map +1 -0
- package/dist/validation-billing.js +1 -0
- package/dist/validation-payments.d.ts +2 -0
- package/dist/validation-payments.d.ts.map +1 -0
- package/dist/validation-payments.js +1 -0
- package/dist/validation-public.d.ts +2 -0
- package/dist/validation-public.d.ts.map +1 -0
- package/dist/validation-public.js +1 -0
- package/dist/validation-shared.d.ts +2 -0
- package/dist/validation-shared.d.ts.map +1 -0
- package/dist/validation-shared.js +1 -0
- package/dist/validation-vouchers.d.ts +2 -0
- package/dist/validation-vouchers.d.ts.map +1 -0
- package/dist/validation-vouchers.js +1 -0
- package/dist/validation.d.ts +2 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +1 -0
- package/package.json +121 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { buildIdempotencyFingerprint, } from "@voyant-travel/action-ledger";
|
|
2
|
+
export async function buildBookingCreateSucceededActionLedgerInput(context, input, options = {}) {
|
|
3
|
+
return {
|
|
4
|
+
context,
|
|
5
|
+
actionName: "booking.create",
|
|
6
|
+
actionVersion: "v1",
|
|
7
|
+
actionKind: "create",
|
|
8
|
+
status: "succeeded",
|
|
9
|
+
evaluatedRisk: "high",
|
|
10
|
+
targetType: "booking",
|
|
11
|
+
targetId: input.booking.id,
|
|
12
|
+
routeOrToolName: "booking.create",
|
|
13
|
+
authorizationSource: options.authorizationSource ?? "booking.create.route",
|
|
14
|
+
idempotencyScope: null,
|
|
15
|
+
idempotencyKey: null,
|
|
16
|
+
idempotencyFingerprint: await buildIdempotencyFingerprint({
|
|
17
|
+
actionName: "booking.create",
|
|
18
|
+
actionVersion: "v1",
|
|
19
|
+
targetType: "booking",
|
|
20
|
+
targetId: input.booking.id,
|
|
21
|
+
commandInput: sanitizeBookingCreateCommand(input.command),
|
|
22
|
+
}),
|
|
23
|
+
mutationDetail: {
|
|
24
|
+
commandInputRef: `booking_create:${input.booking.bookingNumber}:input`,
|
|
25
|
+
commandResultRef: `booking:${input.booking.id}`,
|
|
26
|
+
summary: `Booking ${input.booking.bookingNumber} created`,
|
|
27
|
+
reversalKind: "none",
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export async function buildBookingCreateRejectedActionLedgerInput(context, input, options = {}) {
|
|
32
|
+
return {
|
|
33
|
+
context,
|
|
34
|
+
actionName: "booking.create",
|
|
35
|
+
actionVersion: "v1",
|
|
36
|
+
actionKind: "create",
|
|
37
|
+
status: "failed",
|
|
38
|
+
evaluatedRisk: "high",
|
|
39
|
+
targetType: "booking",
|
|
40
|
+
targetId: input.existingBooking.id,
|
|
41
|
+
routeOrToolName: "booking.create",
|
|
42
|
+
authorizationSource: options.authorizationSource ?? "booking.create.route",
|
|
43
|
+
idempotencyScope: null,
|
|
44
|
+
idempotencyKey: null,
|
|
45
|
+
idempotencyFingerprint: await buildIdempotencyFingerprint({
|
|
46
|
+
actionName: "booking.create",
|
|
47
|
+
actionVersion: "v1",
|
|
48
|
+
targetType: "booking",
|
|
49
|
+
targetId: input.existingBooking.id,
|
|
50
|
+
commandInput: {
|
|
51
|
+
...sanitizeBookingCreateCommand(input.command),
|
|
52
|
+
rejectionReason: input.reason,
|
|
53
|
+
},
|
|
54
|
+
}),
|
|
55
|
+
mutationDetail: {
|
|
56
|
+
commandInputRef: `booking_create:${input.command.bookingNumber}:input`,
|
|
57
|
+
commandResultRef: `booking:${input.existingBooking.id}`,
|
|
58
|
+
summary: `Booking create rejected as duplicate of ${input.existingBooking.bookingNumber}`,
|
|
59
|
+
reversalKind: "none",
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function sanitizeBookingCreateCommand(command) {
|
|
64
|
+
return {
|
|
65
|
+
productId: command.productId,
|
|
66
|
+
optionId: command.optionId ?? null,
|
|
67
|
+
slotId: command.slotId ?? null,
|
|
68
|
+
bookingNumber: command.bookingNumber,
|
|
69
|
+
personId: command.personId ?? null,
|
|
70
|
+
organizationId: command.organizationId ?? null,
|
|
71
|
+
pax: command.pax ?? null,
|
|
72
|
+
itemLineCount: command.itemLineCount ?? 0,
|
|
73
|
+
extraLineCount: command.extraLineCount ?? 0,
|
|
74
|
+
travelerCount: command.travelerCount ?? 0,
|
|
75
|
+
paymentScheduleCount: command.paymentScheduleCount ?? 0,
|
|
76
|
+
voucherRedemptionRequested: command.voucherRedemptionRequested === true,
|
|
77
|
+
groupMembershipAction: command.groupMembershipAction ?? null,
|
|
78
|
+
initialStatus: command.initialStatus ?? null,
|
|
79
|
+
documentGeneration: command.documentGeneration ?? null,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ActionLedgerRequestContextValues, type BuildActionLedgerMutationInput } from "@voyant-travel/action-ledger";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
import type { paymentAuthorizations, paymentCaptures } from "./schema.js";
|
|
4
|
+
import type { updatePaymentAuthorizationSchema, updatePaymentCaptureSchema } from "./validation.js";
|
|
5
|
+
type UpdatePaymentAuthorizationInput = z.infer<typeof updatePaymentAuthorizationSchema>;
|
|
6
|
+
type UpdatePaymentCaptureInput = z.infer<typeof updatePaymentCaptureSchema>;
|
|
7
|
+
type PaymentAuthorizationRecord = typeof paymentAuthorizations.$inferSelect;
|
|
8
|
+
type PaymentCaptureRecord = typeof paymentCaptures.$inferSelect;
|
|
9
|
+
type PaymentAuthorizationCreateLedgerInput = {
|
|
10
|
+
authorization: PaymentAuthorizationRecord;
|
|
11
|
+
};
|
|
12
|
+
type PaymentAuthorizationUpdateLedgerInput = {
|
|
13
|
+
authorization: PaymentAuthorizationRecord;
|
|
14
|
+
changes: UpdatePaymentAuthorizationInput;
|
|
15
|
+
};
|
|
16
|
+
type PaymentAuthorizationDeleteLedgerInput = {
|
|
17
|
+
authorization: PaymentAuthorizationRecord;
|
|
18
|
+
};
|
|
19
|
+
type PaymentCaptureCreateLedgerInput = {
|
|
20
|
+
capture: PaymentCaptureRecord;
|
|
21
|
+
};
|
|
22
|
+
type PaymentCaptureUpdateLedgerInput = {
|
|
23
|
+
capture: PaymentCaptureRecord;
|
|
24
|
+
changes: UpdatePaymentCaptureInput;
|
|
25
|
+
};
|
|
26
|
+
type PaymentCaptureDeleteLedgerInput = {
|
|
27
|
+
capture: PaymentCaptureRecord;
|
|
28
|
+
};
|
|
29
|
+
export declare function buildPaymentAuthorizationCreateActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentAuthorizationCreateLedgerInput, options?: {
|
|
30
|
+
authorizationSource?: string | null;
|
|
31
|
+
}): Promise<BuildActionLedgerMutationInput>;
|
|
32
|
+
export declare function buildPaymentAuthorizationUpdateActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentAuthorizationUpdateLedgerInput, options?: {
|
|
33
|
+
authorizationSource?: string | null;
|
|
34
|
+
}): BuildActionLedgerMutationInput;
|
|
35
|
+
export declare function buildPaymentAuthorizationDeleteActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentAuthorizationDeleteLedgerInput, options?: {
|
|
36
|
+
authorizationSource?: string | null;
|
|
37
|
+
}): BuildActionLedgerMutationInput;
|
|
38
|
+
export declare function buildPaymentCaptureCreateActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentCaptureCreateLedgerInput, options?: {
|
|
39
|
+
authorizationSource?: string | null;
|
|
40
|
+
}): Promise<BuildActionLedgerMutationInput>;
|
|
41
|
+
export declare function buildPaymentCaptureUpdateActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentCaptureUpdateLedgerInput, options?: {
|
|
42
|
+
authorizationSource?: string | null;
|
|
43
|
+
}): BuildActionLedgerMutationInput;
|
|
44
|
+
export declare function buildPaymentCaptureDeleteActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentCaptureDeleteLedgerInput, options?: {
|
|
45
|
+
authorizationSource?: string | null;
|
|
46
|
+
}): BuildActionLedgerMutationInput;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=service-action-ledger-payment-authorizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-action-ledger-payment-authorizations.d.ts","sourceRoot":"","sources":["../src/service-action-ledger-payment-authorizations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EAEpC,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,KAAK,EAAE,gCAAgC,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAEnG,KAAK,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACvF,KAAK,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE3E,KAAK,0BAA0B,GAAG,OAAO,qBAAqB,CAAC,YA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IAAI,CAAA;CAC/B,GACL,OAAO,CAAC,8BAA8B,CAAC,CA0CzC;AAED,wBAAgB,0CAA0C,CACxD,OAAO,EAAE,gCAAgC,EACzC,KAAK,EAAE,+BAA+B,EACtC,OAAO,GAAE;IACP,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,GACL,8BAA8B,CA0BhC;AAED,wBAAgB,0CAA0C,CACxD,OAAO,EAAE,gCAAgC,EACzC,KAAK,EAAE,+BAA+B,EACtC,OAAO,GAAE;IACP,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,GACL,8BAA8B,CAwBhC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { buildIdempotencyFingerprint, } from "@voyant-travel/action-ledger";
|
|
2
|
+
export async function buildPaymentAuthorizationCreateActionLedgerInput(context, input, options = {}) {
|
|
3
|
+
const target = getPaymentAuthorizationLedgerTarget(input.authorization);
|
|
4
|
+
const idempotencyKey = input.authorization.externalAuthorizationId;
|
|
5
|
+
return {
|
|
6
|
+
context,
|
|
7
|
+
actionName: "finance.payment_authorization.create",
|
|
8
|
+
actionVersion: "v1",
|
|
9
|
+
actionKind: "create",
|
|
10
|
+
status: "succeeded",
|
|
11
|
+
evaluatedRisk: "high",
|
|
12
|
+
targetType: target.type,
|
|
13
|
+
targetId: target.id,
|
|
14
|
+
routeOrToolName: "finance.payment_authorization.create",
|
|
15
|
+
authorizationSource: options.authorizationSource ?? "finance.payment_authorization.route",
|
|
16
|
+
idempotencyScope: idempotencyKey
|
|
17
|
+
? `finance.${target.type}:${target.id}:payment_authorization`
|
|
18
|
+
: null,
|
|
19
|
+
idempotencyKey,
|
|
20
|
+
idempotencyFingerprint: idempotencyKey
|
|
21
|
+
? await buildIdempotencyFingerprint({
|
|
22
|
+
actionName: "finance.payment_authorization.create",
|
|
23
|
+
actionVersion: "v1",
|
|
24
|
+
targetType: target.type,
|
|
25
|
+
targetId: target.id,
|
|
26
|
+
commandInput: {
|
|
27
|
+
paymentAuthorizationId: input.authorization.id,
|
|
28
|
+
bookingId: input.authorization.bookingId,
|
|
29
|
+
legacyOrderId: input.authorization.orderId,
|
|
30
|
+
invoiceId: input.authorization.invoiceId,
|
|
31
|
+
bookingGuaranteeId: input.authorization.bookingGuaranteeId,
|
|
32
|
+
amountCents: input.authorization.amountCents,
|
|
33
|
+
currency: input.authorization.currency,
|
|
34
|
+
provider: input.authorization.provider,
|
|
35
|
+
externalAuthorizationId: input.authorization.externalAuthorizationId,
|
|
36
|
+
status: input.authorization.status,
|
|
37
|
+
},
|
|
38
|
+
})
|
|
39
|
+
: null,
|
|
40
|
+
mutationDetail: {
|
|
41
|
+
commandInputRef: `${target.type}:${target.id}:payment_authorization`,
|
|
42
|
+
commandResultRef: `payment_authorization:${input.authorization.id}`,
|
|
43
|
+
summary: `Payment authorization ${input.authorization.id} created for ${target.type} ${target.id}`,
|
|
44
|
+
reversalKind: "none",
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function buildPaymentAuthorizationUpdateActionLedgerInput(context, input, options = {}) {
|
|
49
|
+
const target = getPaymentAuthorizationLedgerTarget(input.authorization);
|
|
50
|
+
const changedFields = Object.keys(input.changes).sort();
|
|
51
|
+
const changeSummary = changedFields.length > 0 ? changedFields.join(", ") : "no fields";
|
|
52
|
+
return {
|
|
53
|
+
context,
|
|
54
|
+
actionName: "finance.payment_authorization.update",
|
|
55
|
+
actionVersion: "v1",
|
|
56
|
+
actionKind: "update",
|
|
57
|
+
status: "succeeded",
|
|
58
|
+
evaluatedRisk: "high",
|
|
59
|
+
targetType: target.type,
|
|
60
|
+
targetId: target.id,
|
|
61
|
+
routeOrToolName: "finance.payment_authorization.update",
|
|
62
|
+
authorizationSource: options.authorizationSource ?? "finance.payment_authorization.route",
|
|
63
|
+
idempotencyScope: null,
|
|
64
|
+
idempotencyKey: null,
|
|
65
|
+
idempotencyFingerprint: null,
|
|
66
|
+
mutationDetail: {
|
|
67
|
+
commandInputRef: `payment_authorization:${input.authorization.id}:update`,
|
|
68
|
+
commandResultRef: `payment_authorization:${input.authorization.id}`,
|
|
69
|
+
summary: `Payment authorization ${input.authorization.id} updated (${changeSummary})`,
|
|
70
|
+
reversalKind: "none",
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export function buildPaymentAuthorizationDeleteActionLedgerInput(context, input, options = {}) {
|
|
75
|
+
const target = getPaymentAuthorizationLedgerTarget(input.authorization);
|
|
76
|
+
return {
|
|
77
|
+
context,
|
|
78
|
+
actionName: "finance.payment_authorization.delete",
|
|
79
|
+
actionVersion: "v1",
|
|
80
|
+
actionKind: "delete",
|
|
81
|
+
status: "succeeded",
|
|
82
|
+
evaluatedRisk: "high",
|
|
83
|
+
targetType: target.type,
|
|
84
|
+
targetId: target.id,
|
|
85
|
+
routeOrToolName: "finance.payment_authorization.delete",
|
|
86
|
+
authorizationSource: options.authorizationSource ?? "finance.payment_authorization.route",
|
|
87
|
+
idempotencyScope: null,
|
|
88
|
+
idempotencyKey: null,
|
|
89
|
+
idempotencyFingerprint: null,
|
|
90
|
+
mutationDetail: {
|
|
91
|
+
commandInputRef: `payment_authorization:${input.authorization.id}:delete`,
|
|
92
|
+
commandResultRef: null,
|
|
93
|
+
summary: `Payment authorization ${input.authorization.id} deleted`,
|
|
94
|
+
reversalKind: "none",
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function getPaymentAuthorizationLedgerTarget(authorization) {
|
|
99
|
+
if (authorization.bookingId)
|
|
100
|
+
return { type: "booking", id: authorization.bookingId };
|
|
101
|
+
if (authorization.invoiceId)
|
|
102
|
+
return { type: "invoice", id: authorization.invoiceId };
|
|
103
|
+
if (authorization.orderId)
|
|
104
|
+
return { type: "order", id: authorization.orderId };
|
|
105
|
+
if (authorization.bookingGuaranteeId) {
|
|
106
|
+
return { type: "booking_guarantee", id: authorization.bookingGuaranteeId };
|
|
107
|
+
}
|
|
108
|
+
return { type: "payment_authorization", id: authorization.id };
|
|
109
|
+
}
|
|
110
|
+
export async function buildPaymentCaptureCreateActionLedgerInput(context, input, options = {}) {
|
|
111
|
+
const target = getPaymentCaptureLedgerTarget(input.capture);
|
|
112
|
+
const idempotencyKey = input.capture.externalCaptureId;
|
|
113
|
+
return {
|
|
114
|
+
context,
|
|
115
|
+
actionName: "finance.payment_capture.create",
|
|
116
|
+
actionVersion: "v1",
|
|
117
|
+
actionKind: "create",
|
|
118
|
+
status: "succeeded",
|
|
119
|
+
evaluatedRisk: "high",
|
|
120
|
+
targetType: target.type,
|
|
121
|
+
targetId: target.id,
|
|
122
|
+
routeOrToolName: "finance.payment_capture.create",
|
|
123
|
+
authorizationSource: options.authorizationSource ?? "finance.payment_capture.route",
|
|
124
|
+
idempotencyScope: idempotencyKey ? `finance.${target.type}:${target.id}:payment_capture` : null,
|
|
125
|
+
idempotencyKey,
|
|
126
|
+
idempotencyFingerprint: idempotencyKey
|
|
127
|
+
? await buildIdempotencyFingerprint({
|
|
128
|
+
actionName: "finance.payment_capture.create",
|
|
129
|
+
actionVersion: "v1",
|
|
130
|
+
targetType: target.type,
|
|
131
|
+
targetId: target.id,
|
|
132
|
+
commandInput: {
|
|
133
|
+
paymentCaptureId: input.capture.id,
|
|
134
|
+
paymentAuthorizationId: input.capture.paymentAuthorizationId,
|
|
135
|
+
invoiceId: input.capture.invoiceId,
|
|
136
|
+
amountCents: input.capture.amountCents,
|
|
137
|
+
currency: input.capture.currency,
|
|
138
|
+
provider: input.capture.provider,
|
|
139
|
+
externalCaptureId: input.capture.externalCaptureId,
|
|
140
|
+
status: input.capture.status,
|
|
141
|
+
},
|
|
142
|
+
})
|
|
143
|
+
: null,
|
|
144
|
+
mutationDetail: {
|
|
145
|
+
commandInputRef: `${target.type}:${target.id}:payment_capture`,
|
|
146
|
+
commandResultRef: `payment_capture:${input.capture.id}`,
|
|
147
|
+
summary: `Payment capture ${input.capture.id} created for ${target.type} ${target.id}`,
|
|
148
|
+
reversalKind: "none",
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export function buildPaymentCaptureUpdateActionLedgerInput(context, input, options = {}) {
|
|
153
|
+
const target = getPaymentCaptureLedgerTarget(input.capture);
|
|
154
|
+
const changedFields = Object.keys(input.changes).sort();
|
|
155
|
+
const changeSummary = changedFields.length > 0 ? changedFields.join(", ") : "no fields";
|
|
156
|
+
return {
|
|
157
|
+
context,
|
|
158
|
+
actionName: "finance.payment_capture.update",
|
|
159
|
+
actionVersion: "v1",
|
|
160
|
+
actionKind: "update",
|
|
161
|
+
status: "succeeded",
|
|
162
|
+
evaluatedRisk: "high",
|
|
163
|
+
targetType: target.type,
|
|
164
|
+
targetId: target.id,
|
|
165
|
+
routeOrToolName: "finance.payment_capture.update",
|
|
166
|
+
authorizationSource: options.authorizationSource ?? "finance.payment_capture.route",
|
|
167
|
+
idempotencyScope: null,
|
|
168
|
+
idempotencyKey: null,
|
|
169
|
+
idempotencyFingerprint: null,
|
|
170
|
+
mutationDetail: {
|
|
171
|
+
commandInputRef: `payment_capture:${input.capture.id}:update`,
|
|
172
|
+
commandResultRef: `payment_capture:${input.capture.id}`,
|
|
173
|
+
summary: `Payment capture ${input.capture.id} updated (${changeSummary})`,
|
|
174
|
+
reversalKind: "none",
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
export function buildPaymentCaptureDeleteActionLedgerInput(context, input, options = {}) {
|
|
179
|
+
const target = getPaymentCaptureLedgerTarget(input.capture);
|
|
180
|
+
return {
|
|
181
|
+
context,
|
|
182
|
+
actionName: "finance.payment_capture.delete",
|
|
183
|
+
actionVersion: "v1",
|
|
184
|
+
actionKind: "delete",
|
|
185
|
+
status: "succeeded",
|
|
186
|
+
evaluatedRisk: "high",
|
|
187
|
+
targetType: target.type,
|
|
188
|
+
targetId: target.id,
|
|
189
|
+
routeOrToolName: "finance.payment_capture.delete",
|
|
190
|
+
authorizationSource: options.authorizationSource ?? "finance.payment_capture.route",
|
|
191
|
+
idempotencyScope: null,
|
|
192
|
+
idempotencyKey: null,
|
|
193
|
+
idempotencyFingerprint: null,
|
|
194
|
+
mutationDetail: {
|
|
195
|
+
commandInputRef: `payment_capture:${input.capture.id}:delete`,
|
|
196
|
+
commandResultRef: null,
|
|
197
|
+
summary: `Payment capture ${input.capture.id} deleted`,
|
|
198
|
+
reversalKind: "none",
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function getPaymentCaptureLedgerTarget(capture) {
|
|
203
|
+
if (capture.invoiceId)
|
|
204
|
+
return { type: "invoice", id: capture.invoiceId };
|
|
205
|
+
if (capture.paymentAuthorizationId) {
|
|
206
|
+
return { type: "payment_authorization", id: capture.paymentAuthorizationId };
|
|
207
|
+
}
|
|
208
|
+
return { type: "payment_capture", id: capture.id };
|
|
209
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type ActionLedgerRequestContextValues, type BuildActionLedgerMutationInput } from "@voyant-travel/action-ledger";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
import type { paymentInstruments, paymentSessions } from "./schema.js";
|
|
4
|
+
import type { cancelPaymentSessionSchema, completePaymentSessionSchema, expirePaymentSessionSchema, failPaymentSessionSchema, markPaymentSessionRequiresRedirectSchema, updatePaymentInstrumentSchema, updatePaymentSessionSchema } from "./validation.js";
|
|
5
|
+
type CompletePaymentSessionInput = z.infer<typeof completePaymentSessionSchema>;
|
|
6
|
+
type UpdatePaymentSessionInput = z.infer<typeof updatePaymentSessionSchema>;
|
|
7
|
+
type MarkPaymentSessionRequiresRedirectInput = z.infer<typeof markPaymentSessionRequiresRedirectSchema>;
|
|
8
|
+
type FailPaymentSessionInput = z.infer<typeof failPaymentSessionSchema>;
|
|
9
|
+
type CancelPaymentSessionInput = z.infer<typeof cancelPaymentSessionSchema>;
|
|
10
|
+
type ExpirePaymentSessionInput = z.infer<typeof expirePaymentSessionSchema>;
|
|
11
|
+
type UpdatePaymentInstrumentInput = z.infer<typeof updatePaymentInstrumentSchema>;
|
|
12
|
+
type PaymentSessionRecord = typeof paymentSessions.$inferSelect;
|
|
13
|
+
type PaymentInstrumentRecord = typeof paymentInstruments.$inferSelect;
|
|
14
|
+
type CreatePaymentSessionLedgerInput = {
|
|
15
|
+
session: PaymentSessionRecord;
|
|
16
|
+
};
|
|
17
|
+
type CompletePaymentSessionLedgerInput = {
|
|
18
|
+
session: PaymentSessionRecord;
|
|
19
|
+
status: CompletePaymentSessionInput["status"];
|
|
20
|
+
paymentId: string | null;
|
|
21
|
+
};
|
|
22
|
+
type PaymentSessionUpdateLedgerInput = {
|
|
23
|
+
session: PaymentSessionRecord;
|
|
24
|
+
changes: UpdatePaymentSessionInput;
|
|
25
|
+
};
|
|
26
|
+
type PaymentSessionRedirectLedgerInput = {
|
|
27
|
+
session: PaymentSessionRecord;
|
|
28
|
+
changes: MarkPaymentSessionRequiresRedirectInput;
|
|
29
|
+
};
|
|
30
|
+
type PaymentSessionFailedLedgerInput = {
|
|
31
|
+
session: PaymentSessionRecord;
|
|
32
|
+
changes: FailPaymentSessionInput;
|
|
33
|
+
};
|
|
34
|
+
type PaymentSessionCancelledLedgerInput = {
|
|
35
|
+
session: PaymentSessionRecord;
|
|
36
|
+
changes: CancelPaymentSessionInput;
|
|
37
|
+
};
|
|
38
|
+
type PaymentSessionExpiredLedgerInput = {
|
|
39
|
+
session: PaymentSessionRecord;
|
|
40
|
+
changes: ExpirePaymentSessionInput;
|
|
41
|
+
};
|
|
42
|
+
type PaymentInstrumentCreateLedgerInput = {
|
|
43
|
+
instrument: PaymentInstrumentRecord;
|
|
44
|
+
};
|
|
45
|
+
type PaymentInstrumentUpdateLedgerInput = {
|
|
46
|
+
instrument: PaymentInstrumentRecord;
|
|
47
|
+
changes: UpdatePaymentInstrumentInput;
|
|
48
|
+
};
|
|
49
|
+
type PaymentInstrumentDeleteLedgerInput = {
|
|
50
|
+
instrument: PaymentInstrumentRecord;
|
|
51
|
+
};
|
|
52
|
+
export declare function buildPaymentInstrumentCreateActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentInstrumentCreateLedgerInput, options?: {
|
|
53
|
+
authorizationSource?: string | null;
|
|
54
|
+
}): BuildActionLedgerMutationInput;
|
|
55
|
+
export declare function buildPaymentInstrumentUpdateActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentInstrumentUpdateLedgerInput, options?: {
|
|
56
|
+
authorizationSource?: string | null;
|
|
57
|
+
}): BuildActionLedgerMutationInput;
|
|
58
|
+
export declare function buildPaymentInstrumentDeleteActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentInstrumentDeleteLedgerInput, options?: {
|
|
59
|
+
authorizationSource?: string | null;
|
|
60
|
+
}): BuildActionLedgerMutationInput;
|
|
61
|
+
export declare function buildPaymentSessionCreateActionLedgerInput(context: ActionLedgerRequestContextValues, input: CreatePaymentSessionLedgerInput, options?: {
|
|
62
|
+
authorizationSource?: string | null;
|
|
63
|
+
}): Promise<BuildActionLedgerMutationInput>;
|
|
64
|
+
export declare function buildPaymentSessionCompletionActionLedgerInput(context: ActionLedgerRequestContextValues, input: CompletePaymentSessionLedgerInput, options?: {
|
|
65
|
+
authorizationSource?: string | null;
|
|
66
|
+
}): Promise<BuildActionLedgerMutationInput>;
|
|
67
|
+
export declare function buildPaymentSessionUpdateActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentSessionUpdateLedgerInput, options?: {
|
|
68
|
+
authorizationSource?: string | null;
|
|
69
|
+
}): BuildActionLedgerMutationInput;
|
|
70
|
+
export declare function buildPaymentSessionRequiresRedirectActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentSessionRedirectLedgerInput, options?: {
|
|
71
|
+
authorizationSource?: string | null;
|
|
72
|
+
}): BuildActionLedgerMutationInput;
|
|
73
|
+
export declare function buildPaymentSessionFailedActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentSessionFailedLedgerInput, options?: {
|
|
74
|
+
authorizationSource?: string | null;
|
|
75
|
+
}): BuildActionLedgerMutationInput;
|
|
76
|
+
export declare function buildPaymentSessionCancelledActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentSessionCancelledLedgerInput, options?: {
|
|
77
|
+
authorizationSource?: string | null;
|
|
78
|
+
}): BuildActionLedgerMutationInput;
|
|
79
|
+
export declare function buildPaymentSessionExpiredActionLedgerInput(context: ActionLedgerRequestContextValues, input: PaymentSessionExpiredLedgerInput, options?: {
|
|
80
|
+
authorizationSource?: string | null;
|
|
81
|
+
}): BuildActionLedgerMutationInput;
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=service-action-ledger-payment-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-action-ledger-payment-sessions.d.ts","sourceRoot":"","sources":["../src/service-action-ledger-payment-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EAEpC,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACtE,OAAO,KAAK,EACV,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,EACxB,wCAAwC,EACxC,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,iBAAiB,CAAA;AAExB,KAAK,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAC/E,KAAK,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAC3E,KAAK,uCAAuC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,wCAAwC,CAChD,CAAA;AACD,KAAK,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACvE,KAAK,yBAAyB,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