hostinger-api-sdk 1.36.0 → 1.38.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.
- package/README.md +2 -2
- package/api.ts +46 -13
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +45 -13
- package/dist/api.js +22 -15
- 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 +45 -13
- package/dist/esm/api.js +12 -5
- 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/HostingV1DatabasesDatabaseResource.md +4 -0
- package/docs/HostingV1WebsitesWebsiteResource.md +8 -4
- package/docs/HostingWebsitesApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## hostinger-api-sdk@1.
|
|
1
|
+
## hostinger-api-sdk@1.38.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install hostinger-api-sdk@1.
|
|
8
|
+
npm install hostinger-api-sdk@1.38.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.40.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
|
|
@@ -4900,6 +4900,18 @@ export interface HostingV1DatabasesDatabaseResource {
|
|
|
4900
4900
|
* @memberof HostingV1DatabasesDatabaseResource
|
|
4901
4901
|
*/
|
|
4902
4902
|
'max_size_mb': number;
|
|
4903
|
+
/**
|
|
4904
|
+
* MySQL hostname for remote connections. Same value as hPanel Remote MySQL. Identical for every database on this account. Not the database user grant host.
|
|
4905
|
+
* @type {string}
|
|
4906
|
+
* @memberof HostingV1DatabasesDatabaseResource
|
|
4907
|
+
*/
|
|
4908
|
+
'host': string;
|
|
4909
|
+
/**
|
|
4910
|
+
* MySQL port for remote connections. Always 3306.
|
|
4911
|
+
* @type {number}
|
|
4912
|
+
* @memberof HostingV1DatabasesDatabaseResource
|
|
4913
|
+
*/
|
|
4914
|
+
'port': number;
|
|
4903
4915
|
}
|
|
4904
4916
|
/**
|
|
4905
4917
|
*
|
|
@@ -6027,17 +6039,17 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
|
|
|
6027
6039
|
*/
|
|
6028
6040
|
export interface HostingV1WebsitesWebsiteResource {
|
|
6029
6041
|
/**
|
|
6030
|
-
* Website domain
|
|
6042
|
+
* Website domain. Null for U4S websites with no domain attached.
|
|
6031
6043
|
* @type {string}
|
|
6032
6044
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
6033
6045
|
*/
|
|
6034
|
-
'domain': string;
|
|
6046
|
+
'domain': string | null;
|
|
6035
6047
|
/**
|
|
6036
|
-
* Virtual host type
|
|
6048
|
+
* Virtual host type. Only present for CloudLinux websites.
|
|
6037
6049
|
* @type {string}
|
|
6038
6050
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
6039
6051
|
*/
|
|
6040
|
-
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum;
|
|
6052
|
+
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum | null;
|
|
6041
6053
|
/**
|
|
6042
6054
|
* Whether website is enabled
|
|
6043
6055
|
* @type {boolean}
|
|
@@ -6045,11 +6057,11 @@ export interface HostingV1WebsitesWebsiteResource {
|
|
|
6045
6057
|
*/
|
|
6046
6058
|
'is_enabled': boolean;
|
|
6047
6059
|
/**
|
|
6048
|
-
* Username
|
|
6060
|
+
* Username. Not applicable for U4S websites.
|
|
6049
6061
|
* @type {string}
|
|
6050
6062
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
6051
6063
|
*/
|
|
6052
|
-
'username': string;
|
|
6064
|
+
'username': string | null;
|
|
6053
6065
|
/**
|
|
6054
6066
|
* Client ID
|
|
6055
6067
|
* @type {number}
|
|
@@ -6069,17 +6081,29 @@ export interface HostingV1WebsitesWebsiteResource {
|
|
|
6069
6081
|
*/
|
|
6070
6082
|
'created_at': string;
|
|
6071
6083
|
/**
|
|
6072
|
-
* Root directory path
|
|
6084
|
+
* Root directory path. Only present for CloudLinux websites.
|
|
6073
6085
|
* @type {string}
|
|
6074
6086
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
6075
6087
|
*/
|
|
6076
|
-
'root_directory': string;
|
|
6088
|
+
'root_directory': string | null;
|
|
6077
6089
|
/**
|
|
6078
6090
|
* Parent domain
|
|
6079
6091
|
* @type {string}
|
|
6080
6092
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
6081
6093
|
*/
|
|
6082
6094
|
'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;
|
|
6083
6107
|
}
|
|
6084
6108
|
|
|
6085
6109
|
export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
@@ -6090,6 +6114,15 @@ export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
|
6090
6114
|
} as const;
|
|
6091
6115
|
|
|
6092
6116
|
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];
|
|
6093
6126
|
|
|
6094
6127
|
/**
|
|
6095
6128
|
*
|
|
@@ -26860,7 +26893,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
|
|
|
26860
26893
|
};
|
|
26861
26894
|
},
|
|
26862
26895
|
/**
|
|
26863
|
-
* Retrieve a paginated list of websites (
|
|
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.
|
|
26864
26897
|
* @summary List websites
|
|
26865
26898
|
* @param {number} [page] Page number
|
|
26866
26899
|
* @param {number} [perPage] Number of items per page
|
|
@@ -26958,7 +26991,7 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
26958
26991
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26959
26992
|
},
|
|
26960
26993
|
/**
|
|
26961
|
-
* Retrieve a paginated list of websites (
|
|
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.
|
|
26962
26995
|
* @summary List websites
|
|
26963
26996
|
* @param {number} [page] Page number
|
|
26964
26997
|
* @param {number} [perPage] Number of items per page
|
|
@@ -27005,7 +27038,7 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
|
|
|
27005
27038
|
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
|
|
27006
27039
|
},
|
|
27007
27040
|
/**
|
|
27008
|
-
* Retrieve a paginated list of websites (
|
|
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.
|
|
27009
27042
|
* @summary List websites
|
|
27010
27043
|
* @param {number} [page] Page number
|
|
27011
27044
|
* @param {number} [perPage] Number of items per page
|
|
@@ -27054,7 +27087,7 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
27054
27087
|
}
|
|
27055
27088
|
|
|
27056
27089
|
/**
|
|
27057
|
-
* Retrieve a paginated list of websites (
|
|
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.
|
|
27058
27091
|
* @summary List websites
|
|
27059
27092
|
* @param {number} [page] Page number
|
|
27060
27093
|
* @param {number} [perPage] Number of items per page
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.40.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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.40.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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.40.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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.38.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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
|
|
@@ -4797,6 +4797,18 @@ export interface HostingV1DatabasesDatabaseResource {
|
|
|
4797
4797
|
* @memberof HostingV1DatabasesDatabaseResource
|
|
4798
4798
|
*/
|
|
4799
4799
|
'max_size_mb': number;
|
|
4800
|
+
/**
|
|
4801
|
+
* MySQL hostname for remote connections. Same value as hPanel Remote MySQL. Identical for every database on this account. Not the database user grant host.
|
|
4802
|
+
* @type {string}
|
|
4803
|
+
* @memberof HostingV1DatabasesDatabaseResource
|
|
4804
|
+
*/
|
|
4805
|
+
'host': string;
|
|
4806
|
+
/**
|
|
4807
|
+
* MySQL port for remote connections. Always 3306.
|
|
4808
|
+
* @type {number}
|
|
4809
|
+
* @memberof HostingV1DatabasesDatabaseResource
|
|
4810
|
+
*/
|
|
4811
|
+
'port': number;
|
|
4800
4812
|
}
|
|
4801
4813
|
/**
|
|
4802
4814
|
*
|
|
@@ -5905,17 +5917,17 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
|
|
|
5905
5917
|
*/
|
|
5906
5918
|
export interface HostingV1WebsitesWebsiteResource {
|
|
5907
5919
|
/**
|
|
5908
|
-
* Website domain
|
|
5920
|
+
* Website domain. Null for U4S websites with no domain attached.
|
|
5909
5921
|
* @type {string}
|
|
5910
5922
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5911
5923
|
*/
|
|
5912
|
-
'domain': string;
|
|
5924
|
+
'domain': string | null;
|
|
5913
5925
|
/**
|
|
5914
|
-
* Virtual host type
|
|
5926
|
+
* Virtual host type. Only present for CloudLinux websites.
|
|
5915
5927
|
* @type {string}
|
|
5916
5928
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5917
5929
|
*/
|
|
5918
|
-
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum;
|
|
5930
|
+
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum | null;
|
|
5919
5931
|
/**
|
|
5920
5932
|
* Whether website is enabled
|
|
5921
5933
|
* @type {boolean}
|
|
@@ -5923,11 +5935,11 @@ export interface HostingV1WebsitesWebsiteResource {
|
|
|
5923
5935
|
*/
|
|
5924
5936
|
'is_enabled': boolean;
|
|
5925
5937
|
/**
|
|
5926
|
-
* Username
|
|
5938
|
+
* Username. Not applicable for U4S websites.
|
|
5927
5939
|
* @type {string}
|
|
5928
5940
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5929
5941
|
*/
|
|
5930
|
-
'username': string;
|
|
5942
|
+
'username': string | null;
|
|
5931
5943
|
/**
|
|
5932
5944
|
* Client ID
|
|
5933
5945
|
* @type {number}
|
|
@@ -5947,17 +5959,29 @@ export interface HostingV1WebsitesWebsiteResource {
|
|
|
5947
5959
|
*/
|
|
5948
5960
|
'created_at': string;
|
|
5949
5961
|
/**
|
|
5950
|
-
* Root directory path
|
|
5962
|
+
* Root directory path. Only present for CloudLinux websites.
|
|
5951
5963
|
* @type {string}
|
|
5952
5964
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5953
5965
|
*/
|
|
5954
|
-
'root_directory': string;
|
|
5966
|
+
'root_directory': string | null;
|
|
5955
5967
|
/**
|
|
5956
5968
|
* Parent domain
|
|
5957
5969
|
* @type {string}
|
|
5958
5970
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5959
5971
|
*/
|
|
5960
5972
|
'parent_domain': string | null;
|
|
5973
|
+
/**
|
|
5974
|
+
* Type of website detected on the underlying platform.
|
|
5975
|
+
* @type {string}
|
|
5976
|
+
* @memberof HostingV1WebsitesWebsiteResource
|
|
5977
|
+
*/
|
|
5978
|
+
'website_type': HostingV1WebsitesWebsiteResourceWebsiteTypeEnum;
|
|
5979
|
+
/**
|
|
5980
|
+
* Horizons UUID. Only present for horizons websites.
|
|
5981
|
+
* @type {string}
|
|
5982
|
+
* @memberof HostingV1WebsitesWebsiteResource
|
|
5983
|
+
*/
|
|
5984
|
+
'horizons_uuid': string | null;
|
|
5961
5985
|
}
|
|
5962
5986
|
export declare const HostingV1WebsitesWebsiteResourceVhostTypeEnum: {
|
|
5963
5987
|
readonly Main: "main";
|
|
@@ -5966,6 +5990,14 @@ export declare const HostingV1WebsitesWebsiteResourceVhostTypeEnum: {
|
|
|
5966
5990
|
readonly Subdomain: "subdomain";
|
|
5967
5991
|
};
|
|
5968
5992
|
export type HostingV1WebsitesWebsiteResourceVhostTypeEnum = typeof HostingV1WebsitesWebsiteResourceVhostTypeEnum[keyof typeof HostingV1WebsitesWebsiteResourceVhostTypeEnum];
|
|
5993
|
+
export declare const HostingV1WebsitesWebsiteResourceWebsiteTypeEnum: {
|
|
5994
|
+
readonly Wordpress: "wordpress";
|
|
5995
|
+
readonly Builder: "builder";
|
|
5996
|
+
readonly Horizons: "horizons";
|
|
5997
|
+
readonly Nodejs: "nodejs";
|
|
5998
|
+
readonly Other: "other";
|
|
5999
|
+
};
|
|
6000
|
+
export type HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = typeof HostingV1WebsitesWebsiteResourceWebsiteTypeEnum[keyof typeof HostingV1WebsitesWebsiteResourceWebsiteTypeEnum];
|
|
5969
6001
|
/**
|
|
5970
6002
|
*
|
|
5971
6003
|
* @export
|
|
@@ -19574,7 +19606,7 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
|
|
|
19574
19606
|
*/
|
|
19575
19607
|
deleteWebsiteV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19576
19608
|
/**
|
|
19577
|
-
* Retrieve a paginated list of websites (
|
|
19609
|
+
* 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.
|
|
19578
19610
|
* @summary List websites
|
|
19579
19611
|
* @param {number} [page] Page number
|
|
19580
19612
|
* @param {number} [perPage] Number of items per page
|
|
@@ -19609,7 +19641,7 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
|
|
|
19609
19641
|
*/
|
|
19610
19642
|
deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
19611
19643
|
/**
|
|
19612
|
-
* Retrieve a paginated list of websites (
|
|
19644
|
+
* 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.
|
|
19613
19645
|
* @summary List websites
|
|
19614
19646
|
* @param {number} [page] Page number
|
|
19615
19647
|
* @param {number} [perPage] Number of items per page
|
|
@@ -19644,7 +19676,7 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
|
|
|
19644
19676
|
*/
|
|
19645
19677
|
deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
19646
19678
|
/**
|
|
19647
|
-
* Retrieve a paginated list of websites (
|
|
19679
|
+
* 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.
|
|
19648
19680
|
* @summary List websites
|
|
19649
19681
|
* @param {number} [page] Page number
|
|
19650
19682
|
* @param {number} [perPage] Number of items per page
|
|
@@ -19683,7 +19715,7 @@ export declare class HostingWebsitesApi extends BaseAPI {
|
|
|
19683
19715
|
*/
|
|
19684
19716
|
deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
19685
19717
|
/**
|
|
19686
|
-
* Retrieve a paginated list of websites (
|
|
19718
|
+
* 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.
|
|
19687
19719
|
* @summary List websites
|
|
19688
19720
|
* @param {number} [page] Page number
|
|
19689
19721
|
* @param {number} [perPage] Number of items per page
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.40.0
|
|
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
|
|
@@ -19,16 +19,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = void 0;
|
|
22
|
+
exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
|
+
exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = void 0;
|
|
24
|
+
exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = exports.ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = exports.AgencyHostingMetricsApi = exports.AgencyHostingMetricsApiFactory = exports.AgencyHostingMetricsApiFp = exports.AgencyHostingMetricsApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = void 0;
|
|
25
|
+
exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = void 0;
|
|
26
|
+
exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = void 0;
|
|
27
|
+
exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = void 0;
|
|
28
|
+
exports.ReachCampaignsApiFactory = exports.ReachCampaignsApiFp = exports.ReachCampaignsApiAxiosParamCreator = exports.ListAutomationsV1SortDirectionEnum = exports.ListAutomationsV1StatusEnum = exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = void 0;
|
|
29
|
+
exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ReachFormsApi = exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListCampaignsV1SortDirectionEnum = exports.ListCampaignsV1TypeEnum = exports.ListCampaignsV1StatusEnum = exports.ReachCampaignsApi = void 0;
|
|
30
|
+
exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = void 0;
|
|
31
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -329,6 +329,13 @@ exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
|
329
329
|
Parked: 'parked',
|
|
330
330
|
Subdomain: 'subdomain'
|
|
331
331
|
};
|
|
332
|
+
exports.HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = {
|
|
333
|
+
Wordpress: 'wordpress',
|
|
334
|
+
Builder: 'builder',
|
|
335
|
+
Horizons: 'horizons',
|
|
336
|
+
Nodejs: 'nodejs',
|
|
337
|
+
Other: 'other'
|
|
338
|
+
};
|
|
332
339
|
exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = {
|
|
333
340
|
ApiToken: 'api_token',
|
|
334
341
|
Oauth: 'oauth'
|
|
@@ -13667,7 +13674,7 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
13667
13674
|
};
|
|
13668
13675
|
}),
|
|
13669
13676
|
/**
|
|
13670
|
-
* Retrieve a paginated list of websites (
|
|
13677
|
+
* 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.
|
|
13671
13678
|
* @summary List websites
|
|
13672
13679
|
* @param {number} [page] Page number
|
|
13673
13680
|
* @param {number} [perPage] Number of items per page
|
|
@@ -13759,7 +13766,7 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
13759
13766
|
});
|
|
13760
13767
|
},
|
|
13761
13768
|
/**
|
|
13762
|
-
* Retrieve a paginated list of websites (
|
|
13769
|
+
* 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.
|
|
13763
13770
|
* @summary List websites
|
|
13764
13771
|
* @param {number} [page] Page number
|
|
13765
13772
|
* @param {number} [perPage] Number of items per page
|
|
@@ -13809,7 +13816,7 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
13809
13816
|
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
|
|
13810
13817
|
},
|
|
13811
13818
|
/**
|
|
13812
|
-
* Retrieve a paginated list of websites (
|
|
13819
|
+
* 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.
|
|
13813
13820
|
* @summary List websites
|
|
13814
13821
|
* @param {number} [page] Page number
|
|
13815
13822
|
* @param {number} [perPage] Number of items per page
|
|
@@ -13856,7 +13863,7 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
13856
13863
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
13857
13864
|
}
|
|
13858
13865
|
/**
|
|
13859
|
-
* Retrieve a paginated list of websites (
|
|
13866
|
+
* 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.
|
|
13860
13867
|
* @summary List websites
|
|
13861
13868
|
* @param {number} [page] Page number
|
|
13862
13869
|
* @param {number} [perPage] Number of items per page
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.40.0
|
|
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
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.40.0
|
|
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
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.40.0
|
|
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
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.38.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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
|
|
@@ -4797,6 +4797,18 @@ export interface HostingV1DatabasesDatabaseResource {
|
|
|
4797
4797
|
* @memberof HostingV1DatabasesDatabaseResource
|
|
4798
4798
|
*/
|
|
4799
4799
|
'max_size_mb': number;
|
|
4800
|
+
/**
|
|
4801
|
+
* MySQL hostname for remote connections. Same value as hPanel Remote MySQL. Identical for every database on this account. Not the database user grant host.
|
|
4802
|
+
* @type {string}
|
|
4803
|
+
* @memberof HostingV1DatabasesDatabaseResource
|
|
4804
|
+
*/
|
|
4805
|
+
'host': string;
|
|
4806
|
+
/**
|
|
4807
|
+
* MySQL port for remote connections. Always 3306.
|
|
4808
|
+
* @type {number}
|
|
4809
|
+
* @memberof HostingV1DatabasesDatabaseResource
|
|
4810
|
+
*/
|
|
4811
|
+
'port': number;
|
|
4800
4812
|
}
|
|
4801
4813
|
/**
|
|
4802
4814
|
*
|
|
@@ -5905,17 +5917,17 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
|
|
|
5905
5917
|
*/
|
|
5906
5918
|
export interface HostingV1WebsitesWebsiteResource {
|
|
5907
5919
|
/**
|
|
5908
|
-
* Website domain
|
|
5920
|
+
* Website domain. Null for U4S websites with no domain attached.
|
|
5909
5921
|
* @type {string}
|
|
5910
5922
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5911
5923
|
*/
|
|
5912
|
-
'domain': string;
|
|
5924
|
+
'domain': string | null;
|
|
5913
5925
|
/**
|
|
5914
|
-
* Virtual host type
|
|
5926
|
+
* Virtual host type. Only present for CloudLinux websites.
|
|
5915
5927
|
* @type {string}
|
|
5916
5928
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5917
5929
|
*/
|
|
5918
|
-
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum;
|
|
5930
|
+
'vhost_type': HostingV1WebsitesWebsiteResourceVhostTypeEnum | null;
|
|
5919
5931
|
/**
|
|
5920
5932
|
* Whether website is enabled
|
|
5921
5933
|
* @type {boolean}
|
|
@@ -5923,11 +5935,11 @@ export interface HostingV1WebsitesWebsiteResource {
|
|
|
5923
5935
|
*/
|
|
5924
5936
|
'is_enabled': boolean;
|
|
5925
5937
|
/**
|
|
5926
|
-
* Username
|
|
5938
|
+
* Username. Not applicable for U4S websites.
|
|
5927
5939
|
* @type {string}
|
|
5928
5940
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5929
5941
|
*/
|
|
5930
|
-
'username': string;
|
|
5942
|
+
'username': string | null;
|
|
5931
5943
|
/**
|
|
5932
5944
|
* Client ID
|
|
5933
5945
|
* @type {number}
|
|
@@ -5947,17 +5959,29 @@ export interface HostingV1WebsitesWebsiteResource {
|
|
|
5947
5959
|
*/
|
|
5948
5960
|
'created_at': string;
|
|
5949
5961
|
/**
|
|
5950
|
-
* Root directory path
|
|
5962
|
+
* Root directory path. Only present for CloudLinux websites.
|
|
5951
5963
|
* @type {string}
|
|
5952
5964
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5953
5965
|
*/
|
|
5954
|
-
'root_directory': string;
|
|
5966
|
+
'root_directory': string | null;
|
|
5955
5967
|
/**
|
|
5956
5968
|
* Parent domain
|
|
5957
5969
|
* @type {string}
|
|
5958
5970
|
* @memberof HostingV1WebsitesWebsiteResource
|
|
5959
5971
|
*/
|
|
5960
5972
|
'parent_domain': string | null;
|
|
5973
|
+
/**
|
|
5974
|
+
* Type of website detected on the underlying platform.
|
|
5975
|
+
* @type {string}
|
|
5976
|
+
* @memberof HostingV1WebsitesWebsiteResource
|
|
5977
|
+
*/
|
|
5978
|
+
'website_type': HostingV1WebsitesWebsiteResourceWebsiteTypeEnum;
|
|
5979
|
+
/**
|
|
5980
|
+
* Horizons UUID. Only present for horizons websites.
|
|
5981
|
+
* @type {string}
|
|
5982
|
+
* @memberof HostingV1WebsitesWebsiteResource
|
|
5983
|
+
*/
|
|
5984
|
+
'horizons_uuid': string | null;
|
|
5961
5985
|
}
|
|
5962
5986
|
export declare const HostingV1WebsitesWebsiteResourceVhostTypeEnum: {
|
|
5963
5987
|
readonly Main: "main";
|
|
@@ -5966,6 +5990,14 @@ export declare const HostingV1WebsitesWebsiteResourceVhostTypeEnum: {
|
|
|
5966
5990
|
readonly Subdomain: "subdomain";
|
|
5967
5991
|
};
|
|
5968
5992
|
export type HostingV1WebsitesWebsiteResourceVhostTypeEnum = typeof HostingV1WebsitesWebsiteResourceVhostTypeEnum[keyof typeof HostingV1WebsitesWebsiteResourceVhostTypeEnum];
|
|
5993
|
+
export declare const HostingV1WebsitesWebsiteResourceWebsiteTypeEnum: {
|
|
5994
|
+
readonly Wordpress: "wordpress";
|
|
5995
|
+
readonly Builder: "builder";
|
|
5996
|
+
readonly Horizons: "horizons";
|
|
5997
|
+
readonly Nodejs: "nodejs";
|
|
5998
|
+
readonly Other: "other";
|
|
5999
|
+
};
|
|
6000
|
+
export type HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = typeof HostingV1WebsitesWebsiteResourceWebsiteTypeEnum[keyof typeof HostingV1WebsitesWebsiteResourceWebsiteTypeEnum];
|
|
5969
6001
|
/**
|
|
5970
6002
|
*
|
|
5971
6003
|
* @export
|
|
@@ -19574,7 +19606,7 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
|
|
|
19574
19606
|
*/
|
|
19575
19607
|
deleteWebsiteV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19576
19608
|
/**
|
|
19577
|
-
* Retrieve a paginated list of websites (
|
|
19609
|
+
* 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.
|
|
19578
19610
|
* @summary List websites
|
|
19579
19611
|
* @param {number} [page] Page number
|
|
19580
19612
|
* @param {number} [perPage] Number of items per page
|
|
@@ -19609,7 +19641,7 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
|
|
|
19609
19641
|
*/
|
|
19610
19642
|
deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
19611
19643
|
/**
|
|
19612
|
-
* Retrieve a paginated list of websites (
|
|
19644
|
+
* 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.
|
|
19613
19645
|
* @summary List websites
|
|
19614
19646
|
* @param {number} [page] Page number
|
|
19615
19647
|
* @param {number} [perPage] Number of items per page
|
|
@@ -19644,7 +19676,7 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
|
|
|
19644
19676
|
*/
|
|
19645
19677
|
deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
19646
19678
|
/**
|
|
19647
|
-
* Retrieve a paginated list of websites (
|
|
19679
|
+
* 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.
|
|
19648
19680
|
* @summary List websites
|
|
19649
19681
|
* @param {number} [page] Page number
|
|
19650
19682
|
* @param {number} [perPage] Number of items per page
|
|
@@ -19683,7 +19715,7 @@ export declare class HostingWebsitesApi extends BaseAPI {
|
|
|
19683
19715
|
*/
|
|
19684
19716
|
deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
19685
19717
|
/**
|
|
19686
|
-
* Retrieve a paginated list of websites (
|
|
19718
|
+
* 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.
|
|
19687
19719
|
* @summary List websites
|
|
19688
19720
|
* @param {number} [page] Page number
|
|
19689
19721
|
* @param {number} [perPage] Number of items per page
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.40.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
|
|
@@ -317,6 +317,13 @@ export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
|
317
317
|
Parked: 'parked',
|
|
318
318
|
Subdomain: 'subdomain'
|
|
319
319
|
};
|
|
320
|
+
export const HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = {
|
|
321
|
+
Wordpress: 'wordpress',
|
|
322
|
+
Builder: 'builder',
|
|
323
|
+
Horizons: 'horizons',
|
|
324
|
+
Nodejs: 'nodejs',
|
|
325
|
+
Other: 'other'
|
|
326
|
+
};
|
|
320
327
|
export const MailV1ApiTokensApiTokenCreatedResourceTypeEnum = {
|
|
321
328
|
ApiToken: 'api_token',
|
|
322
329
|
Oauth: 'oauth'
|
|
@@ -13487,7 +13494,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
13487
13494
|
};
|
|
13488
13495
|
}),
|
|
13489
13496
|
/**
|
|
13490
|
-
* Retrieve a paginated list of websites (
|
|
13497
|
+
* 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.
|
|
13491
13498
|
* @summary List websites
|
|
13492
13499
|
* @param {number} [page] Page number
|
|
13493
13500
|
* @param {number} [perPage] Number of items per page
|
|
@@ -13578,7 +13585,7 @@ export const HostingWebsitesApiFp = function (configuration) {
|
|
|
13578
13585
|
});
|
|
13579
13586
|
},
|
|
13580
13587
|
/**
|
|
13581
|
-
* Retrieve a paginated list of websites (
|
|
13588
|
+
* 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.
|
|
13582
13589
|
* @summary List websites
|
|
13583
13590
|
* @param {number} [page] Page number
|
|
13584
13591
|
* @param {number} [perPage] Number of items per page
|
|
@@ -13627,7 +13634,7 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
13627
13634
|
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
|
|
13628
13635
|
},
|
|
13629
13636
|
/**
|
|
13630
|
-
* Retrieve a paginated list of websites (
|
|
13637
|
+
* 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.
|
|
13631
13638
|
* @summary List websites
|
|
13632
13639
|
* @param {number} [page] Page number
|
|
13633
13640
|
* @param {number} [perPage] Number of items per page
|
|
@@ -13673,7 +13680,7 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
13673
13680
|
return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
13674
13681
|
}
|
|
13675
13682
|
/**
|
|
13676
|
-
* Retrieve a paginated list of websites (
|
|
13683
|
+
* 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.
|
|
13677
13684
|
* @summary List websites
|
|
13678
13685
|
* @param {number} [page] Page number
|
|
13679
13686
|
* @param {number} [perPage] Number of items per page
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.40.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/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.40.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.40.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
|
|
@@ -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.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.38.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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: 1.
|
|
6
|
+
* API Version: 1.40.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/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.40.0
|
|
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: 1.
|
|
7
|
+
* API Version: 1.40.0
|
|
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
|
|
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**updated_at** | **string** | Database last update date in ISO 8601 format. | [optional] [default to undefined]
|
|
14
14
|
**disk_usage_mb** | **number** | Current database disk usage in megabytes. | [optional] [default to undefined]
|
|
15
15
|
**max_size_mb** | **number** | Maximum allowed database size in megabytes. | [optional] [default to undefined]
|
|
16
|
+
**host** | **string** | MySQL hostname for remote connections. Same value as hPanel Remote MySQL. Identical for every database on this account. Not the database user grant host. | [optional] [default to undefined]
|
|
17
|
+
**port** | **number** | MySQL port for remote connections. Always 3306. | [optional] [default to undefined]
|
|
16
18
|
|
|
17
19
|
## Example
|
|
18
20
|
|
|
@@ -28,6 +30,8 @@ const instance: HostingV1DatabasesDatabaseResource = {
|
|
|
28
30
|
updated_at,
|
|
29
31
|
disk_usage_mb,
|
|
30
32
|
max_size_mb,
|
|
33
|
+
host,
|
|
34
|
+
port,
|
|
31
35
|
};
|
|
32
36
|
```
|
|
33
37
|
|
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
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]
|
|
10
10
|
**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]
|
|
12
12
|
**client_id** | **number** | Client ID | [optional] [default to undefined]
|
|
13
13
|
**order_id** | **number** | Order ID | [optional] [default to undefined]
|
|
14
14
|
**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]
|
|
16
16
|
**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]
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -30,6 +32,8 @@ const instance: HostingV1WebsitesWebsiteResource = {
|
|
|
30
32
|
created_at,
|
|
31
33
|
root_directory,
|
|
32
34
|
parent_domain,
|
|
35
|
+
website_type,
|
|
36
|
+
horizons_uuid,
|
|
33
37
|
};
|
|
34
38
|
```
|
|
35
39
|
|
|
@@ -120,7 +120,7 @@ const { status, data } = await apiInstance.deleteWebsiteV1(
|
|
|
120
120
|
# **listWebsitesV1**
|
|
121
121
|
> HostingListWebsitesV1200Response listWebsitesV1()
|
|
122
122
|
|
|
123
|
-
Retrieve a paginated list of websites (
|
|
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.
|
|
124
124
|
|
|
125
125
|
### Example
|
|
126
126
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.40.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
|