plans.ts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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'],
  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. },
  248. USD: {
  249. '2': {
  250. price_in_cents: 55800,
  251. },
  252. '3': {
  253. price_in_cents: 83700,
  254. },
  255. '4': {
  256. price_in_cents: 111600,
  257. },
  258. '5': {
  259. price_in_cents: 139500,
  260. },
  261. '10': {
  262. price_in_cents: 155000,
  263. },
  264. '20': {
  265. price_in_cents: 286000,
  266. },
  267. },
  268. },
  269. collaborator: {
  270. EUR: {
  271. '2': {
  272. price_in_cents: 25000,
  273. },
  274. '3': {
  275. price_in_cents: 37500,
  276. },
  277. '4': {
  278. price_in_cents: 50000,
  279. },
  280. '5': {
  281. price_in_cents: 62500,
  282. },
  283. '10': {
  284. price_in_cents: 69000,
  285. },
  286. '20': {
  287. price_in_cents: 128000,
  288. },
  289. },
  290. USD: {
  291. '2': {
  292. price_in_cents: 27800,
  293. },
  294. '3': {
  295. price_in_cents: 41700,
  296. },
  297. '4': {
  298. price_in_cents: 55600,
  299. },
  300. '5': {
  301. price_in_cents: 69500,
  302. },
  303. '10': {
  304. price_in_cents: 77000,
  305. },
  306. '20': {
  307. price_in_cents: 142000,
  308. },
  309. },
  310. },
  311. },
  312. enterprise: {
  313. professional: {
  314. EUR: {
  315. '2': {
  316. price_in_cents: 51600,
  317. },
  318. '3': {
  319. price_in_cents: 77400,
  320. },
  321. '4': {
  322. price_in_cents: 103200,
  323. },
  324. '5': {
  325. price_in_cents: 129000,
  326. },
  327. '10': {
  328. price_in_cents: 239000,
  329. },
  330. '20': {
  331. price_in_cents: 442000,
  332. },
  333. },
  334. USD: {
  335. '2': {
  336. price_in_cents: 55800,
  337. },
  338. '3': {
  339. price_in_cents: 83700,
  340. },
  341. '4': {
  342. price_in_cents: 111600,
  343. },
  344. '5': {
  345. price_in_cents: 139500,
  346. },
  347. '10': {
  348. price_in_cents: 259000,
  349. },
  350. '20': {
  351. price_in_cents: 478000,
  352. },
  353. },
  354. },
  355. collaborator: {
  356. EUR: {
  357. '2': {
  358. price_in_cents: 25000,
  359. },
  360. '3': {
  361. price_in_cents: 37500,
  362. },
  363. '4': {
  364. price_in_cents: 50000,
  365. },
  366. '5': {
  367. price_in_cents: 62500,
  368. },
  369. '10': {
  370. price_in_cents: 116000,
  371. },
  372. '20': {
  373. price_in_cents: 214000,
  374. },
  375. },
  376. USD: {
  377. '2': {
  378. price_in_cents: 27800,
  379. },
  380. '3': {
  381. price_in_cents: 41700,
  382. },
  383. '4': {
  384. price_in_cents: 55600,
  385. },
  386. '5': {
  387. price_in_cents: 69500,
  388. },
  389. '10': {
  390. price_in_cents: 129000,
  391. },
  392. '20': {
  393. price_in_cents: 238000,
  394. },
  395. },
  396. },
  397. },
  398. }