import { Type } from "@angular/core"; import { FormControl } from "@angular/forms"; import { CfDialogConfiguration } from "codefoxui"; export interface FileDownload { url: string; dir: string; name: string; } export interface FileDownloadReport { liveGridId: number | null; guid: string; completed: number; basePath: string | null; downloadPath: string | null; name: string | null; filePath: string | null; count: number; error: string | null; overwrite: boolean; } export interface VersionInfo { client: string | null; setup: string | null; xmls: string | null; config: string | null; } export interface ServerErrorResponse { id: number; message: string; } export interface HomeInitResponse { modules: HomeModule[]; changeLogDate: string | null; boards: HomeInitResponseBoard[]; showHelp: boolean; } export declare enum CommandMethod { URL = "URL", MODAL = "MODAL" } export interface Command { method: CommandMethod; name: string; url: string; } export interface HomeModule { name: string; tag: string; url: string; commands: Command[]; } export interface HomeInitResponseBoard { severity: string; label: string; url: string; } export interface ChangeLogItem { date: string; version: string; changes: string[]; } export interface ChangeLogModuleItem { caption: string; info: string; } export interface ChangeLogModule { moduleName: string | null; changeIndex: number; changes: ChangeLogModuleItem[]; } export interface WorkstationCreateRequest { name: string; hardwareHash: string; cpu: string; memory: number; screens: string; } export interface PrintPreviewRequest { xmlFileName: string; fileName: string; issueCount: number; issues: boolean[]; data: any; labelPositions?: PrintHelperPrintLabelPosition[]; preview: boolean; rotated?: boolean; } export interface PrintHelperPrintLabelPosition { top: number; left: number; width: number; height: number; printable: boolean; } export interface PrintDocument { label: string; value: string; type: string; } export interface PrintRequest extends PrintPreviewRequest { printerName: string; electronPath?: string; apiBaseUrl?: string; serverFileName: string; } export interface HistoryLike { updatedByFullname: string; updatedAt: string | null; } export interface ModificationChangedField { f: string; o: any; n: any; } export declare enum ModificationAction { CREATE = "CREATE", UPDATE = "UPDATE", DELETE = "DELETE" } export interface ModificationChange { m: string; n: string; a: ModificationAction; f: ModificationChangedField[]; c: ModificationChange[]; collapsed: boolean; } export interface Modification { fullname: string; date: string; change: ModificationChange; } export interface GetMessagesRequest { kind: string; kindId: number; } export interface GetMessagesResponse { messages: Message[]; } export interface Message { chatMessageId: number; kind: string; kindId: number; date: string | null; userId: number; fullname: string; message: string; todo: boolean; dueDate: string | null; deadline: string | null; assignedUserId: number | null; assignedFullname: string; ready: boolean; readyUserId: number; readyFullname: string; readyDate: string | null; } export interface MessageEditor { kind: string; kindId: number; message: string; todo: boolean; assignedFullname: string; assignedUserId: number | null; dueDate: string | null; deadline: string | null; } export interface LabelConfiguration { colsCount: number; horizontalGap: number; useLabelSize: boolean; labelHeight: number; labelWidth: number; marginBottom: number; marginLeft: number; marginRight: number; marginTop: number; paperHeight: number; paperWidth: number; rowsCount: number; verticalGap: number; } export interface PrintHelperPrintLabelPosition { top: number; left: number; width: number; height: number; printable: boolean; } export interface PaperSize { paperHeight: number; paperWidth: number; } export interface AddressItem { addressId: number | null; countryCode: string; postcode: string; city: string; address: string; parcelNumber: string; publicPlaceName: string; publicPlaceType: string; houseNumber: string; building: string; stairway: string; level: string; door: string; note: string; defaultBillingAddress: boolean; defaultShippingAddress: boolean; touched: boolean; extra: string; } export interface ContactItem { contactId: number | null; type: string; typeId: number; orderContact: boolean; shippingContact: boolean; useInformal: boolean; name: string; phone: string; email: string; billingEmail: boolean; note: string; touched: boolean; } declare enum CountryType { EU = "EU", THIRD = "THIRD", GSP = "GSP" } export interface Country { name: string; countryCode: string; type: CountryType; } export interface CountryFormGroup { name: FormControl; countryCode: FormControl; type: FormControl; } export interface TranslateRequest { string: string; stringArray: string[]; stringHtml: string; stringHtmlArray: string[]; } export interface TranslateResponse { string: string; stringArray: string[]; stringHtml: string; stringHtmlArray: string[]; } export interface ButtonBarItemDialog { name?: string; component?: () => Promise>; configuration?: CfDialogConfiguration | (() => CfDialogConfiguration); title?: string; } export interface ButtonBarItemPermission { permissions: string | string[]; skipGodMode?: boolean; skipOnPermissions?: string[]; mode?: 'and' | 'or'; } export type ButtonBarButtonSeverityType = 'warning' | 'danger' | 'info' | 'success' | 'primary' | 'secondary'; export interface ButtonBarItem { id: number; label?: string | (() => string); severity?: ButtonBarButtonSeverityType | (() => Partial); clickCallback?: () => void; dialog?: string | (() => Promise>) | ButtonBarItemDialog; isDisabled?: boolean | (() => boolean); permission?: string | string[] | ButtonBarItemPermission; hotkey?: string; appUrlOpenerUrl?: string | null | (() => string | null); appUrlOpenerUrlState?: { [key: string]: any; }; icon?: () => string; } export {};