Constructor
# new ApiClient()
Methods
# async bulkAction(options) → {Promise.<BulkActionResponse>}
Invokes given bulk Action on the backend.
Parameters:
Name | Type | Description |
---|---|---|
options |
BulkActionAPIParams |
response from an Action
# async getDashboard(options) → {Promise.<any>}
Invokes dashboard handler.
Parameters:
Name | Type | Description |
---|---|---|
options |
AxiosRequestConfig |
response from the handler function defined in AdminBroOptions#dashboard
# async getPage(options) → {Promise.<any>}
Invokes handler function of given page and returns its response.
Parameters:
Name | Type | Description |
---|---|---|
options |
GetPageAPIParams |
response from the handler of given page defined in AdminBroOptions#pages
# async recordAction(options) → {Promise.<RecordActionResponse>}
Invokes given record Action on the backend.
Parameters:
Name | Type | Description |
---|---|---|
options |
RecordActionAPIParams |
response from an Action
# async resourceAction(options) → {Promise.<ActionResponse>}
Invokes given resource Action on the backend.
Parameters:
Name | Type | Description |
---|---|---|
options |
ResourceActionAPIParams |
response from an Action
# async searchRecords(options) → {Promise.<SearchResponse>}
Search by query string for records in a given resource.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | |
resourceId |
String | id of a ResourceJSON |
query |
String | query string |
Type Definitions
# BulkActionAPIParams
Extends AxiosRequestConfig
Properties:
Name | Type | Description |
---|---|---|
... |
any | any property supported by AxiosRequestConfig |
recordIds |
Array.<string> | id of a record taken from RecordJSON |
resourceId |
string | id of a resource taken from ResourceJSON |
actionName |
string | action name taken from ActionJSON |
# GetPageAPIParams
Extends AxiosRequestConfig
Properties:
Name | Type | Description |
---|---|---|
... |
any | any property supported by AxiosRequestConfig |
pageName |
string | Unique page name |
# RecordActionAPIParams
Extends AxiosRequestConfig
Properties:
Name | Type | Description |
---|---|---|
... |
any | any property supported by AxiosRequestConfig |
recordId |
string | id of a record taken from RecordJSON |
resourceId |
string | id of a resource taken from ResourceJSON |
actionName |
string | action name taken from ActionJSON |
# ResourceActionAPIParams
Extends AxiosRequestConfig
Properties:
Name | Type | Description |
---|---|---|
... |
any | any property supported by AxiosRequestConfig |
resourceId |
string | id of a resource taken from ResourceJSON |
actionName |
string | action name taken from ActionJSON |