@voyant-travel/commerce-react 0.14.0 → 0.15.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.
@@ -4,8 +4,8 @@ declare const optionStartTimeRuleInputSchema: z.ZodObject<{
4
4
  optionId: z.ZodString;
5
5
  startTimeId: z.ZodString;
6
6
  ruleMode: z.ZodEnum<{
7
- adjustment: "adjustment";
8
7
  override: "override";
8
+ adjustment: "adjustment";
9
9
  included: "included";
10
10
  excluded: "excluded";
11
11
  }>;
@@ -27,7 +27,7 @@ export declare function useOptionStartTimeRuleMutation(): {
27
27
  optionPriceRuleId: string;
28
28
  optionId: string;
29
29
  startTimeId: string;
30
- ruleMode: "adjustment" | "override" | "included" | "excluded";
30
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
31
31
  adjustmentType: "fixed" | "percentage" | null;
32
32
  sellAdjustmentCents: number | null;
33
33
  costAdjustmentCents: number | null;
@@ -38,7 +38,7 @@ export declare function useOptionStartTimeRuleMutation(): {
38
38
  optionPriceRuleId: string;
39
39
  optionId: string;
40
40
  startTimeId: string;
41
- ruleMode: "adjustment" | "override" | "included" | "excluded";
41
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
42
42
  adjustmentType?: "fixed" | "percentage" | null | undefined;
43
43
  sellAdjustmentCents?: number | null | undefined;
44
44
  costAdjustmentCents?: number | null | undefined;
@@ -51,7 +51,7 @@ export declare function useOptionStartTimeRuleMutation(): {
51
51
  optionPriceRuleId: string;
52
52
  optionId: string;
53
53
  startTimeId: string;
54
- ruleMode: "adjustment" | "override" | "included" | "excluded";
54
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
55
55
  adjustmentType: "fixed" | "percentage" | null;
56
56
  sellAdjustmentCents: number | null;
57
57
  costAdjustmentCents: number | null;
@@ -6,7 +6,7 @@ export declare function useOptionStartTimeRule(id: string | null | undefined, op
6
6
  optionPriceRuleId: string;
7
7
  optionId: string;
8
8
  startTimeId: string;
9
- ruleMode: "adjustment" | "override" | "included" | "excluded";
9
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
10
10
  adjustmentType: "fixed" | "percentage" | null;
11
11
  sellAdjustmentCents: number | null;
12
12
  costAdjustmentCents: number | null;
@@ -8,7 +8,7 @@ export declare function useOptionStartTimeRules(options?: UseOptionStartTimeRule
8
8
  optionPriceRuleId: string;
9
9
  optionId: string;
10
10
  startTimeId: string;
11
- ruleMode: "adjustment" | "override" | "included" | "excluded";
11
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
12
12
  adjustmentType: "fixed" | "percentage" | null;
13
13
  sellAdjustmentCents: number | null;
14
14
  costAdjustmentCents: number | null;
@@ -413,7 +413,7 @@ export declare function getOptionStartTimeRulesQueryOptions(client: FetchWithVal
413
413
  optionPriceRuleId: string;
414
414
  optionId: string;
415
415
  startTimeId: string;
416
- ruleMode: "adjustment" | "override" | "included" | "excluded";
416
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
417
417
  adjustmentType: "fixed" | "percentage" | null;
418
418
  sellAdjustmentCents: number | null;
419
419
  costAdjustmentCents: number | null;
@@ -430,7 +430,7 @@ export declare function getOptionStartTimeRulesQueryOptions(client: FetchWithVal
430
430
  optionPriceRuleId: string;
431
431
  optionId: string;
432
432
  startTimeId: string;
433
- ruleMode: "adjustment" | "override" | "included" | "excluded";
433
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
434
434
  adjustmentType: "fixed" | "percentage" | null;
435
435
  sellAdjustmentCents: number | null;
436
436
  costAdjustmentCents: number | null;
@@ -448,7 +448,7 @@ export declare function getOptionStartTimeRulesQueryOptions(client: FetchWithVal
448
448
  optionPriceRuleId: string;
449
449
  optionId: string;
450
450
  startTimeId: string;
451
- ruleMode: "adjustment" | "override" | "included" | "excluded";
451
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
452
452
  adjustmentType: "fixed" | "percentage" | null;
453
453
  sellAdjustmentCents: number | null;
454
454
  costAdjustmentCents: number | null;
@@ -468,7 +468,7 @@ export declare function getOptionStartTimeRulesQueryOptions(client: FetchWithVal
468
468
  optionPriceRuleId: string;
469
469
  optionId: string;
470
470
  startTimeId: string;
471
- ruleMode: "adjustment" | "override" | "included" | "excluded";
471
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
472
472
  adjustmentType: "fixed" | "percentage" | null;
473
473
  sellAdjustmentCents: number | null;
474
474
  costAdjustmentCents: number | null;
@@ -488,7 +488,7 @@ export declare function getOptionStartTimeRuleQueryOptions(client: FetchWithVali
488
488
  optionPriceRuleId: string;
489
489
  optionId: string;
490
490
  startTimeId: string;
491
- ruleMode: "adjustment" | "override" | "included" | "excluded";
491
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
492
492
  adjustmentType: "fixed" | "percentage" | null;
493
493
  sellAdjustmentCents: number | null;
494
494
  costAdjustmentCents: number | null;
@@ -500,7 +500,7 @@ export declare function getOptionStartTimeRuleQueryOptions(client: FetchWithVali
500
500
  optionPriceRuleId: string;
501
501
  optionId: string;
502
502
  startTimeId: string;
503
- ruleMode: "adjustment" | "override" | "included" | "excluded";
503
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
504
504
  adjustmentType: "fixed" | "percentage" | null;
505
505
  sellAdjustmentCents: number | null;
506
506
  costAdjustmentCents: number | null;
@@ -513,7 +513,7 @@ export declare function getOptionStartTimeRuleQueryOptions(client: FetchWithVali
513
513
  optionPriceRuleId: string;
514
514
  optionId: string;
515
515
  startTimeId: string;
516
- ruleMode: "adjustment" | "override" | "included" | "excluded";
516
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
517
517
  adjustmentType: "fixed" | "percentage" | null;
518
518
  sellAdjustmentCents: number | null;
519
519
  costAdjustmentCents: number | null;
@@ -528,7 +528,7 @@ export declare function getOptionStartTimeRuleQueryOptions(client: FetchWithVali
528
528
  optionPriceRuleId: string;
529
529
  optionId: string;
530
530
  startTimeId: string;
531
- ruleMode: "adjustment" | "override" | "included" | "excluded";
531
+ ruleMode: "override" | "adjustment" | "included" | "excluded";
532
532
  adjustmentType: "fixed" | "percentage" | null;
533
533
  sellAdjustmentCents: number | null;
534
534
  costAdjustmentCents: number | null;
@@ -267,8 +267,8 @@ export declare const optionStartTimeRuleRecordSchema: z.ZodObject<{
267
267
  optionId: z.ZodString;
268
268
  startTimeId: z.ZodString;
269
269
  ruleMode: z.ZodEnum<{
270
- adjustment: "adjustment";
271
270
  override: "override";
271
+ adjustment: "adjustment";
272
272
  included: "included";
273
273
  excluded: "excluded";
274
274
  }>;
@@ -855,8 +855,8 @@ export declare const optionStartTimeRuleListResponse: z.ZodObject<{
855
855
  optionId: z.ZodString;
856
856
  startTimeId: z.ZodString;
857
857
  ruleMode: z.ZodEnum<{
858
- adjustment: "adjustment";
859
858
  override: "override";
859
+ adjustment: "adjustment";
860
860
  included: "included";
861
861
  excluded: "excluded";
862
862
  }>;
@@ -881,8 +881,8 @@ export declare const optionStartTimeRuleSingleResponse: z.ZodObject<{
881
881
  optionId: z.ZodString;
882
882
  startTimeId: z.ZodString;
883
883
  ruleMode: z.ZodEnum<{
884
- adjustment: "adjustment";
885
884
  override: "override";
885
+ adjustment: "adjustment";
886
886
  included: "included";
887
887
  excluded: "excluded";
888
888
  }>;
@@ -9,7 +9,7 @@ export declare function useSellabilityPolicies(options?: UseSellabilityPoliciesO
9
9
  active: boolean;
10
10
  id: string;
11
11
  scope: "option" | "channel" | "product" | "market" | "global";
12
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
12
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
13
13
  productId: string | null;
14
14
  optionId: string | null;
15
15
  marketId: string | null;
@@ -9,7 +9,7 @@ export declare function useSellabilityPolicyMutation(): {
9
9
  active: boolean;
10
10
  id: string;
11
11
  scope: "option" | "channel" | "product" | "market" | "global";
12
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
12
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
13
13
  productId: string | null;
14
14
  optionId: string | null;
15
15
  marketId: string | null;
@@ -23,7 +23,7 @@ export declare function useSellabilityPolicyMutation(): {
23
23
  }, Error, {
24
24
  name: string;
25
25
  scope?: "option" | "channel" | "product" | "market" | "global" | undefined;
26
- policyType?: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window" | undefined;
26
+ policyType?: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window" | undefined;
27
27
  productId?: string | null | undefined;
28
28
  optionId?: string | null | undefined;
29
29
  marketId?: string | null | undefined;
@@ -41,7 +41,7 @@ export declare function useSellabilityPolicyMutation(): {
41
41
  active: boolean;
42
42
  id: string;
43
43
  scope: "option" | "channel" | "product" | "market" | "global";
44
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
44
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
45
45
  productId: string | null;
46
46
  optionId: string | null;
47
47
  marketId: string | null;
@@ -7,7 +7,7 @@ export declare function useSellabilityPolicy(id: string | null | undefined, opti
7
7
  active: boolean;
8
8
  id: string;
9
9
  scope: "option" | "channel" | "product" | "market" | "global";
10
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
10
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
11
11
  productId: string | null;
12
12
  optionId: string | null;
13
13
  marketId: string | null;
@@ -7,7 +7,7 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
7
7
  active: boolean;
8
8
  id: string;
9
9
  scope: "option" | "channel" | "product" | "market" | "global";
10
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
10
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
11
11
  productId: string | null;
12
12
  optionId: string | null;
13
13
  marketId: string | null;
@@ -29,7 +29,7 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
29
29
  active: boolean;
30
30
  id: string;
31
31
  scope: "option" | "channel" | "product" | "market" | "global";
32
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
32
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
33
33
  productId: string | null;
34
34
  optionId: string | null;
35
35
  marketId: string | null;
@@ -52,7 +52,7 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
52
52
  active: boolean;
53
53
  id: string;
54
54
  scope: "option" | "channel" | "product" | "market" | "global";
55
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
55
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
56
56
  productId: string | null;
57
57
  optionId: string | null;
58
58
  marketId: string | null;
@@ -77,7 +77,7 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
77
77
  active: boolean;
78
78
  id: string;
79
79
  scope: "option" | "channel" | "product" | "market" | "global";
80
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
80
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
81
81
  productId: string | null;
82
82
  optionId: string | null;
83
83
  marketId: string | null;
@@ -102,7 +102,7 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
102
102
  active: boolean;
103
103
  id: string;
104
104
  scope: "option" | "channel" | "product" | "market" | "global";
105
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
105
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
106
106
  productId: string | null;
107
107
  optionId: string | null;
108
108
  marketId: string | null;
@@ -119,7 +119,7 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
119
119
  active: boolean;
120
120
  id: string;
121
121
  scope: "option" | "channel" | "product" | "market" | "global";
122
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
122
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
123
123
  productId: string | null;
124
124
  optionId: string | null;
125
125
  marketId: string | null;
@@ -137,7 +137,7 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
137
137
  active: boolean;
138
138
  id: string;
139
139
  scope: "option" | "channel" | "product" | "market" | "global";
140
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
140
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
141
141
  productId: string | null;
142
142
  optionId: string | null;
143
143
  marketId: string | null;
@@ -157,7 +157,7 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
157
157
  active: boolean;
158
158
  id: string;
159
159
  scope: "option" | "channel" | "product" | "market" | "global";
160
- policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
160
+ policyType: "currency" | "capability" | "custom" | "pickup" | "question" | "occupancy" | "allotment" | "availability_window";
161
161
  productId: string | null;
162
162
  optionId: string | null;
163
163
  marketId: string | null;
@@ -27,8 +27,8 @@ export declare const sellabilityPolicyRecordSchema: z.ZodObject<{
27
27
  policyType: z.ZodEnum<{
28
28
  currency: "currency";
29
29
  capability: "capability";
30
- pickup: "pickup";
31
30
  custom: "custom";
31
+ pickup: "pickup";
32
32
  question: "question";
33
33
  occupancy: "occupancy";
34
34
  allotment: "allotment";
@@ -62,8 +62,8 @@ export declare const sellabilityPolicyListResponse: z.ZodObject<{
62
62
  policyType: z.ZodEnum<{
63
63
  currency: "currency";
64
64
  capability: "capability";
65
- pickup: "pickup";
66
65
  custom: "custom";
66
+ pickup: "pickup";
67
67
  question: "question";
68
68
  occupancy: "occupancy";
69
69
  allotment: "allotment";
@@ -100,8 +100,8 @@ export declare const sellabilityPolicySingleResponse: z.ZodObject<{
100
100
  policyType: z.ZodEnum<{
101
101
  currency: "currency";
102
102
  capability: "capability";
103
- pickup: "pickup";
104
103
  custom: "custom";
104
+ pickup: "pickup";
105
105
  question: "question";
106
106
  occupancy: "occupancy";
107
107
  allotment: "allotment";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/commerce-react",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -235,11 +235,11 @@
235
235
  "react-dom": "^19.0.0",
236
236
  "react-hook-form": "^7.60.0",
237
237
  "zod": "^4.0.0",
238
- "@voyant-travel/admin": "^0.114.0",
239
- "@voyant-travel/commerce": "^0.14.0",
240
- "@voyant-travel/distribution-react": "^0.122.0",
241
- "@voyant-travel/inventory-react": "^0.14.0",
242
- "@voyant-travel/ui": "^0.108.0"
238
+ "@voyant-travel/admin": "^0.115.0",
239
+ "@voyant-travel/commerce": "^0.15.0",
240
+ "@voyant-travel/distribution-react": "^0.123.0",
241
+ "@voyant-travel/inventory-react": "^0.15.0",
242
+ "@voyant-travel/ui": "^0.108.1"
243
243
  },
244
244
  "peerDependenciesMeta": {
245
245
  "@voyant-travel/admin": {
@@ -259,9 +259,9 @@
259
259
  }
260
260
  },
261
261
  "dependencies": {
262
- "@voyant-travel/i18n": "^0.107.4",
262
+ "@voyant-travel/i18n": "^0.108.0",
263
263
  "@voyant-travel/react": "^0.104.1",
264
- "@voyant-travel/utils": "^0.105.2"
264
+ "@voyant-travel/utils": "^0.105.3"
265
265
  },
266
266
  "devDependencies": {
267
267
  "@tanstack/react-query": "^5.100.11",
@@ -274,14 +274,14 @@
274
274
  "typescript": "^6.0.2",
275
275
  "vitest": "^4.1.2",
276
276
  "zod": "^4.3.6",
277
- "@voyant-travel/admin": "^0.114.0",
278
- "@voyant-travel/commerce": "^0.14.0",
279
- "@voyant-travel/distribution-react": "^0.122.0",
280
- "@voyant-travel/i18n": "^0.107.4",
281
- "@voyant-travel/inventory-react": "^0.14.0",
277
+ "@voyant-travel/admin": "^0.115.0",
278
+ "@voyant-travel/commerce": "^0.15.0",
279
+ "@voyant-travel/distribution-react": "^0.123.0",
280
+ "@voyant-travel/i18n": "^0.108.0",
281
+ "@voyant-travel/inventory-react": "^0.15.0",
282
282
  "@voyant-travel/react": "^0.104.1",
283
- "@voyant-travel/ui": "^0.108.0",
284
- "@voyant-travel/utils": "^0.105.2",
283
+ "@voyant-travel/ui": "^0.108.1",
284
+ "@voyant-travel/utils": "^0.105.3",
285
285
  "@voyant-travel/voyant-typescript-config": "^0.1.0"
286
286
  },
287
287
  "files": [