ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/hr/time-tracking/scan/route
POST
Function POST
POST
(
req
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
action
:
"clockIn"
|
"clockOut"
;
message
:
string
;
employee
:
{
id
:
string
;
name
:
string
|
null
;
employeeNumber
:
string
|
undefined
;
position
:
string
|
null
|
undefined
;
department
:
string
|
null
|
undefined
;
}
;
timeTracking
:
{
id
:
string
;
date
:
Date
;
clockIn
:
Date
;
clockOut
:
Date
|
null
;
totalWorkTime
:
number
|
null
;
totalBreakTime
:
number
|
null
;
status
:
string
;
}
;
}
,
>
,
>
Parameters
req
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
action
:
"clockIn"
|
"clockOut"
;
message
:
string
;
employee
:
{
id
:
string
;
name
:
string
|
null
;
employeeNumber
:
string
|
undefined
;
position
:
string
|
null
|
undefined
;
department
:
string
|
null
|
undefined
;
}
;
timeTracking
:
{
id
:
string
;
date
:
Date
;
clockIn
:
Date
;
clockOut
:
Date
|
null
;
totalWorkTime
:
number
|
null
;
totalBreakTime
:
number
|
null
;
status
:
string
;
}
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...