diff --git a/resources/js/store/modules/comunes.ts b/resources/js/store/modules/comunes.ts deleted file mode 100644 index 8e681f7..0000000 --- a/resources/js/store/modules/comunes.ts +++ /dev/null @@ -1,14 +0,0 @@ -export type Rol = 'barrio' | 'admin_barrio' | 'comision'; - -export type UrlRol = 'pedido' | 'admin' | 'comisiones'; - -export type Response = Axios.IPromise>; - -export interface UserRol { - rol: Rol -} - -export interface Filtro { - clave: string, - valor: string, -} diff --git a/resources/js/store/modules/login/types.ts b/resources/js/store/modules/login/types.ts index cadbddf..5c356cb 100644 --- a/resources/js/store/modules/login/types.ts +++ b/resources/js/store/modules/login/types.ts @@ -1,5 +1,3 @@ -import { Rol } from "../comunes"; - export interface LoginState { regiones: string[], grupos_de_compra: Barrio[], @@ -36,3 +34,10 @@ export interface Barrio { devoluciones_habilitadas: boolean, saldo: number, } + +export interface UserRol { + rol: Rol +} + +export type UrlRol = 'pedido' | 'admin' | 'comisiones'; +export type Rol = 'barrio' | 'admin_barrio' | 'comision'; diff --git a/resources/js/store/modules/productos/types.ts b/resources/js/store/modules/productos/types.ts index 07a22bc..f8bf913 100644 --- a/resources/js/store/modules/productos/types.ts +++ b/resources/js/store/modules/productos/types.ts @@ -1,10 +1,8 @@ -import { Filtro } from "../comunes"; - export interface ProductosState { lastFetch?: Date, categorias: string[], productos: Producto[], - filtro: Filtro, + filtro?: Filtro, } export interface Producto { @@ -16,3 +14,8 @@ export interface Producto { nacional: boolean, requiere_notas: boolean, } + +export interface Filtro { + clave: string, + valor: string, +}