@voyantjs/distribution 0.5.0 → 0.6.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.
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"booking-extension.d.ts","sourceRoot":"","sources":["../src/booking-extension.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,uBAAuB,wEAIlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,OAAO,0BAA0B,CAAC,YAAY,CAAA;AACtF,MAAM,MAAM,4BAA4B,GAAG,OAAO,0BAA0B,CAAC,YAAY,CAAA;AAMzF,QAAA,MAAM,+BAA+B;;;;;;;;;iBAKnC,CAAA;AAIF,eAAO,MAAM,mCAAmC;YAChC,kBAAkB,aAAa,MAAM;;;;;;;;;eAU7C,kBAAkB,aACX,MAAM,QACX,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC;;;;;;;;;eAyBtC,kBAAkB,aAAa,MAAM;;;CAOvD,CAAA;AAiDD,eAAO,MAAM,4BAA4B,EAAE,aAG1C,CAAA"}
1
+ {"version":3,"file":"booking-extension.d.ts","sourceRoot":"","sources":["../src/booking-extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,uBAAuB,wEAIlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,OAAO,0BAA0B,CAAC,YAAY,CAAA;AACtF,MAAM,MAAM,4BAA4B,GAAG,OAAO,0BAA0B,CAAC,YAAY,CAAA;AAMzF,QAAA,MAAM,+BAA+B;;;;;;;;;iBAKnC,CAAA;AAIF,eAAO,MAAM,mCAAmC;YAChC,kBAAkB,aAAa,MAAM;;;;;;;;;eAU7C,kBAAkB,aACX,MAAM,QACX,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC;;;;;;;;;eAyBtC,kBAAkB,aAAa,MAAM;;;CAOvD,CAAA;AAiDD,eAAO,MAAM,4BAA4B,EAAE,aAG1C,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { parseJsonBody } from "@voyantjs/hono";
1
2
  import { eq } from "drizzle-orm";
2
3
  import { index, pgEnum, pgTable, text, timestamp } from "drizzle-orm/pg-core";
3
4
  import { Hono } from "hono";
@@ -79,7 +80,7 @@ const bookingDistributionExtensionRoutes = new Hono()
79
80
  return c.json({ data: row });
80
81
  })
81
82
  .put("/:bookingId/distribution-details", async (c) => {
82
- const data = bookingDistributionDetailSchema.parse(await c.req.json());
83
+ const data = await parseJsonBody(c, bookingDistributionDetailSchema);
83
84
  const row = await bookingDistributionExtensionService.upsert(c.get("db"), c.req.param("bookingId"), data);
84
85
  return c.json({ data: row });
85
86
  })
package/dist/routes.d.ts CHANGED
@@ -14,8 +14,8 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
14
14
  id: string;
15
15
  name: string;
16
16
  description: string | null;
17
- kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
18
- status: "active" | "archived" | "inactive" | "pending";
17
+ kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
18
+ status: "pending" | "active" | "archived" | "inactive";
19
19
  metadata: {
20
20
  [x: string]: import("hono/utils/types").JSONValue;
21
21
  } | null;
@@ -42,8 +42,8 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
42
42
  id: string;
43
43
  name: string;
44
44
  description: string | null;
45
- kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
46
- status: "active" | "archived" | "inactive" | "pending";
45
+ kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
46
+ status: "pending" | "active" | "archived" | "inactive";
47
47
  metadata: {
48
48
  [x: string]: import("hono/utils/types").JSONValue;
49
49
  } | null;
@@ -67,8 +67,8 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
67
67
  id: string;
68
68
  name: string;
69
69
  description: string | null;
70
- kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
71
- status: "active" | "archived" | "inactive" | "pending";
70
+ kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
71
+ status: "pending" | "active" | "archived" | "inactive";
72
72
  metadata: {
73
73
  [x: string]: import("hono/utils/types").JSONValue;
74
74
  } | null;
@@ -130,8 +130,8 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
130
130
  id: string;
131
131
  name: string;
132
132
  description: string | null;
133
- kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
134
- status: "active" | "archived" | "inactive" | "pending";
133
+ kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
134
+ status: "pending" | "active" | "archived" | "inactive";
135
135
  metadata: {
136
136
  [x: string]: import("hono/utils/types").JSONValue;
137
137
  } | null;
@@ -170,8 +170,8 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
170
170
  id: string;
171
171
  name: string;
172
172
  description: string | null;
173
- kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
174
- status: "active" | "archived" | "inactive" | "pending";
173
+ kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
174
+ status: "pending" | "active" | "archived" | "inactive";
175
175
  metadata: {
176
176
  [x: string]: import("hono/utils/types").JSONValue;
177
177
  } | null;
@@ -236,7 +236,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
236
236
  id: string;
237
237
  entityType: string;
238
238
  entityId: string;
239
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
239
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
240
240
  label: string | null;
241
241
  value: string;
242
242
  normalizedValue: string | null;
@@ -275,19 +275,19 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
275
275
  output: {
276
276
  data: {
277
277
  value: string;
278
+ metadata: {
279
+ [x: string]: import("hono/utils/types").JSONValue;
280
+ } | null;
281
+ id: string;
278
282
  createdAt: string;
279
283
  updatedAt: string;
280
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
284
+ notes: string | null;
285
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
281
286
  entityType: string;
282
287
  entityId: string;
283
288
  label: string | null;
284
289
  normalizedValue: string | null;
285
290
  isPrimary: boolean;
286
- notes: string | null;
287
- metadata: {
288
- [x: string]: import("hono/utils/types").JSONValue;
289
- } | null;
290
- id: string;
291
291
  };
292
292
  };
293
293
  outputFormat: "json";
@@ -318,7 +318,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
318
318
  id: string;
319
319
  entityType: string;
320
320
  entityId: string;
321
- kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
321
+ kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
322
322
  label: string | null;
323
323
  value: string;
324
324
  normalizedValue: string | null;
@@ -424,21 +424,21 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
424
424
  };
425
425
  output: {
426
426
  data: {
427
+ metadata: {
428
+ [x: string]: import("hono/utils/types").JSONValue;
429
+ } | null;
430
+ id: string;
427
431
  name: string;
428
432
  createdAt: string;
429
433
  updatedAt: string;
430
434
  email: string | null;
435
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
436
+ notes: string | null;
437
+ title: string | null;
431
438
  phone: string | null;
432
439
  entityType: string;
433
440
  entityId: string;
434
441
  isPrimary: boolean;
435
- notes: string | null;
436
- metadata: {
437
- [x: string]: import("hono/utils/types").JSONValue;
438
- } | null;
439
- role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
440
- title: string | null;
441
- id: string;
442
442
  };
443
443
  };
444
444
  outputFormat: "json";
@@ -525,7 +525,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
525
525
  status: "draft" | "active" | "expired" | "terminated";
526
526
  startsAt: string;
527
527
  endsAt: string | null;
528
- paymentOwner: "operator" | "channel" | "split";
528
+ paymentOwner: "split" | "operator" | "channel";
529
529
  cancellationOwner: "operator" | "channel" | "mixed";
530
530
  settlementTerms: string | null;
531
531
  notes: string | null;
@@ -546,12 +546,12 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
546
546
  input: {};
547
547
  output: {
548
548
  data: {
549
- paymentOwner: "operator" | "channel" | "split";
549
+ id: string;
550
550
  createdAt: string;
551
551
  updatedAt: string;
552
- notes: string | null;
553
- id: string;
554
552
  status: "draft" | "active" | "expired" | "terminated";
553
+ notes: string | null;
554
+ paymentOwner: "split" | "operator" | "channel";
555
555
  supplierId: string | null;
556
556
  channelId: string;
557
557
  startsAt: string;
@@ -576,7 +576,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
576
576
  status: "draft" | "active" | "expired" | "terminated";
577
577
  startsAt: string;
578
578
  endsAt: string | null;
579
- paymentOwner: "operator" | "channel" | "split";
579
+ paymentOwner: "split" | "operator" | "channel";
580
580
  cancellationOwner: "operator" | "channel" | "mixed";
581
581
  settlementTerms: string | null;
582
582
  notes: string | null;
@@ -638,7 +638,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
638
638
  status: "draft" | "active" | "expired" | "terminated";
639
639
  startsAt: string;
640
640
  endsAt: string | null;
641
- paymentOwner: "operator" | "channel" | "split";
641
+ paymentOwner: "split" | "operator" | "channel";
642
642
  cancellationOwner: "operator" | "channel" | "mixed";
643
643
  settlementTerms: string | null;
644
644
  notes: string | null;
@@ -677,7 +677,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
677
677
  status: "draft" | "active" | "expired" | "terminated";
678
678
  startsAt: string;
679
679
  endsAt: string | null;
680
- paymentOwner: "operator" | "channel" | "split";
680
+ paymentOwner: "split" | "operator" | "channel";
681
681
  cancellationOwner: "operator" | "channel" | "mixed";
682
682
  settlementTerms: string | null;
683
683
  notes: string | null;
@@ -723,7 +723,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
723
723
  data: {
724
724
  id: string;
725
725
  contractId: string;
726
- scope: "product" | "category" | "booking" | "rate";
726
+ scope: "category" | "product" | "booking" | "rate";
727
727
  productId: string | null;
728
728
  externalRateId: string | null;
729
729
  externalCategoryId: string | null;
@@ -749,15 +749,15 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
749
749
  input: {};
750
750
  output: {
751
751
  data: {
752
+ id: string;
752
753
  createdAt: string;
753
754
  updatedAt: string;
754
- id: string;
755
+ scope: "category" | "product" | "booking" | "rate";
755
756
  productId: string | null;
756
757
  validFrom: string | null;
757
758
  validTo: string | null;
758
759
  amountCents: number | null;
759
760
  contractId: string;
760
- scope: "product" | "category" | "booking" | "rate";
761
761
  externalRateId: string | null;
762
762
  externalCategoryId: string | null;
763
763
  commissionType: "fixed" | "percentage";
@@ -776,7 +776,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
776
776
  data: {
777
777
  id: string;
778
778
  contractId: string;
779
- scope: "product" | "category" | "booking" | "rate";
779
+ scope: "category" | "product" | "booking" | "rate";
780
780
  productId: string | null;
781
781
  externalRateId: string | null;
782
782
  externalCategoryId: string | null;
@@ -839,7 +839,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
839
839
  data: {
840
840
  id: string;
841
841
  contractId: string;
842
- scope: "product" | "category" | "booking" | "rate";
842
+ scope: "category" | "product" | "booking" | "rate";
843
843
  productId: string | null;
844
844
  externalRateId: string | null;
845
845
  externalCategoryId: string | null;
@@ -879,7 +879,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
879
879
  data: {
880
880
  id: string;
881
881
  contractId: string;
882
- scope: "product" | "category" | "booking" | "rate";
882
+ scope: "category" | "product" | "booking" | "rate";
883
883
  productId: string | null;
884
884
  externalRateId: string | null;
885
885
  externalCategoryId: string | null;
@@ -952,9 +952,9 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
952
952
  input: {};
953
953
  output: {
954
954
  data: {
955
+ id: string;
955
956
  createdAt: string;
956
957
  updatedAt: string;
957
- id: string;
958
958
  active: boolean;
959
959
  productId: string;
960
960
  channelId: string;
@@ -1140,10 +1140,10 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
1140
1140
  input: {};
1141
1141
  output: {
1142
1142
  data: {
1143
- bookingId: string;
1143
+ id: string;
1144
1144
  createdAt: string;
1145
1145
  updatedAt: string;
1146
- id: string;
1146
+ bookingId: string;
1147
1147
  channelId: string;
1148
1148
  externalBookingId: string | null;
1149
1149
  externalReference: string | null;
@@ -1334,8 +1334,8 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
1334
1334
  input: {};
1335
1335
  output: {
1336
1336
  data: {
1337
- createdAt: string;
1338
1337
  id: string;
1338
+ createdAt: string;
1339
1339
  status: "pending" | "processed" | "failed" | "ignored";
1340
1340
  channelId: string;
1341
1341
  eventType: string;
@@ -1538,10 +1538,10 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
1538
1538
  input: {};
1539
1539
  output: {
1540
1540
  data: {
1541
+ id: string;
1541
1542
  createdAt: string;
1542
1543
  updatedAt: string;
1543
1544
  notes: string | null;
1544
- id: string;
1545
1545
  active: boolean;
1546
1546
  productId: string;
1547
1547
  optionId: string | null;
@@ -1748,9 +1748,9 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
1748
1748
  input: {};
1749
1749
  output: {
1750
1750
  data: {
1751
+ id: string;
1751
1752
  createdAt: string;
1752
1753
  updatedAt: string;
1753
- id: string;
1754
1754
  active: boolean;
1755
1755
  maxCapacity: number | null;
1756
1756
  startTimeId: string | null;
@@ -1947,10 +1947,10 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
1947
1947
  input: {};
1948
1948
  output: {
1949
1949
  data: {
1950
+ id: string;
1950
1951
  createdAt: string;
1951
1952
  updatedAt: string;
1952
1953
  notes: string | null;
1953
- id: string;
1954
1954
  allotmentId: string;
1955
1955
  releaseMode: "manual" | "automatic";
1956
1956
  releaseDaysBeforeStart: number | null;
@@ -2142,14 +2142,14 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2142
2142
  input: {};
2143
2143
  output: {
2144
2144
  data: {
2145
- createdAt: string;
2146
- updatedAt: string;
2147
- notes: string | null;
2148
2145
  metadata: {
2149
2146
  [x: string]: import("hono/utils/types").JSONValue;
2150
2147
  } | null;
2151
2148
  id: string;
2149
+ createdAt: string;
2150
+ updatedAt: string;
2152
2151
  status: "void" | "draft" | "open" | "posted" | "paid";
2152
+ notes: string | null;
2153
2153
  channelId: string;
2154
2154
  contractId: string | null;
2155
2155
  currencyCode: string | null;
@@ -2290,7 +2290,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2290
2290
  bookingLinkId: string | null;
2291
2291
  bookingId: string | null;
2292
2292
  commissionRuleId: string | null;
2293
- status: "void" | "pending" | "paid" | "approved" | "disputed";
2293
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
2294
2294
  grossAmountCents: number;
2295
2295
  commissionAmountCents: number;
2296
2296
  netRemittanceAmountCents: number;
@@ -2315,12 +2315,12 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2315
2315
  input: {};
2316
2316
  output: {
2317
2317
  data: {
2318
- bookingId: string | null;
2318
+ id: string;
2319
2319
  createdAt: string;
2320
2320
  updatedAt: string;
2321
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
2321
2322
  notes: string | null;
2322
- id: string;
2323
- status: "void" | "pending" | "paid" | "approved" | "disputed";
2323
+ bookingId: string | null;
2324
2324
  currencyCode: string | null;
2325
2325
  paidAt: string | null;
2326
2326
  settlementRunId: string;
@@ -2362,7 +2362,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2362
2362
  bookingLinkId: string | null;
2363
2363
  bookingId: string | null;
2364
2364
  commissionRuleId: string | null;
2365
- status: "void" | "pending" | "paid" | "approved" | "disputed";
2365
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
2366
2366
  grossAmountCents: number;
2367
2367
  commissionAmountCents: number;
2368
2368
  netRemittanceAmountCents: number;
@@ -2404,7 +2404,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2404
2404
  bookingLinkId: string | null;
2405
2405
  bookingId: string | null;
2406
2406
  commissionRuleId: string | null;
2407
- status: "void" | "pending" | "paid" | "approved" | "disputed";
2407
+ status: "pending" | "void" | "paid" | "approved" | "disputed";
2408
2408
  grossAmountCents: number;
2409
2409
  commissionAmountCents: number;
2410
2410
  netRemittanceAmountCents: number;
@@ -2482,14 +2482,14 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2482
2482
  input: {};
2483
2483
  output: {
2484
2484
  data: {
2485
- createdAt: string;
2486
- updatedAt: string;
2487
- notes: string | null;
2488
2485
  metadata: {
2489
2486
  [x: string]: import("hono/utils/types").JSONValue;
2490
2487
  } | null;
2491
2488
  id: string;
2489
+ createdAt: string;
2490
+ updatedAt: string;
2492
2491
  status: "draft" | "archived" | "running" | "completed";
2492
+ notes: string | null;
2493
2493
  channelId: string;
2494
2494
  contractId: string | null;
2495
2495
  periodStart: string | null;
@@ -2646,11 +2646,11 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2646
2646
  input: {};
2647
2647
  output: {
2648
2648
  data: {
2649
- bookingId: string | null;
2649
+ id: string;
2650
2650
  createdAt: string;
2651
2651
  updatedAt: string;
2652
2652
  notes: string | null;
2653
- id: string;
2653
+ bookingId: string | null;
2654
2654
  externalBookingId: string | null;
2655
2655
  bookingLinkId: string | null;
2656
2656
  reconciliationRunId: string;
@@ -2804,14 +2804,14 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2804
2804
  input: {};
2805
2805
  output: {
2806
2806
  data: {
2807
- createdAt: string;
2808
- updatedAt: string;
2809
- notes: string | null;
2810
2807
  metadata: {
2811
2808
  [x: string]: import("hono/utils/types").JSONValue;
2812
2809
  } | null;
2813
2810
  id: string;
2811
+ createdAt: string;
2812
+ updatedAt: string;
2814
2813
  status: "pending" | "failed" | "completed" | "skipped";
2814
+ notes: string | null;
2815
2815
  slotId: string | null;
2816
2816
  allotmentId: string;
2817
2817
  releaseRuleId: string | null;
@@ -2972,13 +2972,13 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
2972
2972
  input: {};
2973
2973
  output: {
2974
2974
  data: {
2975
- createdAt: string;
2976
- updatedAt: string;
2977
- notes: string | null;
2978
2975
  metadata: {
2979
2976
  [x: string]: import("hono/utils/types").JSONValue;
2980
2977
  } | null;
2981
2978
  id: string;
2979
+ createdAt: string;
2980
+ updatedAt: string;
2981
+ notes: string | null;
2982
2982
  active: boolean;
2983
2983
  channelId: string;
2984
2984
  contractId: string | null;
@@ -3143,13 +3143,13 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
3143
3143
  input: {};
3144
3144
  output: {
3145
3145
  data: {
3146
- createdAt: string;
3147
- updatedAt: string;
3148
- notes: string | null;
3149
3146
  metadata: {
3150
3147
  [x: string]: import("hono/utils/types").JSONValue;
3151
3148
  } | null;
3152
3149
  id: string;
3150
+ createdAt: string;
3151
+ updatedAt: string;
3152
+ notes: string | null;
3153
3153
  active: boolean;
3154
3154
  channelId: string;
3155
3155
  contractId: string | null;
@@ -3310,13 +3310,13 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
3310
3310
  input: {};
3311
3311
  output: {
3312
3312
  data: {
3313
- createdAt: string;
3314
- updatedAt: string;
3315
- notes: string | null;
3316
3313
  metadata: {
3317
3314
  [x: string]: import("hono/utils/types").JSONValue;
3318
3315
  } | null;
3319
3316
  id: string;
3317
+ createdAt: string;
3318
+ updatedAt: string;
3319
+ notes: string | null;
3320
3320
  active: boolean;
3321
3321
  releaseRuleId: string;
3322
3322
  scheduleKind: "manual" | "daily" | "hourly";
@@ -3468,14 +3468,14 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
3468
3468
  input: {};
3469
3469
  output: {
3470
3470
  data: {
3471
- createdAt: string;
3472
- updatedAt: string;
3473
- notes: string | null;
3474
3471
  metadata: {
3475
3472
  [x: string]: import("hono/utils/types").JSONValue;
3476
3473
  } | null;
3477
3474
  id: string;
3475
+ createdAt: string;
3476
+ updatedAt: string;
3478
3477
  status: "open" | "ignored" | "resolved" | "investigating";
3478
+ notes: string | null;
3479
3479
  channelId: string;
3480
3480
  severity: "error" | "info" | "warning";
3481
3481
  resolvedAt: string | null;
@@ -3631,14 +3631,14 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
3631
3631
  input: {};
3632
3632
  output: {
3633
3633
  data: {
3634
- createdAt: string;
3635
- updatedAt: string;
3636
- notes: string | null;
3637
3634
  metadata: {
3638
3635
  [x: string]: import("hono/utils/types").JSONValue;
3639
3636
  } | null;
3640
3637
  id: string;
3638
+ createdAt: string;
3639
+ updatedAt: string;
3641
3640
  status: "pending" | "approved" | "rejected";
3641
+ notes: string | null;
3642
3642
  settlementRunId: string;
3643
3643
  approverUserId: string | null;
3644
3644
  decidedAt: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAiEjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAgGD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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