From 35e1d6455e2d6403e418fe0371b8f736ad903248 Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 8 Jul 2025 20:24:34 -0300 Subject: [PATCH] Eliminado comunes --- resources/js/store/modules/comunes.ts | 14 -------------- resources/js/store/modules/login/types.ts | 9 +++++++-- resources/js/store/modules/productos/types.ts | 9 ++++++--- 3 files changed, 13 insertions(+), 19 deletions(-) delete mode 100644 resources/js/store/modules/comunes.ts 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, +}