hostinger-api-sdk 0.0.26 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +9653 -7541
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +5026 -3721
- package/dist/api.js +1671 -214
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +5026 -3721
- package/dist/esm/api.js +1655 -206
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/{HostingWordpressApi.md → WordPressInstallationsApi.md} +12 -12
- package/docs/WordPressPluginsApi.md +658 -0
- package/docs/WordPressThemesApi.md +369 -0
- package/docs/WordPressV1CommonVulnerabilityResource.md +28 -0
- package/docs/{HostingV1WordpressInstallWordpressRequest.md → WordPressV1InstallationsInstallWordPressRequest.md} +5 -5
- package/docs/{HostingV1WordpressInstallWordpressRequestCredentials.md → WordPressV1InstallationsInstallWordPressRequestCredentials.md} +3 -3
- package/docs/{HostingV1WordpressInstallWordpressRequestDatabase.md → WordPressV1InstallationsInstallWordPressRequestDatabase.md} +3 -3
- package/docs/{HostingV1WordpressWordpressInstallationResource.md → WordPressV1InstallationsWordPressInstallationResource.md} +3 -3
- package/docs/WordPressV1PluginsActivatePluginRequest.md +20 -0
- package/docs/WordPressV1PluginsAvailablePluginResource.md +38 -0
- package/docs/WordPressV1PluginsDeactivatePluginRequest.md +20 -0
- package/docs/WordPressV1PluginsInstallPluginsRequest.md +20 -0
- package/docs/WordPressV1PluginsInstalledPluginResource.md +30 -0
- package/docs/WordPressV1PluginsPluginResource.md +26 -0
- package/docs/WordPressV1PluginsPluginResourceIcons.md +23 -0
- package/docs/WordPressV1PluginsSuggestedPluginGroupResource.md +22 -0
- package/docs/WordPressV1PluginsSuggestedPluginResource.md +40 -0
- package/docs/WordPressV1PluginsUninstallPluginsRequest.md +20 -0
- package/docs/WordPressV1PluginsUpdateHostingerPluginRequest.md +20 -0
- package/docs/WordPressV1PluginsUpdatePluginsRequest.md +20 -0
- package/docs/WordPressV1PluginsWoocommerceInstalledResource.md +20 -0
- package/docs/WordPressV1ThemesActivateThemeRequest.md +20 -0
- package/docs/WordPressV1ThemesInstallThemeRequest.md +26 -0
- package/docs/WordPressV1ThemesInstalledThemeResource.md +30 -0
- package/docs/WordPressV1ThemesThemeResource.md +34 -0
- package/docs/WordPressV1ThemesUninstallThemesRequest.md +20 -0
- package/docs/WordPressV1ThemesUpdateThemesRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WordPressV1PluginsSuggestedPluginGroupResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**website_type** | **string** | Website type the suggested plugins are grouped by | [optional] [default to undefined]
|
|
9
|
+
**plugins** | [**Array<WordPressV1PluginsSuggestedPluginResource>**](WordPressV1PluginsSuggestedPluginResource.md) | Plugins suggested for the website type | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1PluginsSuggestedPluginGroupResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1PluginsSuggestedPluginGroupResource = {
|
|
17
|
+
website_type,
|
|
18
|
+
plugins,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# WordPressV1PluginsSuggestedPluginResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slug** | **string** | Plugin slug used when installing the plugin | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | Human readable plugin name | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Short plugin description | [optional] [default to undefined]
|
|
11
|
+
**onboarding_description_slug** | **string** | Translation slug for the onboarding description | [optional] [default to undefined]
|
|
12
|
+
**recommended_description_slug** | **string** | Translation slug for the recommended description | [optional] [default to undefined]
|
|
13
|
+
**link** | **string** | Link to the plugin page on WordPress.org | [optional] [default to undefined]
|
|
14
|
+
**version** | **string** | Latest available plugin version | [optional] [default to undefined]
|
|
15
|
+
**required_wordpress_version** | **string** | Minimum WordPress version required by the plugin | [optional] [default to undefined]
|
|
16
|
+
**required_php_version** | **string** | Minimum PHP version required by the plugin | [optional] [default to undefined]
|
|
17
|
+
**is_preselected** | **boolean** | Whether the plugin is preselected during onboarding | [optional] [default to undefined]
|
|
18
|
+
**is_plan_upgrade_needed** | **boolean** | Whether a hosting plan upgrade is required to use the plugin | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { WordPressV1PluginsSuggestedPluginResource } from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const instance: WordPressV1PluginsSuggestedPluginResource = {
|
|
26
|
+
slug,
|
|
27
|
+
title,
|
|
28
|
+
description,
|
|
29
|
+
onboarding_description_slug,
|
|
30
|
+
recommended_description_slug,
|
|
31
|
+
link,
|
|
32
|
+
version,
|
|
33
|
+
required_wordpress_version,
|
|
34
|
+
required_php_version,
|
|
35
|
+
is_preselected,
|
|
36
|
+
is_plan_upgrade_needed,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1PluginsUninstallPluginsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**plugins** | **Array<string>** | Slugs of the installed plugins to uninstall. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1PluginsUninstallPluginsRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1PluginsUninstallPluginsRequest = {
|
|
16
|
+
plugins,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1PluginsUpdateHostingerPluginRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slug** | **string** | Slug of the Hostinger plugin to update to its latest version. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1PluginsUpdateHostingerPluginRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1PluginsUpdateHostingerPluginRequest = {
|
|
16
|
+
slug,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1PluginsUpdatePluginsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**plugins** | **Array<string>** | Slugs of the installed plugins to update to their latest version. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1PluginsUpdatePluginsRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1PluginsUpdatePluginsRequest = {
|
|
16
|
+
plugins,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1PluginsWoocommerceInstalledResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**is_installed** | **boolean** | Whether WooCommerce is installed on any WordPress installation of the domain | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1PluginsWoocommerceInstalledResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1PluginsWoocommerceInstalledResource = {
|
|
16
|
+
is_installed,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1ThemesActivateThemeRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**theme** | **string** | Slug of the installed theme to activate. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1ThemesActivateThemeRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1ThemesActivateThemeRequest = {
|
|
16
|
+
theme,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# WordPressV1ThemesInstallThemeRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**theme** | **string** | Slug of the theme to install. Hostinger theme slugs (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme) trigger the custom installer and forward the optional palette/layout/font fields; any other WordPress theme slug uses the standard installer and ignores those fields. | [default to undefined]
|
|
9
|
+
**palette** | **string** | Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted. | [optional] [default to 'palette1']
|
|
10
|
+
**layout** | **string** | Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted. | [optional] [default to 'layout1']
|
|
11
|
+
**font** | **string** | Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted. | [optional] [default to FontEnum_Default]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { WordPressV1ThemesInstallThemeRequest } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: WordPressV1ThemesInstallThemeRequest = {
|
|
19
|
+
theme,
|
|
20
|
+
palette,
|
|
21
|
+
layout,
|
|
22
|
+
font,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# WordPressV1ThemesInstalledThemeResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Theme slug | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | Human readable theme name | [optional] [default to undefined]
|
|
10
|
+
**version** | **string** | Installed theme version | [optional] [default to undefined]
|
|
11
|
+
**status** | **string** | Whether the theme is active or inactive | [optional] [default to undefined]
|
|
12
|
+
**update** | **string** | Available update version, or \"none\" when up to date | [optional] [default to undefined]
|
|
13
|
+
**vulnerabilities** | [**Array<WordPressV1CommonVulnerabilityResource>**](WordPressV1CommonVulnerabilityResource.md) | Known vulnerabilities affecting the installed version | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { WordPressV1ThemesInstalledThemeResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: WordPressV1ThemesInstalledThemeResource = {
|
|
21
|
+
name,
|
|
22
|
+
title,
|
|
23
|
+
version,
|
|
24
|
+
status,
|
|
25
|
+
update,
|
|
26
|
+
vulnerabilities,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# WordPressV1ThemesThemeResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slug** | **string** | Theme slug used when installing the theme | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | Human readable theme name | [optional] [default to undefined]
|
|
10
|
+
**url** | **string** | Link to the theme page on WordPress.org | [optional] [default to undefined]
|
|
11
|
+
**featured_image_url** | **string** | URL of the theme preview thumbnail | [optional] [default to undefined]
|
|
12
|
+
**full_image_url** | **string** | URL of the full-size theme preview image | [optional] [default to undefined]
|
|
13
|
+
**description** | **string** | Short theme description | [optional] [default to undefined]
|
|
14
|
+
**logo_url** | **string** | URL of the theme logo | [optional] [default to undefined]
|
|
15
|
+
**is_plan_upgrade_needed** | **boolean** | Whether a hosting plan upgrade is required to use the theme | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { WordPressV1ThemesThemeResource } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: WordPressV1ThemesThemeResource = {
|
|
23
|
+
slug,
|
|
24
|
+
title,
|
|
25
|
+
url,
|
|
26
|
+
featured_image_url,
|
|
27
|
+
full_image_url,
|
|
28
|
+
description,
|
|
29
|
+
logo_url,
|
|
30
|
+
is_plan_upgrade_needed,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1ThemesUninstallThemesRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**themes** | **Array<string>** | Slugs of the installed themes to uninstall. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1ThemesUninstallThemesRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1ThemesUninstallThemesRequest = {
|
|
16
|
+
themes,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1ThemesUpdateThemesRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**themes** | **Array<string>** | Slugs of the installed themes to update to their latest version. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1ThemesUpdateThemesRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1ThemesUpdateThemesRequest = {
|
|
16
|
+
themes,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 1.1.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|