mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 11:08:12 +00:00
- Introduced a new step in the onboarding process to select company nationality (Ethiopian or Foreign). - Updated API and service layers to handle nationality data for companies. - Added support for uploading multiple business license files for each operational profile. - Refactored company and forwarder forms to include new license upload step. - Created a reusable RoleLicenseStep component for managing license file uploads. - Implemented utility functions for phone number handling. - Added migrations to update the database schema for nationality and business license files.
18 lines
490 B
TypeScript
18 lines
490 B
TypeScript
import { ArrayMinSize, IsArray, IsEnum, IsOptional } from "class-validator";
|
|
import { CompanyNationality, CompanyType } from "../entities/company.entity";
|
|
import { ProfileType } from "../entities/company-profile.entity";
|
|
|
|
export class StartOnboardingDto {
|
|
@IsEnum(CompanyType)
|
|
companyType!: CompanyType;
|
|
|
|
@IsArray()
|
|
@ArrayMinSize(1)
|
|
@IsEnum(ProfileType, { each: true })
|
|
roles!: ProfileType[];
|
|
|
|
@IsOptional()
|
|
@IsEnum(CompanyNationality)
|
|
nationality?: CompanyNationality;
|
|
}
|