import { User } from "./user"; export interface Niche { name: string; parent_name: string; user: User; parent: Niche; created_time?: Date; updated_time?: Date; } export interface TiktokShop { shop_id: string; shop_code: string; account_id: string; name: string; suggest_name: string; region: string; email: string; code: string; cipher: string; proxy: string; cookie: string; user_agent: string; access_token: string; refresh_token: string; authorize_token: string; open_id: string; access_token_expire_in: number; refresh_token_expire_in: number; latest_statement_id?: string; latest_statement_statement_time?: number; latest_payment_id?: string; latest_payment_create_time?: number; description: string; logo: { height: number; width: number; url_list: string[]; }; owner_seller_id: string; profile_id: string; profile_name: string; main_niche: Niche | null; sub_niches: Niche[] | []; key_words?: string; owner: User; assignee: User | null; assigner: User | null; assigned_time: Date; importer: User | null; created_in_partner_system: boolean; sync_auth_token_partner: boolean; is_kiki_imported: boolean; is_sub_account: boolean; time_zone: string; authorize_app_id: string; authorize_app_code: string; authorize_app_key: string; authorize_app_secret: string; import_source: string; note?: string; created_time: Date; updated_time: Date; apps?: any; }