@voyantjs/customer-portal-react 0.3.1 → 0.4.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.
Files changed (35) hide show
  1. package/dist/hooks/index.d.ts +1 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +1 -0
  4. package/dist/hooks/use-customer-portal-booking-billing-contact.d.ts +17 -0
  5. package/dist/hooks/use-customer-portal-booking-billing-contact.d.ts.map +1 -0
  6. package/dist/hooks/use-customer-portal-booking-billing-contact.js +12 -0
  7. package/dist/hooks/use-customer-portal-booking-documents.d.ts +4 -1
  8. package/dist/hooks/use-customer-portal-booking-documents.d.ts.map +1 -1
  9. package/dist/hooks/use-customer-portal-booking.d.ts +46 -1
  10. package/dist/hooks/use-customer-portal-booking.d.ts.map +1 -1
  11. package/dist/hooks/use-customer-portal-bookings.d.ts +2 -0
  12. package/dist/hooks/use-customer-portal-bookings.d.ts.map +1 -1
  13. package/dist/hooks/use-customer-portal-companions.d.ts +25 -0
  14. package/dist/hooks/use-customer-portal-companions.d.ts.map +1 -1
  15. package/dist/hooks/use-customer-portal-mutation.d.ts +237 -0
  16. package/dist/hooks/use-customer-portal-mutation.d.ts.map +1 -1
  17. package/dist/hooks/use-customer-portal-mutation.js +8 -1
  18. package/dist/hooks/use-customer-portal-profile.d.ts +32 -0
  19. package/dist/hooks/use-customer-portal-profile.d.ts.map +1 -1
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +2 -2
  23. package/dist/operations.d.ts +290 -3
  24. package/dist/operations.d.ts.map +1 -1
  25. package/dist/operations.js +10 -1
  26. package/dist/query-keys.d.ts +1 -0
  27. package/dist/query-keys.d.ts.map +1 -1
  28. package/dist/query-keys.js +1 -0
  29. package/dist/query-options.d.ts +492 -8
  30. package/dist/query-options.d.ts.map +1 -1
  31. package/dist/query-options.js +7 -1
  32. package/dist/schemas.d.ts +354 -2
  33. package/dist/schemas.d.ts.map +1 -1
  34. package/dist/schemas.js +4 -2
  35. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { defaultFetcher, fetchWithValidation, VoyantApiError, withQueryParams, } from "./client.js";
2
2
  export * from "./hooks/index.js";
3
- export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
3
+ export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, importCustomerPortalBookingParticipants, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
4
4
  export { useVoyantCustomerPortalContext, VoyantCustomerPortalProvider, } from "./provider.js";
5
5
  export { customerPortalQueryKeys } from "./query-keys.js";
6
- export { getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
6
+ export { getCustomerPortalBookingBillingContactQueryOptions, getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
7
7
  export * from "./schemas.js";
@@ -1,5 +1,5 @@
1
1
  import { type FetchWithValidationOptions } from "./client.js";
2
- import { type BootstrapCustomerPortalInput, type CreateCustomerPortalCompanionInput, type UpdateCustomerPortalCompanionInput, type UpdateCustomerPortalProfileInput } from "./schemas.js";
2
+ import { type BootstrapCustomerPortalInput, type CreateCustomerPortalCompanionInput, type ImportCustomerPortalBookingParticipantsInput, type UpdateCustomerPortalCompanionInput, type UpdateCustomerPortalProfileInput } from "./schemas.js";
3
3
  export declare function getCustomerPortalContactExists(client: FetchWithValidationOptions, email: string): Promise<{
4
4
  data: {
5
5
  email: string;
@@ -21,13 +21,33 @@ export declare function getCustomerPortalProfile(client: FetchWithValidationOpti
21
21
  email: string;
22
22
  emailVerified: boolean;
23
23
  firstName: string | null;
24
+ middleName: string | null;
24
25
  lastName: string | null;
25
26
  avatarUrl: string | null;
26
27
  locale: string;
27
28
  timezone: string | null;
28
29
  seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
30
+ dateOfBirth: string | null;
31
+ address: {
32
+ country: string | null;
33
+ state: string | null;
34
+ city: string | null;
35
+ postalCode: string | null;
36
+ addressLine1: string | null;
37
+ addressLine2: string | null;
38
+ } | null;
39
+ documents: {
40
+ type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
41
+ number: string;
42
+ issuingAuthority: string | null;
43
+ issuingCountry: string;
44
+ nationality: string | null;
45
+ expiryDate: string;
46
+ issueDate: string | null;
47
+ }[];
29
48
  marketingConsent: boolean;
30
49
  marketingConsentAt: string | null;
50
+ marketingConsentSource: string | null;
31
51
  notificationDefaults: Record<string, unknown> | null;
32
52
  uiPrefs: Record<string, unknown> | null;
33
53
  customerRecord: {
@@ -42,6 +62,18 @@ export declare function getCustomerPortalProfile(client: FetchWithValidationOpti
42
62
  address: string | null;
43
63
  city: string | null;
44
64
  country: string | null;
65
+ billingAddress: {
66
+ id: string;
67
+ label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
68
+ fullText: string | null;
69
+ line1: string | null;
70
+ line2: string | null;
71
+ city: string | null;
72
+ region: string | null;
73
+ postalCode: string | null;
74
+ country: string | null;
75
+ isPrimary: boolean;
76
+ } | null;
45
77
  relation: string | null;
46
78
  status: string;
47
79
  } | null;
@@ -53,13 +85,33 @@ export declare function updateCustomerPortalProfile(client: FetchWithValidationO
53
85
  email: string;
54
86
  emailVerified: boolean;
55
87
  firstName: string | null;
88
+ middleName: string | null;
56
89
  lastName: string | null;
57
90
  avatarUrl: string | null;
58
91
  locale: string;
59
92
  timezone: string | null;
60
93
  seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
94
+ dateOfBirth: string | null;
95
+ address: {
96
+ country: string | null;
97
+ state: string | null;
98
+ city: string | null;
99
+ postalCode: string | null;
100
+ addressLine1: string | null;
101
+ addressLine2: string | null;
102
+ } | null;
103
+ documents: {
104
+ type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
105
+ number: string;
106
+ issuingAuthority: string | null;
107
+ issuingCountry: string;
108
+ nationality: string | null;
109
+ expiryDate: string;
110
+ issueDate: string | null;
111
+ }[];
61
112
  marketingConsent: boolean;
62
113
  marketingConsentAt: string | null;
114
+ marketingConsentSource: string | null;
63
115
  notificationDefaults: Record<string, unknown> | null;
64
116
  uiPrefs: Record<string, unknown> | null;
65
117
  customerRecord: {
@@ -74,6 +126,18 @@ export declare function updateCustomerPortalProfile(client: FetchWithValidationO
74
126
  address: string | null;
75
127
  city: string | null;
76
128
  country: string | null;
129
+ billingAddress: {
130
+ id: string;
131
+ label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
132
+ fullText: string | null;
133
+ line1: string | null;
134
+ line2: string | null;
135
+ city: string | null;
136
+ region: string | null;
137
+ postalCode: string | null;
138
+ country: string | null;
139
+ isPrimary: boolean;
140
+ } | null;
77
141
  relation: string | null;
78
142
  status: string;
79
143
  } | null;
@@ -87,13 +151,33 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
87
151
  email: string;
88
152
  emailVerified: boolean;
89
153
  firstName: string | null;
154
+ middleName: string | null;
90
155
  lastName: string | null;
91
156
  avatarUrl: string | null;
92
157
  locale: string;
93
158
  timezone: string | null;
94
159
  seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
160
+ dateOfBirth: string | null;
161
+ address: {
162
+ country: string | null;
163
+ state: string | null;
164
+ city: string | null;
165
+ postalCode: string | null;
166
+ addressLine1: string | null;
167
+ addressLine2: string | null;
168
+ } | null;
169
+ documents: {
170
+ type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
171
+ number: string;
172
+ issuingAuthority: string | null;
173
+ issuingCountry: string;
174
+ nationality: string | null;
175
+ expiryDate: string;
176
+ issueDate: string | null;
177
+ }[];
95
178
  marketingConsent: boolean;
96
179
  marketingConsentAt: string | null;
180
+ marketingConsentSource: string | null;
97
181
  notificationDefaults: Record<string, unknown> | null;
98
182
  uiPrefs: Record<string, unknown> | null;
99
183
  customerRecord: {
@@ -108,6 +192,18 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
108
192
  address: string | null;
109
193
  city: string | null;
110
194
  country: string | null;
195
+ billingAddress: {
196
+ id: string;
197
+ label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
198
+ fullText: string | null;
199
+ line1: string | null;
200
+ line2: string | null;
201
+ city: string | null;
202
+ region: string | null;
203
+ postalCode: string | null;
204
+ country: string | null;
205
+ isPrimary: boolean;
206
+ } | null;
111
207
  relation: string | null;
112
208
  status: string;
113
209
  } | null;
@@ -124,6 +220,18 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
124
220
  address: string | null;
125
221
  city: string | null;
126
222
  country: string | null;
223
+ billingAddress: {
224
+ id: string;
225
+ label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
226
+ fullText: string | null;
227
+ line1: string | null;
228
+ line2: string | null;
229
+ city: string | null;
230
+ region: string | null;
231
+ postalCode: string | null;
232
+ country: string | null;
233
+ isPrimary: boolean;
234
+ } | null;
127
235
  relation: string | null;
128
236
  status: string;
129
237
  linkable: boolean;
@@ -141,6 +249,31 @@ export declare function listCustomerPortalCompanions(client: FetchWithValidation
141
249
  phone: string | null;
142
250
  isPrimary: boolean;
143
251
  notes: string | null;
252
+ typeKey: string | null;
253
+ person: {
254
+ firstName: string | null;
255
+ middleName: string | null;
256
+ lastName: string | null;
257
+ dateOfBirth: string | null;
258
+ addresses: {
259
+ type: string | null;
260
+ country: string | null;
261
+ state: string | null;
262
+ city: string | null;
263
+ postalCode: string | null;
264
+ addressLine1: string | null;
265
+ addressLine2: string | null;
266
+ isDefault: boolean;
267
+ }[];
268
+ documents: {
269
+ type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
270
+ number: string | null;
271
+ issuingAuthority: string | null;
272
+ country: string | null;
273
+ issueDate: string | null;
274
+ expiryDate: string | null;
275
+ }[];
276
+ };
144
277
  metadata: Record<string, unknown> | null;
145
278
  }[];
146
279
  }>;
@@ -154,9 +287,75 @@ export declare function createCustomerPortalCompanion(client: FetchWithValidatio
154
287
  phone: string | null;
155
288
  isPrimary: boolean;
156
289
  notes: string | null;
290
+ typeKey: string | null;
291
+ person: {
292
+ firstName: string | null;
293
+ middleName: string | null;
294
+ lastName: string | null;
295
+ dateOfBirth: string | null;
296
+ addresses: {
297
+ type: string | null;
298
+ country: string | null;
299
+ state: string | null;
300
+ city: string | null;
301
+ postalCode: string | null;
302
+ addressLine1: string | null;
303
+ addressLine2: string | null;
304
+ isDefault: boolean;
305
+ }[];
306
+ documents: {
307
+ type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
308
+ number: string | null;
309
+ issuingAuthority: string | null;
310
+ country: string | null;
311
+ issueDate: string | null;
312
+ expiryDate: string | null;
313
+ }[];
314
+ };
157
315
  metadata: Record<string, unknown> | null;
158
316
  };
159
317
  }>;
318
+ export declare function importCustomerPortalBookingParticipants(client: FetchWithValidationOptions, input?: ImportCustomerPortalBookingParticipantsInput): Promise<{
319
+ data: {
320
+ created: {
321
+ id: string;
322
+ role: string;
323
+ name: string;
324
+ title: string | null;
325
+ email: string | null;
326
+ phone: string | null;
327
+ isPrimary: boolean;
328
+ notes: string | null;
329
+ typeKey: string | null;
330
+ person: {
331
+ firstName: string | null;
332
+ middleName: string | null;
333
+ lastName: string | null;
334
+ dateOfBirth: string | null;
335
+ addresses: {
336
+ type: string | null;
337
+ country: string | null;
338
+ state: string | null;
339
+ city: string | null;
340
+ postalCode: string | null;
341
+ addressLine1: string | null;
342
+ addressLine2: string | null;
343
+ isDefault: boolean;
344
+ }[];
345
+ documents: {
346
+ type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
347
+ number: string | null;
348
+ issuingAuthority: string | null;
349
+ country: string | null;
350
+ issueDate: string | null;
351
+ expiryDate: string | null;
352
+ }[];
353
+ };
354
+ metadata: Record<string, unknown> | null;
355
+ }[];
356
+ skippedCount: number;
357
+ };
358
+ }>;
160
359
  export declare function updateCustomerPortalCompanion(client: FetchWithValidationOptions, companionId: string, input: UpdateCustomerPortalCompanionInput): Promise<{
161
360
  data: {
162
361
  id: string;
@@ -167,6 +366,31 @@ export declare function updateCustomerPortalCompanion(client: FetchWithValidatio
167
366
  phone: string | null;
168
367
  isPrimary: boolean;
169
368
  notes: string | null;
369
+ typeKey: string | null;
370
+ person: {
371
+ firstName: string | null;
372
+ middleName: string | null;
373
+ lastName: string | null;
374
+ dateOfBirth: string | null;
375
+ addresses: {
376
+ type: string | null;
377
+ country: string | null;
378
+ state: string | null;
379
+ city: string | null;
380
+ postalCode: string | null;
381
+ addressLine1: string | null;
382
+ addressLine2: string | null;
383
+ isDefault: boolean;
384
+ }[];
385
+ documents: {
386
+ type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
387
+ number: string | null;
388
+ issuingAuthority: string | null;
389
+ country: string | null;
390
+ issueDate: string | null;
391
+ expiryDate: string | null;
392
+ }[];
393
+ };
170
394
  metadata: Record<string, unknown> | null;
171
395
  };
172
396
  }>;
@@ -180,6 +404,8 @@ export declare function listCustomerPortalBookings(client: FetchWithValidationOp
180
404
  status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
181
405
  sellCurrency: string;
182
406
  sellAmountCents: number | null;
407
+ productTitle: string | null;
408
+ paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
183
409
  startDate: string | null;
184
410
  endDate: string | null;
185
411
  pax: number | null;
@@ -230,13 +456,58 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
230
456
  isPrimary: boolean;
231
457
  }[];
232
458
  }[];
459
+ billingContact: {
460
+ email: string | null;
461
+ phone: string | null;
462
+ firstName: string | null;
463
+ lastName: string | null;
464
+ country: string | null;
465
+ state: string | null;
466
+ city: string | null;
467
+ address1: string | null;
468
+ postal: string | null;
469
+ } | null;
233
470
  documents: {
234
471
  id: string;
472
+ source: "legal" | "finance" | "booking_document";
235
473
  participantId: string | null;
236
- type: "visa" | "insurance" | "health" | "passport_copy" | "other";
474
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
237
475
  fileName: string;
238
476
  fileUrl: string;
477
+ mimeType: string | null;
478
+ reference: string | null;
239
479
  }[];
480
+ financials: {
481
+ documents: {
482
+ invoiceId: string;
483
+ invoiceNumber: string;
484
+ invoiceType: "invoice" | "proforma" | "credit_note";
485
+ invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
486
+ currency: string;
487
+ totalCents: number;
488
+ paidCents: number;
489
+ balanceDueCents: number;
490
+ issueDate: string;
491
+ dueDate: string;
492
+ documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
493
+ format: "pdf" | "json" | "html" | "xml" | null;
494
+ generatedAt: string | null;
495
+ downloadUrl: string | null;
496
+ }[];
497
+ payments: {
498
+ id: string;
499
+ invoiceId: string;
500
+ invoiceNumber: string;
501
+ invoiceType: "invoice" | "proforma" | "credit_note";
502
+ status: "completed" | "pending" | "failed" | "refunded";
503
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
504
+ amountCents: number;
505
+ currency: string;
506
+ paymentDate: string;
507
+ referenceNumber: string | null;
508
+ notes: string | null;
509
+ }[];
510
+ };
240
511
  fulfillments: {
241
512
  id: string;
242
513
  bookingItemId: string | null;
@@ -248,13 +519,29 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
248
519
  }[];
249
520
  };
250
521
  }>;
522
+ export declare function getCustomerPortalBookingBillingContact(client: FetchWithValidationOptions, bookingId: string): Promise<{
523
+ data: {
524
+ email: string | null;
525
+ phone: string | null;
526
+ firstName: string | null;
527
+ lastName: string | null;
528
+ country: string | null;
529
+ state: string | null;
530
+ city: string | null;
531
+ address1: string | null;
532
+ postal: string | null;
533
+ };
534
+ }>;
251
535
  export declare function listCustomerPortalBookingDocuments(client: FetchWithValidationOptions, bookingId: string): Promise<{
252
536
  data: {
253
537
  id: string;
538
+ source: "legal" | "finance" | "booking_document";
254
539
  participantId: string | null;
255
- type: "visa" | "insurance" | "health" | "passport_copy" | "other";
540
+ type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
256
541
  fileName: string;
257
542
  fileUrl: string;
543
+ mimeType: string | null;
544
+ reference: string | null;
258
545
  }[];
259
546
  }>;
260
547
  //# sourceMappingURL=operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,kCAAkC,EAWvC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACtC,MAAM,cAAc,CAAA;AAErB,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,0BAA0B,EAAE,KAAK,EAAE,MAAM;;;;;;;GAM/F;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,MA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C;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM;;GAUpB;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;GAM5E;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM7F;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;;GAOlB;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;GAOlB"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { fetchWithValidation, withQueryParams } from "./client.js";
3
- import { customerPortalBookingDocumentsResponseSchema, customerPortalBookingResponseSchema, customerPortalBookingsResponseSchema, customerPortalBootstrapResponseSchema, customerPortalCompanionResponseSchema, customerPortalCompanionsResponseSchema, customerPortalContactExistsResponseSchema, customerPortalPhoneContactExistsResponseSchema, customerPortalProfileResponseSchema, successEnvelope, } from "./schemas.js";
3
+ import { customerPortalBookingBillingContactResponseSchema, customerPortalBookingDocumentsResponseSchema, customerPortalBookingResponseSchema, customerPortalBookingsResponseSchema, customerPortalBootstrapResponseSchema, customerPortalCompanionImportResponseSchema, customerPortalCompanionResponseSchema, customerPortalCompanionsResponseSchema, customerPortalContactExistsResponseSchema, customerPortalPhoneContactExistsResponseSchema, customerPortalProfileResponseSchema, successEnvelope, } from "./schemas.js";
4
4
  export function getCustomerPortalContactExists(client, email) {
5
5
  return fetchWithValidation(withQueryParams("/v1/customer-portal/contact-exists", { email }), customerPortalContactExistsResponseSchema, client);
6
6
  }
@@ -31,6 +31,12 @@ export function createCustomerPortalCompanion(client, input) {
31
31
  body: JSON.stringify(input),
32
32
  });
33
33
  }
34
+ export function importCustomerPortalBookingParticipants(client, input = {}) {
35
+ return fetchWithValidation("/v1/public/customer-portal/companions/import-booking-participants", customerPortalCompanionImportResponseSchema, client, {
36
+ method: "POST",
37
+ body: JSON.stringify(input),
38
+ });
39
+ }
34
40
  export function updateCustomerPortalCompanion(client, companionId, input) {
35
41
  return fetchWithValidation(`/v1/public/customer-portal/companions/${companionId}`, customerPortalCompanionResponseSchema, client, {
36
42
  method: "PATCH",
@@ -48,6 +54,9 @@ export function listCustomerPortalBookings(client) {
48
54
  export function getCustomerPortalBooking(client, bookingId) {
49
55
  return fetchWithValidation(`/v1/public/customer-portal/bookings/${bookingId}`, customerPortalBookingResponseSchema, client);
50
56
  }
57
+ export function getCustomerPortalBookingBillingContact(client, bookingId) {
58
+ return fetchWithValidation(`/v1/public/customer-portal/bookings/${bookingId}/billing-contact`, customerPortalBookingBillingContactResponseSchema, client);
59
+ }
51
60
  export function listCustomerPortalBookingDocuments(client, bookingId) {
52
61
  return fetchWithValidation(`/v1/public/customer-portal/bookings/${bookingId}/documents`, customerPortalBookingDocumentsResponseSchema, client);
53
62
  }
@@ -10,6 +10,7 @@ export declare const customerPortalQueryKeys: {
10
10
  companions: () => readonly ["customer-portal", "companions"];
11
11
  bookings: () => readonly ["customer-portal", "bookings"];
12
12
  booking: (bookingId: string) => readonly ["customer-portal", "bookings", string];
13
+ bookingBillingContact: (bookingId: string) => readonly ["customer-portal", "bookings", string, "billing-contact"];
13
14
  bookingDocuments: (bookingId: string) => readonly ["customer-portal", "bookings", string, "documents"];
14
15
  contactExists: () => readonly ["customer-portal", "contact-exists"];
15
16
  contactExistsLookup: (filters: CustomerPortalContactExistsFilters) => readonly ["customer-portal", "contact-exists", CustomerPortalContactExistsFilters];
@@ -1 +1 @@
1
- {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,uBAAuB;;;;;yBAKb,MAAM;kCACG,MAAM;;mCAGL,kCAAkC;;wCAG7B,uCAAuC;CAE5E,CAAA"}
1
+ {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,uBAAuB;;;;;yBAKb,MAAM;uCACQ,MAAM;kCAEX,MAAM;;mCAGL,kCAAkC;;wCAG7B,uCAAuC;CAE5E,CAAA"}
@@ -4,6 +4,7 @@ export const customerPortalQueryKeys = {
4
4
  companions: () => [...customerPortalQueryKeys.all, "companions"],
5
5
  bookings: () => [...customerPortalQueryKeys.all, "bookings"],
6
6
  booking: (bookingId) => [...customerPortalQueryKeys.bookings(), bookingId],
7
+ bookingBillingContact: (bookingId) => [...customerPortalQueryKeys.booking(bookingId), "billing-contact"],
7
8
  bookingDocuments: (bookingId) => [...customerPortalQueryKeys.booking(bookingId), "documents"],
8
9
  contactExists: () => [...customerPortalQueryKeys.all, "contact-exists"],
9
10
  contactExistsLookup: (filters) => [...customerPortalQueryKeys.contactExists(), filters],