plans.ts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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. sizesForHighDenominationCurrencies: ['2', '3', '4', '5', '10', '20'],
  225. }
  226. export const groupPriceByUsageTypeAndSize = {
  227. educational: {
  228. professional: {
  229. EUR: {
  230. '2': {
  231. price_in_cents: 51600,
  232. },
  233. '3': {
  234. price_in_cents: 77400,
  235. },
  236. '4': {
  237. price_in_cents: 103200,
  238. },
  239. '5': {
  240. price_in_cents: 129000,
  241. },
  242. '10': {
  243. price_in_cents: 143000,
  244. },
  245. '20': {
  246. price_in_cents: 264000,
  247. },
  248. '50': {
  249. price_in_cents: 605000,
  250. },
  251. },
  252. USD: {
  253. '2': {
  254. price_in_cents: 55800,
  255. },
  256. '3': {
  257. price_in_cents: 83700,
  258. },
  259. '4': {
  260. price_in_cents: 111600,
  261. },
  262. '5': {
  263. price_in_cents: 139500,
  264. },
  265. '10': {
  266. price_in_cents: 155000,
  267. },
  268. '20': {
  269. price_in_cents: 286000,
  270. },
  271. '50': {
  272. price_in_cents: 655000,
  273. },
  274. },
  275. },
  276. collaborator: {
  277. EUR: {
  278. '2': {
  279. price_in_cents: 25000,
  280. },
  281. '3': {
  282. price_in_cents: 37500,
  283. },
  284. '4': {
  285. price_in_cents: 50000,
  286. },
  287. '5': {
  288. price_in_cents: 62500,
  289. },
  290. '10': {
  291. price_in_cents: 69000,
  292. },
  293. '20': {
  294. price_in_cents: 128000,
  295. },
  296. '50': {
  297. price_in_cents: 295000,
  298. },
  299. },
  300. USD: {
  301. '2': {
  302. price_in_cents: 27800,
  303. },
  304. '3': {
  305. price_in_cents: 41700,
  306. },
  307. '4': {
  308. price_in_cents: 55600,
  309. },
  310. '5': {
  311. price_in_cents: 69500,
  312. },
  313. '10': {
  314. price_in_cents: 77000,
  315. },
  316. '20': {
  317. price_in_cents: 142000,
  318. },
  319. '50': {
  320. price_in_cents: 325000,
  321. },
  322. },
  323. },
  324. },
  325. enterprise: {
  326. professional: {
  327. EUR: {
  328. '2': {
  329. price_in_cents: 51600,
  330. },
  331. '3': {
  332. price_in_cents: 77400,
  333. },
  334. '4': {
  335. price_in_cents: 103200,
  336. },
  337. '5': {
  338. price_in_cents: 129000,
  339. },
  340. '10': {
  341. price_in_cents: 239000,
  342. },
  343. '20': {
  344. price_in_cents: 442000,
  345. },
  346. '50': {
  347. price_in_cents: 1010000,
  348. },
  349. },
  350. USD: {
  351. '2': {
  352. price_in_cents: 55800,
  353. },
  354. '3': {
  355. price_in_cents: 83700,
  356. },
  357. '4': {
  358. price_in_cents: 111600,
  359. },
  360. '5': {
  361. price_in_cents: 139500,
  362. },
  363. '10': {
  364. price_in_cents: 259000,
  365. },
  366. '20': {
  367. price_in_cents: 478000,
  368. },
  369. '50': {
  370. price_in_cents: 1095000,
  371. },
  372. },
  373. },
  374. collaborator: {
  375. EUR: {
  376. '2': {
  377. price_in_cents: 25000,
  378. },
  379. '3': {
  380. price_in_cents: 37500,
  381. },
  382. '4': {
  383. price_in_cents: 50000,
  384. },
  385. '5': {
  386. price_in_cents: 62500,
  387. },
  388. '10': {
  389. price_in_cents: 116000,
  390. },
  391. '20': {
  392. price_in_cents: 214000,
  393. },
  394. '50': {
  395. price_in_cents: 490000,
  396. },
  397. },
  398. USD: {
  399. '2': {
  400. price_in_cents: 27800,
  401. },
  402. '3': {
  403. price_in_cents: 41700,
  404. },
  405. '4': {
  406. price_in_cents: 55600,
  407. },
  408. '5': {
  409. price_in_cents: 69500,
  410. },
  411. '10': {
  412. price_in_cents: 129000,
  413. },
  414. '20': {
  415. price_in_cents: 238000,
  416. },
  417. '50': {
  418. price_in_cents: 545000,
  419. },
  420. },
  421. },
  422. },
  423. }