Skip to content

Commit

Permalink
feat(schemas): add new pro202411 reserved plan ID (#6839)
Browse files Browse the repository at this point in the history
* feat(schemas): add new pro202411 reserved plan ID

add new Pro202411 reserved plan ID.

* fix(schemas,console): update comments and fix console

update comment and fix console missing key
  • Loading branch information
simeng-li authored Nov 28, 2024
1 parent 06fd450 commit 91a4de2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/console/src/components/SkuName/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const registeredPlanNamePhraseMap: Record<
> = {
[ReservedPlanId.Free]: 'free_plan',
[ReservedPlanId.Pro]: 'pro_plan',
[ReservedPlanId.Pro202411]: 'pro_plan',
[ReservedPlanId.Development]: 'dev_plan',
[ReservedPlanId.Admin]: 'admin_plan',
} satisfies Record<ReservedPlanId, TFuncKey<'translation', 'admin_console.subscription'>>;
Expand Down
9 changes: 9 additions & 0 deletions packages/schemas/src/consts/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@
*/
export enum ReservedPlanId {
Free = 'free',
/**
* @deprecated
* Grandfathered Pro plan ID deprecated from 2024-11.
* Use {@link Pro202411} instead.
*/
Pro = 'pro',
Development = 'dev',
/**
* This plan ID is reserved for Admin tenant.
* In our new pricing model, we plan to add a special plan for Admin tenant, previously, admin tenant is using the `pro` plan, which is not suitable.
*/
Admin = 'admin',
/**
* The latest Pro plan ID applied from 2024-11.
*/
Pro202411 = 'pro-202411',
}

0 comments on commit 91a4de2

Please sign in to comment.