Add traslations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
Reference in New Issue
Block a user