@acceleratxr/core_sdk / OAuthClientService
Class: OAuthClientService#
Hierarchy#
-
↳ OAuthClientService
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor#
+ new OAuthClientService(apiClient: ApiClient, config: Configuration): OAuthClientService
Overrides ServiceBase.constructor
Defined in src/services/OAuthClientService.ts:10
Parameters:#
Name |
Type |
|---|---|
|
|
|
Returns: OAuthClientService
Properties#
apiClient#
• Protected apiClient: ApiClient
Inherited from ServiceBase.apiClient
Defined in src/ServiceBase.ts:14
The API Client used when making requests to the API backend server.
config#
• Protected config: Configuration
Inherited from ServiceBase.config
Defined in src/ServiceBase.ts:19
The SDK configuration to use.
uuid#
▪ Static uuid: string = “b3e76870-94c0-457f-846a-3f84bdd0d89c”
Defined in src/services/OAuthClientService.ts:16
Methods#
count#
▸ count(query?: any): Promise<number>
Defined in src/services/OAuthClientService.ts:57
Returns the count of clients
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<number>
create#
▸ create(obj: OAuthClient): Promise<OAuthClient | undefined>
Defined in src/services/OAuthClientService.ts:33
Create a new client
Parameters:#
Name |
Type |
|---|---|
|
Returns: Promise<OAuthClient | undefined>
delete#
▸ delete(id: string): Promise<void>
Defined in src/services/OAuthClientService.ts:102
Deletes the client
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<void>
findAll#
▸ findAll(query?: any): Promise<OAuthClient[] | undefined>
Defined in src/services/OAuthClientService.ts:21
Returns all clients from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<OAuthClient[] | undefined>
findById#
▸ findById(id: string): Promise<OAuthClient | undefined>
Defined in src/services/OAuthClientService.ts:76
Returns a single client from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<OAuthClient | undefined>
truncate#
▸ truncate(query?: any): Promise<void>
Defined in src/services/OAuthClientService.ts:45
Deletes all clients from the service.
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<void>
update#
▸ update(id: string, obj: OAuthClient): Promise<OAuthClient | undefined>
Defined in src/services/OAuthClientService.ts:89
Updates a single client
Parameters:#
Name |
Type |
|---|---|
|
string |
|
Returns: Promise<OAuthClient | undefined>