ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/(protected)/sales/finished-products/hooks/use-products
useProductMutations
Function useProductMutations
useProductMutations
()
:
{
create
:
UseMutationResult
<
any
,
Error
,
|
FormData
|
{
name
:
string
;
description
?:
string
;
variant
?:
string
;
productType
:
"CONSUMABLE"
|
"SERVICE"
|
"OUTILLAGE"
|
"STOCKABLE"
;
stage
?:
"DEVELOPPEMENT"
|
"EN_SERIE"
|
"ARRETE"
|
null
;
billingPolicy
?:
"DELIVERED"
|
"ORDERED"
|
"MANUAL"
;
sellingPrice
:
number
;
cost
:
number
;
costPerUnit
?:
string
;
categoryId
?:
string
;
clientId
?:
string
;
unitOfMeasureId
?:
string
;
unitOfSaleId
?:
string
;
unitOfProductionId
?:
string
;
conversionFactor
?:
number
;
salesTaxId
?:
string
;
height
?:
number
;
width
?:
number
;
length
?:
number
;
thickness
?:
number
;
depth
?:
number
;
weight
?:
number
;
color
?:
string
;
salesMultiple
?:
number
;
minimumQuantity
?:
number
;
barcode
?:
string
;
internalReference
?:
string
;
supplierCode
?:
string
;
internalNotes
?:
string
;
tags
?:
string
;
imageUrl
?:
string
;
imageKey
?:
string
;
}
,
unknown
,
>
;
update
:
UseMutationResult
<
any
,
Error
,
|
FormData
|
{
name
?:
string
;
description
?:
string
;
variant
?:
string
;
productType
?:
"CONSUMABLE"
|
"SERVICE"
|
"OUTILLAGE"
|
"STOCKABLE"
;
stage
?:
"DEVELOPPEMENT"
|
"EN_SERIE"
|
"ARRETE"
|
null
;
billingPolicy
?:
"DELIVERED"
|
"ORDERED"
|
"MANUAL"
;
sellingPrice
?:
number
;
cost
?:
number
;
costPerUnit
?:
string
;
categoryId
?:
string
;
clientId
?:
string
;
unitOfMeasureId
?:
string
;
unitOfSaleId
?:
string
;
unitOfProductionId
?:
string
;
conversionFactor
?:
number
;
salesTaxId
?:
string
;
height
?:
number
;
width
?:
number
;
length
?:
number
;
thickness
?:
number
;
depth
?:
number
;
weight
?:
number
;
color
?:
string
;
salesMultiple
?:
number
;
minimumQuantity
?:
number
;
barcode
?:
string
;
internalReference
?:
string
;
supplierCode
?:
string
;
internalNotes
?:
string
;
tags
?:
string
;
imageUrl
?:
string
;
imageKey
?:
string
;
id
:
string
;
isActive
?:
boolean
;
}
,
unknown
,
>
;
delete
:
UseMutationResult
<
any
,
Error
,
string
,
unknown
>
;
}
Returns
{
create
:
UseMutationResult
<
any
,
Error
,
|
FormData
|
{
name
:
string
;
description
?:
string
;
variant
?:
string
;
productType
:
"CONSUMABLE"
|
"SERVICE"
|
"OUTILLAGE"
|
"STOCKABLE"
;
stage
?:
"DEVELOPPEMENT"
|
"EN_SERIE"
|
"ARRETE"
|
null
;
billingPolicy
?:
"DELIVERED"
|
"ORDERED"
|
"MANUAL"
;
sellingPrice
:
number
;
cost
:
number
;
costPerUnit
?:
string
;
categoryId
?:
string
;
clientId
?:
string
;
unitOfMeasureId
?:
string
;
unitOfSaleId
?:
string
;
unitOfProductionId
?:
string
;
conversionFactor
?:
number
;
salesTaxId
?:
string
;
height
?:
number
;
width
?:
number
;
length
?:
number
;
thickness
?:
number
;
depth
?:
number
;
weight
?:
number
;
color
?:
string
;
salesMultiple
?:
number
;
minimumQuantity
?:
number
;
barcode
?:
string
;
internalReference
?:
string
;
supplierCode
?:
string
;
internalNotes
?:
string
;
tags
?:
string
;
imageUrl
?:
string
;
imageKey
?:
string
;
}
,
unknown
,
>
;
update
:
UseMutationResult
<
any
,
Error
,
|
FormData
|
{
name
?:
string
;
description
?:
string
;
variant
?:
string
;
productType
?:
"CONSUMABLE"
|
"SERVICE"
|
"OUTILLAGE"
|
"STOCKABLE"
;
stage
?:
"DEVELOPPEMENT"
|
"EN_SERIE"
|
"ARRETE"
|
null
;
billingPolicy
?:
"DELIVERED"
|
"ORDERED"
|
"MANUAL"
;
sellingPrice
?:
number
;
cost
?:
number
;
costPerUnit
?:
string
;
categoryId
?:
string
;
clientId
?:
string
;
unitOfMeasureId
?:
string
;
unitOfSaleId
?:
string
;
unitOfProductionId
?:
string
;
conversionFactor
?:
number
;
salesTaxId
?:
string
;
height
?:
number
;
width
?:
number
;
length
?:
number
;
thickness
?:
number
;
depth
?:
number
;
weight
?:
number
;
color
?:
string
;
salesMultiple
?:
number
;
minimumQuantity
?:
number
;
barcode
?:
string
;
internalReference
?:
string
;
supplierCode
?:
string
;
internalNotes
?:
string
;
tags
?:
string
;
imageUrl
?:
string
;
imageKey
?:
string
;
id
:
string
;
isActive
?:
boolean
;
}
,
unknown
,
>
;
delete
:
UseMutationResult
<
any
,
Error
,
string
,
unknown
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...