export type ModuleCode = "CORE" | "GAO"; export interface Permission { id: string; moduleCode: ModuleCode; code: string; nameLangId?: string; name?: string; description?: string; builtin?: boolean; protectedPermission?: boolean; ownerType?: AuthOwnerType; ownerId?: string; createdBy?: string; createdAt?: number; updatedAt?: number; deletedAt?: number; } export type AuthOwnerType = "SYSTEM" | "MODULE" | "TENANT" | "STORE" | "USER"; export type PermissionPayload = Pick & { id?: string; };