Eliminado comunes
This commit is contained in:
parent
572a8cf3be
commit
35e1d6455e
3 changed files with 13 additions and 19 deletions
|
@ -1,14 +0,0 @@
|
||||||
export type Rol = 'barrio' | 'admin_barrio' | 'comision';
|
|
||||||
|
|
||||||
export type UrlRol = 'pedido' | 'admin' | 'comisiones';
|
|
||||||
|
|
||||||
export type Response<T> = Axios.IPromise<Axios.AxiosXHR<T>>;
|
|
||||||
|
|
||||||
export interface UserRol {
|
|
||||||
rol: Rol
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Filtro {
|
|
||||||
clave: string,
|
|
||||||
valor: string,
|
|
||||||
}
|
|
|
@ -1,5 +1,3 @@
|
||||||
import { Rol } from "../comunes";
|
|
||||||
|
|
||||||
export interface LoginState {
|
export interface LoginState {
|
||||||
regiones: string[],
|
regiones: string[],
|
||||||
grupos_de_compra: Barrio[],
|
grupos_de_compra: Barrio[],
|
||||||
|
@ -36,3 +34,10 @@ export interface Barrio {
|
||||||
devoluciones_habilitadas: boolean,
|
devoluciones_habilitadas: boolean,
|
||||||
saldo: number,
|
saldo: number,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface UserRol {
|
||||||
|
rol: Rol
|
||||||
|
}
|
||||||
|
|
||||||
|
export type UrlRol = 'pedido' | 'admin' | 'comisiones';
|
||||||
|
export type Rol = 'barrio' | 'admin_barrio' | 'comision';
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
import { Filtro } from "../comunes";
|
|
||||||
|
|
||||||
export interface ProductosState {
|
export interface ProductosState {
|
||||||
lastFetch?: Date,
|
lastFetch?: Date,
|
||||||
categorias: string[],
|
categorias: string[],
|
||||||
productos: Producto[],
|
productos: Producto[],
|
||||||
filtro: Filtro,
|
filtro?: Filtro,
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Producto {
|
export interface Producto {
|
||||||
|
@ -16,3 +14,8 @@ export interface Producto {
|
||||||
nacional: boolean,
|
nacional: boolean,
|
||||||
requiere_notas: boolean,
|
requiere_notas: boolean,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Filtro {
|
||||||
|
clave: string,
|
||||||
|
valor: string,
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue