hostinger-api-sdk 1.39.0 → 1.40.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 +518 -116
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +440 -66
- package/dist/api.js +199 -121
- 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 +440 -66
- package/dist/esm/api.js +189 -111
- 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/AgencyHostingListAgencyPlanWebsitesV1200Response.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuilderWebsiteDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesH5gWebsiteDetailsResource.md +46 -0
- package/docs/AgencyHostingV1WebsitesPlanResource.md +25 -0
- package/docs/AgencyHostingV1WebsitesU4sWebsiteDetailsResource.md +36 -0
- package/docs/AgencyHostingV1WebsitesWebsiteListItemResource.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteListItemResourceDetails.md +59 -0
- package/docs/AgencyHostingWebsitesApi.md +69 -0
- package/docs/HostingDatabasesApi.md +2 -2
- package/docs/HostingNodeJSApi.md +0 -62
- package/docs/HostingWebsitesApi.md +7 -4
- package/docs/WordPressInstallationsApi.md +2 -2
- package/docs/WordPressPluginsApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.42.1
|
|
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
|
|
@@ -40,6 +40,27 @@ export const AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = {
|
|
|
40
40
|
Running: 'running',
|
|
41
41
|
Completed: 'completed'
|
|
42
42
|
};
|
|
43
|
+
export const AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = {
|
|
44
|
+
Wordpress: 'wordpress',
|
|
45
|
+
Builder: 'builder',
|
|
46
|
+
Horizons: 'horizons',
|
|
47
|
+
Nodejs: 'nodejs',
|
|
48
|
+
U4s: 'u4s',
|
|
49
|
+
Other: 'other'
|
|
50
|
+
};
|
|
51
|
+
export const AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = {
|
|
52
|
+
Active: 'active',
|
|
53
|
+
Suspended: 'suspended'
|
|
54
|
+
};
|
|
55
|
+
export const AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = {
|
|
56
|
+
U4s: 'u4s',
|
|
57
|
+
Horizons: 'horizons'
|
|
58
|
+
};
|
|
59
|
+
export const AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = {
|
|
60
|
+
H5g: 'h5g',
|
|
61
|
+
Builder: 'builder',
|
|
62
|
+
U4s: 'u4s'
|
|
63
|
+
};
|
|
43
64
|
export const AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = {
|
|
44
65
|
Running: 'running',
|
|
45
66
|
Completed: 'completed',
|
|
@@ -3444,6 +3465,58 @@ export const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration
|
|
|
3444
3465
|
options: localVarRequestOptions,
|
|
3445
3466
|
};
|
|
3446
3467
|
}),
|
|
3468
|
+
/**
|
|
3469
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. The response shape differs per platform — see the `platform` field on each item. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with `order_ids`, `states`, or `domain` for more targeted results.
|
|
3470
|
+
* @summary List Agency Plan websites
|
|
3471
|
+
* @param {number} [page] Page number
|
|
3472
|
+
* @param {number} [perPage] Number of items per page
|
|
3473
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3474
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3475
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3476
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3477
|
+
* @param {*} [options] Override http request option.
|
|
3478
|
+
* @throws {RequiredError}
|
|
3479
|
+
*/
|
|
3480
|
+
listAgencyPlanWebsitesV1: (page_1, perPage_1, orderIds_1, states_1, websiteTypes_1, domain_1, ...args_1) => __awaiter(this, [page_1, perPage_1, orderIds_1, states_1, websiteTypes_1, domain_1, ...args_1], void 0, function* (page, perPage, orderIds, states, websiteTypes, domain, options = {}) {
|
|
3481
|
+
const localVarPath = `/api/agency-hosting/v1/websites`;
|
|
3482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3483
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3484
|
+
let baseOptions;
|
|
3485
|
+
if (configuration) {
|
|
3486
|
+
baseOptions = configuration.baseOptions;
|
|
3487
|
+
}
|
|
3488
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3489
|
+
const localVarHeaderParameter = {};
|
|
3490
|
+
const localVarQueryParameter = {};
|
|
3491
|
+
// authentication apiToken required
|
|
3492
|
+
// http bearer authentication required
|
|
3493
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3494
|
+
if (page !== undefined) {
|
|
3495
|
+
localVarQueryParameter['page'] = page;
|
|
3496
|
+
}
|
|
3497
|
+
if (perPage !== undefined) {
|
|
3498
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
3499
|
+
}
|
|
3500
|
+
if (orderIds) {
|
|
3501
|
+
localVarQueryParameter['order_ids'] = orderIds.join(COLLECTION_FORMATS.csv);
|
|
3502
|
+
}
|
|
3503
|
+
if (states) {
|
|
3504
|
+
localVarQueryParameter['states'] = states.join(COLLECTION_FORMATS.csv);
|
|
3505
|
+
}
|
|
3506
|
+
if (websiteTypes) {
|
|
3507
|
+
localVarQueryParameter['website_types'] = websiteTypes.join(COLLECTION_FORMATS.csv);
|
|
3508
|
+
}
|
|
3509
|
+
if (domain !== undefined) {
|
|
3510
|
+
localVarQueryParameter['domain'] = domain;
|
|
3511
|
+
}
|
|
3512
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3514
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3515
|
+
return {
|
|
3516
|
+
url: toPathString(localVarUrlObj),
|
|
3517
|
+
options: localVarRequestOptions,
|
|
3518
|
+
};
|
|
3519
|
+
}),
|
|
3447
3520
|
/**
|
|
3448
3521
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3449
3522
|
* @summary List website processes
|
|
@@ -3531,6 +3604,26 @@ export const AgencyHostingWebsitesApiFp = function (configuration) {
|
|
|
3531
3604
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3532
3605
|
});
|
|
3533
3606
|
},
|
|
3607
|
+
/**
|
|
3608
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. The response shape differs per platform — see the `platform` field on each item. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with `order_ids`, `states`, or `domain` for more targeted results.
|
|
3609
|
+
* @summary List Agency Plan websites
|
|
3610
|
+
* @param {number} [page] Page number
|
|
3611
|
+
* @param {number} [perPage] Number of items per page
|
|
3612
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3613
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3614
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3615
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options) {
|
|
3620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3621
|
+
var _a, _b;
|
|
3622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options);
|
|
3623
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingWebsitesApi.listAgencyPlanWebsitesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3624
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3625
|
+
});
|
|
3626
|
+
},
|
|
3534
3627
|
/**
|
|
3535
3628
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3536
3629
|
* @summary List website processes
|
|
@@ -3586,6 +3679,21 @@ export const AgencyHostingWebsitesApiFactory = function (configuration, basePath
|
|
|
3586
3679
|
getWebsiteDetailsV1(websiteUid, options) {
|
|
3587
3680
|
return localVarFp.getWebsiteDetailsV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
3588
3681
|
},
|
|
3682
|
+
/**
|
|
3683
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. The response shape differs per platform — see the `platform` field on each item. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with `order_ids`, `states`, or `domain` for more targeted results.
|
|
3684
|
+
* @summary List Agency Plan websites
|
|
3685
|
+
* @param {number} [page] Page number
|
|
3686
|
+
* @param {number} [perPage] Number of items per page
|
|
3687
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3688
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3689
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3690
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3691
|
+
* @param {*} [options] Override http request option.
|
|
3692
|
+
* @throws {RequiredError}
|
|
3693
|
+
*/
|
|
3694
|
+
listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options) {
|
|
3695
|
+
return localVarFp.listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options).then((request) => request(axios, basePath));
|
|
3696
|
+
},
|
|
3589
3697
|
/**
|
|
3590
3698
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3591
3699
|
* @summary List website processes
|
|
@@ -3639,6 +3747,22 @@ export class AgencyHostingWebsitesApi extends BaseAPI {
|
|
|
3639
3747
|
getWebsiteDetailsV1(websiteUid, options) {
|
|
3640
3748
|
return AgencyHostingWebsitesApiFp(this.configuration).getWebsiteDetailsV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
3641
3749
|
}
|
|
3750
|
+
/**
|
|
3751
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. The response shape differs per platform — see the `platform` field on each item. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with `order_ids`, `states`, or `domain` for more targeted results.
|
|
3752
|
+
* @summary List Agency Plan websites
|
|
3753
|
+
* @param {number} [page] Page number
|
|
3754
|
+
* @param {number} [perPage] Number of items per page
|
|
3755
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3756
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3757
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3758
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3759
|
+
* @param {*} [options] Override http request option.
|
|
3760
|
+
* @throws {RequiredError}
|
|
3761
|
+
* @memberof AgencyHostingWebsitesApi
|
|
3762
|
+
*/
|
|
3763
|
+
listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options) {
|
|
3764
|
+
return AgencyHostingWebsitesApiFp(this.configuration).listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3765
|
+
}
|
|
3642
3766
|
/**
|
|
3643
3767
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3644
3768
|
* @summary List website processes
|
|
@@ -3651,6 +3775,26 @@ export class AgencyHostingWebsitesApi extends BaseAPI {
|
|
|
3651
3775
|
return AgencyHostingWebsitesApiFp(this.configuration).listWebsiteProcessesV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
3652
3776
|
}
|
|
3653
3777
|
}
|
|
3778
|
+
/**
|
|
3779
|
+
* @export
|
|
3780
|
+
*/
|
|
3781
|
+
export const ListAgencyPlanWebsitesV1StatesEnum = {
|
|
3782
|
+
Active: 'active',
|
|
3783
|
+
Locked: 'locked',
|
|
3784
|
+
Suspended: 'suspended',
|
|
3785
|
+
Deleting: 'deleting',
|
|
3786
|
+
Deleted: 'deleted'
|
|
3787
|
+
};
|
|
3788
|
+
/**
|
|
3789
|
+
* @export
|
|
3790
|
+
*/
|
|
3791
|
+
export const ListAgencyPlanWebsitesV1WebsiteTypesEnum = {
|
|
3792
|
+
Wordpress: 'wordpress',
|
|
3793
|
+
Builder: 'builder',
|
|
3794
|
+
Horizons: 'horizons',
|
|
3795
|
+
Nodejs: 'nodejs',
|
|
3796
|
+
Other: 'other'
|
|
3797
|
+
};
|
|
3654
3798
|
/**
|
|
3655
3799
|
* AgencyHostingWordPressApi - axios parameter creator
|
|
3656
3800
|
* @export
|
|
@@ -10543,7 +10687,7 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
10543
10687
|
* @param {string} username
|
|
10544
10688
|
* @param {number} [page] Page number
|
|
10545
10689
|
* @param {number} [perPage] Number of items per page
|
|
10546
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
10690
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
10547
10691
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
10548
10692
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
10549
10693
|
* @param {*} [options] Override http request option.
|
|
@@ -10775,7 +10919,7 @@ export const HostingDatabasesApiFp = function (configuration) {
|
|
|
10775
10919
|
* @param {string} username
|
|
10776
10920
|
* @param {number} [page] Page number
|
|
10777
10921
|
* @param {number} [perPage] Number of items per page
|
|
10778
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
10922
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
10779
10923
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
10780
10924
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
10781
10925
|
* @param {*} [options] Override http request option.
|
|
@@ -10905,7 +11049,7 @@ export const HostingDatabasesApiFactory = function (configuration, basePath, axi
|
|
|
10905
11049
|
* @param {string} username
|
|
10906
11050
|
* @param {number} [page] Page number
|
|
10907
11051
|
* @param {number} [perPage] Number of items per page
|
|
10908
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
11052
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
10909
11053
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
10910
11054
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
10911
11055
|
* @param {*} [options] Override http request option.
|
|
@@ -11026,7 +11170,7 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
11026
11170
|
* @param {string} username
|
|
11027
11171
|
* @param {number} [page] Page number
|
|
11028
11172
|
* @param {number} [perPage] Number of items per page
|
|
11029
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
11173
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
11030
11174
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
11031
11175
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
11032
11176
|
* @param {*} [options] Override http request option.
|
|
@@ -12135,47 +12279,6 @@ export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
|
12135
12279
|
*/
|
|
12136
12280
|
export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
12137
12281
|
return {
|
|
12138
|
-
/**
|
|
12139
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12140
|
-
* @summary Create NodeJS build from archive
|
|
12141
|
-
* @param {string} username
|
|
12142
|
-
* @param {string} domain Domain name
|
|
12143
|
-
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
12144
|
-
* @param {*} [options] Override http request option.
|
|
12145
|
-
* @throws {RequiredError}
|
|
12146
|
-
*/
|
|
12147
|
-
createNodeJSBuildFromArchiveV1: (username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsCreateFromArchiveRequest, options = {}) {
|
|
12148
|
-
// verify required parameter 'username' is not null or undefined
|
|
12149
|
-
assertParamExists('createNodeJSBuildFromArchiveV1', 'username', username);
|
|
12150
|
-
// verify required parameter 'domain' is not null or undefined
|
|
12151
|
-
assertParamExists('createNodeJSBuildFromArchiveV1', 'domain', domain);
|
|
12152
|
-
// verify required parameter 'hostingV1NodeJsCreateFromArchiveRequest' is not null or undefined
|
|
12153
|
-
assertParamExists('createNodeJSBuildFromArchiveV1', 'hostingV1NodeJsCreateFromArchiveRequest', hostingV1NodeJsCreateFromArchiveRequest);
|
|
12154
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive`
|
|
12155
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12156
|
-
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12157
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12158
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12159
|
-
let baseOptions;
|
|
12160
|
-
if (configuration) {
|
|
12161
|
-
baseOptions = configuration.baseOptions;
|
|
12162
|
-
}
|
|
12163
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12164
|
-
const localVarHeaderParameter = {};
|
|
12165
|
-
const localVarQueryParameter = {};
|
|
12166
|
-
// authentication apiToken required
|
|
12167
|
-
// http bearer authentication required
|
|
12168
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12169
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12170
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12171
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12172
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12173
|
-
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1NodeJsCreateFromArchiveRequest, localVarRequestOptions, configuration);
|
|
12174
|
-
return {
|
|
12175
|
-
url: toPathString(localVarUrlObj),
|
|
12176
|
-
options: localVarRequestOptions,
|
|
12177
|
-
};
|
|
12178
|
-
}),
|
|
12179
12282
|
/**
|
|
12180
12283
|
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
12181
12284
|
* @summary Get NodeJS build logs
|
|
@@ -12477,23 +12580,6 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
12477
12580
|
export const HostingNodeJSApiFp = function (configuration) {
|
|
12478
12581
|
const localVarAxiosParamCreator = HostingNodeJSApiAxiosParamCreator(configuration);
|
|
12479
12582
|
return {
|
|
12480
|
-
/**
|
|
12481
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12482
|
-
* @summary Create NodeJS build from archive
|
|
12483
|
-
* @param {string} username
|
|
12484
|
-
* @param {string} domain Domain name
|
|
12485
|
-
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
12486
|
-
* @param {*} [options] Override http request option.
|
|
12487
|
-
* @throws {RequiredError}
|
|
12488
|
-
*/
|
|
12489
|
-
createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
|
|
12490
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12491
|
-
var _a, _b;
|
|
12492
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options);
|
|
12493
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.createNodeJSBuildFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12494
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12495
|
-
});
|
|
12496
|
-
},
|
|
12497
12583
|
/**
|
|
12498
12584
|
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
12499
12585
|
* @summary Get NodeJS build logs
|
|
@@ -12624,18 +12710,6 @@ export const HostingNodeJSApiFp = function (configuration) {
|
|
|
12624
12710
|
export const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
12625
12711
|
const localVarFp = HostingNodeJSApiFp(configuration);
|
|
12626
12712
|
return {
|
|
12627
|
-
/**
|
|
12628
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12629
|
-
* @summary Create NodeJS build from archive
|
|
12630
|
-
* @param {string} username
|
|
12631
|
-
* @param {string} domain Domain name
|
|
12632
|
-
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
12633
|
-
* @param {*} [options] Override http request option.
|
|
12634
|
-
* @throws {RequiredError}
|
|
12635
|
-
*/
|
|
12636
|
-
createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
|
|
12637
|
-
return localVarFp.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(axios, basePath));
|
|
12638
|
-
},
|
|
12639
12713
|
/**
|
|
12640
12714
|
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
12641
12715
|
* @summary Get NodeJS build logs
|
|
@@ -12731,19 +12805,6 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
|
|
|
12731
12805
|
* @extends {BaseAPI}
|
|
12732
12806
|
*/
|
|
12733
12807
|
export class HostingNodeJSApi extends BaseAPI {
|
|
12734
|
-
/**
|
|
12735
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12736
|
-
* @summary Create NodeJS build from archive
|
|
12737
|
-
* @param {string} username
|
|
12738
|
-
* @param {string} domain Domain name
|
|
12739
|
-
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
12740
|
-
* @param {*} [options] Override http request option.
|
|
12741
|
-
* @throws {RequiredError}
|
|
12742
|
-
* @memberof HostingNodeJSApi
|
|
12743
|
-
*/
|
|
12744
|
-
createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
|
|
12745
|
-
return HostingNodeJSApiFp(this.configuration).createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12746
|
-
}
|
|
12747
12808
|
/**
|
|
12748
12809
|
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
12749
12810
|
* @summary Get NodeJS build logs
|
|
@@ -13900,18 +13961,19 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
13900
13961
|
};
|
|
13901
13962
|
}),
|
|
13902
13963
|
/**
|
|
13903
|
-
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter
|
|
13964
|
+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with the other available query parameters to filter by username, order ID, enabled status, or domain name for more targeted results.
|
|
13904
13965
|
* @summary List websites
|
|
13905
13966
|
* @param {number} [page] Page number
|
|
13906
13967
|
* @param {number} [perPage] Number of items per page
|
|
13907
13968
|
* @param {string | null} [username] Filter by specific username
|
|
13908
13969
|
* @param {number | null} [orderId] Order ID
|
|
13909
13970
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
13910
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
13971
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
13972
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
13911
13973
|
* @param {*} [options] Override http request option.
|
|
13912
13974
|
* @throws {RequiredError}
|
|
13913
13975
|
*/
|
|
13914
|
-
listWebsitesV1: (page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1) => __awaiter(this, [page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1], void 0, function* (page, perPage, username, orderId, isEnabled, domain, options = {}) {
|
|
13976
|
+
listWebsitesV1: (page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, websiteTypes_1, ...args_1) => __awaiter(this, [page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, websiteTypes_1, ...args_1], void 0, function* (page, perPage, username, orderId, isEnabled, domain, websiteTypes, options = {}) {
|
|
13915
13977
|
const localVarPath = `/api/hosting/v1/websites`;
|
|
13916
13978
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13917
13979
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13943,6 +14005,9 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
13943
14005
|
if (domain !== undefined) {
|
|
13944
14006
|
localVarQueryParameter['domain'] = domain;
|
|
13945
14007
|
}
|
|
14008
|
+
if (websiteTypes) {
|
|
14009
|
+
localVarQueryParameter['website_types'] = websiteTypes.join(COLLECTION_FORMATS.csv);
|
|
14010
|
+
}
|
|
13946
14011
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13947
14012
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13948
14013
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -14008,21 +14073,22 @@ export const HostingWebsitesApiFp = function (configuration) {
|
|
|
14008
14073
|
});
|
|
14009
14074
|
},
|
|
14010
14075
|
/**
|
|
14011
|
-
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter
|
|
14076
|
+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with the other available query parameters to filter by username, order ID, enabled status, or domain name for more targeted results.
|
|
14012
14077
|
* @summary List websites
|
|
14013
14078
|
* @param {number} [page] Page number
|
|
14014
14079
|
* @param {number} [perPage] Number of items per page
|
|
14015
14080
|
* @param {string | null} [username] Filter by specific username
|
|
14016
14081
|
* @param {number | null} [orderId] Order ID
|
|
14017
14082
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
14018
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
14083
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
14084
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
14019
14085
|
* @param {*} [options] Override http request option.
|
|
14020
14086
|
* @throws {RequiredError}
|
|
14021
14087
|
*/
|
|
14022
|
-
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
14088
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
14023
14089
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14024
14090
|
var _a, _b;
|
|
14025
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options);
|
|
14091
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options);
|
|
14026
14092
|
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWebsitesApi.listWebsitesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14027
14093
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14028
14094
|
});
|
|
@@ -14069,19 +14135,20 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
14069
14135
|
return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
|
|
14070
14136
|
},
|
|
14071
14137
|
/**
|
|
14072
|
-
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter
|
|
14138
|
+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with the other available query parameters to filter by username, order ID, enabled status, or domain name for more targeted results.
|
|
14073
14139
|
* @summary List websites
|
|
14074
14140
|
* @param {number} [page] Page number
|
|
14075
14141
|
* @param {number} [perPage] Number of items per page
|
|
14076
14142
|
* @param {string | null} [username] Filter by specific username
|
|
14077
14143
|
* @param {number | null} [orderId] Order ID
|
|
14078
14144
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
14079
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
14145
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
14146
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
14080
14147
|
* @param {*} [options] Override http request option.
|
|
14081
14148
|
* @throws {RequiredError}
|
|
14082
14149
|
*/
|
|
14083
|
-
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
14084
|
-
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(axios, basePath));
|
|
14150
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
14151
|
+
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
14085
14152
|
},
|
|
14086
14153
|
};
|
|
14087
14154
|
};
|
|
@@ -14128,22 +14195,33 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
14128
14195
|
return HostingWebsitesApiFp(this.configuration).deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14129
14196
|
}
|
|
14130
14197
|
/**
|
|
14131
|
-
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter
|
|
14198
|
+
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with the other available query parameters to filter by username, order ID, enabled status, or domain name for more targeted results.
|
|
14132
14199
|
* @summary List websites
|
|
14133
14200
|
* @param {number} [page] Page number
|
|
14134
14201
|
* @param {number} [perPage] Number of items per page
|
|
14135
14202
|
* @param {string | null} [username] Filter by specific username
|
|
14136
14203
|
* @param {number | null} [orderId] Order ID
|
|
14137
14204
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
14138
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
14205
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
14206
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
14139
14207
|
* @param {*} [options] Override http request option.
|
|
14140
14208
|
* @throws {RequiredError}
|
|
14141
14209
|
* @memberof HostingWebsitesApi
|
|
14142
14210
|
*/
|
|
14143
|
-
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
14144
|
-
return HostingWebsitesApiFp(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14211
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
14212
|
+
return HostingWebsitesApiFp(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
|
|
14145
14213
|
}
|
|
14146
14214
|
}
|
|
14215
|
+
/**
|
|
14216
|
+
* @export
|
|
14217
|
+
*/
|
|
14218
|
+
export const ListWebsitesV1WebsiteTypesEnum = {
|
|
14219
|
+
Wordpress: 'wordpress',
|
|
14220
|
+
Builder: 'builder',
|
|
14221
|
+
Horizons: 'horizons',
|
|
14222
|
+
Nodejs: 'nodejs',
|
|
14223
|
+
Other: 'other'
|
|
14224
|
+
};
|
|
14147
14225
|
/**
|
|
14148
14226
|
* MailAPITokensApi - axios parameter creator
|
|
14149
14227
|
* @export
|
|
@@ -26919,7 +26997,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
26919
26997
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
26920
26998
|
* @summary List WordPress installations
|
|
26921
26999
|
* @param {string | null} [username] Filter by specific username
|
|
26922
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27000
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
26923
27001
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
26924
27002
|
* @param {*} [options] Override http request option.
|
|
26925
27003
|
* @throws {RequiredError}
|
|
@@ -27158,7 +27236,7 @@ export const WordPressInstallationsApiFp = function (configuration) {
|
|
|
27158
27236
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
27159
27237
|
* @summary List WordPress installations
|
|
27160
27238
|
* @param {string | null} [username] Filter by specific username
|
|
27161
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27239
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
27162
27240
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
27163
27241
|
* @param {*} [options] Override http request option.
|
|
27164
27242
|
* @throws {RequiredError}
|
|
@@ -27295,7 +27373,7 @@ export const WordPressInstallationsApiFactory = function (configuration, basePat
|
|
|
27295
27373
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
27296
27374
|
* @summary List WordPress installations
|
|
27297
27375
|
* @param {string | null} [username] Filter by specific username
|
|
27298
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27376
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
27299
27377
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
27300
27378
|
* @param {*} [options] Override http request option.
|
|
27301
27379
|
* @throws {RequiredError}
|
|
@@ -27424,7 +27502,7 @@ export class WordPressInstallationsApi extends BaseAPI {
|
|
|
27424
27502
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
27425
27503
|
* @summary List WordPress installations
|
|
27426
27504
|
* @param {string | null} [username] Filter by specific username
|
|
27427
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27505
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
27428
27506
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
27429
27507
|
* @param {*} [options] Override http request option.
|
|
27430
27508
|
* @throws {RequiredError}
|
|
@@ -28194,7 +28272,7 @@ export const WordPressPluginsApiAxiosParamCreator = function (configuration) {
|
|
|
28194
28272
|
/**
|
|
28195
28273
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
28196
28274
|
* @summary Check if WooCommerce is installed
|
|
28197
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
28275
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
28198
28276
|
* @param {*} [options] Override http request option.
|
|
28199
28277
|
* @throws {RequiredError}
|
|
28200
28278
|
*/
|
|
@@ -28640,7 +28718,7 @@ export const WordPressPluginsApiFp = function (configuration) {
|
|
|
28640
28718
|
/**
|
|
28641
28719
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
28642
28720
|
* @summary Check if WooCommerce is installed
|
|
28643
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
28721
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
28644
28722
|
* @param {*} [options] Override http request option.
|
|
28645
28723
|
* @throws {RequiredError}
|
|
28646
28724
|
*/
|
|
@@ -28841,7 +28919,7 @@ export const WordPressPluginsApiFactory = function (configuration, basePath, axi
|
|
|
28841
28919
|
/**
|
|
28842
28920
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
28843
28921
|
* @summary Check if WooCommerce is installed
|
|
28844
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
28922
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
28845
28923
|
* @param {*} [options] Override http request option.
|
|
28846
28924
|
* @throws {RequiredError}
|
|
28847
28925
|
*/
|
|
@@ -28988,7 +29066,7 @@ export class WordPressPluginsApi extends BaseAPI {
|
|
|
28988
29066
|
/**
|
|
28989
29067
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
28990
29068
|
* @summary Check if WooCommerce is installed
|
|
28991
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
29069
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
28992
29070
|
* @param {*} [options] Override http request option.
|
|
28993
29071
|
* @throws {RequiredError}
|
|
28994
29072
|
* @memberof WordPressPluginsApi
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.42.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
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.42.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.42.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
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.42.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.42.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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.42.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.40.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.42.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
|