@voyant-travel/inventory 0.1.0 → 0.2.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/action-ledger.d.ts +9 -9
- package/dist/authoring/extension.d.ts +4 -4
- package/dist/authoring/spec.d.ts +16 -16
- package/dist/booking-extension.d.ts +1 -1
- package/dist/extras/routes.d.ts +27 -27
- package/dist/extras/schema.d.ts +2 -2
- package/dist/extras/service.d.ts +8 -8
- package/dist/extras/validation.d.ts +11 -11
- package/dist/extras.d.ts +31 -31
- package/dist/interface.d.ts +102 -102
- package/dist/routes-catalog.d.ts +8 -8
- package/dist/routes-configuration.d.ts +1 -1
- package/dist/routes-core.d.ts +14 -14
- package/dist/routes-itinerary.d.ts +24 -24
- package/dist/routes-media.d.ts +12 -12
- package/dist/routes-merchandising.d.ts +19 -19
- package/dist/routes-options.d.ts +7 -7
- package/dist/routes-public.d.ts +12 -12
- package/dist/routes-translations.d.ts +5 -5
- package/dist/routes.d.ts +90 -90
- package/dist/schema-core.d.ts +2 -2
- package/dist/schema-itinerary.d.ts +1 -1
- package/dist/schema-settings.d.ts +1 -1
- package/dist/service-catalog.d.ts +4 -4
- package/dist/service-configuration.d.ts +1 -1
- package/dist/service-core.d.ts +6 -6
- package/dist/service-destinations.d.ts +8 -8
- package/dist/service-itinerary-history.d.ts +1 -1
- package/dist/service-itinerary.d.ts +15 -15
- package/dist/service-media.d.ts +10 -10
- package/dist/service-merchandising.d.ts +9 -9
- package/dist/service-option-translations.d.ts +8 -8
- package/dist/service-options.d.ts +8 -8
- package/dist/service-public.d.ts +12 -12
- package/dist/service-taxonomy.d.ts +8 -8
- package/dist/service.d.ts +86 -86
- package/dist/tasks/brochures.d.ts +2 -2
- package/package.json +10 -10
package/dist/action-ledger.d.ts
CHANGED
|
@@ -37,27 +37,27 @@ export declare function listProductActionLedger(c: Context<Env>): Promise<(Respo
|
|
|
37
37
|
error: string;
|
|
38
38
|
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
39
39
|
data: {
|
|
40
|
-
principalSubtype: string | null;
|
|
41
|
-
sessionId: string | null;
|
|
42
|
-
apiTokenId: string | null;
|
|
43
|
-
callerType: string | null;
|
|
44
|
-
organizationId: string | null;
|
|
45
|
-
workflowRunId: string | null;
|
|
46
|
-
workflowStepId: string | null;
|
|
47
40
|
id: string;
|
|
48
|
-
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
49
41
|
actionName: string;
|
|
50
42
|
actionVersion: string;
|
|
51
|
-
actionKind: "
|
|
43
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
44
|
+
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
52
45
|
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
53
46
|
actorType: string | null;
|
|
54
47
|
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
55
48
|
principalId: string;
|
|
49
|
+
principalSubtype: string | null;
|
|
50
|
+
sessionId: string | null;
|
|
51
|
+
apiTokenId: string | null;
|
|
56
52
|
internalRequest: boolean;
|
|
57
53
|
delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
|
|
58
54
|
delegatedByPrincipalId: string | null;
|
|
59
55
|
delegationId: string | null;
|
|
56
|
+
callerType: string | null;
|
|
57
|
+
organizationId: string | null;
|
|
60
58
|
routeOrToolName: string | null;
|
|
59
|
+
workflowRunId: string | null;
|
|
60
|
+
workflowStepId: string | null;
|
|
61
61
|
correlationId: string | null;
|
|
62
62
|
causationActionId: string | null;
|
|
63
63
|
idempotencyScope: string | null;
|
|
@@ -91,12 +91,13 @@ export declare const inventoryAuthoringRoutes: import("hono/hono-base").HonoBase
|
|
|
91
91
|
id: string;
|
|
92
92
|
name: string;
|
|
93
93
|
status: "draft" | "active" | "archived";
|
|
94
|
+
createdAt: string;
|
|
94
95
|
description: string | null;
|
|
95
96
|
inclusionsHtml: string | null;
|
|
96
97
|
exclusionsHtml: string | null;
|
|
97
98
|
termsHtml: string | null;
|
|
98
99
|
termsShowOnContract: boolean;
|
|
99
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
100
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
100
101
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
101
102
|
timezone: string | null;
|
|
102
103
|
defaultLanguageTag: string | null;
|
|
@@ -117,7 +118,6 @@ export declare const inventoryAuthoringRoutes: import("hono/hono-base").HonoBase
|
|
|
117
118
|
taxClassId: string | null;
|
|
118
119
|
customerPaymentPolicy: import("hono/utils/types").JSONValue;
|
|
119
120
|
tags: string[] | null;
|
|
120
|
-
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
};
|
|
123
123
|
options: {
|
|
@@ -202,12 +202,13 @@ export declare const catalogAuthoringRoutes: import("hono/hono-base").HonoBase<E
|
|
|
202
202
|
id: string;
|
|
203
203
|
name: string;
|
|
204
204
|
status: "draft" | "active" | "archived";
|
|
205
|
+
createdAt: string;
|
|
205
206
|
description: string | null;
|
|
206
207
|
inclusionsHtml: string | null;
|
|
207
208
|
exclusionsHtml: string | null;
|
|
208
209
|
termsHtml: string | null;
|
|
209
210
|
termsShowOnContract: boolean;
|
|
210
|
-
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary"
|
|
211
|
+
bookingMode: "date" | "other" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
|
|
211
212
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
212
213
|
timezone: string | null;
|
|
213
214
|
defaultLanguageTag: string | null;
|
|
@@ -228,7 +229,6 @@ export declare const catalogAuthoringRoutes: import("hono/hono-base").HonoBase<E
|
|
|
228
229
|
taxClassId: string | null;
|
|
229
230
|
customerPaymentPolicy: import("hono/utils/types").JSONValue;
|
|
230
231
|
tags: string[] | null;
|
|
231
|
-
createdAt: string;
|
|
232
232
|
updatedAt: string;
|
|
233
233
|
};
|
|
234
234
|
options: {
|
package/dist/authoring/spec.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ export declare const unitSpecSchema: z.ZodObject<{
|
|
|
5
5
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
unitType: z.ZodDefault<z.ZodEnum<{
|
|
8
|
-
other: "other";
|
|
9
8
|
person: "person";
|
|
10
9
|
group: "group";
|
|
11
10
|
room: "room";
|
|
12
11
|
vehicle: "vehicle";
|
|
13
12
|
service: "service";
|
|
13
|
+
other: "other";
|
|
14
14
|
}>>;
|
|
15
15
|
minQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
16
|
maxQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -36,10 +36,10 @@ export declare const unitPriceRuleSpecSchema: z.ZodObject<{
|
|
|
36
36
|
pricingMode: z.ZodDefault<z.ZodEnum<{
|
|
37
37
|
on_request: "on_request";
|
|
38
38
|
per_booking: "per_booking";
|
|
39
|
+
included: "included";
|
|
39
40
|
per_person: "per_person";
|
|
40
41
|
free: "free";
|
|
41
42
|
per_unit: "per_unit";
|
|
42
|
-
included: "included";
|
|
43
43
|
}>>;
|
|
44
44
|
sellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
45
|
costAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -69,8 +69,8 @@ export declare const optionPriceRuleSpecSchema: z.ZodObject<{
|
|
|
69
69
|
on_request: "on_request";
|
|
70
70
|
per_booking: "per_booking";
|
|
71
71
|
per_person: "per_person";
|
|
72
|
-
starting_from: "starting_from";
|
|
73
72
|
free: "free";
|
|
73
|
+
starting_from: "starting_from";
|
|
74
74
|
}>>;
|
|
75
75
|
baseSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
76
|
baseCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -87,10 +87,10 @@ export declare const optionPriceRuleSpecSchema: z.ZodObject<{
|
|
|
87
87
|
pricingMode: z.ZodDefault<z.ZodEnum<{
|
|
88
88
|
on_request: "on_request";
|
|
89
89
|
per_booking: "per_booking";
|
|
90
|
+
included: "included";
|
|
90
91
|
per_person: "per_person";
|
|
91
92
|
free: "free";
|
|
92
93
|
per_unit: "per_unit";
|
|
93
|
-
included: "included";
|
|
94
94
|
}>>;
|
|
95
95
|
sellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
96
96
|
costAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -130,12 +130,12 @@ export declare const optionSpecSchema: z.ZodObject<{
|
|
|
130
130
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
132
|
unitType: z.ZodDefault<z.ZodEnum<{
|
|
133
|
-
other: "other";
|
|
134
133
|
person: "person";
|
|
135
134
|
group: "group";
|
|
136
135
|
room: "room";
|
|
137
136
|
vehicle: "vehicle";
|
|
138
137
|
service: "service";
|
|
138
|
+
other: "other";
|
|
139
139
|
}>>;
|
|
140
140
|
minQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
141
141
|
maxQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -158,8 +158,8 @@ export declare const optionSpecSchema: z.ZodObject<{
|
|
|
158
158
|
on_request: "on_request";
|
|
159
159
|
per_booking: "per_booking";
|
|
160
160
|
per_person: "per_person";
|
|
161
|
-
starting_from: "starting_from";
|
|
162
161
|
free: "free";
|
|
162
|
+
starting_from: "starting_from";
|
|
163
163
|
}>>;
|
|
164
164
|
baseSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
165
165
|
baseCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -176,10 +176,10 @@ export declare const optionSpecSchema: z.ZodObject<{
|
|
|
176
176
|
pricingMode: z.ZodDefault<z.ZodEnum<{
|
|
177
177
|
on_request: "on_request";
|
|
178
178
|
per_booking: "per_booking";
|
|
179
|
+
included: "included";
|
|
179
180
|
per_person: "per_person";
|
|
180
181
|
free: "free";
|
|
181
182
|
per_unit: "per_unit";
|
|
182
|
-
included: "included";
|
|
183
183
|
}>>;
|
|
184
184
|
sellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
185
185
|
costAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -211,8 +211,8 @@ export declare const paxPricingTierSpecSchema: z.ZodObject<{
|
|
|
211
211
|
export declare const dayServiceSpecSchema: z.ZodObject<{
|
|
212
212
|
supplierServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
213
|
serviceType: z.ZodEnum<{
|
|
214
|
-
transfer: "transfer";
|
|
215
214
|
other: "other";
|
|
215
|
+
transfer: "transfer";
|
|
216
216
|
accommodation: "accommodation";
|
|
217
217
|
experience: "experience";
|
|
218
218
|
guide: "guide";
|
|
@@ -235,8 +235,8 @@ export declare const daySpecSchema: z.ZodObject<{
|
|
|
235
235
|
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
236
236
|
supplierServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
237
|
serviceType: z.ZodEnum<{
|
|
238
|
-
transfer: "transfer";
|
|
239
238
|
other: "other";
|
|
239
|
+
transfer: "transfer";
|
|
240
240
|
accommodation: "accommodation";
|
|
241
241
|
experience: "experience";
|
|
242
242
|
guide: "guide";
|
|
@@ -264,8 +264,8 @@ export declare const itinerarySpecSchema: z.ZodObject<{
|
|
|
264
264
|
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
265
265
|
supplierServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
266
|
serviceType: z.ZodEnum<{
|
|
267
|
-
transfer: "transfer";
|
|
268
267
|
other: "other";
|
|
268
|
+
transfer: "transfer";
|
|
269
269
|
accommodation: "accommodation";
|
|
270
270
|
experience: "experience";
|
|
271
271
|
guide: "guide";
|
|
@@ -296,12 +296,12 @@ export declare const productRowSpecSchema: z.ZodObject<{
|
|
|
296
296
|
termsShowOnContract: z.ZodDefault<z.ZodBoolean>;
|
|
297
297
|
bookingMode: z.ZodDefault<z.ZodEnum<{
|
|
298
298
|
date: "date";
|
|
299
|
+
other: "other";
|
|
299
300
|
date_time: "date_time";
|
|
300
301
|
open: "open";
|
|
301
302
|
stay: "stay";
|
|
302
303
|
transfer: "transfer";
|
|
303
304
|
itinerary: "itinerary";
|
|
304
|
-
other: "other";
|
|
305
305
|
}>>;
|
|
306
306
|
capacityMode: z.ZodDefault<z.ZodEnum<{
|
|
307
307
|
free_sale: "free_sale";
|
|
@@ -346,12 +346,12 @@ export declare const productGraphSpecSchema: z.ZodObject<{
|
|
|
346
346
|
termsShowOnContract: z.ZodDefault<z.ZodBoolean>;
|
|
347
347
|
bookingMode: z.ZodDefault<z.ZodEnum<{
|
|
348
348
|
date: "date";
|
|
349
|
+
other: "other";
|
|
349
350
|
date_time: "date_time";
|
|
350
351
|
open: "open";
|
|
351
352
|
stay: "stay";
|
|
352
353
|
transfer: "transfer";
|
|
353
354
|
itinerary: "itinerary";
|
|
354
|
-
other: "other";
|
|
355
355
|
}>>;
|
|
356
356
|
capacityMode: z.ZodDefault<z.ZodEnum<{
|
|
357
357
|
free_sale: "free_sale";
|
|
@@ -401,12 +401,12 @@ export declare const productGraphSpecSchema: z.ZodObject<{
|
|
|
401
401
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
402
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
403
403
|
unitType: z.ZodDefault<z.ZodEnum<{
|
|
404
|
-
other: "other";
|
|
405
404
|
person: "person";
|
|
406
405
|
group: "group";
|
|
407
406
|
room: "room";
|
|
408
407
|
vehicle: "vehicle";
|
|
409
408
|
service: "service";
|
|
409
|
+
other: "other";
|
|
410
410
|
}>>;
|
|
411
411
|
minQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
412
412
|
maxQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -429,8 +429,8 @@ export declare const productGraphSpecSchema: z.ZodObject<{
|
|
|
429
429
|
on_request: "on_request";
|
|
430
430
|
per_booking: "per_booking";
|
|
431
431
|
per_person: "per_person";
|
|
432
|
-
starting_from: "starting_from";
|
|
433
432
|
free: "free";
|
|
433
|
+
starting_from: "starting_from";
|
|
434
434
|
}>>;
|
|
435
435
|
baseSellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
436
436
|
baseCostAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -447,10 +447,10 @@ export declare const productGraphSpecSchema: z.ZodObject<{
|
|
|
447
447
|
pricingMode: z.ZodDefault<z.ZodEnum<{
|
|
448
448
|
on_request: "on_request";
|
|
449
449
|
per_booking: "per_booking";
|
|
450
|
+
included: "included";
|
|
450
451
|
per_person: "per_person";
|
|
451
452
|
free: "free";
|
|
452
453
|
per_unit: "per_unit";
|
|
453
|
-
included: "included";
|
|
454
454
|
}>>;
|
|
455
455
|
sellAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
456
456
|
costAmountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -491,8 +491,8 @@ export declare const productGraphSpecSchema: z.ZodObject<{
|
|
|
491
491
|
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
492
492
|
supplierServiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
493
493
|
serviceType: z.ZodEnum<{
|
|
494
|
-
transfer: "transfer";
|
|
495
494
|
other: "other";
|
|
495
|
+
transfer: "transfer";
|
|
496
496
|
accommodation: "accommodation";
|
|
497
497
|
experience: "experience";
|
|
498
498
|
guide: "guide";
|
|
@@ -265,8 +265,8 @@ export declare const bookingProductExtensionService: {
|
|
|
265
265
|
updatedAt: Date;
|
|
266
266
|
productId: string | null;
|
|
267
267
|
optionId: string | null;
|
|
268
|
-
unitId: string | null;
|
|
269
268
|
supplierServiceId: string | null;
|
|
269
|
+
unitId: string | null;
|
|
270
270
|
bookingItemId: string;
|
|
271
271
|
} | null>;
|
|
272
272
|
removeItemDetails(db: PostgresJsDatabase, bookingItemId: string): Promise<{
|
package/dist/extras/routes.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
16
16
|
code: string | null;
|
|
17
17
|
name: string;
|
|
18
18
|
description: string | null;
|
|
19
|
-
selectionType: "optional" | "required" | "
|
|
20
|
-
pricingMode: "on_request" | "per_booking" | "
|
|
19
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
20
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
21
21
|
pricedPerPerson: boolean;
|
|
22
22
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
23
23
|
showOnSlotManifest: boolean;
|
|
@@ -48,21 +48,21 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
48
48
|
data: {
|
|
49
49
|
id: string;
|
|
50
50
|
name: string;
|
|
51
|
-
|
|
51
|
+
createdAt: string;
|
|
52
52
|
description: string | null;
|
|
53
|
+
active: boolean;
|
|
53
54
|
supplierId: string | null;
|
|
54
|
-
createdAt: string;
|
|
55
55
|
updatedAt: string;
|
|
56
|
-
metadata: {
|
|
57
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
58
|
-
} | null;
|
|
59
|
-
code: string | null;
|
|
60
56
|
productId: string;
|
|
57
|
+
code: string | null;
|
|
61
58
|
sortOrder: number;
|
|
62
59
|
minQuantity: number | null;
|
|
63
60
|
maxQuantity: number | null;
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
metadata: {
|
|
62
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
63
|
+
} | null;
|
|
64
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
65
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
66
66
|
pricedPerPerson: boolean;
|
|
67
67
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
68
68
|
showOnSlotManifest: boolean;
|
|
@@ -100,8 +100,8 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
100
100
|
code: string | null;
|
|
101
101
|
name: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
selectionType: "optional" | "required" | "
|
|
104
|
-
pricingMode: "on_request" | "per_booking" | "
|
|
103
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
104
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
105
105
|
pricedPerPerson: boolean;
|
|
106
106
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
107
107
|
showOnSlotManifest: boolean;
|
|
@@ -148,8 +148,8 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
148
148
|
code: string | null;
|
|
149
149
|
name: string;
|
|
150
150
|
description: string | null;
|
|
151
|
-
selectionType: "optional" | "required" | "
|
|
152
|
-
pricingMode: "on_request" | "per_booking" | "
|
|
151
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
152
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
153
153
|
pricedPerPerson: boolean;
|
|
154
154
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
155
155
|
showOnSlotManifest: boolean;
|
|
@@ -204,8 +204,8 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
204
204
|
id: string;
|
|
205
205
|
optionId: string;
|
|
206
206
|
productExtraId: string;
|
|
207
|
-
selectionType: "optional" | "required" | "
|
|
208
|
-
pricingMode: "on_request" | "per_booking" | "
|
|
207
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
208
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
209
209
|
pricedPerPerson: boolean | null;
|
|
210
210
|
minQuantity: number | null;
|
|
211
211
|
maxQuantity: number | null;
|
|
@@ -235,20 +235,20 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
235
235
|
output: {
|
|
236
236
|
data: {
|
|
237
237
|
id: string;
|
|
238
|
-
active: boolean;
|
|
239
238
|
createdAt: string;
|
|
239
|
+
active: boolean;
|
|
240
240
|
updatedAt: string;
|
|
241
|
-
metadata: {
|
|
242
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
243
|
-
} | null;
|
|
244
|
-
notes: string | null;
|
|
245
241
|
isDefault: boolean;
|
|
246
242
|
sortOrder: number;
|
|
247
243
|
optionId: string;
|
|
248
244
|
minQuantity: number | null;
|
|
249
245
|
maxQuantity: number | null;
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
notes: string | null;
|
|
247
|
+
metadata: {
|
|
248
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
249
|
+
} | null;
|
|
250
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
251
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
252
252
|
pricedPerPerson: boolean | null;
|
|
253
253
|
defaultQuantity: number | null;
|
|
254
254
|
productExtraId: string;
|
|
@@ -282,8 +282,8 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
282
282
|
id: string;
|
|
283
283
|
optionId: string;
|
|
284
284
|
productExtraId: string;
|
|
285
|
-
selectionType: "optional" | "required" | "
|
|
286
|
-
pricingMode: "on_request" | "per_booking" | "
|
|
285
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
286
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
287
287
|
pricedPerPerson: boolean | null;
|
|
288
288
|
minQuantity: number | null;
|
|
289
289
|
maxQuantity: number | null;
|
|
@@ -327,8 +327,8 @@ export declare const inventoryExtrasRoutes: import("hono/hono-base").HonoBase<En
|
|
|
327
327
|
id: string;
|
|
328
328
|
optionId: string;
|
|
329
329
|
productExtraId: string;
|
|
330
|
-
selectionType: "optional" | "required" | "
|
|
331
|
-
pricingMode: "on_request" | "per_booking" | "
|
|
330
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
331
|
+
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
332
332
|
pricedPerPerson: boolean | null;
|
|
333
333
|
minQuantity: number | null;
|
|
334
334
|
maxQuantity: number | null;
|
package/dist/extras/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: "
|
|
115
|
+
data: "optional" | "required" | "unavailable" | "default_selected";
|
|
116
116
|
driverParam: string;
|
|
117
117
|
notNull: true;
|
|
118
118
|
hasDefault: true;
|
|
@@ -393,7 +393,7 @@ export declare const optionExtraConfigs: import("drizzle-orm/pg-core").PgTableWi
|
|
|
393
393
|
tableName: "option_extra_configs";
|
|
394
394
|
dataType: "string";
|
|
395
395
|
columnType: "PgEnumColumn";
|
|
396
|
-
data: "
|
|
396
|
+
data: "optional" | "required" | "unavailable" | "default_selected";
|
|
397
397
|
driverParam: string;
|
|
398
398
|
notNull: false;
|
|
399
399
|
hasDefault: false;
|
package/dist/extras/service.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const inventoryExtrasService: {
|
|
|
16
16
|
code: string | null;
|
|
17
17
|
name: string;
|
|
18
18
|
description: string | null;
|
|
19
|
-
selectionType: "
|
|
19
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
20
20
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
21
21
|
pricedPerPerson: boolean;
|
|
22
22
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
@@ -41,7 +41,7 @@ export declare const inventoryExtrasService: {
|
|
|
41
41
|
code: string | null;
|
|
42
42
|
name: string;
|
|
43
43
|
description: string | null;
|
|
44
|
-
selectionType: "
|
|
44
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
45
45
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
46
46
|
pricedPerPerson: boolean;
|
|
47
47
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
@@ -69,7 +69,7 @@ export declare const inventoryExtrasService: {
|
|
|
69
69
|
minQuantity: number | null;
|
|
70
70
|
maxQuantity: number | null;
|
|
71
71
|
metadata: Record<string, unknown> | null;
|
|
72
|
-
selectionType: "
|
|
72
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
73
73
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
74
74
|
pricedPerPerson: boolean;
|
|
75
75
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
@@ -83,7 +83,7 @@ export declare const inventoryExtrasService: {
|
|
|
83
83
|
code: string | null;
|
|
84
84
|
name: string;
|
|
85
85
|
description: string | null;
|
|
86
|
-
selectionType: "
|
|
86
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected";
|
|
87
87
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
|
|
88
88
|
pricedPerPerson: boolean;
|
|
89
89
|
collectionMode: "none" | "external" | "included" | "booking_total" | "cash_on_trip";
|
|
@@ -105,7 +105,7 @@ export declare const inventoryExtrasService: {
|
|
|
105
105
|
id: string;
|
|
106
106
|
optionId: string;
|
|
107
107
|
productExtraId: string;
|
|
108
|
-
selectionType: "
|
|
108
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
109
109
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
110
110
|
pricedPerPerson: boolean | null;
|
|
111
111
|
minQuantity: number | null;
|
|
@@ -127,7 +127,7 @@ export declare const inventoryExtrasService: {
|
|
|
127
127
|
id: string;
|
|
128
128
|
optionId: string;
|
|
129
129
|
productExtraId: string;
|
|
130
|
-
selectionType: "
|
|
130
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
131
131
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
132
132
|
pricedPerPerson: boolean | null;
|
|
133
133
|
minQuantity: number | null;
|
|
@@ -153,7 +153,7 @@ export declare const inventoryExtrasService: {
|
|
|
153
153
|
maxQuantity: number | null;
|
|
154
154
|
notes: string | null;
|
|
155
155
|
metadata: Record<string, unknown> | null;
|
|
156
|
-
selectionType: "
|
|
156
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
157
157
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
158
158
|
pricedPerPerson: boolean | null;
|
|
159
159
|
defaultQuantity: number | null;
|
|
@@ -163,7 +163,7 @@ export declare const inventoryExtrasService: {
|
|
|
163
163
|
id: string;
|
|
164
164
|
optionId: string;
|
|
165
165
|
productExtraId: string;
|
|
166
|
-
selectionType: "
|
|
166
|
+
selectionType: "optional" | "required" | "unavailable" | "default_selected" | null;
|
|
167
167
|
pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free" | null;
|
|
168
168
|
pricedPerPerson: boolean | null;
|
|
169
169
|
minQuantity: number | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const extraSelectionTypeSchema: z.ZodEnum<{
|
|
3
|
-
required: "required";
|
|
4
3
|
optional: "optional";
|
|
4
|
+
required: "required";
|
|
5
5
|
unavailable: "unavailable";
|
|
6
6
|
default_selected: "default_selected";
|
|
7
7
|
}>;
|
|
@@ -35,9 +35,9 @@ export declare const extraParticipantSelectionStatusSchema: z.ZodEnum<{
|
|
|
35
35
|
}>;
|
|
36
36
|
export declare const extraCollectionStatusSchema: z.ZodEnum<{
|
|
37
37
|
pending: "pending";
|
|
38
|
+
waived: "waived";
|
|
38
39
|
not_required: "not_required";
|
|
39
40
|
collected: "collected";
|
|
40
|
-
waived: "waived";
|
|
41
41
|
refunded: "refunded";
|
|
42
42
|
}>;
|
|
43
43
|
export declare const productExtraCoreSchema: z.ZodObject<{
|
|
@@ -47,8 +47,8 @@ export declare const productExtraCoreSchema: z.ZodObject<{
|
|
|
47
47
|
name: z.ZodString;
|
|
48
48
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
selectionType: z.ZodDefault<z.ZodEnum<{
|
|
50
|
-
required: "required";
|
|
51
50
|
optional: "optional";
|
|
51
|
+
required: "required";
|
|
52
52
|
unavailable: "unavailable";
|
|
53
53
|
default_selected: "default_selected";
|
|
54
54
|
}>>;
|
|
@@ -83,8 +83,8 @@ export declare const insertProductExtraSchema: z.ZodObject<{
|
|
|
83
83
|
name: z.ZodString;
|
|
84
84
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
85
|
selectionType: z.ZodDefault<z.ZodEnum<{
|
|
86
|
-
required: "required";
|
|
87
86
|
optional: "optional";
|
|
87
|
+
required: "required";
|
|
88
88
|
unavailable: "unavailable";
|
|
89
89
|
default_selected: "default_selected";
|
|
90
90
|
}>>;
|
|
@@ -119,8 +119,8 @@ export declare const updateProductExtraSchema: z.ZodObject<{
|
|
|
119
119
|
name: z.ZodOptional<z.ZodString>;
|
|
120
120
|
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
121
121
|
selectionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
122
|
-
required: "required";
|
|
123
122
|
optional: "optional";
|
|
123
|
+
required: "required";
|
|
124
124
|
unavailable: "unavailable";
|
|
125
125
|
default_selected: "default_selected";
|
|
126
126
|
}>>>;
|
|
@@ -165,8 +165,8 @@ export declare const optionExtraConfigCoreSchema: z.ZodObject<{
|
|
|
165
165
|
optionId: z.ZodString;
|
|
166
166
|
productExtraId: z.ZodString;
|
|
167
167
|
selectionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
168
|
-
required: "required";
|
|
169
168
|
optional: "optional";
|
|
169
|
+
required: "required";
|
|
170
170
|
unavailable: "unavailable";
|
|
171
171
|
default_selected: "default_selected";
|
|
172
172
|
}>>>;
|
|
@@ -192,8 +192,8 @@ export declare const insertOptionExtraConfigSchema: z.ZodObject<{
|
|
|
192
192
|
optionId: z.ZodString;
|
|
193
193
|
productExtraId: z.ZodString;
|
|
194
194
|
selectionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
195
|
-
required: "required";
|
|
196
195
|
optional: "optional";
|
|
196
|
+
required: "required";
|
|
197
197
|
unavailable: "unavailable";
|
|
198
198
|
default_selected: "default_selected";
|
|
199
199
|
}>>>;
|
|
@@ -219,8 +219,8 @@ export declare const updateOptionExtraConfigSchema: z.ZodObject<{
|
|
|
219
219
|
optionId: z.ZodOptional<z.ZodString>;
|
|
220
220
|
productExtraId: z.ZodOptional<z.ZodString>;
|
|
221
221
|
selectionType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
222
|
-
required: "required";
|
|
223
222
|
optional: "optional";
|
|
223
|
+
required: "required";
|
|
224
224
|
unavailable: "unavailable";
|
|
225
225
|
default_selected: "default_selected";
|
|
226
226
|
}>>>>;
|
|
@@ -385,9 +385,9 @@ export declare const slotExtraSelectionPatchSchema: z.ZodObject<{
|
|
|
385
385
|
}>>;
|
|
386
386
|
collectionStatus: z.ZodOptional<z.ZodEnum<{
|
|
387
387
|
pending: "pending";
|
|
388
|
+
waived: "waived";
|
|
388
389
|
not_required: "not_required";
|
|
389
390
|
collected: "collected";
|
|
390
|
-
waived: "waived";
|
|
391
391
|
refunded: "refunded";
|
|
392
392
|
}>>;
|
|
393
393
|
collectionCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -409,9 +409,9 @@ export declare const slotExtraSelectionBulkSchema: z.ZodObject<{
|
|
|
409
409
|
}>>;
|
|
410
410
|
collectionStatus: z.ZodOptional<z.ZodEnum<{
|
|
411
411
|
pending: "pending";
|
|
412
|
+
waived: "waived";
|
|
412
413
|
not_required: "not_required";
|
|
413
414
|
collected: "collected";
|
|
414
|
-
waived: "waived";
|
|
415
415
|
refunded: "refunded";
|
|
416
416
|
}>>;
|
|
417
417
|
collectionCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -425,9 +425,9 @@ export declare const slotExtraCollectionBulkSchema: z.ZodObject<{
|
|
|
425
425
|
travelerIds: z.ZodArray<z.ZodString>;
|
|
426
426
|
collectionStatus: z.ZodEnum<{
|
|
427
427
|
pending: "pending";
|
|
428
|
+
waived: "waived";
|
|
428
429
|
not_required: "not_required";
|
|
429
430
|
collected: "collected";
|
|
430
|
-
waived: "waived";
|
|
431
431
|
refunded: "refunded";
|
|
432
432
|
}>;
|
|
433
433
|
collectionCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|