ClientService
@auvious/client / Exports / ClientService
Class: ClientService
Supports client management from one user to another.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ClientService(commonSource)
Parameters
| Name | Type |
|---|---|
commonSource | Observable<AuviousCommon> |
Properties
apiResource
• Private apiResource: ApiResource
Methods
create
▸ create(description, roles?): Promise<IClient>
Parameters
| Name | Type |
|---|---|
description | string |
roles? | string[] |
Returns
Promise<IClient>
delete
▸ delete(clientId): Promise<any>
Parameters
| Name | Type |
|---|---|
clientId | string |
Returns
Promise<any>
list
▸ list(): Promise<IClient[]>
Returns
Promise<IClient[]>
update
▸ update(clientId, description, roles): Promise<IClient>
Parameters
| Name | Type |
|---|---|
clientId | string |
description | string |
roles | string[] |
Returns
Promise<IClient>