@voyantjs/legal 0.119.0 → 0.119.2
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/contracts/routes.d.ts.map +1 -1
- package/dist/contracts/schema.d.ts.map +1 -1
- package/dist/contracts/schema.js +4 -0
- package/dist/contracts/service-auto-generate-types.d.ts +395 -0
- package/dist/contracts/service-auto-generate-types.d.ts.map +1 -0
- package/dist/contracts/service-auto-generate-types.js +1 -0
- package/dist/contracts/service-auto-generate-variables.d.ts +9 -0
- package/dist/contracts/service-auto-generate-variables.d.ts.map +1 -0
- package/dist/contracts/service-auto-generate-variables.js +683 -0
- package/dist/contracts/service-auto-generate.d.ts +2 -393
- package/dist/contracts/service-auto-generate.d.ts.map +1 -1
- package/dist/contracts/service-auto-generate.js +4 -674
- package/dist/contracts/service-contracts.d.ts.map +1 -1
- package/dist/contracts/service-contracts.js +3 -1
- package/dist/contracts/service-documents-browser.d.ts.map +1 -1
- package/dist/contracts/service-documents-browser.js +2 -1
- package/dist/contracts/service-documents.d.ts.map +1 -1
- package/dist/contracts/service-series.d.ts.map +1 -1
- package/dist/contracts/service-series.js +1 -0
- package/dist/contracts/service-shared.d.ts.map +1 -1
- package/dist/contracts/service-shared.js +5 -1
- package/dist/contracts/service.d.ts.map +1 -1
- package/dist/contracts/template-authoring.d.ts.map +1 -1
- package/dist/policies/service-core.d.ts.map +1 -1
- package/dist/policies/service-core.js +21 -6
- package/dist/policies/service.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/contracts/routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/contracts/routes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAA0B,MAAM,oBAAoB,CAAA;AACnF,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe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,CAAC,YAAY,CAAA;AAI3E,eAAO,MAAM,0BAA0B;;EAEpC,CAAA;AAEH,eAAO,MAAM,iCAAiC;;;EAS7C,CAAA;AAED,eAAO,MAAM,6BAA6B;;EAEvC,CAAA;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;EAiB5B,CAAA;AAEH,eAAO,MAAM,2BAA2B;;;EAMrC,CAAA;AAEH,eAAO,MAAM,4BAA4B;;EAKtC,CAAA"}
|
package/dist/contracts/schema.js
CHANGED
|
@@ -66,9 +66,11 @@ export const contractTemplates = pgTable("contract_templates", {
|
|
|
66
66
|
uniqueIndex("uq_contract_templates_slug").on(table.slug),
|
|
67
67
|
uniqueIndex("uidx_contract_templates_default_global")
|
|
68
68
|
.on(table.scope, table.language)
|
|
69
|
+
// agent-quality: raw-sql reviewed -- owner: legal; dynamic SQL interpolation uses Drizzle parameter binding or vetted SQL identifiers.
|
|
69
70
|
.where(sql `${table.isDefault} = true AND ${table.channelId} IS NULL`),
|
|
70
71
|
uniqueIndex("uidx_contract_templates_default_channel")
|
|
71
72
|
.on(table.scope, table.channelId, table.language)
|
|
73
|
+
// agent-quality: raw-sql reviewed -- owner: legal; dynamic SQL interpolation uses Drizzle parameter binding or vetted SQL identifiers.
|
|
72
74
|
.where(sql `${table.isDefault} = true AND ${table.channelId} IS NOT NULL`),
|
|
73
75
|
]);
|
|
74
76
|
// ---------- contract_template_versions ----------
|
|
@@ -114,9 +116,11 @@ export const contractNumberSeries = pgTable("contract_number_series", {
|
|
|
114
116
|
index("idx_contract_number_series_updated").on(table.updatedAt),
|
|
115
117
|
uniqueIndex("uidx_contract_number_series_prefix_scope_active")
|
|
116
118
|
.on(table.prefix, table.scope)
|
|
119
|
+
// agent-quality: raw-sql reviewed -- owner: legal; dynamic SQL interpolation uses Drizzle parameter binding or vetted SQL identifiers.
|
|
117
120
|
.where(sql `${table.active} = true`),
|
|
118
121
|
uniqueIndex("uidx_contract_number_series_default_scope_active")
|
|
119
122
|
.on(table.scope)
|
|
123
|
+
// agent-quality: raw-sql reviewed -- owner: legal; dynamic SQL interpolation uses Drizzle parameter binding or vetted SQL identifiers.
|
|
120
124
|
.where(sql `${table.active} = true AND ${table.isDefault} = true`),
|
|
121
125
|
]);
|
|
122
126
|
// ---------- contracts ----------
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import type { ActionLedgerRequestContextValues } from "@voyantjs/action-ledger";
|
|
2
|
+
import type { BookingPiiService, bookingsService } from "@voyantjs/bookings";
|
|
3
|
+
import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
|
|
4
|
+
import type { ContractLifecycleHook } from "./lifecycle.js";
|
|
5
|
+
import type { ContractDocumentGenerator } from "./service-documents.js";
|
|
6
|
+
/**
|
|
7
|
+
* Event shape emitted by `@voyantjs/bookings` on confirm. Duplicated here so
|
|
8
|
+
* legal doesn't have to import the bookings service just for the interface —
|
|
9
|
+
* the concrete `bookingsService` lookup happens inside the handler.
|
|
10
|
+
*/
|
|
11
|
+
export interface BookingConfirmedLikeEvent {
|
|
12
|
+
bookingId: string;
|
|
13
|
+
bookingNumber: string;
|
|
14
|
+
actorId: string | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Variables passed to the contract template at render time. Consumers can
|
|
18
|
+
* augment via `resolveVariables`; the built-in resolver supplies the fields
|
|
19
|
+
* the default contract template expects.
|
|
20
|
+
*
|
|
21
|
+
* Mirrors the canonical Voyant contract surface so the same template body
|
|
22
|
+
* renders identically at storefront preview time and at post-confirm
|
|
23
|
+
* auto-generation time. Anything we can't fill from the persisted booking
|
|
24
|
+
* row (acceptance fingerprint, operator info, line items breakdown,
|
|
25
|
+
* vertical-specific schedule details) is emitted as an empty default — the
|
|
26
|
+
* operator template's `resolveVariables` callback overrides them.
|
|
27
|
+
*/
|
|
28
|
+
export interface OperatorContextVariables {
|
|
29
|
+
name: string;
|
|
30
|
+
legalName: string;
|
|
31
|
+
vatId: string;
|
|
32
|
+
registrationNumber: string;
|
|
33
|
+
address: string;
|
|
34
|
+
phone: string;
|
|
35
|
+
email: string;
|
|
36
|
+
website: string;
|
|
37
|
+
iban: string;
|
|
38
|
+
bank: string;
|
|
39
|
+
license: string;
|
|
40
|
+
licenseAuthority: string;
|
|
41
|
+
/** Human whose name appears on the operator-side signature line. */
|
|
42
|
+
signatoryName: string;
|
|
43
|
+
/** Their role / title (e.g. "Managing Director"). */
|
|
44
|
+
signatoryRole: string;
|
|
45
|
+
}
|
|
46
|
+
export interface AcceptanceContextVariables {
|
|
47
|
+
ipAddress: string;
|
|
48
|
+
userAgent: string;
|
|
49
|
+
acceptedAt: string;
|
|
50
|
+
marketingConsent: boolean;
|
|
51
|
+
templateSlug: string;
|
|
52
|
+
templateId: string;
|
|
53
|
+
}
|
|
54
|
+
export interface ContractTravelerVariable {
|
|
55
|
+
id: string;
|
|
56
|
+
index: number;
|
|
57
|
+
band: string;
|
|
58
|
+
participantType: string;
|
|
59
|
+
isLead: boolean;
|
|
60
|
+
isPrimary: boolean;
|
|
61
|
+
firstName: string;
|
|
62
|
+
lastName: string;
|
|
63
|
+
fullName: string;
|
|
64
|
+
email: string;
|
|
65
|
+
phone: string;
|
|
66
|
+
dateOfBirth: string;
|
|
67
|
+
document: {
|
|
68
|
+
type: string;
|
|
69
|
+
number: string;
|
|
70
|
+
country: string;
|
|
71
|
+
issuingAuthority: string;
|
|
72
|
+
issueDate: string;
|
|
73
|
+
expiryDate: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export interface ContractItemVariable {
|
|
77
|
+
index: number;
|
|
78
|
+
kind: string;
|
|
79
|
+
description: string;
|
|
80
|
+
quantity: number;
|
|
81
|
+
unitAmountCents: number;
|
|
82
|
+
totalAmountCents: number;
|
|
83
|
+
currency: string;
|
|
84
|
+
taxIncluded: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface DefaultContractVariables {
|
|
87
|
+
today: string;
|
|
88
|
+
currentDate: string;
|
|
89
|
+
currentDateTime: string;
|
|
90
|
+
currentTime: string;
|
|
91
|
+
contract: {
|
|
92
|
+
contractNumber: string;
|
|
93
|
+
/** Alias used by older templates: `{{ contract.number }}`. */
|
|
94
|
+
number: string;
|
|
95
|
+
contractDate: string;
|
|
96
|
+
/** Alias used by templates that read `{{ contract.date }}`. */
|
|
97
|
+
date: string;
|
|
98
|
+
issuedAt: string;
|
|
99
|
+
signedAt: string;
|
|
100
|
+
isManual: boolean;
|
|
101
|
+
series: string;
|
|
102
|
+
channel: string;
|
|
103
|
+
source: string;
|
|
104
|
+
status: string;
|
|
105
|
+
};
|
|
106
|
+
booking: {
|
|
107
|
+
bookingId: string;
|
|
108
|
+
bookingNumber: string;
|
|
109
|
+
/** Alias used by templates that read `{{ booking.number }}`. */
|
|
110
|
+
number: string;
|
|
111
|
+
/** Alias used by templates that read `{{ booking.id }}`. */
|
|
112
|
+
id: string;
|
|
113
|
+
status: string;
|
|
114
|
+
entityModule: string;
|
|
115
|
+
entityId: string;
|
|
116
|
+
vertical: string;
|
|
117
|
+
productName: string;
|
|
118
|
+
productSubtitle: string;
|
|
119
|
+
destination: string;
|
|
120
|
+
pax: number | null;
|
|
121
|
+
paxTotal: number;
|
|
122
|
+
paxAdult: number;
|
|
123
|
+
paxChild: number;
|
|
124
|
+
paxInfant: number;
|
|
125
|
+
paxBands: Record<string, number>;
|
|
126
|
+
travelDates: {
|
|
127
|
+
start: string;
|
|
128
|
+
end: string;
|
|
129
|
+
durationNights: number;
|
|
130
|
+
};
|
|
131
|
+
startDate: string | null;
|
|
132
|
+
endDate: string | null;
|
|
133
|
+
sellCurrency: string;
|
|
134
|
+
sellAmountCents: number | null;
|
|
135
|
+
sellSubtotalCents: number;
|
|
136
|
+
sellTaxAmountCents: number;
|
|
137
|
+
sellDiscountAmountCents: number;
|
|
138
|
+
costCurrency: string;
|
|
139
|
+
costAmountCents: number;
|
|
140
|
+
baseCurrency: string;
|
|
141
|
+
baseSellAmountCents: number;
|
|
142
|
+
marginPercent: number;
|
|
143
|
+
currency: string;
|
|
144
|
+
totalAmountCents: number | null;
|
|
145
|
+
subtotalAmountCents: number;
|
|
146
|
+
taxAmountCents: number;
|
|
147
|
+
discountAmountCents: number;
|
|
148
|
+
paidAmountCents: number;
|
|
149
|
+
/** Current remaining amount owed after completed payments / invoice balance. */
|
|
150
|
+
amountDueCents: number;
|
|
151
|
+
balanceDueCents: number;
|
|
152
|
+
isPaidInFull: boolean;
|
|
153
|
+
depositAmountCents: number;
|
|
154
|
+
depositDueDate: string;
|
|
155
|
+
balanceAmountCents: number;
|
|
156
|
+
balanceDueDate: string;
|
|
157
|
+
paymentPolicy: {
|
|
158
|
+
source: string;
|
|
159
|
+
};
|
|
160
|
+
roomsSummary: string;
|
|
161
|
+
source: {
|
|
162
|
+
kind: string;
|
|
163
|
+
type: string;
|
|
164
|
+
connectionId: string;
|
|
165
|
+
ref: string;
|
|
166
|
+
externalRef: string;
|
|
167
|
+
supplier: {
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
internalNotes: string;
|
|
173
|
+
customerNotes: string;
|
|
174
|
+
};
|
|
175
|
+
customer: {
|
|
176
|
+
type: string;
|
|
177
|
+
firstName: string;
|
|
178
|
+
lastName: string;
|
|
179
|
+
fullName: string;
|
|
180
|
+
email: string;
|
|
181
|
+
phone: string;
|
|
182
|
+
dateOfBirth: string;
|
|
183
|
+
companyName: string;
|
|
184
|
+
vatId: string;
|
|
185
|
+
registrationNumber: string;
|
|
186
|
+
address: {
|
|
187
|
+
line1: string;
|
|
188
|
+
line2: string;
|
|
189
|
+
city: string;
|
|
190
|
+
region: string;
|
|
191
|
+
postal: string;
|
|
192
|
+
country: string;
|
|
193
|
+
};
|
|
194
|
+
document: {
|
|
195
|
+
type: string;
|
|
196
|
+
number: string;
|
|
197
|
+
country: string;
|
|
198
|
+
issuingAuthority: string;
|
|
199
|
+
issueDate: string;
|
|
200
|
+
expiryDate: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
leadTraveler: {
|
|
204
|
+
id: string;
|
|
205
|
+
firstName: string;
|
|
206
|
+
lastName: string;
|
|
207
|
+
fullName: string;
|
|
208
|
+
email: string;
|
|
209
|
+
phone: string;
|
|
210
|
+
} | null;
|
|
211
|
+
travelers: ContractTravelerVariable[];
|
|
212
|
+
/** Alias used by templates that read `{{ passengers }}`. */
|
|
213
|
+
passengers: ContractTravelerVariable[];
|
|
214
|
+
items: ContractItemVariable[];
|
|
215
|
+
addons: ContractItemVariable[];
|
|
216
|
+
product: {
|
|
217
|
+
title: string;
|
|
218
|
+
subtitle: string;
|
|
219
|
+
destination: string;
|
|
220
|
+
module: string;
|
|
221
|
+
id: string;
|
|
222
|
+
vertical: string;
|
|
223
|
+
heroImageUrl: string;
|
|
224
|
+
};
|
|
225
|
+
departureSlot: {
|
|
226
|
+
slotId: string;
|
|
227
|
+
startAt: string;
|
|
228
|
+
endAt: string;
|
|
229
|
+
durationDays: number;
|
|
230
|
+
departureCity: string;
|
|
231
|
+
};
|
|
232
|
+
sailing: {
|
|
233
|
+
sailingId: string;
|
|
234
|
+
ship: string;
|
|
235
|
+
embarkationPort: string;
|
|
236
|
+
disembarkationPort: string;
|
|
237
|
+
airArrangement: string;
|
|
238
|
+
startDate: string;
|
|
239
|
+
endDate: string;
|
|
240
|
+
cabinCategoryId: string;
|
|
241
|
+
cabinNumberId: string;
|
|
242
|
+
};
|
|
243
|
+
stay: {
|
|
244
|
+
checkIn: string;
|
|
245
|
+
checkOut: string;
|
|
246
|
+
nights: number;
|
|
247
|
+
rooms: Array<{
|
|
248
|
+
optionUnitId: string;
|
|
249
|
+
quantity: number;
|
|
250
|
+
ratePlanId: string;
|
|
251
|
+
}>;
|
|
252
|
+
destination: string;
|
|
253
|
+
};
|
|
254
|
+
payment: {
|
|
255
|
+
intent: string;
|
|
256
|
+
method: string;
|
|
257
|
+
amountCents: number;
|
|
258
|
+
currency: string;
|
|
259
|
+
schedule: Array<{
|
|
260
|
+
index: number;
|
|
261
|
+
type: string;
|
|
262
|
+
amountCents: number;
|
|
263
|
+
currency: string;
|
|
264
|
+
dueDate: string;
|
|
265
|
+
status: string;
|
|
266
|
+
}>;
|
|
267
|
+
capturedAt: string;
|
|
268
|
+
/** Alias for `capturedAt`, exposed for templates that prefer the
|
|
269
|
+
* `created_at` naming. */
|
|
270
|
+
createdAt: string;
|
|
271
|
+
latestCompleted?: {
|
|
272
|
+
method: string;
|
|
273
|
+
methodLabel: string;
|
|
274
|
+
date: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
operator: OperatorContextVariables;
|
|
278
|
+
acceptance: AcceptanceContextVariables;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Hook point so consumers can extend (or replace) the template variables.
|
|
282
|
+
* Receives the default payload plus the raw booking/travelers so the
|
|
283
|
+
* consumer can fold in product/person/etc. lookups without re-fetching.
|
|
284
|
+
*/
|
|
285
|
+
export type ResolveContractVariablesFn = (context: {
|
|
286
|
+
db: PostgresJsDatabase;
|
|
287
|
+
booking: NonNullable<Awaited<ReturnType<typeof bookingsService.getBookingById>>>;
|
|
288
|
+
travelers: Awaited<ReturnType<typeof bookingsService.listTravelers>>;
|
|
289
|
+
defaults: DefaultContractVariables;
|
|
290
|
+
/**
|
|
291
|
+
* Runtime bindings (Cloudflare Worker `env` or Node `process.env`)
|
|
292
|
+
* passed through from the auto-generate runtime. Use this to read
|
|
293
|
+
* deploy-specific env vars like `DOCUMENTS_BASE_URL` for templates
|
|
294
|
+
* that compose absolute resource URLs (logos, hosted fonts).
|
|
295
|
+
*
|
|
296
|
+
* `null` when the runtime didn't supply bindings — usually only in
|
|
297
|
+
* tests; production code paths always pass them.
|
|
298
|
+
*/
|
|
299
|
+
bindings?: Record<string, unknown> | null;
|
|
300
|
+
}) => Promise<Record<string, unknown>> | Record<string, unknown>;
|
|
301
|
+
export interface AutoGenerateContractOptions {
|
|
302
|
+
enabled?: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Slug of the contract template to use. The contract is created against
|
|
305
|
+
* that template's `currentVersionId`. If the template has no current
|
|
306
|
+
* version, the handler logs + bails.
|
|
307
|
+
*/
|
|
308
|
+
templateSlug: string;
|
|
309
|
+
/**
|
|
310
|
+
* Scope the contract defaults to when creating. Matches
|
|
311
|
+
* `contractScopeEnum`; the default `"customer"` is right for the common
|
|
312
|
+
* operator-issues-to-traveler case.
|
|
313
|
+
*/
|
|
314
|
+
scope?: "customer" | "supplier" | "partner" | "channel" | "other";
|
|
315
|
+
/**
|
|
316
|
+
* When set, the contract tries to allocate a number from the matching
|
|
317
|
+
* active series on issuance. Without it, the contract issues unnumbered.
|
|
318
|
+
* @deprecated Prefer `seriesPrefixScope` — `name` has no unique
|
|
319
|
+
* constraint, so this lookup throws if multiple active rows share the
|
|
320
|
+
* name. `(prefix, scope)` is the natural key (partial-unique-indexed).
|
|
321
|
+
*/
|
|
322
|
+
seriesName?: string;
|
|
323
|
+
/**
|
|
324
|
+
* When set, resolves the active series via the `(prefix, scope)`
|
|
325
|
+
* partial unique index. Takes precedence over `seriesName`.
|
|
326
|
+
*/
|
|
327
|
+
seriesPrefixScope?: {
|
|
328
|
+
prefix: string;
|
|
329
|
+
scope: "customer" | "supplier" | "partner" | "channel" | "other";
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Language code written onto the contract row. Used by the PDF
|
|
333
|
+
* renderer to pick the right locale for date/currency filters.
|
|
334
|
+
*/
|
|
335
|
+
language?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Optional variable extender — see `ResolveContractVariablesFn`.
|
|
338
|
+
*/
|
|
339
|
+
resolveVariables?: ResolveContractVariablesFn;
|
|
340
|
+
/**
|
|
341
|
+
* Dry-run mode used by the operator dashboard's "Add contract"
|
|
342
|
+
* preview. Runs the same template lookup + variable build + render
|
|
343
|
+
* pipeline as a full generate, but returns the rendered HTML without
|
|
344
|
+
* persisting a contract row, allocating a series number, or asking
|
|
345
|
+
* the PDF generator for bytes. Idempotency check is skipped so the
|
|
346
|
+
* preview always reflects the current template + booking state.
|
|
347
|
+
*/
|
|
348
|
+
previewMode?: boolean;
|
|
349
|
+
}
|
|
350
|
+
export interface AutoGenerateContractRuntime {
|
|
351
|
+
generator: ContractDocumentGenerator;
|
|
352
|
+
eventBus?: import("@voyantjs/core").EventBus;
|
|
353
|
+
lifecycleHooks?: readonly ContractLifecycleHook[];
|
|
354
|
+
/**
|
|
355
|
+
* Optional sensitive booking-traveler reader. When supplied, the default
|
|
356
|
+
* resolver can include traveler DOB/document snapshots in the template bag.
|
|
357
|
+
* When absent, those fields keep their empty-string fallbacks.
|
|
358
|
+
*/
|
|
359
|
+
bookingPiiService?: BookingPiiService | null;
|
|
360
|
+
actionLedgerContext?: ActionLedgerRequestContextValues | null;
|
|
361
|
+
/**
|
|
362
|
+
* Runtime bindings forwarded into `resolveVariables` so consumers
|
|
363
|
+
* can read deploy-specific env vars (e.g. `DOCUMENTS_BASE_URL`)
|
|
364
|
+
* without restructuring every auto-generate call site to know
|
|
365
|
+
* about them.
|
|
366
|
+
*/
|
|
367
|
+
bindings?: Record<string, unknown> | null;
|
|
368
|
+
}
|
|
369
|
+
export type AutoGenerateContractResult = {
|
|
370
|
+
status: "ok";
|
|
371
|
+
contractId: string;
|
|
372
|
+
attachmentId: string;
|
|
373
|
+
} | {
|
|
374
|
+
status: "template_not_found";
|
|
375
|
+
} | {
|
|
376
|
+
status: "template_version_missing";
|
|
377
|
+
} | {
|
|
378
|
+
status: "booking_not_found";
|
|
379
|
+
} | {
|
|
380
|
+
status: "contract_create_failed";
|
|
381
|
+
} | {
|
|
382
|
+
status: "document_failed";
|
|
383
|
+
reason: string;
|
|
384
|
+
} | {
|
|
385
|
+
status: "preview";
|
|
386
|
+
html: string;
|
|
387
|
+
templateName: string;
|
|
388
|
+
templateLanguage: string;
|
|
389
|
+
};
|
|
390
|
+
export type GenerateContractForBookingResult = AutoGenerateContractResult | {
|
|
391
|
+
status: "series_not_found";
|
|
392
|
+
} | {
|
|
393
|
+
status: "series_ambiguous";
|
|
394
|
+
};
|
|
395
|
+
//# sourceMappingURL=service-auto-generate-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-auto-generate-types.d.ts","sourceRoot":"","sources":["../../src/contracts/service-auto-generate-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAA;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEvE;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,MAAM,CAAA;IACxB,oEAAoE;IACpE,aAAa,EAAE,MAAM,CAAA;IACrB,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB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";
|
|
2
|
+
import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
|
|
3
|
+
import type { AutoGenerateContractOptions, AutoGenerateContractRuntime, BookingConfirmedLikeEvent } from "./service-auto-generate-types.js";
|
|
4
|
+
type BookingRow = NonNullable<Awaited<ReturnType<typeof bookingsService.getBookingById>>>;
|
|
5
|
+
export declare function resolveContractGenerationVariables(db: PostgresJsDatabase, booking: BookingRow, event: BookingConfirmedLikeEvent, options: AutoGenerateContractOptions, runtime: AutoGenerateContractRuntime, template: {
|
|
6
|
+
id: string;
|
|
7
|
+
}): Promise<Record<string, unknown>>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=service-auto-generate-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-auto-generate-variables.d.ts","sourceRoot":"","sources":["../../src/contracts/service-auto-generate-variables.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,eAAe,EAChB,MAAM,oBAAoB,CAAA;AAI3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EAI1B,MAAM,kCAAkC,CAAA;AAEzC,KAAK,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAA;AAEzF,wBAAsB,kCAAkC,CACtD,EAAE,EAAE,kBAAkB,EACtB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,2BAA2B,EACpC,QAAQ,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA6SlC"}
|