import { District } from './address'; export interface Config { user_phone_regex: string; user_phone_format: string; user_post_code_regex: string; user_post_code_format: string; country: { pk: number; name: string; code: string; }; } export interface RetailStore { address: string; name: string; pk: number; district: District; township: { name: string; pk: number; city: { country: number; name: string; pk: number; }; }; } export type Pagination = { current_page: number; num_pages: number; page_size: number; total_count: number; }; export type EmailSubscriptionType = { email: string; subscribe_contract: boolean; }; export type ImageType = { data_type?: 'image'; url?: string; value?: string; }; export interface Error { status: number; data: { error_code: string; non_field_errors: string; }; } export type Discount = { description: string; discount: string; }; export type MenuItemExtraContentImageType = { kwargs: { value: { image: { url: string; value: string; }; }; }; value: { image: string; link_text: string; title: string; url: string; }; }; export type MenuItemExtraContentStoryType = { value: { url: string; alt: string; image: string; }; kwargs: { data_type: 'nested'; value: { image: ImageType; }; }; }; export type MenuItemExtraContentType = { attributes: { category_id: number; images: Array; [key: string]: any; }; include_parent: boolean; numchild: number; [key: string]: any; }; export type MenuItemType = { extra_context: MenuItemExtraContentType; generator_name: 'menu_item'; label: string; level: number; parent: null | MenuItemType; parent_pk: null | string; children: null | MenuItemType[]; path: string; pk: string; sort_order: number; url: string; }; export type ForgotPasswordFormType = { email: string; }; export interface UpsellDetail { message: string; params: { partial_percentage: number; required: number; partial: number; remaining: number; }; }