hostinger-api-sdk 1.38.0 → 1.40.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.
Files changed (53) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1536 -32
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1086 -30
  7. package/dist/api.js +902 -44
  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 +1086 -30
  15. package/dist/esm/api.js +892 -34
  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/AgencyHostingFilesApi.md +54 -0
  27. package/docs/AgencyHostingListAgencyPlanWebsitesV1200Response.md +22 -0
  28. package/docs/AgencyHostingV1WebsitesBuilderWebsiteDetailsResource.md +28 -0
  29. package/docs/AgencyHostingV1WebsitesH5gWebsiteDetailsResource.md +46 -0
  30. package/docs/AgencyHostingV1WebsitesPlanResource.md +25 -0
  31. package/docs/AgencyHostingV1WebsitesU4sWebsiteDetailsResource.md +36 -0
  32. package/docs/AgencyHostingV1WebsitesWebsiteListItemResource.md +37 -0
  33. package/docs/AgencyHostingV1WebsitesWebsiteListItemResourceDetails.md +59 -0
  34. package/docs/AgencyHostingWebsitesApi.md +69 -0
  35. package/docs/HostingDatabasesApi.md +2 -2
  36. package/docs/HostingFilesApi.md +56 -0
  37. package/docs/HostingNodeJSApi.md +124 -1
  38. package/docs/HostingV1FilesGenerateUploadUrlRequest.md +22 -0
  39. package/docs/HostingV1FilesUploadUrlResource.md +24 -0
  40. package/docs/HostingV1NodeJsBuildSettingsResource.md +34 -0
  41. package/docs/HostingV1NodeJsGetBuildSettingsRequest.md +20 -0
  42. package/docs/HostingV1NodeJsStartBuildRequest.md +36 -0
  43. package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +21 -0
  44. package/docs/HostingV1WebsitesDeployArchiveRequest.md +20 -0
  45. package/docs/HostingWebsitesApi.md +69 -4
  46. package/docs/WordPressInstallationsApi.md +64 -2
  47. package/docs/WordPressPluginsApi.md +64 -2
  48. package/docs/WordPressThemesApi.md +62 -0
  49. package/docs/WordPressV1InstallationsImportWordPressRequest.md +22 -0
  50. package/docs/WordPressV1PluginsDeployPluginRequest.md +22 -0
  51. package/docs/WordPressV1ThemesDeployThemeRequest.md +24 -0
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**activateWordPressThemeV1**](#activatewordpressthemev1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate | Activate WordPress theme|
8
+ |[**deployWordPressThemeV1**](#deploywordpressthemev1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy | Deploy WordPress theme|
8
9
  |[**installWordPressThemeV1**](#installwordpressthemev1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install | Install WordPress theme|
9
10
  |[**listInstalledWordPressThemesV1**](#listinstalledwordpressthemesv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes | List installed WordPress themes|
10
11
  |[**listWordPressThemesV1**](#listwordpressthemesv1) | **GET** /api/hosting/v1/wordpress/themes | List WordPress themes|
@@ -72,6 +73,67 @@ const { status, data } = await apiInstance.activateWordPressThemeV1(
72
73
 
73
74
  [[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)
74
75
 
76
+ # **deployWordPressThemeV1**
77
+ > CommonSuccessEmptyResource deployWordPressThemeV1(wordPressV1ThemesDeployThemeRequest)
78
+
79
+ Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
80
+
81
+ ### Example
82
+
83
+ ```typescript
84
+ import {
85
+ WordPressThemesApi,
86
+ Configuration,
87
+ WordPressV1ThemesDeployThemeRequest
88
+ } from 'hostinger-api-sdk';
89
+
90
+ const configuration = new Configuration();
91
+ const apiInstance = new WordPressThemesApi(configuration);
92
+
93
+ let username: string; // (default to undefined)
94
+ let domain: string; //Domain name (default to undefined)
95
+ let wordPressV1ThemesDeployThemeRequest: WordPressV1ThemesDeployThemeRequest; //
96
+
97
+ const { status, data } = await apiInstance.deployWordPressThemeV1(
98
+ username,
99
+ domain,
100
+ wordPressV1ThemesDeployThemeRequest
101
+ );
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ |Name | Type | Description | Notes|
107
+ |------------- | ------------- | ------------- | -------------|
108
+ | **wordPressV1ThemesDeployThemeRequest** | **WordPressV1ThemesDeployThemeRequest**| | |
109
+ | **username** | [**string**] | | defaults to undefined|
110
+ | **domain** | [**string**] | Domain name | defaults to undefined|
111
+
112
+
113
+ ### Return type
114
+
115
+ **CommonSuccessEmptyResource**
116
+
117
+ ### Authorization
118
+
119
+ [apiToken](../README.md#apiToken)
120
+
121
+ ### HTTP request headers
122
+
123
+ - **Content-Type**: application/json
124
+ - **Accept**: application/json
125
+
126
+
127
+ ### HTTP response details
128
+ | Status code | Description | Response headers |
129
+ |-------------|-------------|------------------|
130
+ |**200** | Success response | - |
131
+ |**422** | Validation error response | - |
132
+ |**401** | Unauthenticated response | - |
133
+ |**500** | Error response | - |
134
+
135
+ [[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)
136
+
75
137
  # **installWordPressThemeV1**
76
138
  > CommonSuccessEmptyResource installWordPressThemeV1(wordPressV1ThemesInstallThemeRequest)
77
139
 
@@ -0,0 +1,22 @@
1
+ # WordPressV1InstallationsImportWordPressRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **archive_path** | **string** | Path to the WordPress archive file (relative to website root) | [default to undefined]
9
+ **sql_path** | **string** | Path to the database SQL file (relative to website root) | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { WordPressV1InstallationsImportWordPressRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: WordPressV1InstallationsImportWordPressRequest = {
17
+ archive_path,
18
+ sql_path,
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,22 @@
1
+ # WordPressV1PluginsDeployPluginRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slug** | **string** | Slug of the plugin | [default to undefined]
9
+ **plugin_path** | **string** | Relative path to the plugin directory from wp-content/plugins | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { WordPressV1PluginsDeployPluginRequest } from 'hostinger-api-sdk';
15
+
16
+ const instance: WordPressV1PluginsDeployPluginRequest = {
17
+ slug,
18
+ plugin_path,
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,24 @@
1
+ # WordPressV1ThemesDeployThemeRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slug** | **string** | Slug of the theme | [default to undefined]
9
+ **theme_path** | **string** | Relative path to the theme directory from wp-content/themes | [default to undefined]
10
+ **is_activated** | **boolean** | Whether to activate the theme after deployment | [optional] [default to false]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { WordPressV1ThemesDeployThemeRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: WordPressV1ThemesDeployThemeRequest = {
18
+ slug,
19
+ theme_path,
20
+ is_activated,
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)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.40.0
6
+ * API Version: 1.42.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.38.0",
3
+ "version": "1.40.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {