ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/hr/employees/[id]/route
GET
Function GET
GET
(
request
:
NextRequest
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
expenses
:
{
amount
:
number
;
currency
:
string
;
date
:
Date
;
description
:
string
;
id
:
string
;
status
:
string
;
type
:
string
;
}
[]
;
leaves
:
{
createdAt
:
Date
;
days
:
number
;
endDate
:
Date
;
id
:
string
;
startDate
:
Date
;
status
:
string
;
type
:
string
;
}
[]
;
manager
:
|
{
department
:
string
|
null
;
employeeNumber
:
string
;
firstName
:
string
;
id
:
string
;
lastName
:
string
;
position
:
string
|
null
;
}
|
null
;
payslips
:
{
createdAt
:
Date
;
grossSalary
:
number
;
id
:
string
;
netSalary
:
number
;
period
:
string
;
status
:
string
;
}
[]
;
subordinates
:
{
department
:
string
|
null
;
employeeNumber
:
string
;
firstName
:
string
;
id
:
string
;
isActive
:
boolean
;
lastName
:
string
;
position
:
string
|
null
;
}
[]
;
trainingRecords
:
{
completionDate
:
Date
|
null
;
id
:
string
;
score
:
number
|
null
;
status
:
string
;
training
:
{
provider
:
string
|
null
;
title
:
string
;
type
:
string
}
;
}
[]
;
user
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
;
}
&
{}
,
>
,
>
Parameters
request
:
NextRequest
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
expenses
:
{
amount
:
number
;
currency
:
string
;
date
:
Date
;
description
:
string
;
id
:
string
;
status
:
string
;
type
:
string
;
}
[]
;
leaves
:
{
createdAt
:
Date
;
days
:
number
;
endDate
:
Date
;
id
:
string
;
startDate
:
Date
;
status
:
string
;
type
:
string
;
}
[]
;
manager
:
|
{
department
:
string
|
null
;
employeeNumber
:
string
;
firstName
:
string
;
id
:
string
;
lastName
:
string
;
position
:
string
|
null
;
}
|
null
;
payslips
:
{
createdAt
:
Date
;
grossSalary
:
number
;
id
:
string
;
netSalary
:
number
;
period
:
string
;
status
:
string
;
}
[]
;
subordinates
:
{
department
:
string
|
null
;
employeeNumber
:
string
;
firstName
:
string
;
id
:
string
;
isActive
:
boolean
;
lastName
:
string
;
position
:
string
|
null
;
}
[]
;
trainingRecords
:
{
completionDate
:
Date
|
null
;
id
:
string
;
score
:
number
|
null
;
status
:
string
;
training
:
{
provider
:
string
|
null
;
title
:
string
;
type
:
string
}
;
}
[]
;
user
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
;
}
&
{}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...