@trigger.dev/billing
Advanced tools
Comparing version 1.0.2 to 1.0.3
import { P as PricedMetric } from './pricing-df9c71b3.js'; | ||
import { P as Plan } from './plans-558232c2.js'; | ||
import { P as Plan } from './plans-25372827.js'; | ||
import 'zod'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { P as Plan } from './plans-558232c2.js'; | ||
import { P as Plan } from './plans-25372827.js'; | ||
import 'zod'; | ||
@@ -3,0 +3,0 @@ |
import { z, ZodType } from 'zod'; | ||
export { P as PricedMetric, a as PricedMetricSchema } from './pricing-df9c71b3.js'; | ||
import { a as PlansSchema } from './plans-558232c2.js'; | ||
export { P as Plan, b as PlanSchema, c as Plans, R as RunPricingSchema } from './plans-558232c2.js'; | ||
import { a as PlansSchema } from './plans-25372827.js'; | ||
export { P as Plan, b as PlanSchema, c as Plans, R as RunPricingSchema } from './plans-25372827.js'; | ||
export { estimate } from './estimate.js'; | ||
@@ -82,4 +82,4 @@ | ||
}, "strip", z.ZodTypeAny, { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns?: { | ||
@@ -101,4 +101,4 @@ pricing?: { | ||
}, { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns?: { | ||
@@ -203,4 +203,4 @@ pricing?: { | ||
}, "strip", z.ZodTypeAny, { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -225,4 +225,4 @@ pricing?: { | ||
}, { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -250,4 +250,4 @@ pricing?: { | ||
plan: { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -275,4 +275,4 @@ pricing?: { | ||
plan: { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -382,4 +382,4 @@ pricing?: { | ||
}, "strip", z.ZodTypeAny, { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -404,4 +404,4 @@ pricing?: { | ||
}, { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -429,4 +429,4 @@ pricing?: { | ||
plan: { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -454,4 +454,4 @@ pricing?: { | ||
plan: { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -481,4 +481,4 @@ pricing?: { | ||
plan: { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -508,4 +508,4 @@ pricing?: { | ||
plan: { | ||
code: string; | ||
title: string; | ||
code: string; | ||
concurrentRuns: { | ||
@@ -699,11 +699,14 @@ pricing?: { | ||
type Result<TSchema extends ZodType> = SuccessResult<TSchema> | ErrorResult; | ||
type PlansResponse = Result<typeof PlansSchema>; | ||
type CurrentPlanResponse = Result<typeof CurrentPlanSchema>; | ||
type SetPlanResponse = Result<typeof SubscribeResultSchema>; | ||
declare class BillingClient { | ||
private readonly config; | ||
constructor(config: BillingClientConfig); | ||
plans(): Promise<Result<typeof PlansSchema>>; | ||
currentPlan(orgId: string): Promise<Result<typeof CurrentPlanSchema>>; | ||
setPlan(orgId: string, body: SetPlanBody): Promise<Result<typeof SubscribeResultSchema>>; | ||
plans(): Promise<PlansResponse>; | ||
currentPlan(orgId: string): Promise<CurrentPlanResponse>; | ||
setPlan(orgId: string, body: SetPlanBody): Promise<SetPlanResponse>; | ||
fetch<TSchema extends ZodType = z.ZodTypeAny>(path: string, schema: TSchema): Promise<Result<TSchema>>; | ||
} | ||
export { ActiveSubscription, ActiveSubscriptionSchema, BillingClient, BracketSchema, CanceledSubscriptionResult, CreateSubscriptionFlowStart, CurrentPlan, CurrentPlanSchema, Error, ErrorSchema, PlanDefinition, PlanDefinitionSchema, PlansSchema, SetPlanBody, SetPlanBodySchema, SubscribeResult, SubscribeResultSchema, UpdatedSubscriptionResult }; | ||
export { ActiveSubscription, ActiveSubscriptionSchema, BillingClient, BracketSchema, CanceledSubscriptionResult, CreateSubscriptionFlowStart, CurrentPlan, CurrentPlanResponse, CurrentPlanSchema, Error, ErrorSchema, PlanDefinition, PlanDefinitionSchema, PlansResponse, PlansSchema, SetPlanBody, SetPlanBodySchema, SetPlanResponse, SubscribeResult, SubscribeResultSchema, UpdatedSubscriptionResult }; |
@@ -1,4 +0,4 @@ | ||
export * from "./schemas"; | ||
export * from "./schemas/index"; | ||
export * from "./estimate"; | ||
export * from "./client"; | ||
export * from "./client/index"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@trigger.dev/billing", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Calculates the billing for a given organization", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128069
2353