Class: CentralServerClient
frontend.CentralServerClient
CentralServerClient - CromwellCMS Central Server API Client CromwellCMS Central Server is official server at ... API used to check local CMS updates.
#
Table of contents#
Constructors#
Methods- checkCmsUpdate
- checkPluginUpdate
- checkThemeUpdate
- fetch
- get
- getAllCmsVersions
- getBaseUrl
- getCmsFullInfo
- getCmsInfo
- getFrontendDependenciesBindings
- getFrontendDependenciesList
- getPluginAllVersions
- getPluginFullInfo
- getPluginInfo
- getPluginList
- getThemeAllVersions
- getThemeFullInfo
- getThemeInfo
- getThemeList
- getVersionByPackage
- makeRequestToGitHub
- post
#
Constructors#
constructor• new CentralServerClient()
#
Methods#
checkCmsUpdateâ–¸ checkCmsUpdate(version
, beta?
): Promise
<undefined
| TCCSVersion
>
#
ParametersName | Type |
---|---|
version | string |
beta? | boolean |
#
ReturnsPromise
<undefined
| TCCSVersion
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:118
#
checkPluginUpdateâ–¸ checkPluginUpdate(name
, version
, beta?
): Promise
<undefined
| TCCSVersion
>
#
ParametersName | Type |
---|---|
name | string |
version | string |
beta? | boolean |
#
ReturnsPromise
<undefined
| TCCSVersion
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:168
#
checkThemeUpdateâ–¸ checkThemeUpdate(name
, version
, beta?
): Promise
<undefined
| TCCSVersion
>
#
ParametersName | Type |
---|---|
name | string |
version | string |
beta? | boolean |
#
ReturnsPromise
<undefined
| TCCSVersion
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:198
#
fetchâ–¸ fetch<T
>(route
, options?
): Promise
<undefined
| T
>
#
Type parametersName |
---|
T |
#
ParametersName | Type |
---|---|
route | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| T
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:29
#
getâ–¸ get<T
>(route
, options?
): Promise
<undefined
| T
>
#
Type parametersName |
---|
T |
#
ParametersName | Type |
---|---|
route | string |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| T
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:61
#
getAllCmsVersionsâ–¸ getAllCmsVersions(): Promise
<undefined
| TCCSModuleShortInfo
>
#
ReturnsPromise
<undefined
| TCCSModuleShortInfo
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:122
#
getBaseUrlâ–¸ getBaseUrl(): undefined
| string
#
Returnsundefined
| string
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:12
#
getCmsFullInfoâ–¸ getCmsFullInfo(): Promise
<undefined
| TCCSModuleInfo
>
#
ReturnsPromise
<undefined
| TCCSModuleInfo
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:110
#
getCmsInfoâ–¸ getCmsInfo(): Promise
<undefined
| TCCSModuleShortInfo
>
#
ReturnsPromise
<undefined
| TCCSModuleShortInfo
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:106
#
getFrontendDependenciesBindingsâ–¸ getFrontendDependenciesBindings(): Promise
<any
>
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:126
#
getFrontendDependenciesListâ–¸ getFrontendDependenciesList(version
): Promise
<any
>
#
ParametersName | Type |
---|---|
version | string |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:135
#
getPluginAllVersionsâ–¸ getPluginAllVersions(name
): Promise
<undefined
| TCCSVersion
[]>
#
ParametersName | Type |
---|---|
name | string |
#
ReturnsPromise
<undefined
| TCCSVersion
[]>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:164
#
getPluginFullInfoâ–¸ getPluginFullInfo(name
): Promise
<undefined
| TCCSModuleInfo
>
#
ParametersName | Type |
---|---|
name | string |
#
ReturnsPromise
<undefined
| TCCSModuleInfo
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:160
#
getPluginInfoâ–¸ getPluginInfo(name
): Promise
<undefined
| TCCSModuleShortInfo
>
#
ParametersName | Type |
---|---|
name | string |
#
ReturnsPromise
<undefined
| TCCSModuleShortInfo
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:147
#
getPluginListâ–¸ getPluginList(params?
, filter?
): Promise
<undefined
| TPagedList
<TCCSModuleInfo
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <TCCSModuleInfo > |
filter? | Object |
filter.search? | string |
#
ReturnsPromise
<undefined
| TPagedList
<TCCSModuleInfo
>>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:151
#
getThemeAllVersionsâ–¸ getThemeAllVersions(name
): Promise
<undefined
| TCCSVersion
[]>
#
ParametersName | Type |
---|---|
name | string |
#
ReturnsPromise
<undefined
| TCCSVersion
[]>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:194
#
getThemeFullInfoâ–¸ getThemeFullInfo(name
): Promise
<undefined
| TCCSModuleInfo
>
#
ParametersName | Type |
---|---|
name | string |
#
ReturnsPromise
<undefined
| TCCSModuleInfo
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:190
#
getThemeInfoâ–¸ getThemeInfo(name
): Promise
<undefined
| TCCSModuleShortInfo
>
#
ParametersName | Type |
---|---|
name | string |
#
ReturnsPromise
<undefined
| TCCSModuleShortInfo
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:177
#
getThemeListâ–¸ getThemeList(params?
, filter?
): Promise
<undefined
| TPagedList
<TCCSModuleInfo
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <TCCSModuleInfo > |
filter? | Object |
filter.search? | string |
#
ReturnsPromise
<undefined
| TPagedList
<TCCSModuleInfo
>>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:181
#
getVersionByPackageâ–¸ getVersionByPackage(packageVersion
): Promise
<undefined
| TCCSVersion
>
#
ParametersName | Type |
---|---|
packageVersion | string |
#
ReturnsPromise
<undefined
| TCCSVersion
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:114
#
makeRequestToGitHubâ–¸ makeRequestToGitHub(url
): Promise
<any
>
#
ParametersName | Type |
---|---|
url | any |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CentralServerClient.ts:73
#
postâ–¸ post<T
>(route
, input?
, options?
): Promise
<undefined
| T
>
#
Type parametersName |
---|
T |
#
ParametersName | Type |
---|---|
route | string |
input? | any |
options? | TRequestOptions |
#
ReturnsPromise
<undefined
| T
>