@voyantjs/bookings 0.4.5 → 0.6.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.
- package/dist/extensions/suppliers.d.ts.map +1 -1
- package/dist/extensions/suppliers.js +3 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -8
- package/dist/route-runtime.d.ts +8 -0
- package/dist/route-runtime.d.ts.map +1 -0
- package/dist/route-runtime.js +17 -0
- package/dist/routes-groups.d.ts +354 -0
- package/dist/routes-groups.d.ts.map +1 -0
- package/dist/routes-groups.js +62 -0
- package/dist/routes-public.d.ts +5 -5
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +8 -7
- package/dist/routes-shared.d.ts +2 -0
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes.d.ts +413 -257
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +100 -92
- package/dist/schema-core.d.ts +1 -1
- package/dist/schema-groups.d.ts +261 -0
- package/dist/schema-groups.d.ts.map +1 -0
- package/dist/schema-groups.js +34 -0
- package/dist/schema-items.d.ts +2 -2
- package/dist/schema-relations.d.ts +8 -0
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +15 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -0
- package/dist/service-groups.d.ts +69 -0
- package/dist/service-groups.d.ts.map +1 -0
- package/dist/service-groups.js +199 -0
- package/dist/service-public.d.ts +14 -14
- package/dist/service.d.ts +22 -22
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +3 -0
- package/dist/validation-public.d.ts +11 -11
- package/dist/validation-shared.d.ts +3 -3
- package/dist/validation.d.ts +59 -12
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +24 -0
- package/package.json +6 -6
package/dist/routes.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { publicBookingRoutes } from "./routes-public.js";
|
|
2
|
-
import {
|
|
3
|
-
export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
2
|
+
import type { Env } from "./routes-shared.js";
|
|
3
|
+
export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
|
|
4
4
|
"/": {
|
|
5
5
|
$get: {
|
|
6
6
|
input: {};
|
|
@@ -11,7 +11,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
11
11
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
12
12
|
personId: string | null;
|
|
13
13
|
organizationId: string | null;
|
|
14
|
-
sourceType: "internal" | "
|
|
14
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
15
15
|
externalBookingRef: string | null;
|
|
16
16
|
communicationLanguage: string | null;
|
|
17
17
|
sellCurrency: string;
|
|
@@ -77,7 +77,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
77
77
|
id: string;
|
|
78
78
|
title: string;
|
|
79
79
|
description: string | null;
|
|
80
|
-
itemType: "
|
|
80
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
81
81
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
82
82
|
serviceDate: string | null;
|
|
83
83
|
startsAt: string | null;
|
|
@@ -149,7 +149,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
149
149
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
150
150
|
personId: string | null;
|
|
151
151
|
organizationId: string | null;
|
|
152
|
-
sourceType: "internal" | "
|
|
152
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
153
153
|
externalBookingRef: string | null;
|
|
154
154
|
communicationLanguage: string | null;
|
|
155
155
|
sellCurrency: string;
|
|
@@ -192,7 +192,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
192
192
|
endDate: string | null;
|
|
193
193
|
bookingNumber: string;
|
|
194
194
|
personId: string | null;
|
|
195
|
-
sourceType: "internal" | "
|
|
195
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
196
196
|
externalBookingRef: string | null;
|
|
197
197
|
communicationLanguage: string | null;
|
|
198
198
|
sellCurrency: string;
|
|
@@ -259,7 +259,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
259
259
|
endDate: string | null;
|
|
260
260
|
bookingNumber: string;
|
|
261
261
|
personId: string | null;
|
|
262
|
-
sourceType: "internal" | "
|
|
262
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
263
263
|
externalBookingRef: string | null;
|
|
264
264
|
communicationLanguage: string | null;
|
|
265
265
|
sellCurrency: string;
|
|
@@ -382,42 +382,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
382
382
|
} & {
|
|
383
383
|
"/": {
|
|
384
384
|
$post: {
|
|
385
|
-
input: {};
|
|
386
|
-
output: {
|
|
387
|
-
error: string;
|
|
388
|
-
details: {
|
|
389
|
-
formErrors: string[];
|
|
390
|
-
fieldErrors: {
|
|
391
|
-
bookingNumber?: string[] | undefined;
|
|
392
|
-
status?: string[] | undefined;
|
|
393
|
-
sellCurrency?: string[] | undefined;
|
|
394
|
-
sourceType?: string[] | undefined;
|
|
395
|
-
personId?: string[] | undefined;
|
|
396
|
-
organizationId?: string[] | undefined;
|
|
397
|
-
externalBookingRef?: string[] | undefined;
|
|
398
|
-
communicationLanguage?: string[] | undefined;
|
|
399
|
-
baseCurrency?: string[] | undefined;
|
|
400
|
-
sellAmountCents?: string[] | undefined;
|
|
401
|
-
baseSellAmountCents?: string[] | undefined;
|
|
402
|
-
costAmountCents?: string[] | undefined;
|
|
403
|
-
baseCostAmountCents?: string[] | undefined;
|
|
404
|
-
marginPercent?: string[] | undefined;
|
|
405
|
-
startDate?: string[] | undefined;
|
|
406
|
-
endDate?: string[] | undefined;
|
|
407
|
-
pax?: string[] | undefined;
|
|
408
|
-
internalNotes?: string[] | undefined;
|
|
409
|
-
holdExpiresAt?: string[] | undefined;
|
|
410
|
-
confirmedAt?: string[] | undefined;
|
|
411
|
-
expiredAt?: string[] | undefined;
|
|
412
|
-
cancelledAt?: string[] | undefined;
|
|
413
|
-
completedAt?: string[] | undefined;
|
|
414
|
-
redeemedAt?: string[] | undefined;
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
outputFormat: "json";
|
|
419
|
-
status: 400;
|
|
420
|
-
} | {
|
|
421
385
|
input: {};
|
|
422
386
|
output: {
|
|
423
387
|
data: {
|
|
@@ -430,7 +394,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
430
394
|
endDate: string | null;
|
|
431
395
|
bookingNumber: string;
|
|
432
396
|
personId: string | null;
|
|
433
|
-
sourceType: "internal" | "
|
|
397
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
434
398
|
externalBookingRef: string | null;
|
|
435
399
|
communicationLanguage: string | null;
|
|
436
400
|
sellCurrency: string;
|
|
@@ -452,6 +416,14 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
452
416
|
};
|
|
453
417
|
outputFormat: "json";
|
|
454
418
|
status: 201;
|
|
419
|
+
} | {
|
|
420
|
+
input: {};
|
|
421
|
+
output: {
|
|
422
|
+
error: string;
|
|
423
|
+
details: undefined;
|
|
424
|
+
};
|
|
425
|
+
outputFormat: "json";
|
|
426
|
+
status: 400;
|
|
455
427
|
};
|
|
456
428
|
};
|
|
457
429
|
} & {
|
|
@@ -480,7 +452,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
480
452
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
481
453
|
personId: string | null;
|
|
482
454
|
organizationId: string | null;
|
|
483
|
-
sourceType: "internal" | "
|
|
455
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
484
456
|
externalBookingRef: string | null;
|
|
485
457
|
communicationLanguage: string | null;
|
|
486
458
|
sellCurrency: string;
|
|
@@ -619,7 +591,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
619
591
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
620
592
|
personId: string | null;
|
|
621
593
|
organizationId: string | null;
|
|
622
|
-
sourceType: "internal" | "
|
|
594
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
623
595
|
externalBookingRef: string | null;
|
|
624
596
|
communicationLanguage: string | null;
|
|
625
597
|
sellCurrency: string;
|
|
@@ -695,7 +667,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
695
667
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
696
668
|
personId: string | null;
|
|
697
669
|
organizationId: string | null;
|
|
698
|
-
sourceType: "internal" | "
|
|
670
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
699
671
|
externalBookingRef: string | null;
|
|
700
672
|
communicationLanguage: string | null;
|
|
701
673
|
sellCurrency: string;
|
|
@@ -771,7 +743,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
771
743
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
772
744
|
personId: string | null;
|
|
773
745
|
organizationId: string | null;
|
|
774
|
-
sourceType: "internal" | "
|
|
746
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
775
747
|
externalBookingRef: string | null;
|
|
776
748
|
communicationLanguage: string | null;
|
|
777
749
|
sellCurrency: string;
|
|
@@ -860,7 +832,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
860
832
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
861
833
|
personId: string | null;
|
|
862
834
|
organizationId: string | null;
|
|
863
|
-
sourceType: "internal" | "
|
|
835
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
864
836
|
externalBookingRef: string | null;
|
|
865
837
|
communicationLanguage: string | null;
|
|
866
838
|
sellCurrency: string;
|
|
@@ -918,7 +890,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
918
890
|
pricingCategoryId: string | null;
|
|
919
891
|
availabilitySlotId: string | null;
|
|
920
892
|
quantity: number;
|
|
921
|
-
allocationType: "
|
|
893
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
922
894
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
923
895
|
holdExpiresAt: string | null;
|
|
924
896
|
confirmedAt: string | null;
|
|
@@ -976,73 +948,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
976
948
|
participantId: string;
|
|
977
949
|
};
|
|
978
950
|
};
|
|
979
|
-
output: {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
outputFormat: "json";
|
|
983
|
-
status: 401;
|
|
984
|
-
} | {
|
|
985
|
-
input: {
|
|
986
|
-
param: {
|
|
987
|
-
id: string;
|
|
988
|
-
} & {
|
|
989
|
-
participantId: string;
|
|
990
|
-
};
|
|
991
|
-
};
|
|
992
|
-
output: {
|
|
993
|
-
error: string;
|
|
994
|
-
};
|
|
995
|
-
outputFormat: "json";
|
|
996
|
-
status: 403;
|
|
997
|
-
} | {
|
|
998
|
-
input: {
|
|
999
|
-
param: {
|
|
1000
|
-
id: string;
|
|
1001
|
-
} & {
|
|
1002
|
-
participantId: string;
|
|
1003
|
-
};
|
|
1004
|
-
};
|
|
1005
|
-
output: {
|
|
1006
|
-
error: string;
|
|
1007
|
-
};
|
|
1008
|
-
outputFormat: "json";
|
|
1009
|
-
status: 500;
|
|
1010
|
-
} | {
|
|
1011
|
-
input: {
|
|
1012
|
-
param: {
|
|
1013
|
-
id: string;
|
|
1014
|
-
} & {
|
|
1015
|
-
participantId: string;
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
output: {
|
|
1019
|
-
error: string;
|
|
1020
|
-
};
|
|
1021
|
-
outputFormat: "json";
|
|
1022
|
-
status: 404;
|
|
1023
|
-
} | {
|
|
1024
|
-
input: {
|
|
1025
|
-
param: {
|
|
1026
|
-
id: string;
|
|
1027
|
-
} & {
|
|
1028
|
-
participantId: string;
|
|
1029
|
-
};
|
|
1030
|
-
};
|
|
1031
|
-
output: {
|
|
1032
|
-
data: {
|
|
1033
|
-
participantId: string;
|
|
1034
|
-
nationality: string | null;
|
|
1035
|
-
passportNumber: string | null;
|
|
1036
|
-
passportExpiry: string | null;
|
|
1037
|
-
dateOfBirth: string | null;
|
|
1038
|
-
dietaryRequirements: string | null;
|
|
1039
|
-
isLeadTraveler: boolean;
|
|
1040
|
-
createdAt: string;
|
|
1041
|
-
updatedAt: string;
|
|
1042
|
-
};
|
|
1043
|
-
};
|
|
1044
|
-
outputFormat: "json";
|
|
1045
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
951
|
+
output: {};
|
|
952
|
+
outputFormat: string;
|
|
953
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
1046
954
|
};
|
|
1047
955
|
};
|
|
1048
956
|
} & {
|
|
@@ -1098,73 +1006,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1098
1006
|
participantId: string;
|
|
1099
1007
|
};
|
|
1100
1008
|
};
|
|
1101
|
-
output: {
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
outputFormat: "json";
|
|
1105
|
-
status: 401;
|
|
1106
|
-
} | {
|
|
1107
|
-
input: {
|
|
1108
|
-
param: {
|
|
1109
|
-
id: string;
|
|
1110
|
-
} & {
|
|
1111
|
-
participantId: string;
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
output: {
|
|
1115
|
-
error: string;
|
|
1116
|
-
};
|
|
1117
|
-
outputFormat: "json";
|
|
1118
|
-
status: 403;
|
|
1119
|
-
} | {
|
|
1120
|
-
input: {
|
|
1121
|
-
param: {
|
|
1122
|
-
id: string;
|
|
1123
|
-
} & {
|
|
1124
|
-
participantId: string;
|
|
1125
|
-
};
|
|
1126
|
-
};
|
|
1127
|
-
output: {
|
|
1128
|
-
error: string;
|
|
1129
|
-
};
|
|
1130
|
-
outputFormat: "json";
|
|
1131
|
-
status: 500;
|
|
1132
|
-
} | {
|
|
1133
|
-
input: {
|
|
1134
|
-
param: {
|
|
1135
|
-
id: string;
|
|
1136
|
-
} & {
|
|
1137
|
-
participantId: string;
|
|
1138
|
-
};
|
|
1139
|
-
};
|
|
1140
|
-
output: {
|
|
1141
|
-
error: string;
|
|
1142
|
-
};
|
|
1143
|
-
outputFormat: "json";
|
|
1144
|
-
status: 404;
|
|
1145
|
-
} | {
|
|
1146
|
-
input: {
|
|
1147
|
-
param: {
|
|
1148
|
-
id: string;
|
|
1149
|
-
} & {
|
|
1150
|
-
participantId: string;
|
|
1151
|
-
};
|
|
1152
|
-
};
|
|
1153
|
-
output: {
|
|
1154
|
-
data: {
|
|
1155
|
-
participantId: string;
|
|
1156
|
-
nationality: string | null;
|
|
1157
|
-
passportNumber: string | null;
|
|
1158
|
-
passportExpiry: string | null;
|
|
1159
|
-
dateOfBirth: string | null;
|
|
1160
|
-
dietaryRequirements: string | null;
|
|
1161
|
-
isLeadTraveler: boolean;
|
|
1162
|
-
createdAt: string;
|
|
1163
|
-
updatedAt: string;
|
|
1164
|
-
};
|
|
1165
|
-
};
|
|
1166
|
-
outputFormat: "json";
|
|
1167
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1009
|
+
output: {};
|
|
1010
|
+
outputFormat: string;
|
|
1011
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
1168
1012
|
};
|
|
1169
1013
|
};
|
|
1170
1014
|
} & {
|
|
@@ -1224,63 +1068,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1224
1068
|
participantId: string;
|
|
1225
1069
|
};
|
|
1226
1070
|
};
|
|
1227
|
-
output: {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
outputFormat: "json";
|
|
1231
|
-
status: 401;
|
|
1232
|
-
} | {
|
|
1233
|
-
input: {
|
|
1234
|
-
param: {
|
|
1235
|
-
id: string;
|
|
1236
|
-
} & {
|
|
1237
|
-
participantId: string;
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
output: {
|
|
1241
|
-
error: string;
|
|
1242
|
-
};
|
|
1243
|
-
outputFormat: "json";
|
|
1244
|
-
status: 403;
|
|
1245
|
-
} | {
|
|
1246
|
-
input: {
|
|
1247
|
-
param: {
|
|
1248
|
-
id: string;
|
|
1249
|
-
} & {
|
|
1250
|
-
participantId: string;
|
|
1251
|
-
};
|
|
1252
|
-
};
|
|
1253
|
-
output: {
|
|
1254
|
-
error: string;
|
|
1255
|
-
};
|
|
1256
|
-
outputFormat: "json";
|
|
1257
|
-
status: 500;
|
|
1258
|
-
} | {
|
|
1259
|
-
input: {
|
|
1260
|
-
param: {
|
|
1261
|
-
id: string;
|
|
1262
|
-
} & {
|
|
1263
|
-
participantId: string;
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
output: {
|
|
1267
|
-
error: string;
|
|
1268
|
-
};
|
|
1269
|
-
outputFormat: "json";
|
|
1270
|
-
status: 404;
|
|
1271
|
-
} | {
|
|
1272
|
-
input: {
|
|
1273
|
-
param: {
|
|
1274
|
-
id: string;
|
|
1275
|
-
} & {
|
|
1276
|
-
participantId: string;
|
|
1277
|
-
};
|
|
1278
|
-
};
|
|
1279
|
-
output: {
|
|
1280
|
-
success: true;
|
|
1281
|
-
};
|
|
1282
|
-
outputFormat: "json";
|
|
1283
|
-
status: 200;
|
|
1071
|
+
output: {};
|
|
1072
|
+
outputFormat: string;
|
|
1073
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
1284
1074
|
};
|
|
1285
1075
|
};
|
|
1286
1076
|
} & {
|
|
@@ -1461,7 +1251,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1461
1251
|
bookingId: string;
|
|
1462
1252
|
title: string;
|
|
1463
1253
|
description: string | null;
|
|
1464
|
-
itemType: "
|
|
1254
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1465
1255
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
1466
1256
|
serviceDate: string | null;
|
|
1467
1257
|
startsAt: string | null;
|
|
@@ -1524,11 +1314,12 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1524
1314
|
metadata: {
|
|
1525
1315
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1526
1316
|
} | null;
|
|
1317
|
+
description: string | null;
|
|
1527
1318
|
sellCurrency: string;
|
|
1528
1319
|
bookingId: string;
|
|
1320
|
+
optionUnitId: string | null;
|
|
1529
1321
|
title: string;
|
|
1530
|
-
|
|
1531
|
-
itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1322
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1532
1323
|
serviceDate: string | null;
|
|
1533
1324
|
quantity: number;
|
|
1534
1325
|
unitSellAmountCents: number | null;
|
|
@@ -1536,7 +1327,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1536
1327
|
costCurrency: string | null;
|
|
1537
1328
|
unitCostAmountCents: number | null;
|
|
1538
1329
|
totalCostAmountCents: number | null;
|
|
1539
|
-
optionUnitId: string | null;
|
|
1540
1330
|
pricingCategoryId: string | null;
|
|
1541
1331
|
sourceSnapshotId: string | null;
|
|
1542
1332
|
sourceOfferId: string | null;
|
|
@@ -1575,7 +1365,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1575
1365
|
bookingId: string;
|
|
1576
1366
|
title: string;
|
|
1577
1367
|
description: string | null;
|
|
1578
|
-
itemType: "
|
|
1368
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1579
1369
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
1580
1370
|
serviceDate: string | null;
|
|
1581
1371
|
startsAt: string | null;
|
|
@@ -2010,10 +1800,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2010
1800
|
data: {
|
|
2011
1801
|
id: string;
|
|
2012
1802
|
createdAt: string;
|
|
2013
|
-
method: "other" | "manual" | "api" | "scan";
|
|
2014
1803
|
metadata: {
|
|
2015
1804
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
2016
1805
|
} | null;
|
|
1806
|
+
method: "other" | "manual" | "api" | "scan";
|
|
2017
1807
|
redeemedAt: string;
|
|
2018
1808
|
bookingId: string;
|
|
2019
1809
|
participantId: string | null;
|
|
@@ -2052,7 +1842,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2052
1842
|
};
|
|
2053
1843
|
};
|
|
2054
1844
|
} & {
|
|
2055
|
-
"/:id/
|
|
1845
|
+
"/:id/group": {
|
|
2056
1846
|
$get: {
|
|
2057
1847
|
input: {
|
|
2058
1848
|
param: {
|
|
@@ -2062,11 +1852,24 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2062
1852
|
output: {
|
|
2063
1853
|
data: {
|
|
2064
1854
|
id: string;
|
|
2065
|
-
|
|
2066
|
-
authorId: string;
|
|
2067
|
-
content: string;
|
|
1855
|
+
productId: string | null;
|
|
2068
1856
|
createdAt: string;
|
|
2069
|
-
|
|
1857
|
+
updatedAt: string;
|
|
1858
|
+
metadata: {
|
|
1859
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1860
|
+
} | null;
|
|
1861
|
+
kind: "other" | "shared_room";
|
|
1862
|
+
label: string;
|
|
1863
|
+
primaryBookingId: string | null;
|
|
1864
|
+
optionUnitId: string | null;
|
|
1865
|
+
membership: {
|
|
1866
|
+
id: string;
|
|
1867
|
+
createdAt: string;
|
|
1868
|
+
role: "primary" | "shared";
|
|
1869
|
+
bookingId: string;
|
|
1870
|
+
groupId: string;
|
|
1871
|
+
};
|
|
1872
|
+
} | null;
|
|
2070
1873
|
};
|
|
2071
1874
|
outputFormat: "json";
|
|
2072
1875
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -2074,18 +1877,28 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2074
1877
|
};
|
|
2075
1878
|
} & {
|
|
2076
1879
|
"/:id/notes": {
|
|
2077
|
-
$
|
|
1880
|
+
$get: {
|
|
2078
1881
|
input: {
|
|
2079
1882
|
param: {
|
|
2080
1883
|
id: string;
|
|
2081
1884
|
};
|
|
2082
1885
|
};
|
|
2083
1886
|
output: {
|
|
2084
|
-
|
|
1887
|
+
data: {
|
|
1888
|
+
id: string;
|
|
1889
|
+
bookingId: string;
|
|
1890
|
+
authorId: string;
|
|
1891
|
+
content: string;
|
|
1892
|
+
createdAt: string;
|
|
1893
|
+
}[];
|
|
2085
1894
|
};
|
|
2086
1895
|
outputFormat: "json";
|
|
2087
|
-
status:
|
|
2088
|
-
}
|
|
1896
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
} & {
|
|
1900
|
+
"/:id/notes": {
|
|
1901
|
+
$post: {
|
|
2089
1902
|
input: {
|
|
2090
1903
|
param: {
|
|
2091
1904
|
id: string;
|
|
@@ -2206,7 +2019,350 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2206
2019
|
status: 200;
|
|
2207
2020
|
};
|
|
2208
2021
|
};
|
|
2209
|
-
}
|
|
2022
|
+
}) | import("hono/types").MergeSchemaPath<{
|
|
2023
|
+
"/": {
|
|
2024
|
+
$get: {
|
|
2025
|
+
input: {};
|
|
2026
|
+
output: {
|
|
2027
|
+
data: {
|
|
2028
|
+
id: string;
|
|
2029
|
+
productId: string | null;
|
|
2030
|
+
createdAt: string;
|
|
2031
|
+
updatedAt: string;
|
|
2032
|
+
metadata: {
|
|
2033
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2034
|
+
} | null;
|
|
2035
|
+
kind: "other" | "shared_room";
|
|
2036
|
+
label: string;
|
|
2037
|
+
primaryBookingId: string | null;
|
|
2038
|
+
optionUnitId: string | null;
|
|
2039
|
+
}[];
|
|
2040
|
+
total: number;
|
|
2041
|
+
limit: number;
|
|
2042
|
+
offset: number;
|
|
2043
|
+
};
|
|
2044
|
+
outputFormat: "json";
|
|
2045
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
} & {
|
|
2049
|
+
"/": {
|
|
2050
|
+
$post: {
|
|
2051
|
+
input: {};
|
|
2052
|
+
output: {
|
|
2053
|
+
data: {
|
|
2054
|
+
id: string;
|
|
2055
|
+
productId: string | null;
|
|
2056
|
+
createdAt: string;
|
|
2057
|
+
updatedAt: string;
|
|
2058
|
+
metadata: {
|
|
2059
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2060
|
+
} | null;
|
|
2061
|
+
kind: "other" | "shared_room";
|
|
2062
|
+
label: string;
|
|
2063
|
+
primaryBookingId: string | null;
|
|
2064
|
+
optionUnitId: string | null;
|
|
2065
|
+
};
|
|
2066
|
+
};
|
|
2067
|
+
outputFormat: "json";
|
|
2068
|
+
status: 201;
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
} & {
|
|
2072
|
+
"/:id": {
|
|
2073
|
+
$get: {
|
|
2074
|
+
input: {
|
|
2075
|
+
param: {
|
|
2076
|
+
id: string;
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
2079
|
+
output: {
|
|
2080
|
+
error: string;
|
|
2081
|
+
};
|
|
2082
|
+
outputFormat: "json";
|
|
2083
|
+
status: 404;
|
|
2084
|
+
} | {
|
|
2085
|
+
input: {
|
|
2086
|
+
param: {
|
|
2087
|
+
id: string;
|
|
2088
|
+
};
|
|
2089
|
+
};
|
|
2090
|
+
output: {
|
|
2091
|
+
data: {
|
|
2092
|
+
members: {
|
|
2093
|
+
id: string;
|
|
2094
|
+
createdAt: string;
|
|
2095
|
+
role: "primary" | "shared";
|
|
2096
|
+
bookingId: string;
|
|
2097
|
+
groupId: string;
|
|
2098
|
+
booking: {
|
|
2099
|
+
id: string;
|
|
2100
|
+
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
2101
|
+
createdAt: string;
|
|
2102
|
+
updatedAt: string;
|
|
2103
|
+
organizationId: string | null;
|
|
2104
|
+
startDate: string | null;
|
|
2105
|
+
endDate: string | null;
|
|
2106
|
+
bookingNumber: string;
|
|
2107
|
+
personId: string | null;
|
|
2108
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
2109
|
+
externalBookingRef: string | null;
|
|
2110
|
+
communicationLanguage: string | null;
|
|
2111
|
+
sellCurrency: string;
|
|
2112
|
+
baseCurrency: string | null;
|
|
2113
|
+
sellAmountCents: number | null;
|
|
2114
|
+
baseSellAmountCents: number | null;
|
|
2115
|
+
costAmountCents: number | null;
|
|
2116
|
+
baseCostAmountCents: number | null;
|
|
2117
|
+
marginPercent: number | null;
|
|
2118
|
+
pax: number | null;
|
|
2119
|
+
internalNotes: string | null;
|
|
2120
|
+
holdExpiresAt: string | null;
|
|
2121
|
+
confirmedAt: string | null;
|
|
2122
|
+
expiredAt: string | null;
|
|
2123
|
+
cancelledAt: string | null;
|
|
2124
|
+
completedAt: string | null;
|
|
2125
|
+
redeemedAt: string | null;
|
|
2126
|
+
} | null;
|
|
2127
|
+
}[];
|
|
2128
|
+
id: string;
|
|
2129
|
+
productId: string | null;
|
|
2130
|
+
createdAt: string;
|
|
2131
|
+
updatedAt: string;
|
|
2132
|
+
metadata: {
|
|
2133
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2134
|
+
} | null;
|
|
2135
|
+
kind: "other" | "shared_room";
|
|
2136
|
+
label: string;
|
|
2137
|
+
primaryBookingId: string | null;
|
|
2138
|
+
optionUnitId: string | null;
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
outputFormat: "json";
|
|
2142
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
} & {
|
|
2146
|
+
"/:id": {
|
|
2147
|
+
$patch: {
|
|
2148
|
+
input: {
|
|
2149
|
+
param: {
|
|
2150
|
+
id: string;
|
|
2151
|
+
};
|
|
2152
|
+
};
|
|
2153
|
+
output: {
|
|
2154
|
+
error: string;
|
|
2155
|
+
};
|
|
2156
|
+
outputFormat: "json";
|
|
2157
|
+
status: 404;
|
|
2158
|
+
} | {
|
|
2159
|
+
input: {
|
|
2160
|
+
param: {
|
|
2161
|
+
id: string;
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
2164
|
+
output: {
|
|
2165
|
+
data: {
|
|
2166
|
+
id: string;
|
|
2167
|
+
productId: string | null;
|
|
2168
|
+
createdAt: string;
|
|
2169
|
+
updatedAt: string;
|
|
2170
|
+
metadata: {
|
|
2171
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2172
|
+
} | null;
|
|
2173
|
+
kind: "other" | "shared_room";
|
|
2174
|
+
label: string;
|
|
2175
|
+
primaryBookingId: string | null;
|
|
2176
|
+
optionUnitId: string | null;
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
outputFormat: "json";
|
|
2180
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2181
|
+
};
|
|
2182
|
+
};
|
|
2183
|
+
} & {
|
|
2184
|
+
"/:id": {
|
|
2185
|
+
$delete: {
|
|
2186
|
+
input: {
|
|
2187
|
+
param: {
|
|
2188
|
+
id: string;
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
2191
|
+
output: {
|
|
2192
|
+
error: string;
|
|
2193
|
+
};
|
|
2194
|
+
outputFormat: "json";
|
|
2195
|
+
status: 404;
|
|
2196
|
+
} | {
|
|
2197
|
+
input: {
|
|
2198
|
+
param: {
|
|
2199
|
+
id: string;
|
|
2200
|
+
};
|
|
2201
|
+
};
|
|
2202
|
+
output: {
|
|
2203
|
+
success: true;
|
|
2204
|
+
};
|
|
2205
|
+
outputFormat: "json";
|
|
2206
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2207
|
+
};
|
|
2208
|
+
};
|
|
2209
|
+
} & {
|
|
2210
|
+
"/:id/members": {
|
|
2211
|
+
$get: {
|
|
2212
|
+
input: {
|
|
2213
|
+
param: {
|
|
2214
|
+
id: string;
|
|
2215
|
+
};
|
|
2216
|
+
};
|
|
2217
|
+
output: {
|
|
2218
|
+
data: {
|
|
2219
|
+
id: string;
|
|
2220
|
+
createdAt: string;
|
|
2221
|
+
role: "primary" | "shared";
|
|
2222
|
+
bookingId: string;
|
|
2223
|
+
groupId: string;
|
|
2224
|
+
booking: {
|
|
2225
|
+
id: string;
|
|
2226
|
+
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
2227
|
+
createdAt: string;
|
|
2228
|
+
updatedAt: string;
|
|
2229
|
+
organizationId: string | null;
|
|
2230
|
+
startDate: string | null;
|
|
2231
|
+
endDate: string | null;
|
|
2232
|
+
bookingNumber: string;
|
|
2233
|
+
personId: string | null;
|
|
2234
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
2235
|
+
externalBookingRef: string | null;
|
|
2236
|
+
communicationLanguage: string | null;
|
|
2237
|
+
sellCurrency: string;
|
|
2238
|
+
baseCurrency: string | null;
|
|
2239
|
+
sellAmountCents: number | null;
|
|
2240
|
+
baseSellAmountCents: number | null;
|
|
2241
|
+
costAmountCents: number | null;
|
|
2242
|
+
baseCostAmountCents: number | null;
|
|
2243
|
+
marginPercent: number | null;
|
|
2244
|
+
pax: number | null;
|
|
2245
|
+
internalNotes: string | null;
|
|
2246
|
+
holdExpiresAt: string | null;
|
|
2247
|
+
confirmedAt: string | null;
|
|
2248
|
+
expiredAt: string | null;
|
|
2249
|
+
cancelledAt: string | null;
|
|
2250
|
+
completedAt: string | null;
|
|
2251
|
+
redeemedAt: string | null;
|
|
2252
|
+
} | null;
|
|
2253
|
+
}[];
|
|
2254
|
+
};
|
|
2255
|
+
outputFormat: "json";
|
|
2256
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
} & {
|
|
2260
|
+
"/:id/members": {
|
|
2261
|
+
$post: {
|
|
2262
|
+
input: {
|
|
2263
|
+
param: {
|
|
2264
|
+
id: string;
|
|
2265
|
+
};
|
|
2266
|
+
};
|
|
2267
|
+
output: {
|
|
2268
|
+
error: string;
|
|
2269
|
+
};
|
|
2270
|
+
outputFormat: "json";
|
|
2271
|
+
status: 404;
|
|
2272
|
+
} | {
|
|
2273
|
+
input: {
|
|
2274
|
+
param: {
|
|
2275
|
+
id: string;
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
output: {
|
|
2279
|
+
error: string;
|
|
2280
|
+
currentGroupId: string;
|
|
2281
|
+
};
|
|
2282
|
+
outputFormat: "json";
|
|
2283
|
+
status: 409;
|
|
2284
|
+
} | {
|
|
2285
|
+
input: {
|
|
2286
|
+
param: {
|
|
2287
|
+
id: string;
|
|
2288
|
+
};
|
|
2289
|
+
};
|
|
2290
|
+
output: {
|
|
2291
|
+
data: {
|
|
2292
|
+
id: string;
|
|
2293
|
+
createdAt: string;
|
|
2294
|
+
role: "primary" | "shared";
|
|
2295
|
+
bookingId: string;
|
|
2296
|
+
groupId: string;
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
outputFormat: "json";
|
|
2300
|
+
status: 201;
|
|
2301
|
+
};
|
|
2302
|
+
};
|
|
2303
|
+
} & {
|
|
2304
|
+
"/:id/members/:bookingId": {
|
|
2305
|
+
$delete: {
|
|
2306
|
+
input: {
|
|
2307
|
+
param: {
|
|
2308
|
+
id: string;
|
|
2309
|
+
} & {
|
|
2310
|
+
bookingId: string;
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
2313
|
+
output: {
|
|
2314
|
+
error: string;
|
|
2315
|
+
};
|
|
2316
|
+
outputFormat: "json";
|
|
2317
|
+
status: 404;
|
|
2318
|
+
} | {
|
|
2319
|
+
input: {
|
|
2320
|
+
param: {
|
|
2321
|
+
id: string;
|
|
2322
|
+
} & {
|
|
2323
|
+
bookingId: string;
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
output: {
|
|
2327
|
+
success: true;
|
|
2328
|
+
};
|
|
2329
|
+
outputFormat: "json";
|
|
2330
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2331
|
+
};
|
|
2332
|
+
};
|
|
2333
|
+
} & {
|
|
2334
|
+
"/:id/passengers": {
|
|
2335
|
+
$get: {
|
|
2336
|
+
input: {
|
|
2337
|
+
param: {
|
|
2338
|
+
id: string;
|
|
2339
|
+
};
|
|
2340
|
+
};
|
|
2341
|
+
output: {
|
|
2342
|
+
data: {
|
|
2343
|
+
id: string;
|
|
2344
|
+
notes: string | null;
|
|
2345
|
+
createdAt: string;
|
|
2346
|
+
updatedAt: string;
|
|
2347
|
+
email: string | null;
|
|
2348
|
+
firstName: string;
|
|
2349
|
+
lastName: string;
|
|
2350
|
+
personId: string | null;
|
|
2351
|
+
bookingId: string;
|
|
2352
|
+
participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
|
|
2353
|
+
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
2354
|
+
phone: string | null;
|
|
2355
|
+
preferredLanguage: string | null;
|
|
2356
|
+
accessibilityNeeds: string | null;
|
|
2357
|
+
specialRequests: string | null;
|
|
2358
|
+
isPrimary: boolean;
|
|
2359
|
+
}[];
|
|
2360
|
+
};
|
|
2361
|
+
outputFormat: "json";
|
|
2362
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2363
|
+
};
|
|
2364
|
+
};
|
|
2365
|
+
}, "/groups">, "/", "/:id/documents/:documentId">;
|
|
2210
2366
|
export type BookingRoutes = typeof bookingRoutes;
|
|
2211
2367
|
export type PublicBookingRoutes = typeof publicBookingRoutes;
|
|
2212
2368
|
//# sourceMappingURL=routes.d.ts.map
|