feat(navigation): add prominent validation quickstart action
This commit is contained in:
parent
0bbcaba211
commit
9c6b184e39
28614 changed files with 4356173 additions and 23 deletions
|
|
@ -105,6 +105,26 @@ export type ValidationItem = Entity & {
|
|||
attachments: Record<string, unknown>[];
|
||||
};
|
||||
|
||||
export type QuickStartValidationSummary = {
|
||||
id: string;
|
||||
device_id: string;
|
||||
report_number: string;
|
||||
performed_on?: string | null;
|
||||
result?: string | null;
|
||||
next_validation_on?: string | null;
|
||||
status: string;
|
||||
validation_type?: string | null;
|
||||
equipment_ids: string[];
|
||||
};
|
||||
|
||||
export type QuickStartCustomerData = {
|
||||
customer: Customer;
|
||||
locations: Location[];
|
||||
contacts: Contact[];
|
||||
devices: Device[];
|
||||
validations: QuickStartValidationSummary[];
|
||||
};
|
||||
|
||||
export function normalizeValidationPayload<T extends Record<string, unknown>>(values: T): T {
|
||||
const optionalForeignKeys = ["contact_id", "examiner_id"];
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue