@voyantjs/bookings 0.52.2 → 0.52.4
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 +16 -0
- package/dist/action-ledger-capabilities.d.ts +306 -0
- package/dist/action-ledger-capabilities.d.ts.map +1 -0
- package/dist/action-ledger-capabilities.js +92 -0
- package/dist/action-ledger-drift-remediation.d.ts +30 -0
- package/dist/action-ledger-drift-remediation.d.ts.map +1 -0
- package/dist/action-ledger-drift-remediation.js +85 -0
- package/dist/action-ledger-drift.d.ts +29 -0
- package/dist/action-ledger-drift.d.ts.map +1 -0
- package/dist/action-ledger-drift.js +217 -0
- package/dist/availability-ref.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes-groups.d.ts +13 -13
- package/dist/routes-public.d.ts +9 -9
- package/dist/routes-shared.d.ts +13 -4
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes.d.ts +347 -663
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +1191 -49
- package/dist/schema-core.d.ts +3 -3
- package/dist/schema-items.d.ts +3 -3
- package/dist/service-public.d.ts +24 -24
- package/dist/service.d.ts +53 -45
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +93 -7
- package/dist/validation-public.d.ts +12 -12
- package/dist/validation-shared.d.ts +4 -4
- package/dist/validation.d.ts +20 -20
- package/package.json +22 -6
package/dist/validation.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const bookingPriceOverrideSchema: z.ZodObject<{
|
|
|
11
11
|
export declare const insertBookingSchema: z.ZodObject<{
|
|
12
12
|
bookingNumber: z.ZodString;
|
|
13
13
|
status: z.ZodDefault<z.ZodEnum<{
|
|
14
|
+
expired: "expired";
|
|
14
15
|
cancelled: "cancelled";
|
|
15
16
|
completed: "completed";
|
|
16
17
|
draft: "draft";
|
|
@@ -18,7 +19,6 @@ export declare const insertBookingSchema: z.ZodObject<{
|
|
|
18
19
|
awaiting_payment: "awaiting_payment";
|
|
19
20
|
confirmed: "confirmed";
|
|
20
21
|
in_progress: "in_progress";
|
|
21
|
-
expired: "expired";
|
|
22
22
|
}>>;
|
|
23
23
|
personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
24
|
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -57,8 +57,8 @@ export declare const insertBookingSchema: z.ZodObject<{
|
|
|
57
57
|
customerPaymentPolicy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
58
58
|
deposit: z.ZodObject<{
|
|
59
59
|
kind: z.ZodEnum<{
|
|
60
|
-
percent: "percent";
|
|
61
60
|
none: "none";
|
|
61
|
+
percent: "percent";
|
|
62
62
|
fixed_cents: "fixed_cents";
|
|
63
63
|
}>;
|
|
64
64
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -87,6 +87,7 @@ export declare const insertBookingSchema: z.ZodObject<{
|
|
|
87
87
|
export declare const updateBookingSchema: z.ZodObject<{
|
|
88
88
|
bookingNumber: z.ZodOptional<z.ZodString>;
|
|
89
89
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
90
|
+
expired: "expired";
|
|
90
91
|
cancelled: "cancelled";
|
|
91
92
|
completed: "completed";
|
|
92
93
|
draft: "draft";
|
|
@@ -94,7 +95,6 @@ export declare const updateBookingSchema: z.ZodObject<{
|
|
|
94
95
|
awaiting_payment: "awaiting_payment";
|
|
95
96
|
confirmed: "confirmed";
|
|
96
97
|
in_progress: "in_progress";
|
|
97
|
-
expired: "expired";
|
|
98
98
|
}>>>;
|
|
99
99
|
personId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
100
100
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -133,8 +133,8 @@ export declare const updateBookingSchema: z.ZodObject<{
|
|
|
133
133
|
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
134
134
|
deposit: z.ZodObject<{
|
|
135
135
|
kind: z.ZodEnum<{
|
|
136
|
-
percent: "percent";
|
|
137
136
|
none: "none";
|
|
137
|
+
percent: "percent";
|
|
138
138
|
fixed_cents: "fixed_cents";
|
|
139
139
|
}>;
|
|
140
140
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -163,6 +163,7 @@ export declare const updateBookingSchema: z.ZodObject<{
|
|
|
163
163
|
export declare const createBookingSchema: z.ZodObject<{
|
|
164
164
|
bookingNumber: z.ZodString;
|
|
165
165
|
status: z.ZodDefault<z.ZodEnum<{
|
|
166
|
+
expired: "expired";
|
|
166
167
|
cancelled: "cancelled";
|
|
167
168
|
completed: "completed";
|
|
168
169
|
draft: "draft";
|
|
@@ -170,7 +171,6 @@ export declare const createBookingSchema: z.ZodObject<{
|
|
|
170
171
|
awaiting_payment: "awaiting_payment";
|
|
171
172
|
confirmed: "confirmed";
|
|
172
173
|
in_progress: "in_progress";
|
|
173
|
-
expired: "expired";
|
|
174
174
|
}>>;
|
|
175
175
|
personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
176
176
|
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -200,8 +200,8 @@ export declare const createBookingSchema: z.ZodObject<{
|
|
|
200
200
|
customerPaymentPolicy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
201
201
|
deposit: z.ZodObject<{
|
|
202
202
|
kind: z.ZodEnum<{
|
|
203
|
-
percent: "percent";
|
|
204
203
|
none: "none";
|
|
204
|
+
percent: "percent";
|
|
205
205
|
fixed_cents: "fixed_cents";
|
|
206
206
|
}>;
|
|
207
207
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -246,6 +246,7 @@ export declare const bookingListSortDirSchema: z.ZodEnum<{
|
|
|
246
246
|
}>;
|
|
247
247
|
export declare const bookingListQuerySchema: z.ZodObject<{
|
|
248
248
|
status: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
expired: "expired";
|
|
249
250
|
cancelled: "cancelled";
|
|
250
251
|
completed: "completed";
|
|
251
252
|
draft: "draft";
|
|
@@ -253,7 +254,6 @@ export declare const bookingListQuerySchema: z.ZodObject<{
|
|
|
253
254
|
awaiting_payment: "awaiting_payment";
|
|
254
255
|
confirmed: "confirmed";
|
|
255
256
|
in_progress: "in_progress";
|
|
256
|
-
expired: "expired";
|
|
257
257
|
}>>;
|
|
258
258
|
search: z.ZodOptional<z.ZodString>;
|
|
259
259
|
productId: z.ZodOptional<z.ZodString>;
|
|
@@ -303,6 +303,7 @@ export declare const convertProductSchema: z.ZodObject<{
|
|
|
303
303
|
confirmedSellAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
304
304
|
priceOverrideReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
305
305
|
initialStatus: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
expired: "expired";
|
|
306
307
|
cancelled: "cancelled";
|
|
307
308
|
completed: "completed";
|
|
308
309
|
draft: "draft";
|
|
@@ -310,7 +311,6 @@ export declare const convertProductSchema: z.ZodObject<{
|
|
|
310
311
|
awaiting_payment: "awaiting_payment";
|
|
311
312
|
confirmed: "confirmed";
|
|
312
313
|
in_progress: "in_progress";
|
|
313
|
-
expired: "expired";
|
|
314
314
|
}>>;
|
|
315
315
|
contactFirstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
316
316
|
contactLastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -418,8 +418,8 @@ export declare const reserveBookingSchema: z.ZodObject<{
|
|
|
418
418
|
customerPaymentPolicy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
419
419
|
deposit: z.ZodObject<{
|
|
420
420
|
kind: z.ZodEnum<{
|
|
421
|
-
percent: "percent";
|
|
422
421
|
none: "none";
|
|
422
|
+
percent: "percent";
|
|
423
423
|
fixed_cents: "fixed_cents";
|
|
424
424
|
}>;
|
|
425
425
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -510,6 +510,7 @@ export declare const completeBookingSchema: z.ZodObject<{
|
|
|
510
510
|
*/
|
|
511
511
|
export declare const overrideBookingStatusSchema: z.ZodObject<{
|
|
512
512
|
status: z.ZodEnum<{
|
|
513
|
+
expired: "expired";
|
|
513
514
|
cancelled: "cancelled";
|
|
514
515
|
completed: "completed";
|
|
515
516
|
draft: "draft";
|
|
@@ -517,7 +518,6 @@ export declare const overrideBookingStatusSchema: z.ZodObject<{
|
|
|
517
518
|
awaiting_payment: "awaiting_payment";
|
|
518
519
|
confirmed: "confirmed";
|
|
519
520
|
in_progress: "in_progress";
|
|
520
|
-
expired: "expired";
|
|
521
521
|
}>;
|
|
522
522
|
reason: z.ZodString;
|
|
523
523
|
note: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -751,11 +751,11 @@ export declare const insertBookingItemSchema: z.ZodObject<{
|
|
|
751
751
|
transport: "transport";
|
|
752
752
|
}>>;
|
|
753
753
|
status: z.ZodDefault<z.ZodEnum<{
|
|
754
|
+
expired: "expired";
|
|
754
755
|
cancelled: "cancelled";
|
|
755
756
|
draft: "draft";
|
|
756
757
|
on_hold: "on_hold";
|
|
757
758
|
confirmed: "confirmed";
|
|
758
|
-
expired: "expired";
|
|
759
759
|
fulfilled: "fulfilled";
|
|
760
760
|
}>>;
|
|
761
761
|
serviceDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -793,11 +793,11 @@ export declare const updateBookingItemSchema: z.ZodObject<{
|
|
|
793
793
|
transport: "transport";
|
|
794
794
|
}>>>;
|
|
795
795
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
796
|
+
expired: "expired";
|
|
796
797
|
cancelled: "cancelled";
|
|
797
798
|
draft: "draft";
|
|
798
799
|
on_hold: "on_hold";
|
|
799
800
|
confirmed: "confirmed";
|
|
800
|
-
expired: "expired";
|
|
801
801
|
fulfilled: "fulfilled";
|
|
802
802
|
}>>>;
|
|
803
803
|
serviceDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -833,9 +833,9 @@ export declare const insertBookingAllocationSchema: z.ZodObject<{
|
|
|
833
833
|
pickup: "pickup";
|
|
834
834
|
}>>;
|
|
835
835
|
status: z.ZodDefault<z.ZodEnum<{
|
|
836
|
+
expired: "expired";
|
|
836
837
|
cancelled: "cancelled";
|
|
837
838
|
confirmed: "confirmed";
|
|
838
|
-
expired: "expired";
|
|
839
839
|
fulfilled: "fulfilled";
|
|
840
840
|
held: "held";
|
|
841
841
|
released: "released";
|
|
@@ -859,9 +859,9 @@ export declare const updateBookingAllocationSchema: z.ZodObject<{
|
|
|
859
859
|
pickup: "pickup";
|
|
860
860
|
}>>>;
|
|
861
861
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
862
|
+
expired: "expired";
|
|
862
863
|
cancelled: "cancelled";
|
|
863
864
|
confirmed: "confirmed";
|
|
864
|
-
expired: "expired";
|
|
865
865
|
fulfilled: "fulfilled";
|
|
866
866
|
held: "held";
|
|
867
867
|
released: "released";
|
|
@@ -891,8 +891,8 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
891
891
|
wallet: "wallet";
|
|
892
892
|
}>;
|
|
893
893
|
status: z.ZodDefault<z.ZodEnum<{
|
|
894
|
-
pending: "pending";
|
|
895
894
|
failed: "failed";
|
|
895
|
+
pending: "pending";
|
|
896
896
|
issued: "issued";
|
|
897
897
|
reissued: "reissued";
|
|
898
898
|
revoked: "revoked";
|
|
@@ -905,7 +905,7 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
905
905
|
travelerId: string | null;
|
|
906
906
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
907
907
|
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
908
|
-
status: "
|
|
908
|
+
status: "failed" | "pending" | "issued" | "reissued" | "revoked";
|
|
909
909
|
bookingItemId?: string | null | undefined;
|
|
910
910
|
artifactUrl?: string | null | undefined;
|
|
911
911
|
payload?: Record<string, unknown> | null | undefined;
|
|
@@ -914,7 +914,7 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
914
914
|
}, {
|
|
915
915
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
916
916
|
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
917
|
-
status: "
|
|
917
|
+
status: "failed" | "pending" | "issued" | "reissued" | "revoked";
|
|
918
918
|
bookingItemId?: string | null | undefined;
|
|
919
919
|
travelerId?: string | null | undefined;
|
|
920
920
|
artifactUrl?: string | null | undefined;
|
|
@@ -942,8 +942,8 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
942
942
|
wallet: "wallet";
|
|
943
943
|
}>>;
|
|
944
944
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
945
|
-
pending: "pending";
|
|
946
945
|
failed: "failed";
|
|
946
|
+
pending: "pending";
|
|
947
947
|
issued: "issued";
|
|
948
948
|
reissued: "reissued";
|
|
949
949
|
revoked: "revoked";
|
|
@@ -957,7 +957,7 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
957
957
|
bookingItemId?: string | null | undefined;
|
|
958
958
|
fulfillmentType?: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile" | undefined;
|
|
959
959
|
deliveryChannel?: "api" | "email" | "other" | "download" | "wallet" | undefined;
|
|
960
|
-
status?: "
|
|
960
|
+
status?: "failed" | "pending" | "issued" | "reissued" | "revoked" | undefined;
|
|
961
961
|
artifactUrl?: string | null | undefined;
|
|
962
962
|
payload?: Record<string, unknown> | null | undefined;
|
|
963
963
|
issuedAt?: string | null | undefined;
|
|
@@ -967,7 +967,7 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
967
967
|
travelerId?: string | null | undefined;
|
|
968
968
|
fulfillmentType?: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile" | undefined;
|
|
969
969
|
deliveryChannel?: "api" | "email" | "other" | "download" | "wallet" | undefined;
|
|
970
|
-
status?: "
|
|
970
|
+
status?: "failed" | "pending" | "issued" | "reissued" | "revoked" | undefined;
|
|
971
971
|
artifactUrl?: string | null | undefined;
|
|
972
972
|
payload?: Record<string, unknown> | null | undefined;
|
|
973
973
|
issuedAt?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/bookings",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,6 +34,21 @@
|
|
|
34
34
|
"import": "./dist/routes.js",
|
|
35
35
|
"default": "./dist/routes.js"
|
|
36
36
|
},
|
|
37
|
+
"./action-ledger-drift": {
|
|
38
|
+
"types": "./dist/action-ledger-drift.d.ts",
|
|
39
|
+
"import": "./dist/action-ledger-drift.js",
|
|
40
|
+
"default": "./dist/action-ledger-drift.js"
|
|
41
|
+
},
|
|
42
|
+
"./action-ledger-drift-remediation": {
|
|
43
|
+
"types": "./dist/action-ledger-drift-remediation.d.ts",
|
|
44
|
+
"import": "./dist/action-ledger-drift-remediation.js",
|
|
45
|
+
"default": "./dist/action-ledger-drift-remediation.js"
|
|
46
|
+
},
|
|
47
|
+
"./action-ledger-capabilities": {
|
|
48
|
+
"types": "./dist/action-ledger-capabilities.d.ts",
|
|
49
|
+
"import": "./dist/action-ledger-capabilities.js",
|
|
50
|
+
"default": "./dist/action-ledger-capabilities.js"
|
|
51
|
+
},
|
|
37
52
|
"./public-routes": {
|
|
38
53
|
"types": "./dist/routes-public.d.ts",
|
|
39
54
|
"import": "./dist/routes-public.js",
|
|
@@ -64,14 +79,15 @@
|
|
|
64
79
|
"drizzle-orm": "^0.45.2",
|
|
65
80
|
"hono": "^4.12.10",
|
|
66
81
|
"zod": "^4.3.6",
|
|
67
|
-
"@voyantjs/
|
|
68
|
-
"@voyantjs/
|
|
69
|
-
"@voyantjs/
|
|
70
|
-
"@voyantjs/
|
|
82
|
+
"@voyantjs/action-ledger": "0.52.4",
|
|
83
|
+
"@voyantjs/core": "0.52.4",
|
|
84
|
+
"@voyantjs/db": "0.52.4",
|
|
85
|
+
"@voyantjs/hono": "0.52.4",
|
|
86
|
+
"@voyantjs/utils": "0.52.4"
|
|
71
87
|
},
|
|
72
88
|
"devDependencies": {
|
|
73
89
|
"typescript": "^6.0.2",
|
|
74
|
-
"@voyantjs/products": "0.52.
|
|
90
|
+
"@voyantjs/products": "0.52.4",
|
|
75
91
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
76
92
|
},
|
|
77
93
|
"files": [
|