Preparing search index...
The search index is not available
GHL SDK - v1.1.6
GHL SDK
OpportunitiesClient
Class OpportunitiesClient
Hierarchy
GhlClient
OpportunitiesClient
Index
Constructors
constructor
Methods
find
By
Id
remove
update
update
Status
upsert
create
search
find
Pipelines
add
Followers
remove
Followers
Constructors
constructor
new
OpportunitiesClient
(
accessToken
:
string
)
:
OpportunitiesClient
Parameters
accessToken
:
string
Returns
OpportunitiesClient
Methods
find
By
Id
findById
(
opportunityId
:
string
)
:
Promise
<
OpportunityResponse
>
Parameters
opportunityId
:
string
Returns
Promise
<
OpportunityResponse
>
remove
remove
(
opportunityId
:
string
)
:
Promise
<
SuccededDeleteResponse
>
Parameters
opportunityId
:
string
Returns
Promise
<
SuccededDeleteResponse
>
update
update
(
opportunityId
:
string
,
dto
:
UpdateOpportunityDto
,
)
:
Promise
<
OpportunityResponse
>
Parameters
opportunityId
:
string
dto
:
UpdateOpportunityDto
Returns
Promise
<
OpportunityResponse
>
update
Status
updateStatus
(
opportunityId
:
string
,
status
:
OpportunityStatus
,
)
:
Promise
<
UpdateOpportunityStatusResponse
>
Parameters
opportunityId
:
string
status
:
OpportunityStatus
Returns
Promise
<
UpdateOpportunityStatusResponse
>
upsert
upsert
(
dto
:
UpsertOpportunityDto
)
:
Promise
<
UpsertOpportunityResponse
>
Parameters
dto
:
UpsertOpportunityDto
Returns
Promise
<
UpsertOpportunityResponse
>
create
create
(
dto
:
CreateOpportunityDto
)
:
Promise
<
OpportunityResponse
>
Parameters
dto
:
CreateOpportunityDto
Returns
Promise
<
OpportunityResponse
>
search
search
(
params
:
OpportunitySearchParams
)
:
Promise
<
OpportunitiesSearchResponse
>
Parameters
params
:
OpportunitySearchParams
Returns
Promise
<
OpportunitiesSearchResponse
>
find
Pipelines
findPipelines
(
locationId
:
string
)
:
Promise
<
ListPipelinesResponse
>
Parameters
locationId
:
string
Returns
Promise
<
ListPipelinesResponse
>
add
Followers
addFollowers
(
opportunityId
:
string
,
followers
:
string
[]
,
)
:
Promise
<
AddOpportunityFollowersResponse
>
Parameters
opportunityId
:
string
followers
:
string
[]
Returns
Promise
<
AddOpportunityFollowersResponse
>
remove
Followers
removeFollowers
(
opportunityId
:
string
,
followers
:
string
[]
,
)
:
Promise
<
RemoveOpportunityFollowersResponse
>
Parameters
opportunityId
:
string
followers
:
string
[]
Returns
Promise
<
RemoveOpportunityFollowersResponse
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
find
By
Id
remove
update
update
Status
upsert
create
search
find
Pipelines
add
Followers
remove
Followers
GHL SDK - v1.1.6
Loading...