@voyantjs/customer-portal-react 0.3.0 → 0.4.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 (38) hide show
  1. package/dist/hooks/index.d.ts +2 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +2 -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-phone-contact-exists.d.ts +11 -0
  19. package/dist/hooks/use-customer-portal-phone-contact-exists.d.ts.map +1 -0
  20. package/dist/hooks/use-customer-portal-phone-contact-exists.js +12 -0
  21. package/dist/hooks/use-customer-portal-profile.d.ts +32 -0
  22. package/dist/hooks/use-customer-portal-profile.d.ts.map +1 -1
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +2 -2
  26. package/dist/operations.d.ts +297 -3
  27. package/dist/operations.d.ts.map +1 -1
  28. package/dist/operations.js +13 -1
  29. package/dist/query-keys.d.ts +6 -0
  30. package/dist/query-keys.d.ts.map +1 -1
  31. package/dist/query-keys.js +3 -0
  32. package/dist/query-options.d.ts +526 -10
  33. package/dist/query-options.d.ts.map +1 -1
  34. package/dist/query-options.js +14 -2
  35. package/dist/schemas.d.ts +362 -2
  36. package/dist/schemas.d.ts.map +1 -1
  37. package/dist/schemas.js +5 -2
  38. package/package.json +5 -5
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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@@
1
1
  "use client";
2
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";
3
+ import { getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, } from "./operations.js";
4
+ import { customerPortalQueryKeys, } from "./query-keys.js";
5
5
  export function getCustomerPortalProfileQueryOptions(client) {
6
6
  return queryOptions({
7
7
  queryKey: customerPortalQueryKeys.profile(),
@@ -26,6 +26,12 @@ export function getCustomerPortalBookingQueryOptions(client, bookingId) {
26
26
  queryFn: () => getCustomerPortalBooking(client, bookingId),
27
27
  });
28
28
  }
29
+ export function getCustomerPortalBookingBillingContactQueryOptions(client, bookingId) {
30
+ return queryOptions({
31
+ queryKey: customerPortalQueryKeys.bookingBillingContact(bookingId),
32
+ queryFn: () => getCustomerPortalBookingBillingContact(client, bookingId),
33
+ });
34
+ }
29
35
  export function getCustomerPortalBookingDocumentsQueryOptions(client, bookingId) {
30
36
  return queryOptions({
31
37
  queryKey: customerPortalQueryKeys.bookingDocuments(bookingId),
@@ -38,3 +44,9 @@ export function getCustomerPortalContactExistsQueryOptions(filters, client) {
38
44
  queryFn: () => getCustomerPortalContactExists(client, filters.email),
39
45
  });
40
46
  }
47
+ export function getCustomerPortalPhoneContactExistsQueryOptions(filters, client) {
48
+ return queryOptions({
49
+ queryKey: customerPortalQueryKeys.phoneContactExistsLookup(filters),
50
+ queryFn: () => getCustomerPortalPhoneContactExists(client, filters.phone),
51
+ });
52
+ }
package/dist/schemas.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema } from "@voyantjs/customer-portal";
1
+ import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema } from "@voyantjs/customer-portal";
2
2
  import { z } from "zod";
3
3
  export declare const singleEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
4
4
  data: T;
@@ -9,13 +9,14 @@ export declare const arrayEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodOb
9
9
  export declare const successEnvelope: z.ZodObject<{
10
10
  success: z.ZodBoolean;
11
11
  }, z.core.$strip>;
12
- export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
12
+ export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
13
13
  export declare const customerPortalProfileResponseSchema: z.ZodObject<{
14
14
  data: z.ZodObject<{
15
15
  userId: z.ZodString;
16
16
  email: z.ZodString;
17
17
  emailVerified: z.ZodBoolean;
18
18
  firstName: z.ZodNullable<z.ZodString>;
19
+ middleName: z.ZodNullable<z.ZodString>;
19
20
  lastName: z.ZodNullable<z.ZodString>;
20
21
  avatarUrl: z.ZodNullable<z.ZodString>;
21
22
  locale: z.ZodString;
@@ -26,8 +27,33 @@ export declare const customerPortalProfileResponseSchema: z.ZodObject<{
26
27
  middle: "middle";
27
28
  no_preference: "no_preference";
28
29
  }>>;
30
+ dateOfBirth: z.ZodNullable<z.ZodString>;
31
+ address: z.ZodNullable<z.ZodObject<{
32
+ country: z.ZodNullable<z.ZodString>;
33
+ state: z.ZodNullable<z.ZodString>;
34
+ city: z.ZodNullable<z.ZodString>;
35
+ postalCode: z.ZodNullable<z.ZodString>;
36
+ addressLine1: z.ZodNullable<z.ZodString>;
37
+ addressLine2: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$strip>>;
39
+ documents: z.ZodArray<z.ZodObject<{
40
+ type: z.ZodEnum<{
41
+ visa: "visa";
42
+ other: "other";
43
+ passport: "passport";
44
+ drivers_license: "drivers_license";
45
+ id_card: "id_card";
46
+ }>;
47
+ number: z.ZodString;
48
+ issuingAuthority: z.ZodNullable<z.ZodString>;
49
+ issuingCountry: z.ZodString;
50
+ nationality: z.ZodNullable<z.ZodString>;
51
+ expiryDate: z.ZodString;
52
+ issueDate: z.ZodNullable<z.ZodString>;
53
+ }, z.core.$strip>>;
29
54
  marketingConsent: z.ZodBoolean;
30
55
  marketingConsentAt: z.ZodNullable<z.ZodString>;
56
+ marketingConsentSource: z.ZodNullable<z.ZodString>;
31
57
  notificationDefaults: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
58
  uiPrefs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
33
59
  customerRecord: z.ZodNullable<z.ZodObject<{
@@ -42,6 +68,27 @@ export declare const customerPortalProfileResponseSchema: z.ZodObject<{
42
68
  address: z.ZodNullable<z.ZodString>;
43
69
  city: z.ZodNullable<z.ZodString>;
44
70
  country: z.ZodNullable<z.ZodString>;
71
+ billingAddress: z.ZodNullable<z.ZodObject<{
72
+ id: z.ZodString;
73
+ label: z.ZodEnum<{
74
+ other: "other";
75
+ service: "service";
76
+ primary: "primary";
77
+ billing: "billing";
78
+ shipping: "shipping";
79
+ mailing: "mailing";
80
+ meeting: "meeting";
81
+ legal: "legal";
82
+ }>;
83
+ fullText: z.ZodNullable<z.ZodString>;
84
+ line1: z.ZodNullable<z.ZodString>;
85
+ line2: z.ZodNullable<z.ZodString>;
86
+ city: z.ZodNullable<z.ZodString>;
87
+ region: z.ZodNullable<z.ZodString>;
88
+ postalCode: z.ZodNullable<z.ZodString>;
89
+ country: z.ZodNullable<z.ZodString>;
90
+ isPrimary: z.ZodBoolean;
91
+ }, z.core.$strip>>;
45
92
  relation: z.ZodNullable<z.ZodString>;
46
93
  status: z.ZodString;
47
94
  }, z.core.$strip>>;
@@ -60,6 +107,7 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
60
107
  email: z.ZodString;
61
108
  emailVerified: z.ZodBoolean;
62
109
  firstName: z.ZodNullable<z.ZodString>;
110
+ middleName: z.ZodNullable<z.ZodString>;
63
111
  lastName: z.ZodNullable<z.ZodString>;
64
112
  avatarUrl: z.ZodNullable<z.ZodString>;
65
113
  locale: z.ZodString;
@@ -70,8 +118,33 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
70
118
  middle: "middle";
71
119
  no_preference: "no_preference";
72
120
  }>>;
121
+ dateOfBirth: z.ZodNullable<z.ZodString>;
122
+ address: z.ZodNullable<z.ZodObject<{
123
+ country: z.ZodNullable<z.ZodString>;
124
+ state: z.ZodNullable<z.ZodString>;
125
+ city: z.ZodNullable<z.ZodString>;
126
+ postalCode: z.ZodNullable<z.ZodString>;
127
+ addressLine1: z.ZodNullable<z.ZodString>;
128
+ addressLine2: z.ZodNullable<z.ZodString>;
129
+ }, z.core.$strip>>;
130
+ documents: z.ZodArray<z.ZodObject<{
131
+ type: z.ZodEnum<{
132
+ visa: "visa";
133
+ other: "other";
134
+ passport: "passport";
135
+ drivers_license: "drivers_license";
136
+ id_card: "id_card";
137
+ }>;
138
+ number: z.ZodString;
139
+ issuingAuthority: z.ZodNullable<z.ZodString>;
140
+ issuingCountry: z.ZodString;
141
+ nationality: z.ZodNullable<z.ZodString>;
142
+ expiryDate: z.ZodString;
143
+ issueDate: z.ZodNullable<z.ZodString>;
144
+ }, z.core.$strip>>;
73
145
  marketingConsent: z.ZodBoolean;
74
146
  marketingConsentAt: z.ZodNullable<z.ZodString>;
147
+ marketingConsentSource: z.ZodNullable<z.ZodString>;
75
148
  notificationDefaults: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
76
149
  uiPrefs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
77
150
  customerRecord: z.ZodNullable<z.ZodObject<{
@@ -86,6 +159,27 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
86
159
  address: z.ZodNullable<z.ZodString>;
87
160
  city: z.ZodNullable<z.ZodString>;
88
161
  country: z.ZodNullable<z.ZodString>;
162
+ billingAddress: z.ZodNullable<z.ZodObject<{
163
+ id: z.ZodString;
164
+ label: z.ZodEnum<{
165
+ other: "other";
166
+ service: "service";
167
+ primary: "primary";
168
+ billing: "billing";
169
+ shipping: "shipping";
170
+ mailing: "mailing";
171
+ meeting: "meeting";
172
+ legal: "legal";
173
+ }>;
174
+ fullText: z.ZodNullable<z.ZodString>;
175
+ line1: z.ZodNullable<z.ZodString>;
176
+ line2: z.ZodNullable<z.ZodString>;
177
+ city: z.ZodNullable<z.ZodString>;
178
+ region: z.ZodNullable<z.ZodString>;
179
+ postalCode: z.ZodNullable<z.ZodString>;
180
+ country: z.ZodNullable<z.ZodString>;
181
+ isPrimary: z.ZodBoolean;
182
+ }, z.core.$strip>>;
89
183
  relation: z.ZodNullable<z.ZodString>;
90
184
  status: z.ZodString;
91
185
  }, z.core.$strip>>;
@@ -102,6 +196,27 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
102
196
  address: z.ZodNullable<z.ZodString>;
103
197
  city: z.ZodNullable<z.ZodString>;
104
198
  country: z.ZodNullable<z.ZodString>;
199
+ billingAddress: z.ZodNullable<z.ZodObject<{
200
+ id: z.ZodString;
201
+ label: z.ZodEnum<{
202
+ other: "other";
203
+ service: "service";
204
+ primary: "primary";
205
+ billing: "billing";
206
+ shipping: "shipping";
207
+ mailing: "mailing";
208
+ meeting: "meeting";
209
+ legal: "legal";
210
+ }>;
211
+ fullText: z.ZodNullable<z.ZodString>;
212
+ line1: z.ZodNullable<z.ZodString>;
213
+ line2: z.ZodNullable<z.ZodString>;
214
+ city: z.ZodNullable<z.ZodString>;
215
+ region: z.ZodNullable<z.ZodString>;
216
+ postalCode: z.ZodNullable<z.ZodString>;
217
+ country: z.ZodNullable<z.ZodString>;
218
+ isPrimary: z.ZodBoolean;
219
+ }, z.core.$strip>>;
105
220
  relation: z.ZodNullable<z.ZodString>;
106
221
  status: z.ZodString;
107
222
  linkable: z.ZodBoolean;
@@ -119,6 +234,37 @@ export declare const customerPortalCompanionsResponseSchema: z.ZodObject<{
119
234
  phone: z.ZodNullable<z.ZodString>;
120
235
  isPrimary: z.ZodBoolean;
121
236
  notes: z.ZodNullable<z.ZodString>;
237
+ typeKey: z.ZodNullable<z.ZodString>;
238
+ person: z.ZodObject<{
239
+ firstName: z.ZodNullable<z.ZodString>;
240
+ middleName: z.ZodNullable<z.ZodString>;
241
+ lastName: z.ZodNullable<z.ZodString>;
242
+ dateOfBirth: z.ZodNullable<z.ZodString>;
243
+ addresses: z.ZodArray<z.ZodObject<{
244
+ type: z.ZodNullable<z.ZodString>;
245
+ country: z.ZodNullable<z.ZodString>;
246
+ state: z.ZodNullable<z.ZodString>;
247
+ city: z.ZodNullable<z.ZodString>;
248
+ postalCode: z.ZodNullable<z.ZodString>;
249
+ addressLine1: z.ZodNullable<z.ZodString>;
250
+ addressLine2: z.ZodNullable<z.ZodString>;
251
+ isDefault: z.ZodBoolean;
252
+ }, z.core.$strip>>;
253
+ documents: z.ZodArray<z.ZodObject<{
254
+ type: z.ZodEnum<{
255
+ visa: "visa";
256
+ other: "other";
257
+ passport: "passport";
258
+ drivers_license: "drivers_license";
259
+ id_card: "id_card";
260
+ }>;
261
+ number: z.ZodNullable<z.ZodString>;
262
+ issuingAuthority: z.ZodNullable<z.ZodString>;
263
+ country: z.ZodNullable<z.ZodString>;
264
+ issueDate: z.ZodNullable<z.ZodString>;
265
+ expiryDate: z.ZodNullable<z.ZodString>;
266
+ }, z.core.$strip>>;
267
+ }, z.core.$strip>;
122
268
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
123
269
  }, z.core.$strip>>;
124
270
  }, z.core.$strip>;
@@ -132,9 +278,87 @@ export declare const customerPortalCompanionResponseSchema: z.ZodObject<{
132
278
  phone: z.ZodNullable<z.ZodString>;
133
279
  isPrimary: z.ZodBoolean;
134
280
  notes: z.ZodNullable<z.ZodString>;
281
+ typeKey: z.ZodNullable<z.ZodString>;
282
+ person: z.ZodObject<{
283
+ firstName: z.ZodNullable<z.ZodString>;
284
+ middleName: z.ZodNullable<z.ZodString>;
285
+ lastName: z.ZodNullable<z.ZodString>;
286
+ dateOfBirth: z.ZodNullable<z.ZodString>;
287
+ addresses: z.ZodArray<z.ZodObject<{
288
+ type: z.ZodNullable<z.ZodString>;
289
+ country: z.ZodNullable<z.ZodString>;
290
+ state: z.ZodNullable<z.ZodString>;
291
+ city: z.ZodNullable<z.ZodString>;
292
+ postalCode: z.ZodNullable<z.ZodString>;
293
+ addressLine1: z.ZodNullable<z.ZodString>;
294
+ addressLine2: z.ZodNullable<z.ZodString>;
295
+ isDefault: z.ZodBoolean;
296
+ }, z.core.$strip>>;
297
+ documents: z.ZodArray<z.ZodObject<{
298
+ type: z.ZodEnum<{
299
+ visa: "visa";
300
+ other: "other";
301
+ passport: "passport";
302
+ drivers_license: "drivers_license";
303
+ id_card: "id_card";
304
+ }>;
305
+ number: z.ZodNullable<z.ZodString>;
306
+ issuingAuthority: z.ZodNullable<z.ZodString>;
307
+ country: z.ZodNullable<z.ZodString>;
308
+ issueDate: z.ZodNullable<z.ZodString>;
309
+ expiryDate: z.ZodNullable<z.ZodString>;
310
+ }, z.core.$strip>>;
311
+ }, z.core.$strip>;
135
312
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
136
313
  }, z.core.$strip>;
137
314
  }, z.core.$strip>;
315
+ export declare const customerPortalCompanionImportResponseSchema: z.ZodObject<{
316
+ data: z.ZodObject<{
317
+ created: z.ZodArray<z.ZodObject<{
318
+ id: z.ZodString;
319
+ role: z.ZodString;
320
+ name: z.ZodString;
321
+ title: z.ZodNullable<z.ZodString>;
322
+ email: z.ZodNullable<z.ZodString>;
323
+ phone: z.ZodNullable<z.ZodString>;
324
+ isPrimary: z.ZodBoolean;
325
+ notes: z.ZodNullable<z.ZodString>;
326
+ typeKey: z.ZodNullable<z.ZodString>;
327
+ person: z.ZodObject<{
328
+ firstName: z.ZodNullable<z.ZodString>;
329
+ middleName: z.ZodNullable<z.ZodString>;
330
+ lastName: z.ZodNullable<z.ZodString>;
331
+ dateOfBirth: z.ZodNullable<z.ZodString>;
332
+ addresses: z.ZodArray<z.ZodObject<{
333
+ type: z.ZodNullable<z.ZodString>;
334
+ country: z.ZodNullable<z.ZodString>;
335
+ state: z.ZodNullable<z.ZodString>;
336
+ city: z.ZodNullable<z.ZodString>;
337
+ postalCode: z.ZodNullable<z.ZodString>;
338
+ addressLine1: z.ZodNullable<z.ZodString>;
339
+ addressLine2: z.ZodNullable<z.ZodString>;
340
+ isDefault: z.ZodBoolean;
341
+ }, z.core.$strip>>;
342
+ documents: z.ZodArray<z.ZodObject<{
343
+ type: z.ZodEnum<{
344
+ visa: "visa";
345
+ other: "other";
346
+ passport: "passport";
347
+ drivers_license: "drivers_license";
348
+ id_card: "id_card";
349
+ }>;
350
+ number: z.ZodNullable<z.ZodString>;
351
+ issuingAuthority: z.ZodNullable<z.ZodString>;
352
+ country: z.ZodNullable<z.ZodString>;
353
+ issueDate: z.ZodNullable<z.ZodString>;
354
+ expiryDate: z.ZodNullable<z.ZodString>;
355
+ }, z.core.$strip>>;
356
+ }, z.core.$strip>;
357
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
358
+ }, z.core.$strip>>;
359
+ skippedCount: z.ZodNumber;
360
+ }, z.core.$strip>;
361
+ }, z.core.$strip>;
138
362
  export declare const customerPortalBookingsResponseSchema: z.ZodObject<{
139
363
  data: z.ZodArray<z.ZodObject<{
140
364
  bookingId: z.ZodString;
@@ -150,6 +374,13 @@ export declare const customerPortalBookingsResponseSchema: z.ZodObject<{
150
374
  }>;
151
375
  sellCurrency: z.ZodString;
152
376
  sellAmountCents: z.ZodNullable<z.ZodNumber>;
377
+ productTitle: z.ZodNullable<z.ZodString>;
378
+ paymentStatus: z.ZodEnum<{
379
+ partially_paid: "partially_paid";
380
+ paid: "paid";
381
+ overdue: "overdue";
382
+ unpaid: "unpaid";
383
+ }>;
153
384
  startDate: z.ZodNullable<z.ZodString>;
154
385
  endDate: z.ZodNullable<z.ZodString>;
155
386
  pax: z.ZodNullable<z.ZodNumber>;
@@ -240,8 +471,24 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
240
471
  isPrimary: z.ZodBoolean;
241
472
  }, z.core.$strip>>;
242
473
  }, z.core.$strip>>;
474
+ billingContact: z.ZodNullable<z.ZodObject<{
475
+ email: z.ZodNullable<z.ZodString>;
476
+ phone: z.ZodNullable<z.ZodString>;
477
+ firstName: z.ZodNullable<z.ZodString>;
478
+ lastName: z.ZodNullable<z.ZodString>;
479
+ country: z.ZodNullable<z.ZodString>;
480
+ state: z.ZodNullable<z.ZodString>;
481
+ city: z.ZodNullable<z.ZodString>;
482
+ address1: z.ZodNullable<z.ZodString>;
483
+ postal: z.ZodNullable<z.ZodString>;
484
+ }, z.core.$strip>>;
243
485
  documents: z.ZodArray<z.ZodObject<{
244
486
  id: z.ZodString;
487
+ source: z.ZodEnum<{
488
+ legal: "legal";
489
+ finance: "finance";
490
+ booking_document: "booking_document";
491
+ }>;
245
492
  participantId: z.ZodNullable<z.ZodString>;
246
493
  type: z.ZodEnum<{
247
494
  visa: "visa";
@@ -249,10 +496,88 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
249
496
  health: "health";
250
497
  passport_copy: "passport_copy";
251
498
  other: "other";
499
+ invoice: "invoice";
500
+ proforma: "proforma";
501
+ credit_note: "credit_note";
502
+ contract: "contract";
252
503
  }>;
253
504
  fileName: z.ZodString;
254
505
  fileUrl: z.ZodString;
506
+ mimeType: z.ZodNullable<z.ZodString>;
507
+ reference: z.ZodNullable<z.ZodString>;
255
508
  }, z.core.$strip>>;
509
+ financials: z.ZodObject<{
510
+ documents: z.ZodArray<z.ZodObject<{
511
+ invoiceId: z.ZodString;
512
+ invoiceNumber: z.ZodString;
513
+ invoiceType: z.ZodEnum<{
514
+ invoice: "invoice";
515
+ proforma: "proforma";
516
+ credit_note: "credit_note";
517
+ }>;
518
+ invoiceStatus: z.ZodEnum<{
519
+ draft: "draft";
520
+ void: "void";
521
+ sent: "sent";
522
+ partially_paid: "partially_paid";
523
+ paid: "paid";
524
+ overdue: "overdue";
525
+ }>;
526
+ currency: z.ZodString;
527
+ totalCents: z.ZodNumber;
528
+ paidCents: z.ZodNumber;
529
+ balanceDueCents: z.ZodNumber;
530
+ issueDate: z.ZodString;
531
+ dueDate: z.ZodString;
532
+ documentStatus: z.ZodEnum<{
533
+ pending: "pending";
534
+ failed: "failed";
535
+ ready: "ready";
536
+ stale: "stale";
537
+ missing: "missing";
538
+ }>;
539
+ format: z.ZodNullable<z.ZodEnum<{
540
+ pdf: "pdf";
541
+ json: "json";
542
+ html: "html";
543
+ xml: "xml";
544
+ }>>;
545
+ generatedAt: z.ZodNullable<z.ZodString>;
546
+ downloadUrl: z.ZodNullable<z.ZodString>;
547
+ }, z.core.$strip>>;
548
+ payments: z.ZodArray<z.ZodObject<{
549
+ id: z.ZodString;
550
+ invoiceId: z.ZodString;
551
+ invoiceNumber: z.ZodString;
552
+ invoiceType: z.ZodEnum<{
553
+ invoice: "invoice";
554
+ proforma: "proforma";
555
+ credit_note: "credit_note";
556
+ }>;
557
+ status: z.ZodEnum<{
558
+ completed: "completed";
559
+ pending: "pending";
560
+ failed: "failed";
561
+ refunded: "refunded";
562
+ }>;
563
+ paymentMethod: z.ZodEnum<{
564
+ other: "other";
565
+ voucher: "voucher";
566
+ wallet: "wallet";
567
+ bank_transfer: "bank_transfer";
568
+ credit_card: "credit_card";
569
+ debit_card: "debit_card";
570
+ cash: "cash";
571
+ cheque: "cheque";
572
+ direct_bill: "direct_bill";
573
+ }>;
574
+ amountCents: z.ZodNumber;
575
+ currency: z.ZodString;
576
+ paymentDate: z.ZodString;
577
+ referenceNumber: z.ZodNullable<z.ZodString>;
578
+ notes: z.ZodNullable<z.ZodString>;
579
+ }, z.core.$strip>>;
580
+ }, z.core.$strip>;
256
581
  fulfillments: z.ZodArray<z.ZodObject<{
257
582
  id: z.ZodString;
258
583
  bookingItemId: z.ZodNullable<z.ZodString>;
@@ -284,9 +609,27 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
284
609
  }, z.core.$strip>>;
285
610
  }, z.core.$strip>;
286
611
  }, z.core.$strip>;
612
+ export declare const customerPortalBookingBillingContactResponseSchema: z.ZodObject<{
613
+ data: z.ZodObject<{
614
+ email: z.ZodNullable<z.ZodString>;
615
+ phone: z.ZodNullable<z.ZodString>;
616
+ firstName: z.ZodNullable<z.ZodString>;
617
+ lastName: z.ZodNullable<z.ZodString>;
618
+ country: z.ZodNullable<z.ZodString>;
619
+ state: z.ZodNullable<z.ZodString>;
620
+ city: z.ZodNullable<z.ZodString>;
621
+ address1: z.ZodNullable<z.ZodString>;
622
+ postal: z.ZodNullable<z.ZodString>;
623
+ }, z.core.$strip>;
624
+ }, z.core.$strip>;
287
625
  export declare const customerPortalBookingDocumentsResponseSchema: z.ZodObject<{
288
626
  data: z.ZodArray<z.ZodObject<{
289
627
  id: z.ZodString;
628
+ source: z.ZodEnum<{
629
+ legal: "legal";
630
+ finance: "finance";
631
+ booking_document: "booking_document";
632
+ }>;
290
633
  participantId: z.ZodNullable<z.ZodString>;
291
634
  type: z.ZodEnum<{
292
635
  visa: "visa";
@@ -294,9 +637,15 @@ export declare const customerPortalBookingDocumentsResponseSchema: z.ZodObject<{
294
637
  health: "health";
295
638
  passport_copy: "passport_copy";
296
639
  other: "other";
640
+ invoice: "invoice";
641
+ proforma: "proforma";
642
+ credit_note: "credit_note";
643
+ contract: "contract";
297
644
  }>;
298
645
  fileName: z.ZodString;
299
646
  fileUrl: z.ZodString;
647
+ mimeType: z.ZodNullable<z.ZodString>;
648
+ reference: z.ZodNullable<z.ZodString>;
300
649
  }, z.core.$strip>>;
301
650
  }, z.core.$strip>;
302
651
  export declare const customerPortalContactExistsResponseSchema: z.ZodObject<{
@@ -307,6 +656,13 @@ export declare const customerPortalContactExistsResponseSchema: z.ZodObject<{
307
656
  linkedCustomerRecordExists: z.ZodBoolean;
308
657
  }, z.core.$strip>;
309
658
  }, z.core.$strip>;
659
+ export declare const customerPortalPhoneContactExistsResponseSchema: z.ZodObject<{
660
+ data: z.ZodObject<{
661
+ phone: z.ZodString;
662
+ customerRecordExists: z.ZodBoolean;
663
+ linkedCustomerRecordExists: z.ZodBoolean;
664
+ }, z.core.$strip>;
665
+ }, z.core.$strip>;
310
666
  export type CustomerPortalProfileRecord = z.infer<typeof customerPortalProfileSchema>;
311
667
  export type BootstrapCustomerPortalInput = z.input<typeof bootstrapCustomerPortalSchema>;
312
668
  export type BootstrapCustomerPortalResult = z.infer<typeof bootstrapCustomerPortalResultSchema>;
@@ -314,8 +670,12 @@ export type UpdateCustomerPortalProfileInput = z.input<typeof updateCustomerPort
314
670
  export type CustomerPortalCompanionRecord = z.infer<typeof customerPortalCompanionSchema>;
315
671
  export type CreateCustomerPortalCompanionInput = z.input<typeof createCustomerPortalCompanionSchema>;
316
672
  export type UpdateCustomerPortalCompanionInput = z.input<typeof updateCustomerPortalCompanionSchema>;
673
+ export type ImportCustomerPortalBookingParticipantsInput = z.input<typeof importCustomerPortalBookingParticipantsSchema>;
674
+ export type ImportCustomerPortalBookingParticipantsResult = z.infer<typeof importCustomerPortalBookingParticipantsResultSchema>;
317
675
  export type CustomerPortalBookingSummaryRecord = z.infer<typeof customerPortalBookingSummarySchema>;
318
676
  export type CustomerPortalBookingRecord = z.infer<typeof customerPortalBookingDetailSchema>;
677
+ export type CustomerPortalBookingBillingContactRecord = z.infer<typeof customerPortalBookingBillingContactSchema>;
319
678
  export type CustomerPortalBookingDocumentRecord = z.infer<typeof customerPortalBookingDocumentSchema>;
320
679
  export type CustomerPortalContactExistsRecord = z.infer<typeof customerPortalContactExistsResultSchema>;
680
+ export type CustomerPortalPhoneContactExistsRecord = z.infer<typeof customerPortalPhoneContactExistsResultSchema>;
321
681
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,iCAAiC,EACjC,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,uCAAuC,EACvC,2BAA2B,EAC3B,mCAAmC,EACnC,iCAAiC,EAClC,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;iBAA6B,CAAA;AAC3F,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,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AC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAA;AACD,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,4CAA4C,CACpD,CAAA"}
package/dist/schemas.js CHANGED
@@ -1,14 +1,17 @@
1
- import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "@voyantjs/customer-portal";
1
+ import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "@voyantjs/customer-portal";
2
2
  import { z } from "zod";
3
3
  export const singleEnvelope = (item) => z.object({ data: item });
4
4
  export const arrayEnvelope = (item) => z.object({ data: z.array(item) });
5
5
  export const successEnvelope = z.object({ success: z.boolean() });
6
- export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
6
+ export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
7
7
  export const customerPortalProfileResponseSchema = singleEnvelope(customerPortalProfileSchema);
8
8
  export const customerPortalBootstrapResponseSchema = singleEnvelope(bootstrapCustomerPortalResultSchema);
9
9
  export const customerPortalCompanionsResponseSchema = arrayEnvelope(customerPortalCompanionSchema);
10
10
  export const customerPortalCompanionResponseSchema = singleEnvelope(customerPortalCompanionSchema);
11
+ export const customerPortalCompanionImportResponseSchema = singleEnvelope(importCustomerPortalBookingParticipantsResultSchema);
11
12
  export const customerPortalBookingsResponseSchema = arrayEnvelope(customerPortalBookingSummarySchema);
12
13
  export const customerPortalBookingResponseSchema = singleEnvelope(customerPortalBookingDetailSchema);
14
+ export const customerPortalBookingBillingContactResponseSchema = singleEnvelope(customerPortalBookingBillingContactSchema);
13
15
  export const customerPortalBookingDocumentsResponseSchema = arrayEnvelope(customerPortalBookingDocumentSchema);
14
16
  export const customerPortalContactExistsResponseSchema = singleEnvelope(customerPortalContactExistsResultSchema);
17
+ export const customerPortalPhoneContactExistsResponseSchema = singleEnvelope(customerPortalPhoneContactExistsResultSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/customer-portal-react",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "react": "^19.0.0",
40
40
  "react-dom": "^19.0.0",
41
41
  "zod": "^4.0.0",
42
- "@voyantjs/customer-portal": "0.3.0"
42
+ "@voyantjs/customer-portal": "0.4.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@tanstack/react-query": "^5.96.2",
@@ -50,12 +50,12 @@
50
50
  "typescript": "^6.0.2",
51
51
  "vitest": "^4.1.2",
52
52
  "zod": "^4.3.6",
53
- "@voyantjs/customer-portal": "0.3.0",
54
- "@voyantjs/react": "0.3.0",
53
+ "@voyantjs/customer-portal": "0.4.0",
54
+ "@voyantjs/react": "0.4.0",
55
55
  "@voyantjs/voyant-typescript-config": "0.1.0"
56
56
  },
57
57
  "dependencies": {
58
- "@voyantjs/react": "0.3.0"
58
+ "@voyantjs/react": "0.4.0"
59
59
  },
60
60
  "files": [
61
61
  "dist"