@voyantjs/bookings-react 0.20.0 → 0.21.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/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-booking-cancel-mutation.d.ts +24 -1
- package/dist/hooks/use-booking-cancel-mutation.d.ts.map +1 -1
- package/dist/hooks/use-booking-convert-mutation.d.ts +24 -1
- package/dist/hooks/use-booking-convert-mutation.d.ts.map +1 -1
- package/dist/hooks/use-booking-dual-create-mutation.d.ts +104 -2
- package/dist/hooks/use-booking-dual-create-mutation.d.ts.map +1 -1
- package/dist/hooks/use-booking-group.d.ts +24 -1
- package/dist/hooks/use-booking-group.d.ts.map +1 -1
- package/dist/hooks/use-booking-mutation.d.ts +49 -3
- package/dist/hooks/use-booking-mutation.d.ts.map +1 -1
- package/dist/hooks/use-booking-quick-create-mutation.d.ts +52 -1
- package/dist/hooks/use-booking-quick-create-mutation.d.ts.map +1 -1
- package/dist/hooks/use-booking-status-mutation.d.ts +48 -2
- package/dist/hooks/use-booking-status-mutation.d.ts.map +1 -1
- package/dist/hooks/use-booking.d.ts +24 -1
- package/dist/hooks/use-booking.d.ts.map +1 -1
- package/dist/hooks/use-bookings.d.ts +24 -1
- package/dist/hooks/use-bookings.d.ts.map +1 -1
- package/dist/hooks/use-public-booking-session-flow-mutation.d.ts +1 -1
- package/dist/hooks/use-public-booking-session.d.ts +1 -1
- package/dist/hooks/use-reveal-traveler.d.ts +45 -0
- package/dist/hooks/use-reveal-traveler.d.ts.map +1 -0
- package/dist/hooks/use-reveal-traveler.js +18 -0
- package/dist/query-options.d.ts +423 -16
- package/dist/query-options.d.ts.map +1 -1
- package/dist/query-options.js +18 -1
- package/dist/schemas.d.ts +286 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +42 -0
- package/dist/status-presentation.d.ts +1 -1
- package/dist/status-presentation.d.ts.map +1 -1
- package/dist/status-presentation.js +1 -0
- package/package.json +5 -5
package/dist/hooks/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { type UsePricingPreviewOptions, usePricingPreview } from "./use-pricing-
|
|
|
23
23
|
export { type UsePublicBookingSessionOptions, usePublicBookingSession, } from "./use-public-booking-session.js";
|
|
24
24
|
export { usePublicBookingSessionFlowMutation } from "./use-public-booking-session-flow-mutation.js";
|
|
25
25
|
export { type UsePublicBookingSessionStateOptions, usePublicBookingSessionState, } from "./use-public-booking-session-state.js";
|
|
26
|
+
export { type UseRevealTravelerOptions, useRevealTraveler } from "./use-reveal-traveler.js";
|
|
26
27
|
export { type CreateSupplierStatusInput, type UpdateSupplierStatusInput, useSupplierStatusMutation, } from "./use-supplier-status-mutation.js";
|
|
27
28
|
export { type UseSupplierStatusesOptions, useSupplierStatuses } from "./use-supplier-statuses.js";
|
|
28
29
|
export { type CreateTravelerInput, type UpdateTravelerInput, useTravelerMutation, } from "./use-traveler-mutation.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,EAAE,KAAK,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9F,OAAO,EACL,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,4BAA4B,EACjC,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,kCAAkC,EAClC,2BAA2B,GAC5B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B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,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,6BAA6B,GAC9B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAE,KAAK,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC3F,OAAO,EACL,KAAK,8BAA8B,EACnC,uBAAuB,GACxB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAA;AACnG,OAAO,EACL,KAAK,mCAAmC,EACxC,4BAA4B,GAC7B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,KAAK,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC3F,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,KAAK,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACjG,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,mBAAmB,GACpB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,mBAAmB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export { usePricingPreview } from "./use-pricing-preview.js";
|
|
|
23
23
|
export { usePublicBookingSession, } from "./use-public-booking-session.js";
|
|
24
24
|
export { usePublicBookingSessionFlowMutation } from "./use-public-booking-session-flow-mutation.js";
|
|
25
25
|
export { usePublicBookingSessionState, } from "./use-public-booking-session-state.js";
|
|
26
|
+
export { useRevealTraveler } from "./use-reveal-traveler.js";
|
|
26
27
|
export { useSupplierStatusMutation, } from "./use-supplier-status-mutation.js";
|
|
27
28
|
export { useSupplierStatuses } from "./use-supplier-statuses.js";
|
|
28
29
|
export { useTravelerMutation, } from "./use-traveler-mutation.js";
|
|
@@ -8,7 +8,7 @@ export interface CancelBookingInput {
|
|
|
8
8
|
export declare function useBookingCancelMutation(bookingId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
9
9
|
id: string;
|
|
10
10
|
bookingNumber: string;
|
|
11
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
11
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
12
12
|
personId: string | null;
|
|
13
13
|
organizationId: string | null;
|
|
14
14
|
sellCurrency: string;
|
|
@@ -21,5 +21,28 @@ export declare function useBookingCancelMutation(bookingId: string): import("@ta
|
|
|
21
21
|
internalNotes: string | null;
|
|
22
22
|
createdAt: string;
|
|
23
23
|
updatedAt: string;
|
|
24
|
+
startsAt?: string | null | undefined;
|
|
25
|
+
endsAt?: string | null | undefined;
|
|
26
|
+
communicationLanguage?: string | null | undefined;
|
|
27
|
+
contactFirstName?: string | null | undefined;
|
|
28
|
+
contactLastName?: string | null | undefined;
|
|
29
|
+
contactEmail?: string | null | undefined;
|
|
30
|
+
contactPhone?: string | null | undefined;
|
|
31
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
32
|
+
contactCountry?: string | null | undefined;
|
|
33
|
+
contactRegion?: string | null | undefined;
|
|
34
|
+
contactCity?: string | null | undefined;
|
|
35
|
+
contactAddressLine1?: string | null | undefined;
|
|
36
|
+
contactPostalCode?: string | null | undefined;
|
|
37
|
+
customerPaymentPolicy?: {
|
|
38
|
+
deposit: {
|
|
39
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
40
|
+
percent?: number | undefined;
|
|
41
|
+
amountCents?: number | undefined;
|
|
42
|
+
};
|
|
43
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
44
|
+
balanceDueDaysBeforeDeparture: number;
|
|
45
|
+
balanceDueMinDaysFromNow: number;
|
|
46
|
+
} | null | undefined;
|
|
24
47
|
}, Error, CancelBookingInput, unknown>;
|
|
25
48
|
//# sourceMappingURL=use-booking-cancel-mutation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-cancel-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-cancel-mutation.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"use-booking-cancel-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-cancel-mutation.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAmBzD"}
|
|
@@ -20,7 +20,7 @@ export interface ConvertProductToBookingInput {
|
|
|
20
20
|
export declare function useBookingConvertMutation(): import("@tanstack/react-query").UseMutationResult<{
|
|
21
21
|
id: string;
|
|
22
22
|
bookingNumber: string;
|
|
23
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
23
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
24
24
|
personId: string | null;
|
|
25
25
|
organizationId: string | null;
|
|
26
26
|
sellCurrency: string;
|
|
@@ -33,5 +33,28 @@ export declare function useBookingConvertMutation(): import("@tanstack/react-que
|
|
|
33
33
|
internalNotes: string | null;
|
|
34
34
|
createdAt: string;
|
|
35
35
|
updatedAt: string;
|
|
36
|
+
startsAt?: string | null | undefined;
|
|
37
|
+
endsAt?: string | null | undefined;
|
|
38
|
+
communicationLanguage?: string | null | undefined;
|
|
39
|
+
contactFirstName?: string | null | undefined;
|
|
40
|
+
contactLastName?: string | null | undefined;
|
|
41
|
+
contactEmail?: string | null | undefined;
|
|
42
|
+
contactPhone?: string | null | undefined;
|
|
43
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
44
|
+
contactCountry?: string | null | undefined;
|
|
45
|
+
contactRegion?: string | null | undefined;
|
|
46
|
+
contactCity?: string | null | undefined;
|
|
47
|
+
contactAddressLine1?: string | null | undefined;
|
|
48
|
+
contactPostalCode?: string | null | undefined;
|
|
49
|
+
customerPaymentPolicy?: {
|
|
50
|
+
deposit: {
|
|
51
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
52
|
+
percent?: number | undefined;
|
|
53
|
+
amountCents?: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
56
|
+
balanceDueDaysBeforeDeparture: number;
|
|
57
|
+
balanceDueMinDaysFromNow: number;
|
|
58
|
+
} | null | undefined;
|
|
36
59
|
}, Error, ConvertProductToBookingInput, unknown>;
|
|
37
60
|
//# sourceMappingURL=use-booking-convert-mutation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-convert-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-convert-mutation.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB
|
|
1
|
+
{"version":3,"file":"use-booking-convert-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-convert-mutation.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAkBxC"}
|
|
@@ -28,6 +28,7 @@ declare const dualCreateResultSchema: z.ZodObject<{
|
|
|
28
28
|
status: z.ZodEnum<{
|
|
29
29
|
draft: "draft";
|
|
30
30
|
on_hold: "on_hold";
|
|
31
|
+
awaiting_payment: "awaiting_payment";
|
|
31
32
|
confirmed: "confirmed";
|
|
32
33
|
in_progress: "in_progress";
|
|
33
34
|
completed: "completed";
|
|
@@ -42,8 +43,35 @@ declare const dualCreateResultSchema: z.ZodObject<{
|
|
|
42
43
|
marginPercent: z.ZodNullable<z.ZodNumber>;
|
|
43
44
|
startDate: z.ZodNullable<z.ZodString>;
|
|
44
45
|
endDate: z.ZodNullable<z.ZodString>;
|
|
46
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
48
|
pax: z.ZodNullable<z.ZodNumber>;
|
|
46
49
|
internalNotes: z.ZodNullable<z.ZodString>;
|
|
50
|
+
communicationLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
contactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
contactPreferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
contactCountry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
contactRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
contactCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
contactAddressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
contactPostalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
62
|
+
deposit: z.ZodObject<{
|
|
63
|
+
kind: z.ZodEnum<{
|
|
64
|
+
none: "none";
|
|
65
|
+
percent: "percent";
|
|
66
|
+
fixed_cents: "fixed_cents";
|
|
67
|
+
}>;
|
|
68
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
72
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
73
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
47
75
|
createdAt: z.ZodString;
|
|
48
76
|
updatedAt: z.ZodString;
|
|
49
77
|
}, z.core.$strip>;
|
|
@@ -58,6 +86,7 @@ declare const dualCreateResultSchema: z.ZodObject<{
|
|
|
58
86
|
status: z.ZodEnum<{
|
|
59
87
|
draft: "draft";
|
|
60
88
|
on_hold: "on_hold";
|
|
89
|
+
awaiting_payment: "awaiting_payment";
|
|
61
90
|
confirmed: "confirmed";
|
|
62
91
|
in_progress: "in_progress";
|
|
63
92
|
completed: "completed";
|
|
@@ -72,8 +101,35 @@ declare const dualCreateResultSchema: z.ZodObject<{
|
|
|
72
101
|
marginPercent: z.ZodNullable<z.ZodNumber>;
|
|
73
102
|
startDate: z.ZodNullable<z.ZodString>;
|
|
74
103
|
endDate: z.ZodNullable<z.ZodString>;
|
|
104
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
106
|
pax: z.ZodNullable<z.ZodNumber>;
|
|
76
107
|
internalNotes: z.ZodNullable<z.ZodString>;
|
|
108
|
+
communicationLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
contactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
contactPreferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
contactCountry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
contactRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
contactCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
contactAddressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
contactPostalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
120
|
+
deposit: z.ZodObject<{
|
|
121
|
+
kind: z.ZodEnum<{
|
|
122
|
+
none: "none";
|
|
123
|
+
percent: "percent";
|
|
124
|
+
fixed_cents: "fixed_cents";
|
|
125
|
+
}>;
|
|
126
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
130
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
131
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
77
133
|
createdAt: z.ZodString;
|
|
78
134
|
updatedAt: z.ZodString;
|
|
79
135
|
}, z.core.$strip>;
|
|
@@ -98,7 +154,7 @@ export declare function useBookingDualCreateMutation(): import("@tanstack/react-
|
|
|
98
154
|
booking: {
|
|
99
155
|
id: string;
|
|
100
156
|
bookingNumber: string;
|
|
101
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
157
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
102
158
|
personId: string | null;
|
|
103
159
|
organizationId: string | null;
|
|
104
160
|
sellCurrency: string;
|
|
@@ -111,6 +167,29 @@ export declare function useBookingDualCreateMutation(): import("@tanstack/react-
|
|
|
111
167
|
internalNotes: string | null;
|
|
112
168
|
createdAt: string;
|
|
113
169
|
updatedAt: string;
|
|
170
|
+
startsAt?: string | null | undefined;
|
|
171
|
+
endsAt?: string | null | undefined;
|
|
172
|
+
communicationLanguage?: string | null | undefined;
|
|
173
|
+
contactFirstName?: string | null | undefined;
|
|
174
|
+
contactLastName?: string | null | undefined;
|
|
175
|
+
contactEmail?: string | null | undefined;
|
|
176
|
+
contactPhone?: string | null | undefined;
|
|
177
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
178
|
+
contactCountry?: string | null | undefined;
|
|
179
|
+
contactRegion?: string | null | undefined;
|
|
180
|
+
contactCity?: string | null | undefined;
|
|
181
|
+
contactAddressLine1?: string | null | undefined;
|
|
182
|
+
contactPostalCode?: string | null | undefined;
|
|
183
|
+
customerPaymentPolicy?: {
|
|
184
|
+
deposit: {
|
|
185
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
186
|
+
percent?: number | undefined;
|
|
187
|
+
amountCents?: number | undefined;
|
|
188
|
+
};
|
|
189
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
190
|
+
balanceDueDaysBeforeDeparture: number;
|
|
191
|
+
balanceDueMinDaysFromNow: number;
|
|
192
|
+
} | null | undefined;
|
|
114
193
|
};
|
|
115
194
|
travelers?: unknown[] | undefined;
|
|
116
195
|
paymentSchedules?: unknown[] | undefined;
|
|
@@ -120,7 +199,7 @@ export declare function useBookingDualCreateMutation(): import("@tanstack/react-
|
|
|
120
199
|
booking: {
|
|
121
200
|
id: string;
|
|
122
201
|
bookingNumber: string;
|
|
123
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
202
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
124
203
|
personId: string | null;
|
|
125
204
|
organizationId: string | null;
|
|
126
205
|
sellCurrency: string;
|
|
@@ -133,6 +212,29 @@ export declare function useBookingDualCreateMutation(): import("@tanstack/react-
|
|
|
133
212
|
internalNotes: string | null;
|
|
134
213
|
createdAt: string;
|
|
135
214
|
updatedAt: string;
|
|
215
|
+
startsAt?: string | null | undefined;
|
|
216
|
+
endsAt?: string | null | undefined;
|
|
217
|
+
communicationLanguage?: string | null | undefined;
|
|
218
|
+
contactFirstName?: string | null | undefined;
|
|
219
|
+
contactLastName?: string | null | undefined;
|
|
220
|
+
contactEmail?: string | null | undefined;
|
|
221
|
+
contactPhone?: string | null | undefined;
|
|
222
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
223
|
+
contactCountry?: string | null | undefined;
|
|
224
|
+
contactRegion?: string | null | undefined;
|
|
225
|
+
contactCity?: string | null | undefined;
|
|
226
|
+
contactAddressLine1?: string | null | undefined;
|
|
227
|
+
contactPostalCode?: string | null | undefined;
|
|
228
|
+
customerPaymentPolicy?: {
|
|
229
|
+
deposit: {
|
|
230
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
231
|
+
percent?: number | undefined;
|
|
232
|
+
amountCents?: number | undefined;
|
|
233
|
+
};
|
|
234
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
235
|
+
balanceDueDaysBeforeDeparture: number;
|
|
236
|
+
balanceDueMinDaysFromNow: number;
|
|
237
|
+
} | null | undefined;
|
|
136
238
|
};
|
|
137
239
|
travelers?: unknown[] | undefined;
|
|
138
240
|
paymentSchedules?: unknown[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-dual-create-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-dual-create-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAErF;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,CAAA;AAExF,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,aAAa,GAAG,OAAO,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,yBAAyB,CAAA;IAClC,SAAS,EAAE,yBAAyB,CAAA;IACpC,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B;AAED,QAAA,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"use-booking-dual-create-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-dual-create-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAErF;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,CAAA;AAExF,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,aAAa,GAAG,OAAO,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,yBAAyB,CAAA;IAClC,SAAS,EAAE,yBAAyB,CAAA;IACpC,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B;AAED,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB1B,CAAA;AAIF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE5E;;;;;;GAMG;AACH,wBAAgB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAkB3C"}
|
|
@@ -21,7 +21,7 @@ export declare function useBookingGroup(id: string | null | undefined, options?:
|
|
|
21
21
|
booking: {
|
|
22
22
|
id: string;
|
|
23
23
|
bookingNumber: string;
|
|
24
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
24
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
25
25
|
personId: string | null;
|
|
26
26
|
organizationId: string | null;
|
|
27
27
|
sellCurrency: string;
|
|
@@ -34,6 +34,29 @@ export declare function useBookingGroup(id: string | null | undefined, options?:
|
|
|
34
34
|
internalNotes: string | null;
|
|
35
35
|
createdAt: string;
|
|
36
36
|
updatedAt: string;
|
|
37
|
+
startsAt?: string | null | undefined;
|
|
38
|
+
endsAt?: string | null | undefined;
|
|
39
|
+
communicationLanguage?: string | null | undefined;
|
|
40
|
+
contactFirstName?: string | null | undefined;
|
|
41
|
+
contactLastName?: string | null | undefined;
|
|
42
|
+
contactEmail?: string | null | undefined;
|
|
43
|
+
contactPhone?: string | null | undefined;
|
|
44
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
45
|
+
contactCountry?: string | null | undefined;
|
|
46
|
+
contactRegion?: string | null | undefined;
|
|
47
|
+
contactCity?: string | null | undefined;
|
|
48
|
+
contactAddressLine1?: string | null | undefined;
|
|
49
|
+
contactPostalCode?: string | null | undefined;
|
|
50
|
+
customerPaymentPolicy?: {
|
|
51
|
+
deposit: {
|
|
52
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
53
|
+
percent?: number | undefined;
|
|
54
|
+
amountCents?: number | undefined;
|
|
55
|
+
};
|
|
56
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
57
|
+
balanceDueDaysBeforeDeparture: number;
|
|
58
|
+
balanceDueMinDaysFromNow: number;
|
|
59
|
+
} | null | undefined;
|
|
37
60
|
} | null;
|
|
38
61
|
}[];
|
|
39
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-group.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-group.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,eAAe,CAC7B,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7B,OAAO,GAAE,sBAA2B
|
|
1
|
+
{"version":3,"file":"use-booking-group.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-group.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,eAAe,CAC7B,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7B,OAAO,GAAE,sBAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UASrC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface CreateBookingInput {
|
|
2
2
|
bookingNumber: string;
|
|
3
|
-
status?: "draft" | "confirmed" | "in_progress" | "completed" | "cancelled";
|
|
3
|
+
status?: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
4
4
|
personId?: string | null;
|
|
5
5
|
organizationId?: string | null;
|
|
6
6
|
sellCurrency: string;
|
|
@@ -16,7 +16,7 @@ export declare function useBookingMutation(): {
|
|
|
16
16
|
create: import("@tanstack/react-query").UseMutationResult<{
|
|
17
17
|
id: string;
|
|
18
18
|
bookingNumber: string;
|
|
19
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
19
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
20
20
|
personId: string | null;
|
|
21
21
|
organizationId: string | null;
|
|
22
22
|
sellCurrency: string;
|
|
@@ -29,11 +29,34 @@ export declare function useBookingMutation(): {
|
|
|
29
29
|
internalNotes: string | null;
|
|
30
30
|
createdAt: string;
|
|
31
31
|
updatedAt: string;
|
|
32
|
+
startsAt?: string | null | undefined;
|
|
33
|
+
endsAt?: string | null | undefined;
|
|
34
|
+
communicationLanguage?: string | null | undefined;
|
|
35
|
+
contactFirstName?: string | null | undefined;
|
|
36
|
+
contactLastName?: string | null | undefined;
|
|
37
|
+
contactEmail?: string | null | undefined;
|
|
38
|
+
contactPhone?: string | null | undefined;
|
|
39
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
40
|
+
contactCountry?: string | null | undefined;
|
|
41
|
+
contactRegion?: string | null | undefined;
|
|
42
|
+
contactCity?: string | null | undefined;
|
|
43
|
+
contactAddressLine1?: string | null | undefined;
|
|
44
|
+
contactPostalCode?: string | null | undefined;
|
|
45
|
+
customerPaymentPolicy?: {
|
|
46
|
+
deposit: {
|
|
47
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
48
|
+
percent?: number | undefined;
|
|
49
|
+
amountCents?: number | undefined;
|
|
50
|
+
};
|
|
51
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
52
|
+
balanceDueDaysBeforeDeparture: number;
|
|
53
|
+
balanceDueMinDaysFromNow: number;
|
|
54
|
+
} | null | undefined;
|
|
32
55
|
}, Error, CreateBookingInput, unknown>;
|
|
33
56
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
34
57
|
id: string;
|
|
35
58
|
bookingNumber: string;
|
|
36
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
59
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
37
60
|
personId: string | null;
|
|
38
61
|
organizationId: string | null;
|
|
39
62
|
sellCurrency: string;
|
|
@@ -46,6 +69,29 @@ export declare function useBookingMutation(): {
|
|
|
46
69
|
internalNotes: string | null;
|
|
47
70
|
createdAt: string;
|
|
48
71
|
updatedAt: string;
|
|
72
|
+
startsAt?: string | null | undefined;
|
|
73
|
+
endsAt?: string | null | undefined;
|
|
74
|
+
communicationLanguage?: string | null | undefined;
|
|
75
|
+
contactFirstName?: string | null | undefined;
|
|
76
|
+
contactLastName?: string | null | undefined;
|
|
77
|
+
contactEmail?: string | null | undefined;
|
|
78
|
+
contactPhone?: string | null | undefined;
|
|
79
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
80
|
+
contactCountry?: string | null | undefined;
|
|
81
|
+
contactRegion?: string | null | undefined;
|
|
82
|
+
contactCity?: string | null | undefined;
|
|
83
|
+
contactAddressLine1?: string | null | undefined;
|
|
84
|
+
contactPostalCode?: string | null | undefined;
|
|
85
|
+
customerPaymentPolicy?: {
|
|
86
|
+
deposit: {
|
|
87
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
88
|
+
percent?: number | undefined;
|
|
89
|
+
amountCents?: number | undefined;
|
|
90
|
+
};
|
|
91
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
92
|
+
balanceDueDaysBeforeDeparture: number;
|
|
93
|
+
balanceDueMinDaysFromNow: number;
|
|
94
|
+
} | null | undefined;
|
|
49
95
|
}, Error, {
|
|
50
96
|
id: string;
|
|
51
97
|
input: UpdateBookingInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-mutation.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"use-booking-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-mutation.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EACH,OAAO,GACP,SAAS,GACT,kBAAkB,GAClB,WAAW,GACX,aAAa,GACb,WAAW,GACX,SAAS,GACT,WAAW,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAE5D,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBU,MAAM;eAAS,kBAAkB;;;;;EAgC5E"}
|
|
@@ -62,6 +62,7 @@ declare const quickCreateResultSchema: z.ZodObject<{
|
|
|
62
62
|
status: z.ZodEnum<{
|
|
63
63
|
draft: "draft";
|
|
64
64
|
on_hold: "on_hold";
|
|
65
|
+
awaiting_payment: "awaiting_payment";
|
|
65
66
|
confirmed: "confirmed";
|
|
66
67
|
in_progress: "in_progress";
|
|
67
68
|
completed: "completed";
|
|
@@ -76,8 +77,35 @@ declare const quickCreateResultSchema: z.ZodObject<{
|
|
|
76
77
|
marginPercent: z.ZodNullable<z.ZodNumber>;
|
|
77
78
|
startDate: z.ZodNullable<z.ZodString>;
|
|
78
79
|
endDate: z.ZodNullable<z.ZodString>;
|
|
80
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
82
|
pax: z.ZodNullable<z.ZodNumber>;
|
|
80
83
|
internalNotes: z.ZodNullable<z.ZodString>;
|
|
84
|
+
communicationLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
contactFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
contactLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
contactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
contactPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
contactPreferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
contactCountry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
contactRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
contactCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
contactAddressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
contactPostalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
|
+
deposit: z.ZodObject<{
|
|
97
|
+
kind: z.ZodEnum<{
|
|
98
|
+
none: "none";
|
|
99
|
+
percent: "percent";
|
|
100
|
+
fixed_cents: "fixed_cents";
|
|
101
|
+
}>;
|
|
102
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
106
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
107
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
81
109
|
createdAt: z.ZodString;
|
|
82
110
|
updatedAt: z.ZodString;
|
|
83
111
|
}, z.core.$strip>;
|
|
@@ -98,7 +126,7 @@ export declare function useBookingQuickCreateMutation(): import("@tanstack/react
|
|
|
98
126
|
booking: {
|
|
99
127
|
id: string;
|
|
100
128
|
bookingNumber: string;
|
|
101
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
129
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
102
130
|
personId: string | null;
|
|
103
131
|
organizationId: string | null;
|
|
104
132
|
sellCurrency: string;
|
|
@@ -111,6 +139,29 @@ export declare function useBookingQuickCreateMutation(): import("@tanstack/react
|
|
|
111
139
|
internalNotes: string | null;
|
|
112
140
|
createdAt: string;
|
|
113
141
|
updatedAt: string;
|
|
142
|
+
startsAt?: string | null | undefined;
|
|
143
|
+
endsAt?: string | null | undefined;
|
|
144
|
+
communicationLanguage?: string | null | undefined;
|
|
145
|
+
contactFirstName?: string | null | undefined;
|
|
146
|
+
contactLastName?: string | null | undefined;
|
|
147
|
+
contactEmail?: string | null | undefined;
|
|
148
|
+
contactPhone?: string | null | undefined;
|
|
149
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
150
|
+
contactCountry?: string | null | undefined;
|
|
151
|
+
contactRegion?: string | null | undefined;
|
|
152
|
+
contactCity?: string | null | undefined;
|
|
153
|
+
contactAddressLine1?: string | null | undefined;
|
|
154
|
+
contactPostalCode?: string | null | undefined;
|
|
155
|
+
customerPaymentPolicy?: {
|
|
156
|
+
deposit: {
|
|
157
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
158
|
+
percent?: number | undefined;
|
|
159
|
+
amountCents?: number | undefined;
|
|
160
|
+
};
|
|
161
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
162
|
+
balanceDueDaysBeforeDeparture: number;
|
|
163
|
+
balanceDueMinDaysFromNow: number;
|
|
164
|
+
} | null | undefined;
|
|
114
165
|
};
|
|
115
166
|
travelers?: unknown[] | undefined;
|
|
116
167
|
paymentSchedules?: unknown[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-quick-create-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-quick-create-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,QAA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,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B,SAAS,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACtC,gBAAgB,CAAC,EAAE,+BAA+B,EAAE,CAAA;IACpD,iBAAiB,CAAC,EAAE,iCAAiC,CAAA;IACrD,eAAe,CAAC,EAAE,+BAA+B,CAAA;CAClD;AAOD,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM3B,CAAA;AAIF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE9E;;;;;;GAMG;AACH,wBAAgB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAkB5C"}
|
|
@@ -12,7 +12,7 @@ export interface UpdateBookingStatusInput {
|
|
|
12
12
|
export declare function useBookingStatusMutation(bookingId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
13
13
|
id: string;
|
|
14
14
|
bookingNumber: string;
|
|
15
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
15
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
16
16
|
personId: string | null;
|
|
17
17
|
organizationId: string | null;
|
|
18
18
|
sellCurrency: string;
|
|
@@ -25,6 +25,29 @@ export declare function useBookingStatusMutation(bookingId: string): import("@ta
|
|
|
25
25
|
internalNotes: string | null;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
|
+
startsAt?: string | null | undefined;
|
|
29
|
+
endsAt?: string | null | undefined;
|
|
30
|
+
communicationLanguage?: string | null | undefined;
|
|
31
|
+
contactFirstName?: string | null | undefined;
|
|
32
|
+
contactLastName?: string | null | undefined;
|
|
33
|
+
contactEmail?: string | null | undefined;
|
|
34
|
+
contactPhone?: string | null | undefined;
|
|
35
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
36
|
+
contactCountry?: string | null | undefined;
|
|
37
|
+
contactRegion?: string | null | undefined;
|
|
38
|
+
contactCity?: string | null | undefined;
|
|
39
|
+
contactAddressLine1?: string | null | undefined;
|
|
40
|
+
contactPostalCode?: string | null | undefined;
|
|
41
|
+
customerPaymentPolicy?: {
|
|
42
|
+
deposit: {
|
|
43
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
44
|
+
percent?: number | undefined;
|
|
45
|
+
amountCents?: number | undefined;
|
|
46
|
+
};
|
|
47
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
48
|
+
balanceDueDaysBeforeDeparture: number;
|
|
49
|
+
balanceDueMinDaysFromNow: number;
|
|
50
|
+
} | null | undefined;
|
|
28
51
|
}, Error, UpdateBookingStatusInput, unknown>;
|
|
29
52
|
export interface UpdateBookingStatusByIdInput extends UpdateBookingStatusInput {
|
|
30
53
|
bookingId: string;
|
|
@@ -39,7 +62,7 @@ export interface UpdateBookingStatusByIdInput extends UpdateBookingStatusInput {
|
|
|
39
62
|
export declare function useBookingStatusByIdMutation(): import("@tanstack/react-query").UseMutationResult<{
|
|
40
63
|
id: string;
|
|
41
64
|
bookingNumber: string;
|
|
42
|
-
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
65
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
43
66
|
personId: string | null;
|
|
44
67
|
organizationId: string | null;
|
|
45
68
|
sellCurrency: string;
|
|
@@ -52,6 +75,29 @@ export declare function useBookingStatusByIdMutation(): import("@tanstack/react-
|
|
|
52
75
|
internalNotes: string | null;
|
|
53
76
|
createdAt: string;
|
|
54
77
|
updatedAt: string;
|
|
78
|
+
startsAt?: string | null | undefined;
|
|
79
|
+
endsAt?: string | null | undefined;
|
|
80
|
+
communicationLanguage?: string | null | undefined;
|
|
81
|
+
contactFirstName?: string | null | undefined;
|
|
82
|
+
contactLastName?: string | null | undefined;
|
|
83
|
+
contactEmail?: string | null | undefined;
|
|
84
|
+
contactPhone?: string | null | undefined;
|
|
85
|
+
contactPreferredLanguage?: string | null | undefined;
|
|
86
|
+
contactCountry?: string | null | undefined;
|
|
87
|
+
contactRegion?: string | null | undefined;
|
|
88
|
+
contactCity?: string | null | undefined;
|
|
89
|
+
contactAddressLine1?: string | null | undefined;
|
|
90
|
+
contactPostalCode?: string | null | undefined;
|
|
91
|
+
customerPaymentPolicy?: {
|
|
92
|
+
deposit: {
|
|
93
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
94
|
+
percent?: number | undefined;
|
|
95
|
+
amountCents?: number | undefined;
|
|
96
|
+
};
|
|
97
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
98
|
+
balanceDueDaysBeforeDeparture: number;
|
|
99
|
+
balanceDueMinDaysFromNow: number;
|
|
100
|
+
} | null | undefined;
|
|
55
101
|
}, Error, UpdateBookingStatusByIdInput, unknown>;
|
|
56
102
|
export {};
|
|
57
103
|
//# sourceMappingURL=use-booking-status-mutation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-status-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-status-mutation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAAyB,MAAM,eAAe,CAAA;AAEzE,KAAK,aAAa,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;AAE5C,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,aAAa,EAAE,aAAa,CAAA;IAC5B,MAAM,EAAE,aAAa,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"use-booking-status-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-booking-status-mutation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAAyB,MAAM,eAAe,CAAA;AAEzE,KAAK,aAAa,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;AAE5C,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,aAAa,EAAE,aAAa,CAAA;IAC5B,MAAM,EAAE,aAAa,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA0BzD;AAED,MAAM,WAAW,4BAA6B,SAAQ,wBAAwB;IAC5E,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA4B3C"}
|