@crediblex.io/fineract-api-client
Version:
TypeScript client for Fineract APIs
36 lines • 1.14 kB
TypeScript
/**
* Represents the display type of a datatable column
*/
export type DatatableColumnDisplayType = "INTEGER" | "STRING" | "DATETIME" | "DECIMAL" | "BOOLEAN" | "DATE" | "TEXT";
/**
* Represents the SQL column type of a datatable column
*/
export type DatatableColumnType = "BIGINT" | "VARCHAR" | "TIMESTAMP" | "DECIMAL" | "BOOLEAN" | "DATE" | "TEXT" | "INT";
/**
* Represents the header data for a datatable column
*/
export interface DatatableColumnHeader {
columnName: string;
columnType: DatatableColumnType;
columnLength: number;
columnDisplayType: DatatableColumnDisplayType;
isColumnNullable: boolean;
isColumnPrimaryKey: boolean;
isColumnUnique: boolean;
isColumnIndexed: boolean;
columnValues: any[];
}
/**
* Represents a datatable definition in Fineract
*/
export interface Datatable {
applicationTableName: string;
registeredTableName: string;
entitySubType: string;
columnHeaderData: DatatableColumnHeader[];
}
/**
* Type alias for the response from the getAll datatables API
*/
export type DatatableListResponse = Datatable[];
//# sourceMappingURL=datatable.d.ts.map