Refactor de las rutas para lanzarse con node (sin tsx)

This commit is contained in:
2026-02-09 13:24:04 +01:00
parent ecef45dc59
commit 9b68bc60a1
39 changed files with 604 additions and 493 deletions

View File

@@ -0,0 +1,69 @@
import { DomainEvent } from "./DomainEvent.js";
export namespace SimEvents {
export type general = DomainEvent & {
key: string,
payload: {
iccid: string
},
}
export type activation = DomainEvent & {
key: `sim.${string}.activate`,
payload: {
iccid: string,
offer?: string
},
}
export type preActivation = DomainEvent & {
key: `sim.${string}.preActivate`,
payload: {
iccid: string
},
}
export type reActivation = DomainEvent & {
key: `sim.${string}.reActivate`,
payload: {
iccid: string
},
}
export type cancel = DomainEvent & {
key: `sim.${string}.cancel`,
payload: {
iccid: string
},
options: {
}
}
export type pause = DomainEvent & {
key: `sim.${string}.pause`,
payload: {
iccid: string
},
options: {
}
}
export type free = DomainEvent & {
key: `sim.${string}.free`,
payload: {
iccid: string
},
options: {
}
}
export type save = DomainEvent & {
key: `sim.${string}.save`,
payload: {
iccid: string,
imei: string
},
options: {
}
}
}