@voyantjs/customer-portal 0.26.0 → 0.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@ export { customerPortalRoutes } from "./routes.js";
6
6
  export type { PublicCustomerPortalRoutes } from "./routes-public.js";
7
7
  export { createPublicCustomerPortalRoutes, publicCustomerPortalRoutes } from "./routes-public.js";
8
8
  export { publicCustomerPortalService } from "./service-public.js";
9
- export type { BootstrapCustomerPortalInput, BootstrapCustomerPortalResult, CreateCustomerPortalCompanionInput, CustomerPortalAddress, CustomerPortalBookingBillingContact, CustomerPortalBookingDetail, CustomerPortalBookingDocument, CustomerPortalBookingFinancialDocument, CustomerPortalBookingFinancials, CustomerPortalBookingPayment, CustomerPortalBookingSummary, CustomerPortalBootstrapCandidate, CustomerPortalCompanion, CustomerPortalContactExistsQuery, CustomerPortalContactExistsResult, CustomerPortalPhoneContactExistsQuery, CustomerPortalPhoneContactExistsResult, CustomerPortalProfile, ImportCustomerPortalBookingParticipantsInput, ImportCustomerPortalBookingParticipantsResult, ImportCustomerPortalBookingTravelersInput, ImportCustomerPortalBookingTravelersResult, UpdateCustomerPortalAddressInput, UpdateCustomerPortalCompanionInput, UpdateCustomerPortalProfileInput, } from "./validation-public.js";
10
- export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalAddressSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingFinancialDocumentSchema, customerPortalBookingFinancialsSchema, customerPortalBookingPaymentSchema, customerPortalBookingSummarySchema, customerPortalBootstrapCandidateSchema, customerPortalCompanionSchema, customerPortalContactExistsQuerySchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsQuerySchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalAddressSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "./validation-public.js";
9
+ export type { BootstrapCustomerPortalInput, BootstrapCustomerPortalResult, CreateCustomerPortalCompanionInput, CreateCustomerPortalProfileDocumentInput, CustomerPortalAddress, CustomerPortalBookingBillingContact, CustomerPortalBookingDetail, CustomerPortalBookingDocument, CustomerPortalBookingFinancialDocument, CustomerPortalBookingFinancials, CustomerPortalBookingPayment, CustomerPortalBookingSummary, CustomerPortalBootstrapCandidate, CustomerPortalCompanion, CustomerPortalContactExistsQuery, CustomerPortalContactExistsResult, CustomerPortalPhoneContactExistsQuery, CustomerPortalPhoneContactExistsResult, CustomerPortalProfile, CustomerPortalProfileDocument, ImportCustomerPortalBookingParticipantsInput, ImportCustomerPortalBookingParticipantsResult, ImportCustomerPortalBookingTravelersInput, ImportCustomerPortalBookingTravelersResult, UpdateCustomerPortalAddressInput, UpdateCustomerPortalCompanionInput, UpdateCustomerPortalProfileDocumentInput, UpdateCustomerPortalProfileInput, } from "./validation-public.js";
10
+ export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, createCustomerPortalProfileDocumentSchema, customerPortalAddressSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingFinancialDocumentSchema, customerPortalBookingFinancialsSchema, customerPortalBookingPaymentSchema, customerPortalBookingSummarySchema, customerPortalBootstrapCandidateSchema, customerPortalCompanionSchema, customerPortalContactExistsQuerySchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsQuerySchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileDocumentSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalAddressSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileDocumentSchema, updateCustomerPortalProfileSchema, } from "./validation-public.js";
11
11
  export declare const customerPortalModule: Module;
12
12
  export declare function createCustomerPortalHonoModule(options?: PublicCustomerPortalRouteOptions): HonoModule;
13
13
  export declare const customerPortalHonoModule: HonoModule;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAMvD,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,oBAAoB,CAAA;AAE3B,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAClD,YAAY,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAE,gCAAgC,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAA;AACjG,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA;AACjE,YAAY,EACV,4BAA4B,EAC5B,6BAA6B,EAC7B,kCAAkC,EAClC,qBAAqB,EACrB,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,EAC7B,sCAAsC,EACtC,+BAA+B,EAC/B,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAChC,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,qCAAqC,EACrC,sCAAsC,EACtC,qBAAqB,EACrB,4CAA4C,EAC5C,6CAA6C,EAC7C,yCAAyC,EACzC,0CAA0C,EAC1C,gCAAgC,EAChC,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,yCAAyC,EACzC,iCAAiC,EAC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3
  export { customerPortalRoutes } from "./routes.js";
4
4
  export { createPublicCustomerPortalRoutes, publicCustomerPortalRoutes } from "./routes-public.js";
5
5
  export { publicCustomerPortalService } from "./service-public.js";
6
- export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalAddressSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingFinancialDocumentSchema, customerPortalBookingFinancialsSchema, customerPortalBookingPaymentSchema, customerPortalBookingSummarySchema, customerPortalBootstrapCandidateSchema, customerPortalCompanionSchema, customerPortalContactExistsQuerySchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsQuerySchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalAddressSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "./validation-public.js";
6
+ export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, createCustomerPortalProfileDocumentSchema, customerPortalAddressSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingFinancialDocumentSchema, customerPortalBookingFinancialsSchema, customerPortalBookingPaymentSchema, customerPortalBookingSummarySchema, customerPortalBootstrapCandidateSchema, customerPortalCompanionSchema, customerPortalContactExistsQuerySchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsQuerySchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileDocumentSchema, customerPortalProfileSchema, importCustomerPortalBookingParticipantsResultSchema, importCustomerPortalBookingParticipantsSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalAddressSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileDocumentSchema, updateCustomerPortalProfileSchema, } from "./validation-public.js";
7
7
  export const customerPortalModule = {
8
8
  name: "customer-portal",
9
9
  };
@@ -11,14 +11,14 @@ type Env = {
11
11
  export interface PublicCustomerPortalRouteOptions {
12
12
  resolveDocumentDownloadUrl?: (bindings: unknown, storageKey: string) => Promise<string | null> | string | null;
13
13
  }
14
- export declare function createPublicCustomerPortalRoutes(options?: PublicCustomerPortalRouteOptions): import("hono/hono-base").HonoBase<Env, ((((((((((({
14
+ export declare function createPublicCustomerPortalRoutes(options?: PublicCustomerPortalRouteOptions): import("hono/hono-base").HonoBase<Env, (((((((((((((((({
15
15
  "/me": {
16
16
  $get: {
17
17
  input: {};
18
18
  output: {
19
19
  data: {
20
20
  userId: string;
21
- email: string;
21
+ email: string | null;
22
22
  emailVerified: boolean;
23
23
  firstName: string | null;
24
24
  middleName: string | null;
@@ -36,15 +36,10 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
36
36
  addressLine1: string | null;
37
37
  addressLine2: string | null;
38
38
  } | null;
39
- documents: {
40
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
41
- number: string;
42
- issuingAuthority: string | null;
43
- issuingCountry: string;
44
- nationality: string | null;
45
- expiryDate: string;
46
- issueDate: string | null;
47
- }[];
39
+ accessibility: string | null;
40
+ dietary: string | null;
41
+ loyalty: string | null;
42
+ insurance: string | null;
48
43
  marketingConsent: boolean;
49
44
  marketingConsentAt: string | null;
50
45
  marketingConsentSource: string | null;
@@ -78,6 +73,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
78
73
  relation: string | null;
79
74
  status: string;
80
75
  } | null;
76
+ phoneNumber?: string | null | undefined;
81
77
  };
82
78
  };
83
79
  outputFormat: "json";
@@ -129,7 +125,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
129
125
  output: {
130
126
  data: {
131
127
  userId: string;
132
- email: string;
128
+ email: string | null;
133
129
  emailVerified: boolean;
134
130
  firstName: string | null;
135
131
  middleName: string | null;
@@ -147,15 +143,10 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
147
143
  addressLine1: string | null;
148
144
  addressLine2: string | null;
149
145
  } | null;
150
- documents: {
151
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
152
- number: string;
153
- issuingAuthority: string | null;
154
- issuingCountry: string;
155
- nationality: string | null;
156
- expiryDate: string;
157
- issueDate: string | null;
158
- }[];
146
+ accessibility: string | null;
147
+ dietary: string | null;
148
+ loyalty: string | null;
149
+ insurance: string | null;
159
150
  marketingConsent: boolean;
160
151
  marketingConsentAt: string | null;
161
152
  marketingConsentSource: string | null;
@@ -189,6 +180,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
189
180
  relation: string | null;
190
181
  status: string;
191
182
  } | null;
183
+ phoneNumber?: string | null | undefined;
192
184
  };
193
185
  };
194
186
  outputFormat: "json";
@@ -223,7 +215,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
223
215
  output: {
224
216
  data: {
225
217
  userId: string;
226
- email: string;
218
+ email: string | null;
227
219
  emailVerified: boolean;
228
220
  firstName: string | null;
229
221
  middleName: string | null;
@@ -241,15 +233,10 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
241
233
  addressLine1: string | null;
242
234
  addressLine2: string | null;
243
235
  } | null;
244
- documents: {
245
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
246
- number: string;
247
- issuingAuthority: string | null;
248
- issuingCountry: string;
249
- nationality: string | null;
250
- expiryDate: string;
251
- issueDate: string | null;
252
- }[];
236
+ accessibility: string | null;
237
+ dietary: string | null;
238
+ loyalty: string | null;
239
+ insurance: string | null;
253
240
  marketingConsent: boolean;
254
241
  marketingConsentAt: string | null;
255
242
  marketingConsentSource: string | null;
@@ -283,6 +270,166 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
283
270
  relation: string | null;
284
271
  status: string;
285
272
  } | null;
273
+ phoneNumber?: string | null | undefined;
274
+ };
275
+ };
276
+ outputFormat: "json";
277
+ status: import("hono/utils/http-status").ContentfulStatusCode;
278
+ };
279
+ };
280
+ }) & {
281
+ "/me/documents": {
282
+ $get: {
283
+ input: {};
284
+ output: {
285
+ data: {
286
+ id: string;
287
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
288
+ number: string | null;
289
+ issuingAuthority: string | null;
290
+ issuingCountry: string | null;
291
+ issueDate: string | null;
292
+ expiryDate: string | null;
293
+ attachmentId: string | null;
294
+ isPrimary: boolean;
295
+ notes: string | null;
296
+ createdAt: string;
297
+ updatedAt: string;
298
+ }[];
299
+ };
300
+ outputFormat: "json";
301
+ status: import("hono/utils/http-status").ContentfulStatusCode;
302
+ };
303
+ };
304
+ }) & {
305
+ "/me/documents": {
306
+ $post: {
307
+ input: {};
308
+ output: {
309
+ error: string;
310
+ };
311
+ outputFormat: "json";
312
+ status: 404;
313
+ } | {
314
+ input: {};
315
+ output: {
316
+ data: {
317
+ id: string;
318
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
319
+ number: string | null;
320
+ issuingAuthority: string | null;
321
+ issuingCountry: string | null;
322
+ issueDate: string | null;
323
+ expiryDate: string | null;
324
+ attachmentId: string | null;
325
+ isPrimary: boolean;
326
+ notes: string | null;
327
+ createdAt: string;
328
+ updatedAt: string;
329
+ };
330
+ };
331
+ outputFormat: "json";
332
+ status: 201;
333
+ };
334
+ };
335
+ }) & {
336
+ "/me/documents/:id": {
337
+ $patch: {
338
+ input: {
339
+ param: {
340
+ id: string;
341
+ };
342
+ };
343
+ output: {
344
+ error: string;
345
+ };
346
+ outputFormat: "json";
347
+ status: 404;
348
+ } | {
349
+ input: {
350
+ param: {
351
+ id: string;
352
+ };
353
+ };
354
+ output: {
355
+ data: {
356
+ id: string;
357
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
358
+ number: string | null;
359
+ issuingAuthority: string | null;
360
+ issuingCountry: string | null;
361
+ issueDate: string | null;
362
+ expiryDate: string | null;
363
+ attachmentId: string | null;
364
+ isPrimary: boolean;
365
+ notes: string | null;
366
+ createdAt: string;
367
+ updatedAt: string;
368
+ };
369
+ };
370
+ outputFormat: "json";
371
+ status: import("hono/utils/http-status").ContentfulStatusCode;
372
+ };
373
+ };
374
+ }) & {
375
+ "/me/documents/:id": {
376
+ $delete: {
377
+ input: {
378
+ param: {
379
+ id: string;
380
+ };
381
+ };
382
+ output: {
383
+ error: string;
384
+ };
385
+ outputFormat: "json";
386
+ status: 404;
387
+ } | {
388
+ input: {
389
+ param: {
390
+ id: string;
391
+ };
392
+ };
393
+ output: {
394
+ success: true;
395
+ };
396
+ outputFormat: "json";
397
+ status: import("hono/utils/http-status").ContentfulStatusCode;
398
+ };
399
+ };
400
+ }) & {
401
+ "/me/documents/:id/set-primary": {
402
+ $post: {
403
+ input: {
404
+ param: {
405
+ id: string;
406
+ };
407
+ };
408
+ output: {
409
+ error: string;
410
+ };
411
+ outputFormat: "json";
412
+ status: 404;
413
+ } | {
414
+ input: {
415
+ param: {
416
+ id: string;
417
+ };
418
+ };
419
+ output: {
420
+ data: {
421
+ id: string;
422
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
423
+ number: string | null;
424
+ issuingAuthority: string | null;
425
+ issuingCountry: string | null;
426
+ issueDate: string | null;
427
+ expiryDate: string | null;
428
+ attachmentId: string | null;
429
+ isPrimary: boolean;
430
+ notes: string | null;
431
+ createdAt: string;
432
+ updatedAt: string;
286
433
  };
287
434
  };
288
435
  outputFormat: "json";
@@ -312,7 +459,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
312
459
  status: "already_linked" | "linked_existing_customer" | "created_customer" | "customer_selection_required";
313
460
  profile: {
314
461
  userId: string;
315
- email: string;
462
+ email: string | null;
316
463
  emailVerified: boolean;
317
464
  firstName: string | null;
318
465
  middleName: string | null;
@@ -330,15 +477,10 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
330
477
  addressLine1: string | null;
331
478
  addressLine2: string | null;
332
479
  } | null;
333
- documents: {
334
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
335
- number: string;
336
- issuingAuthority: string | null;
337
- issuingCountry: string;
338
- nationality: string | null;
339
- expiryDate: string;
340
- issueDate: string | null;
341
- }[];
480
+ accessibility: string | null;
481
+ dietary: string | null;
482
+ loyalty: string | null;
483
+ insurance: string | null;
342
484
  marketingConsent: boolean;
343
485
  marketingConsentAt: string | null;
344
486
  marketingConsentSource: string | null;
@@ -372,6 +514,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
372
514
  relation: string | null;
373
515
  status: string;
374
516
  } | null;
517
+ phoneNumber?: string | null | undefined;
375
518
  } | null;
376
519
  candidates: {
377
520
  id: string;
@@ -824,14 +967,14 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
824
967
  };
825
968
  };
826
969
  }, "/", "/bookings/:bookingId/billing-contact">;
827
- export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBase<Env, ((((((((((({
970
+ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBase<Env, (((((((((((((((({
828
971
  "/me": {
829
972
  $get: {
830
973
  input: {};
831
974
  output: {
832
975
  data: {
833
976
  userId: string;
834
- email: string;
977
+ email: string | null;
835
978
  emailVerified: boolean;
836
979
  firstName: string | null;
837
980
  middleName: string | null;
@@ -849,15 +992,10 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
849
992
  addressLine1: string | null;
850
993
  addressLine2: string | null;
851
994
  } | null;
852
- documents: {
853
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
854
- number: string;
855
- issuingAuthority: string | null;
856
- issuingCountry: string;
857
- nationality: string | null;
858
- expiryDate: string;
859
- issueDate: string | null;
860
- }[];
995
+ accessibility: string | null;
996
+ dietary: string | null;
997
+ loyalty: string | null;
998
+ insurance: string | null;
861
999
  marketingConsent: boolean;
862
1000
  marketingConsentAt: string | null;
863
1001
  marketingConsentSource: string | null;
@@ -891,6 +1029,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
891
1029
  relation: string | null;
892
1030
  status: string;
893
1031
  } | null;
1032
+ phoneNumber?: string | null | undefined;
894
1033
  };
895
1034
  };
896
1035
  outputFormat: "json";
@@ -942,7 +1081,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
942
1081
  output: {
943
1082
  data: {
944
1083
  userId: string;
945
- email: string;
1084
+ email: string | null;
946
1085
  emailVerified: boolean;
947
1086
  firstName: string | null;
948
1087
  middleName: string | null;
@@ -960,15 +1099,10 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
960
1099
  addressLine1: string | null;
961
1100
  addressLine2: string | null;
962
1101
  } | null;
963
- documents: {
964
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
965
- number: string;
966
- issuingAuthority: string | null;
967
- issuingCountry: string;
968
- nationality: string | null;
969
- expiryDate: string;
970
- issueDate: string | null;
971
- }[];
1102
+ accessibility: string | null;
1103
+ dietary: string | null;
1104
+ loyalty: string | null;
1105
+ insurance: string | null;
972
1106
  marketingConsent: boolean;
973
1107
  marketingConsentAt: string | null;
974
1108
  marketingConsentSource: string | null;
@@ -1002,6 +1136,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1002
1136
  relation: string | null;
1003
1137
  status: string;
1004
1138
  } | null;
1139
+ phoneNumber?: string | null | undefined;
1005
1140
  };
1006
1141
  };
1007
1142
  outputFormat: "json";
@@ -1036,7 +1171,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1036
1171
  output: {
1037
1172
  data: {
1038
1173
  userId: string;
1039
- email: string;
1174
+ email: string | null;
1040
1175
  emailVerified: boolean;
1041
1176
  firstName: string | null;
1042
1177
  middleName: string | null;
@@ -1054,15 +1189,10 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1054
1189
  addressLine1: string | null;
1055
1190
  addressLine2: string | null;
1056
1191
  } | null;
1057
- documents: {
1058
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
1059
- number: string;
1060
- issuingAuthority: string | null;
1061
- issuingCountry: string;
1062
- nationality: string | null;
1063
- expiryDate: string;
1064
- issueDate: string | null;
1065
- }[];
1192
+ accessibility: string | null;
1193
+ dietary: string | null;
1194
+ loyalty: string | null;
1195
+ insurance: string | null;
1066
1196
  marketingConsent: boolean;
1067
1197
  marketingConsentAt: string | null;
1068
1198
  marketingConsentSource: string | null;
@@ -1096,6 +1226,166 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1096
1226
  relation: string | null;
1097
1227
  status: string;
1098
1228
  } | null;
1229
+ phoneNumber?: string | null | undefined;
1230
+ };
1231
+ };
1232
+ outputFormat: "json";
1233
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1234
+ };
1235
+ };
1236
+ }) & {
1237
+ "/me/documents": {
1238
+ $get: {
1239
+ input: {};
1240
+ output: {
1241
+ data: {
1242
+ id: string;
1243
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
1244
+ number: string | null;
1245
+ issuingAuthority: string | null;
1246
+ issuingCountry: string | null;
1247
+ issueDate: string | null;
1248
+ expiryDate: string | null;
1249
+ attachmentId: string | null;
1250
+ isPrimary: boolean;
1251
+ notes: string | null;
1252
+ createdAt: string;
1253
+ updatedAt: string;
1254
+ }[];
1255
+ };
1256
+ outputFormat: "json";
1257
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1258
+ };
1259
+ };
1260
+ }) & {
1261
+ "/me/documents": {
1262
+ $post: {
1263
+ input: {};
1264
+ output: {
1265
+ error: string;
1266
+ };
1267
+ outputFormat: "json";
1268
+ status: 404;
1269
+ } | {
1270
+ input: {};
1271
+ output: {
1272
+ data: {
1273
+ id: string;
1274
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
1275
+ number: string | null;
1276
+ issuingAuthority: string | null;
1277
+ issuingCountry: string | null;
1278
+ issueDate: string | null;
1279
+ expiryDate: string | null;
1280
+ attachmentId: string | null;
1281
+ isPrimary: boolean;
1282
+ notes: string | null;
1283
+ createdAt: string;
1284
+ updatedAt: string;
1285
+ };
1286
+ };
1287
+ outputFormat: "json";
1288
+ status: 201;
1289
+ };
1290
+ };
1291
+ }) & {
1292
+ "/me/documents/:id": {
1293
+ $patch: {
1294
+ input: {
1295
+ param: {
1296
+ id: string;
1297
+ };
1298
+ };
1299
+ output: {
1300
+ error: string;
1301
+ };
1302
+ outputFormat: "json";
1303
+ status: 404;
1304
+ } | {
1305
+ input: {
1306
+ param: {
1307
+ id: string;
1308
+ };
1309
+ };
1310
+ output: {
1311
+ data: {
1312
+ id: string;
1313
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
1314
+ number: string | null;
1315
+ issuingAuthority: string | null;
1316
+ issuingCountry: string | null;
1317
+ issueDate: string | null;
1318
+ expiryDate: string | null;
1319
+ attachmentId: string | null;
1320
+ isPrimary: boolean;
1321
+ notes: string | null;
1322
+ createdAt: string;
1323
+ updatedAt: string;
1324
+ };
1325
+ };
1326
+ outputFormat: "json";
1327
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1328
+ };
1329
+ };
1330
+ }) & {
1331
+ "/me/documents/:id": {
1332
+ $delete: {
1333
+ input: {
1334
+ param: {
1335
+ id: string;
1336
+ };
1337
+ };
1338
+ output: {
1339
+ error: string;
1340
+ };
1341
+ outputFormat: "json";
1342
+ status: 404;
1343
+ } | {
1344
+ input: {
1345
+ param: {
1346
+ id: string;
1347
+ };
1348
+ };
1349
+ output: {
1350
+ success: true;
1351
+ };
1352
+ outputFormat: "json";
1353
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1354
+ };
1355
+ };
1356
+ }) & {
1357
+ "/me/documents/:id/set-primary": {
1358
+ $post: {
1359
+ input: {
1360
+ param: {
1361
+ id: string;
1362
+ };
1363
+ };
1364
+ output: {
1365
+ error: string;
1366
+ };
1367
+ outputFormat: "json";
1368
+ status: 404;
1369
+ } | {
1370
+ input: {
1371
+ param: {
1372
+ id: string;
1373
+ };
1374
+ };
1375
+ output: {
1376
+ data: {
1377
+ id: string;
1378
+ type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
1379
+ number: string | null;
1380
+ issuingAuthority: string | null;
1381
+ issuingCountry: string | null;
1382
+ issueDate: string | null;
1383
+ expiryDate: string | null;
1384
+ attachmentId: string | null;
1385
+ isPrimary: boolean;
1386
+ notes: string | null;
1387
+ createdAt: string;
1388
+ updatedAt: string;
1099
1389
  };
1100
1390
  };
1101
1391
  outputFormat: "json";
@@ -1125,7 +1415,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1125
1415
  status: "already_linked" | "linked_existing_customer" | "created_customer" | "customer_selection_required";
1126
1416
  profile: {
1127
1417
  userId: string;
1128
- email: string;
1418
+ email: string | null;
1129
1419
  emailVerified: boolean;
1130
1420
  firstName: string | null;
1131
1421
  middleName: string | null;
@@ -1143,15 +1433,10 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1143
1433
  addressLine1: string | null;
1144
1434
  addressLine2: string | null;
1145
1435
  } | null;
1146
- documents: {
1147
- type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
1148
- number: string;
1149
- issuingAuthority: string | null;
1150
- issuingCountry: string;
1151
- nationality: string | null;
1152
- expiryDate: string;
1153
- issueDate: string | null;
1154
- }[];
1436
+ accessibility: string | null;
1437
+ dietary: string | null;
1438
+ loyalty: string | null;
1439
+ insurance: string | null;
1155
1440
  marketingConsent: boolean;
1156
1441
  marketingConsentAt: string | null;
1157
1442
  marketingConsentSource: string | null;
@@ -1185,6 +1470,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1185
1470
  relation: string | null;
1186
1471
  status: string;
1187
1472
  } | null;
1473
+ phoneNumber?: string | null | undefined;
1188
1474
  } | null;
1189
1475
  candidates: {
1190
1476
  id: string;