ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/tablet/work-stations/scan/route
POST
Function POST
POST
(
request
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
;
message
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
workStation
:
{
id
:
string
;
code
:
string
;
name
:
string
;
description
:
string
|
null
;
location
:
string
|
null
;
capacity
:
number
|
null
;
costPerHour
:
number
|
null
;
status
:
string
;
efficiency
:
number
;
isActive
:
boolean
;
createdAt
:
Date
;
updatedAt
:
Date
;
}
;
operator
:
|
{
id
:
string
;
name
:
string
|
null
;
email
:
string
;
phone
:
string
|
null
;
experience
:
number
|
null
;
skills
:
string
[]
;
efficiency
:
number
|
null
;
lastActive
:
Date
|
null
;
}
|
null
;
equipment
:
{
id
:
string
;
name
:
string
;
code
:
string
;
type
:
string
;
status
:
string
;
}
[]
;
activeManufacturingOrders
:
{
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
priority
:
ManufacturingOrderPriority
;
plannedQuantity
:
number
;
producedQuantity
:
number
;
product
:
{
id
:
string
;
name
:
string
;
code
:
string
}
;
client
:
{
id
:
string
;
name
:
string
;
code
:
string
}
|
null
;
}
[]
;
scanInfo
:
{
scannedAt
:
string
;
scannedBy
:
{
id
:
any
}
|
null
}
;
}
,
>
,
>
Parameters
request
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
error
:
string
;
message
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
workStation
:
{
id
:
string
;
code
:
string
;
name
:
string
;
description
:
string
|
null
;
location
:
string
|
null
;
capacity
:
number
|
null
;
costPerHour
:
number
|
null
;
status
:
string
;
efficiency
:
number
;
isActive
:
boolean
;
createdAt
:
Date
;
updatedAt
:
Date
;
}
;
operator
:
|
{
id
:
string
;
name
:
string
|
null
;
email
:
string
;
phone
:
string
|
null
;
experience
:
number
|
null
;
skills
:
string
[]
;
efficiency
:
number
|
null
;
lastActive
:
Date
|
null
;
}
|
null
;
equipment
:
{
id
:
string
;
name
:
string
;
code
:
string
;
type
:
string
;
status
:
string
;
}
[]
;
activeManufacturingOrders
:
{
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
priority
:
ManufacturingOrderPriority
;
plannedQuantity
:
number
;
producedQuantity
:
number
;
product
:
{
id
:
string
;
name
:
string
;
code
:
string
}
;
client
:
{
id
:
string
;
name
:
string
;
code
:
string
}
|
null
;
}
[]
;
scanInfo
:
{
scannedAt
:
string
;
scannedBy
:
{
id
:
any
}
|
null
}
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...