@voyantjs/transactions 0.28.1 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -264,7 +264,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
264
264
  offerId: string;
265
265
  personId: string | null;
266
266
  participantType: "staff" | "other" | "traveler" | "occupant";
267
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
267
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
268
268
  firstName: string;
269
269
  lastName: string;
270
270
  email: string | null;
@@ -294,7 +294,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
294
294
  offerId: string;
295
295
  personId: string | null;
296
296
  participantType: "staff" | "other" | "traveler" | "occupant";
297
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
297
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
298
298
  firstName: string;
299
299
  lastName: string;
300
300
  email: string | null;
@@ -344,7 +344,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
344
344
  offerId: string;
345
345
  personId: string | null;
346
346
  participantType: "staff" | "other" | "traveler" | "occupant";
347
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
347
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
348
348
  firstName: string;
349
349
  lastName: string;
350
350
  email: string | null;
@@ -386,7 +386,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
386
386
  offerId: string;
387
387
  personId: string | null;
388
388
  participantType: "staff" | "other" | "traveler" | "occupant";
389
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
389
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
390
390
  firstName: string;
391
391
  lastName: string;
392
392
  email: string | null;
@@ -869,7 +869,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
869
869
  title: string;
870
870
  description: string | null;
871
871
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
872
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
872
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
873
873
  serviceDate: string | null;
874
874
  startsAt: string | null;
875
875
  endsAt: string | null;
@@ -905,7 +905,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
905
905
  id: string;
906
906
  createdAt: string;
907
907
  updatedAt: string;
908
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
908
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
909
909
  notes: string | null;
910
910
  description: string | null;
911
911
  offerId: string;
@@ -963,7 +963,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
963
963
  title: string;
964
964
  description: string | null;
965
965
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
966
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
966
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
967
967
  serviceDate: string | null;
968
968
  startsAt: string | null;
969
969
  endsAt: string | null;
@@ -1016,7 +1016,7 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
1016
1016
  title: string;
1017
1017
  description: string | null;
1018
1018
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
1019
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
1019
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
1020
1020
  serviceDate: string | null;
1021
1021
  startsAt: string | null;
1022
1022
  endsAt: string | null;
@@ -9,7 +9,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
9
9
  orderNumber: string;
10
10
  offerId: string | null;
11
11
  title: string;
12
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
12
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
13
13
  personId: string | null;
14
14
  organizationId: string | null;
15
15
  opportunityId: string | null;
@@ -63,7 +63,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
63
63
  updatedAt: string;
64
64
  expiresAt: string | null;
65
65
  organizationId: string | null;
66
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
66
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
67
67
  currency: string;
68
68
  notes: string | null;
69
69
  offerId: string | null;
@@ -125,7 +125,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
125
125
  orderNumber: string;
126
126
  offerId: string | null;
127
127
  title: string;
128
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
128
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
129
129
  personId: string | null;
130
130
  organizationId: string | null;
131
131
  opportunityId: string | null;
@@ -189,7 +189,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
189
189
  orderNumber: string;
190
190
  offerId: string | null;
191
191
  title: string;
192
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
192
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
193
193
  personId: string | null;
194
194
  organizationId: string | null;
195
195
  opportunityId: string | null;
@@ -264,7 +264,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
264
264
  orderId: string;
265
265
  personId: string | null;
266
266
  participantType: "staff" | "other" | "traveler" | "occupant";
267
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
267
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
268
268
  firstName: string;
269
269
  lastName: string;
270
270
  email: string | null;
@@ -294,7 +294,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
294
294
  orderId: string;
295
295
  personId: string | null;
296
296
  participantType: "staff" | "other" | "traveler" | "occupant";
297
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
297
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
298
298
  firstName: string;
299
299
  lastName: string;
300
300
  email: string | null;
@@ -344,7 +344,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
344
344
  orderId: string;
345
345
  personId: string | null;
346
346
  participantType: "staff" | "other" | "traveler" | "occupant";
347
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
347
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
348
348
  firstName: string;
349
349
  lastName: string;
350
350
  email: string | null;
@@ -386,7 +386,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
386
386
  orderId: string;
387
387
  personId: string | null;
388
388
  participantType: "staff" | "other" | "traveler" | "occupant";
389
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
389
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
390
390
  firstName: string;
391
391
  lastName: string;
392
392
  email: string | null;
@@ -870,7 +870,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
870
870
  title: string;
871
871
  description: string | null;
872
872
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
873
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
873
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
874
874
  serviceDate: string | null;
875
875
  startsAt: string | null;
876
876
  endsAt: string | null;
@@ -906,7 +906,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
906
906
  id: string;
907
907
  createdAt: string;
908
908
  updatedAt: string;
909
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
909
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
910
910
  notes: string | null;
911
911
  description: string | null;
912
912
  orderId: string;
@@ -966,7 +966,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
966
966
  title: string;
967
967
  description: string | null;
968
968
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
969
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
969
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
970
970
  serviceDate: string | null;
971
971
  startsAt: string | null;
972
972
  endsAt: string | null;
@@ -1020,7 +1020,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
1020
1020
  title: string;
1021
1021
  description: string | null;
1022
1022
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
1023
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
1023
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
1024
1024
  serviceDate: string | null;
1025
1025
  startsAt: string | null;
1026
1026
  endsAt: string | null;
@@ -16,9 +16,9 @@ export declare const decryptedTransactionTravelerIdentitySchema: z.ZodObject<{
16
16
  updatedAt: z.ZodDate;
17
17
  }, z.core.$strip>;
18
18
  export declare const transactionTravelerIdentityEnvelopeSchema: z.ZodObject<{
19
- identityEncrypted: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ identityEncrypted: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
20
20
  enc: z.ZodString;
21
- }, z.core.$strip>>>>;
21
+ }, z.core.$strip>>>>>;
22
22
  }, z.core.$strip>;
23
23
  export declare const transactionParticipantIdentitySchema: z.ZodObject<{
24
24
  dateOfBirth: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -50,9 +50,9 @@ export declare const decryptedTransactionParticipantIdentitySchema: z.ZodPipe<z.
50
50
  updatedAt: Date;
51
51
  }>>;
52
52
  export declare const transactionParticipantIdentityEnvelopeSchema: z.ZodObject<{
53
- identityEncrypted: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
53
+ identityEncrypted: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodNullable<z.ZodObject<{
54
54
  enc: z.ZodString;
55
- }, z.core.$strip>>>>;
55
+ }, z.core.$strip>>>>>;
56
56
  }, z.core.$strip>;
57
57
  export type TransactionTravelerIdentity = z.infer<typeof transactionTravelerIdentitySchema>;
58
58
  export type TransactionTravelerIdentityEnvelope = {
@@ -1 +1 @@
1
- {"version":3,"file":"participant-identity.d.ts","sourceRoot":"","sources":["../../src/schema/participant-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,iCAAiC;;;iBAG5C,CAAA;AAEF,eAAO,MAAM,0CAA0C;;;;;;;;;;iBAOrD,CAAA;AAEF,eAAO,MAAM,yCAAyC;;;;iBAEpD,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;iBAAoC,CAAA;AACrF,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;GAKrD,CAAA;AACL,eAAO,MAAM,4CAA4C;;;;iBACd,CAAA;AAE3C,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAC3F,MAAM,MAAM,mCAAmC,GAAG;IAChD,iBAAiB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;CACvC,CAAA;AACD,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAA;AACD,MAAM,MAAM,8BAA8B,GAAG,2BAA2B,CAAA;AACxE,MAAM,MAAM,sCAAsC,GAAG,mCAAmC,CAAA;AACxF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,6CAA6C,CACrD,CAAA"}
1
+ {"version":3,"file":"participant-identity.d.ts","sourceRoot":"","sources":["../../src/schema/participant-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,iCAAiC;;;iBAG5C,CAAA;AAEF,eAAO,MAAM,0CAA0C;;;;;;;;;;iBAOrD,CAAA;AAEF,eAAO,MAAM,yCAAyC;;;;iBAQpD,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;iBAAoC,CAAA;AACrF,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;GAKrD,CAAA;AACL,eAAO,MAAM,4CAA4C;;;;iBACd,CAAA;AAE3C,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAC3F,MAAM,MAAM,mCAAmC,GAAG;IAChD,iBAAiB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;CACvC,CAAA;AACD,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAA;AACD,MAAM,MAAM,8BAA8B,GAAG,2BAA2B,CAAA;AACxE,MAAM,MAAM,sCAAsC,GAAG,mCAAmC,CAAA;AACxF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,6CAA6C,CACrD,CAAA"}
@@ -13,7 +13,13 @@ export const decryptedTransactionTravelerIdentitySchema = z.object({
13
13
  updatedAt: z.date(),
14
14
  });
15
15
  export const transactionTravelerIdentityEnvelopeSchema = z.object({
16
- identityEncrypted: kmsEnvelopeSchema.optional().nullable(),
16
+ // `z.lazy(() => …)` defers cross-package schema dereferencing until
17
+ // first parse — see #501 for why bundlers that split this file from
18
+ // its `@voyantjs/db` producer crash without it.
19
+ identityEncrypted: z
20
+ .lazy(() => kmsEnvelopeSchema)
21
+ .optional()
22
+ .nullable(),
17
23
  });
18
24
  export const transactionParticipantIdentitySchema = transactionTravelerIdentitySchema;
19
25
  export const decryptedTransactionParticipantIdentitySchema = decryptedTransactionTravelerIdentitySchema.transform(({ travelerId, travelerKind, ...rest }) => ({
@@ -711,7 +711,7 @@ export declare const offerParticipants: import("drizzle-orm/pg-core").PgTableWit
711
711
  tableName: "offer_participants";
712
712
  dataType: "string";
713
713
  columnType: "PgEnumColumn";
714
- data: "other" | "adult" | "child" | "infant" | "senior";
714
+ data: "child" | "other" | "adult" | "infant" | "senior";
715
715
  driverParam: string;
716
716
  notNull: false;
717
717
  hasDefault: false;
@@ -1064,7 +1064,7 @@ export declare const offerItems: import("drizzle-orm/pg-core").PgTableWithColumn
1064
1064
  tableName: "offer_items";
1065
1065
  dataType: "string";
1066
1066
  columnType: "PgEnumColumn";
1067
- data: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
1067
+ data: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
1068
1068
  driverParam: string;
1069
1069
  notNull: true;
1070
1070
  hasDefault: true;
@@ -75,7 +75,7 @@ export declare const orders: import("drizzle-orm/pg-core").PgTableWithColumns<{
75
75
  tableName: "orders";
76
76
  dataType: "string";
77
77
  columnType: "PgEnumColumn";
78
- data: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
78
+ data: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
79
79
  driverParam: string;
80
80
  notNull: true;
81
81
  hasDefault: true;
@@ -711,7 +711,7 @@ export declare const orderParticipants: import("drizzle-orm/pg-core").PgTableWit
711
711
  tableName: "order_participants";
712
712
  dataType: "string";
713
713
  columnType: "PgEnumColumn";
714
- data: "other" | "adult" | "child" | "infant" | "senior";
714
+ data: "child" | "other" | "adult" | "infant" | "senior";
715
715
  driverParam: string;
716
716
  notNull: false;
717
717
  hasDefault: false;
@@ -1081,7 +1081,7 @@ export declare const orderItems: import("drizzle-orm/pg-core").PgTableWithColumn
1081
1081
  tableName: "order_items";
1082
1082
  dataType: "string";
1083
1083
  columnType: "PgEnumColumn";
1084
- data: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
1084
+ data: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
1085
1085
  driverParam: string;
1086
1086
  notNull: true;
1087
1087
  hasDefault: true;
@@ -167,7 +167,7 @@ export declare function createOfferBundle(db: PostgresJsDatabase, input: CreateO
167
167
  offerId: string;
168
168
  personId: string | null;
169
169
  participantType: "staff" | "other" | "traveler" | "occupant";
170
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
170
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
171
171
  firstName: string;
172
172
  lastName: string;
173
173
  email: string | null;
@@ -218,7 +218,7 @@ export declare function createOfferBundle(db: PostgresJsDatabase, input: CreateO
218
218
  id: string;
219
219
  createdAt: Date;
220
220
  updatedAt: Date;
221
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
221
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
222
222
  notes: string | null;
223
223
  description: string | null;
224
224
  offerId: string;
@@ -298,7 +298,7 @@ export declare function listOfferTravelers(db: PostgresJsDatabase, query: OfferT
298
298
  offerId: string;
299
299
  personId: string | null;
300
300
  participantType: "staff" | "other" | "traveler" | "occupant";
301
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
301
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
302
302
  firstName: string;
303
303
  lastName: string;
304
304
  email: string | null;
@@ -320,7 +320,7 @@ export declare function getOfferTravelerById(db: PostgresJsDatabase, id: string)
320
320
  offerId: string;
321
321
  personId: string | null;
322
322
  participantType: "staff" | "other" | "traveler" | "occupant";
323
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
323
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
324
324
  firstName: string;
325
325
  lastName: string;
326
326
  email: string | null;
@@ -338,7 +338,7 @@ export declare function createOfferTraveler(db: PostgresJsDatabase, data: Create
338
338
  offerId: string;
339
339
  personId: string | null;
340
340
  participantType: "staff" | "other" | "traveler" | "occupant";
341
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
341
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
342
342
  firstName: string;
343
343
  lastName: string;
344
344
  email: string | null;
@@ -356,7 +356,7 @@ export declare function updateOfferTraveler(db: PostgresJsDatabase, id: string,
356
356
  offerId: string;
357
357
  personId: string | null;
358
358
  participantType: "staff" | "other" | "traveler" | "occupant";
359
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
359
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
360
360
  firstName: string;
361
361
  lastName: string;
362
362
  email: string | null;
@@ -536,7 +536,7 @@ export declare function listOfferItems(db: PostgresJsDatabase, query: OfferItemL
536
536
  title: string;
537
537
  description: string | null;
538
538
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
539
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
539
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
540
540
  serviceDate: string | null;
541
541
  startsAt: Date | null;
542
542
  endsAt: Date | null;
@@ -568,7 +568,7 @@ export declare function getOfferItemById(db: PostgresJsDatabase, id: string): Pr
568
568
  title: string;
569
569
  description: string | null;
570
570
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
571
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
571
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
572
572
  serviceDate: string | null;
573
573
  startsAt: Date | null;
574
574
  endsAt: Date | null;
@@ -591,7 +591,7 @@ export declare function createOfferItem(db: PostgresJsDatabase, data: CreateOffe
591
591
  id: string;
592
592
  createdAt: Date;
593
593
  updatedAt: Date;
594
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
594
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
595
595
  notes: string | null;
596
596
  description: string | null;
597
597
  offerId: string;
@@ -624,7 +624,7 @@ export declare function updateOfferItem(db: PostgresJsDatabase, id: string, data
624
624
  title: string;
625
625
  description: string | null;
626
626
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
627
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
627
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
628
628
  serviceDate: string | null;
629
629
  startsAt: Date | null;
630
630
  endsAt: Date | null;
@@ -6,7 +6,7 @@ export declare function listOrders(db: PostgresJsDatabase, query: OrderListQuery
6
6
  orderNumber: string;
7
7
  offerId: string | null;
8
8
  title: string;
9
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
9
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
10
10
  personId: string | null;
11
11
  organizationId: string | null;
12
12
  opportunityId: string | null;
@@ -49,7 +49,7 @@ export declare function getOrderById(db: PostgresJsDatabase, id: string): Promis
49
49
  orderNumber: string;
50
50
  offerId: string | null;
51
51
  title: string;
52
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
52
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
53
53
  personId: string | null;
54
54
  organizationId: string | null;
55
55
  opportunityId: string | null;
@@ -90,7 +90,7 @@ export declare function createOrder(db: PostgresJsDatabase, data: CreateOrderInp
90
90
  updatedAt: Date;
91
91
  expiresAt: Date | null;
92
92
  organizationId: string | null;
93
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
93
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
94
94
  currency: string;
95
95
  notes: string | null;
96
96
  offerId: string | null;
@@ -127,7 +127,7 @@ export declare function updateOrder(db: PostgresJsDatabase, id: string, data: Up
127
127
  orderNumber: string;
128
128
  offerId: string | null;
129
129
  title: string;
130
- status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
130
+ status: "pending" | "cancelled" | "draft" | "expired" | "confirmed" | "fulfilled";
131
131
  personId: string | null;
132
132
  organizationId: string | null;
133
133
  opportunityId: string | null;
@@ -170,7 +170,7 @@ export declare function listOrderTravelers(db: PostgresJsDatabase, query: OrderT
170
170
  orderId: string;
171
171
  personId: string | null;
172
172
  participantType: "staff" | "other" | "traveler" | "occupant";
173
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
173
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
174
174
  firstName: string;
175
175
  lastName: string;
176
176
  email: string | null;
@@ -192,7 +192,7 @@ export declare function getOrderTravelerById(db: PostgresJsDatabase, id: string)
192
192
  orderId: string;
193
193
  personId: string | null;
194
194
  participantType: "staff" | "other" | "traveler" | "occupant";
195
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
195
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
196
196
  firstName: string;
197
197
  lastName: string;
198
198
  email: string | null;
@@ -210,7 +210,7 @@ export declare function createOrderTraveler(db: PostgresJsDatabase, data: Create
210
210
  orderId: string;
211
211
  personId: string | null;
212
212
  participantType: "staff" | "other" | "traveler" | "occupant";
213
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
213
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
214
214
  firstName: string;
215
215
  lastName: string;
216
216
  email: string | null;
@@ -228,7 +228,7 @@ export declare function updateOrderTraveler(db: PostgresJsDatabase, id: string,
228
228
  orderId: string;
229
229
  personId: string | null;
230
230
  participantType: "staff" | "other" | "traveler" | "occupant";
231
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
231
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
232
232
  firstName: string;
233
233
  lastName: string;
234
234
  email: string | null;
@@ -409,7 +409,7 @@ export declare function listOrderItems(db: PostgresJsDatabase, query: OrderItemL
409
409
  title: string;
410
410
  description: string | null;
411
411
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
412
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
412
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
413
413
  serviceDate: string | null;
414
414
  startsAt: Date | null;
415
415
  endsAt: Date | null;
@@ -442,7 +442,7 @@ export declare function getOrderItemById(db: PostgresJsDatabase, id: string): Pr
442
442
  title: string;
443
443
  description: string | null;
444
444
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
445
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
445
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
446
446
  serviceDate: string | null;
447
447
  startsAt: Date | null;
448
448
  endsAt: Date | null;
@@ -465,7 +465,7 @@ export declare function createOrderItem(db: PostgresJsDatabase, data: CreateOrde
465
465
  id: string;
466
466
  createdAt: Date;
467
467
  updatedAt: Date;
468
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
468
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
469
469
  notes: string | null;
470
470
  description: string | null;
471
471
  orderId: string;
@@ -500,7 +500,7 @@ export declare function updateOrderItem(db: PostgresJsDatabase, id: string, data
500
500
  title: string;
501
501
  description: string | null;
502
502
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
503
- status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
503
+ status: "cancelled" | "draft" | "confirmed" | "fulfilled" | "priced";
504
504
  serviceDate: string | null;
505
505
  startsAt: Date | null;
506
506
  endsAt: Date | null;
@@ -82,7 +82,7 @@ export declare function toOfferTravelerResponse(row: typeof offerParticipants.$i
82
82
  offerId: string;
83
83
  personId: string | null;
84
84
  participantType: "staff" | "other" | "traveler" | "occupant";
85
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
85
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
86
86
  firstName: string;
87
87
  lastName: string;
88
88
  email: string | null;
@@ -143,7 +143,7 @@ export declare function toOrderTravelerResponse(row: typeof orderParticipants.$i
143
143
  orderId: string;
144
144
  personId: string | null;
145
145
  participantType: "staff" | "other" | "traveler" | "occupant";
146
- travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
146
+ travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
147
147
  firstName: string;
148
148
  lastName: string;
149
149
  email: string | null;
@@ -124,11 +124,11 @@ export declare const offerStatusSchema: z.ZodEnum<{
124
124
  }>;
125
125
  export declare const orderStatusSchema: z.ZodEnum<{
126
126
  pending: "pending";
127
+ cancelled: "cancelled";
127
128
  draft: "draft";
128
129
  expired: "expired";
129
130
  confirmed: "confirmed";
130
131
  fulfilled: "fulfilled";
131
- cancelled: "cancelled";
132
132
  }>;
133
133
  export declare const transactionParticipantTypeSchema: z.ZodEnum<{
134
134
  staff: "staff";
@@ -137,9 +137,9 @@ export declare const transactionParticipantTypeSchema: z.ZodEnum<{
137
137
  occupant: "occupant";
138
138
  }>;
139
139
  export declare const transactionTravelerCategorySchema: z.ZodEnum<{
140
+ child: "child";
140
141
  other: "other";
141
142
  adult: "adult";
142
- child: "child";
143
143
  infant: "infant";
144
144
  senior: "senior";
145
145
  }>;
@@ -156,10 +156,10 @@ export declare const transactionItemTypeSchema: z.ZodEnum<{
156
156
  transport: "transport";
157
157
  }>;
158
158
  export declare const transactionItemStatusSchema: z.ZodEnum<{
159
+ cancelled: "cancelled";
159
160
  draft: "draft";
160
161
  confirmed: "confirmed";
161
162
  fulfilled: "fulfilled";
162
- cancelled: "cancelled";
163
163
  priced: "priced";
164
164
  }>;
165
165
  export declare const transactionItemParticipantRoleSchema: z.ZodEnum<{
@@ -419,9 +419,9 @@ export declare const insertOfferTravelerSchema: z.ZodObject<{
419
419
  occupant: "occupant";
420
420
  }>>;
421
421
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
422
+ child: "child";
422
423
  other: "other";
423
424
  adult: "adult";
424
- child: "child";
425
425
  infant: "infant";
426
426
  senior: "senior";
427
427
  }>>>;
@@ -445,9 +445,9 @@ export declare const updateOfferTravelerSchema: z.ZodObject<{
445
445
  occupant: "occupant";
446
446
  }>>>;
447
447
  travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
448
+ child: "child";
448
449
  other: "other";
449
450
  adult: "adult";
450
- child: "child";
451
451
  infant: "infant";
452
452
  senior: "senior";
453
453
  }>>>>;
@@ -476,9 +476,9 @@ export declare const insertOfferParticipantSchema: z.ZodObject<{
476
476
  occupant: "occupant";
477
477
  }>>;
478
478
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
479
+ child: "child";
479
480
  other: "other";
480
481
  adult: "adult";
481
- child: "child";
482
482
  infant: "infant";
483
483
  senior: "senior";
484
484
  }>>>;
@@ -502,9 +502,9 @@ export declare const updateOfferParticipantSchema: z.ZodObject<{
502
502
  occupant: "occupant";
503
503
  }>>>;
504
504
  travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
505
+ child: "child";
505
506
  other: "other";
506
507
  adult: "adult";
507
- child: "child";
508
508
  infant: "infant";
509
509
  senior: "senior";
510
510
  }>>>>;
@@ -632,10 +632,10 @@ export declare const insertOfferItemSchema: z.ZodObject<{
632
632
  transport: "transport";
633
633
  }>>;
634
634
  status: z.ZodDefault<z.ZodEnum<{
635
+ cancelled: "cancelled";
635
636
  draft: "draft";
636
637
  confirmed: "confirmed";
637
638
  fulfilled: "fulfilled";
638
- cancelled: "cancelled";
639
639
  priced: "priced";
640
640
  }>>;
641
641
  serviceDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -674,10 +674,10 @@ export declare const updateOfferItemSchema: z.ZodObject<{
674
674
  transport: "transport";
675
675
  }>>>;
676
676
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
677
+ cancelled: "cancelled";
677
678
  draft: "draft";
678
679
  confirmed: "confirmed";
679
680
  fulfilled: "fulfilled";
680
- cancelled: "cancelled";
681
681
  priced: "priced";
682
682
  }>>>;
683
683
  serviceDate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -704,10 +704,10 @@ export declare const offerItemListQuerySchema: z.ZodObject<{
704
704
  unitId: z.ZodOptional<z.ZodString>;
705
705
  slotId: z.ZodOptional<z.ZodString>;
706
706
  status: z.ZodOptional<z.ZodEnum<{
707
+ cancelled: "cancelled";
707
708
  draft: "draft";
708
709
  confirmed: "confirmed";
709
710
  fulfilled: "fulfilled";
710
- cancelled: "cancelled";
711
711
  priced: "priced";
712
712
  }>>;
713
713
  }, z.core.$strip>;
@@ -835,11 +835,11 @@ export declare const insertOrderSchema: z.ZodObject<{
835
835
  title: z.ZodString;
836
836
  status: z.ZodDefault<z.ZodEnum<{
837
837
  pending: "pending";
838
+ cancelled: "cancelled";
838
839
  draft: "draft";
839
840
  expired: "expired";
840
841
  confirmed: "confirmed";
841
842
  fulfilled: "fulfilled";
842
- cancelled: "cancelled";
843
843
  }>>;
844
844
  personId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
845
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -878,11 +878,11 @@ export declare const updateOrderSchema: z.ZodObject<{
878
878
  title: z.ZodOptional<z.ZodString>;
879
879
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
880
880
  pending: "pending";
881
+ cancelled: "cancelled";
881
882
  draft: "draft";
882
883
  expired: "expired";
883
884
  confirmed: "confirmed";
884
885
  fulfilled: "fulfilled";
885
- cancelled: "cancelled";
886
886
  }>>>;
887
887
  personId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
888
888
  organizationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -920,11 +920,11 @@ export declare const orderListQuerySchema: z.ZodObject<{
920
920
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
921
921
  status: z.ZodOptional<z.ZodEnum<{
922
922
  pending: "pending";
923
+ cancelled: "cancelled";
923
924
  draft: "draft";
924
925
  expired: "expired";
925
926
  confirmed: "confirmed";
926
927
  fulfilled: "fulfilled";
927
- cancelled: "cancelled";
928
928
  }>>;
929
929
  offerId: z.ZodOptional<z.ZodString>;
930
930
  opportunityId: z.ZodOptional<z.ZodString>;
@@ -943,9 +943,9 @@ export declare const insertOrderTravelerSchema: z.ZodObject<{
943
943
  occupant: "occupant";
944
944
  }>>;
945
945
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
946
+ child: "child";
946
947
  other: "other";
947
948
  adult: "adult";
948
- child: "child";
949
949
  infant: "infant";
950
950
  senior: "senior";
951
951
  }>>>;
@@ -969,9 +969,9 @@ export declare const updateOrderTravelerSchema: z.ZodObject<{
969
969
  occupant: "occupant";
970
970
  }>>>;
971
971
  travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
972
+ child: "child";
972
973
  other: "other";
973
974
  adult: "adult";
974
- child: "child";
975
975
  infant: "infant";
976
976
  senior: "senior";
977
977
  }>>>>;
@@ -1000,9 +1000,9 @@ export declare const insertOrderParticipantSchema: z.ZodObject<{
1000
1000
  occupant: "occupant";
1001
1001
  }>>;
1002
1002
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1003
+ child: "child";
1003
1004
  other: "other";
1004
1005
  adult: "adult";
1005
- child: "child";
1006
1006
  infant: "infant";
1007
1007
  senior: "senior";
1008
1008
  }>>>;
@@ -1026,9 +1026,9 @@ export declare const updateOrderParticipantSchema: z.ZodObject<{
1026
1026
  occupant: "occupant";
1027
1027
  }>>>;
1028
1028
  travelerCategory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1029
+ child: "child";
1029
1030
  other: "other";
1030
1031
  adult: "adult";
1031
- child: "child";
1032
1032
  infant: "infant";
1033
1033
  senior: "senior";
1034
1034
  }>>>>;
@@ -1156,10 +1156,10 @@ export declare const insertOrderItemSchema: z.ZodObject<{
1156
1156
  transport: "transport";
1157
1157
  }>>;
1158
1158
  status: z.ZodDefault<z.ZodEnum<{
1159
+ cancelled: "cancelled";
1159
1160
  draft: "draft";
1160
1161
  confirmed: "confirmed";
1161
1162
  fulfilled: "fulfilled";
1162
- cancelled: "cancelled";
1163
1163
  priced: "priced";
1164
1164
  }>>;
1165
1165
  serviceDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1199,10 +1199,10 @@ export declare const updateOrderItemSchema: z.ZodObject<{
1199
1199
  transport: "transport";
1200
1200
  }>>>;
1201
1201
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
1202
+ cancelled: "cancelled";
1202
1203
  draft: "draft";
1203
1204
  confirmed: "confirmed";
1204
1205
  fulfilled: "fulfilled";
1205
- cancelled: "cancelled";
1206
1206
  priced: "priced";
1207
1207
  }>>>;
1208
1208
  serviceDate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1231,10 +1231,10 @@ export declare const orderItemListQuerySchema: z.ZodObject<{
1231
1231
  unitId: z.ZodOptional<z.ZodString>;
1232
1232
  slotId: z.ZodOptional<z.ZodString>;
1233
1233
  status: z.ZodOptional<z.ZodEnum<{
1234
+ cancelled: "cancelled";
1234
1235
  draft: "draft";
1235
1236
  confirmed: "confirmed";
1236
1237
  fulfilled: "fulfilled";
1237
- cancelled: "cancelled";
1238
1238
  priced: "priced";
1239
1239
  }>>;
1240
1240
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/transactions",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,10 +34,10 @@
34
34
  "drizzle-orm": "^0.45.2",
35
35
  "hono": "^4.12.10",
36
36
  "zod": "^4.3.6",
37
- "@voyantjs/core": "0.28.1",
38
- "@voyantjs/db": "0.28.1",
39
- "@voyantjs/hono": "0.28.1",
40
- "@voyantjs/utils": "0.28.1"
37
+ "@voyantjs/core": "0.29.0",
38
+ "@voyantjs/db": "0.29.0",
39
+ "@voyantjs/hono": "0.29.0",
40
+ "@voyantjs/utils": "0.29.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "^6.0.2",