feat(KAN-42): rebuild ticket types priorities and display settings
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { TicketPriorityModel } from '@/types/models/ticket-priority-model';
|
||||
import type { TicketTypeModel } from '@/types/models/ticket-type-model';
|
||||
|
||||
export type MetadataKind = 'type' | 'priority';
|
||||
export type MetadataEntry = TicketPriorityModel &
|
||||
Partial<Pick<TicketTypeModel, 'is_parent' | 'tickets_count'>>;
|
||||
export type MetadataEditorTarget = { kind: MetadataKind } & (
|
||||
| { action: 'create'; entry?: never }
|
||||
| { action: 'edit' | 'delete'; entry: MetadataEntry }
|
||||
);
|
||||
Reference in New Issue
Block a user