preciazo/db-datos/supermercado.ts

28 lines
865 B
TypeScript
Raw Normal View History

export enum Supermercado {
Dia = "Dia",
Carrefour = "Carrefour",
Coto = "Coto",
2024-01-04 22:25:17 +00:00
Jumbo = "Jumbo",
}
2024-01-04 22:32:16 +00:00
export const supermercados: Supermercado[] = [
Supermercado.Carrefour,
Supermercado.Coto,
Supermercado.Dia,
Supermercado.Jumbo,
];
export const hosts: { [host: string]: Supermercado } = {
"diaonline.supermercadosdia.com.ar": Supermercado.Dia,
"www.carrefour.com.ar": Supermercado.Carrefour,
"www.cotodigital3.com.ar": Supermercado.Coto,
2024-01-04 22:25:17 +00:00
"www.jumbo.com.ar": Supermercado.Jumbo,
};
2024-02-06 01:36:00 +00:00
export const hostBySupermercado = Object.fromEntries(
Object.entries(hosts).map(([a, b]) => [b, a])
) as Record<Supermercado, string>;
export const colorBySupermercado: { [supermercado in Supermercado]: string } = {
[Supermercado.Dia]: "#d52b1e",
[Supermercado.Carrefour]: "#19549d",
[Supermercado.Coto]: "#e20025",
2024-01-04 22:25:17 +00:00
[Supermercado.Jumbo]: "#2dc850",
};