-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* User /me API Improved * Timer Status API Updated * Updated Working Employee API * fix: team task api * fix: Issue Type API * task status updated * fix: Version * fix: Organization Team API * fix: Label * fix: Label params * fix: Task Priorities * fix: Task Related Issue Type * Update issue-type.ts * Update task-labels.ts * Update tasks.ts * Update task-status.ts * Update task-related-issue-type.ts * Update employee.ts * Update organization-team.ts * Update task-priorities.ts --------- Co-authored-by: Ruslan K <[email protected]>
- Loading branch information
1 parent
d203025
commit d5b3ddb
Showing
34 changed files
with
241 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
import { PaginationResponse, IWorkingEmployee } from '@app/interfaces'; | ||
import api from '../axios'; | ||
import { get } from '../axios'; | ||
|
||
export function getWorkingEmployeesAPI() { | ||
return api.get<PaginationResponse<IWorkingEmployee>>('/employee/working'); | ||
export async function getWorkingEmployeesAPI(tenantId: string, organizationId: string) { | ||
const params = { | ||
'where[tenantId]': tenantId, | ||
'where[organizationId]': organizationId, | ||
'relations[0]': 'user' | ||
}; | ||
const query = new URLSearchParams(params); | ||
|
||
const endpoint = process.env.NEXT_PUBLIC_GAUZY_API_SERVER_URL | ||
? `/employee/pagination?${query.toString()}` | ||
: '/employee/working'; | ||
const data = await get(endpoint, true, { tenantId }); | ||
|
||
return process.env.NEXT_PUBLIC_GAUZY_API_SERVER_URL ? data.data : data; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.