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.
- package/README.md +2 -2
- package/api.ts +714 -38
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +445 -30
- package/dist/api.js +500 -33
- 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 +445 -30
- package/dist/esm/api.js +487 -24
- 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/DomainsAvailabilityApi.md +113 -1
- package/docs/DomainsV1AvailabilityAlternativesFromDescriptionRequest.md +22 -0
- package/docs/DomainsV1AvailabilityAlternativesFromDomainRequest.md +22 -0
- package/docs/EcommerceProductsApi.md +62 -0
- package/docs/EcommerceV1ProductProductImageUploadResource.md +22 -0
- package/docs/EcommerceV1ProductUploadProductImageRequest.md +22 -0
- package/docs/HostingFilesApi.md +148 -0
- package/docs/{HostingV1WebsitesDeleteWebsiteRequest.md → HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md} +3 -5
- package/docs/HostingV1FilesFileContentResource.md +28 -0
- package/docs/HostingV1FilesFilesResource.md +28 -0
- package/docs/HostingV1FilesFilesResourceItemsInner.md +26 -0
- package/docs/HostingWebsitesApi.md +5 -9
- package/index.ts +1 -1
- 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(
|
|
67
|
+
> CommonSuccessEmptyResource deleteWebsiteV1()
|
|
68
68
|
|
|
69
|
-
|
|
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**:
|
|
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.
|
|
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
|