hostinger-api-sdk 1.0.0 → 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
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
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
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.1.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
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
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 1.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version:
|
|
7
|
+
* API Version: 1.1.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# WordPressInstallationsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://developers.hostinger.com*
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
8
8
|
|[**listWordPressInstallationsV1**](#listwordpressinstallationsv1) | **GET** /api/hosting/v1/wordpress/installations | List WordPress installations|
|
|
9
9
|
|
|
10
10
|
# **installWordPressV1**
|
|
11
|
-
> CommonSuccessEmptyResource installWordPressV1(
|
|
11
|
+
> CommonSuccessEmptyResource installWordPressV1(wordPressV1InstallationsInstallWordPressRequest)
|
|
12
12
|
|
|
13
13
|
Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
14
14
|
|
|
@@ -16,20 +16,20 @@ Install WordPress on an existing website. The website must already exist before
|
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
WordPressInstallationsApi,
|
|
20
20
|
Configuration,
|
|
21
|
-
|
|
21
|
+
WordPressV1InstallationsInstallWordPressRequest
|
|
22
22
|
} from 'hostinger-api-sdk';
|
|
23
23
|
|
|
24
24
|
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new
|
|
25
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
26
26
|
|
|
27
27
|
let username: string; // (default to undefined)
|
|
28
|
-
let
|
|
28
|
+
let wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest; //
|
|
29
29
|
|
|
30
30
|
const { status, data } = await apiInstance.installWordPressV1(
|
|
31
31
|
username,
|
|
32
|
-
|
|
32
|
+
wordPressV1InstallationsInstallWordPressRequest
|
|
33
33
|
);
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ const { status, data } = await apiInstance.installWordPressV1(
|
|
|
37
37
|
|
|
38
38
|
|Name | Type | Description | Notes|
|
|
39
39
|
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **
|
|
40
|
+
| **wordPressV1InstallationsInstallWordPressRequest** | **WordPressV1InstallationsInstallWordPressRequest**| | |
|
|
41
41
|
| **username** | [**string**] | | defaults to undefined|
|
|
42
42
|
|
|
43
43
|
|
|
@@ -66,7 +66,7 @@ const { status, data } = await apiInstance.installWordPressV1(
|
|
|
66
66
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
67
67
|
|
|
68
68
|
# **listWordPressInstallationsV1**
|
|
69
|
-
> Array<
|
|
69
|
+
> Array<WordPressV1InstallationsWordPressInstallationResource> listWordPressInstallationsV1()
|
|
70
70
|
|
|
71
71
|
List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
72
72
|
|
|
@@ -74,12 +74,12 @@ List WordPress installations accessible to the authenticated client. Use this e
|
|
|
74
74
|
|
|
75
75
|
```typescript
|
|
76
76
|
import {
|
|
77
|
-
|
|
77
|
+
WordPressInstallationsApi,
|
|
78
78
|
Configuration
|
|
79
79
|
} from 'hostinger-api-sdk';
|
|
80
80
|
|
|
81
81
|
const configuration = new Configuration();
|
|
82
|
-
const apiInstance = new
|
|
82
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
83
83
|
|
|
84
84
|
let username: string; //Filter by specific username (optional) (default to undefined)
|
|
85
85
|
let domain: string; //Filter by domain name (exact match) (optional) (default to undefined)
|
|
@@ -103,7 +103,7 @@ const { status, data } = await apiInstance.listWordPressInstallationsV1(
|
|
|
103
103
|
|
|
104
104
|
### Return type
|
|
105
105
|
|
|
106
|
-
**Array<
|
|
106
|
+
**Array<WordPressV1InstallationsWordPressInstallationResource>**
|
|
107
107
|
|
|
108
108
|
### Authorization
|
|
109
109
|
|