import { MonthlyQuotaName, QuotaUsage } from "@budibase/types"
export const usage = (users: number = 0, creators: number = 0): QuotaUsage => {
return {
_id: "usage_quota",
quotaReset: new Date().toISOString(),
apps: {
app_1: {
// @ts-ignore - the apps definition doesn't match up to actual usage
usageQuota: {
rows: 0,
},
monthly: {
"01-2023": {
automations: 0,
dayPasses: 0,
queries: 0,
triggers: {},
breakdown: {
rowQueries: {
parent: MonthlyQuotaName.QUERIES,
values: {
row_1: 0,
row_2: 0,
datasourceQueries: {
ds_1: 0,
ds_2: 0,
automations: {
parent: MonthlyQuotaName.AUTOMATIONS,
auto_1: 0,
auto_2: 0,
"02-2023": {
current: {
apps: 0,
plugins: 0,
users,
creators,
userGroups: 0,
}