@@ -2,27 +2,29 @@ import { Plan } from '../types'
22import * as constants from './constants'
33
44export type ActivePlanID =
5- | '5de54fc1d6c4fded37775e71'
6- | '5de54fc29188ad514567ddb2'
5+ | 'free'
6+ | '5ded8bd7fcf793f771a0264c'
7+ | '5ded8e946bcd42efb0e6094a'
78 | '5de54fc278c2188b4ec17fc7'
89 | '5de54fc30cd5acc31a86e884'
910 | '5dd82d16eb2b11106f941f8d'
11+ | '5de552b6dde41be55811ed15'
1012
1113export type InactivePlanID =
12- | 'free'
1314 | '5d4b8e85d123d1d770d93825'
1415 | '5d4b8e44ab1ba20b9ef4a1ba'
1516 | '5d4b8e4de70bd8c61c13a6a9'
1617 | '5db0d55e138a98f7008a0e53'
1718 | '5dba30bd0621102b5cd0bc44'
1819 | '5dba30bf7deee78cb184291d'
1920 | '5dc89f56bae8d4ae5245423e'
20- | '5dd44e11b2726bb02d540b5e'
2121 | '5db0d37ce59ab2d3c0bbd611'
2222 | '5db0d5fb957ac4e5ed7bbb05'
2323 | '5dd4618db3ebb145268eba7c'
2424 | '5dd467e799537b2378df8eea'
25- | '5de552b6dde41be55811ed15'
25+ | '5de54fc1d6c4fded37775e71'
26+ | '5de54fc29188ad514567ddb2'
27+ | '5dd44e11b2726bb02d540b5e'
2628
2729export type PlanID = ActivePlanID | InactivePlanID
2830
@@ -44,7 +46,7 @@ const _freePlan: Plan & { id: 'free' } = {
4446
4547 cannonicalId : 'free' ,
4648 label : 'Free' ,
47- description : '' ,
49+ description : '\n\n ' ,
4850 amount : 0 ,
4951 currency : 'usd' ,
5052 interval : undefined ,
@@ -109,7 +111,7 @@ export const allPlansObj: Record<PlanID, Plan> = {
109111 currency : 'usd' ,
110112 interval : 'month' ,
111113 intervalCount : 1 ,
112- trialPeriodDays : 7 ,
114+ trialPeriodDays : 0 ,
113115
114116 featureLabels : [
115117 { id : 'columnsLimit' , label : 'Up to 12 columns' , available : true } ,
@@ -152,7 +154,7 @@ export const allPlansObj: Record<PlanID, Plan> = {
152154 currency : 'usd' ,
153155 interval : 'month' ,
154156 intervalCount : 1 ,
155- trialPeriodDays : 7 ,
157+ trialPeriodDays : 0 ,
156158 featureLabels : [
157159 {
158160 id : 'columnsLimit' ,
@@ -203,7 +205,7 @@ export const allPlansObj: Record<PlanID, Plan> = {
203205 currency : 'usd' ,
204206 interval : 'month' ,
205207 intervalCount : 1 ,
206- trialPeriodDays : 7 ,
208+ trialPeriodDays : 0 ,
207209 featureLabels : [
208210 { id : 'columnsLimit' , label : 'Up to 20 columns' , available : true } ,
209211 { id : 'enableFilters' , label : 'All filters' , available : true } ,
@@ -408,7 +410,7 @@ export const allPlansObj: Record<PlanID, Plan> = {
408410
409411 cannonicalId : 'yearly' ,
410412 label : 'Yearly' ,
411- description : '' ,
413+ description : '\n\n ' ,
412414 amount : 9000 ,
413415 currency : 'usd' ,
414416 interval : 'year' ,
@@ -554,7 +556,7 @@ export const allPlansObj: Record<PlanID, Plan> = {
554556 stripeIds : [ 'plan_GHtLrxHfn3DDkr' , 'plan_GHsabiw9GfQH9N' ] ,
555557 paddleProductId : undefined ,
556558
557- banner : '17 % OFF' ,
559+ banner : '30 % OFF' ,
558560
559561 cannonicalId : 'team-monthly' ,
560562 label : 'Team Monthly' ,
@@ -584,10 +586,10 @@ export const allPlansObj: Record<PlanID, Plan> = {
584586 id : '5de54fc30cd5acc31a86e884' ,
585587 type : 'team' ,
586588
587- stripeIds : [ 'plan_GHtMaMxGQtAySy ' , 'plan_GHsqgnLvYnfu2q' ] ,
589+ stripeIds : [ 'plan_GKEKN4EG1Rawje ' , 'plan_GHsqgnLvYnfu2q' ] ,
588590 paddleProductId : undefined ,
589591
590- banner : '38 % OFF' ,
592+ banner : '48 % OFF' ,
591593
592594 cannonicalId : 'team-yearly' ,
593595 label : 'Team Yearly' ,
@@ -625,7 +627,7 @@ export const allPlansObj: Record<PlanID, Plan> = {
625627 cannonicalId : 'lifetime-v1' ,
626628 label : 'Lifetime v1' ,
627629 description : `Lifetime access from v0.9 to v1.9 \n(current: v${ constants . APP_VERSION } )` ,
628- amount : 9900 ,
630+ amount : 14900 ,
629631 currency : 'usd' ,
630632 interval : undefined ,
631633 intervalCount : 1 ,
@@ -650,12 +652,12 @@ export const allPlansObj: Record<PlanID, Plan> = {
650652 stripeIds : [ ] ,
651653 paddleProductId : 577489 ,
652654
653- banner : true ,
655+ banner : '33% OFF' ,
654656
655657 cannonicalId : 'team-lifetime-v1' ,
656658 label : 'Team Lifetime v1' ,
657659 description : `Lifetime access from v0.9 to v1.9 \n(current: v${ constants . APP_VERSION } )` ,
658- amount : 19900 ,
660+ amount : 9900 ,
659661 currency : 'usd' ,
660662 interval : undefined ,
661663 intervalCount : 1 ,
@@ -672,16 +674,74 @@ export const allPlansObj: Record<PlanID, Plan> = {
672674 enablePushNotifications : true ,
673675 } ,
674676 } ,
677+
678+ '5ded8bd7fcf793f771a0264c' : {
679+ id : '5ded8bd7fcf793f771a0264c' ,
680+ type : 'individual' ,
681+
682+ stripeIds : [ 'plan_GKEKNpDiuSZv46' , 'plan_GKDvgmdNgDOOso' ] ,
683+ paddleProductId : undefined ,
684+
685+ banner : true ,
686+
687+ cannonicalId : 'monthly' ,
688+ label : 'Monthly' ,
689+ description : '\n\n' ,
690+ amount : 1200 ,
691+ currency : 'usd' ,
692+ interval : 'month' ,
693+ intervalCount : 1 ,
694+ trialPeriodDays : 0 ,
695+ featureLabels : [ ] ,
696+
697+ featureFlags : {
698+ columnsLimit : constants . COLUMNS_LIMIT ,
699+ enableFilters : true ,
700+ enableSync : true ,
701+ enablePrivateRepositories : true ,
702+ enablePushNotifications : true ,
703+ } ,
704+ } ,
705+
706+ '5ded8e946bcd42efb0e6094a' : {
707+ id : '5ded8e946bcd42efb0e6094a' ,
708+ type : 'individual' ,
709+
710+ stripeIds : [ 'plan_GKELMpfqKbmnQe' , 'plan_GKE7HnxNA4f9tN' ] ,
711+ paddleProductId : undefined ,
712+
713+ banner : '30% OFF' ,
714+
715+ cannonicalId : 'yearly' ,
716+ label : 'Yearly' ,
717+ description : '\n\n' ,
718+ amount : 9900 ,
719+ currency : 'usd' ,
720+ interval : 'year' ,
721+ intervalCount : 1 ,
722+ trialPeriodDays : 0 ,
723+ featureLabels : [ ] ,
724+
725+ featureFlags : {
726+ columnsLimit : constants . COLUMNS_LIMIT ,
727+ enableFilters : true ,
728+ enableSync : true ,
729+ enablePrivateRepositories : true ,
730+ enablePushNotifications : true ,
731+ } ,
732+ } ,
675733}
676734
677735export const allPlans = Object . values ( allPlansObj )
678736
679737export const activePlans : Array < Plan & { id : ActivePlanID } > = [
680- allPlansObj [ '5de54fc1d6c4fded37775e71' ] as Plan & { id : ActivePlanID } ,
681- allPlansObj [ '5de54fc29188ad514567ddb2' ] as Plan & { id : ActivePlanID } ,
738+ freeTrialPlan ,
739+ allPlansObj [ '5ded8bd7fcf793f771a0264c' ] as Plan & { id : ActivePlanID } ,
740+ allPlansObj [ '5ded8e946bcd42efb0e6094a' ] as Plan & { id : ActivePlanID } ,
682741 allPlansObj [ '5de54fc278c2188b4ec17fc7' ] as Plan & { id : ActivePlanID } ,
683742 allPlansObj [ '5de54fc30cd5acc31a86e884' ] as Plan & { id : ActivePlanID } ,
684743 allPlansObj [ '5dd82d16eb2b11106f941f8d' ] as Plan & { id : ActivePlanID } ,
744+ allPlansObj [ '5de552b6dde41be55811ed15' ] as Plan & { id : ActivePlanID } ,
685745]
686746
687747export const activePaidPlans = activePlans . filter ( plan => plan . amount > 0 )
0 commit comments