@voyant-travel/finance 0.194.1 → 0.196.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.
@@ -1,5 +1,4 @@
1
- export { type ActionLedgerRequestContextValues, appendActionLedgerMutation, } from "@voyant-travel/action-ledger";
2
- export { actionMutationDetails } from "@voyant-travel/action-ledger/schema";
1
+ export { type ActionLedgerRequestContextValues, actionMutationDetails, appendActionLedgerMutation, } from "@voyant-travel/action-ledger";
3
2
  export { bookingItems, bookings } from "@voyant-travel/bookings/schema";
4
3
  export type { EventBus } from "@voyant-travel/core";
5
4
  export type { AnyDrizzleDb } from "@voyant-travel/db";
@@ -1,6 +1,5 @@
1
1
  // agent-quality: file-size exception -- owner: finance; compatibility exports and shared service helpers stay co-located while the domain-operation service modules are split out.
2
- export { appendActionLedgerMutation, } from "@voyant-travel/action-ledger";
3
- export { actionMutationDetails } from "@voyant-travel/action-ledger/schema";
2
+ export { actionMutationDetails, appendActionLedgerMutation, } from "@voyant-travel/action-ledger";
4
3
  export { bookingItems, bookings } from "@voyant-travel/bookings/schema";
5
4
  export { newId } from "@voyant-travel/db/lib/typeid";
6
5
  export { renderStructuredTemplate } from "@voyant-travel/utils/template-renderer";
@@ -9,7 +8,7 @@ export { resolveFxMoneyBaseAmount } from "./fx-money.js";
9
8
  export { isInvoiceNumberUniqueConstraintError } from "./invoice-number-errors.js";
10
9
  export { bookingGuarantees, bookingItemCommissions, bookingItemTaxLines, bookingPaymentSchedules, creditNoteLineItems, creditNotes, financeNotes, invoiceAttachments, invoiceExternalRefs, invoiceLineItems, invoiceNumberSeries, invoiceRenditions, invoices, invoiceTemplates, paymentAuthorizations, paymentCaptures, paymentInstruments, paymentSessions, payments, supplierInvoices, supplierPayments, taxClasses, taxPolicyProfiles, taxPolicyRules, taxRegimes, } from "./schema.js";
11
10
  export { recomputeSupplierInvoiceBalance } from "./service-supplier-invoices.js";
12
- import { actionMutationDetails } from "@voyant-travel/action-ledger/schema";
11
+ import { actionMutationDetails } from "@voyant-travel/action-ledger";
13
12
  import { bookings } from "@voyant-travel/bookings/schema";
14
13
  import { renderStructuredTemplate } from "@voyant-travel/utils/template-renderer";
15
14
  import { and, asc, desc, eq, gt, ne, or, sql } from "drizzle-orm";
package/dist/voyant.js CHANGED
@@ -547,6 +547,11 @@ export const financeBookingsCreateVoyantPlugin = defineExtension({
547
547
  version: "v1",
548
548
  kind: "execute",
549
549
  targetType: "booking",
550
+ availability: {
551
+ status: "unavailable",
552
+ reasonCode: "unsafe-nontransactional-effect",
553
+ },
554
+ effectBoundary: "multistage",
550
555
  resource: "bookings",
551
556
  action: "write",
552
557
  requiredScopes: ["bookings:write", "finance:write"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/finance",
3
- "version": "0.194.1",
3
+ "version": "0.196.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -156,24 +156,24 @@
156
156
  "fflate": "^0.8.2",
157
157
  "hono": "^4.12.27",
158
158
  "zod": "^4.4.3",
159
- "@voyant-travel/action-ledger": "^0.111.14",
160
- "@voyant-travel/bookings": "^0.194.1",
161
- "@voyant-travel/core": "^0.132.1",
159
+ "@voyant-travel/bookings": "^0.196.0",
160
+ "@voyant-travel/action-ledger": "^0.112.0",
161
+ "@voyant-travel/core": "^0.133.0",
162
+ "@voyant-travel/db": "^0.118.2",
162
163
  "@voyant-travel/types": "^0.109.9",
164
+ "@voyant-travel/payments": "^0.6.2",
163
165
  "@voyant-travel/finance-contracts": "^0.107.2",
164
- "@voyant-travel/payments": "^0.6.1",
165
- "@voyant-travel/hono": "^0.134.1",
166
- "@voyant-travel/public-document-delivery": "^0.4.12",
167
- "@voyant-travel/reporting-contracts": "^0.3.2",
168
- "@voyant-travel/storage": "^0.113.3",
169
- "@voyant-travel/tools": "^0.3.0",
166
+ "@voyant-travel/public-document-delivery": "^0.4.13",
167
+ "@voyant-travel/hono": "^0.134.2",
168
+ "@voyant-travel/reporting-contracts": "^0.3.3",
169
+ "@voyant-travel/storage": "^0.113.4",
170
170
  "@voyant-travel/utils": "^0.109.0",
171
- "@voyant-travel/db": "^0.118.1"
171
+ "@voyant-travel/tools": "^0.4.0"
172
172
  },
173
173
  "devDependencies": {
174
174
  "drizzle-kit": "^0.31.10",
175
175
  "typescript": "^6.0.3",
176
- "@voyant-travel/webhook-delivery": "^0.4.9",
176
+ "@voyant-travel/webhook-delivery": "^0.5.2",
177
177
  "@voyant-travel/voyant-typescript-config": "^0.1.0"
178
178
  },
179
179
  "files": [