@voyantjs/storefront-sdk 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/dist/booking-engine.d.ts +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/operations.d.ts +6 -6
- package/dist/schemas.d.ts +5 -5
- package/package.json +7 -7
package/dist/booking-engine.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export declare function startBookingEnginePayment(client: ResolvedClientOptions,
|
|
|
211
211
|
invoiceId: string | null;
|
|
212
212
|
bookingPaymentScheduleId: string | null;
|
|
213
213
|
bookingGuaranteeId: string | null;
|
|
214
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
214
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
215
215
|
provider: string | null;
|
|
216
216
|
providerSessionId: string | null;
|
|
217
217
|
providerPaymentId: string | null;
|
|
@@ -345,7 +345,7 @@ export declare function bootstrapBookingEnginePayment(client: ResolvedClientOpti
|
|
|
345
345
|
invoiceId: string | null;
|
|
346
346
|
bookingPaymentScheduleId: string | null;
|
|
347
347
|
bookingGuaranteeId: string | null;
|
|
348
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
348
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
349
349
|
provider: string | null;
|
|
350
350
|
providerSessionId: string | null;
|
|
351
351
|
providerPaymentId: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -221,7 +221,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
221
221
|
}>;
|
|
222
222
|
getProductAvailability: (productId: string, query?: Parameters<typeof getStorefrontProductAvailability>[2]) => Promise<{
|
|
223
223
|
productId: string;
|
|
224
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "
|
|
224
|
+
availabilityState: "cancelled" | "available" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "unavailable";
|
|
225
225
|
counts: {
|
|
226
226
|
total: number;
|
|
227
227
|
open: number;
|
|
@@ -242,7 +242,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
242
242
|
endAt: string | null;
|
|
243
243
|
timezone: string;
|
|
244
244
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
245
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "
|
|
245
|
+
availabilityState: "cancelled" | "available" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "unavailable";
|
|
246
246
|
capacity: number | null;
|
|
247
247
|
remaining: number | null;
|
|
248
248
|
pastCutoff: boolean;
|
|
@@ -277,7 +277,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
277
277
|
endAt: string | null;
|
|
278
278
|
timezone: string;
|
|
279
279
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
280
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "
|
|
280
|
+
availabilityState: "cancelled" | "available" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "unavailable";
|
|
281
281
|
capacity: number | null;
|
|
282
282
|
remaining: number | null;
|
|
283
283
|
pastCutoff: boolean;
|
|
@@ -573,7 +573,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
573
573
|
bootstrapSession: (input: Parameters<typeof bootstrapBookingSession>[1], requestOptions?: Parameters<typeof bootstrapBookingSession>[2]) => Promise<{
|
|
574
574
|
paymentPlan: {
|
|
575
575
|
source: "storefront_default";
|
|
576
|
-
depositKind: "
|
|
576
|
+
depositKind: "none" | "percent" | "fixed_cents";
|
|
577
577
|
depositPercent: number | null;
|
|
578
578
|
depositAmountCents: number | null;
|
|
579
579
|
requiresFullPayment: boolean;
|
|
@@ -1627,7 +1627,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1627
1627
|
invoiceId: string | null;
|
|
1628
1628
|
bookingPaymentScheduleId: string | null;
|
|
1629
1629
|
bookingGuaranteeId: string | null;
|
|
1630
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1630
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
1631
1631
|
provider: string | null;
|
|
1632
1632
|
providerSessionId: string | null;
|
|
1633
1633
|
providerPaymentId: string | null;
|
|
@@ -1761,7 +1761,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1761
1761
|
invoiceId: string | null;
|
|
1762
1762
|
bookingPaymentScheduleId: string | null;
|
|
1763
1763
|
bookingGuaranteeId: string | null;
|
|
1764
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1764
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
1765
1765
|
provider: string | null;
|
|
1766
1766
|
providerSessionId: string | null;
|
|
1767
1767
|
providerPaymentId: string | null;
|
|
@@ -1944,7 +1944,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1944
1944
|
invoiceId: string | null;
|
|
1945
1945
|
bookingPaymentScheduleId: string | null;
|
|
1946
1946
|
bookingGuaranteeId: string | null;
|
|
1947
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1947
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
1948
1948
|
provider: string | null;
|
|
1949
1949
|
providerSessionId: string | null;
|
|
1950
1950
|
providerPaymentId: string | null;
|
|
@@ -2078,7 +2078,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
2078
2078
|
invoiceId: string | null;
|
|
2079
2079
|
bookingPaymentScheduleId: string | null;
|
|
2080
2080
|
bookingGuaranteeId: string | null;
|
|
2081
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
2081
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
2082
2082
|
provider: string | null;
|
|
2083
2083
|
providerSessionId: string | null;
|
|
2084
2084
|
providerPaymentId: string | null;
|
package/dist/operations.d.ts
CHANGED
|
@@ -210,7 +210,7 @@ export declare function listStorefrontProductDepartures(client: ResolvedClientOp
|
|
|
210
210
|
}>;
|
|
211
211
|
export declare function getStorefrontProductAvailability(client: ResolvedClientOptions, productId: string, query?: StorefrontProductAvailabilitySummaryQuery): Promise<{
|
|
212
212
|
productId: string;
|
|
213
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "
|
|
213
|
+
availabilityState: "cancelled" | "available" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "unavailable";
|
|
214
214
|
counts: {
|
|
215
215
|
total: number;
|
|
216
216
|
open: number;
|
|
@@ -231,7 +231,7 @@ export declare function getStorefrontProductAvailability(client: ResolvedClientO
|
|
|
231
231
|
endAt: string | null;
|
|
232
232
|
timezone: string;
|
|
233
233
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
234
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "
|
|
234
|
+
availabilityState: "cancelled" | "available" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "unavailable";
|
|
235
235
|
capacity: number | null;
|
|
236
236
|
remaining: number | null;
|
|
237
237
|
pastCutoff: boolean;
|
|
@@ -266,7 +266,7 @@ export declare function previewStorefrontDeparturePrice(client: ResolvedClientOp
|
|
|
266
266
|
endAt: string | null;
|
|
267
267
|
timezone: string;
|
|
268
268
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
269
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "
|
|
269
|
+
availabilityState: "cancelled" | "available" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "unavailable";
|
|
270
270
|
capacity: number | null;
|
|
271
271
|
remaining: number | null;
|
|
272
272
|
pastCutoff: boolean;
|
|
@@ -655,7 +655,7 @@ export declare function createPublicBookingSession(client: ResolvedClientOptions
|
|
|
655
655
|
export declare function bootstrapBookingSession(client: ResolvedClientOptions, input: StorefrontBookingSessionBootstrapInput, options?: StorefrontRequestOptions): Promise<{
|
|
656
656
|
paymentPlan: {
|
|
657
657
|
source: "storefront_default";
|
|
658
|
-
depositKind: "
|
|
658
|
+
depositKind: "none" | "percent" | "fixed_cents";
|
|
659
659
|
depositPercent: number | null;
|
|
660
660
|
depositAmountCents: number | null;
|
|
661
661
|
requiresFullPayment: boolean;
|
|
@@ -1518,7 +1518,7 @@ export declare function initiateCheckoutCollection(client: ResolvedClientOptions
|
|
|
1518
1518
|
invoiceId: string | null;
|
|
1519
1519
|
bookingPaymentScheduleId: string | null;
|
|
1520
1520
|
bookingGuaranteeId: string | null;
|
|
1521
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1521
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
1522
1522
|
provider: string | null;
|
|
1523
1523
|
providerSessionId: string | null;
|
|
1524
1524
|
providerPaymentId: string | null;
|
|
@@ -1652,7 +1652,7 @@ export declare function bootstrapCheckoutCollection(client: ResolvedClientOption
|
|
|
1652
1652
|
invoiceId: string | null;
|
|
1653
1653
|
bookingPaymentScheduleId: string | null;
|
|
1654
1654
|
bookingGuaranteeId: string | null;
|
|
1655
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1655
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "processing" | "paid" | "requires_redirect" | "authorized";
|
|
1656
1656
|
provider: string | null;
|
|
1657
1657
|
providerSessionId: string | null;
|
|
1658
1658
|
providerPaymentId: string | null;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -297,12 +297,12 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
297
297
|
}>;
|
|
298
298
|
availabilityState: z.ZodEnum<{
|
|
299
299
|
cancelled: "cancelled";
|
|
300
|
+
available: "available";
|
|
300
301
|
closed: "closed";
|
|
301
302
|
sold_out: "sold_out";
|
|
302
303
|
past_cutoff: "past_cutoff";
|
|
303
304
|
too_early: "too_early";
|
|
304
305
|
on_request: "on_request";
|
|
305
|
-
available: "available";
|
|
306
306
|
unavailable: "unavailable";
|
|
307
307
|
}>;
|
|
308
308
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1106,8 +1106,8 @@ export declare const bootstrappedBookingSessionSchema: z.ZodObject<{
|
|
|
1106
1106
|
paymentPlan: z.ZodObject<{
|
|
1107
1107
|
source: z.ZodLiteral<"storefront_default">;
|
|
1108
1108
|
depositKind: z.ZodEnum<{
|
|
1109
|
-
percent: "percent";
|
|
1110
1109
|
none: "none";
|
|
1110
|
+
percent: "percent";
|
|
1111
1111
|
fixed_cents: "fixed_cents";
|
|
1112
1112
|
}>;
|
|
1113
1113
|
depositPercent: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1376,8 +1376,8 @@ export declare const bootstrappedBookingSessionResponseSchema: z.ZodObject<{
|
|
|
1376
1376
|
paymentPlan: z.ZodObject<{
|
|
1377
1377
|
source: z.ZodLiteral<"storefront_default">;
|
|
1378
1378
|
depositKind: z.ZodEnum<{
|
|
1379
|
-
percent: "percent";
|
|
1380
1379
|
none: "none";
|
|
1380
|
+
percent: "percent";
|
|
1381
1381
|
fixed_cents: "fixed_cents";
|
|
1382
1382
|
}>;
|
|
1383
1383
|
depositPercent: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1801,9 +1801,9 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1801
1801
|
cancelled: "cancelled";
|
|
1802
1802
|
pending: "pending";
|
|
1803
1803
|
failed: "failed";
|
|
1804
|
+
processing: "processing";
|
|
1804
1805
|
paid: "paid";
|
|
1805
1806
|
requires_redirect: "requires_redirect";
|
|
1806
|
-
processing: "processing";
|
|
1807
1807
|
authorized: "authorized";
|
|
1808
1808
|
}>;
|
|
1809
1809
|
provider: z.ZodNullable<z.ZodString>;
|
|
@@ -2001,9 +2001,9 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
2001
2001
|
cancelled: "cancelled";
|
|
2002
2002
|
pending: "pending";
|
|
2003
2003
|
failed: "failed";
|
|
2004
|
+
processing: "processing";
|
|
2004
2005
|
paid: "paid";
|
|
2005
2006
|
requires_redirect: "requires_redirect";
|
|
2006
|
-
processing: "processing";
|
|
2007
2007
|
authorized: "authorized";
|
|
2008
2008
|
}>;
|
|
2009
2009
|
provider: z.ZodNullable<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront-sdk",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"zod": "^4.0.0",
|
|
51
|
-
"@voyantjs/bookings": "0.52.
|
|
52
|
-
"@voyantjs/checkout": "0.52.
|
|
53
|
-
"@voyantjs/storefront": "0.52.
|
|
51
|
+
"@voyantjs/bookings": "0.52.4",
|
|
52
|
+
"@voyantjs/checkout": "0.52.4",
|
|
53
|
+
"@voyantjs/storefront": "0.52.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"typescript": "^6.0.2",
|
|
57
57
|
"vitest": "^4.1.2",
|
|
58
58
|
"zod": "^4.3.6",
|
|
59
|
-
"@voyantjs/bookings": "0.52.
|
|
60
|
-
"@voyantjs/checkout": "0.52.
|
|
61
|
-
"@voyantjs/storefront": "0.52.
|
|
59
|
+
"@voyantjs/bookings": "0.52.4",
|
|
60
|
+
"@voyantjs/checkout": "0.52.4",
|
|
61
|
+
"@voyantjs/storefront": "0.52.4",
|
|
62
62
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"files": [
|