feat(cloud): improved upgrade journey
This commit is contained in:
@@ -39,6 +39,7 @@ const workspaceSubscriptionSchema = z.object({
|
||||
status: z.string(),
|
||||
seats: z.number().nullable(),
|
||||
unlimitedSeats: z.boolean().nullable(),
|
||||
partnerTier: z.number().nullable(),
|
||||
periodStart: z.date().nullable(),
|
||||
periodEnd: z.date().nullable(),
|
||||
});
|
||||
|
||||
@@ -14,6 +14,7 @@ export const updateById = async (
|
||||
periodStart?: Date | null;
|
||||
periodEnd?: Date | null;
|
||||
cancelAtPeriodEnd?: boolean | null;
|
||||
stripeSubscriptionId?: string | null;
|
||||
},
|
||||
) => {
|
||||
const [result] = await db
|
||||
|
||||
@@ -239,6 +239,7 @@ export const getByPublicIdWithMembers = (
|
||||
status: true,
|
||||
seats: true,
|
||||
unlimitedSeats: true,
|
||||
partnerTier: true,
|
||||
periodStart: true,
|
||||
periodEnd: true,
|
||||
},
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface Subscription {
|
||||
status: string;
|
||||
seats: number | null;
|
||||
unlimitedSeats: boolean;
|
||||
partnerTier: number | null;
|
||||
periodStart: Date | null;
|
||||
periodEnd: Date | null;
|
||||
referenceId: string | null;
|
||||
|
||||
Reference in New Issue
Block a user