refactor: rm company profile

This commit is contained in:
Nathnael
2026-08-08 15:06:46 +00:00
parent d337fa0d85
commit 7a32bb95ff
25 changed files with 1313 additions and 2899 deletions

View File

@@ -194,11 +194,11 @@ export interface OnboardingRequirements {
export interface CompanyProfileInput {
type:
| "importer"
| "exporter"
| "freight_forwarder"
| "dj_freight_forwarder"
| "transporter";
| "importer"
| "exporter"
| "freight_forwarder"
| "dj_freight_forwarder"
| "transporter";
businessLicense?: string;
}
@@ -206,8 +206,6 @@ export interface CreateCompanyPayload {
companyType?: string;
nationality?: CompanyNationality;
companyName: string;
companyEmail?: string;
companyPhone?: string;
companyLocation?: string;
companyAddress?: string;
tin?: string;
@@ -460,9 +458,9 @@ export const companiesService = {
/** The current company's open profile change request (pending/rejected), or null. */
getChangeRequest: async (): Promise<ChangeRequestResponse | null> => {
const response = await client.get<ApiResponse<ChangeRequestResponse | null>>(
URL_CONSTANTS.COMPANIES_API.PROFILE_CHANGE_REQUEST,
);
const response = await client.get<
ApiResponse<ChangeRequestResponse | null>
>(URL_CONSTANTS.COMPANIES_API.PROFILE_CHANGE_REQUEST);
return unwrap(response.data);
},