@voyant-travel/charters-react 0.117.2
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/README.md +40 -0
- package/dist/client.d.ts +14 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +59 -0
- package/dist/components/apa-tracker.d.ts +18 -0
- package/dist/components/apa-tracker.d.ts.map +1 -0
- package/dist/components/apa-tracker.js +69 -0
- package/dist/components/charter-catalog-card.d.ts +13 -0
- package/dist/components/charter-catalog-card.d.ts.map +1 -0
- package/dist/components/charter-catalog-card.js +58 -0
- package/dist/components/external-badge.d.ts +13 -0
- package/dist/components/external-badge.d.ts.map +1 -0
- package/dist/components/external-badge.js +16 -0
- package/dist/components/voyage-suite-grid.d.ts +26 -0
- package/dist/components/voyage-suite-grid.d.ts.map +1 -0
- package/dist/components/voyage-suite-grid.js +77 -0
- package/dist/components/whole-yacht-quote-card.d.ts +21 -0
- package/dist/components/whole-yacht-quote-card.d.ts.map +1 -0
- package/dist/components/whole-yacht-quote-card.js +46 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +9 -0
- package/dist/hooks/use-apa.d.ts +130 -0
- package/dist/hooks/use-apa.d.ts.map +1 -0
- package/dist/hooks/use-apa.js +60 -0
- package/dist/hooks/use-charter-booking.d.ts +175 -0
- package/dist/hooks/use-charter-booking.d.ts.map +1 -0
- package/dist/hooks/use-charter-booking.js +39 -0
- package/dist/hooks/use-charter-product-mutation.d.ts +124 -0
- package/dist/hooks/use-charter-product-mutation.d.ts.map +1 -0
- package/dist/hooks/use-charter-product-mutation.js +55 -0
- package/dist/hooks/use-charter-products.d.ts +150 -0
- package/dist/hooks/use-charter-products.d.ts.map +1 -0
- package/dist/hooks/use-charter-products.js +29 -0
- package/dist/hooks/use-charter-public.d.ts +232 -0
- package/dist/hooks/use-charter-public.d.ts.map +1 -0
- package/dist/hooks/use-charter-public.js +41 -0
- package/dist/hooks/use-charter-quote.d.ts +42 -0
- package/dist/hooks/use-charter-quote.d.ts.map +1 -0
- package/dist/hooks/use-charter-quote.js +30 -0
- package/dist/hooks/use-charter-voyages.d.ts +111 -0
- package/dist/hooks/use-charter-voyages.d.ts.map +1 -0
- package/dist/hooks/use-charter-voyages.js +19 -0
- package/dist/hooks/use-charter-yachts.d.ts +72 -0
- package/dist/hooks/use-charter-yachts.d.ts.map +1 -0
- package/dist/hooks/use-charter-yachts.js +19 -0
- package/dist/hooks/use-myba-contract.d.ts +28 -0
- package/dist/hooks/use-myba-contract.d.ts.map +1 -0
- package/dist/hooks/use-myba-contract.js +31 -0
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +78 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages.d.ts +70 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +26 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro.d.ts +3 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +78 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +61 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +31 -0
- package/dist/query-options.d.ts +2108 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +110 -0
- package/dist/schemas.d.ts +1066 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +323 -0
- package/dist/ui.d.ts +6 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +5 -0
- package/package.json +121 -0
- package/src/styles.css +11 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { VoyagesListFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseCharterVoyagesOptions extends VoyagesListFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useCharterVoyages(options?: UseCharterVoyagesOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
id: string;
|
|
8
|
+
productId: string;
|
|
9
|
+
yachtId: string;
|
|
10
|
+
voyageCode: string;
|
|
11
|
+
name: string | null;
|
|
12
|
+
embarkPortFacilityId: string | null;
|
|
13
|
+
embarkPortName: string | null;
|
|
14
|
+
disembarkPortFacilityId: string | null;
|
|
15
|
+
disembarkPortName: string | null;
|
|
16
|
+
departureDate: string;
|
|
17
|
+
returnDate: string;
|
|
18
|
+
nights: number;
|
|
19
|
+
bookingModes: ("per_suite" | "whole_yacht")[];
|
|
20
|
+
appointmentOnly: boolean;
|
|
21
|
+
wholeYachtPricesByCurrency: Record<string, string>;
|
|
22
|
+
apaPercentOverride: string | null;
|
|
23
|
+
mybaTemplateIdOverride: string | null;
|
|
24
|
+
charterAreaOverride: string | null;
|
|
25
|
+
salesStatus: "open" | "on_request" | "wait_list" | "sold_out" | "closed";
|
|
26
|
+
availabilityNote: string | null;
|
|
27
|
+
externalRefs: Record<string, string> | null;
|
|
28
|
+
lastSyncedAt: string | null;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
}[];
|
|
32
|
+
total: number;
|
|
33
|
+
limit: number;
|
|
34
|
+
offset: number;
|
|
35
|
+
}, Error>;
|
|
36
|
+
export interface UseCharterVoyageOptions {
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
include?: ReadonlyArray<"suites" | "schedule">;
|
|
39
|
+
}
|
|
40
|
+
export declare function useCharterVoyage(key: string | null | undefined, options?: UseCharterVoyageOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
41
|
+
id: string;
|
|
42
|
+
productId: string;
|
|
43
|
+
yachtId: string;
|
|
44
|
+
voyageCode: string;
|
|
45
|
+
name: string | null;
|
|
46
|
+
embarkPortFacilityId: string | null;
|
|
47
|
+
embarkPortName: string | null;
|
|
48
|
+
disembarkPortFacilityId: string | null;
|
|
49
|
+
disembarkPortName: string | null;
|
|
50
|
+
departureDate: string;
|
|
51
|
+
returnDate: string;
|
|
52
|
+
nights: number;
|
|
53
|
+
bookingModes: ("per_suite" | "whole_yacht")[];
|
|
54
|
+
appointmentOnly: boolean;
|
|
55
|
+
wholeYachtPricesByCurrency: Record<string, string>;
|
|
56
|
+
apaPercentOverride: string | null;
|
|
57
|
+
mybaTemplateIdOverride: string | null;
|
|
58
|
+
charterAreaOverride: string | null;
|
|
59
|
+
salesStatus: "open" | "on_request" | "wait_list" | "sold_out" | "closed";
|
|
60
|
+
availabilityNote: string | null;
|
|
61
|
+
externalRefs: Record<string, string> | null;
|
|
62
|
+
lastSyncedAt: string | null;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
suites?: {
|
|
66
|
+
id: string;
|
|
67
|
+
voyageId: string;
|
|
68
|
+
suiteCode: string;
|
|
69
|
+
suiteName: string;
|
|
70
|
+
suiteCategory: "standard" | "deluxe" | "suite" | "penthouse" | "owners" | "signature" | null;
|
|
71
|
+
description: string | null;
|
|
72
|
+
squareFeet: string | null;
|
|
73
|
+
images: string[] | null;
|
|
74
|
+
floorplanImages: string[] | null;
|
|
75
|
+
maxGuests: number | null;
|
|
76
|
+
pricesByCurrency: Record<string, string>;
|
|
77
|
+
portFeesByCurrency: Record<string, string>;
|
|
78
|
+
availability: "on_request" | "wait_list" | "sold_out" | "available" | "limited";
|
|
79
|
+
unitsAvailable: number | null;
|
|
80
|
+
appointmentOnly: boolean;
|
|
81
|
+
notes: string | null;
|
|
82
|
+
extra: Record<string, unknown> | null;
|
|
83
|
+
externalRefs: Record<string, string> | null;
|
|
84
|
+
lastSyncedAt: string | null;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
updatedAt: string;
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
schedule?: {
|
|
89
|
+
id: string;
|
|
90
|
+
voyageId: string;
|
|
91
|
+
dayNumber: number;
|
|
92
|
+
portFacilityId: string | null;
|
|
93
|
+
portName: string | null;
|
|
94
|
+
scheduleDate: string | null;
|
|
95
|
+
arrivalTime: string | null;
|
|
96
|
+
departureTime: string | null;
|
|
97
|
+
isSeaDay: boolean;
|
|
98
|
+
description: string | null;
|
|
99
|
+
activities: string[] | null;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
source: "external";
|
|
105
|
+
sourceProvider: string;
|
|
106
|
+
sourceRef: Record<string, unknown>;
|
|
107
|
+
voyage: Record<string, unknown>;
|
|
108
|
+
suites?: unknown[] | undefined;
|
|
109
|
+
schedule?: unknown[] | undefined;
|
|
110
|
+
}, Error>;
|
|
111
|
+
//# sourceMappingURL=use-charter-voyages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-charter-voyages.d.ts","sourceRoot":"","sources":["../../src/hooks/use-charter-voyages.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAG1D,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOvE;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAA;CAC/C;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC9B,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQtC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { useVoyantChartersContext } from "../provider.js";
|
|
3
|
+
import { getVoyageQueryOptions, getVoyagesQueryOptions } from "../query-options.js";
|
|
4
|
+
export function useCharterVoyages(options = {}) {
|
|
5
|
+
const { baseUrl, fetcher } = useVoyantChartersContext();
|
|
6
|
+
const { enabled = true, ...filters } = options;
|
|
7
|
+
return useQuery({
|
|
8
|
+
...getVoyagesQueryOptions({ baseUrl, fetcher }, filters),
|
|
9
|
+
enabled,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export function useCharterVoyage(key, options = {}) {
|
|
13
|
+
const { baseUrl, fetcher } = useVoyantChartersContext();
|
|
14
|
+
const { enabled = true, include } = options;
|
|
15
|
+
return useQuery({
|
|
16
|
+
...getVoyageQueryOptions({ baseUrl, fetcher }, key ?? "", { include }),
|
|
17
|
+
enabled: enabled && !!key,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { YachtsListFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseCharterYachtsOptions extends YachtsListFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useCharterYachts(options?: UseCharterYachtsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
id: string;
|
|
8
|
+
lineSupplierId: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
yachtClass: "luxury_motor" | "luxury_sailing" | "expedition" | "small_cruise";
|
|
12
|
+
capacityGuests: number | null;
|
|
13
|
+
capacityCrew: number | null;
|
|
14
|
+
lengthMeters: string | null;
|
|
15
|
+
yearBuilt: number | null;
|
|
16
|
+
yearRefurbished: number | null;
|
|
17
|
+
imo: string | null;
|
|
18
|
+
description: string | null;
|
|
19
|
+
gallery: string[] | null;
|
|
20
|
+
amenities: Record<string, unknown> | null;
|
|
21
|
+
crewBios: {
|
|
22
|
+
role: string;
|
|
23
|
+
name: string;
|
|
24
|
+
bio?: string | undefined;
|
|
25
|
+
photoUrl?: string | undefined;
|
|
26
|
+
}[] | null;
|
|
27
|
+
defaultCharterAreas: string[] | null;
|
|
28
|
+
externalRefs: Record<string, string> | null;
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
}[];
|
|
33
|
+
total: number;
|
|
34
|
+
limit: number;
|
|
35
|
+
offset: number;
|
|
36
|
+
}, Error>;
|
|
37
|
+
export interface UseCharterYachtOptions {
|
|
38
|
+
enabled?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare function useCharterYacht(key: string | null | undefined, options?: UseCharterYachtOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
41
|
+
id: string;
|
|
42
|
+
lineSupplierId: string | null;
|
|
43
|
+
name: string;
|
|
44
|
+
slug: string;
|
|
45
|
+
yachtClass: "luxury_motor" | "luxury_sailing" | "expedition" | "small_cruise";
|
|
46
|
+
capacityGuests: number | null;
|
|
47
|
+
capacityCrew: number | null;
|
|
48
|
+
lengthMeters: string | null;
|
|
49
|
+
yearBuilt: number | null;
|
|
50
|
+
yearRefurbished: number | null;
|
|
51
|
+
imo: string | null;
|
|
52
|
+
description: string | null;
|
|
53
|
+
gallery: string[] | null;
|
|
54
|
+
amenities: Record<string, unknown> | null;
|
|
55
|
+
crewBios: {
|
|
56
|
+
role: string;
|
|
57
|
+
name: string;
|
|
58
|
+
bio?: string | undefined;
|
|
59
|
+
photoUrl?: string | undefined;
|
|
60
|
+
}[] | null;
|
|
61
|
+
defaultCharterAreas: string[] | null;
|
|
62
|
+
externalRefs: Record<string, string> | null;
|
|
63
|
+
isActive: boolean;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
} | {
|
|
67
|
+
source: "external";
|
|
68
|
+
sourceProvider: string;
|
|
69
|
+
sourceRef: Record<string, unknown>;
|
|
70
|
+
yacht: Record<string, unknown>;
|
|
71
|
+
}, Error>;
|
|
72
|
+
//# sourceMappingURL=use-charter-yachts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-charter-yachts.d.ts","sourceRoot":"","sources":["../../src/hooks/use-charter-yachts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAGzD,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOrE;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC9B,OAAO,GAAE,sBAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQrC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { useVoyantChartersContext } from "../provider.js";
|
|
3
|
+
import { getYachtQueryOptions, getYachtsQueryOptions } from "../query-options.js";
|
|
4
|
+
export function useCharterYachts(options = {}) {
|
|
5
|
+
const { baseUrl, fetcher } = useVoyantChartersContext();
|
|
6
|
+
const { enabled = true, ...filters } = options;
|
|
7
|
+
return useQuery({
|
|
8
|
+
...getYachtsQueryOptions({ baseUrl, fetcher }, filters),
|
|
9
|
+
enabled,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export function useCharterYacht(key, options = {}) {
|
|
13
|
+
const { baseUrl, fetcher } = useVoyantChartersContext();
|
|
14
|
+
const { enabled = true } = options;
|
|
15
|
+
return useQuery({
|
|
16
|
+
...getYachtQueryOptions({ baseUrl, fetcher }, key ?? ""),
|
|
17
|
+
enabled: enabled && !!key,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type BookingCharterDetailRecord } from "../schemas.js";
|
|
2
|
+
export interface GenerateMybaContractInput {
|
|
3
|
+
/** Override the template id snapshotted at booking time. */
|
|
4
|
+
templateIdOverride?: string | null;
|
|
5
|
+
/** Locale for the contract; defaults server-side to "en". */
|
|
6
|
+
language?: string;
|
|
7
|
+
/** Extra Liquid variables passed to the renderer. Merged on top of defaults. */
|
|
8
|
+
extraVariables?: Record<string, unknown>;
|
|
9
|
+
/** Custom title; default is `MYBA charter agreement — <voyage name>`. */
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GenerateMybaContractResult {
|
|
13
|
+
contractId: string;
|
|
14
|
+
charterDetails: BookingCharterDetailRecord;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Generate (or fetch existing) MYBA contract for a whole-yacht charter
|
|
18
|
+
* booking. Idempotent — if `mybaContractId` is already set on the booking,
|
|
19
|
+
* the server returns the existing contract id without re-generating.
|
|
20
|
+
*
|
|
21
|
+
* Requires the template to wire `chartersContractsService` into Hono
|
|
22
|
+
* context at app boot, otherwise the route returns 501.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGenerateMybaContract(): import("@tanstack/react-query").UseMutationResult<GenerateMybaContractResult, Error, {
|
|
25
|
+
bookingId: string;
|
|
26
|
+
input?: GenerateMybaContractInput;
|
|
27
|
+
}, unknown>;
|
|
28
|
+
//# sourceMappingURL=use-myba-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-myba-contract.d.ts","sourceRoot":"","sources":["../../src/hooks/use-myba-contract.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,0BAA0B,EAAgC,MAAM,eAAe,CAAA;AAE7F,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,0BAA0B,CAAA;CAC3C;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB;eAUtB,MAAM;YACT,yBAAyB;YAkBtC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
2
|
+
import { fetchWithValidation } from "../client.js";
|
|
3
|
+
import { useVoyantChartersContext } from "../provider.js";
|
|
4
|
+
import { chartersQueryKeys } from "../query-keys.js";
|
|
5
|
+
import { generateMybaContractResponse } from "../schemas.js";
|
|
6
|
+
/**
|
|
7
|
+
* Generate (or fetch existing) MYBA contract for a whole-yacht charter
|
|
8
|
+
* booking. Idempotent — if `mybaContractId` is already set on the booking,
|
|
9
|
+
* the server returns the existing contract id without re-generating.
|
|
10
|
+
*
|
|
11
|
+
* Requires the template to wire `chartersContractsService` into Hono
|
|
12
|
+
* context at app boot, otherwise the route returns 501.
|
|
13
|
+
*/
|
|
14
|
+
export function useGenerateMybaContract() {
|
|
15
|
+
const { baseUrl, fetcher } = useVoyantChartersContext();
|
|
16
|
+
const client = { baseUrl, fetcher };
|
|
17
|
+
const queryClient = useQueryClient();
|
|
18
|
+
return useMutation({
|
|
19
|
+
mutationFn: async ({ bookingId, input, }) => {
|
|
20
|
+
const result = await fetchWithValidation(`/v1/admin/charters/bookings/${encodeURIComponent(bookingId)}/myba`, generateMybaContractResponse, client, { method: "POST", body: JSON.stringify(input ?? {}) });
|
|
21
|
+
return result.data;
|
|
22
|
+
},
|
|
23
|
+
onSuccess: () => {
|
|
24
|
+
// Bookings own the canonical detail; templates that mount @voyant-travel/bookings-react
|
|
25
|
+
// will see the contract id propagate via their own invalidation. Charters'
|
|
26
|
+
// own caches don't include per-booking detail so nothing to invalidate here
|
|
27
|
+
// beyond a generic charters wipe (kept minimal to avoid waste).
|
|
28
|
+
void queryClient.invalidateQueries({ queryKey: chartersQueryKeys.all });
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD,eAAO,MAAM,YAAY,EAAE,kBA8E1B,CAAA"}
|
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export const chartersUiEn = {
|
|
2
|
+
common: {
|
|
3
|
+
fallbackCurrencyAmount: "{currency} {amount}",
|
|
4
|
+
},
|
|
5
|
+
catalogCard: {
|
|
6
|
+
untitled: "Untitled charter",
|
|
7
|
+
ratePerWeek: "{amount} / week",
|
|
8
|
+
cabinsSingular: "{count} cabin",
|
|
9
|
+
cabinsPlural: "{count} cabins",
|
|
10
|
+
},
|
|
11
|
+
externalCharterBadge: {
|
|
12
|
+
title: "Sourced via {sourceProvider}",
|
|
13
|
+
label: "External · {sourceProvider}",
|
|
14
|
+
},
|
|
15
|
+
apaTracker: {
|
|
16
|
+
heading: "APA reconciliation",
|
|
17
|
+
subtitle: "Advance Provisioning Allowance · {percent}% of charter fee",
|
|
18
|
+
status: {
|
|
19
|
+
settled: "Settled",
|
|
20
|
+
inProgress: "In progress",
|
|
21
|
+
},
|
|
22
|
+
bars: {
|
|
23
|
+
collectedFromCharterer: "Collected from charterer",
|
|
24
|
+
spentOnBoard: "Spent on board",
|
|
25
|
+
ofAmount: "of {amount}",
|
|
26
|
+
},
|
|
27
|
+
tiles: {
|
|
28
|
+
refundIssued: "Refund issued",
|
|
29
|
+
remainingToRefundOrSpend: "remaining to refund/spend",
|
|
30
|
+
overspentTopUpRequired: "overspent (top-up required)",
|
|
31
|
+
fullyReconciled: "fully reconciled",
|
|
32
|
+
},
|
|
33
|
+
settledAt: "Settled at {date}",
|
|
34
|
+
},
|
|
35
|
+
wholeYachtQuoteCard: {
|
|
36
|
+
wholeYacht: {
|
|
37
|
+
heading: "Whole-yacht charter quote",
|
|
38
|
+
summary: "Charter fee + APA collected up front; APA reconciled post-charter",
|
|
39
|
+
dueBeforeEmbarkation: "due before embarkation",
|
|
40
|
+
charterFee: "Charter fee",
|
|
41
|
+
apaLabel: "APA (Advance Provisioning Allowance, {percent}% of charter fee)",
|
|
42
|
+
totalDue: "Total due",
|
|
43
|
+
explanation: "The APA covers fuel, food, beverages, port charges, and other operational expenses during the charter. The actual spend is reconciled at the end of the charter and any surplus is refunded to the charterer.",
|
|
44
|
+
},
|
|
45
|
+
perSuite: {
|
|
46
|
+
summary: "Per-suite charter quote",
|
|
47
|
+
allInForSuite: "all-in for this suite",
|
|
48
|
+
suitePrice: "Suite price",
|
|
49
|
+
portFee: "Port fee",
|
|
50
|
+
total: "Total",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
voyageSuiteGrid: {
|
|
54
|
+
empty: "No suites published for this voyage yet.",
|
|
55
|
+
defaultSelectLabel: "Quote suite",
|
|
56
|
+
priceOnRequest: "Price on request",
|
|
57
|
+
perSuiteAllIn: "per suite, all-in",
|
|
58
|
+
availabilityLabels: {
|
|
59
|
+
available: "Available",
|
|
60
|
+
limited: "Limited",
|
|
61
|
+
on_request: "On request",
|
|
62
|
+
wait_list: "Wait list",
|
|
63
|
+
sold_out: "Sold out",
|
|
64
|
+
},
|
|
65
|
+
categoryLabels: {
|
|
66
|
+
standard: "Standard",
|
|
67
|
+
deluxe: "Deluxe",
|
|
68
|
+
suite: "Suite",
|
|
69
|
+
penthouse: "Penthouse",
|
|
70
|
+
owners: "Owners",
|
|
71
|
+
signature: "Signature",
|
|
72
|
+
},
|
|
73
|
+
metadata: {
|
|
74
|
+
squareFeet: "{value} sq ft",
|
|
75
|
+
maxGuests: "up to {count} guests",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { chartersUiEn } from "./en.js";
|
|
2
|
+
export type { CharterBookingMode, CharterSuiteAvailability, CharterSuiteCategory, ChartersUiMessages, } from "./messages.js";
|
|
3
|
+
export { type ChartersUiMessageOverrides, ChartersUiMessagesProvider, chartersUiMessageDefinitions, getChartersUiI18n, resolveChartersUiMessages, useChartersUiI18n, useChartersUiI18nOrDefault, useChartersUiMessages, useChartersUiMessagesOrDefault, } from "./provider.js";
|
|
4
|
+
export { chartersUiRo } from "./ro.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,0BAA0B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { chartersUiEn } from "./en.js";
|
|
2
|
+
export { ChartersUiMessagesProvider, chartersUiMessageDefinitions, getChartersUiI18n, resolveChartersUiMessages, useChartersUiI18n, useChartersUiI18nOrDefault, useChartersUiMessages, useChartersUiMessagesOrDefault, } from "./provider.js";
|
|
3
|
+
export { chartersUiRo } from "./ro.js";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { BookingCharterDetailRecord, CharterSuiteRecord } from "../index.js";
|
|
2
|
+
export type CharterSuiteAvailability = CharterSuiteRecord["availability"];
|
|
3
|
+
export type CharterSuiteCategory = NonNullable<CharterSuiteRecord["suiteCategory"]>;
|
|
4
|
+
export type CharterBookingMode = BookingCharterDetailRecord["bookingMode"];
|
|
5
|
+
export type ChartersUiMessages = {
|
|
6
|
+
common: {
|
|
7
|
+
fallbackCurrencyAmount: string;
|
|
8
|
+
};
|
|
9
|
+
catalogCard: {
|
|
10
|
+
untitled: string;
|
|
11
|
+
ratePerWeek: string;
|
|
12
|
+
cabinsSingular: string;
|
|
13
|
+
cabinsPlural: string;
|
|
14
|
+
};
|
|
15
|
+
externalCharterBadge: {
|
|
16
|
+
title: string;
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
apaTracker: {
|
|
20
|
+
heading: string;
|
|
21
|
+
subtitle: string;
|
|
22
|
+
status: {
|
|
23
|
+
settled: string;
|
|
24
|
+
inProgress: string;
|
|
25
|
+
};
|
|
26
|
+
bars: {
|
|
27
|
+
collectedFromCharterer: string;
|
|
28
|
+
spentOnBoard: string;
|
|
29
|
+
ofAmount: string;
|
|
30
|
+
};
|
|
31
|
+
tiles: {
|
|
32
|
+
refundIssued: string;
|
|
33
|
+
remainingToRefundOrSpend: string;
|
|
34
|
+
overspentTopUpRequired: string;
|
|
35
|
+
fullyReconciled: string;
|
|
36
|
+
};
|
|
37
|
+
settledAt: string;
|
|
38
|
+
};
|
|
39
|
+
wholeYachtQuoteCard: {
|
|
40
|
+
wholeYacht: {
|
|
41
|
+
heading: string;
|
|
42
|
+
summary: string;
|
|
43
|
+
dueBeforeEmbarkation: string;
|
|
44
|
+
charterFee: string;
|
|
45
|
+
apaLabel: string;
|
|
46
|
+
totalDue: string;
|
|
47
|
+
explanation: string;
|
|
48
|
+
};
|
|
49
|
+
perSuite: {
|
|
50
|
+
summary: string;
|
|
51
|
+
allInForSuite: string;
|
|
52
|
+
suitePrice: string;
|
|
53
|
+
portFee: string;
|
|
54
|
+
total: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
voyageSuiteGrid: {
|
|
58
|
+
empty: string;
|
|
59
|
+
defaultSelectLabel: string;
|
|
60
|
+
priceOnRequest: string;
|
|
61
|
+
perSuiteAllIn: string;
|
|
62
|
+
availabilityLabels: Record<CharterSuiteAvailability, string>;
|
|
63
|
+
categoryLabels: Record<CharterSuiteCategory, string>;
|
|
64
|
+
metadata: {
|
|
65
|
+
squareFeet: string;
|
|
66
|
+
maxGuests: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/i18n/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEjF,MAAM,MAAM,wBAAwB,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAA;AACzE,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC,CAAA;AACnF,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAC,aAAa,CAAC,CAAA;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE;QACN,sBAAsB,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;QACnB,cAAc,EAAE,MAAM,CAAA;QACtB,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;IACD,oBAAoB,EAAE;QACpB,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE;YACN,OAAO,EAAE,MAAM,CAAA;YACf,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;QACD,IAAI,EAAE;YACJ,sBAAsB,EAAE,MAAM,CAAA;YAC9B,YAAY,EAAE,MAAM,CAAA;YACpB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,KAAK,EAAE;YACL,YAAY,EAAE,MAAM,CAAA;YACpB,wBAAwB,EAAE,MAAM,CAAA;YAChC,sBAAsB,EAAE,MAAM,CAAA;YAC9B,eAAe,EAAE,MAAM,CAAA;SACxB,CAAA;QACD,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,mBAAmB,EAAE;QACnB,UAAU,EAAE;YACV,OAAO,EAAE,MAAM,CAAA;YACf,OAAO,EAAE,MAAM,CAAA;YACf,oBAAoB,EAAE,MAAM,CAAA;YAC5B,UAAU,EAAE,MAAM,CAAA;YAClB,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;YAChB,WAAW,EAAE,MAAM,CAAA;SACpB,CAAA;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,MAAM,CAAA;YACf,aAAa,EAAE,MAAM,CAAA;YACrB,UAAU,EAAE,MAAM,CAAA;YAClB,OAAO,EAAE,MAAM,CAAA;YACf,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,eAAe,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,kBAAkB,EAAE,MAAM,CAAA;QAC1B,cAAc,EAAE,MAAM,CAAA;QACtB,aAAa,EAAE,MAAM,CAAA;QACrB,kBAAkB,EAAE,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAA;QAC5D,cAAc,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAA;QACpD,QAAQ,EAAE;YACR,UAAU,EAAE,MAAM,CAAA;YAClB,SAAS,EAAE,MAAM,CAAA;SAClB,CAAA;KACF,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type LocaleMessageOverrides, type PackageI18nValue } from "@voyant-travel/i18n";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { ChartersUiMessages } from "./messages.js";
|
|
4
|
+
export declare const chartersUiMessageDefinitions: {
|
|
5
|
+
en: ChartersUiMessages;
|
|
6
|
+
ro: ChartersUiMessages;
|
|
7
|
+
};
|
|
8
|
+
export type ChartersUiMessageOverrides = LocaleMessageOverrides<ChartersUiMessages>;
|
|
9
|
+
export declare function resolveChartersUiMessages({ locale, overrides, }: {
|
|
10
|
+
locale: string | null | undefined;
|
|
11
|
+
overrides?: ChartersUiMessageOverrides | null;
|
|
12
|
+
}): ChartersUiMessages;
|
|
13
|
+
export declare function getChartersUiI18n({ locale, overrides, }: {
|
|
14
|
+
locale?: string | null | undefined;
|
|
15
|
+
overrides?: ChartersUiMessageOverrides | null;
|
|
16
|
+
}): PackageI18nValue<ChartersUiMessages>;
|
|
17
|
+
export declare function ChartersUiMessagesProvider({ children, locale, overrides, }: {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
locale: string | null | undefined;
|
|
20
|
+
overrides?: ChartersUiMessageOverrides | null;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const useChartersUiI18n: () => PackageI18nValue<ChartersUiMessages>;
|
|
23
|
+
export declare const useChartersUiMessages: () => ChartersUiMessages;
|
|
24
|
+
export declare function useChartersUiI18nOrDefault(): PackageI18nValue<ChartersUiMessages>;
|
|
25
|
+
export declare function useChartersUiMessagesOrDefault(): ChartersUiMessages;
|
|
26
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAKvD,eAAO,MAAM,4BAA4B;;;CAGe,CAAA;AAExD,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,CAAC,kBAAkB,CAAC,CAAA;AASnF,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAA;CAC9C,sBAOA;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,SAAS,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAA;CAC9C,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,CASvC;AAED,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAA;CAC9C,2CAWA;AAED,eAAO,MAAM,iBAAiB,4CAA4B,CAAA;AAC1D,eAAO,MAAM,qBAAqB,0BAAgC,CAAA;AAElE,wBAAgB,0BAA0B,yCAEzC;AAED,wBAAgB,8BAA8B,uBAE7C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createLocaleFormatters, createPackageMessagesContext, resolvePackageMessages, } from "@voyant-travel/i18n";
|
|
4
|
+
import { chartersUiEn } from "./en.js";
|
|
5
|
+
import { chartersUiRo } from "./ro.js";
|
|
6
|
+
const fallbackLocale = "en";
|
|
7
|
+
export const chartersUiMessageDefinitions = {
|
|
8
|
+
en: chartersUiEn,
|
|
9
|
+
ro: chartersUiRo,
|
|
10
|
+
};
|
|
11
|
+
const chartersUiContext = createPackageMessagesContext("ChartersUiMessages");
|
|
12
|
+
const defaultChartersUiI18n = {
|
|
13
|
+
messages: chartersUiEn,
|
|
14
|
+
...createLocaleFormatters(fallbackLocale),
|
|
15
|
+
};
|
|
16
|
+
export function resolveChartersUiMessages({ locale, overrides, }) {
|
|
17
|
+
return resolvePackageMessages({
|
|
18
|
+
definitions: chartersUiMessageDefinitions,
|
|
19
|
+
fallbackLocale,
|
|
20
|
+
locale,
|
|
21
|
+
overrides,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export function getChartersUiI18n({ locale, overrides, }) {
|
|
25
|
+
const resolvedLocale = locale ?? fallbackLocale;
|
|
26
|
+
return {
|
|
27
|
+
messages: resolveChartersUiMessages({
|
|
28
|
+
locale: resolvedLocale,
|
|
29
|
+
overrides,
|
|
30
|
+
}),
|
|
31
|
+
...createLocaleFormatters(resolvedLocale),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ChartersUiMessagesProvider({ children, locale, overrides, }) {
|
|
35
|
+
return (_jsx(chartersUiContext.ResolvedMessagesProvider, { definitions: chartersUiMessageDefinitions, fallbackLocale: fallbackLocale, locale: locale, overrides: overrides, children: children }));
|
|
36
|
+
}
|
|
37
|
+
export const useChartersUiI18n = chartersUiContext.useI18n;
|
|
38
|
+
export const useChartersUiMessages = chartersUiContext.useMessages;
|
|
39
|
+
export function useChartersUiI18nOrDefault() {
|
|
40
|
+
return chartersUiContext.useOptionalI18n() ?? defaultChartersUiI18n;
|
|
41
|
+
}
|
|
42
|
+
export function useChartersUiMessagesOrDefault() {
|
|
43
|
+
return useChartersUiI18nOrDefault().messages;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD,eAAO,MAAM,YAAY,EAAE,kBA8E1B,CAAA"}
|
package/dist/i18n/ro.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export const chartersUiRo = {
|
|
2
|
+
common: {
|
|
3
|
+
fallbackCurrencyAmount: "{currency} {amount}",
|
|
4
|
+
},
|
|
5
|
+
catalogCard: {
|
|
6
|
+
untitled: "Charter fara nume",
|
|
7
|
+
ratePerWeek: "{amount} / saptamana",
|
|
8
|
+
cabinsSingular: "{count} cabina",
|
|
9
|
+
cabinsPlural: "{count} cabine",
|
|
10
|
+
},
|
|
11
|
+
externalCharterBadge: {
|
|
12
|
+
title: "Preluat prin {sourceProvider}",
|
|
13
|
+
label: "Extern · {sourceProvider}",
|
|
14
|
+
},
|
|
15
|
+
apaTracker: {
|
|
16
|
+
heading: "Reconciliere APA",
|
|
17
|
+
subtitle: "Advance Provisioning Allowance · {percent}% din taxa de charter",
|
|
18
|
+
status: {
|
|
19
|
+
settled: "Reconciliat",
|
|
20
|
+
inProgress: "In curs",
|
|
21
|
+
},
|
|
22
|
+
bars: {
|
|
23
|
+
collectedFromCharterer: "Incasat de la charterer",
|
|
24
|
+
spentOnBoard: "Cheltuit la bord",
|
|
25
|
+
ofAmount: "din {amount}",
|
|
26
|
+
},
|
|
27
|
+
tiles: {
|
|
28
|
+
refundIssued: "Rambursare emisa",
|
|
29
|
+
remainingToRefundOrSpend: "ramas de rambursat/cheltuit",
|
|
30
|
+
overspentTopUpRequired: "depasit (este necesara completare)",
|
|
31
|
+
fullyReconciled: "reconciliat complet",
|
|
32
|
+
},
|
|
33
|
+
settledAt: "Reconciliat la {date}",
|
|
34
|
+
},
|
|
35
|
+
wholeYachtQuoteCard: {
|
|
36
|
+
wholeYacht: {
|
|
37
|
+
heading: "Oferta charter pentru intregul yacht",
|
|
38
|
+
summary: "Taxa de charter + APA incasate in avans; APA se reconciliaza dupa charter",
|
|
39
|
+
dueBeforeEmbarkation: "scadent inainte de imbarcare",
|
|
40
|
+
charterFee: "Taxa de charter",
|
|
41
|
+
apaLabel: "APA (Advance Provisioning Allowance, {percent}% din taxa de charter)",
|
|
42
|
+
totalDue: "Total de plata",
|
|
43
|
+
explanation: "APA acopera combustibilul, mancarea, bauturile, taxele portuare si alte costuri operationale din timpul charterului. Cheltuiala efectiva se reconciliaza la finalul charterului, iar orice surplus se ramburseaza chartererului.",
|
|
44
|
+
},
|
|
45
|
+
perSuite: {
|
|
46
|
+
summary: "Oferta charter per suita",
|
|
47
|
+
allInForSuite: "total pentru aceasta suita",
|
|
48
|
+
suitePrice: "Pret suita",
|
|
49
|
+
portFee: "Taxa portuara",
|
|
50
|
+
total: "Total",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
voyageSuiteGrid: {
|
|
54
|
+
empty: "Nu exista inca suite publicate pentru acest voiaj.",
|
|
55
|
+
defaultSelectLabel: "Cere oferta",
|
|
56
|
+
priceOnRequest: "Pret la cerere",
|
|
57
|
+
perSuiteAllIn: "per suita, total",
|
|
58
|
+
availabilityLabels: {
|
|
59
|
+
available: "Disponibil",
|
|
60
|
+
limited: "Limitat",
|
|
61
|
+
on_request: "La cerere",
|
|
62
|
+
wait_list: "Lista de asteptare",
|
|
63
|
+
sold_out: "Epuizat",
|
|
64
|
+
},
|
|
65
|
+
categoryLabels: {
|
|
66
|
+
standard: "Standard",
|
|
67
|
+
deluxe: "Deluxe",
|
|
68
|
+
suite: "Suita",
|
|
69
|
+
penthouse: "Penthouse",
|
|
70
|
+
owners: "Owners",
|
|
71
|
+
signature: "Signature",
|
|
72
|
+
},
|
|
73
|
+
metadata: {
|
|
74
|
+
squareFeet: "{value} ft²",
|
|
75
|
+
maxGuests: "pana la {count} oaspeti",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defaultFetcher, type FetchWithValidationOptions, fetchWithValidation, VoyantApiError, type VoyantFetcher, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantChartersContext, type VoyantChartersContextValue, VoyantChartersProvider, type VoyantChartersProviderProps, } from "./provider.js";
|
|
4
|
+
export { chartersQueryKeys, type ProductsListFilters, type PublicProductsListFilters, type VoyagesListFilters, type YachtsListFilters, } from "./query-keys.js";
|
|
5
|
+
export { getProductQueryOptions, getProductsQueryOptions, getPublicProductQueryOptions, getPublicProductsQueryOptions, getPublicVoyageQueryOptions, getPublicYachtQueryOptions, getVoyageQueryOptions, getVoyagesQueryOptions, getYachtQueryOptions, getYachtsQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,wBAAwB,EACxB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|