@voyantjs/storefront-sdk 0.31.3 → 0.32.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/LICENSE +201 -0
- package/dist/index.d.ts +62 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/operations.d.ts +62 -32
- package/dist/operations.d.ts.map +1 -1
- package/dist/schemas.d.ts +62 -38
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +3 -3
- package/package.json +47 -55
package/dist/schemas.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema } from "@voyantjs/bookings";
|
|
2
|
-
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema } from "@voyantjs/checkout";
|
|
3
|
-
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyantjs/storefront";
|
|
1
|
+
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema } from "@voyantjs/bookings/public-validation";
|
|
2
|
+
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema } from "@voyantjs/checkout/validation";
|
|
3
|
+
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyantjs/storefront/validation";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
export declare const storefrontSingleEnvelopeSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
6
6
|
data: T;
|
|
@@ -33,11 +33,11 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
33
33
|
email: "email";
|
|
34
34
|
date: "date";
|
|
35
35
|
text: "text";
|
|
36
|
+
select: "select";
|
|
37
|
+
country: "country";
|
|
36
38
|
tel: "tel";
|
|
37
39
|
textarea: "textarea";
|
|
38
|
-
select: "select";
|
|
39
40
|
checkbox: "checkbox";
|
|
40
|
-
country: "country";
|
|
41
41
|
}>;
|
|
42
42
|
required: z.ZodBoolean;
|
|
43
43
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -57,11 +57,11 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
57
57
|
email: "email";
|
|
58
58
|
date: "date";
|
|
59
59
|
text: "text";
|
|
60
|
+
select: "select";
|
|
61
|
+
country: "country";
|
|
60
62
|
tel: "tel";
|
|
61
63
|
textarea: "textarea";
|
|
62
|
-
select: "select";
|
|
63
64
|
checkbox: "checkbox";
|
|
64
|
-
country: "country";
|
|
65
65
|
}>;
|
|
66
66
|
required: z.ZodBoolean;
|
|
67
67
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -76,19 +76,19 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
payment: z.ZodObject<{
|
|
78
78
|
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
79
|
-
card: "card";
|
|
80
|
-
bank_transfer: "bank_transfer";
|
|
81
|
-
invoice: "invoice";
|
|
82
79
|
voucher: "voucher";
|
|
80
|
+
bank_transfer: "bank_transfer";
|
|
83
81
|
cash: "cash";
|
|
82
|
+
invoice: "invoice";
|
|
83
|
+
card: "card";
|
|
84
84
|
}>>;
|
|
85
85
|
methods: z.ZodArray<z.ZodObject<{
|
|
86
86
|
code: z.ZodEnum<{
|
|
87
|
-
card: "card";
|
|
88
|
-
bank_transfer: "bank_transfer";
|
|
89
|
-
invoice: "invoice";
|
|
90
87
|
voucher: "voucher";
|
|
88
|
+
bank_transfer: "bank_transfer";
|
|
91
89
|
cash: "cash";
|
|
90
|
+
invoice: "invoice";
|
|
91
|
+
card: "card";
|
|
92
92
|
}>;
|
|
93
93
|
label: z.ZodString;
|
|
94
94
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -241,13 +241,13 @@ export declare const publicBookingSessionResponseSchema: z.ZodObject<{
|
|
|
241
241
|
bookingNumber: z.ZodString;
|
|
242
242
|
status: z.ZodEnum<{
|
|
243
243
|
draft: "draft";
|
|
244
|
+
on_hold: "on_hold";
|
|
245
|
+
awaiting_payment: "awaiting_payment";
|
|
244
246
|
confirmed: "confirmed";
|
|
247
|
+
in_progress: "in_progress";
|
|
245
248
|
completed: "completed";
|
|
246
249
|
expired: "expired";
|
|
247
250
|
cancelled: "cancelled";
|
|
248
|
-
on_hold: "on_hold";
|
|
249
|
-
awaiting_payment: "awaiting_payment";
|
|
250
|
-
in_progress: "in_progress";
|
|
251
251
|
}>;
|
|
252
252
|
externalBookingRef: z.ZodNullable<z.ZodString>;
|
|
253
253
|
communicationLanguage: z.ZodNullable<z.ZodString>;
|
|
@@ -302,10 +302,10 @@ export declare const publicBookingSessionResponseSchema: z.ZodObject<{
|
|
|
302
302
|
}>;
|
|
303
303
|
status: z.ZodEnum<{
|
|
304
304
|
draft: "draft";
|
|
305
|
+
on_hold: "on_hold";
|
|
305
306
|
confirmed: "confirmed";
|
|
306
307
|
expired: "expired";
|
|
307
308
|
cancelled: "cancelled";
|
|
308
|
-
on_hold: "on_hold";
|
|
309
309
|
fulfilled: "fulfilled";
|
|
310
310
|
}>;
|
|
311
311
|
serviceDate: z.ZodNullable<z.ZodString>;
|
|
@@ -378,6 +378,18 @@ export declare const publicBookingSessionResponseSchema: z.ZodObject<{
|
|
|
378
378
|
createdAt: z.ZodString;
|
|
379
379
|
updatedAt: z.ZodString;
|
|
380
380
|
}, z.core.$strip>>;
|
|
381
|
+
checkoutCapability: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
token: z.ZodString;
|
|
383
|
+
expiresAt: z.ZodString;
|
|
384
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
385
|
+
"session:read": "session:read";
|
|
386
|
+
"session:update": "session:update";
|
|
387
|
+
"session:reprice": "session:reprice";
|
|
388
|
+
"session:finalize": "session:finalize";
|
|
389
|
+
"payment:read": "payment:read";
|
|
390
|
+
"payment:start": "payment:start";
|
|
391
|
+
}>>;
|
|
392
|
+
}, z.core.$strip>>;
|
|
381
393
|
}, z.core.$strip>;
|
|
382
394
|
}, z.core.$strip>;
|
|
383
395
|
export declare const publicBookingSessionStateResponseSchema: z.ZodObject<{
|
|
@@ -422,13 +434,13 @@ export declare const publicBookingSessionRepriceResponseSchema: z.ZodObject<{
|
|
|
422
434
|
bookingNumber: z.ZodString;
|
|
423
435
|
status: z.ZodEnum<{
|
|
424
436
|
draft: "draft";
|
|
437
|
+
on_hold: "on_hold";
|
|
438
|
+
awaiting_payment: "awaiting_payment";
|
|
425
439
|
confirmed: "confirmed";
|
|
440
|
+
in_progress: "in_progress";
|
|
426
441
|
completed: "completed";
|
|
427
442
|
expired: "expired";
|
|
428
443
|
cancelled: "cancelled";
|
|
429
|
-
on_hold: "on_hold";
|
|
430
|
-
awaiting_payment: "awaiting_payment";
|
|
431
|
-
in_progress: "in_progress";
|
|
432
444
|
}>;
|
|
433
445
|
externalBookingRef: z.ZodNullable<z.ZodString>;
|
|
434
446
|
communicationLanguage: z.ZodNullable<z.ZodString>;
|
|
@@ -483,10 +495,10 @@ export declare const publicBookingSessionRepriceResponseSchema: z.ZodObject<{
|
|
|
483
495
|
}>;
|
|
484
496
|
status: z.ZodEnum<{
|
|
485
497
|
draft: "draft";
|
|
498
|
+
on_hold: "on_hold";
|
|
486
499
|
confirmed: "confirmed";
|
|
487
500
|
expired: "expired";
|
|
488
501
|
cancelled: "cancelled";
|
|
489
|
-
on_hold: "on_hold";
|
|
490
502
|
fulfilled: "fulfilled";
|
|
491
503
|
}>;
|
|
492
504
|
serviceDate: z.ZodNullable<z.ZodString>;
|
|
@@ -559,6 +571,18 @@ export declare const publicBookingSessionRepriceResponseSchema: z.ZodObject<{
|
|
|
559
571
|
createdAt: z.ZodString;
|
|
560
572
|
updatedAt: z.ZodString;
|
|
561
573
|
}, z.core.$strip>>;
|
|
574
|
+
checkoutCapability: z.ZodOptional<z.ZodObject<{
|
|
575
|
+
token: z.ZodString;
|
|
576
|
+
expiresAt: z.ZodString;
|
|
577
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
578
|
+
"session:read": "session:read";
|
|
579
|
+
"session:update": "session:update";
|
|
580
|
+
"session:reprice": "session:reprice";
|
|
581
|
+
"session:finalize": "session:finalize";
|
|
582
|
+
"payment:read": "payment:read";
|
|
583
|
+
"payment:start": "payment:start";
|
|
584
|
+
}>>;
|
|
585
|
+
}, z.core.$strip>>;
|
|
562
586
|
}, z.core.$strip>>;
|
|
563
587
|
}, z.core.$strip>;
|
|
564
588
|
}, z.core.$strip>;
|
|
@@ -568,13 +592,13 @@ export declare const publicBookingOverviewResponseSchema: z.ZodObject<{
|
|
|
568
592
|
bookingNumber: z.ZodString;
|
|
569
593
|
status: z.ZodEnum<{
|
|
570
594
|
draft: "draft";
|
|
595
|
+
on_hold: "on_hold";
|
|
596
|
+
awaiting_payment: "awaiting_payment";
|
|
571
597
|
confirmed: "confirmed";
|
|
598
|
+
in_progress: "in_progress";
|
|
572
599
|
completed: "completed";
|
|
573
600
|
expired: "expired";
|
|
574
601
|
cancelled: "cancelled";
|
|
575
|
-
on_hold: "on_hold";
|
|
576
|
-
awaiting_payment: "awaiting_payment";
|
|
577
|
-
in_progress: "in_progress";
|
|
578
602
|
}>;
|
|
579
603
|
sellCurrency: z.ZodString;
|
|
580
604
|
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
@@ -613,10 +637,10 @@ export declare const publicBookingOverviewResponseSchema: z.ZodObject<{
|
|
|
613
637
|
}>;
|
|
614
638
|
status: z.ZodEnum<{
|
|
615
639
|
draft: "draft";
|
|
640
|
+
on_hold: "on_hold";
|
|
616
641
|
confirmed: "confirmed";
|
|
617
642
|
expired: "expired";
|
|
618
643
|
cancelled: "cancelled";
|
|
619
|
-
on_hold: "on_hold";
|
|
620
644
|
fulfilled: "fulfilled";
|
|
621
645
|
}>;
|
|
622
646
|
serviceDate: z.ZodNullable<z.ZodString>;
|
|
@@ -674,10 +698,10 @@ export declare const publicBookingOverviewResponseSchema: z.ZodObject<{
|
|
|
674
698
|
}>;
|
|
675
699
|
deliveryChannel: z.ZodEnum<{
|
|
676
700
|
other: "other";
|
|
677
|
-
email: "email";
|
|
678
|
-
wallet: "wallet";
|
|
679
701
|
download: "download";
|
|
702
|
+
email: "email";
|
|
680
703
|
api: "api";
|
|
704
|
+
wallet: "wallet";
|
|
681
705
|
}>;
|
|
682
706
|
status: z.ZodEnum<{
|
|
683
707
|
pending: "pending";
|
|
@@ -694,8 +718,8 @@ export declare const checkoutCollectionPlanResponseSchema: z.ZodObject<{
|
|
|
694
718
|
data: z.ZodObject<{
|
|
695
719
|
bookingId: z.ZodString;
|
|
696
720
|
method: z.ZodEnum<{
|
|
697
|
-
card: "card";
|
|
698
721
|
bank_transfer: "bank_transfer";
|
|
722
|
+
card: "card";
|
|
699
723
|
}>;
|
|
700
724
|
stage: z.ZodEnum<{
|
|
701
725
|
manual: "manual";
|
|
@@ -755,8 +779,8 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
755
779
|
plan: z.ZodObject<{
|
|
756
780
|
bookingId: z.ZodString;
|
|
757
781
|
method: z.ZodEnum<{
|
|
758
|
-
card: "card";
|
|
759
782
|
bank_transfer: "bank_transfer";
|
|
783
|
+
card: "card";
|
|
760
784
|
}>;
|
|
761
785
|
stage: z.ZodEnum<{
|
|
762
786
|
manual: "manual";
|
|
@@ -832,9 +856,9 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
832
856
|
id: z.ZodString;
|
|
833
857
|
targetType: z.ZodEnum<{
|
|
834
858
|
other: "other";
|
|
835
|
-
invoice: "invoice";
|
|
836
859
|
booking: "booking";
|
|
837
860
|
order: "order";
|
|
861
|
+
invoice: "invoice";
|
|
838
862
|
booking_payment_schedule: "booking_payment_schedule";
|
|
839
863
|
booking_guarantee: "booking_guarantee";
|
|
840
864
|
flight_order: "flight_order";
|
|
@@ -849,10 +873,10 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
849
873
|
cancelled: "cancelled";
|
|
850
874
|
pending: "pending";
|
|
851
875
|
failed: "failed";
|
|
876
|
+
paid: "paid";
|
|
852
877
|
requires_redirect: "requires_redirect";
|
|
853
878
|
processing: "processing";
|
|
854
879
|
authorized: "authorized";
|
|
855
|
-
paid: "paid";
|
|
856
880
|
}>;
|
|
857
881
|
provider: z.ZodNullable<z.ZodString>;
|
|
858
882
|
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -863,13 +887,13 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
863
887
|
amountCents: z.ZodNumber;
|
|
864
888
|
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
865
889
|
other: "other";
|
|
890
|
+
voucher: "voucher";
|
|
891
|
+
wallet: "wallet";
|
|
866
892
|
bank_transfer: "bank_transfer";
|
|
867
893
|
credit_card: "credit_card";
|
|
868
|
-
voucher: "voucher";
|
|
869
894
|
debit_card: "debit_card";
|
|
870
895
|
cash: "cash";
|
|
871
896
|
cheque: "cheque";
|
|
872
|
-
wallet: "wallet";
|
|
873
897
|
direct_bill: "direct_bill";
|
|
874
898
|
}>>;
|
|
875
899
|
payerEmail: z.ZodNullable<z.ZodString>;
|
|
@@ -955,8 +979,8 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
955
979
|
plan: z.ZodObject<{
|
|
956
980
|
bookingId: z.ZodString;
|
|
957
981
|
method: z.ZodEnum<{
|
|
958
|
-
card: "card";
|
|
959
982
|
bank_transfer: "bank_transfer";
|
|
983
|
+
card: "card";
|
|
960
984
|
}>;
|
|
961
985
|
stage: z.ZodEnum<{
|
|
962
986
|
manual: "manual";
|
|
@@ -1032,9 +1056,9 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1032
1056
|
id: z.ZodString;
|
|
1033
1057
|
targetType: z.ZodEnum<{
|
|
1034
1058
|
other: "other";
|
|
1035
|
-
invoice: "invoice";
|
|
1036
1059
|
booking: "booking";
|
|
1037
1060
|
order: "order";
|
|
1061
|
+
invoice: "invoice";
|
|
1038
1062
|
booking_payment_schedule: "booking_payment_schedule";
|
|
1039
1063
|
booking_guarantee: "booking_guarantee";
|
|
1040
1064
|
flight_order: "flight_order";
|
|
@@ -1049,10 +1073,10 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1049
1073
|
cancelled: "cancelled";
|
|
1050
1074
|
pending: "pending";
|
|
1051
1075
|
failed: "failed";
|
|
1076
|
+
paid: "paid";
|
|
1052
1077
|
requires_redirect: "requires_redirect";
|
|
1053
1078
|
processing: "processing";
|
|
1054
1079
|
authorized: "authorized";
|
|
1055
|
-
paid: "paid";
|
|
1056
1080
|
}>;
|
|
1057
1081
|
provider: z.ZodNullable<z.ZodString>;
|
|
1058
1082
|
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -1063,13 +1087,13 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1063
1087
|
amountCents: z.ZodNumber;
|
|
1064
1088
|
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
1065
1089
|
other: "other";
|
|
1090
|
+
voucher: "voucher";
|
|
1091
|
+
wallet: "wallet";
|
|
1066
1092
|
bank_transfer: "bank_transfer";
|
|
1067
1093
|
credit_card: "credit_card";
|
|
1068
|
-
voucher: "voucher";
|
|
1069
1094
|
debit_card: "debit_card";
|
|
1070
1095
|
cash: "cash";
|
|
1071
1096
|
cheque: "cheque";
|
|
1072
|
-
wallet: "wallet";
|
|
1073
1097
|
direct_bill: "direct_bill";
|
|
1074
1098
|
}>>;
|
|
1075
1099
|
payerEmail: z.ZodNullable<z.ZodString>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,2BAA2B,EAC3B,kCAAkC,EAClC,uCAAuC,EACvC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EAChC,qCAAqC,EACtC,MAAM,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,2BAA2B,EAC3B,kCAAkC,EAClC,uCAAuC,EACvC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC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,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACvF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AACjG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, } from "@voyantjs/bookings";
|
|
2
|
-
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, } from "@voyantjs/checkout";
|
|
3
|
-
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, } from "@voyantjs/storefront";
|
|
1
|
+
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, } from "@voyantjs/bookings/public-validation";
|
|
2
|
+
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, } from "@voyantjs/checkout/validation";
|
|
3
|
+
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, } from "@voyantjs/storefront/validation";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
export const storefrontSingleEnvelopeSchema = (item) => z.object({ data: item });
|
|
6
6
|
export const storefrontArrayEnvelopeSchema = (item) => z.object({ data: z.array(item) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,68 +10,60 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"exports": {
|
|
13
|
-
".":
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./client": {
|
|
19
|
+
"types": "./dist/client.d.ts",
|
|
20
|
+
"import": "./dist/client.js",
|
|
21
|
+
"default": "./dist/client.js"
|
|
22
|
+
},
|
|
23
|
+
"./engine-state": {
|
|
24
|
+
"types": "./dist/engine-state.d.ts",
|
|
25
|
+
"import": "./dist/engine-state.js",
|
|
26
|
+
"default": "./dist/engine-state.js"
|
|
27
|
+
},
|
|
28
|
+
"./operations": {
|
|
29
|
+
"types": "./dist/operations.d.ts",
|
|
30
|
+
"import": "./dist/operations.js",
|
|
31
|
+
"default": "./dist/operations.js"
|
|
32
|
+
},
|
|
33
|
+
"./schemas": {
|
|
34
|
+
"types": "./dist/schemas.d.ts",
|
|
35
|
+
"import": "./dist/schemas.js",
|
|
36
|
+
"default": "./dist/schemas.js"
|
|
37
|
+
}
|
|
26
38
|
},
|
|
27
39
|
"peerDependencies": {
|
|
28
|
-
"
|
|
29
|
-
"@voyantjs/
|
|
30
|
-
"@voyantjs/
|
|
31
|
-
"
|
|
40
|
+
"zod": "^4.0.0",
|
|
41
|
+
"@voyantjs/bookings": "0.32.1",
|
|
42
|
+
"@voyantjs/checkout": "0.32.1",
|
|
43
|
+
"@voyantjs/storefront": "0.32.1"
|
|
32
44
|
},
|
|
33
45
|
"devDependencies": {
|
|
34
|
-
"@voyantjs/bookings": "workspace:*",
|
|
35
|
-
"@voyantjs/checkout": "workspace:*",
|
|
36
|
-
"@voyantjs/storefront": "workspace:*",
|
|
37
|
-
"@voyantjs/voyant-typescript-config": "workspace:*",
|
|
38
46
|
"typescript": "^6.0.2",
|
|
39
47
|
"vitest": "^4.1.2",
|
|
40
|
-
"zod": "^4.3.6"
|
|
48
|
+
"zod": "^4.3.6",
|
|
49
|
+
"@voyantjs/bookings": "0.32.1",
|
|
50
|
+
"@voyantjs/checkout": "0.32.1",
|
|
51
|
+
"@voyantjs/storefront": "0.32.1",
|
|
52
|
+
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
41
53
|
},
|
|
42
54
|
"files": [
|
|
43
55
|
"dist"
|
|
44
56
|
],
|
|
45
57
|
"publishConfig": {
|
|
46
|
-
"access": "public"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"./engine-state": {
|
|
59
|
-
"types": "./dist/engine-state.d.ts",
|
|
60
|
-
"import": "./dist/engine-state.js",
|
|
61
|
-
"default": "./dist/engine-state.js"
|
|
62
|
-
},
|
|
63
|
-
"./operations": {
|
|
64
|
-
"types": "./dist/operations.d.ts",
|
|
65
|
-
"import": "./dist/operations.js",
|
|
66
|
-
"default": "./dist/operations.js"
|
|
67
|
-
},
|
|
68
|
-
"./schemas": {
|
|
69
|
-
"types": "./dist/schemas.d.ts",
|
|
70
|
-
"import": "./dist/schemas.js",
|
|
71
|
-
"default": "./dist/schemas.js"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"main": "./dist/index.js",
|
|
75
|
-
"types": "./dist/index.d.ts"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsc -p tsconfig.json",
|
|
62
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
63
|
+
"typecheck": "tsc --noEmit",
|
|
64
|
+
"lint": "biome check src/",
|
|
65
|
+
"test": "vitest run --passWithNoTests"
|
|
66
|
+
},
|
|
67
|
+
"main": "./dist/index.js",
|
|
68
|
+
"types": "./dist/index.d.ts"
|
|
69
|
+
}
|