Search
Preparing search index...
The search index is not available
Home
ProjectService
Class ProjectService
Hierarchy
Service
ProjectService
Index
Constructors
constructor
Properties
current
Project$
Accessors
current
Project
headers
Methods
call
Current
Project
destroy
get
Project
get
Projects
init
is
Project
Valid
switch
Current
Project
update
Project
with
Custom
Project
Metadata
Constructors
constructor
new
Project
Service
(
currentProject
?:
CurrentProject
)
:
ProjectService
Parameters
Default value
currentProject:
CurrentProject
= null
Returns
ProjectService
Properties
Readonly
current
Project$
current
Project$
:
ObjectSubject
<
CurrentProject
,
"key"
|
"metadata"
>
= new ObjectSubject<CurrentProject>(null)
Accessors
current
Project
get
currentProject
(
)
:
CurrentProject
Returns
CurrentProject
headers
get
headers
(
)
:
{}
Returns
{}
[
key:
string
]:
any
Methods
call
Current
Project
call
Current
Project<T, P>
(
payload
:
P
)
:
Promise
<
T
>
Type parameters
T
P
Parameters
payload:
P
Returns
Promise
<
T
>
destroy
destroy
(
)
:
void
Returns
void
get
Project
get
Project
(
key
:
string
)
:
Promise
<
Project
>
Parameters
key:
string
Returns
Promise
<
Project
>
get
Projects
get
Projects
(
page
:
number
)
:
Promise
<
Projects
>
Parameters
page:
number
Returns
Promise
<
Projects
>
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
is
Project
Valid
is
Project
Valid
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
switch
Current
Project
switch
Current
Project
(
currentProject
:
CurrentProject
)
:
CurrentProject
Parameters
currentProject:
CurrentProject
Returns
CurrentProject
update
Project
update
Project
(
key
:
string
, privateKey
:
string
, endpoint
:
string
)
:
Promise
<
Project
>
Parameters
key:
string
privateKey:
string
endpoint:
string
Returns
Promise
<
Project
>
with
Custom
Project
Metadata
with
Custom
Project
Metadata<T>
(
customMetadata
:
string
, inner
:
(
)
=>
Promise
<
T
>
)
:
Promise
<
T
>
Type parameters
T
Parameters
customMetadata:
string
inner:
(
)
=>
Promise
<
T
>
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
Returns
Promise
<
T
>
Globals
Project
Service
constructor
current
Project$
current
Project
headers
call
Current
Project
destroy
get
Project
get
Projects
init
is
Project
Valid
switch
Current
Project
update
Project
with
Custom
Project
Metadata