@vnodes/ims
Preparing search index...
ProductService
Class ProductService
Hierarchy
BaseProductService
ProductService
Index
Constructors
constructor
Properties
repo
Methods
create
One
delete
One
By
Id
delete
One
By
Uuid
find
Many
find
One
By
Category
find
One
By
Description
find
One
By
Id
find
One
By
Name
find
One
By
Parent
Id
find
One
By
Parent
Id
Less
Than
find
One
By
Parent
Id
More
Than
find
One
By
Sku
find
One
By
Upc
find
One
By
Uuid
soft
Delete
One
By
Id
soft
Delete
One
By
Uuid
to
Find
Many
Args
to
Include
to
Order
By
to
Where
update
One
By
Id
update
One
By
Uuid
Constructors
constructor
new
ProductService
(
repo
:
ProductDelegate
)
:
ProductService
Parameters
repo
:
ProductDelegate
Returns
ProductService
Properties
Protected
Readonly
repo
repo
:
ProductDelegate
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
;
}
,
>
delete
One
By
Uuid
deleteOneByUuid
(
uuid
:
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
uuid
:
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
Category
findOneByCategory
(
category
:
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
category
:
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
,
>
find
One
By
Description
findOneByDescription
(
description
:
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
description
:
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
,
>
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
,
>
find
One
By
Name
findOneByName
(
name
:
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
name
:
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
,
>
find
One
By
Parent
Id
findOneByParentId
(
parentId
:
number
,
)
:
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
parentId
:
number
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
,
>
find
One
By
Parent
Id
Less
Than
findOneByParentIdLessThan
(
parentId
:
number
,
)
:
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
parentId
:
number
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
,
>
find
One
By
Parent
Id
More
Than
findOneByParentIdMoreThan
(
parentId
:
number
,
)
:
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
parentId
:
number
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
,
>
find
One
By
Sku
findOneBySku
(
sku
:
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
sku
:
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
,
>
find
One
By
Upc
findOneByUpc
(
upc
:
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
upc
:
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
,
>
find
One
By
Uuid
findOneByUuid
(
uuid
:
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
uuid
:
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
,
>
soft
Delete
One
By
Id
softDeleteOneById
(
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
;
}
,
>
soft
Delete
One
By
Uuid
softDeleteOneByUuid
(
uuid
:
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
uuid
:
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
;
}
,
>
to
Find
Many
Args
toFindManyArgs
(
query
?:
QueryMany
<
ProductScalarFieldEnum
>
)
:
ProductFindManyArgs
Parameters
Optional
query
:
QueryMany
<
ProductScalarFieldEnum
>
Returns
ProductFindManyArgs
to
Include
toInclude
()
:
{
attributes
:
boolean
;
categoryModel
:
boolean
;
images
:
boolean
;
prices
:
boolean
;
quantities
:
boolean
;
}
Returns
{
attributes
:
boolean
;
categoryModel
:
boolean
;
images
:
boolean
;
prices
:
boolean
;
quantities
:
boolean
;
}
to
Order
By
toOrderBy
(
query
?:
QueryMany
<
ProductScalarFieldEnum
>
,
)
:
{
[
key
:
string
]:
SortOrder
}
|
undefined
Parameters
Optional
query
:
QueryMany
<
ProductScalarFieldEnum
>
Returns
{
[
key
:
string
]:
SortOrder
}
|
undefined
to
Where
toWhere
(
query
?:
QueryMany
<
ProductScalarFieldEnum
>
)
:
ProductWhereInput
Parameters
Optional
query
:
QueryMany
<
ProductScalarFieldEnum
>
Returns
ProductWhereInput
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
;
}
,
>
update
One
By
Uuid
updateOneByUuid
(
uuid
:
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
uuid
:
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
repo
Methods
create
One
delete
One
By
Id
delete
One
By
Uuid
find
Many
find
One
By
Category
find
One
By
Description
find
One
By
Id
find
One
By
Name
find
One
By
Parent
Id
find
One
By
Parent
Id
Less
Than
find
One
By
Parent
Id
More
Than
find
One
By
Sku
find
One
By
Upc
find
One
By
Uuid
soft
Delete
One
By
Id
soft
Delete
One
By
Uuid
to
Find
Many
Args
to
Include
to
Order
By
to
Where
update
One
By
Id
update
One
By
Uuid
@vnodes/ims
Loading...