- ✅ 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
32 lines
838 B
TypeScript
32 lines
838 B
TypeScript
import Redis from "./Redis";
|
|
import Cluster from "./cluster";
|
|
import Command from "./Command";
|
|
import Commander from "./utils/Commander";
|
|
declare class Pipeline extends Commander<{
|
|
type: "pipeline";
|
|
}> {
|
|
redis: Redis | Cluster;
|
|
isCluster: boolean;
|
|
isPipeline: boolean;
|
|
leftRedirections: {
|
|
value?: number;
|
|
};
|
|
promise: Promise<unknown>;
|
|
resolve: (result: unknown) => void;
|
|
reject: (error: Error) => void;
|
|
private replyPending;
|
|
private _queue;
|
|
private _result;
|
|
private _transactions;
|
|
private _shaToScript;
|
|
private preferKey;
|
|
constructor(redis: Redis | Cluster);
|
|
fillResult(value: unknown[], position: number): void;
|
|
sendCommand(command: Command): unknown;
|
|
addBatch(commands: any): this;
|
|
}
|
|
export default Pipeline;
|
|
interface Pipeline {
|
|
length: number;
|
|
}
|