@voyantjs/pricing 0.4.5 → 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.
@@ -1,5 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const pricingCategoryTypeSchema: z.ZodEnum<{
3
+ service: "service";
4
+ other: "other";
3
5
  adult: "adult";
4
6
  child: "child";
5
7
  infant: "infant";
@@ -7,8 +9,6 @@ export declare const pricingCategoryTypeSchema: z.ZodEnum<{
7
9
  group: "group";
8
10
  room: "room";
9
11
  vehicle: "vehicle";
10
- service: "service";
11
- other: "other";
12
12
  }>;
13
13
  export declare const pricingDependencyTypeSchema: z.ZodEnum<{
14
14
  requires: "requires";
@@ -17,10 +17,10 @@ export declare const pricingDependencyTypeSchema: z.ZodEnum<{
17
17
  excludes: "excludes";
18
18
  }>;
19
19
  export declare const cancellationPolicyTypeSchema: z.ZodEnum<{
20
+ custom: "custom";
20
21
  simple: "simple";
21
22
  advanced: "advanced";
22
23
  non_refundable: "non_refundable";
23
- custom: "custom";
24
24
  }>;
25
25
  export declare const cancellationChargeTypeSchema: z.ZodEnum<{
26
26
  none: "none";
@@ -52,9 +52,9 @@ export declare const optionUnitPricingModeSchema: z.ZodEnum<{
52
52
  included: "included";
53
53
  }>;
54
54
  export declare const optionStartTimeRuleModeSchema: z.ZodEnum<{
55
+ override: "override";
55
56
  included: "included";
56
57
  excluded: "excluded";
57
- override: "override";
58
58
  adjustment: "adjustment";
59
59
  }>;
60
60
  export declare const priceAdjustmentTypeSchema: z.ZodEnum<{
@@ -6,6 +6,8 @@ export declare const pricingCategoryCoreSchema: z.ZodObject<{
6
6
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  name: z.ZodString;
8
8
  categoryType: z.ZodDefault<z.ZodEnum<{
9
+ service: "service";
10
+ other: "other";
9
11
  adult: "adult";
10
12
  child: "child";
11
13
  infant: "infant";
@@ -13,8 +15,6 @@ export declare const pricingCategoryCoreSchema: z.ZodObject<{
13
15
  group: "group";
14
16
  room: "room";
15
17
  vehicle: "vehicle";
16
- service: "service";
17
- other: "other";
18
18
  }>>;
19
19
  seatOccupancy: z.ZodDefault<z.ZodNumber>;
20
20
  groupSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -33,6 +33,8 @@ export declare const insertPricingCategorySchema: z.ZodObject<{
33
33
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  name: z.ZodString;
35
35
  categoryType: z.ZodDefault<z.ZodEnum<{
36
+ service: "service";
37
+ other: "other";
36
38
  adult: "adult";
37
39
  child: "child";
38
40
  infant: "infant";
@@ -40,8 +42,6 @@ export declare const insertPricingCategorySchema: z.ZodObject<{
40
42
  group: "group";
41
43
  room: "room";
42
44
  vehicle: "vehicle";
43
- service: "service";
44
- other: "other";
45
45
  }>>;
46
46
  seatOccupancy: z.ZodDefault<z.ZodNumber>;
47
47
  groupSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -60,6 +60,8 @@ export declare const updatePricingCategorySchema: z.ZodObject<{
60
60
  code: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
61
61
  name: z.ZodOptional<z.ZodString>;
62
62
  categoryType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
63
+ service: "service";
64
+ other: "other";
63
65
  adult: "adult";
64
66
  child: "child";
65
67
  infant: "infant";
@@ -67,8 +69,6 @@ export declare const updatePricingCategorySchema: z.ZodObject<{
67
69
  group: "group";
68
70
  room: "room";
69
71
  vehicle: "vehicle";
70
- service: "service";
71
- other: "other";
72
72
  }>>>;
73
73
  seatOccupancy: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
74
74
  groupSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -87,6 +87,8 @@ export declare const pricingCategoryListQuerySchema: z.ZodObject<{
87
87
  optionId: z.ZodOptional<z.ZodString>;
88
88
  unitId: z.ZodOptional<z.ZodString>;
89
89
  categoryType: z.ZodOptional<z.ZodEnum<{
90
+ service: "service";
91
+ other: "other";
90
92
  adult: "adult";
91
93
  child: "child";
92
94
  infant: "infant";
@@ -94,8 +96,6 @@ export declare const pricingCategoryListQuerySchema: z.ZodObject<{
94
96
  group: "group";
95
97
  room: "room";
96
98
  vehicle: "vehicle";
97
- service: "service";
98
- other: "other";
99
99
  }>>;
100
100
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
101
101
  0: "0";
@@ -169,10 +169,10 @@ export declare const cancellationPolicyCoreSchema: z.ZodObject<{
169
169
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
170
  name: z.ZodString;
171
171
  policyType: z.ZodDefault<z.ZodEnum<{
172
+ custom: "custom";
172
173
  simple: "simple";
173
174
  advanced: "advanced";
174
175
  non_refundable: "non_refundable";
175
- custom: "custom";
176
176
  }>>;
177
177
  simpleCutoffHours: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
178
178
  isDefault: z.ZodDefault<z.ZodBoolean>;
@@ -184,10 +184,10 @@ export declare const insertCancellationPolicySchema: z.ZodObject<{
184
184
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
185
  name: z.ZodString;
186
186
  policyType: z.ZodDefault<z.ZodEnum<{
187
+ custom: "custom";
187
188
  simple: "simple";
188
189
  advanced: "advanced";
189
190
  non_refundable: "non_refundable";
190
- custom: "custom";
191
191
  }>>;
192
192
  simpleCutoffHours: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
193
193
  isDefault: z.ZodDefault<z.ZodBoolean>;
@@ -199,10 +199,10 @@ export declare const updateCancellationPolicySchema: z.ZodObject<{
199
199
  code: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
200
200
  name: z.ZodOptional<z.ZodString>;
201
201
  policyType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
202
+ custom: "custom";
202
203
  simple: "simple";
203
204
  advanced: "advanced";
204
205
  non_refundable: "non_refundable";
205
- custom: "custom";
206
206
  }>>>;
207
207
  simpleCutoffHours: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
208
208
  isDefault: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -214,10 +214,10 @@ export declare const cancellationPolicyListQuerySchema: z.ZodObject<{
214
214
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
215
215
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
216
216
  policyType: z.ZodOptional<z.ZodEnum<{
217
+ custom: "custom";
217
218
  simple: "simple";
218
219
  advanced: "advanced";
219
220
  non_refundable: "non_refundable";
220
- custom: "custom";
221
221
  }>>;
222
222
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
223
223
  0: "0";
@@ -624,9 +624,9 @@ export declare const optionStartTimeRuleCoreSchema: z.ZodObject<{
624
624
  optionId: z.ZodString;
625
625
  startTimeId: z.ZodString;
626
626
  ruleMode: z.ZodDefault<z.ZodEnum<{
627
+ override: "override";
627
628
  included: "included";
628
629
  excluded: "excluded";
629
- override: "override";
630
630
  adjustment: "adjustment";
631
631
  }>>;
632
632
  adjustmentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -644,9 +644,9 @@ export declare const insertOptionStartTimeRuleSchema: z.ZodObject<{
644
644
  optionId: z.ZodString;
645
645
  startTimeId: z.ZodString;
646
646
  ruleMode: z.ZodDefault<z.ZodEnum<{
647
+ override: "override";
647
648
  included: "included";
648
649
  excluded: "excluded";
649
- override: "override";
650
650
  adjustment: "adjustment";
651
651
  }>>;
652
652
  adjustmentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -664,9 +664,9 @@ 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
+ override: "override";
667
668
  included: "included";
668
669
  excluded: "excluded";
669
- override: "override";
670
670
  adjustment: "adjustment";
671
671
  }>>>;
672
672
  adjustmentType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/pricing",
3
- "version": "0.4.5",
3
+ "version": "0.6.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,16 +33,16 @@
33
33
  "drizzle-orm": "^0.45.2",
34
34
  "hono": "^4.12.10",
35
35
  "zod": "^4.3.6",
36
- "@voyantjs/availability": "0.4.5",
37
- "@voyantjs/core": "0.4.5",
38
- "@voyantjs/db": "0.4.5",
39
- "@voyantjs/hono": "0.4.5",
40
- "@voyantjs/products": "0.4.5"
36
+ "@voyantjs/availability": "0.6.0",
37
+ "@voyantjs/core": "0.6.0",
38
+ "@voyantjs/db": "0.6.0",
39
+ "@voyantjs/hono": "0.6.0",
40
+ "@voyantjs/products": "0.6.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "^6.0.2",
44
- "@voyantjs/extras": "0.4.5",
45
- "@voyantjs/facilities": "0.4.5",
44
+ "@voyantjs/extras": "0.6.0",
45
+ "@voyantjs/facilities": "0.6.0",
46
46
  "@voyantjs/voyant-typescript-config": "0.1.0"
47
47
  },
48
48
  "files": [