UNPKG

@hv-kit/hexpress

Version:

facilitates typescript backend development with express

97 lines 2.27 kB
import { Router } from 'express'; export interface Main { url: string; router: Router; } export interface Module { url: string; router: Router; } export interface TreeConfigStruct { id: string; parent: string; childrenLabel: string; } export interface CRUDFindAllStruct { datas: any[]; lenMax: number; len: number; exists: boolean; page: number; pagePossible: number[]; precPagePossible: number | undefined; nextPagePossible: number | undefined; pagesMax: number; pages: string | number; pagesPossibles: (string | number)[]; orderBy: string; } export interface CRUDFindSimilarStruct { datas: any[]; len: number; } export interface CRUDFindStruct { data?: any; exists: boolean; similars?: CRUDFindSimilarStruct; } export interface CRUDExistsStruct { exists: boolean; } export interface NotificationStruct { type: 'success' | 'warning' | 'danger'; messages: { fr: string; en: string; }; } export interface NotificationLoginStruct { type: 'success' | 'warning' | 'danger'; messages: { fr: string; en: string; }; token: string; } export interface NotificationFinalStruct { type: 'success' | 'warning' | 'danger'; message: string; } export interface NotificationLoginFinalStruct { type: 'success' | 'warning' | 'danger'; message: string; token?: string; } export interface ExportColumn { label: string; target: string; } export interface ExportDatas { filename: string; titlename: string; rows: any[]; columns: ExportColumn[]; ese?: any; } export interface StructImportDatasColumn { target: string; label: string; type: 'str' | 'float' | 'int' | 'boolean' | 'object' | 'datetime'; } export interface StructImportDatas { columns: StructImportDatasColumn[]; row: { first: number; end?: number; }; } export interface StructExtractDatas { datas: any[]; validation: { invalids: any[]; existent: any[]; nonExistent: any[]; double: any[]; }; } //# sourceMappingURL=struct.interface.d.ts.map