mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 09:58:12 +00:00
- Updated CompanyInfoResponseDto to include company profile data in response. - Enhanced ResponseExternalProfileDto to include active profile type and onboarding details. - Added new fields to ExternalProfile entity for active profile type and onboarding status. - Implemented onboarding wizard dialog in the frontend to guide users through the onboarding process. - Introduced API endpoints for managing company profiles and onboarding steps. - Created migrations to add new columns for active mode and onboarding status in the database. - Added functionality to switch between operational modes (importer/exporter) and create profiles as needed. - Improved user experience by ensuring onboarding is enforced for new users and those without completed profiles.
13 lines
305 B
TypeScript
13 lines
305 B
TypeScript
import { IsEnum, IsOptional, IsString, MaxLength } from 'class-validator';
|
|
import { ProfileType } from '../entities/company-profile.entity';
|
|
|
|
export class CreateCompanyProfileDto {
|
|
@IsEnum(ProfileType)
|
|
type!: ProfileType;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(100)
|
|
businessLicense?: string;
|
|
}
|