UNPKG

@appsemble/types

Version:

TypeScript definitions reused within Appsemble internally

71 lines 1.94 kB
export const freePlan = { name: 'free', blocks: 'Appsemble supported basic blocks', backend: 'Standard Appsemble backend', price: '0', appLimit: 3, dailyNotifications: 50, persistentStorage: 1, customContainers: false, sla: 'none', }; export const basicPlan = { name: 'basic', blocks: 'Appsemble supported basic blocks', backend: 'Standard Appsemble backend', price: '5', appLimit: Number.POSITIVE_INFINITY, dailyNotifications: 50, persistentStorage: 1, customContainers: false, sla: 'basic', }; export const standardPlan = { name: 'standard', blocks: 'Appsemble supported basic blocks', backend: 'Standard Appsemble backend', price: '25', appLimit: Number.POSITIVE_INFINITY, dailyNotifications: 5000, persistentStorage: 50, customContainers: false, sla: 'standard', }; export const extensivePlan = { name: 'extensive', blocks: '3rd party building blocks', backend: 'Standard Appsemble backend', price: '50', appLimit: Number.POSITIVE_INFINITY, dailyNotifications: Number.POSITIVE_INFINITY, persistentStorage: 200, customContainers: true, sla: 'extensive', }; export const enterprisePlan = { name: 'enterprise', blocks: '3rd party building blocks', backend: 'Hosting of custom backends', price: '100', appLimit: Number.POSITIVE_INFINITY, dailyNotifications: Number.POSITIVE_INFINITY, persistentStorage: 500, customContainers: true, sla: 'enterprise', }; export function getSubscriptionPlanByName(name) { if (basicPlan.name === name) { return basicPlan; } if (standardPlan.name === name) { return standardPlan; } if (extensivePlan.name === name) { return extensivePlan; } if (enterprisePlan.name === name) { return enterprisePlan; } return freePlan; } //# sourceMappingURL=subscriptionPlans.js.map