Module exposing: paygPromotionStatus, isPaygPromotionAvailable, signalAtHardCap
// Source: https://github.com/superloglabs/superlog | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { hasClaimedPaygPromotion } from "@superlog/billing";
// Billing entitlement helpers shared by the app-wide "ingest paused" banner
// (App.tsx) and the billing settings card (BillingCard.tsx).
//
// The balance shape here is the subset of autumn-js's check() result we read.
// We keep it structural rather than importing autumn-js's types so this stays
// unit-testable without the billing SDK and doesn't break on SDK type churn.
export type EntitlementBalance =
| {
unlimited: boolean;
granted: number;
overageAllowed: boolean;
usage: number;
}
|
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key