@vnodes/ims
Preparing search index...
ProductController
Class ProductController
Hierarchy
BaseProductController
ProductController
Index
Constructors
constructor
Properties
service
Methods
create
One
delete
One
By
Id
find
Many
find
One
By
Id
update
One
By
Id
Constructors
constructor
new
ProductController
(
service
:
ProductService
)
:
ProductController
Parameters
service
:
ProductService
Returns
ProductController
Properties
Protected
Readonly
service
service
:
BaseProductService
Methods
create
One
createOne
(
data
:
ProductCreateInput
,
)
:
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
,
>
Parameters
data
:
ProductCreateInput
Returns
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
,
>
delete
One
By
Id
deleteOneById
(
id
:
string
,
)
:
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
,
>
find
Many
findMany
(
query
:
QueryMany
,
)
:
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
[]
,
>
Parameters
query
:
QueryMany
Returns
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
[]
,
>
find
One
By
Id
findOneById
(
id
:
string
,
)
:
Promise
<
|
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
|
null
,
>
Parameters
id
:
string
Returns
Promise
<
|
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
|
null
,
>
update
One
By
Id
updateOneById
(
id
:
string
,
data
:
ProductUpdateInput
,
)
:
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
,
>
Parameters
id
:
string
data
:
ProductUpdateInput
Returns
Promise
<
{
category
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
;
operation
:
ProductOperation
;
parentId
:
number
|
null
;
sku
:
string
;
upc
:
string
;
updatedAt
:
Date
;
uuid
:
string
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
service
Methods
create
One
delete
One
By
Id
find
Many
find
One
By
Id
update
One
By
Id
@vnodes/ims
Loading...