plans.ts 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. import { GroupPlans } from '../../../../../types/subscription/dashboard/group-plans'
  2. import { Plan } from '../../../../../types/subscription/plan'
  3. const features = {
  4. student: {
  5. collaborators: 6,
  6. dropbox: true,
  7. versioning: true,
  8. github: true,
  9. templates: true,
  10. references: true,
  11. referencesSearch: true,
  12. gitBridge: true,
  13. zotero: true,
  14. mendeley: true,
  15. compileTimeout: 240,
  16. compileGroup: 'priority',
  17. trackChanges: true,
  18. symbolPalette: true,
  19. },
  20. personal: {
  21. collaborators: 1,
  22. dropbox: true,
  23. versioning: true,
  24. github: true,
  25. gitBridge: true,
  26. templates: true,
  27. references: true,
  28. referencesSearch: true,
  29. zotero: true,
  30. mendeley: true,
  31. compileTimeout: 240,
  32. compileGroup: 'priority',
  33. trackChanges: false,
  34. symbolPalette: true,
  35. },
  36. collaborator: {
  37. collaborators: 10,
  38. dropbox: true,
  39. versioning: true,
  40. github: true,
  41. templates: true,
  42. references: true,
  43. referencesSearch: true,
  44. zotero: true,
  45. gitBridge: true,
  46. mendeley: true,
  47. compileTimeout: 240,
  48. compileGroup: 'priority',
  49. trackChanges: true,
  50. symbolPalette: true,
  51. },
  52. professional: {
  53. collaborators: -1,
  54. dropbox: true,
  55. versioning: true,
  56. github: true,
  57. templates: true,
  58. references: true,
  59. referencesSearch: true,
  60. zotero: true,
  61. gitBridge: true,
  62. mendeley: true,
  63. compileTimeout: 240,
  64. compileGroup: 'priority',
  65. trackChanges: true,
  66. symbolPalette: true,
  67. },
  68. }
  69. const studentAccounts: Array<Plan> = [
  70. {
  71. planCode: 'student',
  72. name: 'Student',
  73. price_in_cents: 1000,
  74. features: features.student,
  75. featureDescription: [],
  76. },
  77. {
  78. planCode: 'student-annual',
  79. name: 'Student Annual',
  80. price_in_cents: 9900,
  81. annual: true,
  82. features: features.student,
  83. featureDescription: [],
  84. },
  85. {
  86. planCode: 'student_free_trial',
  87. name: 'Student',
  88. price_in_cents: 800,
  89. features: features.student,
  90. hideFromUsers: true,
  91. featureDescription: [],
  92. },
  93. {
  94. planCode: 'student_free_trial_7_days',
  95. name: 'Student',
  96. price_in_cents: 1000,
  97. features: features.student,
  98. hideFromUsers: true,
  99. featureDescription: [],
  100. },
  101. ]
  102. const individualMonthlyPlans: Array<Plan> = [
  103. {
  104. planCode: 'paid-personal',
  105. name: 'Personal',
  106. price_in_cents: 1500,
  107. features: features.personal,
  108. featureDescription: [],
  109. },
  110. {
  111. planCode: 'paid-personal_free_trial_7_days',
  112. name: 'Personal (Hidden)',
  113. price_in_cents: 1500,
  114. features: features.personal,
  115. featureDescription: [],
  116. hideFromUsers: true,
  117. },
  118. {
  119. planCode: 'collaborator',
  120. name: 'Standard (Collaborator)',
  121. price_in_cents: 2300,
  122. features: features.collaborator,
  123. featureDescription: [],
  124. },
  125. {
  126. planCode: 'professional',
  127. name: 'Professional',
  128. price_in_cents: 4500,
  129. features: features.professional,
  130. featureDescription: [],
  131. },
  132. {
  133. planCode: 'collaborator_free_trial',
  134. name: 'Standard (Collaborator) (Hidden)',
  135. price_in_cents: 1900,
  136. features: features.collaborator,
  137. hideFromUsers: true,
  138. featureDescription: [],
  139. },
  140. {
  141. planCode: 'collaborator_free_trial_14_days',
  142. name: 'Standard (Collaborator) (Hidden)',
  143. price_in_cents: 1900,
  144. features: features.collaborator,
  145. hideFromUsers: true,
  146. featureDescription: [],
  147. },
  148. {
  149. planCode: 'collaborator_free_trial_7_days',
  150. name: 'Standard (Collaborator) (Hidden)',
  151. price_in_cents: 2300,
  152. features: features.collaborator,
  153. hideFromUsers: true,
  154. featureDescription: [],
  155. },
  156. {
  157. planCode: 'collaborator-annual_free_trial',
  158. name: 'Standard (Collaborator) Annual (Hidden)',
  159. price_in_cents: 18000,
  160. features: features.collaborator,
  161. hideFromUsers: true,
  162. featureDescription: [],
  163. },
  164. {
  165. planCode: 'professional_free_trial',
  166. name: 'Professional (Hidden)',
  167. price_in_cents: 3000,
  168. features: features.professional,
  169. hideFromUsers: true,
  170. featureDescription: [],
  171. },
  172. {
  173. planCode: 'professional_free_trial_7_days',
  174. name: 'Professional (Hidden)',
  175. price_in_cents: 4500,
  176. features: features.professional,
  177. hideFromUsers: true,
  178. featureDescription: [],
  179. },
  180. ]
  181. const individualAnnualPlans: Array<Plan> = [
  182. {
  183. planCode: 'paid-personal-annual',
  184. name: 'Personal Annual',
  185. price_in_cents: 13900,
  186. annual: true,
  187. features: features.personal,
  188. featureDescription: [],
  189. },
  190. {
  191. planCode: 'collaborator-annual',
  192. name: 'Standard (Collaborator) Annual',
  193. price_in_cents: 21900,
  194. annual: true,
  195. features: features.collaborator,
  196. featureDescription: [],
  197. },
  198. {
  199. planCode: 'professional-annual',
  200. name: 'Professional Annual',
  201. price_in_cents: 42900,
  202. annual: true,
  203. features: features.professional,
  204. featureDescription: [],
  205. },
  206. ]
  207. export const plans = [
  208. ...studentAccounts,
  209. ...individualMonthlyPlans,
  210. ...individualAnnualPlans,
  211. ]
  212. export const groupPlans: GroupPlans = {
  213. plans: [
  214. {
  215. display: 'Standard',
  216. code: 'collaborator',
  217. },
  218. {
  219. display: 'Professional',
  220. code: 'professional',
  221. },
  222. ],
  223. sizes: ['2', '3', '4', '5', '10', '20', '50'],
  224. }
  225. export const groupPriceByUsageTypeAndSize = {
  226. educational: {
  227. professional: {
  228. EUR: {
  229. '2': {
  230. price_in_cents: 51600,
  231. },
  232. '3': {
  233. price_in_cents: 77400,
  234. },
  235. '4': {
  236. price_in_cents: 103200,
  237. },
  238. '5': {
  239. price_in_cents: 129000,
  240. },
  241. '10': {
  242. price_in_cents: 143000,
  243. },
  244. '20': {
  245. price_in_cents: 264000,
  246. },
  247. '50': {
  248. price_in_cents: 605000,
  249. },
  250. },
  251. USD: {
  252. '2': {
  253. price_in_cents: 55800,
  254. },
  255. '3': {
  256. price_in_cents: 83700,
  257. },
  258. '4': {
  259. price_in_cents: 111600,
  260. },
  261. '5': {
  262. price_in_cents: 139500,
  263. },
  264. '10': {
  265. price_in_cents: 155000,
  266. },
  267. '20': {
  268. price_in_cents: 286000,
  269. },
  270. '50': {
  271. price_in_cents: 655000,
  272. },
  273. },
  274. },
  275. collaborator: {
  276. EUR: {
  277. '2': {
  278. price_in_cents: 25000,
  279. },
  280. '3': {
  281. price_in_cents: 37500,
  282. },
  283. '4': {
  284. price_in_cents: 50000,
  285. },
  286. '5': {
  287. price_in_cents: 62500,
  288. },
  289. '10': {
  290. price_in_cents: 69000,
  291. },
  292. '20': {
  293. price_in_cents: 128000,
  294. },
  295. '50': {
  296. price_in_cents: 295000,
  297. },
  298. },
  299. USD: {
  300. '2': {
  301. price_in_cents: 27800,
  302. },
  303. '3': {
  304. price_in_cents: 41700,
  305. },
  306. '4': {
  307. price_in_cents: 55600,
  308. },
  309. '5': {
  310. price_in_cents: 69500,
  311. },
  312. '10': {
  313. price_in_cents: 77000,
  314. },
  315. '20': {
  316. price_in_cents: 142000,
  317. },
  318. '50': {
  319. price_in_cents: 325000,
  320. },
  321. },
  322. },
  323. },
  324. enterprise: {
  325. professional: {
  326. EUR: {
  327. '2': {
  328. price_in_cents: 51600,
  329. },
  330. '3': {
  331. price_in_cents: 77400,
  332. },
  333. '4': {
  334. price_in_cents: 103200,
  335. },
  336. '5': {
  337. price_in_cents: 129000,
  338. },
  339. '10': {
  340. price_in_cents: 239000,
  341. },
  342. '20': {
  343. price_in_cents: 442000,
  344. },
  345. '50': {
  346. price_in_cents: 1010000,
  347. },
  348. },
  349. USD: {
  350. '2': {
  351. price_in_cents: 55800,
  352. },
  353. '3': {
  354. price_in_cents: 83700,
  355. },
  356. '4': {
  357. price_in_cents: 111600,
  358. },
  359. '5': {
  360. price_in_cents: 139500,
  361. },
  362. '10': {
  363. price_in_cents: 259000,
  364. },
  365. '20': {
  366. price_in_cents: 478000,
  367. },
  368. '50': {
  369. price_in_cents: 1095000,
  370. },
  371. },
  372. },
  373. collaborator: {
  374. EUR: {
  375. '2': {
  376. price_in_cents: 25000,
  377. },
  378. '3': {
  379. price_in_cents: 37500,
  380. },
  381. '4': {
  382. price_in_cents: 50000,
  383. },
  384. '5': {
  385. price_in_cents: 62500,
  386. },
  387. '10': {
  388. price_in_cents: 116000,
  389. },
  390. '20': {
  391. price_in_cents: 214000,
  392. },
  393. '50': {
  394. price_in_cents: 490000,
  395. },
  396. },
  397. USD: {
  398. '2': {
  399. price_in_cents: 27800,
  400. },
  401. '3': {
  402. price_in_cents: 41700,
  403. },
  404. '4': {
  405. price_in_cents: 55600,
  406. },
  407. '5': {
  408. price_in_cents: 69500,
  409. },
  410. '10': {
  411. price_in_cents: 129000,
  412. },
  413. '20': {
  414. price_in_cents: 238000,
  415. },
  416. '50': {
  417. price_in_cents: 545000,
  418. },
  419. },
  420. },
  421. },
  422. }