- ✅ Ticket 1.1: Estructura Clean Architecture en backend - ✅ Ticket 1.2: Schemas Zod compartidos - ✅ Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares) - ✅ Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares) - ✅ Ticket 1.5: Eliminación de duplicidades (~50 líneas) Cambios principales: - Creada estructura Clean Architecture en backend/src/ - Schemas Zod compartidos en backend/src/shared/schemas/ - Refactorización modular de drugs y procedures - Utilidades genéricas en src/utils/ (filter, validation) - Eliminados scripts obsoletos y documentación antigua - Corregidos errores: QueryClient, import test-error-handling - Build verificado y funcionando correctamente
38 lines
782 B
TypeScript
38 lines
782 B
TypeScript
import type { Localize } from "../../types.js";
|
|
type hiLocaleNumberType =
|
|
| "\u0967"
|
|
| "\u0968"
|
|
| "\u0969"
|
|
| "\u096A"
|
|
| "\u096B"
|
|
| "\u096C"
|
|
| "\u096D"
|
|
| "\u096E"
|
|
| "\u096F"
|
|
| "\u0966";
|
|
type enLocaleNumberType =
|
|
| "1"
|
|
| "2"
|
|
| "3"
|
|
| "4"
|
|
| "5"
|
|
| "6"
|
|
| "7"
|
|
| "8"
|
|
| "9"
|
|
| "0";
|
|
type enHiLocaleNumberType = {
|
|
[enNumber in enLocaleNumberType]: hiLocaleNumberType;
|
|
};
|
|
type hiLocaleEnNumberType = {
|
|
[hiNumber in hiLocaleNumberType]: enLocaleNumberType;
|
|
};
|
|
export interface hiLocaleNumberValuesType {
|
|
locale: enHiLocaleNumberType;
|
|
number: hiLocaleEnNumberType;
|
|
}
|
|
export declare function localeToNumber(locale: string): number;
|
|
export declare function numberToLocale(enNumber: number): string;
|
|
export declare const localize: Localize;
|
|
export {};
|