mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
🗃️ Add Enterprise to Plan enum
This commit is contained in:
parent
ee8a41ceae
commit
98441264ec
@ -9,6 +9,7 @@ export const planColorSchemes: Record<Plan, ThemeTypings["colorSchemes"]> = {
|
||||
[Plan.FREE]: "gray",
|
||||
[Plan.CUSTOM]: "yellow",
|
||||
[Plan.UNLIMITED]: "yellow",
|
||||
[Plan.ENTERPRISE]: "yellow",
|
||||
};
|
||||
|
||||
export const PlanTag = ({
|
||||
@ -83,5 +84,12 @@ export const PlanTag = ({
|
||||
</Tag>
|
||||
);
|
||||
}
|
||||
case Plan.ENTERPRISE: {
|
||||
return (
|
||||
<Tag colorScheme={planColorSchemes[Plan.ENTERPRISE]} {...props}>
|
||||
Enterprise
|
||||
</Tag>
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -2322,7 +2322,8 @@
|
||||
"LIFETIME",
|
||||
"OFFERED",
|
||||
"CUSTOM",
|
||||
"UNLIMITED"
|
||||
"UNLIMITED",
|
||||
"ENTERPRISE"
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -2442,7 +2443,8 @@
|
||||
"LIFETIME",
|
||||
"OFFERED",
|
||||
"CUSTOM",
|
||||
"UNLIMITED"
|
||||
"UNLIMITED",
|
||||
"ENTERPRISE"
|
||||
]
|
||||
},
|
||||
"stripeId": {
|
||||
@ -2631,7 +2633,8 @@
|
||||
"LIFETIME",
|
||||
"OFFERED",
|
||||
"CUSTOM",
|
||||
"UNLIMITED"
|
||||
"UNLIMITED",
|
||||
"ENTERPRISE"
|
||||
]
|
||||
},
|
||||
"stripeId": {
|
||||
@ -10381,7 +10384,8 @@
|
||||
"LIFETIME",
|
||||
"OFFERED",
|
||||
"CUSTOM",
|
||||
"UNLIMITED"
|
||||
"UNLIMITED",
|
||||
"ENTERPRISE"
|
||||
]
|
||||
},
|
||||
"stripeId": {
|
||||
|
||||
@ -10,6 +10,7 @@ export const chatsLimits = {
|
||||
[Plan.FREE]: 200,
|
||||
[Plan.STARTER]: 2000,
|
||||
[Plan.PRO]: 10000,
|
||||
[Plan.ENTERPRISE]: 100000,
|
||||
} as const;
|
||||
|
||||
export const seatsLimits = {
|
||||
@ -18,6 +19,7 @@ export const seatsLimits = {
|
||||
[Plan.STARTER]: 2,
|
||||
[Plan.PRO]: 5,
|
||||
[Plan.LIFETIME]: 8,
|
||||
[Plan.ENTERPRISE]: 10,
|
||||
} as const;
|
||||
|
||||
export const starterChatTiers = [
|
||||
|
||||
@ -448,6 +448,7 @@ enum Plan {
|
||||
OFFERED
|
||||
CUSTOM
|
||||
UNLIMITED
|
||||
ENTERPRISE
|
||||
}
|
||||
|
||||
enum CollaborationType {
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
"db:generate:mysql": "DATABASE_URL=mysql:// dotenv -e ./.env -e ../../.env -- tsx scripts/db-generate.ts",
|
||||
"db:push": "dotenv -e ./.env -e ../../.env -- tsx scripts/db-push.ts",
|
||||
"migrate:deploy": "dotenv -e ./.env -e ../../.env -- tsx scripts/migrate-deploy.ts",
|
||||
"migrate:dev": "dotenv -e ./.env -e ../../.env -- prisma migrate dev --create-only --schema postgresql/schema.prisma",
|
||||
"create-migration-file": "dotenv -e ./.env -e ../../.env -- prisma migrate dev --create-only --schema postgresql/schema.prisma",
|
||||
"db:migrate": "bun migrate:deploy"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
-- AlterEnum
|
||||
ALTER TYPE "Plan" ADD VALUE 'ENTERPRISE';
|
||||
@ -418,6 +418,7 @@ enum Plan {
|
||||
OFFERED
|
||||
CUSTOM
|
||||
UNLIMITED
|
||||
ENTERPRISE
|
||||
}
|
||||
|
||||
enum CollaborationType {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user