hostinger-api-sdk 2.4.2 → 2.4.4
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 +107 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +65 -9
- package/dist/api.js +84 -9
- 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 +65 -9
- package/dist/esm/api.js +84 -9
- 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/HostingCacheApi.md +59 -2
- package/docs/HostingV1CacheCacheStatusResource.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@2.4.
|
|
1
|
+
## @hostinger/sdk@2.4.4
|
|
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/sdk@2.4.
|
|
8
|
+
npm install @hostinger/sdk@2.4.4 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.4
|
|
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
|
|
@@ -7202,6 +7202,25 @@ export interface HostingListWebsitesV1200Response {
|
|
|
7202
7202
|
*/
|
|
7203
7203
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7204
7204
|
}
|
|
7205
|
+
/**
|
|
7206
|
+
*
|
|
7207
|
+
* @export
|
|
7208
|
+
* @interface HostingV1CacheCacheStatusResource
|
|
7209
|
+
*/
|
|
7210
|
+
export interface HostingV1CacheCacheStatusResource {
|
|
7211
|
+
/**
|
|
7212
|
+
* Whether server-side caching is enabled for the website
|
|
7213
|
+
* @type {boolean}
|
|
7214
|
+
* @memberof HostingV1CacheCacheStatusResource
|
|
7215
|
+
*/
|
|
7216
|
+
'is_enabled': boolean;
|
|
7217
|
+
/**
|
|
7218
|
+
* Whether development (cacheless) mode is on. While it is on, caching is bypassed even when `is_enabled` is true. Can take a few minutes to follow a cacheless mode toggle.
|
|
7219
|
+
* @type {boolean}
|
|
7220
|
+
* @memberof HostingV1CacheCacheStatusResource
|
|
7221
|
+
*/
|
|
7222
|
+
'is_cacheless_mode_enabled': boolean;
|
|
7223
|
+
}
|
|
7205
7224
|
/**
|
|
7206
7225
|
*
|
|
7207
7226
|
* @export
|
|
@@ -31668,7 +31687,49 @@ export const HostingCacheApiAxiosParamCreator = function (configuration?: Config
|
|
|
31668
31687
|
};
|
|
31669
31688
|
},
|
|
31670
31689
|
/**
|
|
31671
|
-
*
|
|
31690
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
31691
|
+
* @summary Get cache status
|
|
31692
|
+
* @param {string} username
|
|
31693
|
+
* @param {string} domain Domain name
|
|
31694
|
+
* @param {*} [options] Override http request option.
|
|
31695
|
+
* @throws {RequiredError}
|
|
31696
|
+
*/
|
|
31697
|
+
getCacheStatusV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31698
|
+
// verify required parameter 'username' is not null or undefined
|
|
31699
|
+
assertParamExists('getCacheStatusV1', 'username', username)
|
|
31700
|
+
// verify required parameter 'domain' is not null or undefined
|
|
31701
|
+
assertParamExists('getCacheStatusV1', 'domain', domain)
|
|
31702
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/status`
|
|
31703
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
31704
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
31705
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31706
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31707
|
+
let baseOptions;
|
|
31708
|
+
if (configuration) {
|
|
31709
|
+
baseOptions = configuration.baseOptions;
|
|
31710
|
+
}
|
|
31711
|
+
|
|
31712
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
31713
|
+
const localVarHeaderParameter = {} as any;
|
|
31714
|
+
const localVarQueryParameter = {} as any;
|
|
31715
|
+
|
|
31716
|
+
// authentication apiToken required
|
|
31717
|
+
// http bearer authentication required
|
|
31718
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31719
|
+
|
|
31720
|
+
|
|
31721
|
+
|
|
31722
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31724
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31725
|
+
|
|
31726
|
+
return {
|
|
31727
|
+
url: toPathString(localVarUrlObj),
|
|
31728
|
+
options: localVarRequestOptions,
|
|
31729
|
+
};
|
|
31730
|
+
},
|
|
31731
|
+
/**
|
|
31732
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
31672
31733
|
* @summary Toggle cacheless mode
|
|
31673
31734
|
* @param {string} username
|
|
31674
31735
|
* @param {string} domain Domain name
|
|
@@ -31716,7 +31777,7 @@ export const HostingCacheApiAxiosParamCreator = function (configuration?: Config
|
|
|
31716
31777
|
};
|
|
31717
31778
|
},
|
|
31718
31779
|
/**
|
|
31719
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
31780
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
31720
31781
|
* @summary Toggle website cache
|
|
31721
31782
|
* @param {string} username
|
|
31722
31783
|
* @param {string} domain Domain name
|
|
@@ -31788,7 +31849,20 @@ export const HostingCacheApiFp = function(configuration?: Configuration) {
|
|
|
31788
31849
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31789
31850
|
},
|
|
31790
31851
|
/**
|
|
31791
|
-
*
|
|
31852
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
31853
|
+
* @summary Get cache status
|
|
31854
|
+
* @param {string} username
|
|
31855
|
+
* @param {string} domain Domain name
|
|
31856
|
+
* @param {*} [options] Override http request option.
|
|
31857
|
+
* @throws {RequiredError}
|
|
31858
|
+
*/
|
|
31859
|
+
async getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CacheCacheStatusResource>> {
|
|
31860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCacheStatusV1(username, domain, options);
|
|
31861
|
+
const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.getCacheStatusV1']?.[0]?.url;
|
|
31862
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31863
|
+
},
|
|
31864
|
+
/**
|
|
31865
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
31792
31866
|
* @summary Toggle cacheless mode
|
|
31793
31867
|
* @param {string} username
|
|
31794
31868
|
* @param {string} domain Domain name
|
|
@@ -31802,7 +31876,7 @@ export const HostingCacheApiFp = function(configuration?: Configuration) {
|
|
|
31802
31876
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31803
31877
|
},
|
|
31804
31878
|
/**
|
|
31805
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
31879
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
31806
31880
|
* @summary Toggle website cache
|
|
31807
31881
|
* @param {string} username
|
|
31808
31882
|
* @param {string} domain Domain name
|
|
@@ -31838,7 +31912,18 @@ export const HostingCacheApiFactory = function (configuration?: Configuration, b
|
|
|
31838
31912
|
return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
|
|
31839
31913
|
},
|
|
31840
31914
|
/**
|
|
31841
|
-
*
|
|
31915
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
31916
|
+
* @summary Get cache status
|
|
31917
|
+
* @param {string} username
|
|
31918
|
+
* @param {string} domain Domain name
|
|
31919
|
+
* @param {*} [options] Override http request option.
|
|
31920
|
+
* @throws {RequiredError}
|
|
31921
|
+
*/
|
|
31922
|
+
getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CacheCacheStatusResource> {
|
|
31923
|
+
return localVarFp.getCacheStatusV1(username, domain, options).then((request) => request(axios, basePath));
|
|
31924
|
+
},
|
|
31925
|
+
/**
|
|
31926
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
31842
31927
|
* @summary Toggle cacheless mode
|
|
31843
31928
|
* @param {string} username
|
|
31844
31929
|
* @param {string} domain Domain name
|
|
@@ -31850,7 +31935,7 @@ export const HostingCacheApiFactory = function (configuration?: Configuration, b
|
|
|
31850
31935
|
return localVarFp.toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(axios, basePath));
|
|
31851
31936
|
},
|
|
31852
31937
|
/**
|
|
31853
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
31938
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
31854
31939
|
* @summary Toggle website cache
|
|
31855
31940
|
* @param {string} username
|
|
31856
31941
|
* @param {string} domain Domain name
|
|
@@ -31886,7 +31971,20 @@ export class HostingCacheApi extends BaseAPI {
|
|
|
31886
31971
|
}
|
|
31887
31972
|
|
|
31888
31973
|
/**
|
|
31889
|
-
*
|
|
31974
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
31975
|
+
* @summary Get cache status
|
|
31976
|
+
* @param {string} username
|
|
31977
|
+
* @param {string} domain Domain name
|
|
31978
|
+
* @param {*} [options] Override http request option.
|
|
31979
|
+
* @throws {RequiredError}
|
|
31980
|
+
* @memberof HostingCacheApi
|
|
31981
|
+
*/
|
|
31982
|
+
public getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
31983
|
+
return HostingCacheApiFp(this.configuration).getCacheStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
31984
|
+
}
|
|
31985
|
+
|
|
31986
|
+
/**
|
|
31987
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
31890
31988
|
* @summary Toggle cacheless mode
|
|
31891
31989
|
* @param {string} username
|
|
31892
31990
|
* @param {string} domain Domain name
|
|
@@ -31900,7 +31998,7 @@ export class HostingCacheApi extends BaseAPI {
|
|
|
31900
31998
|
}
|
|
31901
31999
|
|
|
31902
32000
|
/**
|
|
31903
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
32001
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
31904
32002
|
* @summary Toggle website cache
|
|
31905
32003
|
* @param {string} username
|
|
31906
32004
|
* @param {string} domain Domain name
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.4
|
|
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: 2.4.
|
|
6
|
+
* API Version: 2.4.4
|
|
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: 2.4.
|
|
6
|
+
* API Version: 2.4.4
|
|
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/2.4.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/2.4.4",
|
|
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: 2.4.
|
|
4
|
+
* API Version: 2.4.4
|
|
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
|
|
@@ -7050,6 +7050,25 @@ export interface HostingListWebsitesV1200Response {
|
|
|
7050
7050
|
*/
|
|
7051
7051
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7052
7052
|
}
|
|
7053
|
+
/**
|
|
7054
|
+
*
|
|
7055
|
+
* @export
|
|
7056
|
+
* @interface HostingV1CacheCacheStatusResource
|
|
7057
|
+
*/
|
|
7058
|
+
export interface HostingV1CacheCacheStatusResource {
|
|
7059
|
+
/**
|
|
7060
|
+
* Whether server-side caching is enabled for the website
|
|
7061
|
+
* @type {boolean}
|
|
7062
|
+
* @memberof HostingV1CacheCacheStatusResource
|
|
7063
|
+
*/
|
|
7064
|
+
'is_enabled': boolean;
|
|
7065
|
+
/**
|
|
7066
|
+
* Whether development (cacheless) mode is on. While it is on, caching is bypassed even when `is_enabled` is true. Can take a few minutes to follow a cacheless mode toggle.
|
|
7067
|
+
* @type {boolean}
|
|
7068
|
+
* @memberof HostingV1CacheCacheStatusResource
|
|
7069
|
+
*/
|
|
7070
|
+
'is_cacheless_mode_enabled': boolean;
|
|
7071
|
+
}
|
|
7053
7072
|
/**
|
|
7054
7073
|
*
|
|
7055
7074
|
* @export
|
|
@@ -24771,7 +24790,16 @@ export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configur
|
|
|
24771
24790
|
*/
|
|
24772
24791
|
clearWebsiteCacheV1: (username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24773
24792
|
/**
|
|
24774
|
-
*
|
|
24793
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24794
|
+
* @summary Get cache status
|
|
24795
|
+
* @param {string} username
|
|
24796
|
+
* @param {string} domain Domain name
|
|
24797
|
+
* @param {*} [options] Override http request option.
|
|
24798
|
+
* @throws {RequiredError}
|
|
24799
|
+
*/
|
|
24800
|
+
getCacheStatusV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24801
|
+
/**
|
|
24802
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24775
24803
|
* @summary Toggle cacheless mode
|
|
24776
24804
|
* @param {string} username
|
|
24777
24805
|
* @param {string} domain Domain name
|
|
@@ -24781,7 +24809,7 @@ export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configur
|
|
|
24781
24809
|
*/
|
|
24782
24810
|
toggleCachelessModeV1: (username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24783
24811
|
/**
|
|
24784
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24812
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24785
24813
|
* @summary Toggle website cache
|
|
24786
24814
|
* @param {string} username
|
|
24787
24815
|
* @param {string} domain Domain name
|
|
@@ -24807,7 +24835,16 @@ export declare const HostingCacheApiFp: (configuration?: Configuration) => {
|
|
|
24807
24835
|
*/
|
|
24808
24836
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
24809
24837
|
/**
|
|
24810
|
-
*
|
|
24838
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24839
|
+
* @summary Get cache status
|
|
24840
|
+
* @param {string} username
|
|
24841
|
+
* @param {string} domain Domain name
|
|
24842
|
+
* @param {*} [options] Override http request option.
|
|
24843
|
+
* @throws {RequiredError}
|
|
24844
|
+
*/
|
|
24845
|
+
getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CacheCacheStatusResource>>;
|
|
24846
|
+
/**
|
|
24847
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24811
24848
|
* @summary Toggle cacheless mode
|
|
24812
24849
|
* @param {string} username
|
|
24813
24850
|
* @param {string} domain Domain name
|
|
@@ -24817,7 +24854,7 @@ export declare const HostingCacheApiFp: (configuration?: Configuration) => {
|
|
|
24817
24854
|
*/
|
|
24818
24855
|
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
24819
24856
|
/**
|
|
24820
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24857
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24821
24858
|
* @summary Toggle website cache
|
|
24822
24859
|
* @param {string} username
|
|
24823
24860
|
* @param {string} domain Domain name
|
|
@@ -24843,7 +24880,16 @@ export declare const HostingCacheApiFactory: (configuration?: Configuration, bas
|
|
|
24843
24880
|
*/
|
|
24844
24881
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
24845
24882
|
/**
|
|
24846
|
-
*
|
|
24883
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24884
|
+
* @summary Get cache status
|
|
24885
|
+
* @param {string} username
|
|
24886
|
+
* @param {string} domain Domain name
|
|
24887
|
+
* @param {*} [options] Override http request option.
|
|
24888
|
+
* @throws {RequiredError}
|
|
24889
|
+
*/
|
|
24890
|
+
getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CacheCacheStatusResource>;
|
|
24891
|
+
/**
|
|
24892
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24847
24893
|
* @summary Toggle cacheless mode
|
|
24848
24894
|
* @param {string} username
|
|
24849
24895
|
* @param {string} domain Domain name
|
|
@@ -24853,7 +24899,7 @@ export declare const HostingCacheApiFactory: (configuration?: Configuration, bas
|
|
|
24853
24899
|
*/
|
|
24854
24900
|
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
24855
24901
|
/**
|
|
24856
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24902
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24857
24903
|
* @summary Toggle website cache
|
|
24858
24904
|
* @param {string} username
|
|
24859
24905
|
* @param {string} domain Domain name
|
|
@@ -24882,7 +24928,17 @@ export declare class HostingCacheApi extends BaseAPI {
|
|
|
24882
24928
|
*/
|
|
24883
24929
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
24884
24930
|
/**
|
|
24885
|
-
*
|
|
24931
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24932
|
+
* @summary Get cache status
|
|
24933
|
+
* @param {string} username
|
|
24934
|
+
* @param {string} domain Domain name
|
|
24935
|
+
* @param {*} [options] Override http request option.
|
|
24936
|
+
* @throws {RequiredError}
|
|
24937
|
+
* @memberof HostingCacheApi
|
|
24938
|
+
*/
|
|
24939
|
+
getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1CacheCacheStatusResource, any, {}, any>>;
|
|
24940
|
+
/**
|
|
24941
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24886
24942
|
* @summary Toggle cacheless mode
|
|
24887
24943
|
* @param {string} username
|
|
24888
24944
|
* @param {string} domain Domain name
|
|
@@ -24893,7 +24949,7 @@ export declare class HostingCacheApi extends BaseAPI {
|
|
|
24893
24949
|
*/
|
|
24894
24950
|
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
24895
24951
|
/**
|
|
24896
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24952
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24897
24953
|
* @summary Toggle website cache
|
|
24898
24954
|
* @param {string} username
|
|
24899
24955
|
* @param {string} domain Domain name
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.4.
|
|
7
|
+
* API Version: 2.4.4
|
|
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
|
|
@@ -13199,7 +13199,43 @@ const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
13199
13199
|
};
|
|
13200
13200
|
}),
|
|
13201
13201
|
/**
|
|
13202
|
-
*
|
|
13202
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13203
|
+
* @summary Get cache status
|
|
13204
|
+
* @param {string} username
|
|
13205
|
+
* @param {string} domain Domain name
|
|
13206
|
+
* @param {*} [options] Override http request option.
|
|
13207
|
+
* @throws {RequiredError}
|
|
13208
|
+
*/
|
|
13209
|
+
getCacheStatusV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
13210
|
+
// verify required parameter 'username' is not null or undefined
|
|
13211
|
+
(0, common_1.assertParamExists)('getCacheStatusV1', 'username', username);
|
|
13212
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13213
|
+
(0, common_1.assertParamExists)('getCacheStatusV1', 'domain', domain);
|
|
13214
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/status`
|
|
13215
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13216
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13218
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13219
|
+
let baseOptions;
|
|
13220
|
+
if (configuration) {
|
|
13221
|
+
baseOptions = configuration.baseOptions;
|
|
13222
|
+
}
|
|
13223
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13224
|
+
const localVarHeaderParameter = {};
|
|
13225
|
+
const localVarQueryParameter = {};
|
|
13226
|
+
// authentication apiToken required
|
|
13227
|
+
// http bearer authentication required
|
|
13228
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13230
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13231
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13232
|
+
return {
|
|
13233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13234
|
+
options: localVarRequestOptions,
|
|
13235
|
+
};
|
|
13236
|
+
}),
|
|
13237
|
+
/**
|
|
13238
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13203
13239
|
* @summary Toggle cacheless mode
|
|
13204
13240
|
* @param {string} username
|
|
13205
13241
|
* @param {string} domain Domain name
|
|
@@ -13240,7 +13276,7 @@ const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
13240
13276
|
};
|
|
13241
13277
|
}),
|
|
13242
13278
|
/**
|
|
13243
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13279
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13244
13280
|
* @summary Toggle website cache
|
|
13245
13281
|
* @param {string} username
|
|
13246
13282
|
* @param {string} domain Domain name
|
|
@@ -13308,7 +13344,23 @@ const HostingCacheApiFp = function (configuration) {
|
|
|
13308
13344
|
});
|
|
13309
13345
|
},
|
|
13310
13346
|
/**
|
|
13311
|
-
*
|
|
13347
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13348
|
+
* @summary Get cache status
|
|
13349
|
+
* @param {string} username
|
|
13350
|
+
* @param {string} domain Domain name
|
|
13351
|
+
* @param {*} [options] Override http request option.
|
|
13352
|
+
* @throws {RequiredError}
|
|
13353
|
+
*/
|
|
13354
|
+
getCacheStatusV1(username, domain, options) {
|
|
13355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13356
|
+
var _a, _b;
|
|
13357
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCacheStatusV1(username, domain, options);
|
|
13358
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.getCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13359
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13360
|
+
});
|
|
13361
|
+
},
|
|
13362
|
+
/**
|
|
13363
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13312
13364
|
* @summary Toggle cacheless mode
|
|
13313
13365
|
* @param {string} username
|
|
13314
13366
|
* @param {string} domain Domain name
|
|
@@ -13325,7 +13377,7 @@ const HostingCacheApiFp = function (configuration) {
|
|
|
13325
13377
|
});
|
|
13326
13378
|
},
|
|
13327
13379
|
/**
|
|
13328
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13380
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13329
13381
|
* @summary Toggle website cache
|
|
13330
13382
|
* @param {string} username
|
|
13331
13383
|
* @param {string} domain Domain name
|
|
@@ -13364,7 +13416,18 @@ const HostingCacheApiFactory = function (configuration, basePath, axios) {
|
|
|
13364
13416
|
return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
|
|
13365
13417
|
},
|
|
13366
13418
|
/**
|
|
13367
|
-
*
|
|
13419
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13420
|
+
* @summary Get cache status
|
|
13421
|
+
* @param {string} username
|
|
13422
|
+
* @param {string} domain Domain name
|
|
13423
|
+
* @param {*} [options] Override http request option.
|
|
13424
|
+
* @throws {RequiredError}
|
|
13425
|
+
*/
|
|
13426
|
+
getCacheStatusV1(username, domain, options) {
|
|
13427
|
+
return localVarFp.getCacheStatusV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13428
|
+
},
|
|
13429
|
+
/**
|
|
13430
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13368
13431
|
* @summary Toggle cacheless mode
|
|
13369
13432
|
* @param {string} username
|
|
13370
13433
|
* @param {string} domain Domain name
|
|
@@ -13376,7 +13439,7 @@ const HostingCacheApiFactory = function (configuration, basePath, axios) {
|
|
|
13376
13439
|
return localVarFp.toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(axios, basePath));
|
|
13377
13440
|
},
|
|
13378
13441
|
/**
|
|
13379
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13442
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13380
13443
|
* @summary Toggle website cache
|
|
13381
13444
|
* @param {string} username
|
|
13382
13445
|
* @param {string} domain Domain name
|
|
@@ -13411,7 +13474,19 @@ class HostingCacheApi extends base_1.BaseAPI {
|
|
|
13411
13474
|
return (0, exports.HostingCacheApiFp)(this.configuration).clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(this.axios, this.basePath));
|
|
13412
13475
|
}
|
|
13413
13476
|
/**
|
|
13414
|
-
*
|
|
13477
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13478
|
+
* @summary Get cache status
|
|
13479
|
+
* @param {string} username
|
|
13480
|
+
* @param {string} domain Domain name
|
|
13481
|
+
* @param {*} [options] Override http request option.
|
|
13482
|
+
* @throws {RequiredError}
|
|
13483
|
+
* @memberof HostingCacheApi
|
|
13484
|
+
*/
|
|
13485
|
+
getCacheStatusV1(username, domain, options) {
|
|
13486
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).getCacheStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13487
|
+
}
|
|
13488
|
+
/**
|
|
13489
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13415
13490
|
* @summary Toggle cacheless mode
|
|
13416
13491
|
* @param {string} username
|
|
13417
13492
|
* @param {string} domain Domain name
|
|
@@ -13424,7 +13499,7 @@ class HostingCacheApi extends base_1.BaseAPI {
|
|
|
13424
13499
|
return (0, exports.HostingCacheApiFp)(this.configuration).toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13425
13500
|
}
|
|
13426
13501
|
/**
|
|
13427
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13502
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13428
13503
|
* @summary Toggle website cache
|
|
13429
13504
|
* @param {string} username
|
|
13430
13505
|
* @param {string} domain Domain name
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.4
|
|
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: 2.4.
|
|
7
|
+
* API Version: 2.4.4
|
|
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: 2.4.
|
|
4
|
+
* API Version: 2.4.4
|
|
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
|