mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 05:25:41 +00:00
resolve conflict
This commit is contained in:
@@ -512,6 +512,32 @@ const CONTRACT_INTAKE_SETTINGS: OnboardingDocumentSetting[] = [
|
||||
const CLEARANCE_DESCRIPTION =
|
||||
"Operation/clearance documents collected after contract execution, by operation, freight type and customs.";
|
||||
|
||||
// ── Driver documents ────────────────────────────────────────────────────────
|
||||
// Configurable upload area (code "driver_docs") attached to a driver profile —
|
||||
// license, national ID, contracts, training certificates, etc.
|
||||
const DRIVER_DOCUMENT_FIELDS: OnboardingField[] = [
|
||||
{
|
||||
fileKey: "driver_docs",
|
||||
fileLabel: "Driver documents",
|
||||
helpText: "License, national ID, contracts, training certificates, etc.",
|
||||
isRequired: false,
|
||||
isMultiple: true,
|
||||
maxFiles: 20,
|
||||
allowedExtensions: ["pdf", "jpg", "jpeg", "png", "doc", "docx"],
|
||||
maxSizeMb: 10,
|
||||
displayOrder: 1,
|
||||
},
|
||||
];
|
||||
|
||||
const DRIVER_DOCUMENT_SETTINGS: OnboardingDocumentSetting[] = [
|
||||
{
|
||||
code: "driver_docs",
|
||||
label: "Driver documents",
|
||||
entity: "driver",
|
||||
fields: DRIVER_DOCUMENT_FIELDS,
|
||||
},
|
||||
];
|
||||
|
||||
@Injectable()
|
||||
export class FileUploadSettingsSeeder {
|
||||
private readonly logger = new Logger(FileUploadSettingsSeeder.name);
|
||||
@@ -549,6 +575,11 @@ export class FileUploadSettingsSeeder {
|
||||
description:
|
||||
"Commercial/framework documents attached at contract submission.",
|
||||
})),
|
||||
...DRIVER_DOCUMENT_SETTINGS.map((s) => ({
|
||||
...s,
|
||||
description:
|
||||
"Documents uploaded against a driver profile (license, ID, contracts, etc.).",
|
||||
})),
|
||||
];
|
||||
|
||||
for (const documentSetting of allSettings) {
|
||||
|
||||
Reference in New Issue
Block a user