hostinger-api-sdk 1.30.0 → 1.30.2

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 (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +714 -38
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +445 -30
  7. package/dist/api.js +500 -33
  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 +445 -30
  15. package/dist/esm/api.js +487 -24
  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/DomainsAvailabilityApi.md +113 -1
  27. package/docs/DomainsV1AvailabilityAlternativesFromDescriptionRequest.md +22 -0
  28. package/docs/DomainsV1AvailabilityAlternativesFromDomainRequest.md +22 -0
  29. package/docs/EcommerceProductsApi.md +62 -0
  30. package/docs/EcommerceV1ProductProductImageUploadResource.md +22 -0
  31. package/docs/EcommerceV1ProductUploadProductImageRequest.md +22 -0
  32. package/docs/HostingFilesApi.md +148 -0
  33. package/docs/{HostingV1WebsitesDeleteWebsiteRequest.md → HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md} +3 -5
  34. package/docs/HostingV1FilesFileContentResource.md +28 -0
  35. package/docs/HostingV1FilesFilesResource.md +28 -0
  36. package/docs/HostingV1FilesFilesResourceItemsInner.md +26 -0
  37. package/docs/HostingWebsitesApi.md +5 -9
  38. package/index.ts +1 -1
  39. package/package.json +1 -1
@@ -64,28 +64,25 @@ const { status, data } = await apiInstance.createWebsiteV1(
64
64
  [[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)
65
65
 
66
66
  # **deleteWebsiteV1**
67
- > CommonSuccessEmptyResource deleteWebsiteV1(hostingV1WebsitesDeleteWebsiteRequest)
67
+ > CommonSuccessEmptyResource deleteWebsiteV1()
68
68
 
69
- Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
69
+ This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
70
70
 
71
71
  ### Example
72
72
 
73
73
  ```typescript
74
74
  import {
75
75
  HostingWebsitesApi,
76
- Configuration,
77
- HostingV1WebsitesDeleteWebsiteRequest
76
+ Configuration
78
77
  } from 'hostinger-api-sdk';
79
78
 
80
79
  const configuration = new Configuration();
81
80
  const apiInstance = new HostingWebsitesApi(configuration);
82
81
 
83
82
  let domain: string; //Domain name (default to undefined)
84
- let hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest; //
85
83
 
86
84
  const { status, data } = await apiInstance.deleteWebsiteV1(
87
- domain,
88
- hostingV1WebsitesDeleteWebsiteRequest
85
+ domain
89
86
  );
90
87
  ```
91
88
 
@@ -93,7 +90,6 @@ const { status, data } = await apiInstance.deleteWebsiteV1(
93
90
 
94
91
  |Name | Type | Description | Notes|
95
92
  |------------- | ------------- | ------------- | -------------|
96
- | **hostingV1WebsitesDeleteWebsiteRequest** | **HostingV1WebsitesDeleteWebsiteRequest**| | |
97
93
  | **domain** | [**string**] | Domain name | defaults to undefined|
98
94
 
99
95
 
@@ -107,7 +103,7 @@ const { status, data } = await apiInstance.deleteWebsiteV1(
107
103
 
108
104
  ### HTTP request headers
109
105
 
110
- - **Content-Type**: application/json
106
+ - **Content-Type**: Not defined
111
107
  - **Accept**: application/json
112
108
 
113
109
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.30.1
6
+ * API Version: 1.32.2
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.30.0",
3
+ "version": "1.30.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {