@voyantjs/products-react 0.20.0 → 0.21.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/hooks/use-product-categories.d.ts +10 -0
- package/dist/hooks/use-product-categories.d.ts.map +1 -1
- package/dist/hooks/use-product-category-mutation.d.ts +22 -0
- package/dist/hooks/use-product-category-mutation.d.ts.map +1 -1
- package/dist/hooks/use-product-category.d.ts +10 -0
- package/dist/hooks/use-product-category.d.ts.map +1 -1
- package/dist/hooks/use-product-day-service-mutation.d.ts +3 -0
- package/dist/hooks/use-product-day-service-mutation.d.ts.map +1 -1
- package/dist/hooks/use-product-day-services.d.ts +1 -0
- package/dist/hooks/use-product-day-services.d.ts.map +1 -1
- package/dist/hooks/use-product-mutation.d.ts +25 -0
- package/dist/hooks/use-product-mutation.d.ts.map +1 -1
- package/dist/hooks/use-product.d.ts +11 -0
- package/dist/hooks/use-product.d.ts.map +1 -1
- package/dist/hooks/use-products.d.ts +11 -0
- package/dist/hooks/use-products.d.ts.map +1 -1
- package/dist/query-options.d.ts +132 -0
- package/dist/query-options.d.ts.map +1 -1
- package/dist/schemas.d.ts +120 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +26 -0
- package/package.json +5 -5
|
@@ -13,6 +13,16 @@ export declare function useProductCategories(options?: UseProductCategoriesOptio
|
|
|
13
13
|
active: boolean;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
+
customerPaymentPolicy?: {
|
|
17
|
+
deposit: {
|
|
18
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
19
|
+
percent?: number | undefined;
|
|
20
|
+
amountCents?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
23
|
+
balanceDueDaysBeforeDeparture: number;
|
|
24
|
+
balanceDueMinDaysFromNow: number;
|
|
25
|
+
} | null | undefined;
|
|
16
26
|
metadata?: Record<string, unknown> | null | undefined;
|
|
17
27
|
}[];
|
|
18
28
|
total: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product-categories.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-categories.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,4BAA4B,EAAqB,MAAM,kBAAkB,CAAA;AAGvF,MAAM,WAAW,2BAA4B,SAAQ,4BAA4B;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,2BAAgC
|
|
1
|
+
{"version":3,"file":"use-product-categories.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-categories.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,4BAA4B,EAAqB,MAAM,kBAAkB,CAAA;AAGvF,MAAM,WAAW,2BAA4B,SAAQ,4BAA4B;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,2BAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;UAsB7E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ProductCategoryPaymentPolicy } from "../schemas.js";
|
|
1
2
|
export interface CreateProductCategoryInput {
|
|
2
3
|
name: string;
|
|
3
4
|
slug: string;
|
|
@@ -5,6 +6,7 @@ export interface CreateProductCategoryInput {
|
|
|
5
6
|
description?: string | null;
|
|
6
7
|
sortOrder?: number;
|
|
7
8
|
active?: boolean;
|
|
9
|
+
customerPaymentPolicy?: ProductCategoryPaymentPolicy | null;
|
|
8
10
|
metadata?: Record<string, unknown> | null;
|
|
9
11
|
}
|
|
10
12
|
export type UpdateProductCategoryInput = Partial<CreateProductCategoryInput>;
|
|
@@ -19,6 +21,16 @@ export declare function useProductCategoryMutation(): {
|
|
|
19
21
|
active: boolean;
|
|
20
22
|
createdAt: string;
|
|
21
23
|
updatedAt: string;
|
|
24
|
+
customerPaymentPolicy?: {
|
|
25
|
+
deposit: {
|
|
26
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
27
|
+
percent?: number | undefined;
|
|
28
|
+
amountCents?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
31
|
+
balanceDueDaysBeforeDeparture: number;
|
|
32
|
+
balanceDueMinDaysFromNow: number;
|
|
33
|
+
} | null | undefined;
|
|
22
34
|
metadata?: Record<string, unknown> | null | undefined;
|
|
23
35
|
}, Error, CreateProductCategoryInput, unknown>;
|
|
24
36
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
@@ -31,6 +43,16 @@ export declare function useProductCategoryMutation(): {
|
|
|
31
43
|
active: boolean;
|
|
32
44
|
createdAt: string;
|
|
33
45
|
updatedAt: string;
|
|
46
|
+
customerPaymentPolicy?: {
|
|
47
|
+
deposit: {
|
|
48
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
49
|
+
percent?: number | undefined;
|
|
50
|
+
amountCents?: number | undefined;
|
|
51
|
+
};
|
|
52
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
53
|
+
balanceDueDaysBeforeDeparture: number;
|
|
54
|
+
balanceDueMinDaysFromNow: number;
|
|
55
|
+
} | null | undefined;
|
|
34
56
|
metadata?: Record<string, unknown> | null | undefined;
|
|
35
57
|
}, Error, {
|
|
36
58
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product-category-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-category-mutation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-product-category-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-category-mutation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,4BAA4B,EAAiC,MAAM,eAAe,CAAA;AAEhG,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,qBAAqB,CAAC,EAAE,4BAA4B,GAAG,IAAI,CAAA;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAI5E,wBAAgB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBE,MAAM;eAAS,0BAA0B;;;;;EA8BpF"}
|
|
@@ -11,6 +11,16 @@ export declare function useProductCategory(id: string | null | undefined, option
|
|
|
11
11
|
active: boolean;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
customerPaymentPolicy?: {
|
|
15
|
+
deposit: {
|
|
16
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
17
|
+
percent?: number | undefined;
|
|
18
|
+
amountCents?: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
21
|
+
balanceDueDaysBeforeDeparture: number;
|
|
22
|
+
balanceDueMinDaysFromNow: number;
|
|
23
|
+
} | null | undefined;
|
|
14
24
|
metadata?: Record<string, unknown> | null | undefined;
|
|
15
25
|
}, Error>;
|
|
16
26
|
//# sourceMappingURL=use-product-category.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product-category.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-category.ts"],"names":[],"mappings":"AASA,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
|
|
1
|
+
{"version":3,"file":"use-product-category.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-category.ts"],"names":[],"mappings":"AASA,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;;;;;;;;;;;;;;;;;;;;;UAiBxC"}
|
|
@@ -9,6 +9,7 @@ export declare function useProductDayServiceMutation(): {
|
|
|
9
9
|
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
10
10
|
name: string;
|
|
11
11
|
description: string | null;
|
|
12
|
+
countryCode: string | null;
|
|
12
13
|
costCurrency: string;
|
|
13
14
|
costAmountCents: number;
|
|
14
15
|
quantity: number;
|
|
@@ -22,6 +23,7 @@ export declare function useProductDayServiceMutation(): {
|
|
|
22
23
|
costCurrency: string;
|
|
23
24
|
costAmountCents: number;
|
|
24
25
|
description?: string | null | undefined;
|
|
26
|
+
countryCode?: string | null | undefined;
|
|
25
27
|
supplierServiceId?: string | null | undefined;
|
|
26
28
|
quantity?: number | undefined;
|
|
27
29
|
sortOrder?: number | null | undefined;
|
|
@@ -39,6 +41,7 @@ export declare function useProductDayServiceMutation(): {
|
|
|
39
41
|
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
40
42
|
name: string;
|
|
41
43
|
description: string | null;
|
|
44
|
+
countryCode: string | null;
|
|
42
45
|
costCurrency: string;
|
|
43
46
|
costAmountCents: number;
|
|
44
47
|
quantity: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product-day-service-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-day-service-mutation.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAA;AAEtB,wBAAgB,4BAA4B
|
|
1
|
+
{"version":3,"file":"use-product-day-service-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-day-service-mutation.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAA;AAEtB,wBAAgB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBASO,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;mBAuBvD,MAAM;eACV,MAAM;mBACF,MAAM;eACV,4BAA4B;;;;;mBAuBxB,MAAM;eACV,MAAM;mBACF,MAAM;;EAgBtB"}
|
|
@@ -9,6 +9,7 @@ export declare function useProductDayServices(productId: string | null | undefin
|
|
|
9
9
|
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
10
10
|
name: string;
|
|
11
11
|
description: string | null;
|
|
12
|
+
countryCode: string | null;
|
|
12
13
|
costCurrency: string;
|
|
13
14
|
costAmountCents: number;
|
|
14
15
|
quantity: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product-day-services.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-day-services.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE,4BAAiC
|
|
1
|
+
{"version":3,"file":"use-product-day-services.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-day-services.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE,4BAAiC;;;;;;;;;;;;;;;;UAS3C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ProductPaymentPolicy } from "../schemas.js";
|
|
1
2
|
export interface CreateProductInput {
|
|
2
3
|
name: string;
|
|
3
4
|
status?: "draft" | "active" | "archived";
|
|
@@ -14,9 +15,11 @@ export interface CreateProductInput {
|
|
|
14
15
|
marginPercent?: number | null;
|
|
15
16
|
facilityId?: string | null;
|
|
16
17
|
productTypeId?: string | null;
|
|
18
|
+
taxClassId?: string | null;
|
|
17
19
|
startDate?: string | null;
|
|
18
20
|
endDate?: string | null;
|
|
19
21
|
pax?: number | null;
|
|
22
|
+
customerPaymentPolicy?: ProductPaymentPolicy | null;
|
|
20
23
|
tags?: string[];
|
|
21
24
|
}
|
|
22
25
|
export type UpdateProductInput = Partial<CreateProductInput>;
|
|
@@ -41,9 +44,20 @@ export declare function useProductMutation(): {
|
|
|
41
44
|
endDate: string | null;
|
|
42
45
|
pax: number | null;
|
|
43
46
|
productTypeId: string | null;
|
|
47
|
+
taxClassId: string | null;
|
|
44
48
|
tags: string[];
|
|
45
49
|
createdAt: string;
|
|
46
50
|
updatedAt: string;
|
|
51
|
+
customerPaymentPolicy?: {
|
|
52
|
+
deposit: {
|
|
53
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
54
|
+
percent?: number | undefined;
|
|
55
|
+
amountCents?: number | undefined;
|
|
56
|
+
};
|
|
57
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
58
|
+
balanceDueDaysBeforeDeparture: number;
|
|
59
|
+
balanceDueMinDaysFromNow: number;
|
|
60
|
+
} | null | undefined;
|
|
47
61
|
}, Error, CreateProductInput, unknown>;
|
|
48
62
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
49
63
|
id: string;
|
|
@@ -65,9 +79,20 @@ export declare function useProductMutation(): {
|
|
|
65
79
|
endDate: string | null;
|
|
66
80
|
pax: number | null;
|
|
67
81
|
productTypeId: string | null;
|
|
82
|
+
taxClassId: string | null;
|
|
68
83
|
tags: string[];
|
|
69
84
|
createdAt: string;
|
|
70
85
|
updatedAt: string;
|
|
86
|
+
customerPaymentPolicy?: {
|
|
87
|
+
deposit: {
|
|
88
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
89
|
+
percent?: number | undefined;
|
|
90
|
+
amountCents?: number | undefined;
|
|
91
|
+
};
|
|
92
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
93
|
+
balanceDueDaysBeforeDeparture: number;
|
|
94
|
+
balanceDueMinDaysFromNow: number;
|
|
95
|
+
} | null | undefined;
|
|
71
96
|
}, Error, {
|
|
72
97
|
id: string;
|
|
73
98
|
input: UpdateProductInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-mutation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-product-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product-mutation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,oBAAoB,EAAyB,MAAM,eAAe,CAAA;AAEhF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAA;IACzF,YAAY,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;IACrD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAA;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzC,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,qBAAqB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;IACnD,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAI5D,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuBU,MAAM;eAAS,kBAAkB;;;;;EA+B5E"}
|
|
@@ -21,8 +21,19 @@ export declare function useProduct(id: string | undefined, options?: UseProductO
|
|
|
21
21
|
endDate: string | null;
|
|
22
22
|
pax: number | null;
|
|
23
23
|
productTypeId: string | null;
|
|
24
|
+
taxClassId: string | null;
|
|
24
25
|
tags: string[];
|
|
25
26
|
createdAt: string;
|
|
26
27
|
updatedAt: string;
|
|
28
|
+
customerPaymentPolicy?: {
|
|
29
|
+
deposit: {
|
|
30
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
31
|
+
percent?: number | undefined;
|
|
32
|
+
amountCents?: number | undefined;
|
|
33
|
+
};
|
|
34
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
35
|
+
balanceDueDaysBeforeDeparture: number;
|
|
36
|
+
balanceDueMinDaysFromNow: number;
|
|
37
|
+
} | null | undefined;
|
|
27
38
|
}, Error>;
|
|
28
39
|
//# sourceMappingURL=use-product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,iBAAsB
|
|
1
|
+
{"version":3,"file":"use-product.d.ts","sourceRoot":"","sources":["../../src/hooks/use-product.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,iBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgBjF"}
|
|
@@ -23,9 +23,20 @@ export declare function useProducts(options?: UseProductsOptions): import("@tans
|
|
|
23
23
|
endDate: string | null;
|
|
24
24
|
pax: number | null;
|
|
25
25
|
productTypeId: string | null;
|
|
26
|
+
taxClassId: string | null;
|
|
26
27
|
tags: string[];
|
|
27
28
|
createdAt: string;
|
|
28
29
|
updatedAt: string;
|
|
30
|
+
customerPaymentPolicy?: {
|
|
31
|
+
deposit: {
|
|
32
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
33
|
+
percent?: number | undefined;
|
|
34
|
+
amountCents?: number | undefined;
|
|
35
|
+
};
|
|
36
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
37
|
+
balanceDueDaysBeforeDeparture: number;
|
|
38
|
+
balanceDueMinDaysFromNow: number;
|
|
39
|
+
} | null | undefined;
|
|
29
40
|
}[];
|
|
30
41
|
total: number;
|
|
31
42
|
limit: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-products.d.ts","sourceRoot":"","sources":["../../src/hooks/use-products.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,mBAAmB,EAAqB,MAAM,kBAAkB,CAAA;AAG9E,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAuB
|
|
1
|
+
{"version":3,"file":"use-products.d.ts","sourceRoot":"","sources":["../../src/hooks/use-products.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,mBAAmB,EAAqB,MAAM,kBAAkB,CAAA;AAG9E,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAwB3D"}
|
package/dist/query-options.d.ts
CHANGED
|
@@ -35,9 +35,20 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
|
|
|
35
35
|
endDate: string | null;
|
|
36
36
|
pax: number | null;
|
|
37
37
|
productTypeId: string | null;
|
|
38
|
+
taxClassId: string | null;
|
|
38
39
|
tags: string[];
|
|
39
40
|
createdAt: string;
|
|
40
41
|
updatedAt: string;
|
|
42
|
+
customerPaymentPolicy?: {
|
|
43
|
+
deposit: {
|
|
44
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
45
|
+
percent?: number | undefined;
|
|
46
|
+
amountCents?: number | undefined;
|
|
47
|
+
};
|
|
48
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
49
|
+
balanceDueDaysBeforeDeparture: number;
|
|
50
|
+
balanceDueMinDaysFromNow: number;
|
|
51
|
+
} | null | undefined;
|
|
41
52
|
}[];
|
|
42
53
|
total: number;
|
|
43
54
|
limit: number;
|
|
@@ -63,9 +74,20 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
|
|
|
63
74
|
endDate: string | null;
|
|
64
75
|
pax: number | null;
|
|
65
76
|
productTypeId: string | null;
|
|
77
|
+
taxClassId: string | null;
|
|
66
78
|
tags: string[];
|
|
67
79
|
createdAt: string;
|
|
68
80
|
updatedAt: string;
|
|
81
|
+
customerPaymentPolicy?: {
|
|
82
|
+
deposit: {
|
|
83
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
84
|
+
percent?: number | undefined;
|
|
85
|
+
amountCents?: number | undefined;
|
|
86
|
+
};
|
|
87
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
88
|
+
balanceDueDaysBeforeDeparture: number;
|
|
89
|
+
balanceDueMinDaysFromNow: number;
|
|
90
|
+
} | null | undefined;
|
|
69
91
|
}[];
|
|
70
92
|
total: number;
|
|
71
93
|
limit: number;
|
|
@@ -92,9 +114,20 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
|
|
|
92
114
|
endDate: string | null;
|
|
93
115
|
pax: number | null;
|
|
94
116
|
productTypeId: string | null;
|
|
117
|
+
taxClassId: string | null;
|
|
95
118
|
tags: string[];
|
|
96
119
|
createdAt: string;
|
|
97
120
|
updatedAt: string;
|
|
121
|
+
customerPaymentPolicy?: {
|
|
122
|
+
deposit: {
|
|
123
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
124
|
+
percent?: number | undefined;
|
|
125
|
+
amountCents?: number | undefined;
|
|
126
|
+
};
|
|
127
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
128
|
+
balanceDueDaysBeforeDeparture: number;
|
|
129
|
+
balanceDueMinDaysFromNow: number;
|
|
130
|
+
} | null | undefined;
|
|
98
131
|
}[];
|
|
99
132
|
total: number;
|
|
100
133
|
limit: number;
|
|
@@ -123,9 +156,20 @@ export declare function getProductsQueryOptions(client: FetchWithValidationOptio
|
|
|
123
156
|
endDate: string | null;
|
|
124
157
|
pax: number | null;
|
|
125
158
|
productTypeId: string | null;
|
|
159
|
+
taxClassId: string | null;
|
|
126
160
|
tags: string[];
|
|
127
161
|
createdAt: string;
|
|
128
162
|
updatedAt: string;
|
|
163
|
+
customerPaymentPolicy?: {
|
|
164
|
+
deposit: {
|
|
165
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
166
|
+
percent?: number | undefined;
|
|
167
|
+
amountCents?: number | undefined;
|
|
168
|
+
};
|
|
169
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
170
|
+
balanceDueDaysBeforeDeparture: number;
|
|
171
|
+
balanceDueMinDaysFromNow: number;
|
|
172
|
+
} | null | undefined;
|
|
129
173
|
}[];
|
|
130
174
|
total: number;
|
|
131
175
|
limit: number;
|
|
@@ -154,9 +198,20 @@ export declare function getProductQueryOptions(client: FetchWithValidationOption
|
|
|
154
198
|
endDate: string | null;
|
|
155
199
|
pax: number | null;
|
|
156
200
|
productTypeId: string | null;
|
|
201
|
+
taxClassId: string | null;
|
|
157
202
|
tags: string[];
|
|
158
203
|
createdAt: string;
|
|
159
204
|
updatedAt: string;
|
|
205
|
+
customerPaymentPolicy?: {
|
|
206
|
+
deposit: {
|
|
207
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
208
|
+
percent?: number | undefined;
|
|
209
|
+
amountCents?: number | undefined;
|
|
210
|
+
};
|
|
211
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
212
|
+
balanceDueDaysBeforeDeparture: number;
|
|
213
|
+
balanceDueMinDaysFromNow: number;
|
|
214
|
+
} | null | undefined;
|
|
160
215
|
}, Error, {
|
|
161
216
|
id: string;
|
|
162
217
|
name: string;
|
|
@@ -177,9 +232,20 @@ export declare function getProductQueryOptions(client: FetchWithValidationOption
|
|
|
177
232
|
endDate: string | null;
|
|
178
233
|
pax: number | null;
|
|
179
234
|
productTypeId: string | null;
|
|
235
|
+
taxClassId: string | null;
|
|
180
236
|
tags: string[];
|
|
181
237
|
createdAt: string;
|
|
182
238
|
updatedAt: string;
|
|
239
|
+
customerPaymentPolicy?: {
|
|
240
|
+
deposit: {
|
|
241
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
242
|
+
percent?: number | undefined;
|
|
243
|
+
amountCents?: number | undefined;
|
|
244
|
+
};
|
|
245
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
246
|
+
balanceDueDaysBeforeDeparture: number;
|
|
247
|
+
balanceDueMinDaysFromNow: number;
|
|
248
|
+
} | null | undefined;
|
|
183
249
|
}, readonly ["voyant", "products", "products", "detail", string]>, "queryFn"> & {
|
|
184
250
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
185
251
|
id: string;
|
|
@@ -201,9 +267,20 @@ export declare function getProductQueryOptions(client: FetchWithValidationOption
|
|
|
201
267
|
endDate: string | null;
|
|
202
268
|
pax: number | null;
|
|
203
269
|
productTypeId: string | null;
|
|
270
|
+
taxClassId: string | null;
|
|
204
271
|
tags: string[];
|
|
205
272
|
createdAt: string;
|
|
206
273
|
updatedAt: string;
|
|
274
|
+
customerPaymentPolicy?: {
|
|
275
|
+
deposit: {
|
|
276
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
277
|
+
percent?: number | undefined;
|
|
278
|
+
amountCents?: number | undefined;
|
|
279
|
+
};
|
|
280
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
281
|
+
balanceDueDaysBeforeDeparture: number;
|
|
282
|
+
balanceDueMinDaysFromNow: number;
|
|
283
|
+
} | null | undefined;
|
|
207
284
|
}, readonly ["voyant", "products", "products", "detail", string], never> | undefined;
|
|
208
285
|
} & {
|
|
209
286
|
queryKey: readonly ["voyant", "products", "products", "detail", string] & {
|
|
@@ -227,9 +304,20 @@ export declare function getProductQueryOptions(client: FetchWithValidationOption
|
|
|
227
304
|
endDate: string | null;
|
|
228
305
|
pax: number | null;
|
|
229
306
|
productTypeId: string | null;
|
|
307
|
+
taxClassId: string | null;
|
|
230
308
|
tags: string[];
|
|
231
309
|
createdAt: string;
|
|
232
310
|
updatedAt: string;
|
|
311
|
+
customerPaymentPolicy?: {
|
|
312
|
+
deposit: {
|
|
313
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
314
|
+
percent?: number | undefined;
|
|
315
|
+
amountCents?: number | undefined;
|
|
316
|
+
};
|
|
317
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
318
|
+
balanceDueDaysBeforeDeparture: number;
|
|
319
|
+
balanceDueMinDaysFromNow: number;
|
|
320
|
+
} | null | undefined;
|
|
233
321
|
};
|
|
234
322
|
[dataTagErrorSymbol]: Error;
|
|
235
323
|
};
|
|
@@ -409,6 +497,16 @@ export declare function getProductCategoriesQueryOptions(client: FetchWithValida
|
|
|
409
497
|
active: boolean;
|
|
410
498
|
createdAt: string;
|
|
411
499
|
updatedAt: string;
|
|
500
|
+
customerPaymentPolicy?: {
|
|
501
|
+
deposit: {
|
|
502
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
503
|
+
percent?: number | undefined;
|
|
504
|
+
amountCents?: number | undefined;
|
|
505
|
+
};
|
|
506
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
507
|
+
balanceDueDaysBeforeDeparture: number;
|
|
508
|
+
balanceDueMinDaysFromNow: number;
|
|
509
|
+
} | null | undefined;
|
|
412
510
|
metadata?: Record<string, unknown> | null | undefined;
|
|
413
511
|
}[];
|
|
414
512
|
total: number;
|
|
@@ -425,6 +523,16 @@ export declare function getProductCategoriesQueryOptions(client: FetchWithValida
|
|
|
425
523
|
active: boolean;
|
|
426
524
|
createdAt: string;
|
|
427
525
|
updatedAt: string;
|
|
526
|
+
customerPaymentPolicy?: {
|
|
527
|
+
deposit: {
|
|
528
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
529
|
+
percent?: number | undefined;
|
|
530
|
+
amountCents?: number | undefined;
|
|
531
|
+
};
|
|
532
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
533
|
+
balanceDueDaysBeforeDeparture: number;
|
|
534
|
+
balanceDueMinDaysFromNow: number;
|
|
535
|
+
} | null | undefined;
|
|
428
536
|
metadata?: Record<string, unknown> | null | undefined;
|
|
429
537
|
}[];
|
|
430
538
|
total: number;
|
|
@@ -442,6 +550,16 @@ export declare function getProductCategoriesQueryOptions(client: FetchWithValida
|
|
|
442
550
|
active: boolean;
|
|
443
551
|
createdAt: string;
|
|
444
552
|
updatedAt: string;
|
|
553
|
+
customerPaymentPolicy?: {
|
|
554
|
+
deposit: {
|
|
555
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
556
|
+
percent?: number | undefined;
|
|
557
|
+
amountCents?: number | undefined;
|
|
558
|
+
};
|
|
559
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
560
|
+
balanceDueDaysBeforeDeparture: number;
|
|
561
|
+
balanceDueMinDaysFromNow: number;
|
|
562
|
+
} | null | undefined;
|
|
445
563
|
metadata?: Record<string, unknown> | null | undefined;
|
|
446
564
|
}[];
|
|
447
565
|
total: number;
|
|
@@ -461,6 +579,16 @@ export declare function getProductCategoriesQueryOptions(client: FetchWithValida
|
|
|
461
579
|
active: boolean;
|
|
462
580
|
createdAt: string;
|
|
463
581
|
updatedAt: string;
|
|
582
|
+
customerPaymentPolicy?: {
|
|
583
|
+
deposit: {
|
|
584
|
+
kind: "none" | "percent" | "fixed_cents";
|
|
585
|
+
percent?: number | undefined;
|
|
586
|
+
amountCents?: number | undefined;
|
|
587
|
+
};
|
|
588
|
+
minDaysBeforeDepartureForDeposit: number;
|
|
589
|
+
balanceDueDaysBeforeDeparture: number;
|
|
590
|
+
balanceDueMinDaysFromNow: number;
|
|
591
|
+
} | null | undefined;
|
|
464
592
|
metadata?: Record<string, unknown> | null | undefined;
|
|
465
593
|
}[];
|
|
466
594
|
total: number;
|
|
@@ -934,6 +1062,7 @@ export declare function getProductDayServicesQueryOptions(client: FetchWithValid
|
|
|
934
1062
|
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
935
1063
|
name: string;
|
|
936
1064
|
description: string | null;
|
|
1065
|
+
countryCode: string | null;
|
|
937
1066
|
costCurrency: string;
|
|
938
1067
|
costAmountCents: number;
|
|
939
1068
|
quantity: number;
|
|
@@ -949,6 +1078,7 @@ export declare function getProductDayServicesQueryOptions(client: FetchWithValid
|
|
|
949
1078
|
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
950
1079
|
name: string;
|
|
951
1080
|
description: string | null;
|
|
1081
|
+
countryCode: string | null;
|
|
952
1082
|
costCurrency: string;
|
|
953
1083
|
costAmountCents: number;
|
|
954
1084
|
quantity: number;
|
|
@@ -965,6 +1095,7 @@ export declare function getProductDayServicesQueryOptions(client: FetchWithValid
|
|
|
965
1095
|
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
966
1096
|
name: string;
|
|
967
1097
|
description: string | null;
|
|
1098
|
+
countryCode: string | null;
|
|
968
1099
|
costCurrency: string;
|
|
969
1100
|
costAmountCents: number;
|
|
970
1101
|
quantity: number;
|
|
@@ -983,6 +1114,7 @@ export declare function getProductDayServicesQueryOptions(client: FetchWithValid
|
|
|
983
1114
|
serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
|
|
984
1115
|
name: string;
|
|
985
1116
|
description: string | null;
|
|
1117
|
+
countryCode: string | null;
|
|
986
1118
|
costCurrency: string;
|
|
987
1119
|
costAmountCents: number;
|
|
988
1120
|
quantity: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAA;AACpF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,KAAK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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BrC"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -15,6 +15,21 @@ export declare const arrayEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodOb
|
|
|
15
15
|
export declare const successEnvelope: z.ZodObject<{
|
|
16
16
|
success: z.ZodBoolean;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
+
export declare const productPaymentPolicySchema: z.ZodObject<{
|
|
19
|
+
deposit: z.ZodObject<{
|
|
20
|
+
kind: z.ZodEnum<{
|
|
21
|
+
none: "none";
|
|
22
|
+
percent: "percent";
|
|
23
|
+
fixed_cents: "fixed_cents";
|
|
24
|
+
}>;
|
|
25
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
29
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
30
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type ProductPaymentPolicy = z.infer<typeof productPaymentPolicySchema>;
|
|
18
33
|
export declare const productRecordSchema: z.ZodObject<{
|
|
19
34
|
id: z.ZodString;
|
|
20
35
|
name: z.ZodString;
|
|
@@ -55,6 +70,21 @@ export declare const productRecordSchema: z.ZodObject<{
|
|
|
55
70
|
endDate: z.ZodNullable<z.ZodString>;
|
|
56
71
|
pax: z.ZodNullable<z.ZodNumber>;
|
|
57
72
|
productTypeId: z.ZodNullable<z.ZodString>;
|
|
73
|
+
taxClassId: z.ZodNullable<z.ZodString>;
|
|
74
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
75
|
+
deposit: z.ZodObject<{
|
|
76
|
+
kind: z.ZodEnum<{
|
|
77
|
+
none: "none";
|
|
78
|
+
percent: "percent";
|
|
79
|
+
fixed_cents: "fixed_cents";
|
|
80
|
+
}>;
|
|
81
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
85
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
86
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>>>;
|
|
58
88
|
tags: z.ZodArray<z.ZodString>;
|
|
59
89
|
createdAt: z.ZodString;
|
|
60
90
|
updatedAt: z.ZodString;
|
|
@@ -72,6 +102,21 @@ export declare const productTypeRecordSchema: z.ZodObject<{
|
|
|
72
102
|
updatedAt: z.ZodString;
|
|
73
103
|
}, z.core.$strip>;
|
|
74
104
|
export type ProductTypeRecord = z.infer<typeof productTypeRecordSchema>;
|
|
105
|
+
export declare const productCategoryPaymentPolicySchema: z.ZodObject<{
|
|
106
|
+
deposit: z.ZodObject<{
|
|
107
|
+
kind: z.ZodEnum<{
|
|
108
|
+
none: "none";
|
|
109
|
+
percent: "percent";
|
|
110
|
+
fixed_cents: "fixed_cents";
|
|
111
|
+
}>;
|
|
112
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
116
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
117
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type ProductCategoryPaymentPolicy = z.infer<typeof productCategoryPaymentPolicySchema>;
|
|
75
120
|
export declare const productCategoryRecordSchema: z.ZodObject<{
|
|
76
121
|
id: z.ZodString;
|
|
77
122
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -80,6 +125,20 @@ export declare const productCategoryRecordSchema: z.ZodObject<{
|
|
|
80
125
|
description: z.ZodNullable<z.ZodString>;
|
|
81
126
|
sortOrder: z.ZodNumber;
|
|
82
127
|
active: z.ZodBoolean;
|
|
128
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
129
|
+
deposit: z.ZodObject<{
|
|
130
|
+
kind: z.ZodEnum<{
|
|
131
|
+
none: "none";
|
|
132
|
+
percent: "percent";
|
|
133
|
+
fixed_cents: "fixed_cents";
|
|
134
|
+
}>;
|
|
135
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
139
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
140
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
141
|
+
}, z.core.$strip>>>;
|
|
83
142
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
84
143
|
createdAt: z.ZodString;
|
|
85
144
|
updatedAt: z.ZodString;
|
|
@@ -171,6 +230,7 @@ export declare const productDayServiceRecordSchema: z.ZodObject<{
|
|
|
171
230
|
}>;
|
|
172
231
|
name: z.ZodString;
|
|
173
232
|
description: z.ZodNullable<z.ZodString>;
|
|
233
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
174
234
|
costCurrency: z.ZodString;
|
|
175
235
|
costAmountCents: z.ZodNumber;
|
|
176
236
|
quantity: z.ZodNumber;
|
|
@@ -251,6 +311,21 @@ export declare const productListResponse: z.ZodObject<{
|
|
|
251
311
|
endDate: z.ZodNullable<z.ZodString>;
|
|
252
312
|
pax: z.ZodNullable<z.ZodNumber>;
|
|
253
313
|
productTypeId: z.ZodNullable<z.ZodString>;
|
|
314
|
+
taxClassId: z.ZodNullable<z.ZodString>;
|
|
315
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
316
|
+
deposit: z.ZodObject<{
|
|
317
|
+
kind: z.ZodEnum<{
|
|
318
|
+
none: "none";
|
|
319
|
+
percent: "percent";
|
|
320
|
+
fixed_cents: "fixed_cents";
|
|
321
|
+
}>;
|
|
322
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
326
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
327
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
328
|
+
}, z.core.$strip>>>;
|
|
254
329
|
tags: z.ZodArray<z.ZodString>;
|
|
255
330
|
createdAt: z.ZodString;
|
|
256
331
|
updatedAt: z.ZodString;
|
|
@@ -300,6 +375,21 @@ export declare const productSingleResponse: z.ZodObject<{
|
|
|
300
375
|
endDate: z.ZodNullable<z.ZodString>;
|
|
301
376
|
pax: z.ZodNullable<z.ZodNumber>;
|
|
302
377
|
productTypeId: z.ZodNullable<z.ZodString>;
|
|
378
|
+
taxClassId: z.ZodNullable<z.ZodString>;
|
|
379
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
380
|
+
deposit: z.ZodObject<{
|
|
381
|
+
kind: z.ZodEnum<{
|
|
382
|
+
none: "none";
|
|
383
|
+
percent: "percent";
|
|
384
|
+
fixed_cents: "fixed_cents";
|
|
385
|
+
}>;
|
|
386
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
390
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
391
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
392
|
+
}, z.core.$strip>>>;
|
|
303
393
|
tags: z.ZodArray<z.ZodString>;
|
|
304
394
|
createdAt: z.ZodString;
|
|
305
395
|
updatedAt: z.ZodString;
|
|
@@ -343,6 +433,20 @@ export declare const productCategoryListResponse: z.ZodObject<{
|
|
|
343
433
|
description: z.ZodNullable<z.ZodString>;
|
|
344
434
|
sortOrder: z.ZodNumber;
|
|
345
435
|
active: z.ZodBoolean;
|
|
436
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
437
|
+
deposit: z.ZodObject<{
|
|
438
|
+
kind: z.ZodEnum<{
|
|
439
|
+
none: "none";
|
|
440
|
+
percent: "percent";
|
|
441
|
+
fixed_cents: "fixed_cents";
|
|
442
|
+
}>;
|
|
443
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
444
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
447
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
448
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
449
|
+
}, z.core.$strip>>>;
|
|
346
450
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
347
451
|
createdAt: z.ZodString;
|
|
348
452
|
updatedAt: z.ZodString;
|
|
@@ -360,6 +464,20 @@ export declare const productCategorySingleResponse: z.ZodObject<{
|
|
|
360
464
|
description: z.ZodNullable<z.ZodString>;
|
|
361
465
|
sortOrder: z.ZodNumber;
|
|
362
466
|
active: z.ZodBoolean;
|
|
467
|
+
customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
468
|
+
deposit: z.ZodObject<{
|
|
469
|
+
kind: z.ZodEnum<{
|
|
470
|
+
none: "none";
|
|
471
|
+
percent: "percent";
|
|
472
|
+
fixed_cents: "fixed_cents";
|
|
473
|
+
}>;
|
|
474
|
+
percent: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
amountCents: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
minDaysBeforeDepartureForDeposit: z.ZodNumber;
|
|
478
|
+
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
479
|
+
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
480
|
+
}, z.core.$strip>>>;
|
|
363
481
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
364
482
|
createdAt: z.ZodString;
|
|
365
483
|
updatedAt: z.ZodString;
|
|
@@ -543,6 +661,7 @@ export declare const productDayServicesResponse: z.ZodObject<{
|
|
|
543
661
|
}>;
|
|
544
662
|
name: z.ZodString;
|
|
545
663
|
description: z.ZodNullable<z.ZodString>;
|
|
664
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
546
665
|
costCurrency: z.ZodString;
|
|
547
666
|
costAmountCents: z.ZodNumber;
|
|
548
667
|
quantity: z.ZodNumber;
|
|
@@ -566,6 +685,7 @@ export declare const productDayServiceResponse: z.ZodObject<{
|
|
|
566
685
|
}>;
|
|
567
686
|
name: z.ZodString;
|
|
568
687
|
description: z.ZodNullable<z.ZodString>;
|
|
688
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
569
689
|
costCurrency: z.ZodString;
|
|
570
690
|
costAmountCents: z.ZodNumber;
|
|
571
691
|
quantity: z.ZodNumber;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EAC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C,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACnE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACjF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC3E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAC9E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -9,6 +9,17 @@ export const paginatedEnvelope = (item) => z.object({
|
|
|
9
9
|
export const singleEnvelope = (item) => z.object({ data: item });
|
|
10
10
|
export const arrayEnvelope = (item) => z.object({ data: z.array(item) });
|
|
11
11
|
export const successEnvelope = z.object({ success: z.boolean() });
|
|
12
|
+
const productListingDepositRuleSchema = z.object({
|
|
13
|
+
kind: z.enum(["none", "percent", "fixed_cents"]),
|
|
14
|
+
percent: z.number().min(0).max(100).optional(),
|
|
15
|
+
amountCents: z.number().int().min(0).optional(),
|
|
16
|
+
});
|
|
17
|
+
export const productPaymentPolicySchema = z.object({
|
|
18
|
+
deposit: productListingDepositRuleSchema,
|
|
19
|
+
minDaysBeforeDepartureForDeposit: z.number().int().min(0),
|
|
20
|
+
balanceDueDaysBeforeDeparture: z.number().int().min(0),
|
|
21
|
+
balanceDueMinDaysFromNow: z.number().int().min(0),
|
|
22
|
+
});
|
|
12
23
|
export const productRecordSchema = z.object({
|
|
13
24
|
id: z.string(),
|
|
14
25
|
name: z.string(),
|
|
@@ -29,6 +40,8 @@ export const productRecordSchema = z.object({
|
|
|
29
40
|
endDate: z.string().nullable(),
|
|
30
41
|
pax: z.number().int().nullable(),
|
|
31
42
|
productTypeId: z.string().nullable(),
|
|
43
|
+
taxClassId: z.string().nullable(),
|
|
44
|
+
customerPaymentPolicy: productPaymentPolicySchema.nullable().optional(),
|
|
32
45
|
tags: z.array(z.string()),
|
|
33
46
|
createdAt: z.string(),
|
|
34
47
|
updatedAt: z.string(),
|
|
@@ -44,6 +57,17 @@ export const productTypeRecordSchema = z.object({
|
|
|
44
57
|
createdAt: z.string(),
|
|
45
58
|
updatedAt: z.string(),
|
|
46
59
|
});
|
|
60
|
+
const productCategoryDepositRuleSchema = z.object({
|
|
61
|
+
kind: z.enum(["none", "percent", "fixed_cents"]),
|
|
62
|
+
percent: z.number().min(0).max(100).optional(),
|
|
63
|
+
amountCents: z.number().int().min(0).optional(),
|
|
64
|
+
});
|
|
65
|
+
export const productCategoryPaymentPolicySchema = z.object({
|
|
66
|
+
deposit: productCategoryDepositRuleSchema,
|
|
67
|
+
minDaysBeforeDepartureForDeposit: z.number().int().min(0),
|
|
68
|
+
balanceDueDaysBeforeDeparture: z.number().int().min(0),
|
|
69
|
+
balanceDueMinDaysFromNow: z.number().int().min(0),
|
|
70
|
+
});
|
|
47
71
|
export const productCategoryRecordSchema = z.object({
|
|
48
72
|
id: z.string(),
|
|
49
73
|
parentId: z.string().nullable(),
|
|
@@ -52,6 +76,7 @@ export const productCategoryRecordSchema = z.object({
|
|
|
52
76
|
description: z.string().nullable(),
|
|
53
77
|
sortOrder: z.number().int(),
|
|
54
78
|
active: z.boolean(),
|
|
79
|
+
customerPaymentPolicy: productCategoryPaymentPolicySchema.nullable().optional(),
|
|
55
80
|
metadata: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
56
81
|
createdAt: z.string(),
|
|
57
82
|
updatedAt: z.string(),
|
|
@@ -119,6 +144,7 @@ export const productDayServiceRecordSchema = z.object({
|
|
|
119
144
|
serviceType: z.enum(["accommodation", "transfer", "experience", "guide", "meal", "other"]),
|
|
120
145
|
name: z.string(),
|
|
121
146
|
description: z.string().nullable(),
|
|
147
|
+
countryCode: z.string().nullable(),
|
|
122
148
|
costCurrency: z.string(),
|
|
123
149
|
costAmountCents: z.number().int(),
|
|
124
150
|
quantity: z.number().int(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/products-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^19.0.0",
|
|
42
42
|
"react-dom": "^19.0.0",
|
|
43
43
|
"zod": "^4.0.0",
|
|
44
|
-
"@voyantjs/products": "0.
|
|
44
|
+
"@voyantjs/products": "0.21.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"typescript": "^6.0.2",
|
|
53
53
|
"vitest": "^4.1.2",
|
|
54
54
|
"zod": "^4.3.6",
|
|
55
|
-
"@voyantjs/products": "0.
|
|
56
|
-
"@voyantjs/react": "0.
|
|
55
|
+
"@voyantjs/products": "0.21.0",
|
|
56
|
+
"@voyantjs/react": "0.21.0",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.
|
|
60
|
+
"@voyantjs/react": "0.21.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|