mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
91 lines
4.2 KiB
TypeScript
91 lines
4.2 KiB
TypeScript
import { type TFuncKey } from 'i18next';
|
|
|
|
import { type SubscriptionPlanQuota } from '@/types/subscriptions';
|
|
|
|
export const quotaItemPhrasesMap: Record<
|
|
keyof SubscriptionPlanQuota,
|
|
TFuncKey<'translation', 'admin_console.subscription.quota_item'>
|
|
> = {
|
|
mauLimit: 'mau_limit.name',
|
|
applicationsLimit: 'applications_limit.name',
|
|
machineToMachineLimit: 'machine_to_machine_limit.name',
|
|
resourcesLimit: 'resources_limit.name',
|
|
scopesPerResourceLimit: 'scopes_per_resource_limit.name',
|
|
customDomainEnabled: 'custom_domain_enabled.name',
|
|
omniSignInEnabled: 'omni_sign_in_enabled.name',
|
|
builtInEmailConnectorEnabled: 'built_in_email_connector_enabled.name',
|
|
socialConnectorsLimit: 'social_connectors_limit.name',
|
|
standardConnectorsLimit: 'standard_connectors_limit.name',
|
|
rolesLimit: 'roles_limit.name',
|
|
scopesPerRoleLimit: 'scopes_per_role_limit.name',
|
|
hooksLimit: 'hooks_limit.name',
|
|
auditLogsRetentionDays: 'audit_logs_retention_days.name',
|
|
communitySupportEnabled: 'community_support_enabled.name',
|
|
ticketSupportResponseTime: 'customer_ticket_support.name',
|
|
};
|
|
|
|
export const quotaItemUnlimitedPhrasesMap: Record<
|
|
keyof SubscriptionPlanQuota,
|
|
TFuncKey<'translation', 'admin_console.subscription.quota_item'>
|
|
> = {
|
|
mauLimit: 'mau_limit.unlimited',
|
|
applicationsLimit: 'applications_limit.unlimited',
|
|
machineToMachineLimit: 'machine_to_machine_limit.unlimited',
|
|
resourcesLimit: 'resources_limit.unlimited',
|
|
scopesPerResourceLimit: 'scopes_per_resource_limit.unlimited',
|
|
customDomainEnabled: 'custom_domain_enabled.unlimited',
|
|
omniSignInEnabled: 'omni_sign_in_enabled.unlimited',
|
|
builtInEmailConnectorEnabled: 'built_in_email_connector_enabled.unlimited',
|
|
socialConnectorsLimit: 'social_connectors_limit.unlimited',
|
|
standardConnectorsLimit: 'standard_connectors_limit.unlimited',
|
|
rolesLimit: 'roles_limit.unlimited',
|
|
scopesPerRoleLimit: 'scopes_per_role_limit.unlimited',
|
|
hooksLimit: 'hooks_limit.unlimited',
|
|
auditLogsRetentionDays: 'audit_logs_retention_days.unlimited',
|
|
communitySupportEnabled: 'community_support_enabled.unlimited',
|
|
ticketSupportResponseTime: 'customer_ticket_support.unlimited',
|
|
};
|
|
|
|
export const quotaItemLimitedPhrasesMap: Record<
|
|
keyof SubscriptionPlanQuota,
|
|
TFuncKey<'translation', 'admin_console.subscription.quota_item'>
|
|
> = {
|
|
mauLimit: 'mau_limit.limited',
|
|
applicationsLimit: 'applications_limit.limited',
|
|
machineToMachineLimit: 'machine_to_machine_limit.limited',
|
|
resourcesLimit: 'resources_limit.limited',
|
|
scopesPerResourceLimit: 'scopes_per_resource_limit.limited',
|
|
customDomainEnabled: 'custom_domain_enabled.limited',
|
|
omniSignInEnabled: 'omni_sign_in_enabled.limited',
|
|
builtInEmailConnectorEnabled: 'built_in_email_connector_enabled.limited',
|
|
socialConnectorsLimit: 'social_connectors_limit.limited',
|
|
standardConnectorsLimit: 'standard_connectors_limit.limited',
|
|
rolesLimit: 'roles_limit.limited',
|
|
scopesPerRoleLimit: 'scopes_per_role_limit.limited',
|
|
hooksLimit: 'hooks_limit.limited',
|
|
auditLogsRetentionDays: 'audit_logs_retention_days.limited',
|
|
communitySupportEnabled: 'community_support_enabled.limited',
|
|
ticketSupportResponseTime: 'customer_ticket_support.limited',
|
|
};
|
|
|
|
export const quotaItemNotEligiblePhrasesMap: Record<
|
|
keyof SubscriptionPlanQuota,
|
|
TFuncKey<'translation', 'admin_console.subscription.quota_item'>
|
|
> = {
|
|
mauLimit: 'mau_limit.not_eligible',
|
|
applicationsLimit: 'applications_limit.not_eligible',
|
|
machineToMachineLimit: 'machine_to_machine_limit.not_eligible',
|
|
resourcesLimit: 'resources_limit.not_eligible',
|
|
scopesPerResourceLimit: 'scopes_per_resource_limit.not_eligible',
|
|
customDomainEnabled: 'custom_domain_enabled.not_eligible',
|
|
omniSignInEnabled: 'omni_sign_in_enabled.not_eligible',
|
|
builtInEmailConnectorEnabled: 'built_in_email_connector_enabled.not_eligible',
|
|
socialConnectorsLimit: 'social_connectors_limit.not_eligible',
|
|
standardConnectorsLimit: 'standard_connectors_limit.not_eligible',
|
|
rolesLimit: 'roles_limit.not_eligible',
|
|
scopesPerRoleLimit: 'scopes_per_role_limit.not_eligible',
|
|
hooksLimit: 'hooks_limit.not_eligible',
|
|
auditLogsRetentionDays: 'audit_logs_retention_days.not_eligible',
|
|
communitySupportEnabled: 'community_support_enabled.not_eligible',
|
|
ticketSupportResponseTime: 'customer_ticket_support.not_eligible',
|
|
};
|