Update and refine schemas in Stripe and Team Accounts features

Refactored both Stripe and Team Accounts features' schemas for better data validation and added specificity to keys. Enhanced form validations with methods to ensure Stripe keys follow appropriate prefixes. Replaced generic string types with UUID for accountId attributes in different services. Also turned off autocomplete for destructive actions for improved security.
This commit is contained in:
giancarlo
2024-03-29 18:03:41 +08:00
parent af908ae685
commit 59c08c59d7
10 changed files with 55 additions and 25 deletions

View File

@@ -7,8 +7,8 @@ import { Logger } from '@kit/shared/logger';
import { Database } from '@kit/supabase/database';
const Schema = z.object({
accountId: z.string(),
userId: z.string(),
accountId: z.string().uuid(),
userId: z.string().uuid(),
});
export class LeaveTeamAccountService {