Class: CRestApiClient
frontend.CRestApiClient
CRestApiClient - CromwellCMS REST API Client
#
Table of contents#
Methods- activatePlugin
- activateTheme
- buildSitemap
- changeTheme
- createPaymentSession
- createPublicDir
- delete
- deletePage
- deletePlugin
- deleteTheme
- downloadPublicFile
- exportDB
- fetch
- forgotPassword
- get
- getAdminCmsSettings
- getBaseUrl
- getCmsSettings
- getCmsStats
- getCmsStatus
- getOrderTotal
- getPageConfig
- getPageConfigs
- getPagesInfo
- getPluginAdminBundle
- getPluginEntity
- getPluginFrontendBundle
- getPluginList
- getPluginNames
- getPluginSettings
- getPluginUpdate
- getPluginsAtPage
- getSystemUsage
- getThemeConfig
- getThemeInfo
- getThemePalette
- getThemeUpdate
- getThemesInfo
- getUserInfo
- importDB
- installPlugin
- installTheme
- launchCmsUpdate
- logOut
- login
- onError
- onUnauthorized
- placeOrder
- placeProductReview
- post
- put
- readPublicDir
- removeOnError
- removeOnUnauthorized
- removePublicDir
- resetPage
- resetPassword
- saveCmsSettings
- savePageConfig
- savePluginSettings
- saveThemePalette
- signUp
- updatePlugin
- updateTheme
- uploadPublicFiles
#
Methods#
activatePluginâ–¸ activatePlugin(pluginName
, options?
): Promise
<boolean
>
Active disabled Plugin
auth
admin
#
ParametersName | Type |
---|---|
pluginName | string |
options? | TRequestOptions |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:458
#
activateThemeâ–¸ activateTheme(themeName
, options?
): Promise
<boolean
>
Active disabled Theme
auth
admin
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:449
#
buildSitemapâ–¸ buildSitemap(options?
): Promise
<undefined
| TCmsSettings
>
Build sitemap at /default_sitemap.xml
auth
admin
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TCmsSettings
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:591
#
changeThemeâ–¸ changeTheme(themeName
, options?
): Promise
<boolean
>
Set active Theme
auth
admin
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:467
#
createPaymentSessionâ–¸ createPaymentSession(input
, options?
): Promise
<undefined
| TOrderPaymentSession
>
Calculate total price of a cart and creates a payment session via service provider
auth
no
#
ParametersName | Type |
---|---|
input | TOrderPaymentSession |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TOrderPaymentSession
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:484
#
createPublicDirâ–¸ createPublicDir(dirName
, inPath?
, options?
): Promise
<undefined
| null
| string
[]>
Crates a public directory by specified path
auth
admin
#
ParametersName | Type |
---|---|
dirName | string |
inPath? | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| null
| string
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:376
#
deleteâ–¸ delete<T
>(route
, input?
, options?
): Promise
<T
>
Makes DELETE request to specified route
auth
no
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
route | string |
input? | any |
options? | TRequestOptions |
#
ReturnsPromise
<T
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:223
#
deletePageâ–¸ deletePage(pageRoute
, themeName
, options?
): Promise
<undefined
| boolean
>
Delete generic page of currently active Theme
auth
admin
#
ParametersName | Type |
---|---|
pageRoute | string |
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:655
#
deletePluginâ–¸ deletePlugin(pluginName
, options?
): Promise
<undefined
| boolean
>
Delete (uninstall) Plugin
auth
admin
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:812
#
deleteThemeâ–¸ deleteTheme(themeName
, options?
): Promise
<undefined
| boolean
>
Delete (uninstall) Theme
auth
admin
#
ParametersName | Type | Description |
---|---|---|
themeName | string | npm package name of a Theme |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:630
#
downloadPublicFileâ–¸ downloadPublicFile(fileName
, type
, inPath?
): Promise
<void
>
Download a public file
auth
admin
#
ParametersName | Type |
---|---|
fileName | string |
type | "file" | "dir" |
inPath? | string |
#
ReturnsPromise
<void
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:384
#
exportDBâ–¸ exportDB(tables?
, options?
): Promise
<void
>
Export database into Excel (.xlsx) file.
auth
admin
#
ParametersName | Type | Description |
---|---|---|
tables? | ("Theme" | "Plugin" | "Post" | "PostComment" | "Tag" | "Product" | "ProductVariant" | "ProductCategory" | "ProductReview" | "Attribute" | "Order" | "User" | "Generic" | "CMS" | "CustomEntity" | "Coupon" )[] | specify tables to export or export all if not provided |
options? | TRequestOptions | - |
#
ReturnsPromise
<void
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:541
#
fetchâ–¸ fetch<T
>(route
, options?
): Promise
<T
>
Make a custom request to a specified route
auth
no
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
route | string |
options? | TRequestOptions |
#
ReturnsPromise
<T
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:163
#
forgotPasswordâ–¸ forgotPassword(credentials
, options?
): Promise
<undefined
| boolean
>
Initiate reset password transaction. Will send a code to user's email
auth
no
#
ParametersName | Type |
---|---|
credentials | Object |
credentials.email | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:285
#
getâ–¸ get<T
>(route
, options?
): Promise
<T
>
Makes GET request to specified route
auth
no
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
route | string |
options? | TRequestOptions |
#
ReturnsPromise
<T
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:203
#
getAdminCmsSettingsâ–¸ getAdminCmsSettings(options?
): Promise
<TCmsConfig
& TCmsPublicSettings
& TCmsAdminSettings
& TCmsInternalSettings
& { robotsContent?
: string
}>
Get admin CMS settings
auth
admin
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<TCmsConfig
& TCmsPublicSettings
& TCmsAdminSettings
& TCmsInternalSettings
& { robotsContent?
: string
}>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:348
#
getBaseUrlâ–¸ getBaseUrl(): string
#
Returnsstring
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:68
#
getCmsSettingsâ–¸ getCmsSettings(options?
): Promise
<TCmsSettings
>
Get public CMS settings
auth
no
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<TCmsSettings
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:340
#
getCmsStatsâ–¸ getCmsStats(options?
): Promise
<undefined
| TCmsStats
>
Get CMS recent statistics, for Admin panel home page
auth
admin
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TCmsStats
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:508
#
getCmsStatusâ–¸ getCmsStatus(options?
): Promise
<undefined
| TCmsStatus
>
Get CMS updates info
auth
admin
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TCmsStatus
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:524
#
getOrderTotalâ–¸ getOrderTotal(input
, options?
): Promise
<undefined
| TOrder
>
Calculate total price of a cart
auth
no
#
ParametersName | Type |
---|---|
input | TOrderInput |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TOrder
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:476
#
getPageConfigâ–¸ getPageConfig(pageRoute
, themeName
, options?
): Promise
<undefined
| TPageConfig
>
Get page config by page route of currently active Theme
auth
no
#
ParametersName | Type |
---|---|
pageRoute | string |
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TPageConfig
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:638
#
getPageConfigsâ–¸ getPageConfigs(themeName
, options?
): Promise
<undefined
| TPageConfig
[]>
Get all page config of currently active Theme
auth
no
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TPageConfig
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:699
#
getPagesInfoâ–¸ getPagesInfo(themeName
, options?
): Promise
<undefined
| TPageInfo
[]>
Get all pages info of currently active Theme
auth
no
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TPageInfo
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:691
#
getPluginAdminBundleâ–¸ getPluginAdminBundle(pluginName
, options?
): Promise
<undefined
| TFrontendBundle
>
Get admin panel bundle of Plugin
auth
no
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| TFrontendBundle
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:858
#
getPluginEntityâ–¸ getPluginEntity(pluginName
, options?
): Promise
<undefined
| TPluginEntity
>
Get Plugin's full DB record
auth
admin
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| TPluginEntity
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:840
#
getPluginFrontendBundleâ–¸ getPluginFrontendBundle(pluginName
, options?
): Promise
<undefined
| TFrontendBundle
>
Get frontend bundle of Plugin
auth
no
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| TFrontendBundle
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:849
#
getPluginListâ–¸ getPluginList(options?
): Promise
<undefined
| TPackageCromwellConfig
[]>
List all installed Plugins
auth
admin
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TPackageCromwellConfig
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:434
#
getPluginNamesâ–¸ getPluginNames(themeName
, options?
): Promise
<undefined
| string
[]>
Get all used Plugins in currently active Theme
auth
no
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| string
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:683
#
getPluginSettingsâ–¸ getPluginSettings(pluginName
, options?
): Promise
<any
>
Get settings of Plugin
auth
no
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:821
#
getPluginUpdateâ–¸ getPluginUpdate(pluginName
, options?
): Promise
<undefined
| TCCSVersion
>
Get available update info for Plugin
auth
admin
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| TCCSVersion
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:785
#
getPluginsAtPageâ–¸ getPluginsAtPage(pageRoute
, themeName
, options?
): Promise
<undefined
| { pluginInstances?
: any
; pluginName
: string
; version?
: string
}[]>
Get all used Plugins at specified page of currently active Theme
auth
admin
#
ParametersName | Type |
---|---|
pageRoute | string |
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| { pluginInstances?
: any
; pluginName
: string
; version?
: string
}[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:671
#
getSystemUsageâ–¸ getSystemUsage(options?
): Promise
<undefined
| TSystemUsage
>
Get system specs and usage
auth
admin
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TSystemUsage
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:516
#
getThemeConfigâ–¸ getThemeConfig(themeName
, options?
): Promise
<undefined
| TThemeConfig
>
Get theme config of currently active Theme
auth
no
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TThemeConfig
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:715
#
getThemeInfoâ–¸ getThemeInfo(themeName
, options?
): Promise
<undefined
| TPackageCromwellConfig
>
Get theme info of currently active Theme
auth
no
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TPackageCromwellConfig
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:707
#
getThemePaletteâ–¸ getThemePalette(themeName
, options?
): Promise
<TPalette
>
Update page config by page route of currently active Theme
auth
admin
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<TPalette
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:728
#
getThemeUpdateâ–¸ getThemeUpdate(themeName
, options?
): Promise
<undefined
| TCCSVersion
>
Check if Theme has available update
auth
admin
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TCCSVersion
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:604
#
getThemesInfoâ–¸ getThemesInfo(options?
): Promise
<undefined
| TPackageCromwellConfig
[]>
Get info about currently used Theme
auth
no
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TPackageCromwellConfig
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:426
#
getUserInfoâ–¸ getUserInfo(options?
): Promise
<undefined
| TUser
>
Returns currently logged user profile
auth
any
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TUser
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:269
#
importDBâ–¸ importDB(files
, removeSurplus?
, options?
): Promise
<undefined
| null
| boolean
>
Import database from Excel (.xlsx) file/files
auth
admin
#
ParametersName | Type |
---|---|
files | File [] |
removeSurplus? | boolean |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| null
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:567
#
installPluginâ–¸ installPlugin(pluginName
, options?
): Promise
<undefined
| boolean
>
Install a new Plugin
auth
admin
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:803
#
installThemeâ–¸ installTheme(themeName
, options?
): Promise
<undefined
| boolean
>
Install a new Theme
auth
admin
#
ParametersName | Type | Description |
---|---|---|
themeName | string | npm package name of a Theme |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:621
#
launchCmsUpdateâ–¸ launchCmsUpdate(options?
): Promise
<undefined
| boolean
>
Launch CMS update
auth
admin
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:532
#
logOutâ–¸ logOut(options?
): Promise
<any
>
Logs user out via cookies
auth
any
#
ParametersName | Type |
---|---|
options? | TRequestOptions |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:260
#
loginâ–¸ login(credentials
, options?
): Promise
<undefined
| TUser
>
Logs user in via cookies
auth
no
#
ParametersName | Type |
---|---|
credentials | Object |
credentials.email | string |
credentials.password | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TUser
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:249
#
onErrorâ–¸ onError(cb
, id?
): void
Add on error callback. Triggers if any of methods of this client get any type of error
#
ParametersName | Type |
---|---|
cb | (info : TErrorInfo ) => any |
id? | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:321
#
onUnauthorizedâ–¸ onUnauthorized(callback
, id?
): void
Add on unauthorized error callback. Triggers if any of methods of this client get unauthorized error
#
ParametersName | Type |
---|---|
callback | (route : string ) => any |
id? | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:305
#
placeOrderâ–¸ placeOrder(input
, options?
): Promise
<undefined
| TOrder
>
Place a new order in the store
auth
no
#
ParametersName | Type |
---|---|
input | TOrderInput |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TOrder
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:492
#
placeProductReviewâ–¸ placeProductReview(input
, options?
): Promise
<undefined
| TProductReview
>
Place a review about some product
auth
no
#
ParametersName | Type |
---|---|
input | TProductReviewInput |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TProductReview
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:500
#
postâ–¸ post<T
>(route
, input?
, options?
): Promise
<T
>
Makes POST request to specified route
auth
no
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
route | string |
input? | any |
options? | TRequestOptions |
#
ReturnsPromise
<T
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:211
#
putâ–¸ put<T
>(route
, input?
, options?
): Promise
<T
>
Makes PUT request to specified route
auth
no
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
route | string |
input? | any |
options? | TRequestOptions |
#
ReturnsPromise
<T
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:235
#
readPublicDirâ–¸ readPublicDir(path?
, options?
): Promise
<undefined
| null
| string
[]>
List files in a public directory by specified path
auth
no
#
ParametersName | Type |
---|---|
path? | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| null
| string
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:368
#
removeOnErrorâ–¸ removeOnError(id
): void
Remove on error callback
#
ParametersName | Type |
---|---|
id | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:329
#
removeOnUnauthorizedâ–¸ removeOnUnauthorized(id
): void
Remove on unauthorized error callback
#
ParametersName | Type |
---|---|
id | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:313
#
removePublicDirâ–¸ removePublicDir(dirName
, inPath?
, options?
): Promise
<undefined
| null
| string
[]>
Removes a public directory by specified path
auth
admin
#
ParametersName | Type |
---|---|
dirName | string |
inPath? | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| null
| string
[]>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:400
#
resetPageâ–¸ resetPage(pageRoute
, themeName
, options?
): Promise
<undefined
| boolean
>
Remove all user's modifications for specified page of currently active Theme
auth
admin
#
ParametersName | Type |
---|---|
pageRoute | string |
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:663
#
resetPasswordâ–¸ resetPassword(credentials
, options?
): Promise
<undefined
| boolean
>
Finish reset password transaction. Set a new password
auth
no
#
ParametersName | Type |
---|---|
credentials | Object |
credentials.code | string |
credentials.email | string |
credentials.newPassword | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:293
#
saveCmsSettingsâ–¸ saveCmsSettings(input
, options?
): Promise
<undefined
| TCmsSettings
>
Update CMS settings
auth
admin
#
ParametersName | Type |
---|---|
input | TCmsConfig & TCmsPublicSettings & TCmsAdminSettings & TCmsInternalSettings & { robotsContent? : string } |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TCmsSettings
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:358
#
savePageConfigâ–¸ savePageConfig(config
, themeName
, options?
): Promise
<boolean
>
Update page config by page route of currently active Theme
auth
admin
#
ParametersName | Type |
---|---|
config | TPageConfig |
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:646
#
savePluginSettingsâ–¸ savePluginSettings(pluginName
, settings
, options?
): Promise
<boolean
>
Save settings for Plugin
auth
admin
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
settings | any | - |
options? | TRequestOptions | - |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:830
#
saveThemePaletteâ–¸ saveThemePalette(themeName
, palette
, options?
): Promise
<boolean
>
Update page config by page route of currently active Theme
auth
admin
#
ParametersName | Type |
---|---|
themeName | string |
palette | TPalette |
options? | TRequestOptions |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:736
#
signUpâ–¸ signUp(credentials
, options?
): Promise
<undefined
| TUser
>
Sign up a new user
auth
no
#
ParametersName | Type |
---|---|
credentials | TCreateUser |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| TUser
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:277
#
updatePluginâ–¸ updatePlugin(pluginName
, options?
): Promise
<undefined
| boolean
>
Launch Plugin update
auth
admin
#
ParametersName | Type | Description |
---|---|---|
pluginName | string | npm package name of Plugin |
options? | TRequestOptions | - |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:794
#
updateThemeâ–¸ updateTheme(themeName
, options?
): Promise
<undefined
| boolean
>
Launch Theme update
auth
admin
#
ParametersName | Type |
---|---|
themeName | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/frontend/src/api/CRestApiClient.ts:612
#
uploadPublicFilesâ–¸ uploadPublicFiles(inPath
, files
, options?
): Promise
<undefined
| null
| boolean
>
Upload files in specified public directory
auth
admin
#
ParametersName | Type |
---|---|
inPath | string |
files | File [] |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| null
| boolean
>