@voyantjs/bookings 0.4.0 → 0.4.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.
- package/dist/routes-public.d.ts +1 -1
- package/dist/routes.d.ts +19 -19
- package/dist/schema/travel-details.d.ts +3 -3
- package/dist/schema/travel-details.d.ts.map +1 -1
- package/dist/schema/travel-details.js +1 -1
- package/dist/schema-items.d.ts +1 -1
- package/dist/schema-operations.d.ts +1 -1
- package/dist/service-public.d.ts +2 -2
- package/dist/service.d.ts +20 -20
- package/dist/validation-public.d.ts +2 -2
- package/dist/validation-shared.d.ts +2 -2
- package/dist/validation.d.ts +5 -5
- package/package.json +6 -6
package/dist/routes-public.d.ts
CHANGED
|
@@ -565,7 +565,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
565
565
|
bookingItemId: string | null;
|
|
566
566
|
participantId: string | null;
|
|
567
567
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
568
|
-
deliveryChannel: "
|
|
568
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
569
569
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
570
570
|
artifactUrl: string | null;
|
|
571
571
|
}[];
|
package/dist/routes.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
113
113
|
bookingItemId: string | null;
|
|
114
114
|
participantId: string | null;
|
|
115
115
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
116
|
-
deliveryChannel: "
|
|
116
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
117
117
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
118
118
|
artifactUrl: string | null;
|
|
119
119
|
}[];
|
|
@@ -187,11 +187,11 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
187
187
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
|
+
organizationId: string | null;
|
|
190
191
|
startDate: string | null;
|
|
191
192
|
endDate: string | null;
|
|
192
193
|
bookingNumber: string;
|
|
193
194
|
personId: string | null;
|
|
194
|
-
organizationId: string | null;
|
|
195
195
|
sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
|
|
196
196
|
externalBookingRef: string | null;
|
|
197
197
|
communicationLanguage: string | null;
|
|
@@ -254,11 +254,11 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
254
254
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
255
255
|
createdAt: string;
|
|
256
256
|
updatedAt: string;
|
|
257
|
+
organizationId: string | null;
|
|
257
258
|
startDate: string | null;
|
|
258
259
|
endDate: string | null;
|
|
259
260
|
bookingNumber: string;
|
|
260
261
|
personId: string | null;
|
|
261
|
-
organizationId: string | null;
|
|
262
262
|
sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
|
|
263
263
|
externalBookingRef: string | null;
|
|
264
264
|
communicationLanguage: string | null;
|
|
@@ -425,11 +425,11 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
425
425
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
426
426
|
createdAt: string;
|
|
427
427
|
updatedAt: string;
|
|
428
|
+
organizationId: string | null;
|
|
428
429
|
startDate: string | null;
|
|
429
430
|
endDate: string | null;
|
|
430
431
|
bookingNumber: string;
|
|
431
432
|
personId: string | null;
|
|
432
|
-
organizationId: string | null;
|
|
433
433
|
sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
|
|
434
434
|
externalBookingRef: string | null;
|
|
435
435
|
communicationLanguage: string | null;
|
|
@@ -1071,12 +1071,12 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1071
1071
|
createdAt: string;
|
|
1072
1072
|
updatedAt: string;
|
|
1073
1073
|
email: string | null;
|
|
1074
|
+
firstName: string;
|
|
1075
|
+
lastName: string;
|
|
1074
1076
|
personId: string | null;
|
|
1075
1077
|
bookingId: string;
|
|
1076
1078
|
participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
|
|
1077
1079
|
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1078
|
-
firstName: string;
|
|
1079
|
-
lastName: string;
|
|
1080
1080
|
phone: string | null;
|
|
1081
1081
|
preferredLanguage: string | null;
|
|
1082
1082
|
accessibilityNeeds: string | null;
|
|
@@ -1521,11 +1521,11 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1521
1521
|
notes: string | null;
|
|
1522
1522
|
createdAt: string;
|
|
1523
1523
|
updatedAt: string;
|
|
1524
|
-
sellCurrency: string;
|
|
1525
|
-
bookingId: string;
|
|
1526
1524
|
metadata: {
|
|
1527
1525
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1528
1526
|
} | null;
|
|
1527
|
+
sellCurrency: string;
|
|
1528
|
+
bookingId: string;
|
|
1529
1529
|
title: string;
|
|
1530
1530
|
description: string | null;
|
|
1531
1531
|
itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
@@ -1686,10 +1686,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1686
1686
|
data: {
|
|
1687
1687
|
id: string;
|
|
1688
1688
|
createdAt: string;
|
|
1689
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
|
|
1689
1690
|
isPrimary: boolean;
|
|
1690
1691
|
participantId: string;
|
|
1691
1692
|
bookingItemId: string;
|
|
1692
|
-
role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
|
|
1693
1693
|
};
|
|
1694
1694
|
};
|
|
1695
1695
|
outputFormat: "json";
|
|
@@ -1744,7 +1744,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1744
1744
|
bookingId: string;
|
|
1745
1745
|
supplierServiceId: string | null;
|
|
1746
1746
|
serviceName: string;
|
|
1747
|
-
status: "cancelled" | "
|
|
1747
|
+
status: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
1748
1748
|
supplierReference: string | null;
|
|
1749
1749
|
costCurrency: string;
|
|
1750
1750
|
costAmountCents: number;
|
|
@@ -1780,7 +1780,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1780
1780
|
output: {
|
|
1781
1781
|
data: {
|
|
1782
1782
|
id: string;
|
|
1783
|
-
status: "cancelled" | "
|
|
1783
|
+
status: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
1784
1784
|
notes: string | null;
|
|
1785
1785
|
createdAt: string;
|
|
1786
1786
|
updatedAt: string;
|
|
@@ -1826,7 +1826,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1826
1826
|
bookingId: string;
|
|
1827
1827
|
supplierServiceId: string | null;
|
|
1828
1828
|
serviceName: string;
|
|
1829
|
-
status: "cancelled" | "
|
|
1829
|
+
status: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
1830
1830
|
supplierReference: string | null;
|
|
1831
1831
|
costCurrency: string;
|
|
1832
1832
|
costAmountCents: number;
|
|
@@ -1855,7 +1855,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1855
1855
|
bookingItemId: string | null;
|
|
1856
1856
|
participantId: string | null;
|
|
1857
1857
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
1858
|
-
deliveryChannel: "
|
|
1858
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
1859
1859
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
1860
1860
|
artifactUrl: string | null;
|
|
1861
1861
|
payload: {
|
|
@@ -1900,7 +1900,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1900
1900
|
participantId: string | null;
|
|
1901
1901
|
bookingItemId: string | null;
|
|
1902
1902
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
1903
|
-
deliveryChannel: "
|
|
1903
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
1904
1904
|
artifactUrl: string | null;
|
|
1905
1905
|
payload: {
|
|
1906
1906
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -1943,7 +1943,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1943
1943
|
bookingItemId: string | null;
|
|
1944
1944
|
participantId: string | null;
|
|
1945
1945
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
1946
|
-
deliveryChannel: "
|
|
1946
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
1947
1947
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
1948
1948
|
artifactUrl: string | null;
|
|
1949
1949
|
payload: {
|
|
@@ -2011,12 +2011,12 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2011
2011
|
id: string;
|
|
2012
2012
|
createdAt: string;
|
|
2013
2013
|
method: "other" | "manual" | "api" | "scan";
|
|
2014
|
-
redeemedAt: string;
|
|
2015
|
-
bookingId: string;
|
|
2016
|
-
participantId: string | null;
|
|
2017
2014
|
metadata: {
|
|
2018
2015
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
2019
2016
|
} | null;
|
|
2017
|
+
redeemedAt: string;
|
|
2018
|
+
bookingId: string;
|
|
2019
|
+
participantId: string | null;
|
|
2020
2020
|
bookingItemId: string | null;
|
|
2021
2021
|
redeemedBy: string | null;
|
|
2022
2022
|
location: string | null;
|
|
@@ -2165,11 +2165,11 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2165
2165
|
id: string;
|
|
2166
2166
|
notes: string | null;
|
|
2167
2167
|
createdAt: string;
|
|
2168
|
+
expiresAt: string | null;
|
|
2168
2169
|
bookingId: string;
|
|
2169
2170
|
participantId: string | null;
|
|
2170
2171
|
fileName: string;
|
|
2171
2172
|
fileUrl: string;
|
|
2172
|
-
expiresAt: string | null;
|
|
2173
2173
|
};
|
|
2174
2174
|
};
|
|
2175
2175
|
outputFormat: "json";
|
|
@@ -151,11 +151,11 @@ export declare const bookingParticipantTravelDetailInsertSchema: z.ZodObject<{
|
|
|
151
151
|
isLeadTraveler: z.ZodDefault<z.ZodBoolean>;
|
|
152
152
|
}, z.core.$strip>;
|
|
153
153
|
export declare const bookingParticipantTravelDetailUpdateSchema: z.ZodObject<{
|
|
154
|
-
|
|
155
|
-
identityEncrypted: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
154
|
+
dietaryEncrypted: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
156
155
|
enc: z.ZodString;
|
|
157
156
|
}, z.core.$strip>>>>>;
|
|
158
|
-
|
|
157
|
+
isLeadTraveler: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
158
|
+
identityEncrypted: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
159
159
|
enc: z.ZodString;
|
|
160
160
|
}, z.core.$strip>>>>>;
|
|
161
161
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"travel-details.d.ts","sourceRoot":"","sources":["../../src/schema/travel-details.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"travel-details.d.ts","sourceRoot":"","sources":["../../src/schema/travel-details.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAA;AAEF,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AAEF,eAAO,MAAM,6CAA6C;;;;;;;;;;iBAUxD,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3C,CAAA;AASD,eAAO,MAAM,0CAA0C;;;;;;;;;iBAA2C,CAAA;AAClG,eAAO,MAAM,0CAA0C;;;;;;;;iBAEvB,CAAA;AAChC,eAAO,MAAM,0CAA0C;;;;;;;;;;;iBAInD,CAAA;AAEJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,8BAA8B,GAAG,OAAO,+BAA+B,CAAC,YAAY,CAAA;AAChG,MAAM,MAAM,iCAAiC,GAAG,OAAO,+BAA+B,CAAC,YAAY,CAAA;AACnG,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,6CAA6C,CACrD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { kmsEnvelopeSchema } from "@voyantjs/db/schema/iam
|
|
1
|
+
import { kmsEnvelopeSchema } from "@voyantjs/db/schema/iam";
|
|
2
2
|
import { boolean, index, jsonb, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { bookingParticipants } from "../schema.js";
|
package/dist/schema-items.d.ts
CHANGED
|
@@ -841,7 +841,7 @@ export declare const bookingFulfillments: import("drizzle-orm/pg-core").PgTableW
|
|
|
841
841
|
tableName: "booking_fulfillments";
|
|
842
842
|
dataType: "string";
|
|
843
843
|
columnType: "PgEnumColumn";
|
|
844
|
-
data: "
|
|
844
|
+
data: "email" | "other" | "download" | "api" | "wallet";
|
|
845
845
|
driverParam: string;
|
|
846
846
|
notNull: true;
|
|
847
847
|
hasDefault: false;
|
|
@@ -75,7 +75,7 @@ export declare const bookingSupplierStatuses: import("drizzle-orm/pg-core").PgTa
|
|
|
75
75
|
tableName: "booking_supplier_statuses";
|
|
76
76
|
dataType: "string";
|
|
77
77
|
columnType: "PgEnumColumn";
|
|
78
|
-
data: "cancelled" | "
|
|
78
|
+
data: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
79
79
|
driverParam: string;
|
|
80
80
|
notNull: true;
|
|
81
81
|
hasDefault: true;
|
package/dist/service-public.d.ts
CHANGED
|
@@ -700,7 +700,7 @@ export declare const publicBookingsService: {
|
|
|
700
700
|
bookingItemId: string | null;
|
|
701
701
|
participantId: string | null;
|
|
702
702
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
703
|
-
deliveryChannel: "
|
|
703
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
704
704
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
705
705
|
artifactUrl: string | null;
|
|
706
706
|
}[];
|
|
@@ -764,7 +764,7 @@ export declare const publicBookingsService: {
|
|
|
764
764
|
bookingItemId: string | null;
|
|
765
765
|
participantId: string | null;
|
|
766
766
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
767
|
-
deliveryChannel: "
|
|
767
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
768
768
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
769
769
|
artifactUrl: string | null;
|
|
770
770
|
}[];
|
package/dist/service.d.ts
CHANGED
|
@@ -99,11 +99,11 @@ export declare const bookingsService: {
|
|
|
99
99
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
100
100
|
createdAt: Date;
|
|
101
101
|
updatedAt: Date;
|
|
102
|
+
organizationId: string | null;
|
|
102
103
|
startDate: string | null;
|
|
103
104
|
endDate: string | null;
|
|
104
105
|
bookingNumber: string;
|
|
105
106
|
personId: string | null;
|
|
106
|
-
organizationId: string | null;
|
|
107
107
|
sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
|
|
108
108
|
externalBookingRef: string | null;
|
|
109
109
|
communicationLanguage: string | null;
|
|
@@ -157,11 +157,11 @@ export declare const bookingsService: {
|
|
|
157
157
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
158
158
|
createdAt: Date;
|
|
159
159
|
updatedAt: Date;
|
|
160
|
+
organizationId: string | null;
|
|
160
161
|
startDate: string | null;
|
|
161
162
|
endDate: string | null;
|
|
162
163
|
bookingNumber: string;
|
|
163
164
|
personId: string | null;
|
|
164
|
-
organizationId: string | null;
|
|
165
165
|
sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
|
|
166
166
|
externalBookingRef: string | null;
|
|
167
167
|
communicationLanguage: string | null;
|
|
@@ -797,11 +797,11 @@ export declare const bookingsService: {
|
|
|
797
797
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
798
798
|
createdAt: Date;
|
|
799
799
|
updatedAt: Date;
|
|
800
|
+
organizationId: string | null;
|
|
800
801
|
startDate: string | null;
|
|
801
802
|
endDate: string | null;
|
|
802
803
|
bookingNumber: string;
|
|
803
804
|
personId: string | null;
|
|
804
|
-
organizationId: string | null;
|
|
805
805
|
sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
|
|
806
806
|
externalBookingRef: string | null;
|
|
807
807
|
communicationLanguage: string | null;
|
|
@@ -829,11 +829,11 @@ export declare const bookingsService: {
|
|
|
829
829
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
830
830
|
createdAt: Date;
|
|
831
831
|
updatedAt: Date;
|
|
832
|
+
organizationId: string | null;
|
|
832
833
|
startDate: string | null;
|
|
833
834
|
endDate: string | null;
|
|
834
835
|
bookingNumber: string;
|
|
835
836
|
personId: string | null;
|
|
836
|
-
organizationId: string | null;
|
|
837
837
|
sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
|
|
838
838
|
externalBookingRef: string | null;
|
|
839
839
|
communicationLanguage: string | null;
|
|
@@ -1617,12 +1617,12 @@ export declare const bookingsService: {
|
|
|
1617
1617
|
createdAt: Date;
|
|
1618
1618
|
updatedAt: Date;
|
|
1619
1619
|
email: string | null;
|
|
1620
|
+
firstName: string;
|
|
1621
|
+
lastName: string;
|
|
1620
1622
|
personId: string | null;
|
|
1621
1623
|
bookingId: string;
|
|
1622
1624
|
participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
|
|
1623
1625
|
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1624
|
-
firstName: string;
|
|
1625
|
-
lastName: string;
|
|
1626
1626
|
phone: string | null;
|
|
1627
1627
|
preferredLanguage: string | null;
|
|
1628
1628
|
accessibilityNeeds: string | null;
|
|
@@ -2617,9 +2617,9 @@ export declare const bookingsService: {
|
|
|
2617
2617
|
notes: string | null;
|
|
2618
2618
|
createdAt: Date;
|
|
2619
2619
|
updatedAt: Date;
|
|
2620
|
+
metadata: Record<string, unknown> | null;
|
|
2620
2621
|
sellCurrency: string;
|
|
2621
2622
|
bookingId: string;
|
|
2622
|
-
metadata: Record<string, unknown> | null;
|
|
2623
2623
|
title: string;
|
|
2624
2624
|
description: string | null;
|
|
2625
2625
|
itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
@@ -2883,10 +2883,10 @@ export declare const bookingsService: {
|
|
|
2883
2883
|
addItemParticipant(db: PostgresJsDatabase, itemId: string, data: CreateBookingItemParticipantInput): Promise<{
|
|
2884
2884
|
id: string;
|
|
2885
2885
|
createdAt: Date;
|
|
2886
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
|
|
2886
2887
|
isPrimary: boolean;
|
|
2887
2888
|
participantId: string;
|
|
2888
2889
|
bookingItemId: string;
|
|
2889
|
-
role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
|
|
2890
2890
|
} | null | undefined>;
|
|
2891
2891
|
removeItemParticipant(db: PostgresJsDatabase, linkId: string): Promise<{
|
|
2892
2892
|
id: string;
|
|
@@ -2965,7 +2965,7 @@ export declare const bookingsService: {
|
|
|
2965
2965
|
tableName: "booking_supplier_statuses";
|
|
2966
2966
|
dataType: "string";
|
|
2967
2967
|
columnType: "PgEnumColumn";
|
|
2968
|
-
data: "cancelled" | "
|
|
2968
|
+
data: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
2969
2969
|
driverParam: string;
|
|
2970
2970
|
notNull: true;
|
|
2971
2971
|
hasDefault: true;
|
|
@@ -3101,7 +3101,7 @@ export declare const bookingsService: {
|
|
|
3101
3101
|
bookingId: string;
|
|
3102
3102
|
supplierServiceId: string | null;
|
|
3103
3103
|
serviceName: string;
|
|
3104
|
-
status: "cancelled" | "
|
|
3104
|
+
status: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
3105
3105
|
supplierReference: string | null;
|
|
3106
3106
|
costCurrency: string;
|
|
3107
3107
|
costAmountCents: number;
|
|
@@ -3183,7 +3183,7 @@ export declare const bookingsService: {
|
|
|
3183
3183
|
tableName: "booking_supplier_statuses";
|
|
3184
3184
|
dataType: "string";
|
|
3185
3185
|
columnType: "PgEnumColumn";
|
|
3186
|
-
data: "cancelled" | "
|
|
3186
|
+
data: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
3187
3187
|
driverParam: string;
|
|
3188
3188
|
notNull: true;
|
|
3189
3189
|
hasDefault: true;
|
|
@@ -3325,7 +3325,7 @@ export declare const bookingsService: {
|
|
|
3325
3325
|
notes?: string | null;
|
|
3326
3326
|
}, userId?: string): Promise<{
|
|
3327
3327
|
id: string;
|
|
3328
|
-
status: "cancelled" | "
|
|
3328
|
+
status: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
3329
3329
|
notes: string | null;
|
|
3330
3330
|
createdAt: Date;
|
|
3331
3331
|
updatedAt: Date;
|
|
@@ -3351,7 +3351,7 @@ export declare const bookingsService: {
|
|
|
3351
3351
|
bookingId: string;
|
|
3352
3352
|
supplierServiceId: string | null;
|
|
3353
3353
|
serviceName: string;
|
|
3354
|
-
status: "cancelled" | "
|
|
3354
|
+
status: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
3355
3355
|
supplierReference: string | null;
|
|
3356
3356
|
costCurrency: string;
|
|
3357
3357
|
costAmountCents: number;
|
|
@@ -3451,7 +3451,7 @@ export declare const bookingsService: {
|
|
|
3451
3451
|
tableName: "booking_fulfillments";
|
|
3452
3452
|
dataType: "string";
|
|
3453
3453
|
columnType: "PgEnumColumn";
|
|
3454
|
-
data: "
|
|
3454
|
+
data: "email" | "other" | "download" | "api" | "wallet";
|
|
3455
3455
|
driverParam: string;
|
|
3456
3456
|
notNull: true;
|
|
3457
3457
|
hasDefault: false;
|
|
@@ -3590,7 +3590,7 @@ export declare const bookingsService: {
|
|
|
3590
3590
|
bookingItemId: string | null;
|
|
3591
3591
|
participantId: string | null;
|
|
3592
3592
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
3593
|
-
deliveryChannel: "
|
|
3593
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
3594
3594
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
3595
3595
|
artifactUrl: string | null;
|
|
3596
3596
|
payload: Record<string, unknown> | null;
|
|
@@ -3689,7 +3689,7 @@ export declare const bookingsService: {
|
|
|
3689
3689
|
tableName: "booking_fulfillments";
|
|
3690
3690
|
dataType: "string";
|
|
3691
3691
|
columnType: "PgEnumColumn";
|
|
3692
|
-
data: "
|
|
3692
|
+
data: "email" | "other" | "download" | "api" | "wallet";
|
|
3693
3693
|
driverParam: string;
|
|
3694
3694
|
notNull: true;
|
|
3695
3695
|
hasDefault: false;
|
|
@@ -3832,7 +3832,7 @@ export declare const bookingsService: {
|
|
|
3832
3832
|
participantId: string | null;
|
|
3833
3833
|
bookingItemId: string | null;
|
|
3834
3834
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
3835
|
-
deliveryChannel: "
|
|
3835
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
3836
3836
|
artifactUrl: string | null;
|
|
3837
3837
|
payload: Record<string, unknown> | null;
|
|
3838
3838
|
issuedAt: Date | null;
|
|
@@ -3844,7 +3844,7 @@ export declare const bookingsService: {
|
|
|
3844
3844
|
bookingItemId: string | null;
|
|
3845
3845
|
participantId: string | null;
|
|
3846
3846
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
3847
|
-
deliveryChannel: "
|
|
3847
|
+
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
3848
3848
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
3849
3849
|
artifactUrl: string | null;
|
|
3850
3850
|
payload: Record<string, unknown> | null;
|
|
@@ -4215,10 +4215,10 @@ export declare const bookingsService: {
|
|
|
4215
4215
|
id: string;
|
|
4216
4216
|
createdAt: Date;
|
|
4217
4217
|
method: "other" | "manual" | "api" | "scan";
|
|
4218
|
+
metadata: Record<string, unknown> | null;
|
|
4218
4219
|
redeemedAt: Date;
|
|
4219
4220
|
bookingId: string;
|
|
4220
4221
|
participantId: string | null;
|
|
4221
|
-
metadata: Record<string, unknown> | null;
|
|
4222
4222
|
bookingItemId: string | null;
|
|
4223
4223
|
redeemedBy: string | null;
|
|
4224
4224
|
location: string | null;
|
|
@@ -4986,11 +4986,11 @@ export declare const bookingsService: {
|
|
|
4986
4986
|
id: string;
|
|
4987
4987
|
notes: string | null;
|
|
4988
4988
|
createdAt: Date;
|
|
4989
|
+
expiresAt: Date | null;
|
|
4989
4990
|
bookingId: string;
|
|
4990
4991
|
participantId: string | null;
|
|
4991
4992
|
fileName: string;
|
|
4992
4993
|
fileUrl: string;
|
|
4993
|
-
expiresAt: Date | null;
|
|
4994
4994
|
} | null | undefined>;
|
|
4995
4995
|
deleteDocument(db: PostgresJsDatabase, documentId: string): Promise<{
|
|
4996
4996
|
id: string;
|
|
@@ -752,9 +752,9 @@ export declare const publicBookingOverviewFulfillmentSchema: z.ZodObject<{
|
|
|
752
752
|
mobile: "mobile";
|
|
753
753
|
}>;
|
|
754
754
|
deliveryChannel: z.ZodEnum<{
|
|
755
|
+
email: "email";
|
|
755
756
|
other: "other";
|
|
756
757
|
download: "download";
|
|
757
|
-
email: "email";
|
|
758
758
|
api: "api";
|
|
759
759
|
wallet: "wallet";
|
|
760
760
|
}>;
|
|
@@ -881,9 +881,9 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
|
|
|
881
881
|
mobile: "mobile";
|
|
882
882
|
}>;
|
|
883
883
|
deliveryChannel: z.ZodEnum<{
|
|
884
|
+
email: "email";
|
|
884
885
|
other: "other";
|
|
885
886
|
download: "download";
|
|
886
|
-
email: "email";
|
|
887
887
|
api: "api";
|
|
888
888
|
wallet: "wallet";
|
|
889
889
|
}>;
|
|
@@ -10,8 +10,8 @@ export declare const bookingStatusSchema: z.ZodEnum<{
|
|
|
10
10
|
}>;
|
|
11
11
|
export declare const supplierConfirmationStatusSchema: z.ZodEnum<{
|
|
12
12
|
cancelled: "cancelled";
|
|
13
|
-
confirmed: "confirmed";
|
|
14
13
|
pending: "pending";
|
|
14
|
+
confirmed: "confirmed";
|
|
15
15
|
rejected: "rejected";
|
|
16
16
|
}>;
|
|
17
17
|
export declare const bookingSourceTypeSchema: z.ZodEnum<{
|
|
@@ -89,9 +89,9 @@ export declare const bookingFulfillmentTypeSchema: z.ZodEnum<{
|
|
|
89
89
|
mobile: "mobile";
|
|
90
90
|
}>;
|
|
91
91
|
export declare const bookingFulfillmentDeliveryChannelSchema: z.ZodEnum<{
|
|
92
|
+
email: "email";
|
|
92
93
|
other: "other";
|
|
93
94
|
download: "download";
|
|
94
|
-
email: "email";
|
|
95
95
|
api: "api";
|
|
96
96
|
wallet: "wallet";
|
|
97
97
|
}>;
|
package/dist/validation.d.ts
CHANGED
|
@@ -192,11 +192,11 @@ export declare const reserveBookingItemSchema: z.ZodObject<{
|
|
|
192
192
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
194
|
export declare const reserveBookingSchema: z.ZodObject<{
|
|
195
|
+
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
195
196
|
startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
196
197
|
endDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
197
198
|
bookingNumber: z.ZodString;
|
|
198
199
|
personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
199
|
-
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
200
200
|
sourceType: z.ZodDefault<z.ZodEnum<{
|
|
201
201
|
internal: "internal";
|
|
202
202
|
direct: "direct";
|
|
@@ -518,9 +518,9 @@ export declare const insertBookingFulfillmentSchema: z.ZodObject<{
|
|
|
518
518
|
mobile: "mobile";
|
|
519
519
|
}>;
|
|
520
520
|
deliveryChannel: z.ZodEnum<{
|
|
521
|
+
email: "email";
|
|
521
522
|
other: "other";
|
|
522
523
|
download: "download";
|
|
523
|
-
email: "email";
|
|
524
524
|
api: "api";
|
|
525
525
|
wallet: "wallet";
|
|
526
526
|
}>;
|
|
@@ -549,9 +549,9 @@ export declare const updateBookingFulfillmentSchema: z.ZodObject<{
|
|
|
549
549
|
mobile: "mobile";
|
|
550
550
|
}>>;
|
|
551
551
|
deliveryChannel: z.ZodOptional<z.ZodEnum<{
|
|
552
|
+
email: "email";
|
|
552
553
|
other: "other";
|
|
553
554
|
download: "download";
|
|
554
|
-
email: "email";
|
|
555
555
|
api: "api";
|
|
556
556
|
wallet: "wallet";
|
|
557
557
|
}>>;
|
|
@@ -598,8 +598,8 @@ export declare const insertSupplierStatusSchema: z.ZodObject<{
|
|
|
598
598
|
serviceName: z.ZodString;
|
|
599
599
|
status: z.ZodDefault<z.ZodEnum<{
|
|
600
600
|
cancelled: "cancelled";
|
|
601
|
-
confirmed: "confirmed";
|
|
602
601
|
pending: "pending";
|
|
602
|
+
confirmed: "confirmed";
|
|
603
603
|
rejected: "rejected";
|
|
604
604
|
}>>;
|
|
605
605
|
supplierReference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -612,8 +612,8 @@ export declare const updateSupplierStatusSchema: z.ZodObject<{
|
|
|
612
612
|
serviceName: z.ZodOptional<z.ZodString>;
|
|
613
613
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
614
614
|
cancelled: "cancelled";
|
|
615
|
-
confirmed: "confirmed";
|
|
616
615
|
pending: "pending";
|
|
616
|
+
confirmed: "confirmed";
|
|
617
617
|
rejected: "rejected";
|
|
618
618
|
}>>>;
|
|
619
619
|
supplierReference: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/bookings",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"drizzle-orm": "^0.45.2",
|
|
50
50
|
"hono": "^4.12.10",
|
|
51
51
|
"zod": "^4.3.6",
|
|
52
|
-
"@voyantjs/core": "0.4.
|
|
53
|
-
"@voyantjs/db": "0.4.
|
|
54
|
-
"@voyantjs/hono": "0.4.
|
|
55
|
-
"@voyantjs/utils": "0.4.
|
|
52
|
+
"@voyantjs/core": "0.4.1",
|
|
53
|
+
"@voyantjs/db": "0.4.1",
|
|
54
|
+
"@voyantjs/hono": "0.4.1",
|
|
55
|
+
"@voyantjs/utils": "0.4.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"typescript": "^6.0.2",
|
|
59
|
-
"@voyantjs/products": "0.4.
|
|
59
|
+
"@voyantjs/products": "0.4.1",
|
|
60
60
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|