Remove business minimum quantity from backend
This commit is contained in:
parent
6026794e89
commit
38d0fd943a
|
@ -28,7 +28,6 @@ export const plan = (type: PlanType = PlanType.FREE): PurchasedPlan => {
|
||||||
return {
|
return {
|
||||||
type,
|
type,
|
||||||
usesInvoicing: false,
|
usesInvoicing: false,
|
||||||
minUsers: 1,
|
|
||||||
model: PlanModel.PER_USER,
|
model: PlanModel.PER_USER,
|
||||||
price: price(),
|
price: price(),
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@ export enum PriceDuration {
|
||||||
export interface AvailablePlan {
|
export interface AvailablePlan {
|
||||||
type: PlanType
|
type: PlanType
|
||||||
maxUsers: number
|
maxUsers: number
|
||||||
minUsers: number
|
|
||||||
prices: AvailablePrice[]
|
prices: AvailablePrice[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +37,6 @@ export interface PurchasedPlan {
|
||||||
type: PlanType
|
type: PlanType
|
||||||
model: PlanModel
|
model: PlanModel
|
||||||
usesInvoicing: boolean
|
usesInvoicing: boolean
|
||||||
minUsers: number
|
|
||||||
price?: PurchasedPrice
|
price?: PurchasedPrice
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,12 +55,6 @@ export const isConstantQuota = (
|
||||||
return quotaType === QuotaType.CONSTANT
|
return quotaType === QuotaType.CONSTANT
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Minimums {
|
|
||||||
users: number
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PlanMinimums = { [key in PlanType]: Minimums }
|
|
||||||
|
|
||||||
export type PlanQuotas = { [key in PlanType]: Quotas | undefined }
|
export type PlanQuotas = { [key in PlanType]: Quotas | undefined }
|
||||||
|
|
||||||
export type MonthlyQuotas = {
|
export type MonthlyQuotas = {
|
||||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -1486,15 +1486,15 @@
|
||||||
pouchdb-promise "^6.0.4"
|
pouchdb-promise "^6.0.4"
|
||||||
through2 "^2.0.0"
|
through2 "^2.0.0"
|
||||||
|
|
||||||
"@budibase/pro@2.5.6-alpha.40":
|
"@budibase/pro@2.5.6-alpha.41":
|
||||||
version "2.5.6-alpha.40"
|
version "2.5.6-alpha.41"
|
||||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-2.5.6-alpha.40.tgz#96e85d22b61425bfd055377864938245c6ef17ec"
|
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-2.5.6-alpha.41.tgz#2632b398159211bf64bf6caff9753c877b6fc09d"
|
||||||
integrity sha512-hWKPVbGbjWcO3evIViICOL6g4hsv051lwUqCLRdZnSIiKCPlrr5JSsiINFinMHof55rHK5LALbGzJL4Ju82UeQ==
|
integrity sha512-8Zfm+RtcXY77gdXXHti8QT+Vt+1ApuVqYL3KCkxBVbpzgQci/F3mipNXUX8bEy/y+QYAdgn6psDTWAqyr9VALg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@budibase/backend-core" "2.5.6-alpha.40"
|
"@budibase/backend-core" "2.5.6-alpha.41"
|
||||||
"@budibase/shared-core" "2.4.44-alpha.1"
|
"@budibase/shared-core" "2.4.44-alpha.1"
|
||||||
"@budibase/string-templates" "2.4.44-alpha.1"
|
"@budibase/string-templates" "2.4.44-alpha.1"
|
||||||
"@budibase/types" "2.5.6-alpha.40"
|
"@budibase/types" "2.5.6-alpha.41"
|
||||||
"@koa/router" "8.0.8"
|
"@koa/router" "8.0.8"
|
||||||
bull "4.10.1"
|
bull "4.10.1"
|
||||||
joi "17.6.0"
|
joi "17.6.0"
|
||||||
|
|
Loading…
Reference in New Issue