chore: build

This commit is contained in:
2026-06-14 15:17:15 +02:00
parent be7e3b3bd8
commit 8a503b544e
4 changed files with 232 additions and 196 deletions
+7 -13
View File
@@ -264,17 +264,6 @@ export const notifyClientToDescend = async (commandId: number) => {
};
};
export const confirmReceptionAdmin = async (commandId: number) => {
const { data } = await apiClient.post(
`${V2}/admin/protected/orders/${commandId}/confirm-reception`,
);
return {
success: true,
message: data.message,
points_earned: data.points_earned,
client_username: data.client_username,
};
};
// ============================================
@@ -935,13 +924,18 @@ export interface RewardCategoryConfig {
amount: number;
}
export interface RewardItem {
product_id: number;
quantity: number;
price: number;
}
export interface PointsReward {
threshold: number;
type: "free_product" | "half_price_product" | "custom";
description: string;
category_configs: RewardCategoryConfig[];
reward_product_id?: number;
reward_quantity?: number;
reward_items: RewardItem[];
}
export interface PointsPool {