@voyantjs/customer-portal-react 0.2.0

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.
Files changed (46) hide show
  1. package/dist/client.d.ts +16 -0
  2. package/dist/client.d.ts.map +1 -0
  3. package/dist/client.js +78 -0
  4. package/dist/hooks/index.d.ts +8 -0
  5. package/dist/hooks/index.d.ts.map +1 -0
  6. package/dist/hooks/index.js +7 -0
  7. package/dist/hooks/use-customer-portal-booking-documents.d.ts +13 -0
  8. package/dist/hooks/use-customer-portal-booking-documents.d.ts.map +1 -0
  9. package/dist/hooks/use-customer-portal-booking-documents.js +12 -0
  10. package/dist/hooks/use-customer-portal-booking.d.ts +63 -0
  11. package/dist/hooks/use-customer-portal-booking.d.ts.map +1 -0
  12. package/dist/hooks/use-customer-portal-booking.js +12 -0
  13. package/dist/hooks/use-customer-portal-bookings.d.ts +20 -0
  14. package/dist/hooks/use-customer-portal-bookings.d.ts.map +1 -0
  15. package/dist/hooks/use-customer-portal-bookings.js +12 -0
  16. package/dist/hooks/use-customer-portal-companions.d.ts +17 -0
  17. package/dist/hooks/use-customer-portal-companions.d.ts.map +1 -0
  18. package/dist/hooks/use-customer-portal-companions.js +12 -0
  19. package/dist/hooks/use-customer-portal-contact-exists.d.ts +12 -0
  20. package/dist/hooks/use-customer-portal-contact-exists.d.ts.map +1 -0
  21. package/dist/hooks/use-customer-portal-contact-exists.js +12 -0
  22. package/dist/hooks/use-customer-portal-mutation.d.ts +167 -0
  23. package/dist/hooks/use-customer-portal-mutation.d.ts.map +1 -0
  24. package/dist/hooks/use-customer-portal-mutation.js +54 -0
  25. package/dist/hooks/use-customer-portal-profile.d.ts +36 -0
  26. package/dist/hooks/use-customer-portal-profile.d.ts.map +1 -0
  27. package/dist/hooks/use-customer-portal-profile.js +12 -0
  28. package/dist/index.d.ts +9 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +7 -0
  31. package/dist/operations.d.ts +253 -0
  32. package/dist/operations.d.ts.map +1 -0
  33. package/dist/operations.js +50 -0
  34. package/dist/provider.d.ts +2 -0
  35. package/dist/provider.d.ts.map +1 -0
  36. package/dist/provider.js +1 -0
  37. package/dist/query-keys.d.ts +14 -0
  38. package/dist/query-keys.d.ts.map +1 -0
  39. package/dist/query-keys.js +10 -0
  40. package/dist/query-options.d.ts +576 -0
  41. package/dist/query-options.d.ts.map +1 -0
  42. package/dist/query-options.js +40 -0
  43. package/dist/schemas.d.ts +321 -0
  44. package/dist/schemas.d.ts.map +1 -0
  45. package/dist/schemas.js +14 -0
  46. package/package.json +84 -0
@@ -0,0 +1,576 @@
1
+ import type { FetchWithValidationOptions } from "./client.js";
2
+ import { type CustomerPortalContactExistsFilters } from "./query-keys.js";
3
+ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
4
+ data: {
5
+ userId: string;
6
+ email: string;
7
+ emailVerified: boolean;
8
+ firstName: string | null;
9
+ lastName: string | null;
10
+ avatarUrl: string | null;
11
+ locale: string;
12
+ timezone: string | null;
13
+ seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
14
+ marketingConsent: boolean;
15
+ marketingConsentAt: string | null;
16
+ notificationDefaults: Record<string, unknown> | null;
17
+ uiPrefs: Record<string, unknown> | null;
18
+ customerRecord: {
19
+ id: string;
20
+ firstName: string;
21
+ lastName: string;
22
+ preferredLanguage: string | null;
23
+ preferredCurrency: string | null;
24
+ birthday: string | null;
25
+ email: string | null;
26
+ phone: string | null;
27
+ address: string | null;
28
+ city: string | null;
29
+ country: string | null;
30
+ relation: string | null;
31
+ status: string;
32
+ } | null;
33
+ };
34
+ }, Error, {
35
+ data: {
36
+ userId: string;
37
+ email: string;
38
+ emailVerified: boolean;
39
+ firstName: string | null;
40
+ lastName: string | null;
41
+ avatarUrl: string | null;
42
+ locale: string;
43
+ timezone: string | null;
44
+ seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
45
+ marketingConsent: boolean;
46
+ marketingConsentAt: string | null;
47
+ notificationDefaults: Record<string, unknown> | null;
48
+ uiPrefs: Record<string, unknown> | null;
49
+ customerRecord: {
50
+ id: string;
51
+ firstName: string;
52
+ lastName: string;
53
+ preferredLanguage: string | null;
54
+ preferredCurrency: string | null;
55
+ birthday: string | null;
56
+ email: string | null;
57
+ phone: string | null;
58
+ address: string | null;
59
+ city: string | null;
60
+ country: string | null;
61
+ relation: string | null;
62
+ status: string;
63
+ } | null;
64
+ };
65
+ }, readonly ["customer-portal", "profile"]>, "queryFn"> & {
66
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
67
+ data: {
68
+ userId: string;
69
+ email: string;
70
+ emailVerified: boolean;
71
+ firstName: string | null;
72
+ lastName: string | null;
73
+ avatarUrl: string | null;
74
+ locale: string;
75
+ timezone: string | null;
76
+ seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
77
+ marketingConsent: boolean;
78
+ marketingConsentAt: string | null;
79
+ notificationDefaults: Record<string, unknown> | null;
80
+ uiPrefs: Record<string, unknown> | null;
81
+ customerRecord: {
82
+ id: string;
83
+ firstName: string;
84
+ lastName: string;
85
+ preferredLanguage: string | null;
86
+ preferredCurrency: string | null;
87
+ birthday: string | null;
88
+ email: string | null;
89
+ phone: string | null;
90
+ address: string | null;
91
+ city: string | null;
92
+ country: string | null;
93
+ relation: string | null;
94
+ status: string;
95
+ } | null;
96
+ };
97
+ }, readonly ["customer-portal", "profile"], never> | undefined;
98
+ } & {
99
+ queryKey: readonly ["customer-portal", "profile"] & {
100
+ [dataTagSymbol]: {
101
+ data: {
102
+ userId: string;
103
+ email: string;
104
+ emailVerified: boolean;
105
+ firstName: string | null;
106
+ lastName: string | null;
107
+ avatarUrl: string | null;
108
+ locale: string;
109
+ timezone: string | null;
110
+ seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
111
+ marketingConsent: boolean;
112
+ marketingConsentAt: string | null;
113
+ notificationDefaults: Record<string, unknown> | null;
114
+ uiPrefs: Record<string, unknown> | null;
115
+ customerRecord: {
116
+ id: string;
117
+ firstName: string;
118
+ lastName: string;
119
+ preferredLanguage: string | null;
120
+ preferredCurrency: string | null;
121
+ birthday: string | null;
122
+ email: string | null;
123
+ phone: string | null;
124
+ address: string | null;
125
+ city: string | null;
126
+ country: string | null;
127
+ relation: string | null;
128
+ status: string;
129
+ } | null;
130
+ };
131
+ };
132
+ [dataTagErrorSymbol]: Error;
133
+ };
134
+ };
135
+ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
136
+ data: {
137
+ id: string;
138
+ role: string;
139
+ name: string;
140
+ title: string | null;
141
+ email: string | null;
142
+ phone: string | null;
143
+ isPrimary: boolean;
144
+ notes: string | null;
145
+ metadata: Record<string, unknown> | null;
146
+ }[];
147
+ }, Error, {
148
+ data: {
149
+ id: string;
150
+ role: string;
151
+ name: string;
152
+ title: string | null;
153
+ email: string | null;
154
+ phone: string | null;
155
+ isPrimary: boolean;
156
+ notes: string | null;
157
+ metadata: Record<string, unknown> | null;
158
+ }[];
159
+ }, readonly ["customer-portal", "companions"]>, "queryFn"> & {
160
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
161
+ data: {
162
+ id: string;
163
+ role: string;
164
+ name: string;
165
+ title: string | null;
166
+ email: string | null;
167
+ phone: string | null;
168
+ isPrimary: boolean;
169
+ notes: string | null;
170
+ metadata: Record<string, unknown> | null;
171
+ }[];
172
+ }, readonly ["customer-portal", "companions"], never> | undefined;
173
+ } & {
174
+ queryKey: readonly ["customer-portal", "companions"] & {
175
+ [dataTagSymbol]: {
176
+ data: {
177
+ id: string;
178
+ role: string;
179
+ name: string;
180
+ title: string | null;
181
+ email: string | null;
182
+ phone: string | null;
183
+ isPrimary: boolean;
184
+ notes: string | null;
185
+ metadata: Record<string, unknown> | null;
186
+ }[];
187
+ };
188
+ [dataTagErrorSymbol]: Error;
189
+ };
190
+ };
191
+ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
192
+ data: {
193
+ bookingId: string;
194
+ bookingNumber: string;
195
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
196
+ sellCurrency: string;
197
+ sellAmountCents: number | null;
198
+ startDate: string | null;
199
+ endDate: string | null;
200
+ pax: number | null;
201
+ confirmedAt: string | null;
202
+ completedAt: string | null;
203
+ participantCount: number;
204
+ primaryTravelerName: string | null;
205
+ }[];
206
+ }, Error, {
207
+ data: {
208
+ bookingId: string;
209
+ bookingNumber: string;
210
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
211
+ sellCurrency: string;
212
+ sellAmountCents: number | null;
213
+ startDate: string | null;
214
+ endDate: string | null;
215
+ pax: number | null;
216
+ confirmedAt: string | null;
217
+ completedAt: string | null;
218
+ participantCount: number;
219
+ primaryTravelerName: string | null;
220
+ }[];
221
+ }, readonly ["customer-portal", "bookings"]>, "queryFn"> & {
222
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
223
+ data: {
224
+ bookingId: string;
225
+ bookingNumber: string;
226
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
227
+ sellCurrency: string;
228
+ sellAmountCents: number | null;
229
+ startDate: string | null;
230
+ endDate: string | null;
231
+ pax: number | null;
232
+ confirmedAt: string | null;
233
+ completedAt: string | null;
234
+ participantCount: number;
235
+ primaryTravelerName: string | null;
236
+ }[];
237
+ }, readonly ["customer-portal", "bookings"], never> | undefined;
238
+ } & {
239
+ queryKey: readonly ["customer-portal", "bookings"] & {
240
+ [dataTagSymbol]: {
241
+ data: {
242
+ bookingId: string;
243
+ bookingNumber: string;
244
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
245
+ sellCurrency: string;
246
+ sellAmountCents: number | null;
247
+ startDate: string | null;
248
+ endDate: string | null;
249
+ pax: number | null;
250
+ confirmedAt: string | null;
251
+ completedAt: string | null;
252
+ participantCount: number;
253
+ primaryTravelerName: string | null;
254
+ }[];
255
+ };
256
+ [dataTagErrorSymbol]: Error;
257
+ };
258
+ };
259
+ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithValidationOptions, bookingId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
260
+ data: {
261
+ bookingId: string;
262
+ bookingNumber: string;
263
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
264
+ sellCurrency: string;
265
+ sellAmountCents: number | null;
266
+ startDate: string | null;
267
+ endDate: string | null;
268
+ pax: number | null;
269
+ confirmedAt: string | null;
270
+ cancelledAt: string | null;
271
+ completedAt: string | null;
272
+ participants: {
273
+ id: string;
274
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
275
+ firstName: string;
276
+ lastName: string;
277
+ isPrimary: boolean;
278
+ }[];
279
+ items: {
280
+ id: string;
281
+ title: string;
282
+ description: string | null;
283
+ itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
284
+ status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
285
+ serviceDate: string | null;
286
+ startsAt: string | null;
287
+ endsAt: string | null;
288
+ quantity: number;
289
+ sellCurrency: string;
290
+ unitSellAmountCents: number | null;
291
+ totalSellAmountCents: number | null;
292
+ notes: string | null;
293
+ participantLinks: {
294
+ id: string;
295
+ participantId: string;
296
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
297
+ isPrimary: boolean;
298
+ }[];
299
+ }[];
300
+ documents: {
301
+ id: string;
302
+ participantId: string | null;
303
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
304
+ fileName: string;
305
+ fileUrl: string;
306
+ }[];
307
+ fulfillments: {
308
+ id: string;
309
+ bookingItemId: string | null;
310
+ participantId: string | null;
311
+ fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
312
+ deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
313
+ status: "pending" | "issued" | "reissued" | "revoked" | "failed";
314
+ artifactUrl: string | null;
315
+ }[];
316
+ };
317
+ }, Error, {
318
+ data: {
319
+ bookingId: string;
320
+ bookingNumber: string;
321
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
322
+ sellCurrency: string;
323
+ sellAmountCents: number | null;
324
+ startDate: string | null;
325
+ endDate: string | null;
326
+ pax: number | null;
327
+ confirmedAt: string | null;
328
+ cancelledAt: string | null;
329
+ completedAt: string | null;
330
+ participants: {
331
+ id: string;
332
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
333
+ firstName: string;
334
+ lastName: string;
335
+ isPrimary: boolean;
336
+ }[];
337
+ items: {
338
+ id: string;
339
+ title: string;
340
+ description: string | null;
341
+ itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
342
+ status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
343
+ serviceDate: string | null;
344
+ startsAt: string | null;
345
+ endsAt: string | null;
346
+ quantity: number;
347
+ sellCurrency: string;
348
+ unitSellAmountCents: number | null;
349
+ totalSellAmountCents: number | null;
350
+ notes: string | null;
351
+ participantLinks: {
352
+ id: string;
353
+ participantId: string;
354
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
355
+ isPrimary: boolean;
356
+ }[];
357
+ }[];
358
+ documents: {
359
+ id: string;
360
+ participantId: string | null;
361
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
362
+ fileName: string;
363
+ fileUrl: string;
364
+ }[];
365
+ fulfillments: {
366
+ id: string;
367
+ bookingItemId: string | null;
368
+ participantId: string | null;
369
+ fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
370
+ deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
371
+ status: "pending" | "issued" | "reissued" | "revoked" | "failed";
372
+ artifactUrl: string | null;
373
+ }[];
374
+ };
375
+ }, readonly ["customer-portal", "bookings", string]>, "queryFn"> & {
376
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
377
+ data: {
378
+ bookingId: string;
379
+ bookingNumber: string;
380
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
381
+ sellCurrency: string;
382
+ sellAmountCents: number | null;
383
+ startDate: string | null;
384
+ endDate: string | null;
385
+ pax: number | null;
386
+ confirmedAt: string | null;
387
+ cancelledAt: string | null;
388
+ completedAt: string | null;
389
+ participants: {
390
+ id: string;
391
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
392
+ firstName: string;
393
+ lastName: string;
394
+ isPrimary: boolean;
395
+ }[];
396
+ items: {
397
+ id: string;
398
+ title: string;
399
+ description: string | null;
400
+ itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
401
+ status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
402
+ serviceDate: string | null;
403
+ startsAt: string | null;
404
+ endsAt: string | null;
405
+ quantity: number;
406
+ sellCurrency: string;
407
+ unitSellAmountCents: number | null;
408
+ totalSellAmountCents: number | null;
409
+ notes: string | null;
410
+ participantLinks: {
411
+ id: string;
412
+ participantId: string;
413
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
414
+ isPrimary: boolean;
415
+ }[];
416
+ }[];
417
+ documents: {
418
+ id: string;
419
+ participantId: string | null;
420
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
421
+ fileName: string;
422
+ fileUrl: string;
423
+ }[];
424
+ fulfillments: {
425
+ id: string;
426
+ bookingItemId: string | null;
427
+ participantId: string | null;
428
+ fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
429
+ deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
430
+ status: "pending" | "issued" | "reissued" | "revoked" | "failed";
431
+ artifactUrl: string | null;
432
+ }[];
433
+ };
434
+ }, readonly ["customer-portal", "bookings", string], never> | undefined;
435
+ } & {
436
+ queryKey: readonly ["customer-portal", "bookings", string] & {
437
+ [dataTagSymbol]: {
438
+ data: {
439
+ bookingId: string;
440
+ bookingNumber: string;
441
+ status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
442
+ sellCurrency: string;
443
+ sellAmountCents: number | null;
444
+ startDate: string | null;
445
+ endDate: string | null;
446
+ pax: number | null;
447
+ confirmedAt: string | null;
448
+ cancelledAt: string | null;
449
+ completedAt: string | null;
450
+ participants: {
451
+ id: string;
452
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
453
+ firstName: string;
454
+ lastName: string;
455
+ isPrimary: boolean;
456
+ }[];
457
+ items: {
458
+ id: string;
459
+ title: string;
460
+ description: string | null;
461
+ itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
462
+ status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
463
+ serviceDate: string | null;
464
+ startsAt: string | null;
465
+ endsAt: string | null;
466
+ quantity: number;
467
+ sellCurrency: string;
468
+ unitSellAmountCents: number | null;
469
+ totalSellAmountCents: number | null;
470
+ notes: string | null;
471
+ participantLinks: {
472
+ id: string;
473
+ participantId: string;
474
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "service_assignee" | "beneficiary";
475
+ isPrimary: boolean;
476
+ }[];
477
+ }[];
478
+ documents: {
479
+ id: string;
480
+ participantId: string | null;
481
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
482
+ fileName: string;
483
+ fileUrl: string;
484
+ }[];
485
+ fulfillments: {
486
+ id: string;
487
+ bookingItemId: string | null;
488
+ participantId: string | null;
489
+ fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
490
+ deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
491
+ status: "pending" | "issued" | "reissued" | "revoked" | "failed";
492
+ artifactUrl: string | null;
493
+ }[];
494
+ };
495
+ };
496
+ [dataTagErrorSymbol]: Error;
497
+ };
498
+ };
499
+ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: FetchWithValidationOptions, bookingId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
500
+ data: {
501
+ id: string;
502
+ participantId: string | null;
503
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
504
+ fileName: string;
505
+ fileUrl: string;
506
+ }[];
507
+ }, Error, {
508
+ data: {
509
+ id: string;
510
+ participantId: string | null;
511
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
512
+ fileName: string;
513
+ fileUrl: string;
514
+ }[];
515
+ }, readonly ["customer-portal", "bookings", string, "documents"]>, "queryFn"> & {
516
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
517
+ data: {
518
+ id: string;
519
+ participantId: string | null;
520
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
521
+ fileName: string;
522
+ fileUrl: string;
523
+ }[];
524
+ }, readonly ["customer-portal", "bookings", string, "documents"], never> | undefined;
525
+ } & {
526
+ queryKey: readonly ["customer-portal", "bookings", string, "documents"] & {
527
+ [dataTagSymbol]: {
528
+ data: {
529
+ id: string;
530
+ participantId: string | null;
531
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other";
532
+ fileName: string;
533
+ fileUrl: string;
534
+ }[];
535
+ };
536
+ [dataTagErrorSymbol]: Error;
537
+ };
538
+ };
539
+ export declare function getCustomerPortalContactExistsQueryOptions(filters: CustomerPortalContactExistsFilters, client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
540
+ data: {
541
+ email: string;
542
+ authAccountExists: boolean;
543
+ customerRecordExists: boolean;
544
+ linkedCustomerRecordExists: boolean;
545
+ };
546
+ }, Error, {
547
+ data: {
548
+ email: string;
549
+ authAccountExists: boolean;
550
+ customerRecordExists: boolean;
551
+ linkedCustomerRecordExists: boolean;
552
+ };
553
+ }, readonly ["customer-portal", "contact-exists", CustomerPortalContactExistsFilters]>, "queryFn"> & {
554
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
555
+ data: {
556
+ email: string;
557
+ authAccountExists: boolean;
558
+ customerRecordExists: boolean;
559
+ linkedCustomerRecordExists: boolean;
560
+ };
561
+ }, readonly ["customer-portal", "contact-exists", CustomerPortalContactExistsFilters], never> | undefined;
562
+ } & {
563
+ queryKey: readonly ["customer-portal", "contact-exists", CustomerPortalContactExistsFilters] & {
564
+ [dataTagSymbol]: {
565
+ data: {
566
+ email: string;
567
+ authAccountExists: boolean;
568
+ customerRecordExists: boolean;
569
+ linkedCustomerRecordExists: boolean;
570
+ };
571
+ };
572
+ [dataTagErrorSymbol]: Error;
573
+ };
574
+ };
575
+ export type { CustomerPortalContactExistsFilters } from "./query-keys.js";
576
+ //# sourceMappingURL=query-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAS7D,OAAO,EAAE,KAAK,kCAAkC,EAA2B,MAAM,iBAAiB,CAAA;AAElG,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtF;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKzF;AAED,wBAAgB,qCAAqC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKvF;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlB;AAED,wBAAgB,6CAA6C,CAC3D,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlB;AAED,wBAAgB,0CAA0C,CACxD,OAAO,EAAE,kCAAkC,EAC3C,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMnC;AAED,YAAY,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { queryOptions } from "@tanstack/react-query";
3
+ import { getCustomerPortalBooking, getCustomerPortalContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, } from "./operations.js";
4
+ import { customerPortalQueryKeys } from "./query-keys.js";
5
+ export function getCustomerPortalProfileQueryOptions(client) {
6
+ return queryOptions({
7
+ queryKey: customerPortalQueryKeys.profile(),
8
+ queryFn: () => getCustomerPortalProfile(client),
9
+ });
10
+ }
11
+ export function getCustomerPortalCompanionsQueryOptions(client) {
12
+ return queryOptions({
13
+ queryKey: customerPortalQueryKeys.companions(),
14
+ queryFn: () => listCustomerPortalCompanions(client),
15
+ });
16
+ }
17
+ export function getCustomerPortalBookingsQueryOptions(client) {
18
+ return queryOptions({
19
+ queryKey: customerPortalQueryKeys.bookings(),
20
+ queryFn: () => listCustomerPortalBookings(client),
21
+ });
22
+ }
23
+ export function getCustomerPortalBookingQueryOptions(client, bookingId) {
24
+ return queryOptions({
25
+ queryKey: customerPortalQueryKeys.booking(bookingId),
26
+ queryFn: () => getCustomerPortalBooking(client, bookingId),
27
+ });
28
+ }
29
+ export function getCustomerPortalBookingDocumentsQueryOptions(client, bookingId) {
30
+ return queryOptions({
31
+ queryKey: customerPortalQueryKeys.bookingDocuments(bookingId),
32
+ queryFn: () => listCustomerPortalBookingDocuments(client, bookingId),
33
+ });
34
+ }
35
+ export function getCustomerPortalContactExistsQueryOptions(filters, client) {
36
+ return queryOptions({
37
+ queryKey: customerPortalQueryKeys.contactExistsLookup(filters),
38
+ queryFn: () => getCustomerPortalContactExists(client, filters.email),
39
+ });
40
+ }