27 lines
801 B
TypeScript
27 lines
801 B
TypeScript
export type CommonSim<T> = {
|
|
company: "NOS" | "OBJ" | "ALAI",
|
|
iccid: string,
|
|
msisdn?: string,
|
|
tariff?: string, // Depende de la compañia
|
|
billing_status: "AVAILABLE" | "PREACTIVATED" | "ACTIVE" | "SUSPENDED" | "TERMINATED" | "UNKNOWN",
|
|
network_status: "AVAILABLE" | "PREACTIVATED" | "ACTIVE" | "SUSPENDED" | "TERMINATED" | "UNKNOWN",
|
|
preactivation_date?: Date | null,
|
|
activation_date?: Date | null,
|
|
suspension_date?: Date | null,
|
|
termination_date?: Date | null,
|
|
imei?: string,
|
|
raw: T
|
|
}
|
|
|
|
/**
|
|
* Acorde a una peticion rest donde `raw` va a depender de `company`
|
|
*/
|
|
export type CommonSimDTO = CommonSim<Record<string, string>> & {
|
|
preactivation_date?: string | null,
|
|
activation_date?: string | null,
|
|
suspension_date?: string | null,
|
|
termination_date?: string | null,
|
|
}
|
|
|
|
|