@voyant-travel/commerce 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/markets/routes.d.ts +30 -30
- package/dist/markets/schema.d.ts +1 -1
- package/dist/markets/service-core.d.ts +5 -5
- package/dist/markets/service-rules.d.ts +5 -5
- package/dist/markets/validation.d.ts +5 -5
- package/dist/pricing/routes-core.d.ts +28 -28
- package/dist/pricing/routes-rules.d.ts +30 -30
- package/dist/pricing/schema-categories.d.ts +1 -1
- package/dist/pricing/schema-option-rules.d.ts +1 -1
- package/dist/pricing/service-catalogs.d.ts +3 -3
- package/dist/pricing/service-categories.d.ts +5 -5
- package/dist/pricing/service-departure-overrides.d.ts +1 -1
- package/dist/pricing/service-option-rules.d.ts +14 -14
- package/dist/pricing/service-policies.d.ts +2 -2
- package/dist/pricing/service-transfer-rules.d.ts +3 -3
- package/dist/pricing/validation-public.d.ts +6 -6
- package/dist/pricing/validation.d.ts +7 -7
- package/dist/promotions/routes.d.ts +59 -59
- package/dist/promotions/validation.d.ts +2 -2
- package/dist/sellability/routes.d.ts +106 -106
- package/dist/sellability/schema.d.ts +4 -4
- package/dist/sellability/service-records.d.ts +19 -19
- package/dist/sellability/service-resolve.d.ts +1 -1
- package/dist/sellability/service-snapshots.d.ts +5 -5
- package/dist/sellability/service.d.ts +128 -128
- package/dist/sellability/validation.d.ts +20 -20
- package/package.json +5 -5
|
@@ -43,23 +43,23 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
43
43
|
input: {};
|
|
44
44
|
output: {
|
|
45
45
|
data: {
|
|
46
|
-
id: string;
|
|
47
|
-
code: string | null;
|
|
48
|
-
active: boolean;
|
|
49
46
|
metadata: {
|
|
50
47
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
51
48
|
} | null;
|
|
52
|
-
|
|
49
|
+
id: string;
|
|
53
50
|
name: string;
|
|
54
51
|
createdAt: string;
|
|
52
|
+
code: string | null;
|
|
53
|
+
description: string | null;
|
|
55
54
|
updatedAt: string;
|
|
56
|
-
isDefault: boolean;
|
|
57
55
|
notes: string | null;
|
|
56
|
+
active: boolean;
|
|
57
|
+
isDefault: boolean;
|
|
58
58
|
priceCatalogId: string;
|
|
59
59
|
productId: string;
|
|
60
60
|
optionId: string;
|
|
61
|
-
priceScheduleId: string | null;
|
|
62
61
|
cancellationPolicyId: string | null;
|
|
62
|
+
priceScheduleId: string | null;
|
|
63
63
|
pricingMode: "on_request" | "per_person" | "per_booking" | "starting_from" | "free";
|
|
64
64
|
baseSellAmountCents: number | null;
|
|
65
65
|
baseCostAmountCents: number | null;
|
|
@@ -237,22 +237,22 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
237
237
|
input: {};
|
|
238
238
|
output: {
|
|
239
239
|
data: {
|
|
240
|
-
id: string;
|
|
241
|
-
active: boolean;
|
|
242
240
|
metadata: {
|
|
243
241
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
244
242
|
} | null;
|
|
243
|
+
id: string;
|
|
245
244
|
createdAt: string;
|
|
246
245
|
updatedAt: string;
|
|
247
|
-
sortOrder: number;
|
|
248
246
|
notes: string | null;
|
|
247
|
+
active: boolean;
|
|
248
|
+
sortOrder: number;
|
|
249
249
|
optionId: string;
|
|
250
|
-
pricingMode: "on_request" | "per_person" | "per_booking" | "free" | "per_unit" | "included";
|
|
251
|
-
optionPriceRuleId: string;
|
|
252
250
|
unitId: string;
|
|
253
251
|
pricingCategoryId: string | null;
|
|
254
252
|
sellAmountCents: number | null;
|
|
255
253
|
costAmountCents: number | null;
|
|
254
|
+
pricingMode: "on_request" | "per_person" | "per_booking" | "free" | "per_unit" | "included";
|
|
255
|
+
optionPriceRuleId: string;
|
|
256
256
|
minQuantity: number | null;
|
|
257
257
|
maxQuantity: number | null;
|
|
258
258
|
} | null;
|
|
@@ -412,18 +412,18 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
412
412
|
output: {
|
|
413
413
|
data: {
|
|
414
414
|
id: string;
|
|
415
|
-
active: boolean;
|
|
416
415
|
createdAt: string;
|
|
417
416
|
updatedAt: string;
|
|
418
417
|
notes: string | null;
|
|
418
|
+
active: boolean;
|
|
419
419
|
optionId: string;
|
|
420
420
|
optionPriceRuleId: string;
|
|
421
421
|
startTimeId: string;
|
|
422
422
|
ruleMode: "adjustment" | "override" | "included" | "excluded";
|
|
423
423
|
adjustmentType: "fixed" | "percentage" | null;
|
|
424
424
|
sellAdjustmentCents: number | null;
|
|
425
|
-
adjustmentBasisPoints: number | null;
|
|
426
425
|
costAdjustmentCents: number | null;
|
|
426
|
+
adjustmentBasisPoints: number | null;
|
|
427
427
|
} | null;
|
|
428
428
|
};
|
|
429
429
|
outputFormat: "json";
|
|
@@ -568,9 +568,9 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
568
568
|
output: {
|
|
569
569
|
data: {
|
|
570
570
|
id: string;
|
|
571
|
-
active: boolean;
|
|
572
571
|
createdAt: string;
|
|
573
572
|
updatedAt: string;
|
|
573
|
+
active: boolean;
|
|
574
574
|
sortOrder: number;
|
|
575
575
|
sellAmountCents: number | null;
|
|
576
576
|
costAmountCents: number | null;
|
|
@@ -717,16 +717,16 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
717
717
|
output: {
|
|
718
718
|
data: {
|
|
719
719
|
id: string;
|
|
720
|
-
active: boolean;
|
|
721
720
|
createdAt: string;
|
|
722
721
|
updatedAt: string;
|
|
723
|
-
sortOrder: number;
|
|
724
722
|
notes: string | null;
|
|
723
|
+
active: boolean;
|
|
724
|
+
sortOrder: number;
|
|
725
725
|
optionId: string;
|
|
726
|
-
pricingMode: "unavailable" | "on_request" | "per_person" | "per_booking" | "included";
|
|
727
|
-
optionPriceRuleId: string;
|
|
728
726
|
sellAmountCents: number | null;
|
|
729
727
|
costAmountCents: number | null;
|
|
728
|
+
pricingMode: "unavailable" | "on_request" | "per_person" | "per_booking" | "included";
|
|
729
|
+
optionPriceRuleId: string;
|
|
730
730
|
pickupPointId: string;
|
|
731
731
|
} | null;
|
|
732
732
|
};
|
|
@@ -874,16 +874,16 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
874
874
|
output: {
|
|
875
875
|
data: {
|
|
876
876
|
id: string;
|
|
877
|
-
active: boolean;
|
|
878
877
|
createdAt: string;
|
|
879
878
|
updatedAt: string;
|
|
880
|
-
sortOrder: number;
|
|
881
879
|
notes: string | null;
|
|
880
|
+
active: boolean;
|
|
881
|
+
sortOrder: number;
|
|
882
882
|
optionId: string;
|
|
883
|
-
pricingMode: "unavailable" | "on_request" | "per_person" | "per_booking" | "included";
|
|
884
|
-
optionPriceRuleId: string;
|
|
885
883
|
sellAmountCents: number | null;
|
|
886
884
|
costAmountCents: number | null;
|
|
885
|
+
pricingMode: "unavailable" | "on_request" | "per_person" | "per_booking" | "included";
|
|
886
|
+
optionPriceRuleId: string;
|
|
887
887
|
facilityId: string | null;
|
|
888
888
|
dropoffCode: string | null;
|
|
889
889
|
dropoffName: string;
|
|
@@ -1038,20 +1038,20 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1038
1038
|
input: {};
|
|
1039
1039
|
output: {
|
|
1040
1040
|
data: {
|
|
1041
|
-
id: string;
|
|
1042
|
-
active: boolean;
|
|
1043
1041
|
metadata: {
|
|
1044
1042
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1045
1043
|
} | null;
|
|
1044
|
+
id: string;
|
|
1046
1045
|
createdAt: string;
|
|
1047
1046
|
updatedAt: string;
|
|
1048
|
-
sortOrder: number;
|
|
1049
1047
|
notes: string | null;
|
|
1048
|
+
active: boolean;
|
|
1049
|
+
sortOrder: number;
|
|
1050
1050
|
optionId: string;
|
|
1051
|
-
pricingMode: "unavailable" | "on_request" | "per_person" | "per_booking" | "included";
|
|
1052
|
-
optionPriceRuleId: string;
|
|
1053
1051
|
sellAmountCents: number | null;
|
|
1054
1052
|
costAmountCents: number | null;
|
|
1053
|
+
pricingMode: "unavailable" | "on_request" | "per_person" | "per_booking" | "included";
|
|
1054
|
+
optionPriceRuleId: string;
|
|
1055
1055
|
productExtraId: string | null;
|
|
1056
1056
|
optionExtraConfigId: string | null;
|
|
1057
1057
|
} | null;
|
|
@@ -1207,20 +1207,20 @@ export declare const pricingRuleRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1207
1207
|
input: {};
|
|
1208
1208
|
output: {
|
|
1209
1209
|
data: {
|
|
1210
|
-
id: string;
|
|
1211
|
-
active: boolean;
|
|
1212
1210
|
metadata: {
|
|
1213
1211
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1214
1212
|
} | null;
|
|
1213
|
+
id: string;
|
|
1215
1214
|
createdAt: string;
|
|
1216
1215
|
updatedAt: string;
|
|
1217
1216
|
notes: string | null;
|
|
1217
|
+
active: boolean;
|
|
1218
1218
|
priceCatalogId: string;
|
|
1219
1219
|
optionId: string;
|
|
1220
1220
|
departureId: string;
|
|
1221
|
+
optionUnitId: string;
|
|
1221
1222
|
sellAmountCents: number;
|
|
1222
1223
|
costAmountCents: number | null;
|
|
1223
|
-
optionUnitId: string;
|
|
1224
1224
|
} | null;
|
|
1225
1225
|
};
|
|
1226
1226
|
outputFormat: "json";
|
|
@@ -109,7 +109,7 @@ export declare const pricingCategories: import("drizzle-orm/pg-core").PgTableWit
|
|
|
109
109
|
tableName: "pricing_categories";
|
|
110
110
|
dataType: "string";
|
|
111
111
|
columnType: "PgEnumColumn";
|
|
112
|
-
data: "service" | "
|
|
112
|
+
data: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
|
|
113
113
|
driverParam: string;
|
|
114
114
|
notNull: true;
|
|
115
115
|
hasDefault: true;
|
|
@@ -722,7 +722,7 @@ export declare const optionStartTimeRules: import("drizzle-orm/pg-core").PgTable
|
|
|
722
722
|
tableName: "option_start_time_rules";
|
|
723
723
|
dataType: "string";
|
|
724
724
|
columnType: "PgEnumColumn";
|
|
725
|
-
data: "
|
|
725
|
+
data: "adjustment" | "override" | "included" | "excluded";
|
|
726
726
|
driverParam: string;
|
|
727
727
|
notNull: true;
|
|
728
728
|
hasDefault: true;
|
|
@@ -37,8 +37,8 @@ export declare function createPriceCatalog(db: PostgresJsDatabase, data: CreateP
|
|
|
37
37
|
name: string;
|
|
38
38
|
createdAt: Date;
|
|
39
39
|
code: string;
|
|
40
|
-
notes: string | null;
|
|
41
40
|
updatedAt: Date;
|
|
41
|
+
notes: string | null;
|
|
42
42
|
active: boolean;
|
|
43
43
|
isDefault: boolean;
|
|
44
44
|
currencyCode: string | null;
|
|
@@ -106,10 +106,10 @@ export declare function createPriceSchedule(db: PostgresJsDatabase, data: Create
|
|
|
106
106
|
createdAt: Date;
|
|
107
107
|
code: string | null;
|
|
108
108
|
priority: number;
|
|
109
|
-
notes: string | null;
|
|
110
109
|
updatedAt: Date;
|
|
111
|
-
|
|
110
|
+
notes: string | null;
|
|
112
111
|
timezone: string | null;
|
|
112
|
+
active: boolean;
|
|
113
113
|
priceCatalogId: string;
|
|
114
114
|
recurrenceRule: string;
|
|
115
115
|
validFrom: string | null;
|
|
@@ -8,7 +8,7 @@ export declare function listPricingCategories(db: PostgresJsDatabase, query: Pri
|
|
|
8
8
|
unitId: string | null;
|
|
9
9
|
code: string | null;
|
|
10
10
|
name: string;
|
|
11
|
-
categoryType: "service" | "
|
|
11
|
+
categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
|
|
12
12
|
seatOccupancy: number;
|
|
13
13
|
groupSize: number | null;
|
|
14
14
|
isAgeQualified: boolean;
|
|
@@ -32,7 +32,7 @@ export declare function getPricingCategoryById(db: PostgresJsDatabase, id: strin
|
|
|
32
32
|
unitId: string | null;
|
|
33
33
|
code: string | null;
|
|
34
34
|
name: string;
|
|
35
|
-
categoryType: "service" | "
|
|
35
|
+
categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
|
|
36
36
|
seatOccupancy: number;
|
|
37
37
|
groupSize: number | null;
|
|
38
38
|
isAgeQualified: boolean;
|
|
@@ -57,7 +57,7 @@ export declare function createPricingCategory(db: PostgresJsDatabase, data: Crea
|
|
|
57
57
|
productId: string | null;
|
|
58
58
|
optionId: string | null;
|
|
59
59
|
unitId: string | null;
|
|
60
|
-
categoryType: "service" | "
|
|
60
|
+
categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
|
|
61
61
|
seatOccupancy: number;
|
|
62
62
|
groupSize: number | null;
|
|
63
63
|
isAgeQualified: boolean;
|
|
@@ -72,7 +72,7 @@ export declare function updatePricingCategory(db: PostgresJsDatabase, id: string
|
|
|
72
72
|
unitId: string | null;
|
|
73
73
|
code: string | null;
|
|
74
74
|
name: string;
|
|
75
|
-
categoryType: "service" | "
|
|
75
|
+
categoryType: "service" | "child" | "other" | "adult" | "infant" | "senior" | "group" | "room" | "vehicle";
|
|
76
76
|
seatOccupancy: number;
|
|
77
77
|
groupSize: number | null;
|
|
78
78
|
isAgeQualified: boolean;
|
|
@@ -120,8 +120,8 @@ export declare function getPricingCategoryDependencyById(db: PostgresJsDatabase,
|
|
|
120
120
|
export declare function createPricingCategoryDependency(db: PostgresJsDatabase, data: CreatePricingCategoryDependencyInput): Promise<{
|
|
121
121
|
id: string;
|
|
122
122
|
createdAt: Date;
|
|
123
|
-
notes: string | null;
|
|
124
123
|
updatedAt: Date;
|
|
124
|
+
notes: string | null;
|
|
125
125
|
active: boolean;
|
|
126
126
|
pricingCategoryId: string;
|
|
127
127
|
masterPricingCategoryId: string;
|
|
@@ -37,8 +37,8 @@ export declare function createDeparturePriceOverride(db: PostgresJsDatabase, dat
|
|
|
37
37
|
metadata: Record<string, unknown> | null;
|
|
38
38
|
id: string;
|
|
39
39
|
createdAt: Date;
|
|
40
|
-
notes: string | null;
|
|
41
40
|
updatedAt: Date;
|
|
41
|
+
notes: string | null;
|
|
42
42
|
active: boolean;
|
|
43
43
|
priceCatalogId: string;
|
|
44
44
|
optionId: string;
|
|
@@ -66,21 +66,21 @@ export declare function getOptionPriceRuleById(db: PostgresJsDatabase, id: strin
|
|
|
66
66
|
updatedAt: Date;
|
|
67
67
|
} | null>;
|
|
68
68
|
export declare function createOptionPriceRule(db: PostgresJsDatabase, data: CreateOptionPriceRuleInput, runtime?: RuleMutationRuntime): Promise<{
|
|
69
|
-
id: string;
|
|
70
|
-
code: string | null;
|
|
71
|
-
active: boolean;
|
|
72
69
|
metadata: Record<string, unknown> | null;
|
|
73
|
-
|
|
70
|
+
id: string;
|
|
74
71
|
name: string;
|
|
75
72
|
createdAt: Date;
|
|
73
|
+
code: string | null;
|
|
74
|
+
description: string | null;
|
|
76
75
|
updatedAt: Date;
|
|
77
|
-
isDefault: boolean;
|
|
78
76
|
notes: string | null;
|
|
77
|
+
active: boolean;
|
|
78
|
+
isDefault: boolean;
|
|
79
79
|
priceCatalogId: string;
|
|
80
80
|
productId: string;
|
|
81
81
|
optionId: string;
|
|
82
|
-
priceScheduleId: string | null;
|
|
83
82
|
cancellationPolicyId: string | null;
|
|
83
|
+
priceScheduleId: string | null;
|
|
84
84
|
pricingMode: "on_request" | "per_person" | "per_booking" | "starting_from" | "free";
|
|
85
85
|
baseSellAmountCents: number | null;
|
|
86
86
|
baseCostAmountCents: number | null;
|
|
@@ -156,20 +156,20 @@ export declare function getOptionUnitPriceRuleById(db: PostgresJsDatabase, id: s
|
|
|
156
156
|
updatedAt: Date;
|
|
157
157
|
} | null>;
|
|
158
158
|
export declare function createOptionUnitPriceRule(db: PostgresJsDatabase, data: CreateOptionUnitPriceRuleInput, runtime?: RuleMutationRuntime): Promise<{
|
|
159
|
-
id: string;
|
|
160
|
-
active: boolean;
|
|
161
159
|
metadata: Record<string, unknown> | null;
|
|
160
|
+
id: string;
|
|
162
161
|
createdAt: Date;
|
|
163
162
|
updatedAt: Date;
|
|
164
|
-
sortOrder: number;
|
|
165
163
|
notes: string | null;
|
|
164
|
+
active: boolean;
|
|
165
|
+
sortOrder: number;
|
|
166
166
|
optionId: string;
|
|
167
|
-
pricingMode: "on_request" | "per_person" | "per_booking" | "free" | "per_unit" | "included";
|
|
168
|
-
optionPriceRuleId: string;
|
|
169
167
|
unitId: string;
|
|
170
168
|
pricingCategoryId: string | null;
|
|
171
169
|
sellAmountCents: number | null;
|
|
172
170
|
costAmountCents: number | null;
|
|
171
|
+
pricingMode: "on_request" | "per_person" | "per_booking" | "free" | "per_unit" | "included";
|
|
172
|
+
optionPriceRuleId: string;
|
|
173
173
|
minQuantity: number | null;
|
|
174
174
|
maxQuantity: number | null;
|
|
175
175
|
} | null>;
|
|
@@ -231,18 +231,18 @@ export declare function getOptionStartTimeRuleById(db: PostgresJsDatabase, id: s
|
|
|
231
231
|
} | null>;
|
|
232
232
|
export declare function createOptionStartTimeRule(db: PostgresJsDatabase, data: CreateOptionStartTimeRuleInput): Promise<{
|
|
233
233
|
id: string;
|
|
234
|
-
active: boolean;
|
|
235
234
|
createdAt: Date;
|
|
236
235
|
updatedAt: Date;
|
|
237
236
|
notes: string | null;
|
|
237
|
+
active: boolean;
|
|
238
238
|
optionId: string;
|
|
239
239
|
optionPriceRuleId: string;
|
|
240
240
|
startTimeId: string;
|
|
241
241
|
ruleMode: "adjustment" | "override" | "included" | "excluded";
|
|
242
242
|
adjustmentType: "fixed" | "percentage" | null;
|
|
243
243
|
sellAdjustmentCents: number | null;
|
|
244
|
-
adjustmentBasisPoints: number | null;
|
|
245
244
|
costAdjustmentCents: number | null;
|
|
245
|
+
adjustmentBasisPoints: number | null;
|
|
246
246
|
} | null>;
|
|
247
247
|
export declare function updateOptionStartTimeRule(db: PostgresJsDatabase, id: string, data: UpdateOptionStartTimeRuleInput): Promise<{
|
|
248
248
|
id: string;
|
|
@@ -293,9 +293,9 @@ export declare function getOptionUnitTierById(db: PostgresJsDatabase, id: string
|
|
|
293
293
|
} | null>;
|
|
294
294
|
export declare function createOptionUnitTier(db: PostgresJsDatabase, data: CreateOptionUnitTierInput): Promise<{
|
|
295
295
|
id: string;
|
|
296
|
-
active: boolean;
|
|
297
296
|
createdAt: Date;
|
|
298
297
|
updatedAt: Date;
|
|
298
|
+
active: boolean;
|
|
299
299
|
sortOrder: number;
|
|
300
300
|
sellAmountCents: number | null;
|
|
301
301
|
costAmountCents: number | null;
|
|
@@ -37,8 +37,8 @@ export declare function createCancellationPolicy(db: PostgresJsDatabase, data: C
|
|
|
37
37
|
name: string;
|
|
38
38
|
createdAt: Date;
|
|
39
39
|
code: string | null;
|
|
40
|
-
notes: string | null;
|
|
41
40
|
updatedAt: Date;
|
|
41
|
+
notes: string | null;
|
|
42
42
|
active: boolean;
|
|
43
43
|
isDefault: boolean;
|
|
44
44
|
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
@@ -94,8 +94,8 @@ export declare function getCancellationPolicyRuleById(db: PostgresJsDatabase, id
|
|
|
94
94
|
export declare function createCancellationPolicyRule(db: PostgresJsDatabase, data: CreateCancellationPolicyRuleInput): Promise<{
|
|
95
95
|
id: string;
|
|
96
96
|
createdAt: Date;
|
|
97
|
-
notes: string | null;
|
|
98
97
|
updatedAt: Date;
|
|
98
|
+
notes: string | null;
|
|
99
99
|
active: boolean;
|
|
100
100
|
sortOrder: number;
|
|
101
101
|
cancellationPolicyId: string;
|
|
@@ -36,8 +36,8 @@ export declare function getPickupPriceRuleById(db: PostgresJsDatabase, id: strin
|
|
|
36
36
|
export declare function createPickupPriceRule(db: PostgresJsDatabase, data: CreatePickupPriceRuleInput): Promise<{
|
|
37
37
|
id: string;
|
|
38
38
|
createdAt: Date;
|
|
39
|
-
notes: string | null;
|
|
40
39
|
updatedAt: Date;
|
|
40
|
+
notes: string | null;
|
|
41
41
|
active: boolean;
|
|
42
42
|
sortOrder: number;
|
|
43
43
|
optionId: string;
|
|
@@ -104,8 +104,8 @@ export declare function getDropoffPriceRuleById(db: PostgresJsDatabase, id: stri
|
|
|
104
104
|
export declare function createDropoffPriceRule(db: PostgresJsDatabase, data: CreateDropoffPriceRuleInput): Promise<{
|
|
105
105
|
id: string;
|
|
106
106
|
createdAt: Date;
|
|
107
|
-
notes: string | null;
|
|
108
107
|
updatedAt: Date;
|
|
108
|
+
notes: string | null;
|
|
109
109
|
active: boolean;
|
|
110
110
|
sortOrder: number;
|
|
111
111
|
optionId: string;
|
|
@@ -177,8 +177,8 @@ export declare function createExtraPriceRule(db: PostgresJsDatabase, data: Creat
|
|
|
177
177
|
metadata: Record<string, unknown> | null;
|
|
178
178
|
id: string;
|
|
179
179
|
createdAt: Date;
|
|
180
|
-
notes: string | null;
|
|
181
180
|
updatedAt: Date;
|
|
181
|
+
notes: string | null;
|
|
182
182
|
active: boolean;
|
|
183
183
|
sortOrder: number;
|
|
184
184
|
optionId: string;
|
|
@@ -70,10 +70,10 @@ export declare const publicStartTimeAdjustmentSchema: z.ZodObject<{
|
|
|
70
70
|
label: z.ZodNullable<z.ZodString>;
|
|
71
71
|
startTimeLocal: z.ZodString;
|
|
72
72
|
ruleMode: z.ZodEnum<{
|
|
73
|
+
adjustment: "adjustment";
|
|
73
74
|
override: "override";
|
|
74
75
|
included: "included";
|
|
75
76
|
excluded: "excluded";
|
|
76
|
-
adjustment: "adjustment";
|
|
77
77
|
}>;
|
|
78
78
|
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
79
79
|
fixed: "fixed";
|
|
@@ -137,10 +137,10 @@ export declare const publicOptionPricingRuleSchema: z.ZodObject<{
|
|
|
137
137
|
label: z.ZodNullable<z.ZodString>;
|
|
138
138
|
startTimeLocal: z.ZodString;
|
|
139
139
|
ruleMode: z.ZodEnum<{
|
|
140
|
+
adjustment: "adjustment";
|
|
140
141
|
override: "override";
|
|
141
142
|
included: "included";
|
|
142
143
|
excluded: "excluded";
|
|
143
|
-
adjustment: "adjustment";
|
|
144
144
|
}>;
|
|
145
145
|
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
146
146
|
fixed: "fixed";
|
|
@@ -170,9 +170,9 @@ export declare const publicPricedOptionSchema: z.ZodObject<{
|
|
|
170
170
|
itinerary: "itinerary";
|
|
171
171
|
}>;
|
|
172
172
|
capacityMode: z.ZodEnum<{
|
|
173
|
+
limited: "limited";
|
|
173
174
|
on_request: "on_request";
|
|
174
175
|
free_sale: "free_sale";
|
|
175
|
-
limited: "limited";
|
|
176
176
|
}>;
|
|
177
177
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
178
178
|
id: z.ZodString;
|
|
@@ -229,10 +229,10 @@ export declare const publicPricedOptionSchema: z.ZodObject<{
|
|
|
229
229
|
label: z.ZodNullable<z.ZodString>;
|
|
230
230
|
startTimeLocal: z.ZodString;
|
|
231
231
|
ruleMode: z.ZodEnum<{
|
|
232
|
+
adjustment: "adjustment";
|
|
232
233
|
override: "override";
|
|
233
234
|
included: "included";
|
|
234
235
|
excluded: "excluded";
|
|
235
|
-
adjustment: "adjustment";
|
|
236
236
|
}>;
|
|
237
237
|
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
238
238
|
fixed: "fixed";
|
|
@@ -271,9 +271,9 @@ export declare const publicProductPricingSnapshotSchema: z.ZodObject<{
|
|
|
271
271
|
itinerary: "itinerary";
|
|
272
272
|
}>;
|
|
273
273
|
capacityMode: z.ZodEnum<{
|
|
274
|
+
limited: "limited";
|
|
274
275
|
on_request: "on_request";
|
|
275
276
|
free_sale: "free_sale";
|
|
276
|
-
limited: "limited";
|
|
277
277
|
}>;
|
|
278
278
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
279
279
|
id: z.ZodString;
|
|
@@ -330,10 +330,10 @@ export declare const publicProductPricingSnapshotSchema: z.ZodObject<{
|
|
|
330
330
|
label: z.ZodNullable<z.ZodString>;
|
|
331
331
|
startTimeLocal: z.ZodString;
|
|
332
332
|
ruleMode: z.ZodEnum<{
|
|
333
|
+
adjustment: "adjustment";
|
|
333
334
|
override: "override";
|
|
334
335
|
included: "included";
|
|
335
336
|
excluded: "excluded";
|
|
336
|
-
adjustment: "adjustment";
|
|
337
337
|
}>;
|
|
338
338
|
adjustmentType: z.ZodNullable<z.ZodEnum<{
|
|
339
339
|
fixed: "fixed";
|
|
@@ -7,9 +7,9 @@ export declare const pricingCategoryCoreSchema: z.ZodObject<{
|
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
categoryType: z.ZodDefault<z.ZodEnum<{
|
|
9
9
|
service: "service";
|
|
10
|
+
child: "child";
|
|
10
11
|
other: "other";
|
|
11
12
|
adult: "adult";
|
|
12
|
-
child: "child";
|
|
13
13
|
infant: "infant";
|
|
14
14
|
senior: "senior";
|
|
15
15
|
group: "group";
|
|
@@ -34,9 +34,9 @@ export declare const insertPricingCategorySchema: z.ZodObject<{
|
|
|
34
34
|
name: z.ZodString;
|
|
35
35
|
categoryType: z.ZodDefault<z.ZodEnum<{
|
|
36
36
|
service: "service";
|
|
37
|
+
child: "child";
|
|
37
38
|
other: "other";
|
|
38
39
|
adult: "adult";
|
|
39
|
-
child: "child";
|
|
40
40
|
infant: "infant";
|
|
41
41
|
senior: "senior";
|
|
42
42
|
group: "group";
|
|
@@ -61,9 +61,9 @@ export declare const updatePricingCategorySchema: z.ZodObject<{
|
|
|
61
61
|
name: z.ZodOptional<z.ZodString>;
|
|
62
62
|
categoryType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
63
63
|
service: "service";
|
|
64
|
+
child: "child";
|
|
64
65
|
other: "other";
|
|
65
66
|
adult: "adult";
|
|
66
|
-
child: "child";
|
|
67
67
|
infant: "infant";
|
|
68
68
|
senior: "senior";
|
|
69
69
|
group: "group";
|
|
@@ -88,9 +88,9 @@ export declare const pricingCategoryListQuerySchema: z.ZodObject<{
|
|
|
88
88
|
unitId: z.ZodOptional<z.ZodString>;
|
|
89
89
|
categoryType: z.ZodOptional<z.ZodEnum<{
|
|
90
90
|
service: "service";
|
|
91
|
+
child: "child";
|
|
91
92
|
other: "other";
|
|
92
93
|
adult: "adult";
|
|
93
|
-
child: "child";
|
|
94
94
|
infant: "infant";
|
|
95
95
|
senior: "senior";
|
|
96
96
|
group: "group";
|
|
@@ -624,10 +624,10 @@ export declare const optionStartTimeRuleCoreSchema: z.ZodObject<{
|
|
|
624
624
|
optionId: z.ZodString;
|
|
625
625
|
startTimeId: z.ZodString;
|
|
626
626
|
ruleMode: z.ZodDefault<z.ZodEnum<{
|
|
627
|
+
adjustment: "adjustment";
|
|
627
628
|
override: "override";
|
|
628
629
|
included: "included";
|
|
629
630
|
excluded: "excluded";
|
|
630
|
-
adjustment: "adjustment";
|
|
631
631
|
}>>;
|
|
632
632
|
adjustmentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
633
633
|
fixed: "fixed";
|
|
@@ -644,10 +644,10 @@ export declare const insertOptionStartTimeRuleSchema: z.ZodObject<{
|
|
|
644
644
|
optionId: z.ZodString;
|
|
645
645
|
startTimeId: z.ZodString;
|
|
646
646
|
ruleMode: z.ZodDefault<z.ZodEnum<{
|
|
647
|
+
adjustment: "adjustment";
|
|
647
648
|
override: "override";
|
|
648
649
|
included: "included";
|
|
649
650
|
excluded: "excluded";
|
|
650
|
-
adjustment: "adjustment";
|
|
651
651
|
}>>;
|
|
652
652
|
adjustmentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
653
653
|
fixed: "fixed";
|
|
@@ -664,10 +664,10 @@ export declare const updateOptionStartTimeRuleSchema: z.ZodObject<{
|
|
|
664
664
|
optionId: z.ZodOptional<z.ZodString>;
|
|
665
665
|
startTimeId: z.ZodOptional<z.ZodString>;
|
|
666
666
|
ruleMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
667
|
+
adjustment: "adjustment";
|
|
667
668
|
override: "override";
|
|
668
669
|
included: "included";
|
|
669
670
|
excluded: "excluded";
|
|
670
|
-
adjustment: "adjustment";
|
|
671
671
|
}>>>;
|
|
672
672
|
adjustmentType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
673
673
|
fixed: "fixed";
|