UNPKG

@woocommerce/data

Version:
45 lines 1.71 kB
/** * External dependencies */ import schema from '@wordpress/core-data'; export type UserPreferences = { activity_panel_inbox_last_read?: string; activity_panel_reviews_last_read?: string; android_app_banner_dismissed?: string; categories_report_columns?: string; coupons_report_columns?: string; customers_report_columns?: string; dashboard_chart_interval?: string; dashboard_chart_type?: string; dashboard_leaderboard_rows?: string; dashboard_sections?: string; help_panel_highlight_shown?: string; homepage_layout?: string; homepage_stats?: string; orders_report_columns?: string; products_report_columns?: string; revenue_report_columns?: string; task_list_tracked_started_tasks?: { [key: string]: number; }; taxes_report_columns?: string; variable_product_tour_shown?: string; variable_product_block_tour_shown?: string; variations_report_columns?: string; local_attributes_notice_dismissed_ids?: number[]; variable_items_without_price_notice_dismissed?: Record<number, string>; product_advice_card_dismissed?: { [key: string]: 'yes' | 'no'; }; }; export type WoocommerceMeta = UserPreferences & { task_list_tracked_started_tasks?: string; variable_items_without_price_notice_dismissed?: string; local_attributes_notice_dismissed_ids?: string; product_advice_card_dismissed?: string; }; export type WCUser<T extends keyof schema.Schema.BaseUser<'view'> = schema.Schema.ViewKeys.User> = Pick<schema.Schema.BaseUser<'view'>, schema.Schema.ViewKeys.User | T> & { woocommerce_meta: WoocommerceMeta; is_super_admin: boolean; }; //# sourceMappingURL=types.d.ts.map