summaryrefslogtreecommitdiff
path: root/packages/shared/source/index.ts
blob: 335a74e23ddcd375b203fb8d9e64e87df0d19e4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export const APPLICATION_NAME = "asa.news"

export const TIER_LIMITS = {
  free: {
    maximumFeeds: 10,
    maximumFolders: 3,
    maximumMutedKeywords: 5,
    maximumCustomFeeds: 1,
    historyRetentionDays: 14,
    refreshIntervalSeconds: 1800,
    allowsAuthenticatedFeeds: false,
    allowsExport: false,
    allowsManualRefresh: false,
    allowsApiAccess: false,
    allowsWebhooks: false,
    allowsOfflineReading: false,
  },
  pro: {
    maximumFeeds: 200,
    maximumFolders: 10000,
    maximumMutedKeywords: 10000,
    maximumCustomFeeds: 1000,
    historyRetentionDays: 90,
    refreshIntervalSeconds: 300,
    allowsAuthenticatedFeeds: true,
    allowsExport: true,
    allowsManualRefresh: true,
    allowsApiAccess: false,
    allowsWebhooks: false,
    allowsOfflineReading: true,
  },
  developer: {
    maximumFeeds: 500,
    maximumFolders: 10000,
    maximumMutedKeywords: 10000,
    maximumCustomFeeds: 1000,
    historyRetentionDays: 90,
    refreshIntervalSeconds: 300,
    allowsAuthenticatedFeeds: true,
    allowsExport: true,
    allowsManualRefresh: true,
    allowsApiAccess: true,
    allowsWebhooks: true,
    allowsOfflineReading: true,
  },
} as const

export type SubscriptionTier = keyof typeof TIER_LIMITS