Funcionan todos los select, pendiente el general

This commit is contained in:
2026-05-07 11:37:35 +02:00
parent 1d7c2b2946
commit 9c74fb9a7b
13 changed files with 37 additions and 44 deletions

View File

@@ -0,0 +1,14 @@
export type CommonSim = {
company: "NOS" | "OBJ" | "ALAI",
iccid: string,
msisdn: string,
tariff: string, // Depende de la compañia
billing_state: "AVAILABLE" | "PREACTIVATED" | "ACTIVATED" | "SUSPENDED" | "TERMINATED" | "UNKNOWN",
network_state: "AVAILABLE" | "PREACTIVATED" | "ACTIVATED" | "SUSPENDED" | "TERMINATED" | "UNKNOWN",
preactivation_date?: Date | null,
activation_date?: Date | null,
suspension_date?: Date | null,
termination_date?: Date | null,
imei: string,
raw: any
}

View File

@@ -1,20 +0,0 @@
import { User } from "./User.js"
export type SimCard = {
iccid: string,
imei: string,
/* Pedido de shopify */
orderdId?: string, // Pasar a tipo
/* Subscripcion de shopify */
subscriptionId?: string, // Pasar a tipo
user?: User
createdAt?: Date,
updatedAt?: Date,
codigoOrigen?: string,
}

View File

@@ -12,7 +12,8 @@ export namespace SimEvents {
key: `sim.${string}.activate`,
payload: {
iccid: string,
offer?: string
offer?: string,
orderId?: string
},
}

View File

@@ -1,6 +0,0 @@
export type User = {
userId: string,
userName?: string,
email?: string,
tlfn?: string,
}