Add traslations

This commit is contained in:
Urtzi Alfaro
2025-12-18 20:12:32 +01:00
parent f10a2b92ea
commit acb3a40844
15 changed files with 726 additions and 228 deletions

View File

@@ -86,8 +86,7 @@ export class TenantService {
return apiClient.get<TenantResponse[]>(`${this.baseUrl}/${parentTenantId}/children`);
}
async bulkCreateChildTenants(request: {
parent_tenant_id: string;
async bulkCreateChildTenants(parentTenantId: string, request: {
child_tenants: Array<{
name: string;
city: string;
@@ -99,6 +98,10 @@ export class TenantService {
longitude?: number;
phone?: string;
email?: string;
business_type?: string;
business_model?: string;
timezone?: string;
metadata?: Record<string, any>;
}>;
auto_configure_distribution?: boolean;
}): Promise<{
@@ -109,7 +112,7 @@ export class TenantService {
failed_tenants: Array<{ name: string; location_code: string; error: string }>;
distribution_configured: boolean;
}> {
return apiClient.post(`${this.baseUrl}/bulk-children`, request);
return apiClient.post(`${this.baseUrl}/${parentTenantId}/bulk-children`, request);
}
// ===================================================================