feat: nested department sections, attaching department sections in the user editor

This commit is contained in:
2025-01-19 12:02:35 +04:00
parent 58ab96bdb1
commit 9dab596e87
34 changed files with 1023 additions and 488 deletions

View File

@@ -13,6 +13,7 @@ import type { DeleteDepartmentSectionResponse } from '../models/DeleteDepartment
import type { DeleteUserRequest } from '../models/DeleteUserRequest';
import type { DeleteUserResponse } from '../models/DeleteUserResponse';
import type { GetAvailableUsersForDepartmentSectionResponse } from '../models/GetAvailableUsersForDepartmentSectionResponse';
import type { GetDepartmentSectionsResponse } from '../models/GetDepartmentSectionsResponse';
import type { GetDepartmentsResponse } from '../models/GetDepartmentsResponse';
import type { UpdateDepartmentRequest } from '../models/UpdateDepartmentRequest';
import type { UpdateDepartmentResponse } from '../models/UpdateDepartmentResponse';
@@ -94,6 +95,17 @@ export class DepartmentService {
},
});
}
/**
* Get Sections
* @returns GetDepartmentSectionsResponse Successful Response
* @throws ApiError
*/
public static getSections(): CancelablePromise<GetDepartmentSectionsResponse> {
return __request(OpenAPI, {
method: 'GET',
url: '/department/section',
});
}
/**
* Create Section
* @returns CreateDepartmentSectionResponse Successful Response