| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- import { GroupPlans } from '@ol-types/subscription/dashboard/group-plans'
- import { Features, Plan } from '@ol-types/subscription/plan'
- const features = {
- student: {
- aiUsageQuota: 'basic',
- collaborators: 10,
- dropbox: true,
- versioning: true,
- github: true,
- templates: true,
- references: true,
- referencesSearch: true,
- gitBridge: true,
- zotero: true,
- mendeley: true,
- compileTimeout: 240,
- compileGroup: 'priority',
- trackChanges: true,
- symbolPalette: true,
- },
- personal: {
- aiUsageQuota: 'basic',
- collaborators: 1,
- dropbox: true,
- versioning: true,
- github: true,
- gitBridge: true,
- templates: true,
- references: true,
- referencesSearch: true,
- zotero: true,
- mendeley: true,
- compileTimeout: 240,
- compileGroup: 'priority',
- trackChanges: false,
- symbolPalette: true,
- },
- collaborator: {
- aiUsageQuota: 'standard',
- collaborators: 10,
- dropbox: true,
- versioning: true,
- github: true,
- templates: true,
- references: true,
- referencesSearch: true,
- zotero: true,
- gitBridge: true,
- mendeley: true,
- compileTimeout: 240,
- compileGroup: 'priority',
- trackChanges: true,
- symbolPalette: true,
- },
- professional: {
- aiUsageQuota: 'unlimited',
- collaborators: -1,
- dropbox: true,
- versioning: true,
- github: true,
- templates: true,
- references: true,
- referencesSearch: true,
- zotero: true,
- gitBridge: true,
- mendeley: true,
- compileTimeout: 240,
- compileGroup: 'priority',
- trackChanges: true,
- symbolPalette: true,
- },
- } satisfies Record<string, Features>
- const studentAccounts: Array<Plan> = [
- {
- planCode: 'student',
- name: 'Student monthly',
- price_in_cents: 1000,
- features: features.student,
- featureDescription: [],
- },
- {
- planCode: 'student-annual',
- name: 'Student annual',
- price_in_cents: 9900,
- annual: true,
- features: features.student,
- featureDescription: [],
- },
- {
- planCode: 'student_free_trial',
- name: 'Student monthly',
- price_in_cents: 800,
- features: features.student,
- hideFromUsers: true,
- featureDescription: [],
- },
- {
- planCode: 'student_free_trial_7_days',
- name: 'Student monthly',
- price_in_cents: 1000,
- features: features.student,
- hideFromUsers: true,
- featureDescription: [],
- },
- ]
- const individualMonthlyPlans: Array<Plan> = [
- {
- planCode: 'paid-personal',
- name: 'Personal',
- price_in_cents: 1500,
- features: features.personal,
- featureDescription: [],
- },
- {
- planCode: 'paid-personal_free_trial_7_days',
- name: 'Personal (hidden)',
- price_in_cents: 1500,
- features: features.personal,
- featureDescription: [],
- hideFromUsers: true,
- },
- {
- planCode: 'collaborator',
- name: 'Standard monthly',
- price_in_cents: 2300,
- features: features.collaborator,
- featureDescription: [],
- },
- {
- planCode: 'professional',
- name: 'Pro monthly',
- price_in_cents: 4500,
- features: features.professional,
- featureDescription: [],
- },
- {
- planCode: 'collaborator_free_trial',
- name: 'Standard monthly (hidden)',
- price_in_cents: 1900,
- features: features.collaborator,
- hideFromUsers: true,
- featureDescription: [],
- },
- {
- planCode: 'collaborator_free_trial_14_days',
- name: 'Standard monthly (hidden)',
- price_in_cents: 1900,
- features: features.collaborator,
- hideFromUsers: true,
- featureDescription: [],
- },
- {
- planCode: 'collaborator_free_trial_7_days',
- name: 'Standard monthly (hidden)',
- price_in_cents: 2300,
- features: features.collaborator,
- hideFromUsers: true,
- featureDescription: [],
- },
- {
- planCode: 'collaborator-annual_free_trial',
- name: 'Standard annual (hidden)',
- price_in_cents: 18000,
- features: features.collaborator,
- hideFromUsers: true,
- featureDescription: [],
- },
- {
- planCode: 'professional_free_trial',
- name: 'Pro monthly (hidden)',
- price_in_cents: 3000,
- features: features.professional,
- hideFromUsers: true,
- featureDescription: [],
- },
- {
- planCode: 'professional_free_trial_7_days',
- name: 'Pro monthly (hidden)',
- price_in_cents: 4500,
- features: features.professional,
- hideFromUsers: true,
- featureDescription: [],
- },
- ]
- const individualAnnualPlans: Array<Plan> = [
- {
- planCode: 'paid-personal-annual',
- name: 'Personal annual',
- price_in_cents: 13900,
- annual: true,
- features: features.personal,
- featureDescription: [],
- },
- {
- planCode: 'collaborator-annual',
- name: 'Standard annual',
- price_in_cents: 21900,
- annual: true,
- features: features.collaborator,
- featureDescription: [],
- },
- {
- planCode: 'professional-annual',
- name: 'Pro annual',
- price_in_cents: 42900,
- annual: true,
- features: features.professional,
- featureDescription: [],
- },
- ]
- export const plans = [
- ...studentAccounts,
- ...individualMonthlyPlans,
- ...individualAnnualPlans,
- ]
- export const groupPlans: GroupPlans = {
- plans: [
- {
- display: 'Standard',
- code: 'collaborator',
- },
- {
- display: 'Pro',
- code: 'professional',
- },
- ],
- sizes: ['2', '3', '4', '5', '10', '20'],
- }
- export const groupPriceByUsageTypeAndSize = {
- educational: {
- professional: {
- EUR: {
- '2': {
- price_in_cents: 51600,
- },
- '3': {
- price_in_cents: 77400,
- },
- '4': {
- price_in_cents: 103200,
- },
- '5': {
- price_in_cents: 129000,
- },
- '10': {
- price_in_cents: 143000,
- },
- '20': {
- price_in_cents: 264000,
- },
- },
- USD: {
- '2': {
- price_in_cents: 55800,
- },
- '3': {
- price_in_cents: 83700,
- },
- '4': {
- price_in_cents: 111600,
- },
- '5': {
- price_in_cents: 139500,
- },
- '10': {
- price_in_cents: 155000,
- },
- '20': {
- price_in_cents: 286000,
- },
- },
- },
- collaborator: {
- EUR: {
- '2': {
- price_in_cents: 25000,
- },
- '3': {
- price_in_cents: 37500,
- },
- '4': {
- price_in_cents: 50000,
- },
- '5': {
- price_in_cents: 62500,
- },
- '10': {
- price_in_cents: 69000,
- },
- '20': {
- price_in_cents: 128000,
- },
- },
- USD: {
- '2': {
- price_in_cents: 27800,
- },
- '3': {
- price_in_cents: 41700,
- },
- '4': {
- price_in_cents: 55600,
- },
- '5': {
- price_in_cents: 69500,
- },
- '10': {
- price_in_cents: 77000,
- },
- '20': {
- price_in_cents: 142000,
- },
- },
- },
- },
- enterprise: {
- professional: {
- EUR: {
- '2': {
- price_in_cents: 51600,
- },
- '3': {
- price_in_cents: 77400,
- },
- '4': {
- price_in_cents: 103200,
- },
- '5': {
- price_in_cents: 129000,
- },
- '10': {
- price_in_cents: 239000,
- },
- '20': {
- price_in_cents: 442000,
- },
- },
- USD: {
- '2': {
- price_in_cents: 55800,
- },
- '3': {
- price_in_cents: 83700,
- },
- '4': {
- price_in_cents: 111600,
- },
- '5': {
- price_in_cents: 139500,
- },
- '10': {
- price_in_cents: 259000,
- },
- '20': {
- price_in_cents: 478000,
- },
- },
- },
- collaborator: {
- EUR: {
- '2': {
- price_in_cents: 25000,
- },
- '3': {
- price_in_cents: 37500,
- },
- '4': {
- price_in_cents: 50000,
- },
- '5': {
- price_in_cents: 62500,
- },
- '10': {
- price_in_cents: 116000,
- },
- '20': {
- price_in_cents: 214000,
- },
- },
- USD: {
- '2': {
- price_in_cents: 27800,
- },
- '3': {
- price_in_cents: 41700,
- },
- '4': {
- price_in_cents: 55600,
- },
- '5': {
- price_in_cents: 69500,
- },
- '10': {
- price_in_cents: 129000,
- },
- '20': {
- price_in_cents: 238000,
- },
- },
- },
- },
- }
|