import { AppCategory } from '../config/app-category'; export interface GetAppPermitsRequest { categoryId: keyof typeof AppCategory; subCategoryIds: number[]; } /** * Document type for permits * Represents a required document for a specific subcategory */ export interface PermitDocument { /** Document type identifier (e.g., "BUSINESS_LICENSE") */ type: 'ADDITIONAL_LICENSE' | 'BUSINESS_LICENSE'; /** Document type ID for API submission */ documentTypeId?: number; /** Human-readable document type name */ documentType: string; } /** * Subcategory permit information * Contains all required permits for a specific subcategory */ export interface SubCategoryPermit { /** Subcategory ID */ id: number; /** Category display name */ categoryName: string; /** Category identifier */ categoryId: string; /** Subcategory display name */ name: string; /** List of required permits/documents */ permits: PermitDocument[]; } /** * Response from getAppPermits API * Returns required permits based on category and sub-categories */ export interface GetAppPermitsResponse { error: number; message: string; permits: SubCategoryPermit[]; }