@@ -47,13 +47,13 @@ ON CONFLICT (id) DO UPDATE SET status = excluded.status, expiresAt = null`,
4747
4848export type EntityType = 'project' | 'user' | 'key'
4949
50- const entityTypeLookup : Record < EntityType , number > = { project : 1 , user : 2 , key : 3 }
51- const reverseEntityTypeLookup : Record < 1 | 2 | 3 , EntityType > = { 1 : 'project' , 2 : 'user' , 3 : 'key' }
50+ export const entityTypeLookup : Record < EntityType , number > = { project : 1 , user : 2 , key : 3 }
51+ export const reverseEntityTypeLookup : Record < 1 | 2 | 3 , EntityType > = { 1 : 'project' , 2 : 'user' , 3 : 'key' }
5252
5353export type Scope = 'daily' | 'weekly' | 'monthly' | 'total'
5454
55- const scopeLookup : Record < Scope , number > = { daily : 1 , weekly : 2 , monthly : 3 , total : 4 }
56- const reverseScopeLookup : Record < 1 | 2 | 3 | 4 , Scope > = { 1 : 'daily' , 2 : 'weekly' , 3 : 'monthly' , 4 : 'total' }
55+ export const scopeLookup : Record < Scope , number > = { daily : 1 , weekly : 2 , monthly : 3 , total : 4 }
56+ export const reverseScopeLookup : Record < 1 | 2 | 3 | 4 , Scope > = { 1 : 'daily' , 2 : 'weekly' , 3 : 'monthly' , 4 : 'total' }
5757
5858export interface SpendScope {
5959 entityType : EntityType
@@ -79,7 +79,7 @@ export interface LimitUpdate {
7979
8080export type KeyLimitUpdate = LimitUpdate & { total ?: number | null }
8181// 65536 equates to 2149-06-07
82- const DISTANT_FUTURE = 65536
82+ export const DISTANT_FUTURE = 65536
8383
8484export interface SpendStatus {
8585 entityId : number
0 commit comments