TorbatYar/frontend/modules/beauty/constants/labels.ts
Mortezakoohjani d579d0b142 feat(loyalty): add Loyalty Platform Frontend module
Add frontend/modules/loyalty with types, API client, design system, feature pages and thin App Router routes under app/loyalty/. BFF proxy at app/api/loyalty/. Include loyalty frontend docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 10:50:55 +03:30

76 lines
1.9 KiB
TypeScript

export const lifecycleStatusLabel: Record<string, string> = {
draft: "پیش‌نویس",
active: "فعال",
inactive: "غیرفعال",
suspended: "معلق",
archived: "آرشیو",
};
export const lifecycleStatusOptions = Object.entries(lifecycleStatusLabel).map(([value, label]) => ({
value,
label,
}));
export const appointmentStatusLabel: Record<string, string> = {
requested: "درخواست",
confirmed: "تأییدشده",
checked_in: "پذیرش‌شده",
in_progress: "در حال انجام",
completed: "تکمیل",
cancelled: "لغوشده",
no_show: "عدم حضور",
};
export const staffKindLabel: Record<string, string> = {
stylist: "آرایشگر",
therapist: "درمانگر",
receptionist: "پذیرش",
manager: "مدیر",
other: "سایر",
};
export const staffKindOptions = Object.entries(staffKindLabel).map(([value, label]) => ({
value,
label,
}));
export const dayOfWeekLabel: Record<string, string> = {
monday: "دوشنبه",
tuesday: "سه‌شنبه",
wednesday: "چهارشنبه",
thursday: "پنج‌شنبه",
friday: "جمعه",
saturday: "شنبه",
sunday: "یکشنبه",
};
export const dayOfWeekOptions = Object.entries(dayOfWeekLabel).map(([value, label]) => ({
value,
label,
}));
export const resourceStatusLabel: Record<string, string> = {
available: "آماده",
occupied: "اشغال",
maintenance: "تعمیر",
inactive: "غیرفعال",
};
export const resourceStatusOptions = Object.entries(resourceStatusLabel).map(([value, label]) => ({
value,
label,
}));
export const businessFormatLabel: Record<string, string> = {
salon: "سالن",
clinic: "کلینیک",
spa: "اسپا",
barbershop: "آرایشگاه",
mixed: "ترکیبی",
};
export const businessFormatOptions = Object.entries(businessFormatLabel).map(([value, label]) => ({
value,
label,
}));