Added routes

This commit is contained in:
Jose Selesan
2026-09-25 10:05:56 -03:00
parent 336e1af523
commit 94c353f4f2
100 changed files with 6126 additions and 183 deletions

View File

@@ -0,0 +1,44 @@
import type { BillingType, PaymentProvider, WeekDay } from '@gruperly/shared'
export { BILLING_LABELS, WEEK_DAY_FULL_LABELS, formatPrice, formatSchedule } from '../../lib/format'
export const WEEK_DAYS: readonly WeekDay[] = [
'MONDAY',
'TUESDAY',
'WEDNESDAY',
'THURSDAY',
'FRIDAY',
'SATURDAY',
'SUNDAY',
]
export const WEEK_DAY_CHIPS: readonly { value: WeekDay; label: string }[] = [
{ value: 'MONDAY', label: 'Lun' },
{ value: 'TUESDAY', label: 'Mar' },
{ value: 'WEDNESDAY', label: 'Mié' },
{ value: 'THURSDAY', label: 'Jue' },
{ value: 'FRIDAY', label: 'Vie' },
{ value: 'SATURDAY', label: 'Sáb' },
{ value: 'SUNDAY', label: 'Dom' },
]
export const PAYMENT_PROVIDERS: readonly {
value: PaymentProvider
name: string
description: string
}[] = [
{
value: 'MERCADO_PAGO',
name: 'Mercado Pago',
description: 'El procesador más usado en Latinoamérica',
},
{
value: 'STRIPE',
name: 'Stripe',
description: 'Cobrá con tarjetas e internacionalmente',
},
]
export const BILLING_TYPES: readonly { value: BillingType; label: string; hint: string }[] = [
{ value: 'MONTHLY', label: 'Mensual', hint: 'Un cobro por mes' },
{ value: 'PER_CLASS', label: 'Por clase', hint: 'Cada clase que asista' },
]