@voyantjs/products 0.5.0 → 0.6.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.
- package/dist/booking-extension.d.ts +4 -4
- package/dist/booking-extension.d.ts.map +1 -1
- package/dist/booking-extension.js +3 -2
- package/dist/routes-public.d.ts +4 -4
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +8 -7
- package/dist/routes.d.ts +92 -114
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +90 -82
- package/dist/schema-core.d.ts +1 -1
- package/dist/schema-settings.d.ts +3 -3
- package/dist/service-catalog.d.ts +2 -2
- package/dist/service-public.d.ts +4 -4
- package/dist/service.d.ts +86 -86
- package/dist/tasks/brochures.d.ts +2 -2
- package/dist/validation-catalog.d.ts +2 -2
- package/dist/validation-config.d.ts +5 -5
- package/dist/validation-content.d.ts +3 -3
- package/dist/validation-core.d.ts +6 -6
- package/dist/validation-public.d.ts +5 -5
- package/dist/validation-shared.d.ts +4 -4
- package/package.json +6 -6
|
@@ -15,11 +15,11 @@ export interface GenerateAndStoreProductBrochureOptions {
|
|
|
15
15
|
}
|
|
16
16
|
export declare function generateAndStoreProductBrochure(db: PostgresJsDatabase, productId: string, options: GenerateAndStoreProductBrochureOptions): Promise<{
|
|
17
17
|
brochure: {
|
|
18
|
-
|
|
18
|
+
id: string;
|
|
19
19
|
name: string;
|
|
20
20
|
createdAt: Date;
|
|
21
21
|
updatedAt: Date;
|
|
22
|
-
|
|
22
|
+
productId: string;
|
|
23
23
|
sortOrder: number;
|
|
24
24
|
dayId: string | null;
|
|
25
25
|
mediaType: "image" | "video" | "document";
|
|
@@ -84,8 +84,8 @@ export declare const localizedCatalogProductSummarySchema: z.ZodObject<{
|
|
|
84
84
|
locations: z.ZodArray<z.ZodObject<{
|
|
85
85
|
id: z.ZodString;
|
|
86
86
|
locationType: z.ZodEnum<{
|
|
87
|
-
other: "other";
|
|
88
87
|
start: "start";
|
|
88
|
+
other: "other";
|
|
89
89
|
end: "end";
|
|
90
90
|
meeting_point: "meeting_point";
|
|
91
91
|
pickup: "pickup";
|
|
@@ -204,8 +204,8 @@ export declare const localizedCatalogProductDetailSchema: z.ZodObject<{
|
|
|
204
204
|
locations: z.ZodArray<z.ZodObject<{
|
|
205
205
|
id: z.ZodString;
|
|
206
206
|
locationType: z.ZodEnum<{
|
|
207
|
-
other: "other";
|
|
208
207
|
start: "start";
|
|
208
|
+
other: "other";
|
|
209
209
|
end: "end";
|
|
210
210
|
meeting_point: "meeting_point";
|
|
211
211
|
pickup: "pickup";
|
|
@@ -39,13 +39,13 @@ export declare const insertProductTicketSettingSchema: z.ZodObject<{
|
|
|
39
39
|
per_item: "per_item";
|
|
40
40
|
}>>;
|
|
41
41
|
defaultDeliveryFormat: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
email: "email";
|
|
42
43
|
none: "none";
|
|
43
44
|
voucher: "voucher";
|
|
44
45
|
ticket: "ticket";
|
|
45
46
|
pdf: "pdf";
|
|
46
47
|
qr_code: "qr_code";
|
|
47
48
|
barcode: "barcode";
|
|
48
|
-
email: "email";
|
|
49
49
|
mobile: "mobile";
|
|
50
50
|
}>>;
|
|
51
51
|
ticketPerUnit: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -61,13 +61,13 @@ export declare const updateProductTicketSettingSchema: z.ZodObject<{
|
|
|
61
61
|
per_item: "per_item";
|
|
62
62
|
}>>>;
|
|
63
63
|
defaultDeliveryFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
64
|
+
email: "email";
|
|
64
65
|
none: "none";
|
|
65
66
|
voucher: "voucher";
|
|
66
67
|
ticket: "ticket";
|
|
67
68
|
pdf: "pdf";
|
|
68
69
|
qr_code: "qr_code";
|
|
69
70
|
barcode: "barcode";
|
|
70
|
-
email: "email";
|
|
71
71
|
mobile: "mobile";
|
|
72
72
|
}>>>;
|
|
73
73
|
ticketPerUnit: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -181,26 +181,26 @@ export declare const productCapabilityListQuerySchema: z.ZodObject<{
|
|
|
181
181
|
}, z.core.$strip>;
|
|
182
182
|
export declare const insertProductDeliveryFormatSchema: z.ZodObject<{
|
|
183
183
|
format: z.ZodEnum<{
|
|
184
|
+
email: "email";
|
|
184
185
|
none: "none";
|
|
185
186
|
voucher: "voucher";
|
|
186
187
|
ticket: "ticket";
|
|
187
188
|
pdf: "pdf";
|
|
188
189
|
qr_code: "qr_code";
|
|
189
190
|
barcode: "barcode";
|
|
190
|
-
email: "email";
|
|
191
191
|
mobile: "mobile";
|
|
192
192
|
}>;
|
|
193
193
|
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
194
194
|
}, z.core.$strip>;
|
|
195
195
|
export declare const updateProductDeliveryFormatSchema: z.ZodObject<{
|
|
196
196
|
format: z.ZodOptional<z.ZodEnum<{
|
|
197
|
+
email: "email";
|
|
197
198
|
none: "none";
|
|
198
199
|
voucher: "voucher";
|
|
199
200
|
ticket: "ticket";
|
|
200
201
|
pdf: "pdf";
|
|
201
202
|
qr_code: "qr_code";
|
|
202
203
|
barcode: "barcode";
|
|
203
|
-
email: "email";
|
|
204
204
|
mobile: "mobile";
|
|
205
205
|
}>>;
|
|
206
206
|
isDefault: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -208,13 +208,13 @@ export declare const updateProductDeliveryFormatSchema: z.ZodObject<{
|
|
|
208
208
|
export declare const productDeliveryFormatListQuerySchema: z.ZodObject<{
|
|
209
209
|
productId: z.ZodOptional<z.ZodString>;
|
|
210
210
|
format: z.ZodOptional<z.ZodEnum<{
|
|
211
|
+
email: "email";
|
|
211
212
|
none: "none";
|
|
212
213
|
voucher: "voucher";
|
|
213
214
|
ticket: "ticket";
|
|
214
215
|
pdf: "pdf";
|
|
215
216
|
qr_code: "qr_code";
|
|
216
217
|
barcode: "barcode";
|
|
217
|
-
email: "email";
|
|
218
218
|
mobile: "mobile";
|
|
219
219
|
}>>;
|
|
220
220
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -52,8 +52,8 @@ export declare const productFaqListQuerySchema: z.ZodObject<{
|
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export declare const insertProductLocationSchema: z.ZodObject<{
|
|
54
54
|
locationType: z.ZodDefault<z.ZodEnum<{
|
|
55
|
-
other: "other";
|
|
56
55
|
start: "start";
|
|
56
|
+
other: "other";
|
|
57
57
|
end: "end";
|
|
58
58
|
meeting_point: "meeting_point";
|
|
59
59
|
pickup: "pickup";
|
|
@@ -73,8 +73,8 @@ export declare const insertProductLocationSchema: z.ZodObject<{
|
|
|
73
73
|
}, z.core.$strip>;
|
|
74
74
|
export declare const updateProductLocationSchema: z.ZodObject<{
|
|
75
75
|
locationType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
76
|
-
other: "other";
|
|
77
76
|
start: "start";
|
|
77
|
+
other: "other";
|
|
78
78
|
end: "end";
|
|
79
79
|
meeting_point: "meeting_point";
|
|
80
80
|
pickup: "pickup";
|
|
@@ -95,8 +95,8 @@ export declare const updateProductLocationSchema: z.ZodObject<{
|
|
|
95
95
|
export declare const productLocationListQuerySchema: z.ZodObject<{
|
|
96
96
|
productId: z.ZodOptional<z.ZodString>;
|
|
97
97
|
locationType: z.ZodOptional<z.ZodEnum<{
|
|
98
|
-
other: "other";
|
|
99
98
|
start: "start";
|
|
99
|
+
other: "other";
|
|
100
100
|
end: "end";
|
|
101
101
|
meeting_point: "meeting_point";
|
|
102
102
|
pickup: "pickup";
|
|
@@ -204,12 +204,12 @@ export declare const insertOptionUnitSchema: z.ZodObject<{
|
|
|
204
204
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
205
205
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
206
206
|
unitType: z.ZodDefault<z.ZodEnum<{
|
|
207
|
+
service: "service";
|
|
208
|
+
other: "other";
|
|
207
209
|
person: "person";
|
|
208
210
|
group: "group";
|
|
209
211
|
room: "room";
|
|
210
212
|
vehicle: "vehicle";
|
|
211
|
-
service: "service";
|
|
212
|
-
other: "other";
|
|
213
213
|
}>>;
|
|
214
214
|
minQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
215
215
|
maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -226,12 +226,12 @@ export declare const updateOptionUnitSchema: z.ZodObject<{
|
|
|
226
226
|
code: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
227
227
|
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
228
228
|
unitType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
229
|
+
service: "service";
|
|
230
|
+
other: "other";
|
|
229
231
|
person: "person";
|
|
230
232
|
group: "group";
|
|
231
233
|
room: "room";
|
|
232
234
|
vehicle: "vehicle";
|
|
233
|
-
service: "service";
|
|
234
|
-
other: "other";
|
|
235
235
|
}>>>;
|
|
236
236
|
minQuantity: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
237
237
|
maxQuantity: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
@@ -246,12 +246,12 @@ export declare const updateOptionUnitSchema: z.ZodObject<{
|
|
|
246
246
|
export declare const optionUnitListQuerySchema: z.ZodObject<{
|
|
247
247
|
optionId: z.ZodOptional<z.ZodString>;
|
|
248
248
|
unitType: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
service: "service";
|
|
250
|
+
other: "other";
|
|
249
251
|
person: "person";
|
|
250
252
|
group: "group";
|
|
251
253
|
room: "room";
|
|
252
254
|
vehicle: "vehicle";
|
|
253
|
-
service: "service";
|
|
254
|
-
other: "other";
|
|
255
255
|
}>>;
|
|
256
256
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
257
257
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -25,8 +25,8 @@ export declare const publicCatalogProductListQuerySchema: z.ZodObject<{
|
|
|
25
25
|
locationCity: z.ZodOptional<z.ZodString>;
|
|
26
26
|
locationCountryCode: z.ZodOptional<z.ZodString>;
|
|
27
27
|
locationType: z.ZodOptional<z.ZodEnum<{
|
|
28
|
-
other: "other";
|
|
29
28
|
start: "start";
|
|
29
|
+
other: "other";
|
|
30
30
|
end: "end";
|
|
31
31
|
meeting_point: "meeting_point";
|
|
32
32
|
pickup: "pickup";
|
|
@@ -142,8 +142,8 @@ export declare const publicCatalogProductFaqSchema: z.ZodObject<{
|
|
|
142
142
|
export declare const publicCatalogProductLocationSchema: z.ZodObject<{
|
|
143
143
|
id: z.ZodString;
|
|
144
144
|
locationType: z.ZodEnum<{
|
|
145
|
-
other: "other";
|
|
146
145
|
start: "start";
|
|
146
|
+
other: "other";
|
|
147
147
|
end: "end";
|
|
148
148
|
meeting_point: "meeting_point";
|
|
149
149
|
pickup: "pickup";
|
|
@@ -259,8 +259,8 @@ export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
|
259
259
|
locations: z.ZodArray<z.ZodObject<{
|
|
260
260
|
id: z.ZodString;
|
|
261
261
|
locationType: z.ZodEnum<{
|
|
262
|
-
other: "other";
|
|
263
262
|
start: "start";
|
|
263
|
+
other: "other";
|
|
264
264
|
end: "end";
|
|
265
265
|
meeting_point: "meeting_point";
|
|
266
266
|
pickup: "pickup";
|
|
@@ -379,8 +379,8 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
379
379
|
locations: z.ZodArray<z.ZodObject<{
|
|
380
380
|
id: z.ZodString;
|
|
381
381
|
locationType: z.ZodEnum<{
|
|
382
|
-
other: "other";
|
|
383
382
|
start: "start";
|
|
383
|
+
other: "other";
|
|
384
384
|
end: "end";
|
|
385
385
|
meeting_point: "meeting_point";
|
|
386
386
|
pickup: "pickup";
|
|
@@ -553,8 +553,8 @@ export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
|
553
553
|
locations: z.ZodArray<z.ZodObject<{
|
|
554
554
|
id: z.ZodString;
|
|
555
555
|
locationType: z.ZodEnum<{
|
|
556
|
-
other: "other";
|
|
557
556
|
start: "start";
|
|
557
|
+
other: "other";
|
|
558
558
|
end: "end";
|
|
559
559
|
meeting_point: "meeting_point";
|
|
560
560
|
pickup: "pickup";
|
|
@@ -13,12 +13,12 @@ export declare const productOptionStatusSchema: z.ZodEnum<{
|
|
|
13
13
|
archived: "archived";
|
|
14
14
|
}>;
|
|
15
15
|
export declare const optionUnitTypeSchema: z.ZodEnum<{
|
|
16
|
+
service: "service";
|
|
17
|
+
other: "other";
|
|
16
18
|
person: "person";
|
|
17
19
|
group: "group";
|
|
18
20
|
room: "room";
|
|
19
21
|
vehicle: "vehicle";
|
|
20
|
-
service: "service";
|
|
21
|
-
other: "other";
|
|
22
22
|
}>;
|
|
23
23
|
export declare const productBookingModeSchema: z.ZodEnum<{
|
|
24
24
|
date: "date";
|
|
@@ -51,13 +51,13 @@ export declare const productTicketFulfillmentSchema: z.ZodEnum<{
|
|
|
51
51
|
per_item: "per_item";
|
|
52
52
|
}>;
|
|
53
53
|
export declare const productDeliveryFormatSchema: z.ZodEnum<{
|
|
54
|
+
email: "email";
|
|
54
55
|
none: "none";
|
|
55
56
|
voucher: "voucher";
|
|
56
57
|
ticket: "ticket";
|
|
57
58
|
pdf: "pdf";
|
|
58
59
|
qr_code: "qr_code";
|
|
59
60
|
barcode: "barcode";
|
|
60
|
-
email: "email";
|
|
61
61
|
mobile: "mobile";
|
|
62
62
|
}>;
|
|
63
63
|
export declare const productCapabilitySchema: z.ZodEnum<{
|
|
@@ -83,8 +83,8 @@ export declare const productFeatureTypeSchema: z.ZodEnum<{
|
|
|
83
83
|
important_information: "important_information";
|
|
84
84
|
}>;
|
|
85
85
|
export declare const productLocationTypeSchema: z.ZodEnum<{
|
|
86
|
-
other: "other";
|
|
87
86
|
start: "start";
|
|
87
|
+
other: "other";
|
|
88
88
|
end: "end";
|
|
89
89
|
meeting_point: "meeting_point";
|
|
90
90
|
pickup: "pickup";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/products",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"hono": "^4.12.10",
|
|
43
43
|
"pdf-lib": "^1.17.1",
|
|
44
44
|
"zod": "^4.3.6",
|
|
45
|
-
"@voyantjs/core": "0.
|
|
46
|
-
"@voyantjs/db": "0.
|
|
47
|
-
"@voyantjs/hono": "0.
|
|
48
|
-
"@voyantjs/utils": "0.
|
|
49
|
-
"@voyantjs/voyant-storage": "0.
|
|
45
|
+
"@voyantjs/core": "0.6.0",
|
|
46
|
+
"@voyantjs/db": "0.6.0",
|
|
47
|
+
"@voyantjs/hono": "0.6.0",
|
|
48
|
+
"@voyantjs/utils": "0.6.0",
|
|
49
|
+
"@voyantjs/voyant-storage": "0.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^6.0.2",
|