hostinger-api-sdk 1.4.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 +160 -195
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +96 -99
- package/dist/api.js +130 -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 +96 -99
- package/dist/esm/api.js +130 -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/HostingNodeJSApi.md +57 -0
- 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.
|
|
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
|
|
8653
|
-
* @param {string} username
|
|
8654
|
-
* @param {string} domain Domain name
|
|
8655
|
-
* @param {*} [options] Override http request option.
|
|
8656
|
-
* @throws {RequiredError}
|
|
8657
|
-
*/
|
|
8658
|
-
disableCachelessModeV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8659
|
-
/**
|
|
8660
|
-
* 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.
|
|
8661
|
-
* @summary Disable website cache
|
|
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
|
|
8662
8679
|
* @param {string} username
|
|
8663
8680
|
* @param {string} domain Domain name
|
|
8681
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
8664
8682
|
* @param {*} [options] Override http request option.
|
|
8665
8683
|
* @throws {RequiredError}
|
|
8666
8684
|
*/
|
|
8667
|
-
|
|
8685
|
+
toggleCachelessModeV1: (username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8668
8686
|
/**
|
|
8669
|
-
*
|
|
8670
|
-
* @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
|
|
8671
8689
|
* @param {string} username
|
|
8672
8690
|
* @param {string} domain Domain name
|
|
8691
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
8673
8692
|
* @param {*} [options] Override http request option.
|
|
8674
8693
|
* @throws {RequiredError}
|
|
8675
8694
|
*/
|
|
8676
|
-
|
|
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
|
|
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
|
|
8757
8751
|
* @param {string} username
|
|
8758
8752
|
* @param {string} domain Domain name
|
|
8753
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
8759
8754
|
* @param {*} [options] Override http request option.
|
|
8760
8755
|
* @throws {RequiredError}
|
|
8761
8756
|
*/
|
|
8762
|
-
|
|
8757
|
+
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
8763
8758
|
/**
|
|
8764
|
-
* Turns
|
|
8765
|
-
* @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
|
|
8766
8761
|
* @param {string} username
|
|
8767
8762
|
* @param {string} domain Domain name
|
|
8763
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
8768
8764
|
* @param {*} [options] Override http request option.
|
|
8769
8765
|
* @throws {RequiredError}
|
|
8770
8766
|
*/
|
|
8771
|
-
|
|
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
|
|
8775
|
-
* @param {string} username
|
|
8776
|
-
* @param {string} domain Domain name
|
|
8777
|
-
* @param {*} [options] Override http request option.
|
|
8778
|
-
* @throws {RequiredError}
|
|
8779
|
-
*/
|
|
8780
|
-
enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
8781
|
-
/**
|
|
8782
|
-
* 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.
|
|
8783
|
-
* @summary Enable website cache
|
|
8784
|
-
* @param {string} username
|
|
8785
|
-
* @param {string} domain Domain name
|
|
8786
|
-
* @param {*} [options] Override http request option.
|
|
8787
|
-
* @throws {RequiredError}
|
|
8788
|
-
*/
|
|
8789
|
-
enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
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
|
|
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
|
|
8812
8790
|
* @param {string} username
|
|
8813
8791
|
* @param {string} domain Domain name
|
|
8792
|
+
* @param {HostingV1CacheToggleCachelessModeRequest} hostingV1CacheToggleCachelessModeRequest
|
|
8814
8793
|
* @param {*} [options] Override http request option.
|
|
8815
8794
|
* @throws {RequiredError}
|
|
8816
8795
|
* @memberof HostingCacheApi
|
|
8817
8796
|
*/
|
|
8818
|
-
|
|
8797
|
+
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
8819
8798
|
/**
|
|
8820
|
-
* Turns
|
|
8821
|
-
* @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
|
|
8822
8801
|
* @param {string} username
|
|
8823
8802
|
* @param {string} domain Domain name
|
|
8803
|
+
* @param {HostingV1CacheToggleCacheRequest} hostingV1CacheToggleCacheRequest
|
|
8824
8804
|
* @param {*} [options] Override http request option.
|
|
8825
8805
|
* @throws {RequiredError}
|
|
8826
8806
|
* @memberof HostingCacheApi
|
|
8827
8807
|
*/
|
|
8828
|
-
|
|
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
|
|
8832
|
-
* @param {string} username
|
|
8833
|
-
* @param {string} domain Domain name
|
|
8834
|
-
* @param {*} [options] Override http request option.
|
|
8835
|
-
* @throws {RequiredError}
|
|
8836
|
-
* @memberof HostingCacheApi
|
|
8837
|
-
*/
|
|
8838
|
-
enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
8839
|
-
/**
|
|
8840
|
-
* 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.
|
|
8841
|
-
* @summary Enable website cache
|
|
8842
|
-
* @param {string} username
|
|
8843
|
-
* @param {string} domain Domain name
|
|
8844
|
-
* @param {*} [options] Override http request option.
|
|
8845
|
-
* @throws {RequiredError}
|
|
8846
|
-
* @memberof HostingCacheApi
|
|
8847
|
-
*/
|
|
8848
|
-
enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
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
|
|
@@ -9827,6 +9787,15 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
|
|
|
9827
9787
|
* @throws {RequiredError}
|
|
9828
9788
|
*/
|
|
9829
9789
|
listNodeJSBuildsV1: (username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9790
|
+
/**
|
|
9791
|
+
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
9792
|
+
* @summary Restart Node.js application
|
|
9793
|
+
* @param {string} username
|
|
9794
|
+
* @param {string} domain Domain name
|
|
9795
|
+
* @param {*} [options] Override http request option.
|
|
9796
|
+
* @throws {RequiredError}
|
|
9797
|
+
*/
|
|
9798
|
+
restartNodeJsApplicationV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9830
9799
|
};
|
|
9831
9800
|
/**
|
|
9832
9801
|
* HostingNodeJSApi - functional programming interface
|
|
@@ -9866,6 +9835,15 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
|
|
|
9866
9835
|
* @throws {RequiredError}
|
|
9867
9836
|
*/
|
|
9868
9837
|
listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingListNodeJSBuildsV1200Response>>;
|
|
9838
|
+
/**
|
|
9839
|
+
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
9840
|
+
* @summary Restart Node.js application
|
|
9841
|
+
* @param {string} username
|
|
9842
|
+
* @param {string} domain Domain name
|
|
9843
|
+
* @param {*} [options] Override http request option.
|
|
9844
|
+
* @throws {RequiredError}
|
|
9845
|
+
*/
|
|
9846
|
+
restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
9869
9847
|
};
|
|
9870
9848
|
/**
|
|
9871
9849
|
* HostingNodeJSApi - factory interface
|
|
@@ -9905,6 +9883,15 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
|
|
|
9905
9883
|
* @throws {RequiredError}
|
|
9906
9884
|
*/
|
|
9907
9885
|
listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListNodeJSBuildsV1200Response>;
|
|
9886
|
+
/**
|
|
9887
|
+
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
9888
|
+
* @summary Restart Node.js application
|
|
9889
|
+
* @param {string} username
|
|
9890
|
+
* @param {string} domain Domain name
|
|
9891
|
+
* @param {*} [options] Override http request option.
|
|
9892
|
+
* @throws {RequiredError}
|
|
9893
|
+
*/
|
|
9894
|
+
restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
9908
9895
|
};
|
|
9909
9896
|
/**
|
|
9910
9897
|
* HostingNodeJSApi - object-oriented interface
|
|
@@ -9949,6 +9936,16 @@ export declare class HostingNodeJSApi extends BaseAPI {
|
|
|
9949
9936
|
* @memberof HostingNodeJSApi
|
|
9950
9937
|
*/
|
|
9951
9938
|
listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingListNodeJSBuildsV1200Response, any, {}>>;
|
|
9939
|
+
/**
|
|
9940
|
+
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
9941
|
+
* @summary Restart Node.js application
|
|
9942
|
+
* @param {string} username
|
|
9943
|
+
* @param {string} domain Domain name
|
|
9944
|
+
* @param {*} [options] Override http request option.
|
|
9945
|
+
* @throws {RequiredError}
|
|
9946
|
+
* @memberof HostingNodeJSApi
|
|
9947
|
+
*/
|
|
9948
|
+
restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
9952
9949
|
}
|
|
9953
9950
|
/**
|
|
9954
9951
|
* @export
|