mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
383314d3e2
* feat: add skip trial feature for teams/orgs billing page Co-Authored-By: [email protected] <[email protected]> * feat: add translation strings for skip trial feature and fix lint-staged config Co-Authored-By: [email protected] <[email protected]> * fix: use IS_TEAM_BILLING_ENABLED instead of IS_SELF_HOSTED Co-Authored-By: [email protected] <[email protected]> * fix: use correct DialogHeader props in billing-view.tsx Co-Authored-By: [email protected] <[email protected]> * restore lint staged config file * invalidate trpc cache * fix: update role filter and error message in skipTrialForTeam handler - Changed role filter to include both OWNER and ADMIN roles to match authorization logic - Updated error message to reflect that both owners and admins can skip the trial Addresses Cubic AI review feedback on PR #26584 Co-Authored-By: unknown <> * fix: optimize skipTrialForTeam to query only specific team by ID Address Cubic AI review feedback: Replace findAllAcceptedTeamMemberships (which fetches all teams) with TeamRepository.findById (which fetches only the specific team needed). Authorization is already validated earlier in the handler, so this redundant query was inefficient. Co-Authored-By: unknown <> * fix static methods * feat: use pbac * fix: remove redundant team query in getSubscriptionStatus handler Co-Authored-By: [email protected] <[email protected]> * add pbac to skip team handler --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
8 lines
212 B
TypeScript
8 lines
212 B
TypeScript
import { z } from "zod";
|
|
|
|
export const ZGetSubscriptionStatusInputSchema = z.object({
|
|
teamId: z.number(),
|
|
});
|
|
|
|
export type TGetSubscriptionStatusInputSchema = z.infer<typeof ZGetSubscriptionStatusInputSchema>;
|