diff --git a/.changeset/friendly-trainers-taste.md b/.changeset/friendly-trainers-taste.md new file mode 100644 index 00000000000..6faf44f15bd --- /dev/null +++ b/.changeset/friendly-trainers-taste.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/service-utils": patch +--- + +add `billingPlanVersion` to `TeamResponse` diff --git a/packages/service-utils/src/core/api.ts b/packages/service-utils/src/core/api.ts index 20dbb489ed1..e2b5db9bde4 100644 --- a/packages/service-utils/src/core/api.ts +++ b/packages/service-utils/src/core/api.ts @@ -45,6 +45,7 @@ export type TeamResponse = { slug: string; image: string | null; billingPlan: "free" | "starter" | "growth" | "pro"; + billingPlanVersion: number; createdAt: Date; updatedAt: Date | null; billingEmail: string | null; diff --git a/packages/service-utils/src/mocks.ts b/packages/service-utils/src/mocks.ts index 5902dacd5aa..85627a7247c 100644 --- a/packages/service-utils/src/mocks.ts +++ b/packages/service-utils/src/mocks.ts @@ -42,6 +42,7 @@ export const validTeamResponse: TeamResponse = { createdAt: new Date("2024-06-01"), updatedAt: new Date("2024-06-01"), billingPlan: "free", + billingPlanVersion: 1, billingEmail: "test@example.com", billingStatus: "noPayment", growthTrialEligible: false,