Board editing.
This commit is contained in:
1 parent
68c56060b3
commit
d9f698ca42
8 files changed
+183
-86
No files matched your search
+24
-2
@@ -1,4 +1,6 @@
|
||||
import type { UseQueryOptions } from '@tanstack/react-query';
|
||||
import type { ReactElement } from 'react';
|
||||
import type { Board as PrismaBoard } from '@/generated/prisma/client';
|
||||
import type { DATA_TYPE, OPERATORS, ROLES } from './constants';
|
||||
import type { TIME_UNIT } from './date';
|
||||
|
||||
@@ -142,6 +144,26 @@ export interface ApiError extends Error {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface BoardData {
|
||||
rows: { id: string; name: string; value: number }[];
|
||||
export interface BoardComponent {
|
||||
id: string;
|
||||
type: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface BoardColumn {
|
||||
id: string;
|
||||
component?: ReactElement;
|
||||
}
|
||||
|
||||
export interface BoardRow {
|
||||
id: string;
|
||||
columns: BoardColumn[];
|
||||
}
|
||||
|
||||
export interface BoardParameters {
|
||||
rows?: BoardRow[];
|
||||
}
|
||||
|
||||
export interface Board extends Omit<PrismaBoard, 'parameters'> {
|
||||
parameters: BoardParameters;
|
||||
}
|
||||
Reference in new issue
Block a user