Skip to content

Commit 2fbf5b6

Browse files
chore: sdk update
1 parent 2d3283a commit 2fbf5b6

9 files changed

Lines changed: 51 additions & 26 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## hostinger-api-sdk@1.37.0
1+
## hostinger-api-sdk@1.38.0
22

33
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
44

55
### Usage
66

77
```
8-
npm install hostinger-api-sdk@1.37.0 --save
8+
npm install hostinger-api-sdk@1.38.0 --save
99
```

api.ts

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.39.0
6+
* API Version: 1.40.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -6039,29 +6039,29 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
60396039
*/
60406040
export interface HostingV1WebsitesWebsiteResource {
60416041
/**
6042-
* Website domain
6042+
* Website domain. Null for U4S websites with no domain attached.
60436043
* @type {string}
60446044
* @memberof HostingV1WebsitesWebsiteResource
60456045
*/
6046-
'domain': string;
6046+
'domain': string | null;
60476047
/**
6048-
* Virtual host type
6048+
* Virtual host type. Only present for CloudLinux websites.
60496049
* @type {string}
60506050
* @memberof HostingV1WebsitesWebsiteResource
60516051
*/
6052-
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum;
6052+
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum | null;
60536053
/**
60546054
* Whether website is enabled
60556055
* @type {boolean}
60566056
* @memberof HostingV1WebsitesWebsiteResource
60576057
*/
60586058
'is_enabled': boolean;
60596059
/**
6060-
* Username
6060+
* Username. Not applicable for U4S websites.
60616061
* @type {string}
60626062
* @memberof HostingV1WebsitesWebsiteResource
60636063
*/
6064-
'username': string;
6064+
'username': string | null;
60656065
/**
60666066
* Client ID
60676067
* @type {number}
@@ -6081,17 +6081,29 @@ export interface HostingV1WebsitesWebsiteResource {
60816081
*/
60826082
'created_at': string;
60836083
/**
6084-
* Root directory path
6084+
* Root directory path. Only present for CloudLinux websites.
60856085
* @type {string}
60866086
* @memberof HostingV1WebsitesWebsiteResource
60876087
*/
6088-
'root_directory': string;
6088+
'root_directory': string | null;
60896089
/**
60906090
* Parent domain
60916091
* @type {string}
60926092
* @memberof HostingV1WebsitesWebsiteResource
60936093
*/
60946094
'parent_domain': string | null;
6095+
/**
6096+
* Type of website detected on the underlying platform.
6097+
* @type {string}
6098+
* @memberof HostingV1WebsitesWebsiteResource
6099+
*/
6100+
'website_type': HostingV1WebsitesWebsiteResourceWebsiteTypeEnum;
6101+
/**
6102+
* Horizons UUID. Only present for horizons websites.
6103+
* @type {string}
6104+
* @memberof HostingV1WebsitesWebsiteResource
6105+
*/
6106+
'horizons_uuid': string | null;
60956107
}
60966108

60976109
export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
@@ -6102,6 +6114,15 @@ export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
61026114
} as const;
61036115

61046116
export type HostingV1WebsitesWebsiteResourceVhostTypeEnum = typeof HostingV1WebsitesWebsiteResourceVhostTypeEnum[keyof typeof HostingV1WebsitesWebsiteResourceVhostTypeEnum];
6117+
export const HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = {
6118+
Wordpress: 'wordpress',
6119+
Builder: 'builder',
6120+
Horizons: 'horizons',
6121+
Nodejs: 'nodejs',
6122+
Other: 'other'
6123+
} as const;
6124+
6125+
export type HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = typeof HostingV1WebsitesWebsiteResourceWebsiteTypeEnum[keyof typeof HostingV1WebsitesWebsiteResourceWebsiteTypeEnum];
61056126

61066127
/**
61076128
*
@@ -26872,7 +26893,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
2687226893
};
2687326894
},
2687426895
/**
26875-
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
26896+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
2687626897
* @summary List websites
2687726898
* @param {number} [page] Page number
2687826899
* @param {number} [perPage] Number of items per page
@@ -26970,7 +26991,7 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
2697026991
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2697126992
},
2697226993
/**
26973-
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
26994+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
2697426995
* @summary List websites
2697526996
* @param {number} [page] Page number
2697626997
* @param {number} [perPage] Number of items per page
@@ -27017,7 +27038,7 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
2701727038
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
2701827039
},
2701927040
/**
27020-
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
27041+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
2702127042
* @summary List websites
2702227043
* @param {number} [page] Page number
2702327044
* @param {number} [perPage] Number of items per page
@@ -27066,7 +27087,7 @@ export class HostingWebsitesApi extends BaseAPI {
2706627087
}
2706727088

2706827089
/**
27069-
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
27090+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
2707027091
* @summary List websites
2707127092
* @param {number} [page] Page number
2707227093
* @param {number} [perPage] Number of items per page

base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.39.0
6+
* API Version: 1.40.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.39.0
6+
* API Version: 1.40.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.39.0
6+
* API Version: 1.40.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
4848
this.baseOptions = {
4949
...param.baseOptions,
5050
headers: {
51-
'User-Agent': "hostinger-typescript-sdk/1.37.0",
51+
'User-Agent': "hostinger-typescript-sdk/1.38.0",
5252
...param.baseOptions?.headers,
5353
},
5454
};

docs/HostingV1WebsitesWebsiteResource.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**domain** | **string** | Website domain | [optional] [default to undefined]
9-
**vhost_type** | **string** | Virtual host type | [optional] [default to undefined]
8+
**domain** | **string** | Website domain. Null for U4S websites with no domain attached. | [optional] [default to undefined]
9+
**vhost_type** | **string** | Virtual host type. Only present for CloudLinux websites. | [optional] [default to undefined]
1010
**is_enabled** | **boolean** | Whether website is enabled | [optional] [default to undefined]
11-
**username** | **string** | Username | [optional] [default to undefined]
11+
**username** | **string** | Username. Not applicable for U4S websites. | [optional] [default to undefined]
1212
**client_id** | **number** | Client ID | [optional] [default to undefined]
1313
**order_id** | **number** | Order ID | [optional] [default to undefined]
1414
**created_at** | **string** | Creation date | [optional] [default to undefined]
15-
**root_directory** | **string** | Root directory path | [optional] [default to undefined]
15+
**root_directory** | **string** | Root directory path. Only present for CloudLinux websites. | [optional] [default to undefined]
1616
**parent_domain** | **string** | Parent domain | [optional] [default to undefined]
17+
**website_type** | **string** | Type of website detected on the underlying platform. | [optional] [default to undefined]
18+
**horizons_uuid** | **string** | Horizons UUID. Only present for horizons websites. | [optional] [default to undefined]
1719

1820
## Example
1921

@@ -30,6 +32,8 @@ const instance: HostingV1WebsitesWebsiteResource = {
3032
created_at,
3133
root_directory,
3234
parent_domain,
35+
website_type,
36+
horizons_uuid,
3337
};
3438
```
3539

docs/HostingWebsitesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const { status, data } = await apiInstance.deleteWebsiteV1(
120120
# **listWebsitesV1**
121121
> HostingListWebsitesV1200Response listWebsitesV1()
122122
123-
Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
123+
Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
124124

125125
### Example
126126

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Hostinger API
55
*
6-
* API Version: 1.39.0
6+
* API Version: 1.40.0
77
*
88
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostinger-api-sdk",
3-
"version": "1.37.0",
3+
"version": "1.38.0",
44
"description": "Hostinger API TypeScript SDK",
55
"author": "Hostinger",
66
"repository": {

0 commit comments

Comments
 (0)