- ✅ 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
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import Command from "../Command";
|
|
import { WriteableStream } from "../types";
|
|
import RedisCommander, { ClientContext } from "./RedisCommander";
|
|
export interface CommanderOptions {
|
|
keyPrefix?: string;
|
|
showFriendlyErrorStack?: boolean;
|
|
}
|
|
declare class Commander<Context extends ClientContext = {
|
|
type: "default";
|
|
}> {
|
|
options: CommanderOptions;
|
|
/**
|
|
* @ignore
|
|
*/
|
|
scriptsSet: {};
|
|
/**
|
|
* @ignore
|
|
*/
|
|
addedBuiltinSet: Set<string>;
|
|
/**
|
|
* Return supported builtin commands
|
|
*/
|
|
getBuiltinCommands(): string[];
|
|
/**
|
|
* Create a builtin command
|
|
*/
|
|
createBuiltinCommand(commandName: string): {
|
|
string: any;
|
|
buffer: any;
|
|
};
|
|
/**
|
|
* Create add builtin command
|
|
*/
|
|
addBuiltinCommand(commandName: string): void;
|
|
/**
|
|
* Define a custom command using lua script
|
|
*/
|
|
defineCommand(name: string, definition: {
|
|
lua: string;
|
|
numberOfKeys?: number;
|
|
readOnly?: boolean;
|
|
}): void;
|
|
/**
|
|
* @ignore
|
|
*/
|
|
sendCommand(command: Command, stream?: WriteableStream, node?: unknown): unknown;
|
|
}
|
|
interface Commander<Context> extends RedisCommander<Context> {
|
|
}
|
|
export default Commander;
|