@vnodes/ctc
Preparing search index...
PhoneService
Class PhoneService
Hierarchy
BasePhoneService
PhoneService
Index
Constructors
constructor
Properties
repo
Methods
create
One
delete
One
By
Id
find
Many
find
One
By
Id
find
One
By
Notes
find
One
By
Phone
find
One
By
Profile
Id
find
One
By
Profile
Id
Less
Than
find
One
By
Profile
Id
More
Than
soft
Delete
One
By
Id
to
Find
Many
Args
to
Include
to
Order
By
to
Where
update
One
By
Id
Constructors
constructor
new
PhoneService
(
repo
:
PhoneDelegate
)
:
PhoneService
Parameters
repo
:
PhoneDelegate
Returns
PhoneService
Properties
Protected
Readonly
repo
repo
:
PhoneDelegate
Methods
create
One
createOne
(
data
:
PhoneCreateInput
,
)
:
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
Parameters
data
:
PhoneCreateInput
Returns
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
delete
One
By
Id
deleteOneById
(
id
:
string
,
)
:
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
find
Many
findMany
(
query
:
QueryMany
,
)
:
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
[]
,
>
Parameters
query
:
QueryMany
Returns
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
[]
,
>
find
One
By
Id
findOneById
(
id
:
string
,
)
:
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
Parameters
id
:
string
Returns
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
find
One
By
Notes
findOneByNotes
(
notes
:
string
,
)
:
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
Parameters
notes
:
string
Returns
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
find
One
By
Phone
findOneByPhone
(
phone
:
string
,
)
:
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
Parameters
phone
:
string
Returns
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
find
One
By
Profile
Id
findOneByProfileId
(
profileId
:
number
,
)
:
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
Parameters
profileId
:
number
Returns
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
find
One
By
Profile
Id
Less
Than
findOneByProfileIdLessThan
(
profileId
:
number
,
)
:
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
Parameters
profileId
:
number
Returns
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
find
One
By
Profile
Id
More
Than
findOneByProfileIdMoreThan
(
profileId
:
number
,
)
:
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
Parameters
profileId
:
number
Returns
Promise
<
|
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
|
null
,
>
soft
Delete
One
By
Id
softDeleteOneById
(
id
:
string
,
)
:
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
to
Find
Many
Args
toFindManyArgs
(
query
?:
QueryMany
<
PhoneScalarFieldEnum
>
)
:
PhoneFindManyArgs
Parameters
Optional
query
:
QueryMany
<
PhoneScalarFieldEnum
>
Returns
PhoneFindManyArgs
to
Include
toInclude
()
:
undefined
Returns
undefined
to
Order
By
toOrderBy
(
query
?:
QueryMany
<
PhoneScalarFieldEnum
>
,
)
:
{
[
key
:
string
]:
SortOrder
}
|
undefined
Parameters
Optional
query
:
QueryMany
<
PhoneScalarFieldEnum
>
Returns
{
[
key
:
string
]:
SortOrder
}
|
undefined
to
Where
toWhere
(
query
?:
QueryMany
<
PhoneScalarFieldEnum
>
)
:
PhoneWhereInput
Parameters
Optional
query
:
QueryMany
<
PhoneScalarFieldEnum
>
Returns
PhoneWhereInput
update
One
By
Id
updateOneById
(
id
:
string
,
data
:
PhoneUpdateInput
,
)
:
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
Parameters
id
:
string
data
:
PhoneUpdateInput
Returns
Promise
<
{
contactType
:
ContactType
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
phone
:
string
;
profileId
:
number
|
null
;
updatedAt
:
Date
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
repo
Methods
create
One
delete
One
By
Id
find
Many
find
One
By
Id
find
One
By
Notes
find
One
By
Phone
find
One
By
Profile
Id
find
One
By
Profile
Id
Less
Than
find
One
By
Profile
Id
More
Than
soft
Delete
One
By
Id
to
Find
Many
Args
to
Include
to
Order
By
to
Where
update
One
By
Id
@vnodes/ctc
Loading...