Funcionan todos los select, pendiente el general
This commit is contained in:
14
packages/sim-shared/domain/CommonSim.ts
Normal file
14
packages/sim-shared/domain/CommonSim.ts
Normal 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
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ export namespace SimEvents {
|
||||
key: `sim.${string}.activate`,
|
||||
payload: {
|
||||
iccid: string,
|
||||
offer?: string
|
||||
offer?: string,
|
||||
orderId?: string
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
export type User = {
|
||||
userId: string,
|
||||
userName?: string,
|
||||
email?: string,
|
||||
tlfn?: string,
|
||||
}
|
||||
Reference in New Issue
Block a user