@voyantjs/db 0.2.0 → 0.3.1

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,566 +1,5 @@
1
- // /packages/db/src/lib/typeid.ts
2
- // TypeID utility for generating time-sortable, prefixed identifiers
3
- // Uses UUIDv7 under the hood for natural chronological ordering
4
- import { TypeID, typeid } from "typeid-js";
5
- import { z } from "zod";
6
- /**
7
- * All entity prefixes for the Voyant platform.
8
- * Prefixes are 2-4 characters, lowercase alphanumeric.
9
- */
10
- export const PREFIXES = {
11
- // --- IAM ---
12
- user_profiles: "usrp",
13
- connection_secrets: "secr",
14
- // --- INFRA ---
15
- webhook_subscriptions: "hksub",
16
- webhook_deliveries: "whde",
17
- domains: "dom",
18
- email_domain_records: "emdr",
19
- // --- VOYANT MODULES ---
20
- communication_log: "clog",
21
- notification_templates: "ntpl",
22
- notification_deliveries: "ntdl",
23
- notification_reminder_rules: "ntrl",
24
- notification_reminder_runs: "ntrn",
25
- person_notes: "pnot",
26
- organization_notes: "onot",
27
- segments: "cseg",
28
- segment_members: "csgm",
29
- suppliers: "supp",
30
- supplier_services: "ssvc",
31
- supplier_rates: "srat",
32
- supplier_notes: "snot",
33
- supplier_availability: "sava",
34
- supplier_contracts: "scon",
35
- products: "prod",
36
- product_options: "popt",
37
- option_units: "ount",
38
- product_activation_settings: "pras",
39
- product_ticket_settings: "prts",
40
- product_visibility_settings: "prvs",
41
- product_capabilities: "prcp",
42
- product_delivery_formats: "prdf",
43
- product_translations: "prtr",
44
- product_option_translations: "potr",
45
- option_unit_translations: "outr",
46
- product_days: "pday",
47
- product_day_services: "pdse",
48
- product_versions: "pver",
49
- product_notes: "prnt",
50
- bookings: "book",
51
- booking_participants: "bkpt",
52
- booking_items: "bkit",
53
- booking_allocations: "bkac",
54
- booking_fulfillments: "bkfl",
55
- booking_redemption_events: "bkrd",
56
- booking_item_participants: "bkip",
57
- booking_passengers: "bkps",
58
- booking_supplier_statuses: "bkss",
59
- booking_activity_log: "bkal",
60
- booking_pii_access_log: "bkpl",
61
- booking_notes: "bnot",
62
- booking_documents: "bdoc",
63
- availability_rules: "avrl",
64
- availability_start_times: "avst",
65
- availability_slots: "avsl",
66
- availability_closeouts: "avcl",
67
- availability_pickup_points: "avpp",
68
- availability_slot_pickups: "avsp",
69
- product_meeting_configs: "pmcf",
70
- pickup_groups: "pkgr",
71
- pickup_locations: "pklo",
72
- location_pickup_times: "lpkt",
73
- custom_pickup_areas: "cpka",
74
- organizations: "orgn",
75
- people: "prsn",
76
- pipelines: "pipe",
77
- stages: "stge",
78
- opportunities: "oppt",
79
- opportunity_participants: "oppp",
80
- opportunity_products: "oppr",
81
- quotes: "quot",
82
- quote_lines: "qtln",
83
- activities: "actv",
84
- activity_links: "actl",
85
- activity_participants: "actp",
86
- custom_field_definitions: "cfdf",
87
- custom_field_values: "cfvl",
88
- invoices: "inv",
89
- payment_instruments: "pmin",
90
- payment_sessions: "pmss",
91
- payment_authorizations: "pmaz",
92
- payment_captures: "pmcp",
93
- booking_payment_schedules: "bkpy",
94
- booking_guarantees: "bkgu",
95
- booking_item_tax_lines: "bitx",
96
- booking_item_commissions: "bcom",
97
- invoice_line_items: "inli",
98
- payments: "pay",
99
- credit_notes: "crnt",
100
- credit_note_line_items: "cnli",
101
- supplier_payments: "spay",
102
- finance_notes: "fnot",
103
- resources: "resc",
104
- resource_pools: "rspl",
105
- resource_pool_members: "rspm",
106
- resource_requirements: "rsrq",
107
- resource_slot_assignments: "rssa",
108
- resource_closeouts: "rscl",
109
- ground_operators: "gopr",
110
- ground_vehicles: "gveh",
111
- ground_drivers: "gdrv",
112
- ground_transfer_preferences: "gtpr",
113
- ground_dispatches: "gdsp",
114
- ground_execution_events: "gexe",
115
- ground_dispatch_assignments: "gdas",
116
- ground_dispatch_legs: "gdlg",
117
- ground_dispatch_passengers: "gdps",
118
- ground_driver_shifts: "gdsh",
119
- ground_service_incidents: "gsin",
120
- ground_dispatch_checkpoints: "gdcp",
121
- channels: "chan",
122
- channel_contracts: "chco",
123
- channel_commission_rules: "chcr",
124
- channel_product_mappings: "chpm",
125
- channel_booking_links: "chbl",
126
- channel_webhook_events: "chwe",
127
- channel_inventory_allotments: "chia",
128
- channel_inventory_allotment_targets: "chat",
129
- channel_inventory_release_rules: "chir",
130
- channel_settlement_runs: "chsr",
131
- channel_settlement_items: "chsi",
132
- channel_reconciliation_runs: "chrr",
133
- channel_reconciliation_items: "chri",
134
- channel_inventory_release_executions: "chrx",
135
- channel_settlement_policies: "chsp",
136
- channel_reconciliation_policies: "chrp",
137
- channel_release_schedules: "chrs",
138
- channel_remittance_exceptions: "chre",
139
- channel_settlement_approvals: "chap",
140
- facilities: "faci",
141
- facility_contacts: "fcon",
142
- facility_features: "ffea",
143
- facility_operation_schedules: "fops",
144
- properties: "prop",
145
- property_groups: "pgrp",
146
- property_group_members: "pgpm",
147
- room_types: "hrmt",
148
- room_type_bed_configs: "hrbc",
149
- room_units: "hrun",
150
- meal_plans: "hmlp",
151
- rate_plans: "hrpl",
152
- rate_plan_room_types: "hrrt",
153
- stay_rules: "hstr",
154
- room_inventory: "hriv",
155
- rate_plan_inventory_overrides: "hrio",
156
- stay_booking_items: "hsbi",
157
- stay_daily_rates: "hsdr",
158
- room_type_rates: "hrtr",
159
- room_blocks: "hrbl",
160
- room_unit_status_events: "hrse",
161
- maintenance_blocks: "hmbl",
162
- housekeeping_tasks: "hhkt",
163
- stay_operations: "hsop",
164
- stay_checkpoints: "hscp",
165
- stay_service_posts: "hssp",
166
- stay_folios: "hsfo",
167
- stay_folio_lines: "hsfl",
168
- identity_contact_points: "idcp",
169
- identity_addresses: "idad",
170
- identity_named_contacts: "idnc",
171
- markets: "mrkt",
172
- market_locales: "mklo",
173
- market_currencies: "mkcu",
174
- fx_rate_sets: "fxrs",
175
- exchange_rates: "fxrt",
176
- pricing_categories: "prcg",
177
- pricing_category_dependencies: "prcd",
178
- cancellation_policies: "ccpo",
179
- cancellation_policy_rules: "ccpr",
180
- price_catalogs: "prca",
181
- price_schedules: "prsc",
182
- option_price_rules: "oprr",
183
- option_unit_price_rules: "oupr",
184
- option_start_time_rules: "ostr",
185
- option_unit_tiers: "outi",
186
- pickup_price_rules: "pkpr",
187
- dropoff_price_rules: "drpr",
188
- extra_price_rules: "expr",
189
- product_extras: "pxtr",
190
- option_extra_configs: "oexc",
191
- booking_extras: "bkex",
192
- product_contact_requirements: "pcre",
193
- product_booking_questions: "pbqq",
194
- option_booking_questions: "obqq",
195
- booking_question_options: "bqop",
196
- booking_question_unit_triggers: "bqut",
197
- booking_question_option_triggers: "bqot",
198
- booking_question_extra_triggers: "bqet",
199
- booking_answers: "bqan",
200
- offers: "offr",
201
- offer_participants: "ofpt",
202
- offer_items: "ofit",
203
- offer_item_participants: "ofip",
204
- orders: "ordr",
205
- order_participants: "orpt",
206
- order_items: "orit",
207
- order_item_participants: "orip",
208
- order_terms: "ortm",
209
- transaction_pii_access_log: "tpal",
210
- market_price_catalogs: "mkpc",
211
- market_product_rules: "mkpr",
212
- market_channel_rules: "mkcr",
213
- external_refs: "exrf",
214
- sellability_snapshots: "sels",
215
- sellability_snapshot_items: "sesi",
216
- sellability_policies: "slpo",
217
- sellability_policy_results: "slpr",
218
- offer_refresh_runs: "ofrr",
219
- offer_expiration_events: "ofee",
220
- sellability_explanations: "slex",
221
- // --- CONTRACTS ---
222
- contracts: "cont",
223
- contract_templates: "ctpl",
224
- contract_template_versions: "ctpv",
225
- contract_signatures: "ctsi",
226
- contract_number_series: "ctns",
227
- contract_attachments: "ctat",
228
- // --- POLICIES ---
229
- policies: "poli",
230
- policy_versions: "plvr",
231
- policy_rules: "plrl",
232
- policy_assignments: "plas",
233
- policy_acceptances: "plac",
234
- // --- FINANCE (invoicing extensions) ---
235
- invoice_number_series: "invs",
236
- invoice_templates: "invt",
237
- invoice_renditions: "invr",
238
- tax_regimes: "txrg",
239
- invoice_external_refs: "iner",
240
- // --- PRODUCT MEDIA ---
241
- product_media: "pmed",
242
- product_features: "pftr",
243
- product_faqs: "pfaq",
244
- product_locations: "ploc",
245
- // --- PRODUCT TAXONOMY ---
246
- product_types: "ptyp",
247
- product_categories: "pctg",
248
- product_tags: "ptag",
249
- // --- BOOKING EXTENSIONS ---
250
- booking_product_details: "bkpd",
251
- booking_item_product_details: "bipd",
252
- booking_crm_details: "bkcd",
253
- booking_transaction_details: "bktd",
254
- booking_distribution_details: "bkdd",
255
- booking_participant_travel_details: "bptd",
256
- };
257
- /**
258
- * Register a custom TypeID prefix for extension tables.
259
- *
260
- * @param tableName - The table/entity name
261
- * @param prefix - The 2-4 character prefix
262
- */
263
- export function registerPrefix(tableName, prefix) {
264
- if (PREFIXES[tableName]) {
265
- throw new Error(`Prefix already registered for table "${tableName}"`);
266
- }
267
- const existingValues = Object.values(PREFIXES);
268
- if (existingValues.includes(prefix)) {
269
- throw new Error(`Prefix "${prefix}" is already in use`);
270
- }
271
- ;
272
- PREFIXES[tableName] = prefix;
273
- }
274
- /**
275
- * Generates a new TypeID with the correct prefix.
276
- * Uses UUIDv7 automatically (time-sortable).
277
- *
278
- * @param prefix - The entity type key from PREFIXES
279
- * @returns A TypeID string like "usrp_01H8Z3Y4X2..."
280
- */
281
- export function newId(prefix) {
282
- return typeid(PREFIXES[prefix]).toString();
283
- }
284
- /**
285
- * Generates a new TypeID using a raw prefix string.
286
- *
287
- * @param prefix - The raw prefix string (e.g., "usrp")
288
- * @returns A TypeID string
289
- */
290
- export function newIdFromPrefix(prefix) {
291
- return typeid(prefix).toString();
292
- }
293
- export function decodeId(id, expectedPrefix) {
294
- if (expectedPrefix) {
295
- return TypeID.fromString(id, expectedPrefix);
296
- }
297
- return TypeID.fromString(id);
298
- }
299
- /**
300
- * Validates that a string is a valid TypeID with the expected prefix.
301
- */
302
- export function isValidId(id, expectedPrefix) {
303
- try {
304
- const decoded = decodeId(id);
305
- const prefix = expectedPrefix in PREFIXES ? PREFIXES[expectedPrefix] : expectedPrefix;
306
- return decoded.getType() === prefix;
307
- }
308
- catch {
309
- return false;
310
- }
311
- }
312
- /**
313
- * Extracts the prefix from a TypeID string.
314
- */
315
- export function getPrefix(id) {
316
- return decodeId(id).getType();
317
- }
318
- /**
319
- * Extracts the timestamp from a TypeID (UUIDv7 encodes creation time).
320
- */
321
- export function getTimestamp(id) {
322
- const decoded = decodeId(id);
323
- const uuid = decoded.toUUID();
324
- const hex = uuid.replace(/-/g, "").slice(0, 12);
325
- const ms = parseInt(hex, 16);
326
- return new Date(ms);
327
- }
328
- /**
329
- * Compares two TypeIDs chronologically.
330
- */
331
- export function compareIds(a, b) {
332
- return a.localeCompare(b);
333
- }
334
- // ============================================================================
335
- // Zod Schema Helpers
336
- // ============================================================================
337
- const TYPEID_SUFFIX_PATTERN = "[0-9a-hjkmnp-tv-z]{26}";
338
- /**
339
- * Creates a Zod schema for validating TypeIDs with a specific prefix.
340
- */
341
- export function typeIdSchema(prefix) {
342
- const prefixValue = prefix in PREFIXES ? PREFIXES[prefix] : prefix;
343
- const pattern = new RegExp(`^${prefixValue}_${TYPEID_SUFFIX_PATTERN}$`);
344
- return z.string().regex(pattern, {
345
- message: `Invalid TypeID: expected prefix "${prefixValue}_"`,
346
- });
347
- }
348
- /**
349
- * Creates a Zod schema for validating any TypeID.
350
- */
351
- export function anyTypeIdSchema() {
352
- const pattern = new RegExp(`^[a-z][a-z0-9]{0,62}_${TYPEID_SUFFIX_PATTERN}$`);
353
- return z.string().regex(pattern, {
354
- message: "Invalid TypeID format",
355
- });
356
- }
357
- /**
358
- * Creates a Zod schema that accepts either a TypeID or null/undefined.
359
- */
360
- export function typeIdSchemaOptional(prefix) {
361
- return typeIdSchema(prefix).nullable().optional();
362
- }
363
- /**
364
- * Pre-built Zod schemas for common entity types.
365
- */
366
- export const typeIdSchemas = {
367
- userProfile: typeIdSchema("user_profiles"),
368
- domain: typeIdSchema("domains"),
369
- webhookSubscription: typeIdSchema("webhook_subscriptions"),
370
- communicationLog: typeIdSchema("communication_log"),
371
- notificationTemplate: typeIdSchema("notification_templates"),
372
- notificationDelivery: typeIdSchema("notification_deliveries"),
373
- personNote: typeIdSchema("person_notes"),
374
- organizationNote: typeIdSchema("organization_notes"),
375
- segment: typeIdSchema("segments"),
376
- segmentMember: typeIdSchema("segment_members"),
377
- supplier: typeIdSchema("suppliers"),
378
- supplierService: typeIdSchema("supplier_services"),
379
- supplierRate: typeIdSchema("supplier_rates"),
380
- supplierNote: typeIdSchema("supplier_notes"),
381
- supplierAvailability: typeIdSchema("supplier_availability"),
382
- supplierContract: typeIdSchema("supplier_contracts"),
383
- facility: typeIdSchema("facilities"),
384
- facilityContact: typeIdSchema("facility_contacts"),
385
- facilityFeature: typeIdSchema("facility_features"),
386
- facilityOperationSchedule: typeIdSchema("facility_operation_schedules"),
387
- property: typeIdSchema("properties"),
388
- propertyGroup: typeIdSchema("property_groups"),
389
- propertyGroupMember: typeIdSchema("property_group_members"),
390
- market: typeIdSchema("markets"),
391
- marketLocale: typeIdSchema("market_locales"),
392
- marketCurrency: typeIdSchema("market_currencies"),
393
- fxRateSet: typeIdSchema("fx_rate_sets"),
394
- exchangeRate: typeIdSchema("exchange_rates"),
395
- pricingCategory: typeIdSchema("pricing_categories"),
396
- pricingCategoryDependency: typeIdSchema("pricing_category_dependencies"),
397
- cancellationPolicy: typeIdSchema("cancellation_policies"),
398
- cancellationPolicyRule: typeIdSchema("cancellation_policy_rules"),
399
- priceCatalog: typeIdSchema("price_catalogs"),
400
- priceSchedule: typeIdSchema("price_schedules"),
401
- optionPriceRule: typeIdSchema("option_price_rules"),
402
- optionUnitPriceRule: typeIdSchema("option_unit_price_rules"),
403
- optionStartTimeRule: typeIdSchema("option_start_time_rules"),
404
- optionUnitTier: typeIdSchema("option_unit_tiers"),
405
- pickupPriceRule: typeIdSchema("pickup_price_rules"),
406
- dropoffPriceRule: typeIdSchema("dropoff_price_rules"),
407
- extraPriceRule: typeIdSchema("extra_price_rules"),
408
- productExtra: typeIdSchema("product_extras"),
409
- optionExtraConfig: typeIdSchema("option_extra_configs"),
410
- bookingExtra: typeIdSchema("booking_extras"),
411
- productContactRequirement: typeIdSchema("product_contact_requirements"),
412
- productBookingQuestion: typeIdSchema("product_booking_questions"),
413
- optionBookingQuestion: typeIdSchema("option_booking_questions"),
414
- bookingQuestionOption: typeIdSchema("booking_question_options"),
415
- bookingQuestionUnitTrigger: typeIdSchema("booking_question_unit_triggers"),
416
- bookingQuestionOptionTrigger: typeIdSchema("booking_question_option_triggers"),
417
- bookingQuestionExtraTrigger: typeIdSchema("booking_question_extra_triggers"),
418
- bookingAnswer: typeIdSchema("booking_answers"),
419
- offer: typeIdSchema("offers"),
420
- offerParticipant: typeIdSchema("offer_participants"),
421
- offerItem: typeIdSchema("offer_items"),
422
- offerItemParticipant: typeIdSchema("offer_item_participants"),
423
- order: typeIdSchema("orders"),
424
- orderParticipant: typeIdSchema("order_participants"),
425
- orderItem: typeIdSchema("order_items"),
426
- orderItemParticipant: typeIdSchema("order_item_participants"),
427
- orderTerm: typeIdSchema("order_terms"),
428
- marketPriceCatalog: typeIdSchema("market_price_catalogs"),
429
- marketProductRule: typeIdSchema("market_product_rules"),
430
- marketChannelRule: typeIdSchema("market_channel_rules"),
431
- product: typeIdSchema("products"),
432
- productOption: typeIdSchema("product_options"),
433
- optionUnit: typeIdSchema("option_units"),
434
- productActivationSetting: typeIdSchema("product_activation_settings"),
435
- productTicketSetting: typeIdSchema("product_ticket_settings"),
436
- productVisibilitySetting: typeIdSchema("product_visibility_settings"),
437
- productCapability: typeIdSchema("product_capabilities"),
438
- productDeliveryFormat: typeIdSchema("product_delivery_formats"),
439
- productTranslation: typeIdSchema("product_translations"),
440
- productOptionTranslation: typeIdSchema("product_option_translations"),
441
- optionUnitTranslation: typeIdSchema("option_unit_translations"),
442
- productDay: typeIdSchema("product_days"),
443
- productDayService: typeIdSchema("product_day_services"),
444
- productVersion: typeIdSchema("product_versions"),
445
- productNote: typeIdSchema("product_notes"),
446
- booking: typeIdSchema("bookings"),
447
- bookingParticipant: typeIdSchema("booking_participants"),
448
- bookingItem: typeIdSchema("booking_items"),
449
- bookingItemParticipant: typeIdSchema("booking_item_participants"),
450
- bookingPassenger: typeIdSchema("booking_participants"),
451
- bookingSupplierStatus: typeIdSchema("booking_supplier_statuses"),
452
- bookingActivity: typeIdSchema("booking_activity_log"),
453
- bookingNote: typeIdSchema("booking_notes"),
454
- bookingDocument: typeIdSchema("booking_documents"),
455
- availabilityRule: typeIdSchema("availability_rules"),
456
- availabilityStartTime: typeIdSchema("availability_start_times"),
457
- availabilitySlot: typeIdSchema("availability_slots"),
458
- availabilityCloseout: typeIdSchema("availability_closeouts"),
459
- availabilityPickupPoint: typeIdSchema("availability_pickup_points"),
460
- availabilitySlotPickup: typeIdSchema("availability_slot_pickups"),
461
- roomBlock: typeIdSchema("room_blocks"),
462
- roomUnitStatusEvent: typeIdSchema("room_unit_status_events"),
463
- maintenanceBlock: typeIdSchema("maintenance_blocks"),
464
- housekeepingTask: typeIdSchema("housekeeping_tasks"),
465
- stayOperation: typeIdSchema("stay_operations"),
466
- stayCheckpoint: typeIdSchema("stay_checkpoints"),
467
- stayServicePost: typeIdSchema("stay_service_posts"),
468
- stayFolio: typeIdSchema("stay_folios"),
469
- stayFolioLine: typeIdSchema("stay_folio_lines"),
470
- roomTypeRate: typeIdSchema("room_type_rates"),
471
- organization: typeIdSchema("organizations"),
472
- person: typeIdSchema("people"),
473
- pipeline: typeIdSchema("pipelines"),
474
- stage: typeIdSchema("stages"),
475
- opportunity: typeIdSchema("opportunities"),
476
- opportunityParticipant: typeIdSchema("opportunity_participants"),
477
- opportunityProduct: typeIdSchema("opportunity_products"),
478
- quote: typeIdSchema("quotes"),
479
- quoteLine: typeIdSchema("quote_lines"),
480
- activity: typeIdSchema("activities"),
481
- activityLink: typeIdSchema("activity_links"),
482
- activityParticipant: typeIdSchema("activity_participants"),
483
- customFieldDefinition: typeIdSchema("custom_field_definitions"),
484
- customFieldValue: typeIdSchema("custom_field_values"),
485
- invoice: typeIdSchema("invoices"),
486
- paymentInstrument: typeIdSchema("payment_instruments"),
487
- paymentSession: typeIdSchema("payment_sessions"),
488
- paymentAuthorization: typeIdSchema("payment_authorizations"),
489
- paymentCapture: typeIdSchema("payment_captures"),
490
- bookingPaymentSchedule: typeIdSchema("booking_payment_schedules"),
491
- bookingGuarantee: typeIdSchema("booking_guarantees"),
492
- bookingItemTaxLine: typeIdSchema("booking_item_tax_lines"),
493
- bookingItemCommission: typeIdSchema("booking_item_commissions"),
494
- invoiceLineItem: typeIdSchema("invoice_line_items"),
495
- payment: typeIdSchema("payments"),
496
- creditNote: typeIdSchema("credit_notes"),
497
- creditNoteLineItem: typeIdSchema("credit_note_line_items"),
498
- supplierPayment: typeIdSchema("supplier_payments"),
499
- financeNote: typeIdSchema("finance_notes"),
500
- resource: typeIdSchema("resources"),
501
- resourcePool: typeIdSchema("resource_pools"),
502
- resourcePoolMember: typeIdSchema("resource_pool_members"),
503
- resourceRequirement: typeIdSchema("resource_requirements"),
504
- resourceAllocation: typeIdSchema("resource_requirements"),
505
- resourceSlotAssignment: typeIdSchema("resource_slot_assignments"),
506
- resourceCloseout: typeIdSchema("resource_closeouts"),
507
- groundOperator: typeIdSchema("ground_operators"),
508
- groundVehicle: typeIdSchema("ground_vehicles"),
509
- groundDriver: typeIdSchema("ground_drivers"),
510
- groundTransferPreference: typeIdSchema("ground_transfer_preferences"),
511
- groundDispatch: typeIdSchema("ground_dispatches"),
512
- groundExecutionEvent: typeIdSchema("ground_execution_events"),
513
- groundDispatchAssignment: typeIdSchema("ground_dispatch_assignments"),
514
- groundDispatchLeg: typeIdSchema("ground_dispatch_legs"),
515
- groundDispatchPassenger: typeIdSchema("ground_dispatch_passengers"),
516
- groundDriverShift: typeIdSchema("ground_driver_shifts"),
517
- groundServiceIncident: typeIdSchema("ground_service_incidents"),
518
- groundDispatchCheckpoint: typeIdSchema("ground_dispatch_checkpoints"),
519
- channel: typeIdSchema("channels"),
520
- channelContract: typeIdSchema("channel_contracts"),
521
- channelCommissionRule: typeIdSchema("channel_commission_rules"),
522
- channelProductMapping: typeIdSchema("channel_product_mappings"),
523
- channelBookingLink: typeIdSchema("channel_booking_links"),
524
- channelWebhookEvent: typeIdSchema("channel_webhook_events"),
525
- channelSettlementRun: typeIdSchema("channel_settlement_runs"),
526
- channelSettlementItem: typeIdSchema("channel_settlement_items"),
527
- channelReconciliationRun: typeIdSchema("channel_reconciliation_runs"),
528
- channelReconciliationItem: typeIdSchema("channel_reconciliation_items"),
529
- channelInventoryReleaseExecution: typeIdSchema("channel_inventory_release_executions"),
530
- channelSettlementPolicy: typeIdSchema("channel_settlement_policies"),
531
- channelReconciliationPolicy: typeIdSchema("channel_reconciliation_policies"),
532
- channelReleaseSchedule: typeIdSchema("channel_release_schedules"),
533
- channelRemittanceException: typeIdSchema("channel_remittance_exceptions"),
534
- channelSettlementApproval: typeIdSchema("channel_settlement_approvals"),
535
- sellabilitySnapshot: typeIdSchema("sellability_snapshots"),
536
- sellabilitySnapshotItem: typeIdSchema("sellability_snapshot_items"),
537
- sellabilityPolicy: typeIdSchema("sellability_policies"),
538
- sellabilityPolicyResult: typeIdSchema("sellability_policy_results"),
539
- offerRefreshRun: typeIdSchema("offer_refresh_runs"),
540
- offerExpirationEvent: typeIdSchema("offer_expiration_events"),
541
- sellabilityExplanation: typeIdSchema("sellability_explanations"),
542
- productMedia: typeIdSchema("product_media"),
543
- productFeature: typeIdSchema("product_features"),
544
- productFaq: typeIdSchema("product_faqs"),
545
- productLocation: typeIdSchema("product_locations"),
546
- productType: typeIdSchema("product_types"),
547
- productCategory: typeIdSchema("product_categories"),
548
- productTag: typeIdSchema("product_tags"),
549
- contract: typeIdSchema("contracts"),
550
- contractTemplate: typeIdSchema("contract_templates"),
551
- contractTemplateVersion: typeIdSchema("contract_template_versions"),
552
- contractSignature: typeIdSchema("contract_signatures"),
553
- contractNumberSeries: typeIdSchema("contract_number_series"),
554
- contractAttachment: typeIdSchema("contract_attachments"),
555
- policy: typeIdSchema("policies"),
556
- policyVersion: typeIdSchema("policy_versions"),
557
- policyRule: typeIdSchema("policy_rules"),
558
- policyAssignment: typeIdSchema("policy_assignments"),
559
- policyAcceptance: typeIdSchema("policy_acceptances"),
560
- invoiceNumberSeries: typeIdSchema("invoice_number_series"),
561
- invoiceTemplate: typeIdSchema("invoice_templates"),
562
- invoiceRendition: typeIdSchema("invoice_renditions"),
563
- taxRegime: typeIdSchema("tax_regimes"),
564
- invoiceExternalRef: typeIdSchema("invoice_external_refs"),
565
- };
1
+ export * from "./typeid-core.js";
2
+ export * from "./typeid-prefixes.js";
3
+ export * from "./typeid-schemas.js";
4
+ export * from "./typeid-zod.js";
566
5
  //# sourceMappingURL=typeid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeid.js","sourceRoot":"","sources":["../../src/lib/typeid.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,oEAAoE;AACpE,gEAAgE;AAEhE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,cAAc;IACd,aAAa,EAAE,MAAM;IACrB,kBAAkB,EAAE,MAAM;IAE1B,gBAAgB;IAChB,qBAAqB,EAAE,OAAO;IAC9B,kBAAkB,EAAE,MAAM;IAC1B,OAAO,EAAE,KAAK;IACd,oBAAoB,EAAE,MAAM;IAE5B,yBAAyB;IACzB,iBAAiB,EAAE,MAAM;IACzB,sBAAsB,EAAE,MAAM;IAC9B,uBAAuB,EAAE,MAAM;IAC/B,2BAA2B,EAAE,MAAM;IACnC,0BAA0B,EAAE,MAAM;IAClC,YAAY,EAAE,MAAM;IACpB,kBAAkB,EAAE,MAAM;IAC1B,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE,MAAM;IACvB,SAAS,EAAE,MAAM;IACjB,iBAAiB,EAAE,MAAM;IACzB,cAAc,EAAE,MAAM;IACtB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oBAAoB,EAAE,YAAY,CAAC,wBAAwB,CAAC;IAC5D,kBAAkB,EAAE,YAAY,CAAC,sBAAsB,CAAC;IACxD,MAAM,EAAE,YAAY,CAAC,UAAU,CAAC;IAChC,aAAa,EAAE,YAAY,CAAC,iBAAiB,CAAC;IAC9C,UAAU,EAAE,YAAY,CAAC,cAAc,CAAC;IACxC,gBAAgB,EAAE,YAAY,CAAC,oBAAoB,CAAC;IACpD,gBAAgB,EAAE,YAAY,CAAC,oBAAoB,CAAC;IACpD,mBAAmB,EAAE,YAAY,CAAC,uBAAuB,CAAC;IAC1D,eAAe,EAAE,YAAY,CAAC,mBAAmB,CAAC;IAClD,gBAAgB,EAAE,YAAY,CAAC,oBAAoB,CAAC;IACpD,SAAS,EAAE,YAAY,CAAC,aAAa,CAAC;IACtC,kBAAkB,EAAE,YAAY,CAAC,uBAAuB,CAAC;CACjD,CAAA"}
1
+ {"version":3,"file":"typeid.js","sourceRoot":"","sources":["../../src/lib/typeid.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAejE;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,kBAAkB,CASjD;AAED;;GAEG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAKjD;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUzE"}
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AA4BjE;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,kBAAkB,CASjD;AAED;;GAEG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAKjD;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUzE"}
@@ -1,6 +1,18 @@
1
1
  import { sql } from "drizzle-orm";
2
2
  import { createDbClient } from "./index.js";
3
- const TEST_DB_URL = process.env.TEST_DATABASE_URL ?? "postgres://test:test@localhost:5433/voyant_test";
3
+ const TEST_DB_PORT = process.env.TEST_DATABASE_PORT ?? "5436";
4
+ const TEST_DB_NAME = "voyant_test";
5
+ const TEST_DB_USER = "test";
6
+ const TEST_DB_PASSWORD = "test";
7
+ function buildDefaultTestDbUrl(port) {
8
+ const url = new URL("postgres://localhost");
9
+ url.port = port;
10
+ url.pathname = `/${TEST_DB_NAME}`;
11
+ url.username = TEST_DB_USER;
12
+ url.password = TEST_DB_PASSWORD;
13
+ return url.toString();
14
+ }
15
+ const TEST_DB_URL = process.env.TEST_DATABASE_URL ?? buildDefaultTestDbUrl(TEST_DB_PORT);
4
16
  let testDbSingleton = null;
5
17
  /**
6
18
  * Creates a database client connected to the test database.
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAGjC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,MAAM,WAAW,GACf,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,iDAAiD,CAAA;AAQpF,IAAI,eAAe,GAAwC,IAAI,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,UAAU,YAAY;IAC1B,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,eAAe,GAAG,cAAc,CAAC,WAAW,EAAE;YAC5C,OAAO,EAAE,MAAM;YACf,kBAAk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CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC9D,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,YAAY,KAAK,UAAU,CAAC,CAAC,CAAA;IACxD,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/db",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -126,7 +126,7 @@
126
126
  "postgres": "^3.4.8",
127
127
  "typeid-js": "^1.2.0",
128
128
  "zod": "^4.3.6",
129
- "@voyantjs/core": "0.2.0"
129
+ "@voyantjs/core": "0.3.1"
130
130
  },
131
131
  "devDependencies": {
132
132
  "typescript": "^6.0.2",