From 2e78dd29e39f2f9744682c707276629ef2b79565 Mon Sep 17 00:00:00 2001 From: Darshan Date: Fri, 7 Feb 2025 10:49:47 +0530 Subject: [PATCH] update: billing plans mapping to show enterprise. --- src/lib/constants.ts | 3 ++- src/lib/stores/billing.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 2fc910428..c77f213b5 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -470,7 +470,8 @@ export enum BillingPlan { PRO = 'tier-1', SCALE = 'tier-2', GITHUB_EDUCATION = 'auto-1', - CUSTOM = 'cont-1' + CUSTOM = 'cont-1', + ENTERPRISE = 'ent-1' } export const feedbackDowngradeOptions = [ diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index a5b00f43e..2b5bdf6bb 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -34,7 +34,7 @@ import { user } from './user'; import { browser } from '$app/environment'; import { canSeeBilling } from './roles'; -export type Tier = 'tier-0' | 'tier-1' | 'tier-2' | 'auto-1' | 'cont-1'; +export type Tier = 'tier-0' | 'tier-1' | 'tier-2' | 'auto-1' | 'cont-1' | 'ent-1'; export const roles = [ { @@ -81,6 +81,8 @@ export function tierToPlan(tier: Tier) { return tierGitHubEducation; case BillingPlan.CUSTOM: return tierCustom; + case BillingPlan.ENTERPRISE: + return tierEnterprise; default: return tierFree; } @@ -199,6 +201,11 @@ export const tierCustom: TierData = { description: 'Team on a custom contract' }; +export const tierEnterprise: TierData = { + name: 'Enterprise', + description: 'For enterprises that need more power and premium support.' +}; + export const showUsageRatesModal = writable(false); export function checkForUsageFees(plan: Tier, id: PlanServices) {