ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/tablet/process/validate/route
POST
Function POST
POST
(
request
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
;
message
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
data
:
{
isValid
:
boolean
;
errors
:
string
[]
;
warnings
:
string
[]
;
processStatus
:
{
workstation
:
|
{
id
:
string
;
code
:
string
;
name
:
string
;
isActive
:
boolean
;
}
|
null
;
manufacturingOrder
:
|
{
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
product
:
string
;
}
|
null
;
materials
:
{
id
:
string
;
code
:
string
;
name
:
string
}
[]
;
user
:
{
id
:
string
;
name
:
string
|
null
;
email
:
string
}
|
null
;
canProceed
:
boolean
;
action
:
any
;
}
;
scanInfo
:
{
validatedAt
:
string
;
validatedBy
:
{
id
:
string
|
undefined
;
name
:
string
|
null
|
undefined
;
email
:
string
|
undefined
;
}
;
}
;
}
;
}
,
>
,
>
API Tablette - Valider le Processus Complet de Scan
POST /api/tablet/process/validate
Body:
workstationId: string (ID du poste de travail)
workOrderId: string (ID de l'OF)
materialIds: string[] (IDs des matières scannées)
userId: string (ID de l'utilisateur)
action: 'start' | 'pause' | 'resume' | 'complete' (action à effectuer)
metadata?: object (données supplémentaires)
Réponse:
isValid: boolean (si le processus est valide)
errors: string[] (erreurs de validation)
warnings: string[] (avertissements)
processStatus: object (statut du processus)
Parameters
request
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
error
:
string
;
message
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
data
:
{
isValid
:
boolean
;
errors
:
string
[]
;
warnings
:
string
[]
;
processStatus
:
{
workstation
:
|
{
id
:
string
;
code
:
string
;
name
:
string
;
isActive
:
boolean
;
}
|
null
;
manufacturingOrder
:
|
{
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
product
:
string
;
}
|
null
;
materials
:
{
id
:
string
;
code
:
string
;
name
:
string
}
[]
;
user
:
{
id
:
string
;
name
:
string
|
null
;
email
:
string
}
|
null
;
canProceed
:
boolean
;
action
:
any
;
}
;
scanInfo
:
{
validatedAt
:
string
;
validatedBy
:
{
id
:
string
|
undefined
;
name
:
string
|
null
|
undefined
;
email
:
string
|
undefined
;
}
;
}
;
}
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...
API Tablette - Valider le Processus Complet de Scan
POST /api/tablet/process/validate
Body:
Réponse: