@voyantjs/pricing-react 0.2.0 → 0.3.1
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/LICENSE +109 -0
- package/dist/hooks/index.d.ts +33 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +33 -0
- package/dist/hooks/use-cancellation-policies.d.ts +20 -0
- package/dist/hooks/use-cancellation-policies.d.ts.map +1 -0
- package/dist/hooks/use-cancellation-policies.js +12 -0
- package/dist/hooks/use-cancellation-policy-mutation.d.ts +57 -0
- package/dist/hooks/use-cancellation-policy-mutation.d.ts.map +1 -0
- package/dist/hooks/use-cancellation-policy-mutation.js +49 -0
- package/dist/hooks/use-cancellation-policy-rule-mutation.d.ts +58 -0
- package/dist/hooks/use-cancellation-policy-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-cancellation-policy-rule-mutation.js +49 -0
- package/dist/hooks/use-cancellation-policy-rule.d.ts +15 -0
- package/dist/hooks/use-cancellation-policy-rule.d.ts.map +1 -0
- package/dist/hooks/use-cancellation-policy-rule.js +12 -0
- package/dist/hooks/use-cancellation-policy-rules.d.ts +21 -0
- package/dist/hooks/use-cancellation-policy-rules.d.ts.map +1 -0
- package/dist/hooks/use-cancellation-policy-rules.js +12 -0
- package/dist/hooks/use-cancellation-policy.d.ts +14 -0
- package/dist/hooks/use-cancellation-policy.d.ts.map +1 -0
- package/dist/hooks/use-cancellation-policy.js +12 -0
- package/dist/hooks/use-dropoff-price-rule-mutation.d.ts +72 -0
- package/dist/hooks/use-dropoff-price-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-dropoff-price-rule-mutation.js +52 -0
- package/dist/hooks/use-dropoff-price-rule.d.ts +18 -0
- package/dist/hooks/use-dropoff-price-rule.d.ts.map +1 -0
- package/dist/hooks/use-dropoff-price-rule.js +12 -0
- package/dist/hooks/use-dropoff-price-rules.d.ts +24 -0
- package/dist/hooks/use-dropoff-price-rules.d.ts.map +1 -0
- package/dist/hooks/use-dropoff-price-rules.js +12 -0
- package/dist/hooks/use-extra-price-rule-mutation.d.ts +72 -0
- package/dist/hooks/use-extra-price-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-extra-price-rule-mutation.js +52 -0
- package/dist/hooks/use-extra-price-rule.d.ts +18 -0
- package/dist/hooks/use-extra-price-rule.d.ts.map +1 -0
- package/dist/hooks/use-extra-price-rule.js +12 -0
- package/dist/hooks/use-extra-price-rules.d.ts +24 -0
- package/dist/hooks/use-extra-price-rules.d.ts.map +1 -0
- package/dist/hooks/use-extra-price-rules.js +12 -0
- package/dist/hooks/use-option-price-rule-mutation.d.ts +98 -0
- package/dist/hooks/use-option-price-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-option-price-rule-mutation.js +66 -0
- package/dist/hooks/use-option-price-rule.d.ts +24 -0
- package/dist/hooks/use-option-price-rule.d.ts.map +1 -0
- package/dist/hooks/use-option-price-rule.js +12 -0
- package/dist/hooks/use-option-price-rules.d.ts +30 -0
- package/dist/hooks/use-option-price-rules.d.ts.map +1 -0
- package/dist/hooks/use-option-price-rules.js +12 -0
- package/dist/hooks/use-option-start-time-rule-mutation.d.ts +70 -0
- package/dist/hooks/use-option-start-time-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-option-start-time-rule-mutation.js +51 -0
- package/dist/hooks/use-option-start-time-rule.d.ts +17 -0
- package/dist/hooks/use-option-start-time-rule.d.ts.map +1 -0
- package/dist/hooks/use-option-start-time-rule.js +12 -0
- package/dist/hooks/use-option-start-time-rules.d.ts +23 -0
- package/dist/hooks/use-option-start-time-rules.d.ts.map +1 -0
- package/dist/hooks/use-option-start-time-rules.js +12 -0
- package/dist/hooks/use-option-unit-price-rule-mutation.d.ts +79 -0
- package/dist/hooks/use-option-unit-price-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-option-unit-price-rule-mutation.js +54 -0
- package/dist/hooks/use-option-unit-price-rule.d.ts +19 -0
- package/dist/hooks/use-option-unit-price-rule.d.ts.map +1 -0
- package/dist/hooks/use-option-unit-price-rule.js +12 -0
- package/dist/hooks/use-option-unit-price-rules.d.ts +25 -0
- package/dist/hooks/use-option-unit-price-rules.d.ts.map +1 -0
- package/dist/hooks/use-option-unit-price-rules.js +12 -0
- package/dist/hooks/use-option-unit-tier-mutation.d.ts +50 -0
- package/dist/hooks/use-option-unit-tier-mutation.d.ts.map +1 -0
- package/dist/hooks/use-option-unit-tier-mutation.js +48 -0
- package/dist/hooks/use-option-unit-tier.d.ts +14 -0
- package/dist/hooks/use-option-unit-tier.d.ts.map +1 -0
- package/dist/hooks/use-option-unit-tier.js +12 -0
- package/dist/hooks/use-option-unit-tiers.d.ts +20 -0
- package/dist/hooks/use-option-unit-tiers.d.ts.map +1 -0
- package/dist/hooks/use-option-unit-tiers.js +12 -0
- package/dist/hooks/use-pickup-price-rule-mutation.d.ts +64 -0
- package/dist/hooks/use-pickup-price-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-pickup-price-rule-mutation.js +50 -0
- package/dist/hooks/use-pickup-price-rule.d.ts +16 -0
- package/dist/hooks/use-pickup-price-rule.d.ts.map +1 -0
- package/dist/hooks/use-pickup-price-rule.js +12 -0
- package/dist/hooks/use-pickup-price-rules.d.ts +22 -0
- package/dist/hooks/use-pickup-price-rules.d.ts.map +1 -0
- package/dist/hooks/use-pickup-price-rules.js +12 -0
- package/dist/hooks/use-price-catalog-mutation.d.ts +60 -0
- package/dist/hooks/use-price-catalog-mutation.d.ts.map +1 -0
- package/dist/hooks/use-price-catalog-mutation.js +51 -0
- package/dist/hooks/use-price-catalog.d.ts +14 -0
- package/dist/hooks/use-price-catalog.d.ts.map +1 -0
- package/dist/hooks/use-price-catalog.js +12 -0
- package/dist/hooks/use-price-catalogs.d.ts +20 -0
- package/dist/hooks/use-price-catalogs.d.ts.map +1 -0
- package/dist/hooks/use-price-catalogs.js +12 -0
- package/dist/hooks/use-price-schedule-mutation.d.ts +76 -0
- package/dist/hooks/use-price-schedule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-price-schedule-mutation.js +64 -0
- package/dist/hooks/use-price-schedule.d.ts +18 -0
- package/dist/hooks/use-price-schedule.d.ts.map +1 -0
- package/dist/hooks/use-price-schedule.js +12 -0
- package/dist/hooks/use-price-schedules.d.ts +28 -0
- package/dist/hooks/use-price-schedules.d.ts.map +1 -0
- package/dist/hooks/use-price-schedules.js +11 -0
- package/dist/hooks/use-pricing-categories.d.ts +1 -1
- package/dist/hooks/use-pricing-categories.d.ts.map +1 -1
- package/dist/hooks/use-pricing-categories.js +2 -0
- package/dist/hooks/use-pricing-category-mutation.d.ts +2 -2
- package/dist/hooks/use-pricing-category.d.ts +1 -1
- package/dist/hooks/use-pricing-category.d.ts.map +1 -1
- package/dist/hooks/use-pricing-category.js +2 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/provider.d.ts +1 -13
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +1 -16
- package/dist/query-keys.d.ts +116 -0
- package/dist/query-keys.d.ts.map +1 -1
- package/dist/query-keys.js +33 -0
- package/dist/query-options.d.ts +1727 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +409 -0
- package/dist/schemas.d.ts +688 -3
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +165 -0
- package/package.json +42 -46
|
@@ -24,7 +24,7 @@ export declare function usePricingCategoryMutation(): {
|
|
|
24
24
|
unitId: string | null;
|
|
25
25
|
code: string | null;
|
|
26
26
|
name: string;
|
|
27
|
-
categoryType: "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service"
|
|
27
|
+
categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
|
|
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: "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service"
|
|
47
|
+
categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
|
|
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: "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service"
|
|
11
|
+
categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
|
|
12
12
|
seatOccupancy: number;
|
|
13
13
|
groupSize: number | null;
|
|
14
14
|
isAgeQualified: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-pricing-category.d.ts","sourceRoot":"","sources":["../../src/hooks/use-pricing-category.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-pricing-category.d.ts","sourceRoot":"","sources":["../../src/hooks/use-pricing-category.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,kBAAkB,CAChC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7B,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;UASxC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useQuery } from "@tanstack/react-query";
|
|
3
|
-
import { fetchWithValidation } from "../client.js";
|
|
4
3
|
import { useVoyantPricingContext } from "../provider.js";
|
|
5
|
-
import {
|
|
6
|
-
import { pricingCategorySingleResponse } from "../schemas.js";
|
|
4
|
+
import { getPricingCategoryQueryOptions } from "../query-options.js";
|
|
7
5
|
export function usePricingCategory(id, options = {}) {
|
|
8
6
|
const { baseUrl, fetcher } = useVoyantPricingContext();
|
|
9
7
|
const { enabled = true } = options;
|
|
10
8
|
return useQuery({
|
|
11
|
-
|
|
12
|
-
queryFn: async () => {
|
|
13
|
-
const { data } = await fetchWithValidation(`/v1/pricing/pricing-categories/${id}`, pricingCategorySingleResponse, { baseUrl, fetcher });
|
|
14
|
-
return data;
|
|
15
|
-
},
|
|
9
|
+
...getPricingCategoryQueryOptions({ baseUrl, fetcher }, id ?? "__missing__"),
|
|
16
10
|
enabled: enabled && Boolean(id),
|
|
17
11
|
});
|
|
18
12
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher
|
|
|
2
2
|
export * from "./hooks/index.js";
|
|
3
3
|
export { useVoyantPricingContext, type VoyantPricingContextValue, VoyantPricingProvider, type VoyantPricingProviderProps, } from "./provider.js";
|
|
4
4
|
export { pricingQueryKeys } from "./query-keys.js";
|
|
5
|
+
export { getCancellationPoliciesQueryOptions, getCancellationPolicyQueryOptions, getCancellationPolicyRuleQueryOptions, getCancellationPolicyRulesQueryOptions, getDropoffPriceRuleQueryOptions, getDropoffPriceRulesQueryOptions, getExtraPriceRuleQueryOptions, getExtraPriceRulesQueryOptions, getOptionPriceRuleQueryOptions, getOptionPriceRulesQueryOptions, getOptionStartTimeRuleQueryOptions, getOptionStartTimeRulesQueryOptions, getOptionUnitPriceRuleQueryOptions, getOptionUnitPriceRulesQueryOptions, getOptionUnitTierQueryOptions, getOptionUnitTiersQueryOptions, getPickupPriceRuleQueryOptions, getPickupPriceRulesQueryOptions, getPriceCatalogQueryOptions, getPriceCatalogsQueryOptions, getPriceScheduleQueryOptions, getPriceSchedulesQueryOptions, getPricingCategoriesQueryOptions, getPricingCategoryDependenciesQueryOptions, getPricingCategoryQueryOptions, } from "./query-options.js";
|
|
5
6
|
export * from "./schemas.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EACL,mCAAmC,EACnC,iCAAiC,EACjC,qCAAqC,EACrC,sCAAsC,EACtC,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,mCAAmC,EACnC,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,gCAAgC,EAChC,0CAA0C,EAC1C,8BAA8B,GAC/B,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,4 +2,5 @@ export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.j
|
|
|
2
2
|
export * from "./hooks/index.js";
|
|
3
3
|
export { useVoyantPricingContext, VoyantPricingProvider, } from "./provider.js";
|
|
4
4
|
export { pricingQueryKeys } from "./query-keys.js";
|
|
5
|
+
export { getCancellationPoliciesQueryOptions, getCancellationPolicyQueryOptions, getCancellationPolicyRuleQueryOptions, getCancellationPolicyRulesQueryOptions, getDropoffPriceRuleQueryOptions, getDropoffPriceRulesQueryOptions, getExtraPriceRuleQueryOptions, getExtraPriceRulesQueryOptions, getOptionPriceRuleQueryOptions, getOptionPriceRulesQueryOptions, getOptionStartTimeRuleQueryOptions, getOptionStartTimeRulesQueryOptions, getOptionUnitPriceRuleQueryOptions, getOptionUnitPriceRulesQueryOptions, getOptionUnitTierQueryOptions, getOptionUnitTiersQueryOptions, getPickupPriceRuleQueryOptions, getPickupPriceRulesQueryOptions, getPriceCatalogQueryOptions, getPriceCatalogsQueryOptions, getPriceScheduleQueryOptions, getPriceSchedulesQueryOptions, getPricingCategoriesQueryOptions, getPricingCategoryDependenciesQueryOptions, getPricingCategoryQueryOptions, } from "./query-options.js";
|
|
5
6
|
export * from "./schemas.js";
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type VoyantFetcher } from "./client.js";
|
|
3
|
-
export interface VoyantPricingContextValue {
|
|
4
|
-
baseUrl: string;
|
|
5
|
-
fetcher: VoyantFetcher;
|
|
6
|
-
}
|
|
7
|
-
export interface VoyantPricingProviderProps {
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
fetcher?: VoyantFetcher;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare function VoyantPricingProvider({ baseUrl, fetcher, children }: VoyantPricingProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare function useVoyantPricingContext(): VoyantPricingContextValue;
|
|
1
|
+
export { useVoyantReactContext as useVoyantPricingContext, type VoyantReactContextValue as VoyantPricingContextValue, VoyantReactProvider as VoyantPricingProvider, type VoyantReactProviderProps as VoyantPricingProviderProps, } from "@voyantjs/react";
|
|
14
2
|
//# sourceMappingURL=provider.d.ts.map
|
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,uBAAuB,EAChD,KAAK,uBAAuB,IAAI,yBAAyB,EACzD,mBAAmB,IAAI,qBAAqB,EAC5C,KAAK,wBAAwB,IAAI,0BAA0B,GAC5D,MAAM,iBAAiB,CAAA"}
|
package/dist/provider.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useMemo } from "react";
|
|
4
|
-
import { defaultFetcher } from "./client.js";
|
|
5
|
-
const VoyantPricingContext = createContext(null);
|
|
6
|
-
export function VoyantPricingProvider({ baseUrl, fetcher, children }) {
|
|
7
|
-
const value = useMemo(() => ({ baseUrl, fetcher: fetcher ?? defaultFetcher }), [baseUrl, fetcher]);
|
|
8
|
-
return _jsx(VoyantPricingContext.Provider, { value: value, children: children });
|
|
9
|
-
}
|
|
10
|
-
export function useVoyantPricingContext() {
|
|
11
|
-
const context = useContext(VoyantPricingContext);
|
|
12
|
-
if (!context) {
|
|
13
|
-
throw new Error('useVoyantPricingContext must be used inside <VoyantPricingProvider>. Wrap your app with <VoyantPricingProvider baseUrl="/api" />.');
|
|
14
|
-
}
|
|
15
|
-
return context;
|
|
16
|
-
}
|
|
1
|
+
export { useVoyantReactContext as useVoyantPricingContext, VoyantReactProvider as VoyantPricingProvider, } from "@voyantjs/react";
|
package/dist/query-keys.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface PricingCategoriesListFilters {
|
|
|
4
4
|
unitId?: string | undefined;
|
|
5
5
|
categoryType?: string | undefined;
|
|
6
6
|
active?: boolean | undefined;
|
|
7
|
+
search?: string | undefined;
|
|
7
8
|
limit?: number | undefined;
|
|
8
9
|
offset?: number | undefined;
|
|
9
10
|
}
|
|
@@ -15,6 +16,88 @@ export interface PricingCategoryDependenciesListFilters {
|
|
|
15
16
|
limit?: number | undefined;
|
|
16
17
|
offset?: number | undefined;
|
|
17
18
|
}
|
|
19
|
+
export interface PriceCatalogsListFilters {
|
|
20
|
+
search?: string | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
offset?: number | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface CancellationPoliciesListFilters {
|
|
25
|
+
search?: string | undefined;
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
offset?: number | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface CancellationPolicyRulesListFilters {
|
|
30
|
+
cancellationPolicyId?: string | undefined;
|
|
31
|
+
active?: boolean | undefined;
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
offset?: number | undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface PriceSchedulesListFilters {
|
|
36
|
+
priceCatalogId?: string | undefined;
|
|
37
|
+
active?: boolean | undefined;
|
|
38
|
+
search?: string | undefined;
|
|
39
|
+
limit?: number | undefined;
|
|
40
|
+
offset?: number | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface OptionPriceRulesListFilters {
|
|
43
|
+
productId?: string | undefined;
|
|
44
|
+
optionId?: string | undefined;
|
|
45
|
+
priceCatalogId?: string | undefined;
|
|
46
|
+
priceScheduleId?: string | undefined;
|
|
47
|
+
cancellationPolicyId?: string | undefined;
|
|
48
|
+
pricingMode?: string | undefined;
|
|
49
|
+
active?: boolean | undefined;
|
|
50
|
+
limit?: number | undefined;
|
|
51
|
+
offset?: number | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface OptionUnitPriceRulesListFilters {
|
|
54
|
+
optionPriceRuleId?: string | undefined;
|
|
55
|
+
optionId?: string | undefined;
|
|
56
|
+
unitId?: string | undefined;
|
|
57
|
+
pricingCategoryId?: string | undefined;
|
|
58
|
+
active?: boolean | undefined;
|
|
59
|
+
limit?: number | undefined;
|
|
60
|
+
offset?: number | undefined;
|
|
61
|
+
}
|
|
62
|
+
export interface OptionUnitTiersListFilters {
|
|
63
|
+
optionUnitPriceRuleId?: string | undefined;
|
|
64
|
+
active?: boolean | undefined;
|
|
65
|
+
limit?: number | undefined;
|
|
66
|
+
offset?: number | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface PickupPriceRulesListFilters {
|
|
69
|
+
optionPriceRuleId?: string | undefined;
|
|
70
|
+
optionId?: string | undefined;
|
|
71
|
+
pickupPointId?: string | undefined;
|
|
72
|
+
active?: boolean | undefined;
|
|
73
|
+
limit?: number | undefined;
|
|
74
|
+
offset?: number | undefined;
|
|
75
|
+
}
|
|
76
|
+
export interface DropoffPriceRulesListFilters {
|
|
77
|
+
optionPriceRuleId?: string | undefined;
|
|
78
|
+
optionId?: string | undefined;
|
|
79
|
+
facilityId?: string | undefined;
|
|
80
|
+
active?: boolean | undefined;
|
|
81
|
+
limit?: number | undefined;
|
|
82
|
+
offset?: number | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface ExtraPriceRulesListFilters {
|
|
85
|
+
optionPriceRuleId?: string | undefined;
|
|
86
|
+
optionId?: string | undefined;
|
|
87
|
+
productExtraId?: string | undefined;
|
|
88
|
+
optionExtraConfigId?: string | undefined;
|
|
89
|
+
active?: boolean | undefined;
|
|
90
|
+
limit?: number | undefined;
|
|
91
|
+
offset?: number | undefined;
|
|
92
|
+
}
|
|
93
|
+
export interface OptionStartTimeRulesListFilters {
|
|
94
|
+
optionPriceRuleId?: string | undefined;
|
|
95
|
+
optionId?: string | undefined;
|
|
96
|
+
startTimeId?: string | undefined;
|
|
97
|
+
active?: boolean | undefined;
|
|
98
|
+
limit?: number | undefined;
|
|
99
|
+
offset?: number | undefined;
|
|
100
|
+
}
|
|
18
101
|
export declare const pricingQueryKeys: {
|
|
19
102
|
readonly all: readonly ["voyant", "pricing"];
|
|
20
103
|
readonly pricingCategories: () => readonly ["voyant", "pricing", "pricing-categories"];
|
|
@@ -23,5 +106,38 @@ export declare const pricingQueryKeys: {
|
|
|
23
106
|
readonly pricingCategoryDependencies: () => readonly ["voyant", "pricing", "pricing-category-dependencies"];
|
|
24
107
|
readonly pricingCategoryDependenciesList: (filters: PricingCategoryDependenciesListFilters) => readonly ["voyant", "pricing", "pricing-category-dependencies", "list", PricingCategoryDependenciesListFilters];
|
|
25
108
|
readonly pricingCategoryDependency: (id: string) => readonly ["voyant", "pricing", "pricing-category-dependencies", "detail", string];
|
|
109
|
+
readonly priceCatalogs: () => readonly ["voyant", "pricing", "price-catalogs"];
|
|
110
|
+
readonly priceCatalogsList: (filters: PriceCatalogsListFilters) => readonly ["voyant", "pricing", "price-catalogs", "list", PriceCatalogsListFilters];
|
|
111
|
+
readonly priceCatalog: (id: string) => readonly ["voyant", "pricing", "price-catalogs", "detail", string];
|
|
112
|
+
readonly priceSchedules: () => readonly ["voyant", "pricing", "price-schedules"];
|
|
113
|
+
readonly priceSchedulesList: (filters: PriceSchedulesListFilters) => readonly ["voyant", "pricing", "price-schedules", "list", PriceSchedulesListFilters];
|
|
114
|
+
readonly priceSchedule: (id: string) => readonly ["voyant", "pricing", "price-schedules", "detail", string];
|
|
115
|
+
readonly optionPriceRules: () => readonly ["voyant", "pricing", "option-price-rules"];
|
|
116
|
+
readonly optionPriceRulesList: (filters: OptionPriceRulesListFilters) => readonly ["voyant", "pricing", "option-price-rules", "list", OptionPriceRulesListFilters];
|
|
117
|
+
readonly optionPriceRule: (id: string) => readonly ["voyant", "pricing", "option-price-rules", "detail", string];
|
|
118
|
+
readonly optionUnitPriceRules: () => readonly ["voyant", "pricing", "option-unit-price-rules"];
|
|
119
|
+
readonly optionUnitPriceRulesList: (filters: OptionUnitPriceRulesListFilters) => readonly ["voyant", "pricing", "option-unit-price-rules", "list", OptionUnitPriceRulesListFilters];
|
|
120
|
+
readonly optionUnitPriceRule: (id: string) => readonly ["voyant", "pricing", "option-unit-price-rules", "detail", string];
|
|
121
|
+
readonly optionUnitTiers: () => readonly ["voyant", "pricing", "option-unit-tiers"];
|
|
122
|
+
readonly optionUnitTiersList: (filters: OptionUnitTiersListFilters) => readonly ["voyant", "pricing", "option-unit-tiers", "list", OptionUnitTiersListFilters];
|
|
123
|
+
readonly optionUnitTier: (id: string) => readonly ["voyant", "pricing", "option-unit-tiers", "detail", string];
|
|
124
|
+
readonly pickupPriceRules: () => readonly ["voyant", "pricing", "pickup-price-rules"];
|
|
125
|
+
readonly pickupPriceRulesList: (filters: PickupPriceRulesListFilters) => readonly ["voyant", "pricing", "pickup-price-rules", "list", PickupPriceRulesListFilters];
|
|
126
|
+
readonly pickupPriceRule: (id: string) => readonly ["voyant", "pricing", "pickup-price-rules", "detail", string];
|
|
127
|
+
readonly dropoffPriceRules: () => readonly ["voyant", "pricing", "dropoff-price-rules"];
|
|
128
|
+
readonly dropoffPriceRulesList: (filters: DropoffPriceRulesListFilters) => readonly ["voyant", "pricing", "dropoff-price-rules", "list", DropoffPriceRulesListFilters];
|
|
129
|
+
readonly dropoffPriceRule: (id: string) => readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string];
|
|
130
|
+
readonly extraPriceRules: () => readonly ["voyant", "pricing", "extra-price-rules"];
|
|
131
|
+
readonly extraPriceRulesList: (filters: ExtraPriceRulesListFilters) => readonly ["voyant", "pricing", "extra-price-rules", "list", ExtraPriceRulesListFilters];
|
|
132
|
+
readonly extraPriceRule: (id: string) => readonly ["voyant", "pricing", "extra-price-rules", "detail", string];
|
|
133
|
+
readonly optionStartTimeRules: () => readonly ["voyant", "pricing", "option-start-time-rules"];
|
|
134
|
+
readonly optionStartTimeRulesList: (filters: OptionStartTimeRulesListFilters) => readonly ["voyant", "pricing", "option-start-time-rules", "list", OptionStartTimeRulesListFilters];
|
|
135
|
+
readonly optionStartTimeRule: (id: string) => readonly ["voyant", "pricing", "option-start-time-rules", "detail", string];
|
|
136
|
+
readonly cancellationPolicies: () => readonly ["voyant", "pricing", "cancellation-policies"];
|
|
137
|
+
readonly cancellationPoliciesList: (filters: CancellationPoliciesListFilters) => readonly ["voyant", "pricing", "cancellation-policies", "list", CancellationPoliciesListFilters];
|
|
138
|
+
readonly cancellationPolicy: (id: string) => readonly ["voyant", "pricing", "cancellation-policies", "detail", string];
|
|
139
|
+
readonly cancellationPolicyRules: () => readonly ["voyant", "pricing", "cancellation-policy-rules"];
|
|
140
|
+
readonly cancellationPolicyRulesList: (filters: CancellationPolicyRulesListFilters) => readonly ["voyant", "pricing", "cancellation-policy-rules", "list", CancellationPolicyRulesListFilters];
|
|
141
|
+
readonly cancellationPolicyRule: (id: string) => readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string];
|
|
26
142
|
};
|
|
27
143
|
//# sourceMappingURL=query-keys.d.ts.map
|
package/dist/query-keys.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,sC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;iDAII,+BAA+B;sCAE1C,MAAM;;oDAIQ,kCAAkC;0CAE5C,MAAM;CAE3B,CAAA"}
|
package/dist/query-keys.js
CHANGED
|
@@ -6,4 +6,37 @@ export const pricingQueryKeys = {
|
|
|
6
6
|
pricingCategoryDependencies: () => [...pricingQueryKeys.all, "pricing-category-dependencies"],
|
|
7
7
|
pricingCategoryDependenciesList: (filters) => [...pricingQueryKeys.pricingCategoryDependencies(), "list", filters],
|
|
8
8
|
pricingCategoryDependency: (id) => [...pricingQueryKeys.pricingCategoryDependencies(), "detail", id],
|
|
9
|
+
priceCatalogs: () => [...pricingQueryKeys.all, "price-catalogs"],
|
|
10
|
+
priceCatalogsList: (filters) => [...pricingQueryKeys.priceCatalogs(), "list", filters],
|
|
11
|
+
priceCatalog: (id) => [...pricingQueryKeys.priceCatalogs(), "detail", id],
|
|
12
|
+
priceSchedules: () => [...pricingQueryKeys.all, "price-schedules"],
|
|
13
|
+
priceSchedulesList: (filters) => [...pricingQueryKeys.priceSchedules(), "list", filters],
|
|
14
|
+
priceSchedule: (id) => [...pricingQueryKeys.priceSchedules(), "detail", id],
|
|
15
|
+
optionPriceRules: () => [...pricingQueryKeys.all, "option-price-rules"],
|
|
16
|
+
optionPriceRulesList: (filters) => [...pricingQueryKeys.optionPriceRules(), "list", filters],
|
|
17
|
+
optionPriceRule: (id) => [...pricingQueryKeys.optionPriceRules(), "detail", id],
|
|
18
|
+
optionUnitPriceRules: () => [...pricingQueryKeys.all, "option-unit-price-rules"],
|
|
19
|
+
optionUnitPriceRulesList: (filters) => [...pricingQueryKeys.optionUnitPriceRules(), "list", filters],
|
|
20
|
+
optionUnitPriceRule: (id) => [...pricingQueryKeys.optionUnitPriceRules(), "detail", id],
|
|
21
|
+
optionUnitTiers: () => [...pricingQueryKeys.all, "option-unit-tiers"],
|
|
22
|
+
optionUnitTiersList: (filters) => [...pricingQueryKeys.optionUnitTiers(), "list", filters],
|
|
23
|
+
optionUnitTier: (id) => [...pricingQueryKeys.optionUnitTiers(), "detail", id],
|
|
24
|
+
pickupPriceRules: () => [...pricingQueryKeys.all, "pickup-price-rules"],
|
|
25
|
+
pickupPriceRulesList: (filters) => [...pricingQueryKeys.pickupPriceRules(), "list", filters],
|
|
26
|
+
pickupPriceRule: (id) => [...pricingQueryKeys.pickupPriceRules(), "detail", id],
|
|
27
|
+
dropoffPriceRules: () => [...pricingQueryKeys.all, "dropoff-price-rules"],
|
|
28
|
+
dropoffPriceRulesList: (filters) => [...pricingQueryKeys.dropoffPriceRules(), "list", filters],
|
|
29
|
+
dropoffPriceRule: (id) => [...pricingQueryKeys.dropoffPriceRules(), "detail", id],
|
|
30
|
+
extraPriceRules: () => [...pricingQueryKeys.all, "extra-price-rules"],
|
|
31
|
+
extraPriceRulesList: (filters) => [...pricingQueryKeys.extraPriceRules(), "list", filters],
|
|
32
|
+
extraPriceRule: (id) => [...pricingQueryKeys.extraPriceRules(), "detail", id],
|
|
33
|
+
optionStartTimeRules: () => [...pricingQueryKeys.all, "option-start-time-rules"],
|
|
34
|
+
optionStartTimeRulesList: (filters) => [...pricingQueryKeys.optionStartTimeRules(), "list", filters],
|
|
35
|
+
optionStartTimeRule: (id) => [...pricingQueryKeys.optionStartTimeRules(), "detail", id],
|
|
36
|
+
cancellationPolicies: () => [...pricingQueryKeys.all, "cancellation-policies"],
|
|
37
|
+
cancellationPoliciesList: (filters) => [...pricingQueryKeys.cancellationPolicies(), "list", filters],
|
|
38
|
+
cancellationPolicy: (id) => [...pricingQueryKeys.cancellationPolicies(), "detail", id],
|
|
39
|
+
cancellationPolicyRules: () => [...pricingQueryKeys.all, "cancellation-policy-rules"],
|
|
40
|
+
cancellationPolicyRulesList: (filters) => [...pricingQueryKeys.cancellationPolicyRules(), "list", filters],
|
|
41
|
+
cancellationPolicyRule: (id) => [...pricingQueryKeys.cancellationPolicyRules(), "detail", id],
|
|
9
42
|
};
|