@voyant-travel/commerce-react 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/hooks/use-market-product-rule-mutation.d.ts +3 -3
- package/dist/markets/hooks/use-market-product-rules.d.ts +1 -1
- package/dist/markets/query-options.d.ts +8 -8
- package/dist/markets/schemas.d.ts +3 -3
- package/dist/pricing/hooks/use-option-start-time-rule-mutation.d.ts +4 -4
- package/dist/pricing/hooks/use-option-start-time-rule.d.ts +1 -1
- package/dist/pricing/hooks/use-option-start-time-rules.d.ts +1 -1
- package/dist/pricing/hooks/use-price-catalog-mutation.d.ts +4 -4
- package/dist/pricing/hooks/use-price-catalog.d.ts +1 -1
- package/dist/pricing/hooks/use-price-catalogs.d.ts +1 -1
- package/dist/pricing/hooks/use-pricing-categories.d.ts +1 -1
- package/dist/pricing/hooks/use-pricing-category-mutation.d.ts +2 -2
- package/dist/pricing/hooks/use-pricing-category.d.ts +1 -1
- package/dist/pricing/query-options/categories.d.ts +16 -16
- package/dist/pricing/query-options/logistics.d.ts +8 -8
- package/dist/promotions/index.d.ts +14 -14
- package/dist/promotions/promotions-page.d.ts +1 -1
- package/dist/sellability/hooks/use-sellability-policies.d.ts +2 -2
- package/dist/sellability/hooks/use-sellability-policy-mutation.d.ts +6 -6
- package/dist/sellability/hooks/use-sellability-policy.d.ts +2 -2
- package/dist/sellability/query-options.d.ts +16 -16
- package/dist/sellability/schemas.d.ts +18 -18
- package/package.json +9 -9
|
@@ -5,7 +5,7 @@ export type UpdateMarketProductRuleInput = z.input<typeof updateMarketProductRul
|
|
|
5
5
|
export declare function useMarketProductRuleMutation(): {
|
|
6
6
|
create: import("@tanstack/react-query").UseMutationResult<{
|
|
7
7
|
visibility: "hidden" | "public" | "private";
|
|
8
|
-
sellability: "
|
|
8
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
9
9
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
10
10
|
active: boolean;
|
|
11
11
|
id: string;
|
|
@@ -22,7 +22,7 @@ export declare function useMarketProductRuleMutation(): {
|
|
|
22
22
|
optionId?: string | null | undefined;
|
|
23
23
|
priceCatalogId?: string | null | undefined;
|
|
24
24
|
visibility?: "hidden" | "public" | "private" | undefined;
|
|
25
|
-
sellability?: "
|
|
25
|
+
sellability?: "sellable" | "on_request" | "unavailable" | undefined;
|
|
26
26
|
channelScope?: "all" | "internal" | "b2c" | "b2b" | undefined;
|
|
27
27
|
active?: boolean | undefined;
|
|
28
28
|
availableFrom?: string | null | undefined;
|
|
@@ -31,7 +31,7 @@ export declare function useMarketProductRuleMutation(): {
|
|
|
31
31
|
}, unknown>;
|
|
32
32
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
33
33
|
visibility: "hidden" | "public" | "private";
|
|
34
|
-
sellability: "
|
|
34
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
35
35
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
36
36
|
active: boolean;
|
|
37
37
|
id: string;
|
|
@@ -5,7 +5,7 @@ export interface UseMarketProductRulesOptions extends MarketProductRulesListFilt
|
|
|
5
5
|
export declare function useMarketProductRules(options?: UseMarketProductRulesOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
6
|
data: {
|
|
7
7
|
visibility: "hidden" | "public" | "private";
|
|
8
|
-
sellability: "
|
|
8
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
9
9
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
10
10
|
active: boolean;
|
|
11
11
|
id: string;
|
|
@@ -338,7 +338,7 @@ export declare function getMarketCurrencyQueryOptions(client: FetchWithValidatio
|
|
|
338
338
|
export declare function getMarketProductRulesQueryOptions(client: FetchWithValidationOptions, options?: UseMarketProductRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
339
339
|
data: {
|
|
340
340
|
visibility: "hidden" | "public" | "private";
|
|
341
|
-
sellability: "
|
|
341
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
342
342
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
343
343
|
active: boolean;
|
|
344
344
|
id: string;
|
|
@@ -356,7 +356,7 @@ export declare function getMarketProductRulesQueryOptions(client: FetchWithValid
|
|
|
356
356
|
}, Error, {
|
|
357
357
|
data: {
|
|
358
358
|
visibility: "hidden" | "public" | "private";
|
|
359
|
-
sellability: "
|
|
359
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
360
360
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
361
361
|
active: boolean;
|
|
362
362
|
id: string;
|
|
@@ -375,7 +375,7 @@ export declare function getMarketProductRulesQueryOptions(client: FetchWithValid
|
|
|
375
375
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
376
376
|
data: {
|
|
377
377
|
visibility: "hidden" | "public" | "private";
|
|
378
|
-
sellability: "
|
|
378
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
379
379
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
380
380
|
active: boolean;
|
|
381
381
|
id: string;
|
|
@@ -396,7 +396,7 @@ export declare function getMarketProductRulesQueryOptions(client: FetchWithValid
|
|
|
396
396
|
[dataTagSymbol]: {
|
|
397
397
|
data: {
|
|
398
398
|
visibility: "hidden" | "public" | "private";
|
|
399
|
-
sellability: "
|
|
399
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
400
400
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
401
401
|
active: boolean;
|
|
402
402
|
id: string;
|
|
@@ -417,7 +417,7 @@ export declare function getMarketProductRulesQueryOptions(client: FetchWithValid
|
|
|
417
417
|
};
|
|
418
418
|
export declare function getMarketProductRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
419
419
|
visibility: "hidden" | "public" | "private";
|
|
420
|
-
sellability: "
|
|
420
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
421
421
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
422
422
|
active: boolean;
|
|
423
423
|
id: string;
|
|
@@ -430,7 +430,7 @@ export declare function getMarketProductRuleQueryOptions(client: FetchWithValida
|
|
|
430
430
|
notes: string | null;
|
|
431
431
|
}, Error, {
|
|
432
432
|
visibility: "hidden" | "public" | "private";
|
|
433
|
-
sellability: "
|
|
433
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
434
434
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
435
435
|
active: boolean;
|
|
436
436
|
id: string;
|
|
@@ -444,7 +444,7 @@ export declare function getMarketProductRuleQueryOptions(client: FetchWithValida
|
|
|
444
444
|
}, readonly ["markets", "product-rules", string]>, "queryFn"> & {
|
|
445
445
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
446
446
|
visibility: "hidden" | "public" | "private";
|
|
447
|
-
sellability: "
|
|
447
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
448
448
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
449
449
|
active: boolean;
|
|
450
450
|
id: string;
|
|
@@ -460,7 +460,7 @@ export declare function getMarketProductRuleQueryOptions(client: FetchWithValida
|
|
|
460
460
|
queryKey: readonly ["markets", "product-rules", string] & {
|
|
461
461
|
[dataTagSymbol]: {
|
|
462
462
|
visibility: "hidden" | "public" | "private";
|
|
463
|
-
sellability: "
|
|
463
|
+
sellability: "sellable" | "on_request" | "unavailable";
|
|
464
464
|
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
465
465
|
active: boolean;
|
|
466
466
|
id: string;
|
|
@@ -56,9 +56,9 @@ export declare const marketProductRuleRecordSchema: z.ZodObject<{
|
|
|
56
56
|
private: "private";
|
|
57
57
|
}>>;
|
|
58
58
|
sellability: z.ZodDefault<z.ZodEnum<{
|
|
59
|
-
unavailable: "unavailable";
|
|
60
59
|
sellable: "sellable";
|
|
61
60
|
on_request: "on_request";
|
|
61
|
+
unavailable: "unavailable";
|
|
62
62
|
}>>;
|
|
63
63
|
channelScope: z.ZodDefault<z.ZodEnum<{
|
|
64
64
|
all: "all";
|
|
@@ -176,9 +176,9 @@ export declare const marketProductRuleListResponse: z.ZodObject<{
|
|
|
176
176
|
private: "private";
|
|
177
177
|
}>>;
|
|
178
178
|
sellability: z.ZodDefault<z.ZodEnum<{
|
|
179
|
-
unavailable: "unavailable";
|
|
180
179
|
sellable: "sellable";
|
|
181
180
|
on_request: "on_request";
|
|
181
|
+
unavailable: "unavailable";
|
|
182
182
|
}>>;
|
|
183
183
|
channelScope: z.ZodDefault<z.ZodEnum<{
|
|
184
184
|
all: "all";
|
|
@@ -208,9 +208,9 @@ export declare const marketProductRuleSingleResponse: z.ZodObject<{
|
|
|
208
208
|
private: "private";
|
|
209
209
|
}>>;
|
|
210
210
|
sellability: z.ZodDefault<z.ZodEnum<{
|
|
211
|
-
unavailable: "unavailable";
|
|
212
211
|
sellable: "sellable";
|
|
213
212
|
on_request: "on_request";
|
|
213
|
+
unavailable: "unavailable";
|
|
214
214
|
}>>;
|
|
215
215
|
channelScope: z.ZodDefault<z.ZodEnum<{
|
|
216
216
|
all: "all";
|
|
@@ -4,10 +4,10 @@ declare const optionStartTimeRuleInputSchema: z.ZodObject<{
|
|
|
4
4
|
optionId: z.ZodString;
|
|
5
5
|
startTimeId: z.ZodString;
|
|
6
6
|
ruleMode: z.ZodEnum<{
|
|
7
|
+
adjustment: "adjustment";
|
|
7
8
|
override: "override";
|
|
8
9
|
included: "included";
|
|
9
10
|
excluded: "excluded";
|
|
10
|
-
adjustment: "adjustment";
|
|
11
11
|
}>;
|
|
12
12
|
adjustmentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
13
13
|
fixed: "fixed";
|
|
@@ -27,7 +27,7 @@ export declare function useOptionStartTimeRuleMutation(): {
|
|
|
27
27
|
optionPriceRuleId: string;
|
|
28
28
|
optionId: string;
|
|
29
29
|
startTimeId: string;
|
|
30
|
-
ruleMode: "
|
|
30
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
41
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
54
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
9
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
11
|
+
ruleMode: "adjustment" | "override" | "included" | "excluded";
|
|
12
12
|
adjustmentType: "fixed" | "percentage" | null;
|
|
13
13
|
sellAdjustmentCents: number | null;
|
|
14
14
|
costAdjustmentCents: number | null;
|
|
@@ -5,9 +5,9 @@ declare const priceCatalogInputSchema: z.ZodObject<{
|
|
|
5
5
|
currencyCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
catalogType: z.ZodEnum<{
|
|
7
7
|
other: "other";
|
|
8
|
+
contract: "contract";
|
|
8
9
|
internal: "internal";
|
|
9
10
|
public: "public";
|
|
10
|
-
contract: "contract";
|
|
11
11
|
net: "net";
|
|
12
12
|
gross: "gross";
|
|
13
13
|
promo: "promo";
|
|
@@ -25,14 +25,14 @@ export declare function usePriceCatalogMutation(): {
|
|
|
25
25
|
code: string;
|
|
26
26
|
name: string;
|
|
27
27
|
currencyCode: string | null;
|
|
28
|
-
catalogType: "other" | "
|
|
28
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
29
29
|
isDefault: boolean;
|
|
30
30
|
active: boolean;
|
|
31
31
|
notes: string | null;
|
|
32
32
|
}, Error, {
|
|
33
33
|
code: string;
|
|
34
34
|
name: string;
|
|
35
|
-
catalogType: "other" | "
|
|
35
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
36
36
|
currencyCode?: string | null | undefined;
|
|
37
37
|
isDefault?: boolean | undefined;
|
|
38
38
|
active?: boolean | undefined;
|
|
@@ -44,7 +44,7 @@ export declare function usePriceCatalogMutation(): {
|
|
|
44
44
|
code: string;
|
|
45
45
|
name: string;
|
|
46
46
|
currencyCode: string | null;
|
|
47
|
-
catalogType: "other" | "
|
|
47
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
48
48
|
isDefault: boolean;
|
|
49
49
|
active: boolean;
|
|
50
50
|
notes: string | null;
|
|
@@ -6,7 +6,7 @@ export declare function usePriceCatalog(id: string | null | undefined, options?:
|
|
|
6
6
|
code: string;
|
|
7
7
|
name: string;
|
|
8
8
|
currencyCode: string | null;
|
|
9
|
-
catalogType: "other" | "
|
|
9
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
10
10
|
isDefault: boolean;
|
|
11
11
|
active: boolean;
|
|
12
12
|
notes: string | null;
|
|
@@ -8,7 +8,7 @@ export declare function usePriceCatalogs(options?: UsePriceCatalogsOptions): imp
|
|
|
8
8
|
code: string;
|
|
9
9
|
name: string;
|
|
10
10
|
currencyCode: string | null;
|
|
11
|
-
catalogType: "other" | "
|
|
11
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
12
12
|
isDefault: boolean;
|
|
13
13
|
active: boolean;
|
|
14
14
|
notes: string | null;
|
|
@@ -10,7 +10,7 @@ export declare function usePricingCategories(options?: UsePricingCategoriesOptio
|
|
|
10
10
|
unitId: string | null;
|
|
11
11
|
code: string | null;
|
|
12
12
|
name: string;
|
|
13
|
-
categoryType: "group" | "other" | "
|
|
13
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
14
14
|
seatOccupancy: number;
|
|
15
15
|
groupSize: number | null;
|
|
16
16
|
isAgeQualified: boolean;
|
|
@@ -24,7 +24,7 @@ export declare function usePricingCategoryMutation(): {
|
|
|
24
24
|
unitId: string | null;
|
|
25
25
|
code: string | null;
|
|
26
26
|
name: string;
|
|
27
|
-
categoryType: "group" | "other" | "
|
|
27
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
28
28
|
seatOccupancy: number;
|
|
29
29
|
groupSize: number | null;
|
|
30
30
|
isAgeQualified: boolean;
|
|
@@ -44,7 +44,7 @@ export declare function usePricingCategoryMutation(): {
|
|
|
44
44
|
unitId: string | null;
|
|
45
45
|
code: string | null;
|
|
46
46
|
name: string;
|
|
47
|
-
categoryType: "group" | "other" | "
|
|
47
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
48
48
|
seatOccupancy: number;
|
|
49
49
|
groupSize: number | null;
|
|
50
50
|
isAgeQualified: boolean;
|
|
@@ -8,7 +8,7 @@ export declare function usePricingCategory(id: string | null | undefined, option
|
|
|
8
8
|
unitId: string | null;
|
|
9
9
|
code: string | null;
|
|
10
10
|
name: string;
|
|
11
|
-
categoryType: "group" | "other" | "
|
|
11
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
12
12
|
seatOccupancy: number;
|
|
13
13
|
groupSize: number | null;
|
|
14
14
|
isAgeQualified: boolean;
|
|
@@ -9,7 +9,7 @@ export declare function getPricingCategoryQueryOptions(client: FetchWithValidati
|
|
|
9
9
|
unitId: string | null;
|
|
10
10
|
code: string | null;
|
|
11
11
|
name: string;
|
|
12
|
-
categoryType: "group" | "other" | "
|
|
12
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
13
13
|
seatOccupancy: number;
|
|
14
14
|
groupSize: number | null;
|
|
15
15
|
isAgeQualified: boolean;
|
|
@@ -28,7 +28,7 @@ export declare function getPricingCategoryQueryOptions(client: FetchWithValidati
|
|
|
28
28
|
unitId: string | null;
|
|
29
29
|
code: string | null;
|
|
30
30
|
name: string;
|
|
31
|
-
categoryType: "group" | "other" | "
|
|
31
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
32
32
|
seatOccupancy: number;
|
|
33
33
|
groupSize: number | null;
|
|
34
34
|
isAgeQualified: boolean;
|
|
@@ -48,7 +48,7 @@ export declare function getPricingCategoryQueryOptions(client: FetchWithValidati
|
|
|
48
48
|
unitId: string | null;
|
|
49
49
|
code: string | null;
|
|
50
50
|
name: string;
|
|
51
|
-
categoryType: "group" | "other" | "
|
|
51
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
52
52
|
seatOccupancy: number;
|
|
53
53
|
groupSize: number | null;
|
|
54
54
|
isAgeQualified: boolean;
|
|
@@ -70,7 +70,7 @@ export declare function getPricingCategoryQueryOptions(client: FetchWithValidati
|
|
|
70
70
|
unitId: string | null;
|
|
71
71
|
code: string | null;
|
|
72
72
|
name: string;
|
|
73
|
-
categoryType: "group" | "other" | "
|
|
73
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
74
74
|
seatOccupancy: number;
|
|
75
75
|
groupSize: number | null;
|
|
76
76
|
isAgeQualified: boolean;
|
|
@@ -94,7 +94,7 @@ export declare function getPricingCategoriesQueryOptions(client: FetchWithValida
|
|
|
94
94
|
unitId: string | null;
|
|
95
95
|
code: string | null;
|
|
96
96
|
name: string;
|
|
97
|
-
categoryType: "group" | "other" | "
|
|
97
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
98
98
|
seatOccupancy: number;
|
|
99
99
|
groupSize: number | null;
|
|
100
100
|
isAgeQualified: boolean;
|
|
@@ -118,7 +118,7 @@ export declare function getPricingCategoriesQueryOptions(client: FetchWithValida
|
|
|
118
118
|
unitId: string | null;
|
|
119
119
|
code: string | null;
|
|
120
120
|
name: string;
|
|
121
|
-
categoryType: "group" | "other" | "
|
|
121
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
122
122
|
seatOccupancy: number;
|
|
123
123
|
groupSize: number | null;
|
|
124
124
|
isAgeQualified: boolean;
|
|
@@ -143,7 +143,7 @@ export declare function getPricingCategoriesQueryOptions(client: FetchWithValida
|
|
|
143
143
|
unitId: string | null;
|
|
144
144
|
code: string | null;
|
|
145
145
|
name: string;
|
|
146
|
-
categoryType: "group" | "other" | "
|
|
146
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
147
147
|
seatOccupancy: number;
|
|
148
148
|
groupSize: number | null;
|
|
149
149
|
isAgeQualified: boolean;
|
|
@@ -170,7 +170,7 @@ export declare function getPricingCategoriesQueryOptions(client: FetchWithValida
|
|
|
170
170
|
unitId: string | null;
|
|
171
171
|
code: string | null;
|
|
172
172
|
name: string;
|
|
173
|
-
categoryType: "group" | "other" | "
|
|
173
|
+
categoryType: "group" | "other" | "room" | "vehicle" | "adult" | "service" | "child" | "infant" | "senior";
|
|
174
174
|
seatOccupancy: number;
|
|
175
175
|
groupSize: number | null;
|
|
176
176
|
isAgeQualified: boolean;
|
|
@@ -268,7 +268,7 @@ export declare function getPriceCatalogsQueryOptions(client: FetchWithValidation
|
|
|
268
268
|
code: string;
|
|
269
269
|
name: string;
|
|
270
270
|
currencyCode: string | null;
|
|
271
|
-
catalogType: "other" | "
|
|
271
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
272
272
|
isDefault: boolean;
|
|
273
273
|
active: boolean;
|
|
274
274
|
notes: string | null;
|
|
@@ -282,7 +282,7 @@ export declare function getPriceCatalogsQueryOptions(client: FetchWithValidation
|
|
|
282
282
|
code: string;
|
|
283
283
|
name: string;
|
|
284
284
|
currencyCode: string | null;
|
|
285
|
-
catalogType: "other" | "
|
|
285
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
286
286
|
isDefault: boolean;
|
|
287
287
|
active: boolean;
|
|
288
288
|
notes: string | null;
|
|
@@ -297,7 +297,7 @@ export declare function getPriceCatalogsQueryOptions(client: FetchWithValidation
|
|
|
297
297
|
code: string;
|
|
298
298
|
name: string;
|
|
299
299
|
currencyCode: string | null;
|
|
300
|
-
catalogType: "other" | "
|
|
300
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
301
301
|
isDefault: boolean;
|
|
302
302
|
active: boolean;
|
|
303
303
|
notes: string | null;
|
|
@@ -314,7 +314,7 @@ export declare function getPriceCatalogsQueryOptions(client: FetchWithValidation
|
|
|
314
314
|
code: string;
|
|
315
315
|
name: string;
|
|
316
316
|
currencyCode: string | null;
|
|
317
|
-
catalogType: "other" | "
|
|
317
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
318
318
|
isDefault: boolean;
|
|
319
319
|
active: boolean;
|
|
320
320
|
notes: string | null;
|
|
@@ -331,7 +331,7 @@ export declare function getPriceCatalogQueryOptions(client: FetchWithValidationO
|
|
|
331
331
|
code: string;
|
|
332
332
|
name: string;
|
|
333
333
|
currencyCode: string | null;
|
|
334
|
-
catalogType: "other" | "
|
|
334
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
335
335
|
isDefault: boolean;
|
|
336
336
|
active: boolean;
|
|
337
337
|
notes: string | null;
|
|
@@ -340,7 +340,7 @@ export declare function getPriceCatalogQueryOptions(client: FetchWithValidationO
|
|
|
340
340
|
code: string;
|
|
341
341
|
name: string;
|
|
342
342
|
currencyCode: string | null;
|
|
343
|
-
catalogType: "other" | "
|
|
343
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
344
344
|
isDefault: boolean;
|
|
345
345
|
active: boolean;
|
|
346
346
|
notes: string | null;
|
|
@@ -350,7 +350,7 @@ export declare function getPriceCatalogQueryOptions(client: FetchWithValidationO
|
|
|
350
350
|
code: string;
|
|
351
351
|
name: string;
|
|
352
352
|
currencyCode: string | null;
|
|
353
|
-
catalogType: "other" | "
|
|
353
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
354
354
|
isDefault: boolean;
|
|
355
355
|
active: boolean;
|
|
356
356
|
notes: string | null;
|
|
@@ -362,7 +362,7 @@ export declare function getPriceCatalogQueryOptions(client: FetchWithValidationO
|
|
|
362
362
|
code: string;
|
|
363
363
|
name: string;
|
|
364
364
|
currencyCode: string | null;
|
|
365
|
-
catalogType: "other" | "
|
|
365
|
+
catalogType: "other" | "contract" | "internal" | "public" | "net" | "gross" | "promo";
|
|
366
366
|
isDefault: boolean;
|
|
367
367
|
active: boolean;
|
|
368
368
|
notes: string | 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: "
|
|
416
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
433
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
451
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
471
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
491
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
503
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
516
|
+
ruleMode: "adjustment" | "override" | "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: "
|
|
531
|
+
ruleMode: "adjustment" | "override" | "included" | "excluded";
|
|
532
532
|
adjustmentType: "fixed" | "percentage" | null;
|
|
533
533
|
sellAdjustmentCents: number | null;
|
|
534
534
|
costAdjustmentCents: number | null;
|
|
@@ -32,10 +32,10 @@ declare const promotionalOfferRecordSchema: z.ZodObject<{
|
|
|
32
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
33
33
|
kind: z.ZodLiteral<"audiences">;
|
|
34
34
|
audiences: z.ZodArray<z.ZodEnum<{
|
|
35
|
-
|
|
35
|
+
supplier: "supplier";
|
|
36
36
|
customer: "customer";
|
|
37
37
|
partner: "partner";
|
|
38
|
-
|
|
38
|
+
staff: "staff";
|
|
39
39
|
}>>;
|
|
40
40
|
}, z.core.$strip>, z.ZodObject<{
|
|
41
41
|
kind: z.ZodLiteral<"fare_codes">;
|
|
@@ -115,7 +115,7 @@ export declare function getPromotionsListQueryOptions(query?: PromotionsListQuer
|
|
|
115
115
|
marketIds: string[];
|
|
116
116
|
} | {
|
|
117
117
|
kind: "audiences";
|
|
118
|
-
audiences: ("
|
|
118
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
119
119
|
} | {
|
|
120
120
|
kind: "fare_codes";
|
|
121
121
|
fareCodes: string[];
|
|
@@ -168,7 +168,7 @@ export declare function getPromotionsListQueryOptions(query?: PromotionsListQuer
|
|
|
168
168
|
marketIds: string[];
|
|
169
169
|
} | {
|
|
170
170
|
kind: "audiences";
|
|
171
|
-
audiences: ("
|
|
171
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
172
172
|
} | {
|
|
173
173
|
kind: "fare_codes";
|
|
174
174
|
fareCodes: string[];
|
|
@@ -222,7 +222,7 @@ export declare function getPromotionsListQueryOptions(query?: PromotionsListQuer
|
|
|
222
222
|
marketIds: string[];
|
|
223
223
|
} | {
|
|
224
224
|
kind: "audiences";
|
|
225
|
-
audiences: ("
|
|
225
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
226
226
|
} | {
|
|
227
227
|
kind: "fare_codes";
|
|
228
228
|
fareCodes: string[];
|
|
@@ -278,7 +278,7 @@ export declare function getPromotionsListQueryOptions(query?: PromotionsListQuer
|
|
|
278
278
|
marketIds: string[];
|
|
279
279
|
} | {
|
|
280
280
|
kind: "audiences";
|
|
281
|
-
audiences: ("
|
|
281
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
282
282
|
} | {
|
|
283
283
|
kind: "fare_codes";
|
|
284
284
|
fareCodes: string[];
|
|
@@ -334,7 +334,7 @@ export declare function getPromotionByIdQueryOptions(id: string, client?: Promot
|
|
|
334
334
|
marketIds: string[];
|
|
335
335
|
} | {
|
|
336
336
|
kind: "audiences";
|
|
337
|
-
audiences: ("
|
|
337
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
338
338
|
} | {
|
|
339
339
|
kind: "fare_codes";
|
|
340
340
|
fareCodes: string[];
|
|
@@ -382,7 +382,7 @@ export declare function getPromotionByIdQueryOptions(id: string, client?: Promot
|
|
|
382
382
|
marketIds: string[];
|
|
383
383
|
} | {
|
|
384
384
|
kind: "audiences";
|
|
385
|
-
audiences: ("
|
|
385
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
386
386
|
} | {
|
|
387
387
|
kind: "fare_codes";
|
|
388
388
|
fareCodes: string[];
|
|
@@ -431,7 +431,7 @@ export declare function getPromotionByIdQueryOptions(id: string, client?: Promot
|
|
|
431
431
|
marketIds: string[];
|
|
432
432
|
} | {
|
|
433
433
|
kind: "audiences";
|
|
434
|
-
audiences: ("
|
|
434
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
435
435
|
} | {
|
|
436
436
|
kind: "fare_codes";
|
|
437
437
|
fareCodes: string[];
|
|
@@ -482,7 +482,7 @@ export declare function getPromotionByIdQueryOptions(id: string, client?: Promot
|
|
|
482
482
|
marketIds: string[];
|
|
483
483
|
} | {
|
|
484
484
|
kind: "audiences";
|
|
485
|
-
audiences: ("
|
|
485
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
486
486
|
} | {
|
|
487
487
|
kind: "fare_codes";
|
|
488
488
|
fareCodes: string[];
|
|
@@ -535,7 +535,7 @@ export declare function usePromotionsList(query?: PromotionsListQuery): import("
|
|
|
535
535
|
marketIds: string[];
|
|
536
536
|
} | {
|
|
537
537
|
kind: "audiences";
|
|
538
|
-
audiences: ("
|
|
538
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
539
539
|
} | {
|
|
540
540
|
kind: "fare_codes";
|
|
541
541
|
fareCodes: string[];
|
|
@@ -605,7 +605,7 @@ export declare function useCreatePromotion(): import("@tanstack/react-query").Us
|
|
|
605
605
|
marketIds: string[];
|
|
606
606
|
} | {
|
|
607
607
|
kind: "audiences";
|
|
608
|
-
audiences: ("
|
|
608
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
609
609
|
} | {
|
|
610
610
|
kind: "fare_codes";
|
|
611
611
|
fareCodes: string[];
|
|
@@ -654,7 +654,7 @@ export declare function useUpdatePromotion(): import("@tanstack/react-query").Us
|
|
|
654
654
|
marketIds: string[];
|
|
655
655
|
} | {
|
|
656
656
|
kind: "audiences";
|
|
657
|
-
audiences: ("
|
|
657
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
658
658
|
} | {
|
|
659
659
|
kind: "fare_codes";
|
|
660
660
|
fareCodes: string[];
|
|
@@ -706,7 +706,7 @@ export declare function useArchivePromotion(): import("@tanstack/react-query").U
|
|
|
706
706
|
marketIds: string[];
|
|
707
707
|
} | {
|
|
708
708
|
kind: "audiences";
|
|
709
|
-
audiences: ("
|
|
709
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
710
710
|
} | {
|
|
711
711
|
kind: "fare_codes";
|
|
712
712
|
fareCodes: string[];
|
|
@@ -45,7 +45,7 @@ export declare function loadPromotionsPage(queryClient: QueryClient, client?: Pa
|
|
|
45
45
|
marketIds: string[];
|
|
46
46
|
} | {
|
|
47
47
|
kind: "audiences";
|
|
48
|
-
audiences: ("
|
|
48
|
+
audiences: ("supplier" | "customer" | "partner" | "staff")[];
|
|
49
49
|
} | {
|
|
50
50
|
kind: "fare_codes";
|
|
51
51
|
fareCodes: string[];
|
|
@@ -8,8 +8,8 @@ export declare function useSellabilityPolicies(options?: UseSellabilityPoliciesO
|
|
|
8
8
|
priority: number;
|
|
9
9
|
active: boolean;
|
|
10
10
|
id: string;
|
|
11
|
-
scope: "
|
|
12
|
-
policyType: "
|
|
11
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
12
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
13
13
|
productId: string | null;
|
|
14
14
|
optionId: string | null;
|
|
15
15
|
marketId: string | null;
|
|
@@ -8,8 +8,8 @@ export declare function useSellabilityPolicyMutation(): {
|
|
|
8
8
|
priority: number;
|
|
9
9
|
active: boolean;
|
|
10
10
|
id: string;
|
|
11
|
-
scope: "
|
|
12
|
-
policyType: "
|
|
11
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
12
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
13
13
|
productId: string | null;
|
|
14
14
|
optionId: string | null;
|
|
15
15
|
marketId: string | null;
|
|
@@ -22,8 +22,8 @@ export declare function useSellabilityPolicyMutation(): {
|
|
|
22
22
|
metadata?: Record<string, unknown> | null | undefined;
|
|
23
23
|
}, Error, {
|
|
24
24
|
name: string;
|
|
25
|
-
scope?: "
|
|
26
|
-
policyType?: "
|
|
25
|
+
scope?: "option" | "channel" | "product" | "market" | "global" | undefined;
|
|
26
|
+
policyType?: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window" | undefined;
|
|
27
27
|
productId?: string | null | undefined;
|
|
28
28
|
optionId?: string | null | undefined;
|
|
29
29
|
marketId?: string | null | undefined;
|
|
@@ -40,8 +40,8 @@ export declare function useSellabilityPolicyMutation(): {
|
|
|
40
40
|
priority: number;
|
|
41
41
|
active: boolean;
|
|
42
42
|
id: string;
|
|
43
|
-
scope: "
|
|
44
|
-
policyType: "
|
|
43
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
44
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
45
45
|
productId: string | null;
|
|
46
46
|
optionId: string | null;
|
|
47
47
|
marketId: string | null;
|
|
@@ -6,8 +6,8 @@ export declare function useSellabilityPolicy(id: string | null | undefined, opti
|
|
|
6
6
|
priority: number;
|
|
7
7
|
active: boolean;
|
|
8
8
|
id: string;
|
|
9
|
-
scope: "
|
|
10
|
-
policyType: "
|
|
9
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
10
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
11
11
|
productId: string | null;
|
|
12
12
|
optionId: string | null;
|
|
13
13
|
marketId: string | null;
|
|
@@ -6,8 +6,8 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
|
|
|
6
6
|
priority: number;
|
|
7
7
|
active: boolean;
|
|
8
8
|
id: string;
|
|
9
|
-
scope: "
|
|
10
|
-
policyType: "
|
|
9
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
10
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
11
11
|
productId: string | null;
|
|
12
12
|
optionId: string | null;
|
|
13
13
|
marketId: string | null;
|
|
@@ -28,8 +28,8 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
|
|
|
28
28
|
priority: number;
|
|
29
29
|
active: boolean;
|
|
30
30
|
id: string;
|
|
31
|
-
scope: "
|
|
32
|
-
policyType: "
|
|
31
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
32
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
33
33
|
productId: string | null;
|
|
34
34
|
optionId: string | null;
|
|
35
35
|
marketId: string | null;
|
|
@@ -51,8 +51,8 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
|
|
|
51
51
|
priority: number;
|
|
52
52
|
active: boolean;
|
|
53
53
|
id: string;
|
|
54
|
-
scope: "
|
|
55
|
-
policyType: "
|
|
54
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
55
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
56
56
|
productId: string | null;
|
|
57
57
|
optionId: string | null;
|
|
58
58
|
marketId: string | null;
|
|
@@ -76,8 +76,8 @@ export declare function getSellabilityPoliciesQueryOptions(client: FetchWithVali
|
|
|
76
76
|
priority: number;
|
|
77
77
|
active: boolean;
|
|
78
78
|
id: string;
|
|
79
|
-
scope: "
|
|
80
|
-
policyType: "
|
|
79
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
80
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
81
81
|
productId: string | null;
|
|
82
82
|
optionId: string | null;
|
|
83
83
|
marketId: string | null;
|
|
@@ -101,8 +101,8 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
|
|
|
101
101
|
priority: number;
|
|
102
102
|
active: boolean;
|
|
103
103
|
id: string;
|
|
104
|
-
scope: "
|
|
105
|
-
policyType: "
|
|
104
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
105
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
106
106
|
productId: string | null;
|
|
107
107
|
optionId: string | null;
|
|
108
108
|
marketId: string | null;
|
|
@@ -118,8 +118,8 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
|
|
|
118
118
|
priority: number;
|
|
119
119
|
active: boolean;
|
|
120
120
|
id: string;
|
|
121
|
-
scope: "
|
|
122
|
-
policyType: "
|
|
121
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
122
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
123
123
|
productId: string | null;
|
|
124
124
|
optionId: string | null;
|
|
125
125
|
marketId: string | null;
|
|
@@ -136,8 +136,8 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
|
|
|
136
136
|
priority: number;
|
|
137
137
|
active: boolean;
|
|
138
138
|
id: string;
|
|
139
|
-
scope: "
|
|
140
|
-
policyType: "
|
|
139
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
140
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
141
141
|
productId: string | null;
|
|
142
142
|
optionId: string | null;
|
|
143
143
|
marketId: string | null;
|
|
@@ -156,8 +156,8 @@ export declare function getSellabilityPolicyQueryOptions(client: FetchWithValida
|
|
|
156
156
|
priority: number;
|
|
157
157
|
active: boolean;
|
|
158
158
|
id: string;
|
|
159
|
-
scope: "
|
|
160
|
-
policyType: "
|
|
159
|
+
scope: "option" | "channel" | "product" | "market" | "global";
|
|
160
|
+
policyType: "currency" | "capability" | "pickup" | "custom" | "question" | "occupancy" | "allotment" | "availability_window";
|
|
161
161
|
productId: string | null;
|
|
162
162
|
optionId: string | null;
|
|
163
163
|
marketId: string | null;
|
|
@@ -18,21 +18,21 @@ export declare const sellabilityPolicyRecordSchema: z.ZodObject<{
|
|
|
18
18
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
scope: z.ZodEnum<{
|
|
21
|
-
global: "global";
|
|
22
|
-
product: "product";
|
|
23
21
|
option: "option";
|
|
24
|
-
market: "market";
|
|
25
22
|
channel: "channel";
|
|
23
|
+
product: "product";
|
|
24
|
+
market: "market";
|
|
25
|
+
global: "global";
|
|
26
26
|
}>;
|
|
27
27
|
policyType: z.ZodEnum<{
|
|
28
|
-
|
|
28
|
+
currency: "currency";
|
|
29
29
|
capability: "capability";
|
|
30
|
-
occupancy: "occupancy";
|
|
31
30
|
pickup: "pickup";
|
|
31
|
+
custom: "custom";
|
|
32
32
|
question: "question";
|
|
33
|
+
occupancy: "occupancy";
|
|
33
34
|
allotment: "allotment";
|
|
34
35
|
availability_window: "availability_window";
|
|
35
|
-
currency: "currency";
|
|
36
36
|
}>;
|
|
37
37
|
productId: z.ZodNullable<z.ZodString>;
|
|
38
38
|
optionId: z.ZodNullable<z.ZodString>;
|
|
@@ -53,21 +53,21 @@ export declare const sellabilityPolicyListResponse: z.ZodObject<{
|
|
|
53
53
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
id: z.ZodString;
|
|
55
55
|
scope: z.ZodEnum<{
|
|
56
|
-
global: "global";
|
|
57
|
-
product: "product";
|
|
58
56
|
option: "option";
|
|
59
|
-
market: "market";
|
|
60
57
|
channel: "channel";
|
|
58
|
+
product: "product";
|
|
59
|
+
market: "market";
|
|
60
|
+
global: "global";
|
|
61
61
|
}>;
|
|
62
62
|
policyType: z.ZodEnum<{
|
|
63
|
-
|
|
63
|
+
currency: "currency";
|
|
64
64
|
capability: "capability";
|
|
65
|
-
occupancy: "occupancy";
|
|
66
65
|
pickup: "pickup";
|
|
66
|
+
custom: "custom";
|
|
67
67
|
question: "question";
|
|
68
|
+
occupancy: "occupancy";
|
|
68
69
|
allotment: "allotment";
|
|
69
70
|
availability_window: "availability_window";
|
|
70
|
-
currency: "currency";
|
|
71
71
|
}>;
|
|
72
72
|
productId: z.ZodNullable<z.ZodString>;
|
|
73
73
|
optionId: z.ZodNullable<z.ZodString>;
|
|
@@ -91,21 +91,21 @@ export declare const sellabilityPolicySingleResponse: z.ZodObject<{
|
|
|
91
91
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
id: z.ZodString;
|
|
93
93
|
scope: z.ZodEnum<{
|
|
94
|
-
global: "global";
|
|
95
|
-
product: "product";
|
|
96
94
|
option: "option";
|
|
97
|
-
market: "market";
|
|
98
95
|
channel: "channel";
|
|
96
|
+
product: "product";
|
|
97
|
+
market: "market";
|
|
98
|
+
global: "global";
|
|
99
99
|
}>;
|
|
100
100
|
policyType: z.ZodEnum<{
|
|
101
|
-
|
|
101
|
+
currency: "currency";
|
|
102
102
|
capability: "capability";
|
|
103
|
-
occupancy: "occupancy";
|
|
104
103
|
pickup: "pickup";
|
|
104
|
+
custom: "custom";
|
|
105
105
|
question: "question";
|
|
106
|
+
occupancy: "occupancy";
|
|
106
107
|
allotment: "allotment";
|
|
107
108
|
availability_window: "availability_window";
|
|
108
|
-
currency: "currency";
|
|
109
109
|
}>;
|
|
110
110
|
productId: z.ZodNullable<z.ZodString>;
|
|
111
111
|
optionId: z.ZodNullable<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/commerce-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -235,10 +235,10 @@
|
|
|
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.111.
|
|
239
|
-
"@voyant-travel/
|
|
240
|
-
"@voyant-travel/distribution-react": "^0.
|
|
241
|
-
"@voyant-travel/
|
|
238
|
+
"@voyant-travel/admin": "^0.111.1",
|
|
239
|
+
"@voyant-travel/commerce": "^0.2.0",
|
|
240
|
+
"@voyant-travel/distribution-react": "^0.110.0",
|
|
241
|
+
"@voyant-travel/inventory-react": "^0.2.0",
|
|
242
242
|
"@voyant-travel/ui": "^0.106.1"
|
|
243
243
|
},
|
|
244
244
|
"peerDependenciesMeta": {
|
|
@@ -274,13 +274,13 @@
|
|
|
274
274
|
"typescript": "^6.0.2",
|
|
275
275
|
"vitest": "^4.1.2",
|
|
276
276
|
"zod": "^4.3.6",
|
|
277
|
-
"@voyant-travel/
|
|
278
|
-
"@voyant-travel/
|
|
277
|
+
"@voyant-travel/admin": "^0.111.1",
|
|
278
|
+
"@voyant-travel/commerce": "^0.2.0",
|
|
279
|
+
"@voyant-travel/distribution-react": "^0.110.0",
|
|
279
280
|
"@voyant-travel/i18n": "^0.106.1",
|
|
280
|
-
"@voyant-travel/
|
|
281
|
+
"@voyant-travel/inventory-react": "^0.2.0",
|
|
281
282
|
"@voyant-travel/react": "^0.104.1",
|
|
282
283
|
"@voyant-travel/ui": "^0.106.1",
|
|
283
|
-
"@voyant-travel/inventory-react": "^0.1.0",
|
|
284
284
|
"@voyant-travel/utils": "^0.105.1",
|
|
285
285
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
286
286
|
},
|