Align companies with the Didar export: new fields, Didar-format Excel import/export, and people linked to companies by Didar code

This commit is contained in:
2026-10-06 12:25:20 +03:30
parent f88786ef61
commit f71f09c85d
8 changed files with 630 additions and 85 deletions
+28
View File
@@ -664,12 +664,27 @@ export interface CompanySummaryDto {
export interface CompanyDto {
id: string;
name: string;
/** کد داخلی شرکت */
code: string | null;
importSource: PersonImportSource | string;
/** کد شرکت در مبدأ (مثلاً کد دیدار) */
sourceRef: string | null;
nationalId: string | null;
economicCode: string | null;
registrationNumber: string | null;
phone: string | null;
otherPhones: string | null;
fax: string | null;
email: string | null;
otherEmails: string | null;
website: string | null;
province: string | null;
city: string | null;
postalCode: string | null;
address: string | null;
groupName: string | null;
notes: string | null;
registeredAt: string | null;
tags: string[];
customFields: Record<string, unknown>;
peopleCount: number;
@@ -680,12 +695,25 @@ export interface CompanyDto {
export interface CreateCompanyRequest {
name: string;
code?: string | null;
importSource?: PersonImportSource | string;
sourceRef?: string | null;
nationalId?: string;
economicCode?: string | null;
registrationNumber?: string | null;
phone?: string;
otherPhones?: string | null;
fax?: string | null;
email?: string;
otherEmails?: string | null;
website?: string;
province?: string | null;
city?: string | null;
postalCode?: string | null;
address?: string;
groupName?: string | null;
notes?: string;
registeredAt?: string | null;
tags?: string[];
customFields?: Record<string, unknown>;
ownerId?: string | null;