hostinger-api-sdk 1.5.0 → 1.5.1
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 +81 -195
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +59 -99
- package/dist/api.js +55 -189
- 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 +59 -99
- package/dist/esm/api.js +55 -189
- 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 +26 -130
- package/docs/HostingV1CacheToggleCacheRequest.md +20 -0
- package/docs/HostingV1CacheToggleCachelessModeRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.5.
|
|
4
|
+
* API Version: 1.5.1
|
|
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
|
|
@@ -2407,6 +2407,32 @@ export interface HostingListWebsitesV1200Response {
|
|
|
2407
2407
|
*/
|
|
2408
2408
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
2409
2409
|
}
|
|
2410
|
+
/**
|
|
2411
|
+
*
|
|
2412
|
+
* @export
|
|
2413
|
+
* @interface HostingV1CacheToggleCacheRequest
|
|
2414
|
+
*/
|
|
2415
|
+
export interface HostingV1CacheToggleCacheRequest {
|
|
2416
|
+
/**
|
|
2417
|
+
* Turn server-side caching on (true) or off (false) for the website.
|
|
2418
|
+
* @type {boolean}
|
|
2419
|
+
* @memberof HostingV1CacheToggleCacheRequest
|
|
2420
|
+
*/
|
|
2421
|
+
'enabled': boolean;
|
|
2422
|
+
}
|
|
2423
|
+
/**
|
|
2424
|
+
*
|
|
2425
|
+
* @export
|
|
2426
|
+
* @interface HostingV1CacheToggleCachelessModeRequest
|
|
2427
|
+
*/
|
|
2428
|
+
export interface HostingV1CacheToggleCachelessModeRequest {
|
|
2429
|
+
/**
|
|
2430
|
+
* Turn development (cacheless) mode on (true) or off (false) for the website.
|
|
2431
|
+
* @type {boolean}
|
|
2432
|
+
* @memberof HostingV1CacheToggleCachelessModeRequest
|
|
2433
|
+
*/
|
|
2434
|
+
'enabled': boolean;
|
|
2435
|
+
}
|
|
2410
2436
|
/**
|
|
2411
2437
|
*
|
|
2412
2438
|
* @export
|
|
@@ -8648,41 +8674,25 @@ export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configur
|
|
|
8648
8674
|
*/
|
|
8649
8675
|
clearWebsiteCacheV1: (username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8650
8676
|
/**
|
|
8651
|
-
* Turns
|
|
8652
|
-
* @summary
|
|
8677
|
+
* 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.
|
|
8678
|
+
* @summary Toggle cacheless mode
|
|
8653
8679
|
* @param {string} username
|
|
8654
8680
|
* @param {string} domain Domain name
|
|
8681
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
8655
8682
|
* @param {*} [options] Override http request option.
|
|
8656
8683
|
* @throws {RequiredError}
|
|
8657
8684
|
*/
|
|
8658
|
-
|
|
8685
|
+
toggleCachelessModeV1: (username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8659
8686
|
/**
|
|
8660
|
-
* Turns
|
|
8661
|
-
* @summary
|
|
8687
|
+
* 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.
|
|
8688
|
+
* @summary Toggle website cache
|
|
8662
8689
|
* @param {string} username
|
|
8663
8690
|
* @param {string} domain Domain name
|
|
8691
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
8664
8692
|
* @param {*} [options] Override http request option.
|
|
8665
8693
|
* @throws {RequiredError}
|
|
8666
8694
|
*/
|
|
8667
|
-
|
|
8668
|
-
/**
|
|
8669
|
-
* Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
|
|
8670
|
-
* @summary Enable cacheless mode
|
|
8671
|
-
* @param {string} username
|
|
8672
|
-
* @param {string} domain Domain name
|
|
8673
|
-
* @param {*} [options] Override http request option.
|
|
8674
|
-
* @throws {RequiredError}
|
|
8675
|
-
*/
|
|
8676
|
-
enableCachelessModeV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8677
|
-
/**
|
|
8678
|
-
* Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
|
|
8679
|
-
* @summary Enable website cache
|
|
8680
|
-
* @param {string} username
|
|
8681
|
-
* @param {string} domain Domain name
|
|
8682
|
-
* @param {*} [options] Override http request option.
|
|
8683
|
-
* @throws {RequiredError}
|
|
8684
|
-
*/
|
|
8685
|
-
enableWebsiteCacheV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8695
|
+
toggleWebsiteCacheV1: (username: string, domain: string, hostingV1CacheToggleCacheRequest: HostingV1CacheToggleCacheRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8686
8696
|
};
|
|
8687
8697
|
/**
|
|
8688
8698
|
* HostingCacheApi - functional programming interface
|
|
@@ -8700,41 +8710,25 @@ export declare const HostingCacheApiFp: (configuration?: Configuration) => {
|
|
|
8700
8710
|
*/
|
|
8701
8711
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
8702
8712
|
/**
|
|
8703
|
-
* Turns
|
|
8704
|
-
* @summary
|
|
8705
|
-
* @param {string} username
|
|
8706
|
-
* @param {string} domain Domain name
|
|
8707
|
-
* @param {*} [options] Override http request option.
|
|
8708
|
-
* @throws {RequiredError}
|
|
8709
|
-
*/
|
|
8710
|
-
disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
8711
|
-
/**
|
|
8712
|
-
* Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
|
|
8713
|
-
* @summary Disable website cache
|
|
8713
|
+
* 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.
|
|
8714
|
+
* @summary Toggle cacheless mode
|
|
8714
8715
|
* @param {string} username
|
|
8715
8716
|
* @param {string} domain Domain name
|
|
8717
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
8716
8718
|
* @param {*} [options] Override http request option.
|
|
8717
8719
|
* @throws {RequiredError}
|
|
8718
8720
|
*/
|
|
8719
|
-
|
|
8721
|
+
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
8720
8722
|
/**
|
|
8721
|
-
*
|
|
8722
|
-
* @summary
|
|
8723
|
+
* 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.
|
|
8724
|
+
* @summary Toggle website cache
|
|
8723
8725
|
* @param {string} username
|
|
8724
8726
|
* @param {string} domain Domain name
|
|
8727
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
8725
8728
|
* @param {*} [options] Override http request option.
|
|
8726
8729
|
* @throws {RequiredError}
|
|
8727
8730
|
*/
|
|
8728
|
-
|
|
8729
|
-
/**
|
|
8730
|
-
* Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
|
|
8731
|
-
* @summary Enable website cache
|
|
8732
|
-
* @param {string} username
|
|
8733
|
-
* @param {string} domain Domain name
|
|
8734
|
-
* @param {*} [options] Override http request option.
|
|
8735
|
-
* @throws {RequiredError}
|
|
8736
|
-
*/
|
|
8737
|
-
enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
8731
|
+
toggleWebsiteCacheV1(username: string, domain: string, hostingV1CacheToggleCacheRequest: HostingV1CacheToggleCacheRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
8738
8732
|
};
|
|
8739
8733
|
/**
|
|
8740
8734
|
* HostingCacheApi - factory interface
|
|
@@ -8752,41 +8746,25 @@ export declare const HostingCacheApiFactory: (configuration?: Configuration, bas
|
|
|
8752
8746
|
*/
|
|
8753
8747
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
8754
8748
|
/**
|
|
8755
|
-
* Turns
|
|
8756
|
-
* @summary
|
|
8757
|
-
* @param {string} username
|
|
8758
|
-
* @param {string} domain Domain name
|
|
8759
|
-
* @param {*} [options] Override http request option.
|
|
8760
|
-
* @throws {RequiredError}
|
|
8761
|
-
*/
|
|
8762
|
-
disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
8763
|
-
/**
|
|
8764
|
-
* Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
|
|
8765
|
-
* @summary Disable website cache
|
|
8766
|
-
* @param {string} username
|
|
8767
|
-
* @param {string} domain Domain name
|
|
8768
|
-
* @param {*} [options] Override http request option.
|
|
8769
|
-
* @throws {RequiredError}
|
|
8770
|
-
*/
|
|
8771
|
-
disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
8772
|
-
/**
|
|
8773
|
-
* Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
|
|
8774
|
-
* @summary Enable cacheless mode
|
|
8749
|
+
* 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.
|
|
8750
|
+
* @summary Toggle cacheless mode
|
|
8775
8751
|
* @param {string} username
|
|
8776
8752
|
* @param {string} domain Domain name
|
|
8753
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
8777
8754
|
* @param {*} [options] Override http request option.
|
|
8778
8755
|
* @throws {RequiredError}
|
|
8779
8756
|
*/
|
|
8780
|
-
|
|
8757
|
+
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
8781
8758
|
/**
|
|
8782
|
-
* Turns
|
|
8783
|
-
* @summary
|
|
8759
|
+
* 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.
|
|
8760
|
+
* @summary Toggle website cache
|
|
8784
8761
|
* @param {string} username
|
|
8785
8762
|
* @param {string} domain Domain name
|
|
8763
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
8786
8764
|
* @param {*} [options] Override http request option.
|
|
8787
8765
|
* @throws {RequiredError}
|
|
8788
8766
|
*/
|
|
8789
|
-
|
|
8767
|
+
toggleWebsiteCacheV1(username: string, domain: string, hostingV1CacheToggleCacheRequest: HostingV1CacheToggleCacheRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
8790
8768
|
};
|
|
8791
8769
|
/**
|
|
8792
8770
|
* HostingCacheApi - object-oriented interface
|
|
@@ -8807,45 +8785,27 @@ export declare class HostingCacheApi extends BaseAPI {
|
|
|
8807
8785
|
*/
|
|
8808
8786
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
8809
8787
|
/**
|
|
8810
|
-
* Turns
|
|
8811
|
-
* @summary
|
|
8812
|
-
* @param {string} username
|
|
8813
|
-
* @param {string} domain Domain name
|
|
8814
|
-
* @param {*} [options] Override http request option.
|
|
8815
|
-
* @throws {RequiredError}
|
|
8816
|
-
* @memberof HostingCacheApi
|
|
8817
|
-
*/
|
|
8818
|
-
disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
8819
|
-
/**
|
|
8820
|
-
* Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
|
|
8821
|
-
* @summary Disable website cache
|
|
8822
|
-
* @param {string} username
|
|
8823
|
-
* @param {string} domain Domain name
|
|
8824
|
-
* @param {*} [options] Override http request option.
|
|
8825
|
-
* @throws {RequiredError}
|
|
8826
|
-
* @memberof HostingCacheApi
|
|
8827
|
-
*/
|
|
8828
|
-
disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
8829
|
-
/**
|
|
8830
|
-
* Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
|
|
8831
|
-
* @summary Enable cacheless mode
|
|
8788
|
+
* 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.
|
|
8789
|
+
* @summary Toggle cacheless mode
|
|
8832
8790
|
* @param {string} username
|
|
8833
8791
|
* @param {string} domain Domain name
|
|
8792
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
8834
8793
|
* @param {*} [options] Override http request option.
|
|
8835
8794
|
* @throws {RequiredError}
|
|
8836
8795
|
* @memberof HostingCacheApi
|
|
8837
8796
|
*/
|
|
8838
|
-
|
|
8797
|
+
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
8839
8798
|
/**
|
|
8840
|
-
* Turns
|
|
8841
|
-
* @summary
|
|
8799
|
+
* 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.
|
|
8800
|
+
* @summary Toggle website cache
|
|
8842
8801
|
* @param {string} username
|
|
8843
8802
|
* @param {string} domain Domain name
|
|
8803
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
8844
8804
|
* @param {*} [options] Override http request option.
|
|
8845
8805
|
* @throws {RequiredError}
|
|
8846
8806
|
* @memberof HostingCacheApi
|
|
8847
8807
|
*/
|
|
8848
|
-
|
|
8808
|
+
toggleWebsiteCacheV1(username: string, domain: string, hostingV1CacheToggleCacheRequest: HostingV1CacheToggleCacheRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
8849
8809
|
}
|
|
8850
8810
|
/**
|
|
8851
8811
|
* HostingCronJobsApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.5.
|
|
7
|
+
* API Version: 1.5.1
|
|
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
|
|
@@ -4446,91 +4446,22 @@ const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
4446
4446
|
};
|
|
4447
4447
|
}),
|
|
4448
4448
|
/**
|
|
4449
|
-
* Turns
|
|
4450
|
-
* @summary
|
|
4449
|
+
* 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.
|
|
4450
|
+
* @summary Toggle cacheless mode
|
|
4451
4451
|
* @param {string} username
|
|
4452
4452
|
* @param {string} domain Domain name
|
|
4453
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
4453
4454
|
* @param {*} [options] Override http request option.
|
|
4454
4455
|
* @throws {RequiredError}
|
|
4455
4456
|
*/
|
|
4456
|
-
|
|
4457
|
+
toggleCachelessModeV1: (username_1, domain_1, hostingV1CacheToggleCachelessModeRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1CacheToggleCachelessModeRequest_1, ...args_1], void 0, function* (username, domain, hostingV1CacheToggleCachelessModeRequest, options = {}) {
|
|
4457
4458
|
// verify required parameter 'username' is not null or undefined
|
|
4458
|
-
(0, common_1.assertParamExists)('
|
|
4459
|
+
(0, common_1.assertParamExists)('toggleCachelessModeV1', 'username', username);
|
|
4459
4460
|
// verify required parameter 'domain' is not null or undefined
|
|
4460
|
-
(0, common_1.assertParamExists)('
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4465
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4466
|
-
let baseOptions;
|
|
4467
|
-
if (configuration) {
|
|
4468
|
-
baseOptions = configuration.baseOptions;
|
|
4469
|
-
}
|
|
4470
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4471
|
-
const localVarHeaderParameter = {};
|
|
4472
|
-
const localVarQueryParameter = {};
|
|
4473
|
-
// authentication apiToken required
|
|
4474
|
-
// http bearer authentication required
|
|
4475
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4476
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4477
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4478
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4479
|
-
return {
|
|
4480
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4481
|
-
options: localVarRequestOptions,
|
|
4482
|
-
};
|
|
4483
|
-
}),
|
|
4484
|
-
/**
|
|
4485
|
-
* Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
|
|
4486
|
-
* @summary Disable website cache
|
|
4487
|
-
* @param {string} username
|
|
4488
|
-
* @param {string} domain Domain name
|
|
4489
|
-
* @param {*} [options] Override http request option.
|
|
4490
|
-
* @throws {RequiredError}
|
|
4491
|
-
*/
|
|
4492
|
-
disableWebsiteCacheV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4493
|
-
// verify required parameter 'username' is not null or undefined
|
|
4494
|
-
(0, common_1.assertParamExists)('disableWebsiteCacheV1', 'username', username);
|
|
4495
|
-
// verify required parameter 'domain' is not null or undefined
|
|
4496
|
-
(0, common_1.assertParamExists)('disableWebsiteCacheV1', 'domain', domain);
|
|
4497
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable`
|
|
4498
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4499
|
-
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4500
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4501
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4502
|
-
let baseOptions;
|
|
4503
|
-
if (configuration) {
|
|
4504
|
-
baseOptions = configuration.baseOptions;
|
|
4505
|
-
}
|
|
4506
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4507
|
-
const localVarHeaderParameter = {};
|
|
4508
|
-
const localVarQueryParameter = {};
|
|
4509
|
-
// authentication apiToken required
|
|
4510
|
-
// http bearer authentication required
|
|
4511
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4512
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4513
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4514
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4515
|
-
return {
|
|
4516
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4517
|
-
options: localVarRequestOptions,
|
|
4518
|
-
};
|
|
4519
|
-
}),
|
|
4520
|
-
/**
|
|
4521
|
-
* Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
|
|
4522
|
-
* @summary Enable cacheless mode
|
|
4523
|
-
* @param {string} username
|
|
4524
|
-
* @param {string} domain Domain name
|
|
4525
|
-
* @param {*} [options] Override http request option.
|
|
4526
|
-
* @throws {RequiredError}
|
|
4527
|
-
*/
|
|
4528
|
-
enableCachelessModeV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4529
|
-
// verify required parameter 'username' is not null or undefined
|
|
4530
|
-
(0, common_1.assertParamExists)('enableCachelessModeV1', 'username', username);
|
|
4531
|
-
// verify required parameter 'domain' is not null or undefined
|
|
4532
|
-
(0, common_1.assertParamExists)('enableCachelessModeV1', 'domain', domain);
|
|
4533
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable`
|
|
4461
|
+
(0, common_1.assertParamExists)('toggleCachelessModeV1', 'domain', domain);
|
|
4462
|
+
// verify required parameter 'hostingV1CacheToggleCachelessModeRequest' is not null or undefined
|
|
4463
|
+
(0, common_1.assertParamExists)('toggleCachelessModeV1', 'hostingV1CacheToggleCachelessModeRequest', hostingV1CacheToggleCachelessModeRequest);
|
|
4464
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle`
|
|
4534
4465
|
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4535
4466
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4536
4467
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -4545,28 +4476,33 @@ const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
4545
4476
|
// authentication apiToken required
|
|
4546
4477
|
// http bearer authentication required
|
|
4547
4478
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4479
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4548
4480
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4549
4481
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4550
4482
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4483
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1CacheToggleCachelessModeRequest, localVarRequestOptions, configuration);
|
|
4551
4484
|
return {
|
|
4552
4485
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4553
4486
|
options: localVarRequestOptions,
|
|
4554
4487
|
};
|
|
4555
4488
|
}),
|
|
4556
4489
|
/**
|
|
4557
|
-
* Turns
|
|
4558
|
-
* @summary
|
|
4490
|
+
* 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.
|
|
4491
|
+
* @summary Toggle website cache
|
|
4559
4492
|
* @param {string} username
|
|
4560
4493
|
* @param {string} domain Domain name
|
|
4494
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
4561
4495
|
* @param {*} [options] Override http request option.
|
|
4562
4496
|
* @throws {RequiredError}
|
|
4563
4497
|
*/
|
|
4564
|
-
|
|
4498
|
+
toggleWebsiteCacheV1: (username_1, domain_1, hostingV1CacheToggleCacheRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1CacheToggleCacheRequest_1, ...args_1], void 0, function* (username, domain, hostingV1CacheToggleCacheRequest, options = {}) {
|
|
4565
4499
|
// verify required parameter 'username' is not null or undefined
|
|
4566
|
-
(0, common_1.assertParamExists)('
|
|
4500
|
+
(0, common_1.assertParamExists)('toggleWebsiteCacheV1', 'username', username);
|
|
4567
4501
|
// verify required parameter 'domain' is not null or undefined
|
|
4568
|
-
(0, common_1.assertParamExists)('
|
|
4569
|
-
|
|
4502
|
+
(0, common_1.assertParamExists)('toggleWebsiteCacheV1', 'domain', domain);
|
|
4503
|
+
// verify required parameter 'hostingV1CacheToggleCacheRequest' is not null or undefined
|
|
4504
|
+
(0, common_1.assertParamExists)('toggleWebsiteCacheV1', 'hostingV1CacheToggleCacheRequest', hostingV1CacheToggleCacheRequest);
|
|
4505
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle`
|
|
4570
4506
|
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4571
4507
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4572
4508
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -4581,9 +4517,11 @@ const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
4581
4517
|
// authentication apiToken required
|
|
4582
4518
|
// http bearer authentication required
|
|
4583
4519
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4520
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4584
4521
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4585
4522
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4586
4523
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4524
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1CacheToggleCacheRequest, localVarRequestOptions, configuration);
|
|
4587
4525
|
return {
|
|
4588
4526
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4589
4527
|
options: localVarRequestOptions,
|
|
@@ -4617,66 +4555,36 @@ const HostingCacheApiFp = function (configuration) {
|
|
|
4617
4555
|
});
|
|
4618
4556
|
},
|
|
4619
4557
|
/**
|
|
4620
|
-
* Turns
|
|
4621
|
-
* @summary
|
|
4558
|
+
* 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.
|
|
4559
|
+
* @summary Toggle cacheless mode
|
|
4622
4560
|
* @param {string} username
|
|
4623
4561
|
* @param {string} domain Domain name
|
|
4562
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
4624
4563
|
* @param {*} [options] Override http request option.
|
|
4625
4564
|
* @throws {RequiredError}
|
|
4626
4565
|
*/
|
|
4627
|
-
|
|
4566
|
+
toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options) {
|
|
4628
4567
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4629
4568
|
var _a, _b;
|
|
4630
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4631
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.
|
|
4569
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options);
|
|
4570
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.toggleCachelessModeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4632
4571
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4633
4572
|
});
|
|
4634
4573
|
},
|
|
4635
4574
|
/**
|
|
4636
|
-
* Turns
|
|
4637
|
-
* @summary
|
|
4575
|
+
* 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.
|
|
4576
|
+
* @summary Toggle website cache
|
|
4638
4577
|
* @param {string} username
|
|
4639
4578
|
* @param {string} domain Domain name
|
|
4579
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
4640
4580
|
* @param {*} [options] Override http request option.
|
|
4641
4581
|
* @throws {RequiredError}
|
|
4642
4582
|
*/
|
|
4643
|
-
|
|
4583
|
+
toggleWebsiteCacheV1(username, domain, hostingV1CacheToggleCacheRequest, options) {
|
|
4644
4584
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4645
4585
|
var _a, _b;
|
|
4646
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4647
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.
|
|
4648
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4649
|
-
});
|
|
4650
|
-
},
|
|
4651
|
-
/**
|
|
4652
|
-
* Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
|
|
4653
|
-
* @summary Enable cacheless mode
|
|
4654
|
-
* @param {string} username
|
|
4655
|
-
* @param {string} domain Domain name
|
|
4656
|
-
* @param {*} [options] Override http request option.
|
|
4657
|
-
* @throws {RequiredError}
|
|
4658
|
-
*/
|
|
4659
|
-
enableCachelessModeV1(username, domain, options) {
|
|
4660
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4661
|
-
var _a, _b;
|
|
4662
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableCachelessModeV1(username, domain, options);
|
|
4663
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.enableCachelessModeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4664
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4665
|
-
});
|
|
4666
|
-
},
|
|
4667
|
-
/**
|
|
4668
|
-
* Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
|
|
4669
|
-
* @summary Enable website cache
|
|
4670
|
-
* @param {string} username
|
|
4671
|
-
* @param {string} domain Domain name
|
|
4672
|
-
* @param {*} [options] Override http request option.
|
|
4673
|
-
* @throws {RequiredError}
|
|
4674
|
-
*/
|
|
4675
|
-
enableWebsiteCacheV1(username, domain, options) {
|
|
4676
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4677
|
-
var _a, _b;
|
|
4678
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableWebsiteCacheV1(username, domain, options);
|
|
4679
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.enableWebsiteCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleWebsiteCacheV1(username, domain, hostingV1CacheToggleCacheRequest, options);
|
|
4587
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.toggleWebsiteCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4680
4588
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4681
4589
|
});
|
|
4682
4590
|
},
|
|
@@ -4703,48 +4611,28 @@ const HostingCacheApiFactory = function (configuration, basePath, axios) {
|
|
|
4703
4611
|
return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
|
|
4704
4612
|
},
|
|
4705
4613
|
/**
|
|
4706
|
-
* Turns
|
|
4707
|
-
* @summary
|
|
4614
|
+
* 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.
|
|
4615
|
+
* @summary Toggle cacheless mode
|
|
4708
4616
|
* @param {string} username
|
|
4709
4617
|
* @param {string} domain Domain name
|
|
4618
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
4710
4619
|
* @param {*} [options] Override http request option.
|
|
4711
4620
|
* @throws {RequiredError}
|
|
4712
4621
|
*/
|
|
4713
|
-
|
|
4714
|
-
return localVarFp.
|
|
4622
|
+
toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options) {
|
|
4623
|
+
return localVarFp.toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(axios, basePath));
|
|
4715
4624
|
},
|
|
4716
4625
|
/**
|
|
4717
|
-
* Turns
|
|
4718
|
-
* @summary
|
|
4626
|
+
* 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.
|
|
4627
|
+
* @summary Toggle website cache
|
|
4719
4628
|
* @param {string} username
|
|
4720
4629
|
* @param {string} domain Domain name
|
|
4630
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
4721
4631
|
* @param {*} [options] Override http request option.
|
|
4722
4632
|
* @throws {RequiredError}
|
|
4723
4633
|
*/
|
|
4724
|
-
|
|
4725
|
-
return localVarFp.
|
|
4726
|
-
},
|
|
4727
|
-
/**
|
|
4728
|
-
* Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
|
|
4729
|
-
* @summary Enable cacheless mode
|
|
4730
|
-
* @param {string} username
|
|
4731
|
-
* @param {string} domain Domain name
|
|
4732
|
-
* @param {*} [options] Override http request option.
|
|
4733
|
-
* @throws {RequiredError}
|
|
4734
|
-
*/
|
|
4735
|
-
enableCachelessModeV1(username, domain, options) {
|
|
4736
|
-
return localVarFp.enableCachelessModeV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4737
|
-
},
|
|
4738
|
-
/**
|
|
4739
|
-
* Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
|
|
4740
|
-
* @summary Enable website cache
|
|
4741
|
-
* @param {string} username
|
|
4742
|
-
* @param {string} domain Domain name
|
|
4743
|
-
* @param {*} [options] Override http request option.
|
|
4744
|
-
* @throws {RequiredError}
|
|
4745
|
-
*/
|
|
4746
|
-
enableWebsiteCacheV1(username, domain, options) {
|
|
4747
|
-
return localVarFp.enableWebsiteCacheV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4634
|
+
toggleWebsiteCacheV1(username, domain, hostingV1CacheToggleCacheRequest, options) {
|
|
4635
|
+
return localVarFp.toggleWebsiteCacheV1(username, domain, hostingV1CacheToggleCacheRequest, options).then((request) => request(axios, basePath));
|
|
4748
4636
|
},
|
|
4749
4637
|
};
|
|
4750
4638
|
};
|
|
@@ -4770,52 +4658,30 @@ class HostingCacheApi extends base_1.BaseAPI {
|
|
|
4770
4658
|
return (0, exports.HostingCacheApiFp)(this.configuration).clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(this.axios, this.basePath));
|
|
4771
4659
|
}
|
|
4772
4660
|
/**
|
|
4773
|
-
* Turns
|
|
4774
|
-
* @summary
|
|
4775
|
-
* @param {string} username
|
|
4776
|
-
* @param {string} domain Domain name
|
|
4777
|
-
* @param {*} [options] Override http request option.
|
|
4778
|
-
* @throws {RequiredError}
|
|
4779
|
-
* @memberof HostingCacheApi
|
|
4780
|
-
*/
|
|
4781
|
-
disableCachelessModeV1(username, domain, options) {
|
|
4782
|
-
return (0, exports.HostingCacheApiFp)(this.configuration).disableCachelessModeV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4783
|
-
}
|
|
4784
|
-
/**
|
|
4785
|
-
* Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
|
|
4786
|
-
* @summary Disable website cache
|
|
4787
|
-
* @param {string} username
|
|
4788
|
-
* @param {string} domain Domain name
|
|
4789
|
-
* @param {*} [options] Override http request option.
|
|
4790
|
-
* @throws {RequiredError}
|
|
4791
|
-
* @memberof HostingCacheApi
|
|
4792
|
-
*/
|
|
4793
|
-
disableWebsiteCacheV1(username, domain, options) {
|
|
4794
|
-
return (0, exports.HostingCacheApiFp)(this.configuration).disableWebsiteCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4795
|
-
}
|
|
4796
|
-
/**
|
|
4797
|
-
* Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
|
|
4798
|
-
* @summary Enable cacheless mode
|
|
4661
|
+
* 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.
|
|
4662
|
+
* @summary Toggle cacheless mode
|
|
4799
4663
|
* @param {string} username
|
|
4800
4664
|
* @param {string} domain Domain name
|
|
4665
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
4801
4666
|
* @param {*} [options] Override http request option.
|
|
4802
4667
|
* @throws {RequiredError}
|
|
4803
4668
|
* @memberof HostingCacheApi
|
|
4804
4669
|
*/
|
|
4805
|
-
|
|
4806
|
-
return (0, exports.HostingCacheApiFp)(this.configuration).
|
|
4670
|
+
toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options) {
|
|
4671
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4807
4672
|
}
|
|
4808
4673
|
/**
|
|
4809
|
-
* Turns
|
|
4810
|
-
* @summary
|
|
4674
|
+
* 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.
|
|
4675
|
+
* @summary Toggle website cache
|
|
4811
4676
|
* @param {string} username
|
|
4812
4677
|
* @param {string} domain Domain name
|
|
4678
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
4813
4679
|
* @param {*} [options] Override http request option.
|
|
4814
4680
|
* @throws {RequiredError}
|
|
4815
4681
|
* @memberof HostingCacheApi
|
|
4816
4682
|
*/
|
|
4817
|
-
|
|
4818
|
-
return (0, exports.HostingCacheApiFp)(this.configuration).
|
|
4683
|
+
toggleWebsiteCacheV1(username, domain, hostingV1CacheToggleCacheRequest, options) {
|
|
4684
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).toggleWebsiteCacheV1(username, domain, hostingV1CacheToggleCacheRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4819
4685
|
}
|
|
4820
4686
|
}
|
|
4821
4687
|
exports.HostingCacheApi = HostingCacheApi;
|