hostinger-api-sdk 1.0.0 → 1.1.1

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.
Files changed (62) hide show
  1. package/README.md +2 -2
  2. package/api.ts +10058 -7457
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +5419 -3779
  7. package/dist/api.js +1997 -240
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +5419 -3779
  15. package/dist/esm/api.js +1972 -231
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommerceMiscellaneousApi.md +54 -0
  27. package/docs/EcommerceSalesChannelsApi.md +120 -0
  28. package/docs/EcommerceV1MiscellaneousCustomStorefrontInstructionsResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelSalesChannelCreationResource.md +20 -0
  30. package/docs/EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md +32 -0
  31. package/docs/EcommerceV1SalesChannelSalesChannelListResource.md +20 -0
  32. package/docs/EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md +32 -0
  33. package/docs/EcommerceV1SalesChannelStoreRequest.md +24 -0
  34. package/docs/{HostingWordpressApi.md → WordPressInstallationsApi.md} +12 -12
  35. package/docs/WordPressPluginsApi.md +658 -0
  36. package/docs/WordPressThemesApi.md +369 -0
  37. package/docs/WordPressV1CommonVulnerabilityResource.md +28 -0
  38. package/docs/{HostingV1WordpressInstallWordpressRequest.md → WordPressV1InstallationsInstallWordPressRequest.md} +5 -5
  39. package/docs/{HostingV1WordpressInstallWordpressRequestCredentials.md → WordPressV1InstallationsInstallWordPressRequestCredentials.md} +3 -3
  40. package/docs/{HostingV1WordpressInstallWordpressRequestDatabase.md → WordPressV1InstallationsInstallWordPressRequestDatabase.md} +3 -3
  41. package/docs/{HostingV1WordpressWordpressInstallationResource.md → WordPressV1InstallationsWordPressInstallationResource.md} +3 -3
  42. package/docs/WordPressV1PluginsActivatePluginRequest.md +20 -0
  43. package/docs/WordPressV1PluginsAvailablePluginResource.md +38 -0
  44. package/docs/WordPressV1PluginsDeactivatePluginRequest.md +20 -0
  45. package/docs/WordPressV1PluginsInstallPluginsRequest.md +20 -0
  46. package/docs/WordPressV1PluginsInstalledPluginResource.md +30 -0
  47. package/docs/WordPressV1PluginsPluginResource.md +26 -0
  48. package/docs/WordPressV1PluginsPluginResourceIcons.md +23 -0
  49. package/docs/WordPressV1PluginsSuggestedPluginGroupResource.md +22 -0
  50. package/docs/WordPressV1PluginsSuggestedPluginResource.md +40 -0
  51. package/docs/WordPressV1PluginsUninstallPluginsRequest.md +20 -0
  52. package/docs/WordPressV1PluginsUpdateHostingerPluginRequest.md +20 -0
  53. package/docs/WordPressV1PluginsUpdatePluginsRequest.md +20 -0
  54. package/docs/WordPressV1PluginsWoocommerceInstalledResource.md +20 -0
  55. package/docs/WordPressV1ThemesActivateThemeRequest.md +20 -0
  56. package/docs/WordPressV1ThemesInstallThemeRequest.md +26 -0
  57. package/docs/WordPressV1ThemesInstalledThemeResource.md +30 -0
  58. package/docs/WordPressV1ThemesThemeResource.md +34 -0
  59. package/docs/WordPressV1ThemesUninstallThemesRequest.md +20 -0
  60. package/docs/WordPressV1ThemesUpdateThemesRequest.md +20 -0
  61. package/index.ts +1 -1
  62. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.22.1
4
+ * API Version: 1.1.1
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: 0.22.1
6
+ * API Version: 1.1.1
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: 0.22.1
4
+ * API Version: 1.1.1
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: 0.22.1
6
+ * API Version: 1.1.1
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: 0.22.1
4
+ * API Version: 1.1.1
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: 0.22.1
6
+ * API Version: 1.1.1
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.0.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.1.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.22.1
4
+ * API Version: 1.1.1
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: 0.22.1
6
+ * API Version: 1.1.1
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: 0.22.1
4
+ * API Version: 1.1.1
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: 0.22.1
7
+ * API Version: 1.1.1
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
@@ -0,0 +1,54 @@
1
+ # EcommerceMiscellaneousApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getCustomStorefrontSetupInstructionsV1**](#getcustomstorefrontsetupinstructionsv1) | **GET** /api/ecommerce/v1/miscellaneous/custom-storefront-instructions | Get custom storefront setup instructions|
8
+
9
+ # **getCustomStorefrontSetupInstructionsV1**
10
+ > EcommerceV1MiscellaneousCustomStorefrontInstructionsResource getCustomStorefrontSetupInstructionsV1()
11
+
12
+ Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ EcommerceMiscellaneousApi,
19
+ Configuration
20
+ } from 'hostinger-api-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new EcommerceMiscellaneousApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getCustomStorefrontSetupInstructionsV1();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **EcommerceV1MiscellaneousCustomStorefrontInstructionsResource**
35
+
36
+ ### Authorization
37
+
38
+ [apiToken](../README.md#apiToken)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Success response | - |
50
+ |**401** | Unauthenticated response | - |
51
+ |**500** | Error response | - |
52
+
53
+ [[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)
54
+
@@ -0,0 +1,120 @@
1
+ # EcommerceSalesChannelsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createACustomSalesChannelV1**](#createacustomsaleschannelv1) | **POST** /api/ecommerce/v1/stores/{store_id}/sales-channels | Create a custom sales channel|
8
+ |[**listSalesChannelsV1**](#listsaleschannelsv1) | **GET** /api/ecommerce/v1/stores/{store_id}/sales-channels | List sales channels|
9
+
10
+ # **createACustomSalesChannelV1**
11
+ > EcommerceV1SalesChannelSalesChannelCreationResource createACustomSalesChannelV1(ecommerceV1SalesChannelStoreRequest)
12
+
13
+ Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ EcommerceSalesChannelsApi,
20
+ Configuration,
21
+ EcommerceV1SalesChannelStoreRequest
22
+ } from 'hostinger-api-sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new EcommerceSalesChannelsApi(configuration);
26
+
27
+ let storeId: string; //The ID of the store to create the sales channel for. (default to undefined)
28
+ let ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest; //
29
+
30
+ const { status, data } = await apiInstance.createACustomSalesChannelV1(
31
+ storeId,
32
+ ecommerceV1SalesChannelStoreRequest
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **ecommerceV1SalesChannelStoreRequest** | **EcommerceV1SalesChannelStoreRequest**| | |
41
+ | **storeId** | [**string**] | The ID of the store to create the sales channel for. | defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **EcommerceV1SalesChannelSalesChannelCreationResource**
47
+
48
+ ### Authorization
49
+
50
+ [apiToken](../README.md#apiToken)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**201** | Created response | - |
62
+ |**422** | Validation error response | - |
63
+ |**401** | Unauthenticated response | - |
64
+ |**500** | Error response | - |
65
+
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
+
68
+ # **listSalesChannelsV1**
69
+ > EcommerceV1SalesChannelSalesChannelListResource listSalesChannelsV1()
70
+
71
+ List a store\'s active sales channels with their full metadata.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ EcommerceSalesChannelsApi,
78
+ Configuration
79
+ } from 'hostinger-api-sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new EcommerceSalesChannelsApi(configuration);
83
+
84
+ let storeId: string; //The ID of the store to list sales channels for. (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.listSalesChannelsV1(
87
+ storeId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **storeId** | [**string**] | The ID of the store to list sales channels for. | defaults to undefined|
96
+
97
+
98
+ ### Return type
99
+
100
+ **EcommerceV1SalesChannelSalesChannelListResource**
101
+
102
+ ### Authorization
103
+
104
+ [apiToken](../README.md#apiToken)
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: Not defined
109
+ - **Accept**: application/json
110
+
111
+
112
+ ### HTTP response details
113
+ | Status code | Description | Response headers |
114
+ |-------------|-------------|------------------|
115
+ |**200** | Success response | - |
116
+ |**401** | Unauthenticated response | - |
117
+ |**500** | Error response | - |
118
+
119
+ [[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)
120
+
@@ -0,0 +1,20 @@
1
+ # EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **instructions** | **string** | Markdown setup instructions for connecting a custom sales channel to your store. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { EcommerceV1MiscellaneousCustomStorefrontInstructionsResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: EcommerceV1MiscellaneousCustomStorefrontInstructionsResource = {
16
+ instructions,
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
+ # EcommerceV1SalesChannelSalesChannelCreationResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sales_channel** | [**EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel**](EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { EcommerceV1SalesChannelSalesChannelCreationResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: EcommerceV1SalesChannelSalesChannelCreationResource = {
16
+ sales_channel,
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,32 @@
1
+ # EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Sales channel ID | [optional] [default to undefined]
9
+ **type** | **string** | Sales channel type | [optional] [default to undefined]
10
+ **is_primary** | **boolean** | Whether this is the primary sales channel. | [optional] [default to undefined]
11
+ **is_active** | **boolean** | Whether the sales channel is active. | [optional] [default to undefined]
12
+ **external_id** | **string** | External identifier for the sales channel. | [optional] [default to undefined]
13
+ **name** | **string** | Merchant-facing custom name. | [optional] [default to undefined]
14
+ **domain** | **string** | Public address where the custom sales channel lives. | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel } from 'hostinger-api-sdk';
20
+
21
+ const instance: EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel = {
22
+ id,
23
+ type,
24
+ is_primary,
25
+ is_active,
26
+ external_id,
27
+ name,
28
+ domain,
29
+ };
30
+ ```
31
+
32
+ [[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
+ # EcommerceV1SalesChannelSalesChannelListResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sales_channels** | [**Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>**](EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md) | The store\'s active sales channels. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { EcommerceV1SalesChannelSalesChannelListResource } from 'hostinger-api-sdk';
14
+
15
+ const instance: EcommerceV1SalesChannelSalesChannelListResource = {
16
+ sales_channels,
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,32 @@
1
+ # EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Sales channel ID | [optional] [default to undefined]
9
+ **type** | **string** | Sales channel type | [optional] [default to undefined]
10
+ **is_primary** | **boolean** | Whether this is the primary sales channel. | [optional] [default to undefined]
11
+ **is_active** | **boolean** | Whether the sales channel is active. | [optional] [default to undefined]
12
+ **external_id** | **string** | External identifier for the sales channel. | [optional] [default to undefined]
13
+ **name** | **string** | Merchant-facing custom name. | [optional] [default to undefined]
14
+ **domain** | **string** | Public address where the sales channel lives. | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner } from 'hostinger-api-sdk';
20
+
21
+ const instance: EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner = {
22
+ id,
23
+ type,
24
+ is_primary,
25
+ is_active,
26
+ external_id,
27
+ name,
28
+ domain,
29
+ };
30
+ ```
31
+
32
+ [[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,24 @@
1
+ # EcommerceV1SalesChannelStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | Sales channel type. Only \"custom\" channels can be created via the API. | [default to undefined]
9
+ **name** | **string** | Merchant-facing custom name shown in the sales channels list. | [default to undefined]
10
+ **url** | **string** | Optional public address where the custom sales channel lives. | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EcommerceV1SalesChannelStoreRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: EcommerceV1SalesChannelStoreRequest = {
18
+ type,
19
+ name,
20
+ url,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,4 +1,4 @@
1
- # HostingWordpressApi
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(hostingV1WordpressInstallWordpressRequest)
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
- HostingWordpressApi,
19
+ WordPressInstallationsApi,
20
20
  Configuration,
21
- HostingV1WordpressInstallWordpressRequest
21
+ WordPressV1InstallationsInstallWordPressRequest
22
22
  } from 'hostinger-api-sdk';
23
23
 
24
24
  const configuration = new Configuration();
25
- const apiInstance = new HostingWordpressApi(configuration);
25
+ const apiInstance = new WordPressInstallationsApi(configuration);
26
26
 
27
27
  let username: string; // (default to undefined)
28
- let hostingV1WordpressInstallWordpressRequest: HostingV1WordpressInstallWordpressRequest; //
28
+ let wordPressV1InstallationsInstallWordPressRequest: WordPressV1InstallationsInstallWordPressRequest; //
29
29
 
30
30
  const { status, data } = await apiInstance.installWordPressV1(
31
31
  username,
32
- hostingV1WordpressInstallWordpressRequest
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
- | **hostingV1WordpressInstallWordpressRequest** | **HostingV1WordpressInstallWordpressRequest**| | |
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<HostingV1WordpressWordpressInstallationResource> listWordPressInstallationsV1()
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
- HostingWordpressApi,
77
+ WordPressInstallationsApi,
78
78
  Configuration
79
79
  } from 'hostinger-api-sdk';
80
80
 
81
81
  const configuration = new Configuration();
82
- const apiInstance = new HostingWordpressApi(configuration);
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<HostingV1WordpressWordpressInstallationResource>**
106
+ **Array<WordPressV1InstallationsWordPressInstallationResource>**
107
107
 
108
108
  ### Authorization
109
109