@voyantjs/bookings 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/pricing-ref.d.ts +692 -0
- package/dist/pricing-ref.d.ts.map +1 -0
- package/dist/pricing-ref.js +49 -0
- package/dist/products-ref.d.ts +170 -0
- package/dist/products-ref.d.ts.map +1 -1
- package/dist/products-ref.js +10 -0
- package/dist/routes-public.d.ts +580 -0
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-public.js +105 -0
- package/dist/routes-shared.d.ts +66 -0
- package/dist/routes-shared.d.ts.map +1 -0
- package/dist/routes-shared.js +10 -0
- package/dist/routes.d.ts +3 -43
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +1 -7
- package/dist/schema-core.d.ts +1229 -0
- package/dist/schema-core.d.ts.map +1 -0
- package/dist/schema-core.js +81 -0
- package/dist/schema-items.d.ts +1278 -0
- package/dist/schema-items.d.ts.map +1 -0
- package/dist/schema-items.js +130 -0
- package/dist/schema-operations.d.ts +766 -0
- package/dist/schema-operations.d.ts.map +1 -0
- package/dist/schema-operations.js +78 -0
- package/dist/schema-relations.d.ts +62 -0
- package/dist/schema-relations.d.ts.map +1 -0
- package/dist/schema-relations.js +102 -0
- package/dist/schema-shared.d.ts +19 -0
- package/dist/schema-shared.d.ts.map +1 -0
- package/dist/schema-shared.js +137 -0
- package/dist/schema.d.ts +5 -3179
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +5 -509
- package/dist/service-public.d.ts +709 -0
- package/dist/service-public.d.ts.map +1 -0
- package/dist/service-public.js +887 -0
- package/dist/validation-public.d.ts +901 -0
- package/dist/validation-public.d.ts.map +1 -0
- package/dist/validation-public.js +267 -0
- package/dist/validation-shared.d.ts +118 -0
- package/dist/validation-shared.d.ts.map +1 -0
- package/dist/validation-shared.js +102 -0
- package/dist/validation.d.ts +2 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +3 -90
- package/package.json +14 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-public.d.ts","sourceRoot":"","sources":["../src/validation-public.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { bookingAllocationStatusSchema, bookingAllocationTypeSchema, bookingDocumentTypeSchema, bookingFulfillmentDeliveryChannelSchema, bookingFulfillmentStatusSchema, bookingFulfillmentTypeSchema, bookingItemParticipantRoleSchema, bookingItemStatusSchema, bookingItemTypeSchema, bookingParticipantTypeSchema, bookingStatusSchema, bookingTravelerCategorySchema, } from "./validation-shared.js";
|
|
3
|
+
const isoDateSchema = z.string().date();
|
|
4
|
+
const isoDateTimeSchema = z.string().datetime();
|
|
5
|
+
export const publicBookingSessionParticipantInputSchema = z.object({
|
|
6
|
+
id: z.string().optional(),
|
|
7
|
+
participantType: bookingParticipantTypeSchema.default("traveler"),
|
|
8
|
+
travelerCategory: bookingTravelerCategorySchema.nullable().optional(),
|
|
9
|
+
firstName: z.string().min(1).max(255),
|
|
10
|
+
lastName: z.string().min(1).max(255),
|
|
11
|
+
email: z.string().email().nullable().optional(),
|
|
12
|
+
phone: z.string().max(50).nullable().optional(),
|
|
13
|
+
preferredLanguage: z.string().max(35).nullable().optional(),
|
|
14
|
+
accessibilityNeeds: z.string().nullable().optional(),
|
|
15
|
+
specialRequests: z.string().nullable().optional(),
|
|
16
|
+
isPrimary: z.boolean().default(false),
|
|
17
|
+
notes: z.string().nullable().optional(),
|
|
18
|
+
});
|
|
19
|
+
export const publicCreateBookingSessionItemSchema = z.object({
|
|
20
|
+
title: z.string().min(1).max(255),
|
|
21
|
+
description: z.string().nullable().optional(),
|
|
22
|
+
itemType: bookingItemTypeSchema.default("unit"),
|
|
23
|
+
quantity: z.number().int().positive().default(1),
|
|
24
|
+
sellCurrency: z.string().min(3).max(3).nullable().optional(),
|
|
25
|
+
unitSellAmountCents: z.number().int().min(0).nullable().optional(),
|
|
26
|
+
totalSellAmountCents: z.number().int().min(0).nullable().optional(),
|
|
27
|
+
costCurrency: z.string().min(3).max(3).nullable().optional(),
|
|
28
|
+
unitCostAmountCents: z.number().int().min(0).nullable().optional(),
|
|
29
|
+
totalCostAmountCents: z.number().int().min(0).nullable().optional(),
|
|
30
|
+
notes: z.string().nullable().optional(),
|
|
31
|
+
productId: z.string().nullable().optional(),
|
|
32
|
+
optionId: z.string().nullable().optional(),
|
|
33
|
+
optionUnitId: z.string().nullable().optional(),
|
|
34
|
+
pricingCategoryId: z.string().nullable().optional(),
|
|
35
|
+
sourceSnapshotId: z.string().nullable().optional(),
|
|
36
|
+
metadata: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
37
|
+
availabilitySlotId: z.string().min(1),
|
|
38
|
+
allocationType: bookingAllocationTypeSchema.default("unit"),
|
|
39
|
+
});
|
|
40
|
+
export const publicCreateBookingSessionSchema = z.object({
|
|
41
|
+
externalBookingRef: z.string().nullable().optional(),
|
|
42
|
+
communicationLanguage: z.string().max(35).nullable().optional(),
|
|
43
|
+
sellCurrency: z.string().min(3).max(3),
|
|
44
|
+
baseCurrency: z.string().min(3).max(3).nullable().optional(),
|
|
45
|
+
sellAmountCents: z.number().int().min(0).nullable().optional(),
|
|
46
|
+
baseSellAmountCents: z.number().int().min(0).nullable().optional(),
|
|
47
|
+
costAmountCents: z.number().int().min(0).nullable().optional(),
|
|
48
|
+
baseCostAmountCents: z.number().int().min(0).nullable().optional(),
|
|
49
|
+
marginPercent: z.number().int().nullable().optional(),
|
|
50
|
+
startDate: isoDateSchema.nullable().optional(),
|
|
51
|
+
endDate: isoDateSchema.nullable().optional(),
|
|
52
|
+
pax: z.number().int().positive().nullable().optional(),
|
|
53
|
+
holdMinutes: z
|
|
54
|
+
.number()
|
|
55
|
+
.int()
|
|
56
|
+
.positive()
|
|
57
|
+
.max(24 * 60)
|
|
58
|
+
.default(30),
|
|
59
|
+
holdExpiresAt: isoDateTimeSchema.nullable().optional(),
|
|
60
|
+
items: z.array(publicCreateBookingSessionItemSchema).min(1),
|
|
61
|
+
participants: z.array(publicBookingSessionParticipantInputSchema).default([]),
|
|
62
|
+
});
|
|
63
|
+
export const publicUpdateBookingSessionSchema = z.object({
|
|
64
|
+
externalBookingRef: z.string().nullable().optional(),
|
|
65
|
+
communicationLanguage: z.string().max(35).nullable().optional(),
|
|
66
|
+
pax: z.number().int().positive().nullable().optional(),
|
|
67
|
+
holdMinutes: z
|
|
68
|
+
.number()
|
|
69
|
+
.int()
|
|
70
|
+
.positive()
|
|
71
|
+
.max(24 * 60)
|
|
72
|
+
.optional(),
|
|
73
|
+
holdExpiresAt: isoDateTimeSchema.nullable().optional(),
|
|
74
|
+
participants: z.array(publicBookingSessionParticipantInputSchema).optional(),
|
|
75
|
+
removedParticipantIds: z.array(z.string()).default([]),
|
|
76
|
+
});
|
|
77
|
+
export const publicBookingSessionMutationSchema = z.object({
|
|
78
|
+
note: z.string().nullable().optional(),
|
|
79
|
+
});
|
|
80
|
+
export const publicBookingSessionStateSchema = z.object({
|
|
81
|
+
sessionId: z.string(),
|
|
82
|
+
stateKey: z.literal("wizard"),
|
|
83
|
+
currentStep: z.string().nullable(),
|
|
84
|
+
completedSteps: z.array(z.string()),
|
|
85
|
+
payload: z.record(z.string(), z.unknown()),
|
|
86
|
+
version: z.number().int().positive(),
|
|
87
|
+
createdAt: z.string(),
|
|
88
|
+
updatedAt: z.string(),
|
|
89
|
+
});
|
|
90
|
+
export const publicUpsertBookingSessionStateSchema = z.object({
|
|
91
|
+
currentStep: z.string().max(255).nullable().optional(),
|
|
92
|
+
completedSteps: z.array(z.string().min(1).max(255)).optional(),
|
|
93
|
+
payload: z.record(z.string(), z.unknown()).default({}),
|
|
94
|
+
replacePayload: z.boolean().default(false),
|
|
95
|
+
});
|
|
96
|
+
export const publicBookingSessionRepriceSelectionSchema = z.object({
|
|
97
|
+
itemId: z.string(),
|
|
98
|
+
optionId: z.string().nullable().optional(),
|
|
99
|
+
optionUnitId: z.string().nullable().optional(),
|
|
100
|
+
pricingCategoryId: z.string().nullable().optional(),
|
|
101
|
+
quantity: z.number().int().positive().optional(),
|
|
102
|
+
});
|
|
103
|
+
export const publicRepriceBookingSessionSchema = z.object({
|
|
104
|
+
catalogId: z.string().optional(),
|
|
105
|
+
applyToSession: z.boolean().default(false),
|
|
106
|
+
selections: z.array(publicBookingSessionRepriceSelectionSchema).min(1),
|
|
107
|
+
});
|
|
108
|
+
export const publicBookingOverviewLookupQuerySchema = z.object({
|
|
109
|
+
bookingNumber: z.string().min(1).max(50),
|
|
110
|
+
email: z.string().email(),
|
|
111
|
+
});
|
|
112
|
+
export const publicBookingSessionParticipantSchema = z.object({
|
|
113
|
+
id: z.string(),
|
|
114
|
+
participantType: bookingParticipantTypeSchema,
|
|
115
|
+
travelerCategory: bookingTravelerCategorySchema.nullable(),
|
|
116
|
+
firstName: z.string(),
|
|
117
|
+
lastName: z.string(),
|
|
118
|
+
email: z.string().nullable(),
|
|
119
|
+
phone: z.string().nullable(),
|
|
120
|
+
preferredLanguage: z.string().nullable(),
|
|
121
|
+
accessibilityNeeds: z.string().nullable(),
|
|
122
|
+
specialRequests: z.string().nullable(),
|
|
123
|
+
isPrimary: z.boolean(),
|
|
124
|
+
notes: z.string().nullable(),
|
|
125
|
+
});
|
|
126
|
+
export const publicBookingSessionItemParticipantSchema = z.object({
|
|
127
|
+
id: z.string(),
|
|
128
|
+
participantId: z.string(),
|
|
129
|
+
role: bookingItemParticipantRoleSchema,
|
|
130
|
+
isPrimary: z.boolean(),
|
|
131
|
+
});
|
|
132
|
+
export const publicBookingSessionItemSchema = z.object({
|
|
133
|
+
id: z.string(),
|
|
134
|
+
title: z.string(),
|
|
135
|
+
description: z.string().nullable(),
|
|
136
|
+
itemType: bookingItemTypeSchema,
|
|
137
|
+
status: bookingItemStatusSchema,
|
|
138
|
+
serviceDate: z.string().nullable(),
|
|
139
|
+
startsAt: z.string().nullable(),
|
|
140
|
+
endsAt: z.string().nullable(),
|
|
141
|
+
quantity: z.number().int(),
|
|
142
|
+
sellCurrency: z.string(),
|
|
143
|
+
unitSellAmountCents: z.number().int().nullable(),
|
|
144
|
+
totalSellAmountCents: z.number().int().nullable(),
|
|
145
|
+
costCurrency: z.string().nullable(),
|
|
146
|
+
unitCostAmountCents: z.number().int().nullable(),
|
|
147
|
+
totalCostAmountCents: z.number().int().nullable(),
|
|
148
|
+
notes: z.string().nullable(),
|
|
149
|
+
productId: z.string().nullable(),
|
|
150
|
+
optionId: z.string().nullable(),
|
|
151
|
+
optionUnitId: z.string().nullable(),
|
|
152
|
+
pricingCategoryId: z.string().nullable(),
|
|
153
|
+
participantLinks: z.array(publicBookingSessionItemParticipantSchema),
|
|
154
|
+
});
|
|
155
|
+
export const publicBookingSessionAllocationSchema = z.object({
|
|
156
|
+
id: z.string(),
|
|
157
|
+
bookingItemId: z.string().nullable(),
|
|
158
|
+
productId: z.string().nullable(),
|
|
159
|
+
optionId: z.string().nullable(),
|
|
160
|
+
optionUnitId: z.string().nullable(),
|
|
161
|
+
pricingCategoryId: z.string().nullable(),
|
|
162
|
+
availabilitySlotId: z.string().nullable(),
|
|
163
|
+
quantity: z.number().int(),
|
|
164
|
+
allocationType: bookingAllocationTypeSchema,
|
|
165
|
+
status: bookingAllocationStatusSchema,
|
|
166
|
+
holdExpiresAt: z.string().nullable(),
|
|
167
|
+
confirmedAt: z.string().nullable(),
|
|
168
|
+
releasedAt: z.string().nullable(),
|
|
169
|
+
});
|
|
170
|
+
export const publicBookingSessionChecklistSchema = z.object({
|
|
171
|
+
hasParticipants: z.boolean(),
|
|
172
|
+
hasTraveler: z.boolean(),
|
|
173
|
+
hasPrimaryParticipant: z.boolean(),
|
|
174
|
+
hasItems: z.boolean(),
|
|
175
|
+
hasAllocations: z.boolean(),
|
|
176
|
+
readyForConfirmation: z.boolean(),
|
|
177
|
+
});
|
|
178
|
+
export const publicBookingSessionSchema = z.object({
|
|
179
|
+
sessionId: z.string(),
|
|
180
|
+
bookingNumber: z.string(),
|
|
181
|
+
status: bookingStatusSchema,
|
|
182
|
+
externalBookingRef: z.string().nullable(),
|
|
183
|
+
communicationLanguage: z.string().nullable(),
|
|
184
|
+
sellCurrency: z.string(),
|
|
185
|
+
sellAmountCents: z.number().int().nullable(),
|
|
186
|
+
startDate: z.string().nullable(),
|
|
187
|
+
endDate: z.string().nullable(),
|
|
188
|
+
pax: z.number().int().nullable(),
|
|
189
|
+
holdExpiresAt: z.string().nullable(),
|
|
190
|
+
confirmedAt: z.string().nullable(),
|
|
191
|
+
expiredAt: z.string().nullable(),
|
|
192
|
+
cancelledAt: z.string().nullable(),
|
|
193
|
+
completedAt: z.string().nullable(),
|
|
194
|
+
participants: z.array(publicBookingSessionParticipantSchema),
|
|
195
|
+
items: z.array(publicBookingSessionItemSchema),
|
|
196
|
+
allocations: z.array(publicBookingSessionAllocationSchema),
|
|
197
|
+
checklist: publicBookingSessionChecklistSchema,
|
|
198
|
+
state: publicBookingSessionStateSchema.nullable(),
|
|
199
|
+
});
|
|
200
|
+
export const publicBookingSessionRepriceItemSchema = z.object({
|
|
201
|
+
itemId: z.string(),
|
|
202
|
+
title: z.string(),
|
|
203
|
+
productId: z.string().nullable(),
|
|
204
|
+
optionId: z.string().nullable(),
|
|
205
|
+
optionUnitId: z.string().nullable(),
|
|
206
|
+
optionUnitName: z.string().nullable(),
|
|
207
|
+
optionUnitType: z.string().nullable(),
|
|
208
|
+
pricingCategoryId: z.string().nullable(),
|
|
209
|
+
quantity: z.number().int(),
|
|
210
|
+
pricingMode: z.string(),
|
|
211
|
+
unitSellAmountCents: z.number().int().nullable(),
|
|
212
|
+
totalSellAmountCents: z.number().int().nullable(),
|
|
213
|
+
warnings: z.array(z.string()),
|
|
214
|
+
});
|
|
215
|
+
export const publicBookingSessionRepriceSummarySchema = z.object({
|
|
216
|
+
sessionId: z.string(),
|
|
217
|
+
catalogId: z.string().nullable(),
|
|
218
|
+
currencyCode: z.string(),
|
|
219
|
+
totalSellAmountCents: z.number().int(),
|
|
220
|
+
items: z.array(publicBookingSessionRepriceItemSchema),
|
|
221
|
+
warnings: z.array(z.string()),
|
|
222
|
+
appliedToSession: z.boolean(),
|
|
223
|
+
});
|
|
224
|
+
export const publicBookingSessionRepriceResultSchema = z.object({
|
|
225
|
+
pricing: publicBookingSessionRepriceSummarySchema,
|
|
226
|
+
session: publicBookingSessionSchema.nullable(),
|
|
227
|
+
});
|
|
228
|
+
export const publicBookingOverviewParticipantSchema = z.object({
|
|
229
|
+
id: z.string(),
|
|
230
|
+
participantType: bookingParticipantTypeSchema,
|
|
231
|
+
firstName: z.string(),
|
|
232
|
+
lastName: z.string(),
|
|
233
|
+
isPrimary: z.boolean(),
|
|
234
|
+
});
|
|
235
|
+
export const publicBookingOverviewDocumentSchema = z.object({
|
|
236
|
+
id: z.string(),
|
|
237
|
+
participantId: z.string().nullable(),
|
|
238
|
+
type: bookingDocumentTypeSchema,
|
|
239
|
+
fileName: z.string(),
|
|
240
|
+
fileUrl: z.string(),
|
|
241
|
+
});
|
|
242
|
+
export const publicBookingOverviewFulfillmentSchema = z.object({
|
|
243
|
+
id: z.string(),
|
|
244
|
+
bookingItemId: z.string().nullable(),
|
|
245
|
+
participantId: z.string().nullable(),
|
|
246
|
+
fulfillmentType: bookingFulfillmentTypeSchema,
|
|
247
|
+
deliveryChannel: bookingFulfillmentDeliveryChannelSchema,
|
|
248
|
+
status: bookingFulfillmentStatusSchema,
|
|
249
|
+
artifactUrl: z.string().nullable(),
|
|
250
|
+
});
|
|
251
|
+
export const publicBookingOverviewSchema = z.object({
|
|
252
|
+
bookingId: z.string(),
|
|
253
|
+
bookingNumber: z.string(),
|
|
254
|
+
status: bookingStatusSchema,
|
|
255
|
+
sellCurrency: z.string(),
|
|
256
|
+
sellAmountCents: z.number().int().nullable(),
|
|
257
|
+
startDate: z.string().nullable(),
|
|
258
|
+
endDate: z.string().nullable(),
|
|
259
|
+
pax: z.number().int().nullable(),
|
|
260
|
+
confirmedAt: z.string().nullable(),
|
|
261
|
+
cancelledAt: z.string().nullable(),
|
|
262
|
+
completedAt: z.string().nullable(),
|
|
263
|
+
participants: z.array(publicBookingOverviewParticipantSchema),
|
|
264
|
+
items: z.array(publicBookingSessionItemSchema),
|
|
265
|
+
documents: z.array(publicBookingOverviewDocumentSchema),
|
|
266
|
+
fulfillments: z.array(publicBookingOverviewFulfillmentSchema),
|
|
267
|
+
});
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const bookingStatusSchema: z.ZodEnum<{
|
|
3
|
+
cancelled: "cancelled";
|
|
4
|
+
draft: "draft";
|
|
5
|
+
on_hold: "on_hold";
|
|
6
|
+
confirmed: "confirmed";
|
|
7
|
+
in_progress: "in_progress";
|
|
8
|
+
completed: "completed";
|
|
9
|
+
expired: "expired";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const supplierConfirmationStatusSchema: z.ZodEnum<{
|
|
12
|
+
cancelled: "cancelled";
|
|
13
|
+
confirmed: "confirmed";
|
|
14
|
+
pending: "pending";
|
|
15
|
+
rejected: "rejected";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const bookingSourceTypeSchema: z.ZodEnum<{
|
|
18
|
+
internal: "internal";
|
|
19
|
+
direct: "direct";
|
|
20
|
+
manual: "manual";
|
|
21
|
+
affiliate: "affiliate";
|
|
22
|
+
ota: "ota";
|
|
23
|
+
reseller: "reseller";
|
|
24
|
+
api_partner: "api_partner";
|
|
25
|
+
}>;
|
|
26
|
+
export declare const bookingParticipantTypeSchema: z.ZodEnum<{
|
|
27
|
+
staff: "staff";
|
|
28
|
+
other: "other";
|
|
29
|
+
traveler: "traveler";
|
|
30
|
+
booker: "booker";
|
|
31
|
+
contact: "contact";
|
|
32
|
+
occupant: "occupant";
|
|
33
|
+
}>;
|
|
34
|
+
export declare const bookingTravelerCategorySchema: z.ZodEnum<{
|
|
35
|
+
other: "other";
|
|
36
|
+
adult: "adult";
|
|
37
|
+
child: "child";
|
|
38
|
+
infant: "infant";
|
|
39
|
+
senior: "senior";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const bookingItemTypeSchema: z.ZodEnum<{
|
|
42
|
+
other: "other";
|
|
43
|
+
unit: "unit";
|
|
44
|
+
extra: "extra";
|
|
45
|
+
service: "service";
|
|
46
|
+
fee: "fee";
|
|
47
|
+
tax: "tax";
|
|
48
|
+
discount: "discount";
|
|
49
|
+
adjustment: "adjustment";
|
|
50
|
+
accommodation: "accommodation";
|
|
51
|
+
transport: "transport";
|
|
52
|
+
}>;
|
|
53
|
+
export declare const bookingItemStatusSchema: z.ZodEnum<{
|
|
54
|
+
cancelled: "cancelled";
|
|
55
|
+
draft: "draft";
|
|
56
|
+
on_hold: "on_hold";
|
|
57
|
+
confirmed: "confirmed";
|
|
58
|
+
expired: "expired";
|
|
59
|
+
fulfilled: "fulfilled";
|
|
60
|
+
}>;
|
|
61
|
+
export declare const bookingItemParticipantRoleSchema: z.ZodEnum<{
|
|
62
|
+
other: "other";
|
|
63
|
+
traveler: "traveler";
|
|
64
|
+
occupant: "occupant";
|
|
65
|
+
primary_contact: "primary_contact";
|
|
66
|
+
service_assignee: "service_assignee";
|
|
67
|
+
beneficiary: "beneficiary";
|
|
68
|
+
}>;
|
|
69
|
+
export declare const bookingAllocationTypeSchema: z.ZodEnum<{
|
|
70
|
+
unit: "unit";
|
|
71
|
+
pickup: "pickup";
|
|
72
|
+
resource: "resource";
|
|
73
|
+
}>;
|
|
74
|
+
export declare const bookingAllocationStatusSchema: z.ZodEnum<{
|
|
75
|
+
cancelled: "cancelled";
|
|
76
|
+
confirmed: "confirmed";
|
|
77
|
+
expired: "expired";
|
|
78
|
+
fulfilled: "fulfilled";
|
|
79
|
+
held: "held";
|
|
80
|
+
released: "released";
|
|
81
|
+
}>;
|
|
82
|
+
export declare const bookingFulfillmentTypeSchema: z.ZodEnum<{
|
|
83
|
+
other: "other";
|
|
84
|
+
voucher: "voucher";
|
|
85
|
+
ticket: "ticket";
|
|
86
|
+
pdf: "pdf";
|
|
87
|
+
qr_code: "qr_code";
|
|
88
|
+
barcode: "barcode";
|
|
89
|
+
mobile: "mobile";
|
|
90
|
+
}>;
|
|
91
|
+
export declare const bookingFulfillmentDeliveryChannelSchema: z.ZodEnum<{
|
|
92
|
+
other: "other";
|
|
93
|
+
download: "download";
|
|
94
|
+
email: "email";
|
|
95
|
+
api: "api";
|
|
96
|
+
wallet: "wallet";
|
|
97
|
+
}>;
|
|
98
|
+
export declare const bookingFulfillmentStatusSchema: z.ZodEnum<{
|
|
99
|
+
pending: "pending";
|
|
100
|
+
issued: "issued";
|
|
101
|
+
reissued: "reissued";
|
|
102
|
+
revoked: "revoked";
|
|
103
|
+
failed: "failed";
|
|
104
|
+
}>;
|
|
105
|
+
export declare const bookingRedemptionMethodSchema: z.ZodEnum<{
|
|
106
|
+
other: "other";
|
|
107
|
+
manual: "manual";
|
|
108
|
+
api: "api";
|
|
109
|
+
scan: "scan";
|
|
110
|
+
}>;
|
|
111
|
+
export declare const bookingDocumentTypeSchema: z.ZodEnum<{
|
|
112
|
+
visa: "visa";
|
|
113
|
+
other: "other";
|
|
114
|
+
insurance: "insurance";
|
|
115
|
+
health: "health";
|
|
116
|
+
passport_copy: "passport_copy";
|
|
117
|
+
}>;
|
|
118
|
+
//# sourceMappingURL=validation-shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-shared.d.ts","sourceRoot":"","sources":["../src/validation-shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,mBAAmB;;;;;;;;EAQ9B,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;EAK3C,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;EAQlC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;EAOvC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;EAA0D,CAAA;AAEpG,eAAO,MAAM,qBAAqB;;;;;;;;;;;EAWhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;EAOlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;EAO3C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;EAAyC,CAAA;AAEjF,eAAO,MAAM,6BAA6B;;;;;;;EAOxC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;EAQvC,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;EAMlD,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;EAMzC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;EAA6C,CAAA;AAEvF,eAAO,MAAM,yBAAyB;;;;;;EAMpC,CAAA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const bookingStatusSchema = z.enum([
|
|
3
|
+
"draft",
|
|
4
|
+
"on_hold",
|
|
5
|
+
"confirmed",
|
|
6
|
+
"in_progress",
|
|
7
|
+
"completed",
|
|
8
|
+
"expired",
|
|
9
|
+
"cancelled",
|
|
10
|
+
]);
|
|
11
|
+
export const supplierConfirmationStatusSchema = z.enum([
|
|
12
|
+
"pending",
|
|
13
|
+
"confirmed",
|
|
14
|
+
"rejected",
|
|
15
|
+
"cancelled",
|
|
16
|
+
]);
|
|
17
|
+
export const bookingSourceTypeSchema = z.enum([
|
|
18
|
+
"direct",
|
|
19
|
+
"manual",
|
|
20
|
+
"affiliate",
|
|
21
|
+
"ota",
|
|
22
|
+
"reseller",
|
|
23
|
+
"api_partner",
|
|
24
|
+
"internal",
|
|
25
|
+
]);
|
|
26
|
+
export const bookingParticipantTypeSchema = z.enum([
|
|
27
|
+
"traveler",
|
|
28
|
+
"booker",
|
|
29
|
+
"contact",
|
|
30
|
+
"occupant",
|
|
31
|
+
"staff",
|
|
32
|
+
"other",
|
|
33
|
+
]);
|
|
34
|
+
export const bookingTravelerCategorySchema = z.enum(["adult", "child", "infant", "senior", "other"]);
|
|
35
|
+
export const bookingItemTypeSchema = z.enum([
|
|
36
|
+
"unit",
|
|
37
|
+
"extra",
|
|
38
|
+
"service",
|
|
39
|
+
"fee",
|
|
40
|
+
"tax",
|
|
41
|
+
"discount",
|
|
42
|
+
"adjustment",
|
|
43
|
+
"accommodation",
|
|
44
|
+
"transport",
|
|
45
|
+
"other",
|
|
46
|
+
]);
|
|
47
|
+
export const bookingItemStatusSchema = z.enum([
|
|
48
|
+
"draft",
|
|
49
|
+
"on_hold",
|
|
50
|
+
"confirmed",
|
|
51
|
+
"cancelled",
|
|
52
|
+
"expired",
|
|
53
|
+
"fulfilled",
|
|
54
|
+
]);
|
|
55
|
+
export const bookingItemParticipantRoleSchema = z.enum([
|
|
56
|
+
"traveler",
|
|
57
|
+
"occupant",
|
|
58
|
+
"primary_contact",
|
|
59
|
+
"service_assignee",
|
|
60
|
+
"beneficiary",
|
|
61
|
+
"other",
|
|
62
|
+
]);
|
|
63
|
+
export const bookingAllocationTypeSchema = z.enum(["unit", "pickup", "resource"]);
|
|
64
|
+
export const bookingAllocationStatusSchema = z.enum([
|
|
65
|
+
"held",
|
|
66
|
+
"confirmed",
|
|
67
|
+
"released",
|
|
68
|
+
"expired",
|
|
69
|
+
"cancelled",
|
|
70
|
+
"fulfilled",
|
|
71
|
+
]);
|
|
72
|
+
export const bookingFulfillmentTypeSchema = z.enum([
|
|
73
|
+
"voucher",
|
|
74
|
+
"ticket",
|
|
75
|
+
"pdf",
|
|
76
|
+
"qr_code",
|
|
77
|
+
"barcode",
|
|
78
|
+
"mobile",
|
|
79
|
+
"other",
|
|
80
|
+
]);
|
|
81
|
+
export const bookingFulfillmentDeliveryChannelSchema = z.enum([
|
|
82
|
+
"download",
|
|
83
|
+
"email",
|
|
84
|
+
"api",
|
|
85
|
+
"wallet",
|
|
86
|
+
"other",
|
|
87
|
+
]);
|
|
88
|
+
export const bookingFulfillmentStatusSchema = z.enum([
|
|
89
|
+
"pending",
|
|
90
|
+
"issued",
|
|
91
|
+
"reissued",
|
|
92
|
+
"revoked",
|
|
93
|
+
"failed",
|
|
94
|
+
]);
|
|
95
|
+
export const bookingRedemptionMethodSchema = z.enum(["manual", "scan", "api", "other"]);
|
|
96
|
+
export const bookingDocumentTypeSchema = z.enum([
|
|
97
|
+
"visa",
|
|
98
|
+
"insurance",
|
|
99
|
+
"health",
|
|
100
|
+
"passport_copy",
|
|
101
|
+
"other",
|
|
102
|
+
]);
|
package/dist/validation.d.ts
CHANGED
|
@@ -640,4 +640,6 @@ export declare const insertBookingDocumentSchema: z.ZodObject<{
|
|
|
640
640
|
expiresAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
641
641
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
642
642
|
}, z.core.$strip>;
|
|
643
|
+
export * from "./validation-public.js";
|
|
644
|
+
export * from "./validation-shared.js";
|
|
643
645
|
//# sourceMappingURL=validation.d.ts.map
|
package/dist/validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiDvB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAoB,CAAA;AACpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAA;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW5B,CAAA;AAEJ,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;iBAKjC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;iBAO/B,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBnC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB7B,CAAA;AAEJ,eAAO,MAAM,uBAAuB;;;iBAYhC,CAAA;AAEJ,eAAO,MAAM,oBAAoB;;iBAE/B,CAAA;AAEF,eAAO,MAAM,mBAAmB;;iBAE9B,CAAA;AAEF,eAAO,MAAM,mBAAmB;;iBAE9B,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;iBAa9C,CAAA;AAmBF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAA;AAC5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAA;AAatE,eAAO,MAAM,qBAAqB;;;;;;;iBAAsB,CAAA;AACxD,eAAO,MAAM,qBAAqB;;;;;;;iBAAgC,CAAA;AAIlE,eAAO,MAAM,oCAAoC;;;;;;;iBAO/C,CAAA;AA6BF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAA;AAC5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAA;AAEtE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;iBAcxC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0C,CAAA;AAgBpF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA+B,CAAA;AAC1E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyC,CAAA;AAIpF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAQxC,CAAA;AAIF,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAI7C,CAAA;AAcF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;iBAA2B,CAAA;AAClE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAErC,CAAA;AAIF,eAAO,MAAM,uBAAuB;;iBAElC,CAAA;AAIF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;iBAQtC,CAAA;AAEF,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA"}
|
package/dist/validation.js
CHANGED
|
@@ -1,93 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
"draft",
|
|
4
|
-
"on_hold",
|
|
5
|
-
"confirmed",
|
|
6
|
-
"in_progress",
|
|
7
|
-
"completed",
|
|
8
|
-
"expired",
|
|
9
|
-
"cancelled",
|
|
10
|
-
]);
|
|
11
|
-
const supplierConfirmationStatusSchema = z.enum(["pending", "confirmed", "rejected", "cancelled"]);
|
|
12
|
-
const bookingSourceTypeSchema = z.enum([
|
|
13
|
-
"direct",
|
|
14
|
-
"manual",
|
|
15
|
-
"affiliate",
|
|
16
|
-
"ota",
|
|
17
|
-
"reseller",
|
|
18
|
-
"api_partner",
|
|
19
|
-
"internal",
|
|
20
|
-
]);
|
|
21
|
-
const bookingParticipantTypeSchema = z.enum([
|
|
22
|
-
"traveler",
|
|
23
|
-
"booker",
|
|
24
|
-
"contact",
|
|
25
|
-
"occupant",
|
|
26
|
-
"staff",
|
|
27
|
-
"other",
|
|
28
|
-
]);
|
|
29
|
-
const bookingTravelerCategorySchema = z.enum(["adult", "child", "infant", "senior", "other"]);
|
|
30
|
-
const bookingItemTypeSchema = z.enum([
|
|
31
|
-
"unit",
|
|
32
|
-
"extra",
|
|
33
|
-
"service",
|
|
34
|
-
"fee",
|
|
35
|
-
"tax",
|
|
36
|
-
"discount",
|
|
37
|
-
"adjustment",
|
|
38
|
-
"accommodation",
|
|
39
|
-
"transport",
|
|
40
|
-
"other",
|
|
41
|
-
]);
|
|
42
|
-
const bookingItemStatusSchema = z.enum([
|
|
43
|
-
"draft",
|
|
44
|
-
"on_hold",
|
|
45
|
-
"confirmed",
|
|
46
|
-
"cancelled",
|
|
47
|
-
"expired",
|
|
48
|
-
"fulfilled",
|
|
49
|
-
]);
|
|
50
|
-
const bookingItemParticipantRoleSchema = z.enum([
|
|
51
|
-
"traveler",
|
|
52
|
-
"occupant",
|
|
53
|
-
"primary_contact",
|
|
54
|
-
"service_assignee",
|
|
55
|
-
"beneficiary",
|
|
56
|
-
"other",
|
|
57
|
-
]);
|
|
58
|
-
const bookingAllocationTypeSchema = z.enum(["unit", "pickup", "resource"]);
|
|
59
|
-
const bookingAllocationStatusSchema = z.enum([
|
|
60
|
-
"held",
|
|
61
|
-
"confirmed",
|
|
62
|
-
"released",
|
|
63
|
-
"expired",
|
|
64
|
-
"cancelled",
|
|
65
|
-
"fulfilled",
|
|
66
|
-
]);
|
|
67
|
-
const bookingFulfillmentTypeSchema = z.enum([
|
|
68
|
-
"voucher",
|
|
69
|
-
"ticket",
|
|
70
|
-
"pdf",
|
|
71
|
-
"qr_code",
|
|
72
|
-
"barcode",
|
|
73
|
-
"mobile",
|
|
74
|
-
"other",
|
|
75
|
-
]);
|
|
76
|
-
const bookingFulfillmentDeliveryChannelSchema = z.enum([
|
|
77
|
-
"download",
|
|
78
|
-
"email",
|
|
79
|
-
"api",
|
|
80
|
-
"wallet",
|
|
81
|
-
"other",
|
|
82
|
-
]);
|
|
83
|
-
const bookingFulfillmentStatusSchema = z.enum([
|
|
84
|
-
"pending",
|
|
85
|
-
"issued",
|
|
86
|
-
"reissued",
|
|
87
|
-
"revoked",
|
|
88
|
-
"failed",
|
|
89
|
-
]);
|
|
90
|
-
const bookingRedemptionMethodSchema = z.enum(["manual", "scan", "api", "other"]);
|
|
2
|
+
import { bookingAllocationStatusSchema, bookingAllocationTypeSchema, bookingDocumentTypeSchema, bookingFulfillmentDeliveryChannelSchema, bookingFulfillmentStatusSchema, bookingFulfillmentTypeSchema, bookingItemParticipantRoleSchema, bookingItemStatusSchema, bookingItemTypeSchema, bookingParticipantTypeSchema, bookingRedemptionMethodSchema, bookingSourceTypeSchema, bookingStatusSchema, bookingTravelerCategorySchema, supplierConfirmationStatusSchema, } from "./validation-shared.js";
|
|
91
3
|
// ---------- bookings ----------
|
|
92
4
|
const bookingCoreSchema = z.object({
|
|
93
5
|
bookingNumber: z.string().min(1).max(50),
|
|
@@ -358,7 +270,6 @@ export const insertBookingNoteSchema = z.object({
|
|
|
358
270
|
content: z.string().min(1).max(10000),
|
|
359
271
|
});
|
|
360
272
|
// ---------- documents ----------
|
|
361
|
-
const bookingDocumentTypeSchema = z.enum(["visa", "insurance", "health", "passport_copy", "other"]);
|
|
362
273
|
export const insertBookingDocumentSchema = z.object({
|
|
363
274
|
participantId: z.string().optional().nullable(),
|
|
364
275
|
passengerId: z.string().optional().nullable(),
|
|
@@ -368,3 +279,5 @@ export const insertBookingDocumentSchema = z.object({
|
|
|
368
279
|
expiresAt: z.string().optional().nullable(),
|
|
369
280
|
notes: z.string().optional().nullable(),
|
|
370
281
|
});
|
|
282
|
+
export * from "./validation-public.js";
|
|
283
|
+
export * from "./validation-shared.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/bookings",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -28,6 +28,14 @@
|
|
|
28
28
|
"types": "./dist/routes.d.ts",
|
|
29
29
|
"import": "./dist/routes.js"
|
|
30
30
|
},
|
|
31
|
+
"./public-routes": {
|
|
32
|
+
"types": "./dist/routes-public.d.ts",
|
|
33
|
+
"import": "./dist/routes-public.js"
|
|
34
|
+
},
|
|
35
|
+
"./public-validation": {
|
|
36
|
+
"types": "./dist/validation-public.d.ts",
|
|
37
|
+
"import": "./dist/validation-public.js"
|
|
38
|
+
},
|
|
31
39
|
"./schema/travel-details": {
|
|
32
40
|
"types": "./dist/schema/travel-details.d.ts",
|
|
33
41
|
"import": "./dist/schema/travel-details.js"
|
|
@@ -41,13 +49,14 @@
|
|
|
41
49
|
"drizzle-orm": "^0.45.2",
|
|
42
50
|
"hono": "^4.12.10",
|
|
43
51
|
"zod": "^4.3.6",
|
|
44
|
-
"@voyantjs/core": "0.
|
|
45
|
-
"@voyantjs/db": "0.
|
|
46
|
-
"@voyantjs/hono": "0.
|
|
47
|
-
"@voyantjs/utils": "0.
|
|
52
|
+
"@voyantjs/core": "0.3.1",
|
|
53
|
+
"@voyantjs/db": "0.3.1",
|
|
54
|
+
"@voyantjs/hono": "0.3.1",
|
|
55
|
+
"@voyantjs/utils": "0.3.1"
|
|
48
56
|
},
|
|
49
57
|
"devDependencies": {
|
|
50
58
|
"typescript": "^6.0.2",
|
|
59
|
+
"@voyantjs/products": "0.3.1",
|
|
51
60
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
52
61
|
},
|
|
53
62
|
"files": [
|