import type { TenantPlan } from "./schema";

export type PlanResource = "properties" | "customers" | "members" | "presentations";

export const PLAN_LIMIT_EXCEEDED = "PLAN_LIMIT_EXCEEDED";

const INF = Number.POSITIVE_INFINITY;

export const PLAN_LIMITS: Record<TenantPlan, Record<PlanResource, number>> = {
  free: {
    properties: 5,
    customers: 10,
    members: 2,
    presentations: 3,
  },
  pro: {
    properties: INF,
    customers: INF,
    members: INF,
    presentations: INF,
  },
};

export const RESOURCE_LABELS: Record<PlanResource, string> = {
  properties: "ilan",
  customers: "müşteri",
  members: "ekip üyesi",
  presentations: "sunum",
};
