@voyant-travel/distribution 0.109.8 → 0.110.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.
@@ -79,7 +79,7 @@ export declare const bookingDistributionDetails: import("drizzle-orm/pg-core").P
79
79
  tableName: "booking_distribution_details";
80
80
  dataType: "string";
81
81
  columnType: "PgEnumColumn";
82
- data: "operator" | "channel" | "split";
82
+ data: "split" | "operator" | "channel";
83
83
  driverParam: string;
84
84
  notNull: true;
85
85
  hasDefault: true;
@@ -135,9 +135,9 @@ declare const bookingDistributionDetailSchema: z.ZodObject<{
135
135
  sourceChannelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
136
136
  fxRateSetId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
137
137
  paymentOwner: z.ZodDefault<z.ZodEnum<{
138
+ split: "split";
138
139
  operator: "operator";
139
140
  channel: "channel";
140
- split: "split";
141
141
  }>>;
142
142
  }, z.core.$strip>;
143
143
  export declare const bookingDistributionExtensionService: {
@@ -146,18 +146,18 @@ export declare const bookingDistributionExtensionService: {
146
146
  marketId: string | null;
147
147
  sourceChannelId: string | null;
148
148
  fxRateSetId: string | null;
149
- paymentOwner: "operator" | "channel" | "split";
149
+ paymentOwner: "split" | "operator" | "channel";
150
150
  createdAt: Date;
151
151
  updatedAt: Date;
152
152
  } | null>;
153
153
  upsert(db: PostgresJsDatabase, bookingId: string, data: z.infer<typeof bookingDistributionDetailSchema>): Promise<{
154
+ createdAt: Date;
155
+ updatedAt: Date;
154
156
  bookingId: string;
155
157
  marketId: string | null;
156
158
  sourceChannelId: string | null;
157
159
  fxRateSetId: string | null;
158
- paymentOwner: "operator" | "channel" | "split";
159
- createdAt: Date;
160
- updatedAt: Date;
160
+ paymentOwner: "split" | "operator" | "channel";
161
161
  } | null>;
162
162
  remove(db: PostgresJsDatabase, bookingId: string): Promise<{
163
163
  bookingId: string;
@@ -42,22 +42,22 @@ export declare const externalRefsRoutes: import("hono/hono-base").HonoBase<Env,
42
42
  input: {};
43
43
  output: {
44
44
  data: {
45
- createdAt: string;
46
- updatedAt: string;
47
45
  metadata: {
48
46
  [x: string]: import("hono/utils/types").JSONValue;
49
47
  } | null;
50
48
  id: string;
51
49
  status: "active" | "inactive" | "archived";
52
- lastSyncedAt: string | null;
50
+ createdAt: string;
51
+ updatedAt: string;
53
52
  entityType: string;
54
53
  entityId: string;
54
+ isPrimary: boolean;
55
+ lastSyncedAt: string | null;
55
56
  sourceSystem: string;
56
57
  objectType: string;
57
58
  namespace: string;
58
59
  externalId: string;
59
60
  externalParentId: string | null;
60
- isPrimary: boolean;
61
61
  } | null;
62
62
  };
63
63
  outputFormat: "json";
@@ -225,22 +225,22 @@ export declare const externalRefsRoutes: import("hono/hono-base").HonoBase<Env,
225
225
  };
226
226
  output: {
227
227
  data: {
228
- createdAt: string;
229
- updatedAt: string;
230
228
  metadata: {
231
229
  [x: string]: import("hono/utils/types").JSONValue;
232
230
  } | null;
233
231
  id: string;
234
232
  status: "active" | "inactive" | "archived";
235
- lastSyncedAt: string | null;
233
+ createdAt: string;
234
+ updatedAt: string;
236
235
  entityType: string;
237
236
  entityId: string;
237
+ isPrimary: boolean;
238
+ lastSyncedAt: string | null;
238
239
  sourceSystem: string;
239
240
  objectType: string;
240
241
  namespace: string;
241
242
  externalId: string;
242
243
  externalParentId: string | null;
243
- isPrimary: boolean;
244
244
  } | null;
245
245
  };
246
246
  outputFormat: "json";
@@ -35,8 +35,8 @@ export declare const batchUpdateChannelContractSchema: z.ZodObject<{
35
35
  channelId: z.ZodOptional<z.ZodString>;
36
36
  supplierId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
37
37
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
38
- expired: "expired";
39
38
  active: "active";
39
+ expired: "expired";
40
40
  draft: "draft";
41
41
  terminated: "terminated";
42
42
  }>>>;
@@ -34,18 +34,18 @@ export declare const inventoryRoutes: import("hono/hono-base").HonoBase<Distribu
34
34
  input: {};
35
35
  output: {
36
36
  data: {
37
+ id: string;
37
38
  createdAt: string;
38
39
  updatedAt: string;
39
- id: string;
40
+ notes: string | null;
40
41
  active: boolean;
41
42
  channelId: string;
42
- productId: string;
43
- notes: string | null;
44
43
  contractId: string | null;
45
- optionId: string | null;
46
- startTimeId: string | null;
44
+ productId: string;
47
45
  validFrom: string | null;
48
46
  validTo: string | null;
47
+ optionId: string | null;
48
+ startTimeId: string | null;
49
49
  guaranteedCapacity: number | null;
50
50
  maxCapacity: number | null;
51
51
  } | undefined;
@@ -244,15 +244,15 @@ export declare const inventoryRoutes: import("hono/hono-base").HonoBase<Distribu
244
244
  input: {};
245
245
  output: {
246
246
  data: {
247
+ id: string;
247
248
  createdAt: string;
248
249
  updatedAt: string;
249
- id: string;
250
250
  active: boolean;
251
251
  startTimeId: string | null;
252
252
  guaranteedCapacity: number | null;
253
253
  maxCapacity: number | null;
254
- slotId: string | null;
255
254
  allotmentId: string;
255
+ slotId: string | null;
256
256
  dateLocal: string | null;
257
257
  soldCapacity: number | null;
258
258
  remainingCapacity: number | null;
@@ -421,7 +421,7 @@ export declare const inventoryRoutes: import("hono/hono-base").HonoBase<Distribu
421
421
  data: {
422
422
  id: string;
423
423
  allotmentId: string;
424
- releaseMode: "manual" | "automatic";
424
+ releaseMode: "automatic" | "manual";
425
425
  releaseDaysBeforeStart: number | null;
426
426
  releaseHoursBeforeStart: number | null;
427
427
  unsoldAction: "release_to_general_pool" | "expire" | "retain";
@@ -443,12 +443,12 @@ export declare const inventoryRoutes: import("hono/hono-base").HonoBase<Distribu
443
443
  input: {};
444
444
  output: {
445
445
  data: {
446
+ id: string;
446
447
  createdAt: string;
447
448
  updatedAt: string;
448
- id: string;
449
449
  notes: string | null;
450
450
  allotmentId: string;
451
- releaseMode: "manual" | "automatic";
451
+ releaseMode: "automatic" | "manual";
452
452
  releaseDaysBeforeStart: number | null;
453
453
  releaseHoursBeforeStart: number | null;
454
454
  unsoldAction: "release_to_general_pool" | "expire" | "retain";
@@ -466,7 +466,7 @@ export declare const inventoryRoutes: import("hono/hono-base").HonoBase<Distribu
466
466
  data: {
467
467
  id: string;
468
468
  allotmentId: string;
469
- releaseMode: "manual" | "automatic";
469
+ releaseMode: "automatic" | "manual";
470
470
  releaseDaysBeforeStart: number | null;
471
471
  releaseHoursBeforeStart: number | null;
472
472
  unsoldAction: "release_to_general_pool" | "expire" | "retain";
@@ -525,7 +525,7 @@ export declare const inventoryRoutes: import("hono/hono-base").HonoBase<Distribu
525
525
  data: {
526
526
  id: string;
527
527
  allotmentId: string;
528
- releaseMode: "manual" | "automatic";
528
+ releaseMode: "automatic" | "manual";
529
529
  releaseDaysBeforeStart: number | null;
530
530
  releaseHoursBeforeStart: number | null;
531
531
  unsoldAction: "release_to_general_pool" | "expire" | "retain";
@@ -561,7 +561,7 @@ export declare const inventoryRoutes: import("hono/hono-base").HonoBase<Distribu
561
561
  data: {
562
562
  id: string;
563
563
  allotmentId: string;
564
- releaseMode: "manual" | "automatic";
564
+ releaseMode: "automatic" | "manual";
565
565
  releaseDaysBeforeStart: number | null;
566
566
  releaseHoursBeforeStart: number | null;
567
567
  unsoldAction: "release_to_general_pool" | "expire" | "retain";
@@ -37,23 +37,23 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
37
37
  input: {};
38
38
  output: {
39
39
  data: {
40
- createdAt: string;
41
- updatedAt: string;
42
40
  metadata: {
43
41
  [x: string]: import("hono/utils/types").JSONValue;
44
42
  } | null;
45
43
  id: string;
46
44
  status: "void" | "draft" | "open" | "posted" | "paid";
47
- channelId: string;
45
+ createdAt: string;
46
+ updatedAt: string;
48
47
  notes: string | null;
48
+ channelId: string;
49
49
  contractId: string | null;
50
- paidAt: string | null;
51
50
  currencyCode: string | null;
52
51
  periodStart: string | null;
53
52
  periodEnd: string | null;
54
53
  statementReference: string | null;
55
54
  generatedAt: string | null;
56
55
  postedAt: string | null;
56
+ paidAt: string | null;
57
57
  } | undefined;
58
58
  };
59
59
  outputFormat: "json";
@@ -185,7 +185,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
185
185
  bookingLinkId: string | null;
186
186
  bookingId: string | null;
187
187
  commissionRuleId: string | null;
188
- status: "void" | "pending" | "paid" | "approved" | "disputed";
188
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
189
189
  grossAmountCents: number;
190
190
  commissionAmountCents: number;
191
191
  netRemittanceAmountCents: number;
@@ -210,14 +210,14 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
210
210
  input: {};
211
211
  output: {
212
212
  data: {
213
- bookingId: string | null;
213
+ id: string;
214
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
214
215
  createdAt: string;
215
216
  updatedAt: string;
216
- id: string;
217
- status: "void" | "pending" | "paid" | "approved" | "disputed";
218
217
  notes: string | null;
219
- paidAt: string | null;
218
+ bookingId: string | null;
220
219
  currencyCode: string | null;
220
+ paidAt: string | null;
221
221
  settlementRunId: string;
222
222
  bookingLinkId: string | null;
223
223
  commissionRuleId: string | null;
@@ -257,7 +257,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
257
257
  bookingLinkId: string | null;
258
258
  bookingId: string | null;
259
259
  commissionRuleId: string | null;
260
- status: "void" | "pending" | "paid" | "approved" | "disputed";
260
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
261
261
  grossAmountCents: number;
262
262
  commissionAmountCents: number;
263
263
  netRemittanceAmountCents: number;
@@ -299,7 +299,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
299
299
  bookingLinkId: string | null;
300
300
  bookingId: string | null;
301
301
  commissionRuleId: string | null;
302
- status: "void" | "pending" | "paid" | "approved" | "disputed";
302
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
303
303
  grossAmountCents: number;
304
304
  commissionAmountCents: number;
305
305
  netRemittanceAmountCents: number;
@@ -350,7 +350,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
350
350
  id: string;
351
351
  channelId: string;
352
352
  contractId: string | null;
353
- status: "archived" | "draft" | "completed" | "running";
353
+ status: "running" | "completed" | "archived" | "draft";
354
354
  periodStart: string | null;
355
355
  periodEnd: string | null;
356
356
  externalReportReference: string | null;
@@ -377,18 +377,18 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
377
377
  input: {};
378
378
  output: {
379
379
  data: {
380
- createdAt: string;
381
- updatedAt: string;
382
380
  metadata: {
383
381
  [x: string]: import("hono/utils/types").JSONValue;
384
382
  } | null;
385
383
  id: string;
386
- status: "archived" | "draft" | "completed" | "running";
387
- channelId: string;
384
+ status: "running" | "completed" | "archived" | "draft";
385
+ createdAt: string;
388
386
  startedAt: string | null;
387
+ updatedAt: string;
389
388
  notes: string | null;
390
- contractId: string | null;
391
389
  completedAt: string | null;
390
+ channelId: string;
391
+ contractId: string | null;
392
392
  periodStart: string | null;
393
393
  periodEnd: string | null;
394
394
  externalReportReference: string | null;
@@ -422,7 +422,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
422
422
  id: string;
423
423
  channelId: string;
424
424
  contractId: string | null;
425
- status: "archived" | "draft" | "completed" | "running";
425
+ status: "running" | "completed" | "archived" | "draft";
426
426
  periodStart: string | null;
427
427
  periodEnd: string | null;
428
428
  externalReportReference: string | null;
@@ -464,7 +464,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
464
464
  id: string;
465
465
  channelId: string;
466
466
  contractId: string | null;
467
- status: "archived" | "draft" | "completed" | "running";
467
+ status: "running" | "completed" | "archived" | "draft";
468
468
  periodStart: string | null;
469
469
  periodEnd: string | null;
470
470
  externalReportReference: string | null;
@@ -541,17 +541,17 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
541
541
  input: {};
542
542
  output: {
543
543
  data: {
544
- bookingId: string | null;
544
+ id: string;
545
545
  createdAt: string;
546
546
  updatedAt: string;
547
- id: string;
548
- externalBookingId: string | null;
549
547
  notes: string | null;
548
+ bookingId: string | null;
549
+ externalBookingId: string | null;
550
550
  bookingLinkId: string | null;
551
551
  reconciliationRunId: string;
552
552
  issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
553
- resolutionStatus: "ignored" | "open" | "resolved";
554
553
  severity: "error" | "info" | "warning";
554
+ resolutionStatus: "ignored" | "open" | "resolved";
555
555
  resolvedAt: string | null;
556
556
  } | undefined;
557
557
  };
@@ -675,7 +675,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
675
675
  targetId: string | null;
676
676
  slotId: string | null;
677
677
  actionTaken: "expired" | "released" | "retained" | "manual_override";
678
- status: "pending" | "failed" | "skipped" | "completed";
678
+ status: "failed" | "pending" | "completed" | "skipped";
679
679
  releasedCapacity: number | null;
680
680
  executedAt: string | null;
681
681
  notes: string | null;
@@ -699,16 +699,16 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
699
699
  input: {};
700
700
  output: {
701
701
  data: {
702
- createdAt: string;
703
- updatedAt: string;
704
702
  metadata: {
705
703
  [x: string]: import("hono/utils/types").JSONValue;
706
704
  } | null;
707
705
  id: string;
708
- status: "pending" | "failed" | "skipped" | "completed";
706
+ status: "failed" | "pending" | "completed" | "skipped";
707
+ createdAt: string;
708
+ updatedAt: string;
709
709
  notes: string | null;
710
- slotId: string | null;
711
710
  allotmentId: string;
711
+ slotId: string | null;
712
712
  releaseRuleId: string | null;
713
713
  targetId: string | null;
714
714
  actionTaken: "expired" | "released" | "retained" | "manual_override";
@@ -747,7 +747,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
747
747
  targetId: string | null;
748
748
  slotId: string | null;
749
749
  actionTaken: "expired" | "released" | "retained" | "manual_override";
750
- status: "pending" | "failed" | "skipped" | "completed";
750
+ status: "failed" | "pending" | "completed" | "skipped";
751
751
  releasedCapacity: number | null;
752
752
  executedAt: string | null;
753
753
  notes: string | null;
@@ -789,7 +789,7 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
789
789
  targetId: string | null;
790
790
  slotId: string | null;
791
791
  actionTaken: "expired" | "released" | "retained" | "manual_override";
792
- status: "pending" | "failed" | "skipped" | "completed";
792
+ status: "failed" | "pending" | "completed" | "skipped";
793
793
  releasedCapacity: number | null;
794
794
  executedAt: string | null;
795
795
  notes: string | null;
@@ -867,15 +867,15 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
867
867
  input: {};
868
868
  output: {
869
869
  data: {
870
- createdAt: string;
871
- updatedAt: string;
872
870
  metadata: {
873
871
  [x: string]: import("hono/utils/types").JSONValue;
874
872
  } | null;
875
873
  id: string;
874
+ createdAt: string;
875
+ updatedAt: string;
876
+ notes: string | null;
876
877
  active: boolean;
877
878
  channelId: string;
878
- notes: string | null;
879
879
  contractId: string | null;
880
880
  currencyCode: string | null;
881
881
  frequency: "manual" | "daily" | "weekly" | "monthly";
@@ -1038,15 +1038,15 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
1038
1038
  input: {};
1039
1039
  output: {
1040
1040
  data: {
1041
- createdAt: string;
1042
- updatedAt: string;
1043
1041
  metadata: {
1044
1042
  [x: string]: import("hono/utils/types").JSONValue;
1045
1043
  } | null;
1046
1044
  id: string;
1045
+ createdAt: string;
1046
+ updatedAt: string;
1047
+ notes: string | null;
1047
1048
  active: boolean;
1048
1049
  channelId: string;
1049
- notes: string | null;
1050
1050
  contractId: string | null;
1051
1051
  frequency: "manual" | "daily" | "weekly" | "monthly";
1052
1052
  autoRun: boolean;
@@ -1205,14 +1205,14 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
1205
1205
  input: {};
1206
1206
  output: {
1207
1207
  data: {
1208
- createdAt: string;
1209
- updatedAt: string;
1210
1208
  metadata: {
1211
1209
  [x: string]: import("hono/utils/types").JSONValue;
1212
1210
  } | null;
1213
1211
  id: string;
1214
- active: boolean;
1212
+ createdAt: string;
1213
+ updatedAt: string;
1215
1214
  notes: string | null;
1215
+ active: boolean;
1216
1216
  releaseRuleId: string;
1217
1217
  scheduleKind: "manual" | "daily" | "hourly";
1218
1218
  nextRunAt: string | null;
@@ -1363,15 +1363,15 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
1363
1363
  input: {};
1364
1364
  output: {
1365
1365
  data: {
1366
- createdAt: string;
1367
- updatedAt: string;
1368
1366
  metadata: {
1369
1367
  [x: string]: import("hono/utils/types").JSONValue;
1370
1368
  } | null;
1371
1369
  id: string;
1372
1370
  status: "ignored" | "open" | "resolved" | "investigating";
1373
- channelId: string;
1371
+ createdAt: string;
1372
+ updatedAt: string;
1374
1373
  notes: string | null;
1374
+ channelId: string;
1375
1375
  severity: "error" | "info" | "warning";
1376
1376
  resolvedAt: string | null;
1377
1377
  settlementItemId: string | null;
@@ -1526,13 +1526,13 @@ export declare const settlementRoutes: import("hono/hono-base").HonoBase<Distrib
1526
1526
  input: {};
1527
1527
  output: {
1528
1528
  data: {
1529
- createdAt: string;
1530
- updatedAt: string;
1531
1529
  metadata: {
1532
1530
  [x: string]: import("hono/utils/types").JSONValue;
1533
1531
  } | null;
1534
1532
  id: string;
1535
1533
  status: "pending" | "approved" | "rejected";
1534
+ createdAt: string;
1535
+ updatedAt: string;
1536
1536
  notes: string | null;
1537
1537
  settlementRunId: string;
1538
1538
  approverUserId: string | null;