refactor: improve quota usage logic and streamline rate limit input handling

This commit is contained in:
Catalin Pit
2026-06-24 16:16:41 +03:00
parent 0587731794
commit ae140b7bc0
4 changed files with 21 additions and 18 deletions
@@ -1,6 +1,4 @@
import { isQuotaExceeded, isQuotaNearing, QUOTA_WARNING_THRESHOLD } from '../../universal/quota-usage';
export { QUOTA_WARNING_THRESHOLD };
import { isQuotaExceeded, isQuotaNearing } from '../../universal/quota-usage';
export type QuotaFlags = {
isDocumentQuotaExceeded: boolean;
@@ -1,6 +1,4 @@
import { getQuotaWarningCount, QUOTA_WARNING_THRESHOLD } from '../../universal/quota-usage';
export { QUOTA_WARNING_THRESHOLD };
import { getQuotaWarningCount } from '../../universal/quota-usage';
export type QuotaAlertKind = 'quota' | 'quotaNearing';