Skip to content

Commit

Permalink
WIP Per creator per user checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
jvcalderon committed Oct 6, 2023
1 parent 4efb529 commit 2d7bbe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MonthlyQuotaName, QuotaUsage } from "@budibase/types"

export const usage = (): QuotaUsage => {
export const usage = (users: number = 0, creators: number = 0): QuotaUsage => {
return {
_id: "usage_quota",
quotaReset: new Date().toISOString(),
Expand Down Expand Up @@ -58,8 +58,8 @@ export const usage = (): QuotaUsage => {
usageQuota: {
apps: 0,
plugins: 0,
users: 0,
creators: 0,
users,
creators,
userGroups: 0,
rows: 0,
triggers: {},
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/sdk/licensing/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export interface AvailablePrice {
amountMonthly: number
currency: string
duration: PriceDuration
priceId: string
priceId: string,
type?: string
}

export enum PlanModel {
Expand Down

0 comments on commit 2d7bbe6

Please sign in to comment.