Variable defaultConst

default: {
    Tier: typeof Tier;
    can: ((org: `org:${string}`, feature: `feature:${string}`, clientOptions?: TierGetClientOptions) => Promise<Answer>);
    cancel: ((org: `org:${string}`, clientOptions?: TierGetClientOptions) => Promise<ScheduleResponse>);
    checkout: ((org: `org:${string}`, successUrl: string, __namedParameters?: CheckoutParams, clientOptions?: TierGetClientOptions) => Promise<CheckoutResponse>);
    fromEnv: ((options?: TierGetClientOptions) => Promise<Tier>);
    isErrorResponse: ((e: any) => e is ErrorResponse);
    isFeatureName: ((f: any) => f is `feature:${string}`);
    isFeatureNameVersioned: ((f: any) => f is `feature:${string}@plan:${string}@${string}`);
    isFeatures: ((f: any) => f is Features);
    isOrgName: ((o: any) => o is `org:${string}`);
    isPhase: ((p: any) => p is Phase);
    isPlanName: ((p: any) => p is `plan:${string}@${string}`);
    isTierError: ((e: any) => e is TierError);
    limit: ((org: `org:${string}`, feature: `feature:${string}`) => Promise<Usage>);
    limits: ((org: `org:${string}`) => Promise<Limits>);
    lookupLimit: ((org: `org:${string}`, feature: `feature:${string}`, clientOptions?: TierGetClientOptions) => Promise<Usage>);
    lookupLimits: ((org: `org:${string}`, clientOptions?: TierGetClientOptions) => Promise<Limits>);
    lookupOrg: ((org: `org:${string}`) => Promise<LookupOrgResponse>);
    lookupPaymentMethods: ((org: `org:${string}`) => Promise<PaymentMethodsResponse>);
    lookupPhase: ((org: `org:${string}`) => Promise<CurrentPhase>);
    phase: ((org: `org:${string}`) => Promise<CurrentPhase>);
    pull: ((clientOptions?: TierGetClientOptions) => Promise<Model>);
    pullLatest: ((clientOptions?: TierGetClientOptions) => Promise<Model>);
    push: ((model: Model) => Promise<PushResponse>);
    report: ((org: `org:${string}`, feature: `feature:${string}`, n?: number, options?: ReportParams, clientOptions?: TierGetClientOptions) => Promise<{}>);
    schedule: ((org: `org:${string}`, phases?: Phase[], __namedParameters?: ScheduleParams, clientOptions?: TierGetClientOptions) => Promise<ScheduleResponse>);
    subscribe: ((org: `org:${string}`, features: Features | Features[], __namedParameters?: SubscribeParams, clientOptions?: TierGetClientOptions) => Promise<ScheduleResponse>);
    updateOrg: ((org: `org:${string}`, info: OrgInfo) => Promise<ScheduleResponse>);
    validateFeatureDefinition: ((f: any) => void);
    validateFeatureTier: ((t: any) => void);
    validateModel: ((m: any) => asserts m is Model);
    validatePlan: ((p: any) => void);
    whoami: (() => Promise<WhoAmIResponse>);
    whois: ((org: `org:${string}`) => Promise<WhoIsResponse>);
    withClock: ((name: string, start?: Date, options?: TierGetClientOptions) => Promise<TierWithClock>);
} = ...

Type declaration

Generated using TypeDoc