@voyant-travel/inventory-react 0.18.2 → 0.19.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/dist/admin/pages/product-detail-page.d.ts +1 -1
- package/dist/admin/pages/product-detail-page.js +1 -1
- package/dist/components/product-detail/commerce-client.d.ts.map +1 -1
- package/dist/components/product-detail/commerce-client.js +21 -24
- package/dist/components/product-detail/product-departure-form.js +2 -2
- package/dist/components/product-detail/product-detail-form.d.ts.map +1 -1
- package/dist/components/product-detail/product-detail-form.js +3 -3
- package/dist/components/product-detail/product-detail-itinerary-section.d.ts.map +1 -1
- package/dist/components/product-detail/product-detail-itinerary-section.js +2 -2
- package/dist/components/product-detail/product-detail-shared.d.ts.map +1 -1
- package/dist/components/product-detail/product-detail-shared.js +8 -8
- package/dist/components/product-detail/product-detail-summary-section.js +2 -2
- package/dist/components/product-detail/product-media-gallery.js +1 -1
- package/dist/components/product-detail/product-options-shared.d.ts +4 -4
- package/dist/components/product-detail/product-schedule-form.js +2 -2
- package/dist/components/product-detail/product-service-form.d.ts.map +1 -1
- package/dist/components/product-detail/product-service-form.js +4 -4
- package/dist/components/product-detail/use-product-detail-data.d.ts.map +1 -1
- package/dist/components/product-detail/use-product-detail-data.js +9 -9
- package/dist/components/product-facility-combobox.d.ts.map +1 -1
- package/dist/components/product-facility-combobox.js +2 -2
- package/dist/components/product-tax-class-combobox.js +2 -2
- package/dist/extras/hooks/use-product-extra-mutation.d.ts +6 -6
- package/dist/extras/hooks/use-product-extra-mutation.js +3 -3
- package/dist/extras/hooks/use-product-extra.d.ts +2 -2
- package/dist/extras/hooks/use-product-extras.d.ts +2 -2
- package/dist/extras/query-options.d.ts +28 -28
- package/dist/extras/query-options.js +3 -3
- package/dist/extras/schemas.d.ts +13 -13
- package/dist/hooks/use-day-service-translation-mutation.js +3 -3
- package/dist/hooks/use-day-service-translations.js +1 -1
- package/dist/hooks/use-duplicate-product-option-mutation.d.ts.map +1 -1
- package/dist/hooks/use-duplicate-product-option-mutation.js +2 -2
- package/dist/hooks/use-option-unit-mutation.d.ts +2 -2
- package/dist/hooks/use-option-unit-mutation.js +3 -3
- package/dist/hooks/use-option-unit.d.ts +1 -1
- package/dist/hooks/use-option-units.d.ts +1 -1
- package/dist/hooks/use-product-action-ledger.d.ts +1 -1
- package/dist/hooks/use-product-categories.js +1 -1
- package/dist/hooks/use-product-category-mutation.js +3 -3
- package/dist/hooks/use-product-category.js +1 -1
- package/dist/hooks/use-product-day-mutation.js +4 -4
- package/dist/hooks/use-product-day-service-mutation.d.ts +3 -3
- package/dist/hooks/use-product-day-service-mutation.js +3 -3
- package/dist/hooks/use-product-day-services.d.ts +1 -1
- package/dist/hooks/use-product-day-translation-mutation.js +3 -3
- package/dist/hooks/use-product-day-translations.js +1 -1
- package/dist/hooks/use-product-itinerary-mutation.js +4 -4
- package/dist/hooks/use-product-itinerary-translation-mutation.js +3 -3
- package/dist/hooks/use-product-itinerary-translations.js +1 -1
- package/dist/hooks/use-product-media-mutation.js +6 -6
- package/dist/hooks/use-product-mutation.d.ts +2 -2
- package/dist/hooks/use-product-mutation.js +3 -3
- package/dist/hooks/use-product-option-mutation.js +3 -3
- package/dist/hooks/use-product-tag-mutation.js +3 -3
- package/dist/hooks/use-product-tag.js +1 -1
- package/dist/hooks/use-product-tags.js +1 -1
- package/dist/hooks/use-product-translation-mutation.js +3 -3
- package/dist/hooks/use-product-translations.js +1 -1
- package/dist/hooks/use-product-type-mutation.js +3 -3
- package/dist/hooks/use-product-version-mutation.js +1 -1
- package/dist/hooks/use-product.d.ts +1 -1
- package/dist/hooks/use-product.d.ts.map +1 -1
- package/dist/hooks/use-product.js +1 -1
- package/dist/hooks/use-products.d.ts +1 -1
- package/dist/hooks/use-products.js +1 -1
- package/dist/operations.d.ts +1 -1
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +1 -1
- package/dist/query-options-action-ledger.d.ts +4 -4
- package/dist/query-options.d.ts +20 -20
- package/dist/query-options.d.ts.map +1 -1
- package/dist/query-options.js +17 -17
- package/dist/schemas.d.ts +15 -15
- package/package.json +12 -12
|
@@ -6,7 +6,7 @@ export declare function useProductDayServiceMutation(): {
|
|
|
6
6
|
id: string;
|
|
7
7
|
dayId: string;
|
|
8
8
|
supplierServiceId: string | null;
|
|
9
|
-
serviceType: "
|
|
9
|
+
serviceType: "transfer" | "other" | "accommodation" | "experience" | "guide" | "meal";
|
|
10
10
|
name: string;
|
|
11
11
|
description: string | null;
|
|
12
12
|
countryCode: string | null;
|
|
@@ -18,7 +18,7 @@ export declare function useProductDayServiceMutation(): {
|
|
|
18
18
|
createdAt: string;
|
|
19
19
|
};
|
|
20
20
|
}, Error, {
|
|
21
|
-
serviceType: "
|
|
21
|
+
serviceType: "transfer" | "other" | "accommodation" | "experience" | "guide" | "meal";
|
|
22
22
|
name: string;
|
|
23
23
|
costCurrency: string;
|
|
24
24
|
costAmountCents: number;
|
|
@@ -38,7 +38,7 @@ export declare function useProductDayServiceMutation(): {
|
|
|
38
38
|
id: string;
|
|
39
39
|
dayId: string;
|
|
40
40
|
supplierServiceId: string | null;
|
|
41
|
-
serviceType: "
|
|
41
|
+
serviceType: "transfer" | "other" | "accommodation" | "experience" | "guide" | "meal";
|
|
42
42
|
name: string;
|
|
43
43
|
description: string | null;
|
|
44
44
|
countryCode: string | null;
|
|
@@ -9,7 +9,7 @@ export function useProductDayServiceMutation() {
|
|
|
9
9
|
const queryClient = useQueryClient();
|
|
10
10
|
const create = useMutation({
|
|
11
11
|
mutationFn: async ({ productId, dayId, ...input }) => {
|
|
12
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/days/${dayId}/services`, productDayServiceResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
12
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/days/${dayId}/services`, productDayServiceResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
13
13
|
return { dayId, data };
|
|
14
14
|
},
|
|
15
15
|
onSuccess: async ({ dayId }, variables) => {
|
|
@@ -20,7 +20,7 @@ export function useProductDayServiceMutation() {
|
|
|
20
20
|
});
|
|
21
21
|
const update = useMutation({
|
|
22
22
|
mutationFn: async ({ productId, dayId, serviceId, input, }) => {
|
|
23
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/days/${dayId}/services/${serviceId}`, productDayServiceResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
23
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/days/${dayId}/services/${serviceId}`, productDayServiceResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
24
24
|
return { dayId, data };
|
|
25
25
|
},
|
|
26
26
|
onSuccess: async ({ dayId }, variables) => {
|
|
@@ -30,7 +30,7 @@ export function useProductDayServiceMutation() {
|
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
const remove = useMutation({
|
|
33
|
-
mutationFn: async ({ productId, dayId, serviceId, }) => fetchWithValidation(`/v1/products/${productId}/days/${dayId}/services/${serviceId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
33
|
+
mutationFn: async ({ productId, dayId, serviceId, }) => fetchWithValidation(`/v1/admin/products/${productId}/days/${dayId}/services/${serviceId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
34
34
|
onSuccess: async (_data, variables) => {
|
|
35
35
|
await queryClient.invalidateQueries({
|
|
36
36
|
queryKey: productsQueryKeys.productDayServices(variables.productId, variables.dayId),
|
|
@@ -6,7 +6,7 @@ export declare function useProductDayServices(productId: string | null | undefin
|
|
|
6
6
|
id: string;
|
|
7
7
|
dayId: string;
|
|
8
8
|
supplierServiceId: string | null;
|
|
9
|
-
serviceType: "
|
|
9
|
+
serviceType: "transfer" | "other" | "accommodation" | "experience" | "guide" | "meal";
|
|
10
10
|
name: string;
|
|
11
11
|
description: string | null;
|
|
12
12
|
countryCode: string | null;
|
|
@@ -15,21 +15,21 @@ export function useProductDayTranslationMutation() {
|
|
|
15
15
|
};
|
|
16
16
|
const create = useMutation({
|
|
17
17
|
mutationFn: async ({ productId, dayId, input, }) => {
|
|
18
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/days/${dayId}/translations`, productDayTranslationSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
18
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/days/${dayId}/translations`, productDayTranslationSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
19
19
|
return { productId, dayId, translation: data };
|
|
20
20
|
},
|
|
21
21
|
onSuccess: ({ productId, dayId }) => invalidate(productId, dayId),
|
|
22
22
|
});
|
|
23
23
|
const update = useMutation({
|
|
24
24
|
mutationFn: async ({ productId, dayId, translationId, input, }) => {
|
|
25
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/days/${dayId}/translations/${translationId}`, productDayTranslationSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
25
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/days/${dayId}/translations/${translationId}`, productDayTranslationSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
26
26
|
return { productId, dayId, translation: data };
|
|
27
27
|
},
|
|
28
28
|
onSuccess: ({ productId, dayId }) => invalidate(productId, dayId),
|
|
29
29
|
});
|
|
30
30
|
const remove = useMutation({
|
|
31
31
|
mutationFn: async ({ productId, dayId, translationId, }) => {
|
|
32
|
-
await fetchWithValidation(`/v1/products/${productId}/days/${dayId}/translations/${translationId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" });
|
|
32
|
+
await fetchWithValidation(`/v1/admin/products/${productId}/days/${dayId}/translations/${translationId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" });
|
|
33
33
|
return { productId, dayId };
|
|
34
34
|
},
|
|
35
35
|
onSuccess: ({ productId, dayId }) => invalidate(productId, dayId),
|
|
@@ -13,7 +13,7 @@ export function useProductDayTranslations(productId, dayId, options = {}) {
|
|
|
13
13
|
if (!productId || !dayId) {
|
|
14
14
|
throw new Error("useProductDayTranslations requires a productId and dayId");
|
|
15
15
|
}
|
|
16
|
-
return fetchWithValidation(`/v1/products/${productId}/days/${dayId}/translations`, productDayTranslationListResponse, { baseUrl, fetcher });
|
|
16
|
+
return fetchWithValidation(`/v1/admin/products/${productId}/days/${dayId}/translations`, productDayTranslationListResponse, { baseUrl, fetcher });
|
|
17
17
|
},
|
|
18
18
|
enabled: enabled && Boolean(productId) && Boolean(dayId),
|
|
19
19
|
});
|
|
@@ -9,7 +9,7 @@ export function useProductItineraryMutation() {
|
|
|
9
9
|
const queryClient = useQueryClient();
|
|
10
10
|
const create = useMutation({
|
|
11
11
|
mutationFn: async ({ productId, input, }) => {
|
|
12
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/itineraries`, productItineraryResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
12
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/itineraries`, productItineraryResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
13
13
|
return data;
|
|
14
14
|
},
|
|
15
15
|
onSuccess: async (data) => {
|
|
@@ -20,7 +20,7 @@ export function useProductItineraryMutation() {
|
|
|
20
20
|
});
|
|
21
21
|
const update = useMutation({
|
|
22
22
|
mutationFn: async ({ productId, itineraryId, input, }) => {
|
|
23
|
-
const { data } = await fetchWithValidation(`/v1/products/itineraries/${itineraryId}`, productItineraryResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
23
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/itineraries/${itineraryId}`, productItineraryResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
24
24
|
return { productId, itinerary: data };
|
|
25
25
|
},
|
|
26
26
|
onSuccess: async ({ productId, itinerary }) => {
|
|
@@ -35,7 +35,7 @@ export function useProductItineraryMutation() {
|
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
37
|
const remove = useMutation({
|
|
38
|
-
mutationFn: async ({ productId, itineraryId }) => fetchWithValidation(`/v1/products/itineraries/${itineraryId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }).then(() => ({ productId })),
|
|
38
|
+
mutationFn: async ({ productId, itineraryId }) => fetchWithValidation(`/v1/admin/products/itineraries/${itineraryId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }).then(() => ({ productId })),
|
|
39
39
|
onSuccess: async ({ productId }) => {
|
|
40
40
|
await queryClient.invalidateQueries({
|
|
41
41
|
queryKey: productsQueryKeys.productItineraries(productId),
|
|
@@ -47,7 +47,7 @@ export function useProductItineraryMutation() {
|
|
|
47
47
|
});
|
|
48
48
|
const duplicate = useMutation({
|
|
49
49
|
mutationFn: async ({ productId, itineraryId, input, }) => {
|
|
50
|
-
const { data } = await fetchWithValidation(`/v1/products/itineraries/${itineraryId}/duplicate`, productItineraryResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input ?? {}) });
|
|
50
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/itineraries/${itineraryId}/duplicate`, productItineraryResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input ?? {}) });
|
|
51
51
|
return { productId, itinerary: data };
|
|
52
52
|
},
|
|
53
53
|
onSuccess: async ({ productId }) => {
|
|
@@ -17,21 +17,21 @@ export function useProductItineraryTranslationMutation() {
|
|
|
17
17
|
};
|
|
18
18
|
const create = useMutation({
|
|
19
19
|
mutationFn: async ({ productId, itineraryId, input, }) => {
|
|
20
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/itineraries/${itineraryId}/translations`, productItineraryTranslationSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
20
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/itineraries/${itineraryId}/translations`, productItineraryTranslationSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
21
21
|
return { productId, itineraryId, translation: data };
|
|
22
22
|
},
|
|
23
23
|
onSuccess: ({ productId, itineraryId }) => invalidate(productId, itineraryId),
|
|
24
24
|
});
|
|
25
25
|
const update = useMutation({
|
|
26
26
|
mutationFn: async ({ productId, itineraryId, translationId, input, }) => {
|
|
27
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/itineraries/${itineraryId}/translations/${translationId}`, productItineraryTranslationSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
27
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/itineraries/${itineraryId}/translations/${translationId}`, productItineraryTranslationSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
28
28
|
return { productId, itineraryId, translation: data };
|
|
29
29
|
},
|
|
30
30
|
onSuccess: ({ productId, itineraryId }) => invalidate(productId, itineraryId),
|
|
31
31
|
});
|
|
32
32
|
const remove = useMutation({
|
|
33
33
|
mutationFn: async ({ productId, itineraryId, translationId, }) => {
|
|
34
|
-
await fetchWithValidation(`/v1/products/${productId}/itineraries/${itineraryId}/translations/${translationId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" });
|
|
34
|
+
await fetchWithValidation(`/v1/admin/products/${productId}/itineraries/${itineraryId}/translations/${translationId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" });
|
|
35
35
|
return { productId, itineraryId };
|
|
36
36
|
},
|
|
37
37
|
onSuccess: ({ productId, itineraryId }) => invalidate(productId, itineraryId),
|
|
@@ -13,7 +13,7 @@ export function useProductItineraryTranslations(productId, itineraryId, options
|
|
|
13
13
|
if (!productId || !itineraryId) {
|
|
14
14
|
throw new Error("useProductItineraryTranslations requires a productId and itineraryId");
|
|
15
15
|
}
|
|
16
|
-
return fetchWithValidation(`/v1/products/${productId}/itineraries/${itineraryId}/translations`, productItineraryTranslationListResponse, { baseUrl, fetcher });
|
|
16
|
+
return fetchWithValidation(`/v1/admin/products/${productId}/itineraries/${itineraryId}/translations`, productItineraryTranslationListResponse, { baseUrl, fetcher });
|
|
17
17
|
},
|
|
18
18
|
enabled: enabled && Boolean(productId) && Boolean(itineraryId),
|
|
19
19
|
});
|
|
@@ -14,8 +14,8 @@ export function useProductMediaMutation() {
|
|
|
14
14
|
const create = useMutation({
|
|
15
15
|
mutationFn: async ({ productId, ...input }) => {
|
|
16
16
|
const path = input.dayId
|
|
17
|
-
? `/v1/products/${productId}/days/${input.dayId}/media`
|
|
18
|
-
: `/v1/products/${productId}/media`;
|
|
17
|
+
? `/v1/admin/products/${productId}/days/${input.dayId}/media`
|
|
18
|
+
: `/v1/admin/products/${productId}/media`;
|
|
19
19
|
const { data } = await fetchWithValidation(path, productMediaResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
20
20
|
return data;
|
|
21
21
|
},
|
|
@@ -27,7 +27,7 @@ export function useProductMediaMutation() {
|
|
|
27
27
|
});
|
|
28
28
|
const update = useMutation({
|
|
29
29
|
mutationFn: async ({ mediaId, input }) => {
|
|
30
|
-
const { data } = await fetchWithValidation(`/v1/products/media/${mediaId}`, productMediaResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
30
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/media/${mediaId}`, productMediaResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
31
31
|
return data;
|
|
32
32
|
},
|
|
33
33
|
onSuccess: async (data) => {
|
|
@@ -38,7 +38,7 @@ export function useProductMediaMutation() {
|
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
40
|
const remove = useMutation({
|
|
41
|
-
mutationFn: async (mediaId) => fetchWithValidation(`/v1/products/media/${mediaId}`, productMediaResponse, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
41
|
+
mutationFn: async (mediaId) => fetchWithValidation(`/v1/admin/products/media/${mediaId}`, productMediaResponse, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
42
42
|
onSuccess: async ({ data }) => {
|
|
43
43
|
await queryClient.invalidateQueries({
|
|
44
44
|
queryKey: productsQueryKeys.productMedia(data.productId),
|
|
@@ -48,7 +48,7 @@ export function useProductMediaMutation() {
|
|
|
48
48
|
});
|
|
49
49
|
const setCover = useMutation({
|
|
50
50
|
mutationFn: async (mediaId) => {
|
|
51
|
-
const { data } = await fetchWithValidation(`/v1/products/media/${mediaId}/set-cover`, productMediaResponse, { baseUrl, fetcher }, { method: "PATCH" });
|
|
51
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/media/${mediaId}/set-cover`, productMediaResponse, { baseUrl, fetcher }, { method: "PATCH" });
|
|
52
52
|
return data;
|
|
53
53
|
},
|
|
54
54
|
onSuccess: async (data) => {
|
|
@@ -58,7 +58,7 @@ export function useProductMediaMutation() {
|
|
|
58
58
|
},
|
|
59
59
|
});
|
|
60
60
|
const reorder = useMutation({
|
|
61
|
-
mutationFn: async ({ productId, items }) => fetchWithValidation(`/v1/products/${productId}/media/reorder`, reorderResponseSchema, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify({ items }) }),
|
|
61
|
+
mutationFn: async ({ productId, items }) => fetchWithValidation(`/v1/admin/products/${productId}/media/reorder`, reorderResponseSchema, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify({ items }) }),
|
|
62
62
|
onSuccess: async (_data, variables) => {
|
|
63
63
|
await queryClient.invalidateQueries({
|
|
64
64
|
queryKey: productsQueryKeys.productMedia(variables.productId),
|
|
@@ -38,7 +38,7 @@ export declare function useProductMutation(): {
|
|
|
38
38
|
exclusionsHtml: string | null;
|
|
39
39
|
termsHtml: string | null;
|
|
40
40
|
termsShowOnContract: boolean;
|
|
41
|
-
bookingMode: "
|
|
41
|
+
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary" | "other";
|
|
42
42
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
43
43
|
timezone: string | null;
|
|
44
44
|
visibility: "public" | "private" | "hidden";
|
|
@@ -79,7 +79,7 @@ export declare function useProductMutation(): {
|
|
|
79
79
|
exclusionsHtml: string | null;
|
|
80
80
|
termsHtml: string | null;
|
|
81
81
|
termsShowOnContract: boolean;
|
|
82
|
-
bookingMode: "
|
|
82
|
+
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary" | "other";
|
|
83
83
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
84
84
|
timezone: string | null;
|
|
85
85
|
visibility: "public" | "private" | "hidden";
|
|
@@ -11,7 +11,7 @@ export function useProductMutation() {
|
|
|
11
11
|
const queryClient = useQueryClient();
|
|
12
12
|
const create = useMutation({
|
|
13
13
|
mutationFn: async (input) => {
|
|
14
|
-
const { data } = await fetchWithValidation("/v1/products", productSingleResponse, {
|
|
14
|
+
const { data } = await fetchWithValidation("/v1/admin/products", productSingleResponse, {
|
|
15
15
|
baseUrl,
|
|
16
16
|
fetcher,
|
|
17
17
|
}, { method: "POST", body: JSON.stringify(input) });
|
|
@@ -23,7 +23,7 @@ export function useProductMutation() {
|
|
|
23
23
|
});
|
|
24
24
|
const update = useMutation({
|
|
25
25
|
mutationFn: async ({ id, input }) => {
|
|
26
|
-
const { data } = await fetchWithValidation(`/v1/products/${id}`, productSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
26
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${id}`, productSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
27
27
|
return data;
|
|
28
28
|
},
|
|
29
29
|
onSuccess: (data) => {
|
|
@@ -33,7 +33,7 @@ export function useProductMutation() {
|
|
|
33
33
|
});
|
|
34
34
|
const remove = useMutation({
|
|
35
35
|
mutationFn: async (id) => {
|
|
36
|
-
return fetchWithValidation(`/v1/products/${id}`, deleteResponseSchema, { baseUrl, fetcher }, { method: "DELETE" });
|
|
36
|
+
return fetchWithValidation(`/v1/admin/products/${id}`, deleteResponseSchema, { baseUrl, fetcher }, { method: "DELETE" });
|
|
37
37
|
},
|
|
38
38
|
onSuccess: (_data, id) => {
|
|
39
39
|
void queryClient.invalidateQueries({ queryKey: productsQueryKeys.products() });
|
|
@@ -11,7 +11,7 @@ export function useProductOptionMutation() {
|
|
|
11
11
|
const queryClient = useQueryClient();
|
|
12
12
|
const create = useMutation({
|
|
13
13
|
mutationFn: async ({ productId, ...input }) => {
|
|
14
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/options`, productOptionSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
14
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/options`, productOptionSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
15
15
|
return data;
|
|
16
16
|
},
|
|
17
17
|
onSuccess: (data) => {
|
|
@@ -21,7 +21,7 @@ export function useProductOptionMutation() {
|
|
|
21
21
|
});
|
|
22
22
|
const update = useMutation({
|
|
23
23
|
mutationFn: async ({ id, input }) => {
|
|
24
|
-
const { data } = await fetchWithValidation(`/v1/products/options/${id}`, productOptionSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
24
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/options/${id}`, productOptionSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
25
25
|
return data;
|
|
26
26
|
},
|
|
27
27
|
onSuccess: (data) => {
|
|
@@ -30,7 +30,7 @@ export function useProductOptionMutation() {
|
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
const remove = useMutation({
|
|
33
|
-
mutationFn: async (id) => fetchWithValidation(`/v1/products/options/${id}`, deleteResponseSchema, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
33
|
+
mutationFn: async (id) => fetchWithValidation(`/v1/admin/products/options/${id}`, deleteResponseSchema, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
34
34
|
onSuccess: () => {
|
|
35
35
|
void queryClient.invalidateQueries({ queryKey: productsQueryKeys.productOptions() });
|
|
36
36
|
},
|
|
@@ -11,7 +11,7 @@ export function useProductTagMutation() {
|
|
|
11
11
|
const queryClient = useQueryClient();
|
|
12
12
|
const create = useMutation({
|
|
13
13
|
mutationFn: async (input) => {
|
|
14
|
-
const { data } = await fetchWithValidation("/v1/products/product-tags", productTagSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
14
|
+
const { data } = await fetchWithValidation("/v1/admin/products/product-tags", productTagSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
15
15
|
return data;
|
|
16
16
|
},
|
|
17
17
|
onSuccess: () => {
|
|
@@ -20,7 +20,7 @@ export function useProductTagMutation() {
|
|
|
20
20
|
});
|
|
21
21
|
const update = useMutation({
|
|
22
22
|
mutationFn: async ({ id, input }) => {
|
|
23
|
-
const { data } = await fetchWithValidation(`/v1/products/product-tags/${id}`, productTagSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
23
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/product-tags/${id}`, productTagSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
24
24
|
return data;
|
|
25
25
|
},
|
|
26
26
|
onSuccess: (data) => {
|
|
@@ -29,7 +29,7 @@ export function useProductTagMutation() {
|
|
|
29
29
|
},
|
|
30
30
|
});
|
|
31
31
|
const remove = useMutation({
|
|
32
|
-
mutationFn: async (id) => fetchWithValidation(`/v1/products/product-tags/${id}`, deleteResponseSchema, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
32
|
+
mutationFn: async (id) => fetchWithValidation(`/v1/admin/products/product-tags/${id}`, deleteResponseSchema, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
33
33
|
onSuccess: (_data, id) => {
|
|
34
34
|
void queryClient.invalidateQueries({ queryKey: productsQueryKeys.productTags() });
|
|
35
35
|
queryClient.removeQueries({ queryKey: productsQueryKeys.productTag(id) });
|
|
@@ -10,7 +10,7 @@ export function useProductTag(id, options = {}) {
|
|
|
10
10
|
return useQuery({
|
|
11
11
|
queryKey: productsQueryKeys.productTag(id ?? "__missing__"),
|
|
12
12
|
queryFn: async () => {
|
|
13
|
-
const { data } = await fetchWithValidation(`/v1/products/product-tags/${id}`, productTagSingleResponse, { baseUrl, fetcher });
|
|
13
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/product-tags/${id}`, productTagSingleResponse, { baseUrl, fetcher });
|
|
14
14
|
return data;
|
|
15
15
|
},
|
|
16
16
|
enabled: enabled && Boolean(id),
|
|
@@ -18,7 +18,7 @@ export function useProductTags(options = {}) {
|
|
|
18
18
|
if (filters.offset !== undefined)
|
|
19
19
|
params.set("offset", String(filters.offset));
|
|
20
20
|
const qs = params.toString();
|
|
21
|
-
return fetchWithValidation(`/v1/products/product-tags${qs ? `?${qs}` : ""}`, productTagListResponse, { baseUrl, fetcher });
|
|
21
|
+
return fetchWithValidation(`/v1/admin/products/product-tags${qs ? `?${qs}` : ""}`, productTagListResponse, { baseUrl, fetcher });
|
|
22
22
|
},
|
|
23
23
|
enabled,
|
|
24
24
|
});
|
|
@@ -9,7 +9,7 @@ export function useProductTranslationMutation() {
|
|
|
9
9
|
const queryClient = useQueryClient();
|
|
10
10
|
const create = useMutation({
|
|
11
11
|
mutationFn: async ({ productId, input, }) => {
|
|
12
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/translations`, productTranslationSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
12
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/translations`, productTranslationSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
13
13
|
return data;
|
|
14
14
|
},
|
|
15
15
|
onSuccess: async (data) => {
|
|
@@ -21,7 +21,7 @@ export function useProductTranslationMutation() {
|
|
|
21
21
|
});
|
|
22
22
|
const update = useMutation({
|
|
23
23
|
mutationFn: async ({ productId, translationId, input, }) => {
|
|
24
|
-
const { data } = await fetchWithValidation(`/v1/products/translations/${translationId}`, productTranslationSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
24
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/translations/${translationId}`, productTranslationSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
25
25
|
return { productId, translation: data };
|
|
26
26
|
},
|
|
27
27
|
onSuccess: async ({ productId }) => {
|
|
@@ -33,7 +33,7 @@ export function useProductTranslationMutation() {
|
|
|
33
33
|
});
|
|
34
34
|
const remove = useMutation({
|
|
35
35
|
mutationFn: async ({ productId, translationId, }) => {
|
|
36
|
-
await fetchWithValidation(`/v1/products/translations/${translationId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" });
|
|
36
|
+
await fetchWithValidation(`/v1/admin/products/translations/${translationId}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" });
|
|
37
37
|
return { productId };
|
|
38
38
|
},
|
|
39
39
|
onSuccess: async ({ productId }) => {
|
|
@@ -12,7 +12,7 @@ export function useProductTranslations(productId, options = {}) {
|
|
|
12
12
|
queryFn: () => {
|
|
13
13
|
if (!productId)
|
|
14
14
|
throw new Error("useProductTranslations requires a productId");
|
|
15
|
-
return fetchWithValidation(withQueryParams("/v1/products/translations", {
|
|
15
|
+
return fetchWithValidation(withQueryParams("/v1/admin/products/translations", {
|
|
16
16
|
productId,
|
|
17
17
|
languageTag: filters.languageTag,
|
|
18
18
|
limit: filters.limit,
|
|
@@ -18,7 +18,7 @@ export function useProductTypeMutation() {
|
|
|
18
18
|
const queryClient = useQueryClient();
|
|
19
19
|
const create = useMutation({
|
|
20
20
|
mutationFn: async (input) => {
|
|
21
|
-
const { data } = await fetchWithValidation("/v1/products/product-types", productTypeSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
21
|
+
const { data } = await fetchWithValidation("/v1/admin/products/product-types", productTypeSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
22
22
|
return data;
|
|
23
23
|
},
|
|
24
24
|
onSuccess: (data) => {
|
|
@@ -28,7 +28,7 @@ export function useProductTypeMutation() {
|
|
|
28
28
|
});
|
|
29
29
|
const update = useMutation({
|
|
30
30
|
mutationFn: async ({ id, input }) => {
|
|
31
|
-
const { data } = await fetchWithValidation(`/v1/products/product-types/${id}`, productTypeSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
31
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/product-types/${id}`, productTypeSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
32
32
|
return data;
|
|
33
33
|
},
|
|
34
34
|
onSuccess: (data) => {
|
|
@@ -37,7 +37,7 @@ export function useProductTypeMutation() {
|
|
|
37
37
|
},
|
|
38
38
|
});
|
|
39
39
|
const remove = useMutation({
|
|
40
|
-
mutationFn: async (id) => fetchWithValidation(`/v1/products/product-types/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
40
|
+
mutationFn: async (id) => fetchWithValidation(`/v1/admin/products/product-types/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
|
|
41
41
|
onSuccess: (_data, id) => {
|
|
42
42
|
void queryClient.invalidateQueries({ queryKey: productsQueryKeys.productTypes() });
|
|
43
43
|
queryClient.removeQueries({ queryKey: productsQueryKeys.productType(id) });
|
|
@@ -9,7 +9,7 @@ export function useProductVersionMutation() {
|
|
|
9
9
|
const queryClient = useQueryClient();
|
|
10
10
|
const create = useMutation({
|
|
11
11
|
mutationFn: async ({ productId, ...input }) => {
|
|
12
|
-
const { data } = await fetchWithValidation(`/v1/products/${productId}/versions`, productVersionResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
12
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${productId}/versions`, productVersionResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
13
13
|
return data;
|
|
14
14
|
},
|
|
15
15
|
onSuccess: async (data) => {
|
|
@@ -10,7 +10,7 @@ export declare function useProduct(id: string | undefined, options?: UseProductO
|
|
|
10
10
|
exclusionsHtml: string | null;
|
|
11
11
|
termsHtml: string | null;
|
|
12
12
|
termsShowOnContract: boolean;
|
|
13
|
-
bookingMode: "
|
|
13
|
+
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary" | "other";
|
|
14
14
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
15
15
|
timezone: string | null;
|
|
16
16
|
visibility: "public" | "private" | "hidden";
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAoBjF"}
|
|
@@ -12,7 +12,7 @@ export function useProduct(id, options = {}) {
|
|
|
12
12
|
queryFn: async () => {
|
|
13
13
|
if (!id)
|
|
14
14
|
throw new Error("useProduct requires an id");
|
|
15
|
-
const { data } = await fetchWithValidation(`/v1/products/${id}`, productSingleResponse, {
|
|
15
|
+
const { data } = await fetchWithValidation(`/v1/admin/products/${id}`, productSingleResponse, {
|
|
16
16
|
baseUrl,
|
|
17
17
|
fetcher,
|
|
18
18
|
});
|
|
@@ -12,7 +12,7 @@ export declare function useProducts(options?: UseProductsOptions): import("@tans
|
|
|
12
12
|
exclusionsHtml: string | null;
|
|
13
13
|
termsHtml: string | null;
|
|
14
14
|
termsShowOnContract: boolean;
|
|
15
|
-
bookingMode: "
|
|
15
|
+
bookingMode: "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary" | "other";
|
|
16
16
|
capacityMode: "free_sale" | "limited" | "on_request";
|
|
17
17
|
timezone: string | null;
|
|
18
18
|
visibility: "public" | "private" | "hidden";
|
|
@@ -28,7 +28,7 @@ export function useProducts(options = {}) {
|
|
|
28
28
|
if (filters.offset !== undefined)
|
|
29
29
|
params.set("offset", String(filters.offset));
|
|
30
30
|
const qs = params.toString();
|
|
31
|
-
return fetchWithValidation(`/v1/products${qs ? `?${qs}` : ""}`, productListResponse, {
|
|
31
|
+
return fetchWithValidation(`/v1/admin/products${qs ? `?${qs}` : ""}`, productListResponse, {
|
|
32
32
|
baseUrl,
|
|
33
33
|
fetcher,
|
|
34
34
|
});
|
package/dist/operations.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare function listProductActionLedger(client: FetchWithValidationOptio
|
|
|
10
10
|
occurredAt: string;
|
|
11
11
|
actionName: string;
|
|
12
12
|
actionVersion: string;
|
|
13
|
-
actionKind: "
|
|
13
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
14
14
|
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
15
15
|
evaluatedRisk: "high" | "low" | "medium" | "critical";
|
|
16
16
|
actorType: string | null;
|
package/dist/operations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAGpE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAUD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,4BAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAGpE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAUD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,4BAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUzC"}
|
package/dist/operations.js
CHANGED
|
@@ -9,5 +9,5 @@ function toProductActionLedgerQuery(input) {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export function listProductActionLedger(client, productId, input = {}) {
|
|
12
|
-
return fetchWithValidation(withQueryParams(`/v1/products/${productId}/action-ledger`, toProductActionLedgerQuery(input)), productActionLedgerListResponse, client);
|
|
12
|
+
return fetchWithValidation(withQueryParams(`/v1/admin/products/${productId}/action-ledger`, toProductActionLedgerQuery(input)), productActionLedgerListResponse, client);
|
|
13
13
|
}
|
|
@@ -9,7 +9,7 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
|
|
|
9
9
|
occurredAt: string;
|
|
10
10
|
actionName: string;
|
|
11
11
|
actionVersion: string;
|
|
12
|
-
actionKind: "
|
|
12
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
13
13
|
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
14
14
|
evaluatedRisk: "high" | "low" | "medium" | "critical";
|
|
15
15
|
actorType: string | null;
|
|
@@ -54,7 +54,7 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
|
|
|
54
54
|
occurredAt: string;
|
|
55
55
|
actionName: string;
|
|
56
56
|
actionVersion: string;
|
|
57
|
-
actionKind: "
|
|
57
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
58
58
|
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
59
59
|
evaluatedRisk: "high" | "low" | "medium" | "critical";
|
|
60
60
|
actorType: string | null;
|
|
@@ -100,7 +100,7 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
|
|
|
100
100
|
occurredAt: string;
|
|
101
101
|
actionName: string;
|
|
102
102
|
actionVersion: string;
|
|
103
|
-
actionKind: "
|
|
103
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
104
104
|
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
105
105
|
evaluatedRisk: "high" | "low" | "medium" | "critical";
|
|
106
106
|
actorType: string | null;
|
|
@@ -148,7 +148,7 @@ export declare function getProductActionLedgerQueryOptions(client: FetchWithVali
|
|
|
148
148
|
occurredAt: string;
|
|
149
149
|
actionName: string;
|
|
150
150
|
actionVersion: string;
|
|
151
|
-
actionKind: "
|
|
151
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
152
152
|
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
153
153
|
evaluatedRisk: "high" | "low" | "medium" | "critical";
|
|
154
154
|
actorType: string | null;
|