@voyant-travel/storefront 0.123.1 → 0.124.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.
@@ -846,7 +846,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
846
846
  id: string;
847
847
  source: "finance" | "legal" | "booking_document";
848
848
  travelerId: string | null;
849
- type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
849
+ type: "invoice" | "visa" | "other" | "insurance" | "health" | "passport_copy" | "proforma" | "credit_note" | "contract";
850
850
  fileName: string;
851
851
  fileUrl: string;
852
852
  mimeType: string | null;
@@ -922,7 +922,7 @@ export declare function createPublicCustomerPortalRoutes(options?: PublicCustome
922
922
  id: string;
923
923
  source: "finance" | "legal" | "booking_document";
924
924
  travelerId: string | null;
925
- type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
925
+ type: "invoice" | "visa" | "other" | "insurance" | "health" | "passport_copy" | "proforma" | "credit_note" | "contract";
926
926
  fileName: string;
927
927
  fileUrl: string;
928
928
  mimeType: string | null;
@@ -1806,7 +1806,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1806
1806
  id: string;
1807
1807
  source: "finance" | "legal" | "booking_document";
1808
1808
  travelerId: string | null;
1809
- type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
1809
+ type: "invoice" | "visa" | "other" | "insurance" | "health" | "passport_copy" | "proforma" | "credit_note" | "contract";
1810
1810
  fileName: string;
1811
1811
  fileUrl: string;
1812
1812
  mimeType: string | null;
@@ -1882,7 +1882,7 @@ export declare const publicCustomerPortalRoutes: import("hono/hono-base").HonoBa
1882
1882
  id: string;
1883
1883
  source: "finance" | "legal" | "booking_document";
1884
1884
  travelerId: string | null;
1885
- type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
1885
+ type: "invoice" | "visa" | "other" | "insurance" | "health" | "passport_copy" | "proforma" | "credit_note" | "contract";
1886
1886
  fileName: string;
1887
1887
  fileUrl: string;
1888
1888
  mimeType: string | null;
@@ -36,7 +36,7 @@ export declare const publicCustomerPortalService: {
36
36
  id: string;
37
37
  source: "finance" | "legal" | "booking_document";
38
38
  travelerId: string | null;
39
- type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
39
+ type: "invoice" | "visa" | "other" | "insurance" | "health" | "passport_copy" | "proforma" | "credit_note" | "contract";
40
40
  fileName: string;
41
41
  fileUrl: string;
42
42
  mimeType: string | null;
@@ -138,12 +138,12 @@ export declare const customerPortalBookingDocumentSchema: z.ZodObject<{
138
138
  }>;
139
139
  travelerId: z.ZodNullable<z.ZodString>;
140
140
  type: z.ZodEnum<{
141
+ invoice: "invoice";
141
142
  visa: "visa";
142
143
  other: "other";
143
144
  insurance: "insurance";
144
145
  health: "health";
145
146
  passport_copy: "passport_copy";
146
- invoice: "invoice";
147
147
  proforma: "proforma";
148
148
  credit_note: "credit_note";
149
149
  contract: "contract";
@@ -423,12 +423,12 @@ export declare const customerPortalBookingDetailSchema: z.ZodObject<{
423
423
  }>;
424
424
  travelerId: z.ZodNullable<z.ZodString>;
425
425
  type: z.ZodEnum<{
426
+ invoice: "invoice";
426
427
  visa: "visa";
427
428
  other: "other";
428
429
  insurance: "insurance";
429
430
  health: "health";
430
431
  passport_copy: "passport_copy";
431
- invoice: "invoice";
432
432
  proforma: "proforma";
433
433
  credit_note: "credit_note";
434
434
  contract: "contract";
@@ -41,12 +41,12 @@ export declare const bookingItemParticipantRoleSchema: z.ZodEnum<{
41
41
  beneficiary: "beneficiary";
42
42
  }>;
43
43
  export declare const bookingDocumentTypeSchema: z.ZodEnum<{
44
+ invoice: "invoice";
44
45
  visa: "visa";
45
46
  other: "other";
46
47
  insurance: "insurance";
47
48
  health: "health";
48
49
  passport_copy: "passport_copy";
49
- invoice: "invoice";
50
50
  proforma: "proforma";
51
51
  credit_note: "credit_note";
52
52
  contract: "contract";
@@ -41,7 +41,7 @@ export declare function createStorefrontAdminRoutes(options?: StorefrontServiceO
41
41
  fields: {
42
42
  key: string;
43
43
  label: string;
44
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
44
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
45
45
  required: boolean;
46
46
  placeholder: string | null;
47
47
  description: string | null;
@@ -56,7 +56,7 @@ export declare function createStorefrontAdminRoutes(options?: StorefrontServiceO
56
56
  fields: {
57
57
  key: string;
58
58
  label: string;
59
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
59
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
60
60
  required: boolean;
61
61
  placeholder: string | null;
62
62
  description: string | null;
@@ -69,9 +69,9 @@ export declare function createStorefrontAdminRoutes(options?: StorefrontServiceO
69
69
  };
70
70
  };
71
71
  payment: {
72
- defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
72
+ defaultMethod: "invoice" | "voucher" | "bank_transfer" | "cash" | "card" | null;
73
73
  methods: {
74
- code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
74
+ code: "invoice" | "voucher" | "bank_transfer" | "cash" | "card";
75
75
  label: string;
76
76
  description: string | null;
77
77
  enabled: boolean;
@@ -146,7 +146,7 @@ export declare function createStorefrontAdminRoutes(options?: StorefrontServiceO
146
146
  fields: {
147
147
  key: string;
148
148
  label: string;
149
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
149
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
150
150
  required: boolean;
151
151
  placeholder: string | null;
152
152
  description: string | null;
@@ -161,7 +161,7 @@ export declare function createStorefrontAdminRoutes(options?: StorefrontServiceO
161
161
  fields: {
162
162
  key: string;
163
163
  label: string;
164
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
164
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
165
165
  required: boolean;
166
166
  placeholder: string | null;
167
167
  description: string | null;
@@ -174,9 +174,9 @@ export declare function createStorefrontAdminRoutes(options?: StorefrontServiceO
174
174
  };
175
175
  };
176
176
  payment: {
177
- defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
177
+ defaultMethod: "invoice" | "voucher" | "bank_transfer" | "cash" | "card" | null;
178
178
  methods: {
179
- code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
179
+ code: "invoice" | "voucher" | "bank_transfer" | "cash" | "card";
180
180
  label: string;
181
181
  description: string | null;
182
182
  enabled: boolean;
@@ -50,7 +50,7 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
50
50
  fields: {
51
51
  key: string;
52
52
  label: string;
53
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
53
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
54
54
  required: boolean;
55
55
  placeholder: string | null;
56
56
  description: string | null;
@@ -65,7 +65,7 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
65
65
  fields: {
66
66
  key: string;
67
67
  label: string;
68
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
68
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
69
69
  required: boolean;
70
70
  placeholder: string | null;
71
71
  description: string | null;
@@ -78,9 +78,9 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
78
78
  };
79
79
  };
80
80
  payment: {
81
- defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
81
+ defaultMethod: "invoice" | "voucher" | "bank_transfer" | "cash" | "card" | null;
82
82
  methods: {
83
- code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
83
+ code: "invoice" | "voucher" | "bank_transfer" | "cash" | "card";
84
84
  label: string;
85
85
  description: string | null;
86
86
  enabled: boolean;
package/dist/service.d.ts CHANGED
@@ -92,7 +92,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
92
92
  fields: {
93
93
  key: string;
94
94
  label: string;
95
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
95
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
96
96
  required: boolean;
97
97
  placeholder: string | null;
98
98
  description: string | null;
@@ -107,7 +107,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
107
107
  fields: {
108
108
  key: string;
109
109
  label: string;
110
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
110
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
111
111
  required: boolean;
112
112
  placeholder: string | null;
113
113
  description: string | null;
@@ -120,9 +120,9 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
120
120
  };
121
121
  };
122
122
  payment: {
123
- defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
123
+ defaultMethod: "invoice" | "voucher" | "bank_transfer" | "cash" | "card" | null;
124
124
  methods: {
125
- code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
125
+ code: "invoice" | "voucher" | "bank_transfer" | "cash" | "card";
126
126
  label: string;
127
127
  description: string | null;
128
128
  enabled: boolean;
@@ -187,7 +187,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
187
187
  fields: {
188
188
  key: string;
189
189
  label: string;
190
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
190
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
191
191
  required: boolean;
192
192
  placeholder: string | null;
193
193
  description: string | null;
@@ -202,7 +202,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
202
202
  fields: {
203
203
  key: string;
204
204
  label: string;
205
- type: "date" | "select" | "text" | "email" | "textarea" | "country" | "tel" | "checkbox";
205
+ type: "text" | "date" | "select" | "email" | "textarea" | "country" | "tel" | "checkbox";
206
206
  required: boolean;
207
207
  placeholder: string | null;
208
208
  description: string | null;
@@ -215,9 +215,9 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
215
215
  };
216
216
  };
217
217
  payment: {
218
- defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
218
+ defaultMethod: "invoice" | "voucher" | "bank_transfer" | "cash" | "card" | null;
219
219
  methods: {
220
- code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
220
+ code: "invoice" | "voucher" | "bank_transfer" | "cash" | "card";
221
221
  label: string;
222
222
  description: string | null;
223
223
  enabled: boolean;
@@ -1,16 +1,16 @@
1
1
  import { z } from "zod";
2
2
  export declare const languageTagSchema: z.ZodString;
3
3
  export declare const storefrontPaymentMethodCodeSchema: z.ZodEnum<{
4
+ invoice: "invoice";
4
5
  voucher: "voucher";
5
6
  bank_transfer: "bank_transfer";
6
7
  cash: "cash";
7
- invoice: "invoice";
8
8
  card: "card";
9
9
  }>;
10
10
  export declare const storefrontFormFieldTypeSchema: z.ZodEnum<{
11
+ text: "text";
11
12
  date: "date";
12
13
  select: "select";
13
- text: "text";
14
14
  email: "email";
15
15
  textarea: "textarea";
16
16
  country: "country";
@@ -25,9 +25,9 @@ export declare const storefrontFormFieldInputSchema: z.ZodObject<{
25
25
  key: z.ZodString;
26
26
  label: z.ZodString;
27
27
  type: z.ZodDefault<z.ZodEnum<{
28
+ text: "text";
28
29
  date: "date";
29
30
  select: "select";
30
- text: "text";
31
31
  email: "email";
32
32
  textarea: "textarea";
33
33
  country: "country";
@@ -47,9 +47,9 @@ export declare const storefrontFormFieldSchema: z.ZodObject<{
47
47
  key: z.ZodString;
48
48
  label: z.ZodString;
49
49
  type: z.ZodEnum<{
50
+ text: "text";
50
51
  date: "date";
51
52
  select: "select";
52
- text: "text";
53
53
  email: "email";
54
54
  textarea: "textarea";
55
55
  country: "country";
@@ -67,10 +67,10 @@ export declare const storefrontFormFieldSchema: z.ZodObject<{
67
67
  }, z.core.$strip>;
68
68
  export declare const storefrontPaymentMethodInputSchema: z.ZodObject<{
69
69
  code: z.ZodEnum<{
70
+ invoice: "invoice";
70
71
  voucher: "voucher";
71
72
  bank_transfer: "bank_transfer";
72
73
  cash: "cash";
73
- invoice: "invoice";
74
74
  card: "card";
75
75
  }>;
76
76
  label: z.ZodOptional<z.ZodString>;
@@ -79,10 +79,10 @@ export declare const storefrontPaymentMethodInputSchema: z.ZodObject<{
79
79
  }, z.core.$strip>;
80
80
  export declare const storefrontPaymentMethodSchema: z.ZodObject<{
81
81
  code: z.ZodEnum<{
82
+ invoice: "invoice";
82
83
  voucher: "voucher";
83
84
  bank_transfer: "bank_transfer";
84
85
  cash: "cash";
85
- invoice: "invoice";
86
86
  card: "card";
87
87
  }>;
88
88
  label: z.ZodString;
@@ -217,9 +217,9 @@ export declare const storefrontSettingsInputSchema: z.ZodObject<{
217
217
  key: z.ZodString;
218
218
  label: z.ZodString;
219
219
  type: z.ZodDefault<z.ZodEnum<{
220
+ text: "text";
220
221
  date: "date";
221
222
  select: "select";
222
- text: "text";
223
223
  email: "email";
224
224
  textarea: "textarea";
225
225
  country: "country";
@@ -241,9 +241,9 @@ export declare const storefrontSettingsInputSchema: z.ZodObject<{
241
241
  key: z.ZodString;
242
242
  label: z.ZodString;
243
243
  type: z.ZodDefault<z.ZodEnum<{
244
+ text: "text";
244
245
  date: "date";
245
246
  select: "select";
246
- text: "text";
247
247
  email: "email";
248
248
  textarea: "textarea";
249
249
  country: "country";
@@ -263,18 +263,18 @@ export declare const storefrontSettingsInputSchema: z.ZodObject<{
263
263
  }, z.core.$strip>>;
264
264
  payment: z.ZodOptional<z.ZodObject<{
265
265
  defaultMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
266
+ invoice: "invoice";
266
267
  voucher: "voucher";
267
268
  bank_transfer: "bank_transfer";
268
269
  cash: "cash";
269
- invoice: "invoice";
270
270
  card: "card";
271
271
  }>>>;
272
272
  methods: z.ZodOptional<z.ZodArray<z.ZodObject<{
273
273
  code: z.ZodEnum<{
274
+ invoice: "invoice";
274
275
  voucher: "voucher";
275
276
  bank_transfer: "bank_transfer";
276
277
  cash: "cash";
277
- invoice: "invoice";
278
278
  card: "card";
279
279
  }>;
280
280
  label: z.ZodOptional<z.ZodString>;
@@ -352,9 +352,9 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
352
352
  key: z.ZodString;
353
353
  label: z.ZodString;
354
354
  type: z.ZodEnum<{
355
+ text: "text";
355
356
  date: "date";
356
357
  select: "select";
357
- text: "text";
358
358
  email: "email";
359
359
  textarea: "textarea";
360
360
  country: "country";
@@ -376,9 +376,9 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
376
376
  key: z.ZodString;
377
377
  label: z.ZodString;
378
378
  type: z.ZodEnum<{
379
+ text: "text";
379
380
  date: "date";
380
381
  select: "select";
381
- text: "text";
382
382
  email: "email";
383
383
  textarea: "textarea";
384
384
  country: "country";
@@ -398,18 +398,18 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
398
398
  }, z.core.$strip>;
399
399
  payment: z.ZodObject<{
400
400
  defaultMethod: z.ZodNullable<z.ZodEnum<{
401
+ invoice: "invoice";
401
402
  voucher: "voucher";
402
403
  bank_transfer: "bank_transfer";
403
404
  cash: "cash";
404
- invoice: "invoice";
405
405
  card: "card";
406
406
  }>>;
407
407
  methods: z.ZodArray<z.ZodObject<{
408
408
  code: z.ZodEnum<{
409
+ invoice: "invoice";
409
410
  voucher: "voucher";
410
411
  bank_transfer: "bank_transfer";
411
412
  cash: "cash";
412
- invoice: "invoice";
413
413
  card: "card";
414
414
  }>;
415
415
  label: z.ZodString;
@@ -487,9 +487,9 @@ export declare const storefrontSettingsPatchSchema: z.ZodObject<{
487
487
  key: z.ZodString;
488
488
  label: z.ZodString;
489
489
  type: z.ZodDefault<z.ZodEnum<{
490
+ text: "text";
490
491
  date: "date";
491
492
  select: "select";
492
- text: "text";
493
493
  email: "email";
494
494
  textarea: "textarea";
495
495
  country: "country";
@@ -511,9 +511,9 @@ export declare const storefrontSettingsPatchSchema: z.ZodObject<{
511
511
  key: z.ZodString;
512
512
  label: z.ZodString;
513
513
  type: z.ZodDefault<z.ZodEnum<{
514
+ text: "text";
514
515
  date: "date";
515
516
  select: "select";
516
- text: "text";
517
517
  email: "email";
518
518
  textarea: "textarea";
519
519
  country: "country";
@@ -533,18 +533,18 @@ export declare const storefrontSettingsPatchSchema: z.ZodObject<{
533
533
  }, z.core.$strip>>;
534
534
  payment: z.ZodOptional<z.ZodObject<{
535
535
  defaultMethod: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
536
+ invoice: "invoice";
536
537
  voucher: "voucher";
537
538
  bank_transfer: "bank_transfer";
538
539
  cash: "cash";
539
- invoice: "invoice";
540
540
  card: "card";
541
541
  }>>>;
542
542
  methods: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
543
  code: z.ZodEnum<{
544
+ invoice: "invoice";
544
545
  voucher: "voucher";
545
546
  bank_transfer: "bank_transfer";
546
547
  cash: "cash";
547
- invoice: "invoice";
548
548
  card: "card";
549
549
  }>;
550
550
  label: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/storefront",
3
- "version": "0.123.1",
3
+ "version": "0.124.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -95,19 +95,19 @@
95
95
  "drizzle-orm": "^0.45.2",
96
96
  "hono": "^4.12.10",
97
97
  "zod": "^4.3.6",
98
- "@voyant-travel/bookings": "^0.122.1",
99
- "@voyant-travel/commerce": "^0.4.0",
100
- "@voyant-travel/db": "^0.108.1",
101
- "@voyant-travel/hono": "^0.111.0",
102
- "@voyant-travel/finance": "^0.122.1",
103
- "@voyant-travel/relationships-contracts": "^0.107.0",
98
+ "@voyant-travel/bookings": "^0.123.0",
99
+ "@voyant-travel/commerce": "^0.5.0",
100
+ "@voyant-travel/core": "^0.110.0",
101
+ "@voyant-travel/db": "^0.108.2",
102
+ "@voyant-travel/finance": "^0.123.0",
103
+ "@voyant-travel/relationships-contracts": "^0.108.0",
104
104
  "@voyant-travel/utils": "^0.105.2",
105
- "@voyant-travel/core": "^0.109.0"
105
+ "@voyant-travel/hono": "^0.112.0"
106
106
  },
107
107
  "peerDependencies": {
108
- "@voyant-travel/identity": "^0.122.0",
109
- "@voyant-travel/relationships": "^0.119.5",
110
- "@voyant-travel/legal": "^0.122.0"
108
+ "@voyant-travel/identity": "^0.123.0",
109
+ "@voyant-travel/relationships": "^0.120.0",
110
+ "@voyant-travel/legal": "^0.123.0"
111
111
  },
112
112
  "peerDependenciesMeta": {
113
113
  "@voyant-travel/identity": {
@@ -123,12 +123,12 @@
123
123
  "devDependencies": {
124
124
  "typescript": "^6.0.2",
125
125
  "vitest": "^4.1.2",
126
- "@voyant-travel/identity": "^0.122.0",
127
- "@voyant-travel/inventory": "^0.3.2",
128
- "@voyant-travel/operations": "^0.1.2",
129
- "@voyant-travel/legal": "^0.122.0",
130
- "@voyant-travel/relationships": "^0.119.5",
131
- "@voyant-travel/voyant-typescript-config": "^0.1.0"
126
+ "@voyant-travel/identity": "^0.123.0",
127
+ "@voyant-travel/inventory": "^0.3.3",
128
+ "@voyant-travel/legal": "^0.123.0",
129
+ "@voyant-travel/operations": "^0.1.3",
130
+ "@voyant-travel/voyant-typescript-config": "^0.1.0",
131
+ "@voyant-travel/relationships": "^0.120.0"
132
132
  },
133
133
  "files": [
134
134
  "dist"