@vnodes/ctc
Preparing search index...
AddressService
Class AddressService
Hierarchy
BaseAddressService
AddressService
Index
Constructors
constructor
Properties
repo
Methods
create
One
delete
One
By
Id
find
Many
find
One
By
City
find
One
By
Country
find
One
By
Id
find
One
By
Notes
find
One
By
Profile
Id
find
One
By
Profile
Id
Less
Than
find
One
By
Profile
Id
More
Than
find
One
By
Province
find
One
By
State
find
One
By
Street
find
One
By
Unit
find
One
By
Zip
soft
Delete
One
By
Id
to
Find
Many
Args
to
Include
to
Order
By
to
Where
update
One
By
Id
Constructors
constructor
new
AddressService
(
repo
:
AddressDelegate
)
:
AddressService
Parameters
repo
:
AddressDelegate
Returns
AddressService
Properties
Protected
Readonly
repo
repo
:
AddressDelegate
Methods
create
One
createOne
(
data
:
AddressCreateInput
,
)
:
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
Parameters
data
:
AddressCreateInput
Returns
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
delete
One
By
Id
deleteOneById
(
id
:
string
,
)
:
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
find
Many
findMany
(
query
:
QueryMany
,
)
:
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
[]
,
>
Parameters
query
:
QueryMany
Returns
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
[]
,
>
find
One
By
City
findOneByCity
(
city
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
city
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Country
findOneByCountry
(
country
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
country
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Id
findOneById
(
id
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
id
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Notes
findOneByNotes
(
notes
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
notes
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Profile
Id
findOneByProfileId
(
profileId
:
number
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
profileId
:
number
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Profile
Id
Less
Than
findOneByProfileIdLessThan
(
profileId
:
number
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
profileId
:
number
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Profile
Id
More
Than
findOneByProfileIdMoreThan
(
profileId
:
number
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
profileId
:
number
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Province
findOneByProvince
(
province
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
province
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
State
findOneByState
(
state
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
state
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Street
findOneByStreet
(
street
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
street
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Unit
findOneByUnit
(
unit
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
unit
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
find
One
By
Zip
findOneByZip
(
zip
:
string
,
)
:
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
Parameters
zip
:
string
Returns
Promise
<
|
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
|
null
,
>
soft
Delete
One
By
Id
softDeleteOneById
(
id
:
string
,
)
:
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
Parameters
id
:
string
Returns
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
to
Find
Many
Args
toFindManyArgs
(
query
?:
QueryMany
<
AddressScalarFieldEnum
>
)
:
AddressFindManyArgs
Parameters
Optional
query
:
QueryMany
<
AddressScalarFieldEnum
>
Returns
AddressFindManyArgs
to
Include
toInclude
()
:
undefined
Returns
undefined
to
Order
By
toOrderBy
(
query
?:
QueryMany
<
AddressScalarFieldEnum
>
,
)
:
{
[
key
:
string
]:
SortOrder
}
|
undefined
Parameters
Optional
query
:
QueryMany
<
AddressScalarFieldEnum
>
Returns
{
[
key
:
string
]:
SortOrder
}
|
undefined
to
Where
toWhere
(
query
?:
QueryMany
<
AddressScalarFieldEnum
>
)
:
AddressWhereInput
Parameters
Optional
query
:
QueryMany
<
AddressScalarFieldEnum
>
Returns
AddressWhereInput
update
One
By
Id
updateOneById
(
id
:
string
,
data
:
AddressUpdateInput
,
)
:
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
Parameters
id
:
string
data
:
AddressUpdateInput
Returns
Promise
<
{
city
:
string
;
contactType
:
ContactType
;
country
:
string
|
null
;
createdAt
:
Date
;
deletedAt
:
Date
|
null
;
id
:
number
;
notes
:
string
|
null
;
profileId
:
number
|
null
;
province
:
string
|
null
;
state
:
string
|
null
;
street
:
string
;
unit
:
string
|
null
;
updatedAt
:
Date
;
zip
:
string
|
null
;
}
,
>
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
City
find
One
By
Country
find
One
By
Id
find
One
By
Notes
find
One
By
Profile
Id
find
One
By
Profile
Id
Less
Than
find
One
By
Profile
Id
More
Than
find
One
By
Province
find
One
By
State
find
One
By
Street
find
One
By
Unit
find
One
By
Zip
soft
Delete
One
By
Id
to
Find
Many
Args
to
Include
to
Order
By
to
Where
update
One
By
Id
@vnodes/ctc
Loading...