import { Global } from '../global'; import { ShopGlobal2, AureliaShopAdmin } from 'aurelia-shop'; import { AdminProductModel, AdminOptionModel, AdminItemModel, AdminSupplierModel, AdminCategoryModel, AdminSupplyOrderModel, AdminCustomerModel, AdminOrderModel, AdminRecurringOrderModel, AdminDeliveryModel } from 'aurelia-shop'; export declare class ExportDialog { private global; shopId: string; shopAdmin: AureliaShopAdmin; shopGlobal: ShopGlobal2; defaultCountryCode: string; private inProgress; months: Array<{ value: string; label: string; }>; private profitPeriod; month: string; constructor(global: Global); activate(params: any): Promise; export(modelName: 'product' | 'option' | 'item' | 'supplier' | 'supply-order' | 'customer' | 'order' | 'accounting-orders' | 'greatest-profit' | 'profile-logs' | 'recurring-order' | 'delivery' | 'category', type: 'json' | 'xlsx' | 'csv' | 'txt'): Promise; exportXlsx(modelName: string, data: any): void; exportCsv(modelName: string, data: any, type: 'json' | 'xlsx' | 'csv' | 'txt'): void; blobToFile: (theBlob: Blob, fileName: string, typeName: string) => File; exportProduct(items: AdminProductModel[], modelName: string): void; exportOption(items: AdminOptionModel[], modelName: string): void; exportItem(items: AdminItemModel[], modelName: string): void; exportSupplier(items: AdminSupplierModel[], modelName: string): void; exportSupplyOrder(items: AdminSupplyOrderModel[], modelName: string): void; exportCustomer(items: AdminCustomerModel[], modelName: string): Promise; exportOrder(items: AdminOrderModel[], modelName: string): void; exportAcountingOrders(items: AdminOrderModel[], modelName: string, type: 'json' | 'xlsx' | 'csv' | 'txt'): Promise; exportGreatestProfit(products: AdminProductModel[], modelName: string): Promise; exportRecurringOrder(items: AdminRecurringOrderModel[], modelName: string): void; exportDelivery(items: AdminDeliveryModel[], modelName: string): void; exportCategory(items: AdminCategoryModel[], modelName: string): void; exportProfileLogs(): Promise; } export interface DataToken { appId: string; firstname: string; lastname: string; email: string; emailValidated: boolean; mobile: string; mobileValidated: boolean; hash: string; hashUpdateDate: Date; requireDoubleAuth: boolean; roles: any[]; hideOnboarding: boolean; _updatedAt: Date; _createdAt: Date; } export interface Token { _id: string; appId: string; type: string; token: string; emailCode: string; mobileCode: string; emailValidated: boolean; mobileValidated: boolean; expires: Date; data: DataToken; userCreated: boolean; logs: any[]; _updatedAt: Date; _createdAt: Date; } export interface ValidationTokenModel { _id: string; count: number; tokens: Token[]; dates: Date[]; success: boolean; }