@voyantjs/extras 0.24.0 → 0.24.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/content-shape.d.ts +2 -2
- package/dist/routes.d.ts +9 -9
- package/dist/schema.d.ts +2 -2
- package/dist/service.d.ts +9 -9
- package/dist/validation.d.ts +7 -7
- package/package.json +8 -8
package/dist/content-shape.d.ts
CHANGED
|
@@ -52,8 +52,8 @@ export declare const extraMediaItemSchema: z.ZodObject<{
|
|
|
52
52
|
export declare const extraPolicySchema: z.ZodObject<{
|
|
53
53
|
kind: z.ZodEnum<{
|
|
54
54
|
supplier_notes: "supplier_notes";
|
|
55
|
-
cancellation: "cancellation";
|
|
56
55
|
payment: "payment";
|
|
56
|
+
cancellation: "cancellation";
|
|
57
57
|
requirements: "requirements";
|
|
58
58
|
}>;
|
|
59
59
|
body: z.ZodString;
|
|
@@ -94,8 +94,8 @@ export declare const extraContentSchema: z.ZodObject<{
|
|
|
94
94
|
policies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
95
95
|
kind: z.ZodEnum<{
|
|
96
96
|
supplier_notes: "supplier_notes";
|
|
97
|
-
cancellation: "cancellation";
|
|
98
97
|
payment: "payment";
|
|
98
|
+
cancellation: "cancellation";
|
|
99
99
|
requirements: "requirements";
|
|
100
100
|
}>;
|
|
101
101
|
body: z.ZodString;
|
package/dist/routes.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
17
17
|
code: string | null;
|
|
18
18
|
name: string;
|
|
19
19
|
description: string | null;
|
|
20
|
-
selectionType: "unavailable" | "optional" | "
|
|
20
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
21
21
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
22
22
|
pricedPerPerson: boolean;
|
|
23
23
|
minQuantity: number | null;
|
|
@@ -53,7 +53,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
53
53
|
supplierId: string | null;
|
|
54
54
|
name: string;
|
|
55
55
|
description: string | null;
|
|
56
|
-
selectionType: "unavailable" | "optional" | "
|
|
56
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
57
57
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
58
58
|
pricedPerPerson: boolean;
|
|
59
59
|
minQuantity: number | null;
|
|
@@ -97,7 +97,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
97
97
|
code: string | null;
|
|
98
98
|
name: string;
|
|
99
99
|
description: string | null;
|
|
100
|
-
selectionType: "unavailable" | "optional" | "
|
|
100
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
101
101
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
102
102
|
pricedPerPerson: boolean;
|
|
103
103
|
minQuantity: number | null;
|
|
@@ -143,7 +143,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
143
143
|
code: string | null;
|
|
144
144
|
name: string;
|
|
145
145
|
description: string | null;
|
|
146
|
-
selectionType: "unavailable" | "optional" | "
|
|
146
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
147
147
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
148
148
|
pricedPerPerson: boolean;
|
|
149
149
|
minQuantity: number | null;
|
|
@@ -197,7 +197,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
197
197
|
id: string;
|
|
198
198
|
optionId: string;
|
|
199
199
|
productExtraId: string;
|
|
200
|
-
selectionType: "unavailable" | "optional" | "
|
|
200
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
201
201
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
202
202
|
pricedPerPerson: boolean | null;
|
|
203
203
|
minQuantity: number | null;
|
|
@@ -230,7 +230,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
230
230
|
id: string;
|
|
231
231
|
createdAt: string;
|
|
232
232
|
updatedAt: string;
|
|
233
|
-
selectionType: "unavailable" | "optional" | "
|
|
233
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
234
234
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
235
235
|
pricedPerPerson: boolean | null;
|
|
236
236
|
minQuantity: number | null;
|
|
@@ -275,7 +275,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
275
275
|
id: string;
|
|
276
276
|
optionId: string;
|
|
277
277
|
productExtraId: string;
|
|
278
|
-
selectionType: "unavailable" | "optional" | "
|
|
278
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
279
279
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
280
280
|
pricedPerPerson: boolean | null;
|
|
281
281
|
minQuantity: number | null;
|
|
@@ -320,7 +320,7 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
320
320
|
id: string;
|
|
321
321
|
optionId: string;
|
|
322
322
|
productExtraId: string;
|
|
323
|
-
selectionType: "unavailable" | "optional" | "
|
|
323
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
324
324
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
325
325
|
pricedPerPerson: boolean | null;
|
|
326
326
|
minQuantity: number | null;
|
|
@@ -421,9 +421,9 @@ export declare const extrasRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
421
421
|
metadata: {
|
|
422
422
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
423
423
|
} | null;
|
|
424
|
+
notes: string | null;
|
|
424
425
|
bookingId: string;
|
|
425
426
|
quantity: number;
|
|
426
|
-
notes: string | null;
|
|
427
427
|
productExtraId: string | null;
|
|
428
428
|
optionExtraConfigId: string | null;
|
|
429
429
|
sellCurrency: string;
|
package/dist/schema.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export declare const productExtras: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
112
112
|
tableName: "product_extras";
|
|
113
113
|
dataType: "string";
|
|
114
114
|
columnType: "PgEnumColumn";
|
|
115
|
-
data: "unavailable" | "optional" | "
|
|
115
|
+
data: "unavailable" | "optional" | "required" | "default_selected";
|
|
116
116
|
driverParam: string;
|
|
117
117
|
notNull: true;
|
|
118
118
|
hasDefault: true;
|
|
@@ -359,7 +359,7 @@ export declare const optionExtraConfigs: import("drizzle-orm/pg-core").PgTableWi
|
|
|
359
359
|
tableName: "option_extra_configs";
|
|
360
360
|
dataType: "string";
|
|
361
361
|
columnType: "PgEnumColumn";
|
|
362
|
-
data: "unavailable" | "optional" | "
|
|
362
|
+
data: "unavailable" | "optional" | "required" | "default_selected";
|
|
363
363
|
driverParam: string;
|
|
364
364
|
notNull: false;
|
|
365
365
|
hasDefault: false;
|
package/dist/service.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const extrasService: {
|
|
|
19
19
|
code: string | null;
|
|
20
20
|
name: string;
|
|
21
21
|
description: string | null;
|
|
22
|
-
selectionType: "unavailable" | "optional" | "
|
|
22
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
23
23
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
24
24
|
pricedPerPerson: boolean;
|
|
25
25
|
minQuantity: number | null;
|
|
@@ -42,7 +42,7 @@ export declare const extrasService: {
|
|
|
42
42
|
code: string | null;
|
|
43
43
|
name: string;
|
|
44
44
|
description: string | null;
|
|
45
|
-
selectionType: "unavailable" | "optional" | "
|
|
45
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
46
46
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
47
47
|
pricedPerPerson: boolean;
|
|
48
48
|
minQuantity: number | null;
|
|
@@ -63,7 +63,7 @@ export declare const extrasService: {
|
|
|
63
63
|
supplierId: string | null;
|
|
64
64
|
name: string;
|
|
65
65
|
description: string | null;
|
|
66
|
-
selectionType: "unavailable" | "optional" | "
|
|
66
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
67
67
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
68
68
|
pricedPerPerson: boolean;
|
|
69
69
|
minQuantity: number | null;
|
|
@@ -80,7 +80,7 @@ export declare const extrasService: {
|
|
|
80
80
|
code: string | null;
|
|
81
81
|
name: string;
|
|
82
82
|
description: string | null;
|
|
83
|
-
selectionType: "unavailable" | "optional" | "
|
|
83
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected";
|
|
84
84
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
85
85
|
pricedPerPerson: boolean;
|
|
86
86
|
minQuantity: number | null;
|
|
@@ -100,7 +100,7 @@ export declare const extrasService: {
|
|
|
100
100
|
id: string;
|
|
101
101
|
optionId: string;
|
|
102
102
|
productExtraId: string;
|
|
103
|
-
selectionType: "unavailable" | "optional" | "
|
|
103
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
104
104
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
105
105
|
pricedPerPerson: boolean | null;
|
|
106
106
|
minQuantity: number | null;
|
|
@@ -122,7 +122,7 @@ export declare const extrasService: {
|
|
|
122
122
|
id: string;
|
|
123
123
|
optionId: string;
|
|
124
124
|
productExtraId: string;
|
|
125
|
-
selectionType: "unavailable" | "optional" | "
|
|
125
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
126
126
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
127
127
|
pricedPerPerson: boolean | null;
|
|
128
128
|
minQuantity: number | null;
|
|
@@ -140,7 +140,7 @@ export declare const extrasService: {
|
|
|
140
140
|
id: string;
|
|
141
141
|
createdAt: Date;
|
|
142
142
|
updatedAt: Date;
|
|
143
|
-
selectionType: "unavailable" | "optional" | "
|
|
143
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
144
144
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
145
145
|
pricedPerPerson: boolean | null;
|
|
146
146
|
minQuantity: number | null;
|
|
@@ -158,7 +158,7 @@ export declare const extrasService: {
|
|
|
158
158
|
id: string;
|
|
159
159
|
optionId: string;
|
|
160
160
|
productExtraId: string;
|
|
161
|
-
selectionType: "unavailable" | "optional" | "
|
|
161
|
+
selectionType: "unavailable" | "optional" | "required" | "default_selected" | null;
|
|
162
162
|
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free" | null;
|
|
163
163
|
pricedPerPerson: boolean | null;
|
|
164
164
|
minQuantity: number | null;
|
|
@@ -234,9 +234,9 @@ export declare const extrasService: {
|
|
|
234
234
|
pricedPerPerson: boolean;
|
|
235
235
|
status: "confirmed" | "cancelled" | "draft" | "selected" | "fulfilled";
|
|
236
236
|
metadata: Record<string, unknown> | null;
|
|
237
|
+
notes: string | null;
|
|
237
238
|
bookingId: string;
|
|
238
239
|
quantity: number;
|
|
239
|
-
notes: string | null;
|
|
240
240
|
productExtraId: string | null;
|
|
241
241
|
optionExtraConfigId: string | null;
|
|
242
242
|
sellCurrency: string;
|
package/dist/validation.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const extraSelectionTypeSchema: z.ZodEnum<{
|
|
3
3
|
unavailable: "unavailable";
|
|
4
4
|
optional: "optional";
|
|
5
|
-
default_selected: "default_selected";
|
|
6
5
|
required: "required";
|
|
6
|
+
default_selected: "default_selected";
|
|
7
7
|
}>;
|
|
8
8
|
export declare const extraPricingModeSchema: z.ZodEnum<{
|
|
9
9
|
included: "included";
|
|
@@ -29,8 +29,8 @@ export declare const productExtraCoreSchema: z.ZodObject<{
|
|
|
29
29
|
selectionType: z.ZodDefault<z.ZodEnum<{
|
|
30
30
|
unavailable: "unavailable";
|
|
31
31
|
optional: "optional";
|
|
32
|
-
default_selected: "default_selected";
|
|
33
32
|
required: "required";
|
|
33
|
+
default_selected: "default_selected";
|
|
34
34
|
}>>;
|
|
35
35
|
pricingMode: z.ZodDefault<z.ZodEnum<{
|
|
36
36
|
included: "included";
|
|
@@ -57,8 +57,8 @@ export declare const insertProductExtraSchema: z.ZodObject<{
|
|
|
57
57
|
selectionType: z.ZodDefault<z.ZodEnum<{
|
|
58
58
|
unavailable: "unavailable";
|
|
59
59
|
optional: "optional";
|
|
60
|
-
default_selected: "default_selected";
|
|
61
60
|
required: "required";
|
|
61
|
+
default_selected: "default_selected";
|
|
62
62
|
}>>;
|
|
63
63
|
pricingMode: z.ZodDefault<z.ZodEnum<{
|
|
64
64
|
included: "included";
|
|
@@ -85,8 +85,8 @@ export declare const updateProductExtraSchema: z.ZodObject<{
|
|
|
85
85
|
selectionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
86
86
|
unavailable: "unavailable";
|
|
87
87
|
optional: "optional";
|
|
88
|
-
default_selected: "default_selected";
|
|
89
88
|
required: "required";
|
|
89
|
+
default_selected: "default_selected";
|
|
90
90
|
}>>>;
|
|
91
91
|
pricingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
92
92
|
included: "included";
|
|
@@ -123,8 +123,8 @@ export declare const optionExtraConfigCoreSchema: z.ZodObject<{
|
|
|
123
123
|
selectionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
124
124
|
unavailable: "unavailable";
|
|
125
125
|
optional: "optional";
|
|
126
|
-
default_selected: "default_selected";
|
|
127
126
|
required: "required";
|
|
127
|
+
default_selected: "default_selected";
|
|
128
128
|
}>>>;
|
|
129
129
|
pricingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
130
130
|
included: "included";
|
|
@@ -150,8 +150,8 @@ export declare const insertOptionExtraConfigSchema: z.ZodObject<{
|
|
|
150
150
|
selectionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
151
151
|
unavailable: "unavailable";
|
|
152
152
|
optional: "optional";
|
|
153
|
-
default_selected: "default_selected";
|
|
154
153
|
required: "required";
|
|
154
|
+
default_selected: "default_selected";
|
|
155
155
|
}>>>;
|
|
156
156
|
pricingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
157
157
|
included: "included";
|
|
@@ -177,8 +177,8 @@ export declare const updateOptionExtraConfigSchema: z.ZodObject<{
|
|
|
177
177
|
selectionType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
178
178
|
unavailable: "unavailable";
|
|
179
179
|
optional: "optional";
|
|
180
|
-
default_selected: "default_selected";
|
|
181
180
|
required: "required";
|
|
181
|
+
default_selected: "default_selected";
|
|
182
182
|
}>>>>;
|
|
183
183
|
pricingMode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
184
184
|
included: "included";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/extras",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/core": "0.24.
|
|
33
|
-
"@voyantjs/db": "0.24.
|
|
34
|
-
"@voyantjs/hono": "0.24.
|
|
35
|
-
"@voyantjs/catalog": "0.24.
|
|
32
|
+
"@voyantjs/core": "0.24.2",
|
|
33
|
+
"@voyantjs/db": "0.24.2",
|
|
34
|
+
"@voyantjs/hono": "0.24.2",
|
|
35
|
+
"@voyantjs/catalog": "0.24.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.2",
|
|
39
|
-
"@voyantjs/bookings": "0.24.
|
|
40
|
-
"@voyantjs/products": "0.24.
|
|
39
|
+
"@voyantjs/bookings": "0.24.2",
|
|
40
|
+
"@voyantjs/products": "0.24.2",
|
|
41
41
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"lint": "biome check src/",
|
|
63
63
|
"test": "node scripts/run-tests.cjs",
|
|
64
64
|
"build": "tsc -p tsconfig.json",
|
|
65
|
-
"clean": "rm -rf dist"
|
|
65
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
66
66
|
},
|
|
67
67
|
"main": "./dist/index.js",
|
|
68
68
|
"types": "./dist/index.d.ts"
|