@hostinger/sdk 1.53.2 → 1.54.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 +547 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +318 -1
- package/dist/api.js +439 -12
- 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 +318 -1
- package/dist/esm/api.js +423 -1
- 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/AgencyHostingSSLApi.md +238 -0
- package/docs/AgencyHostingV1SslSslStatusResource.md +24 -0
- package/docs/HostingDatabasesApi.md +62 -0
- package/docs/HostingV1DatabasesSetupDatabaseRequest.md +22 -0
- package/docs/HostingV1DatabasesWebsiteDatabaseConnectionResource.md +26 -0
- package/docs/HostingV1DatabasesWebsiteDatabaseResource.md +22 -0
- 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.54.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
|
|
@@ -39,6 +39,13 @@ export const AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = {
|
|
|
39
39
|
Running: 'running',
|
|
40
40
|
Completed: 'completed'
|
|
41
41
|
};
|
|
42
|
+
export const AgencyHostingV1SslSslStatusResourceStatusEnum = {
|
|
43
|
+
NotInstalled: 'not_installed',
|
|
44
|
+
Installing: 'installing',
|
|
45
|
+
Failed: 'failed',
|
|
46
|
+
Active: 'active',
|
|
47
|
+
Expired: 'expired'
|
|
48
|
+
};
|
|
42
49
|
export const AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = {
|
|
43
50
|
Wordpress: 'wordpress',
|
|
44
51
|
Builder: 'builder',
|
|
@@ -3427,6 +3434,340 @@ export class AgencyHostingPHPApi extends BaseAPI {
|
|
|
3427
3434
|
return AgencyHostingPHPApiFp(this.configuration).updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3428
3435
|
}
|
|
3429
3436
|
}
|
|
3437
|
+
/**
|
|
3438
|
+
* AgencyHostingSSLApi - axios parameter creator
|
|
3439
|
+
* @export
|
|
3440
|
+
*/
|
|
3441
|
+
export const AgencyHostingSSLApiAxiosParamCreator = function (configuration) {
|
|
3442
|
+
return {
|
|
3443
|
+
/**
|
|
3444
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3445
|
+
* @summary Get website SSL status
|
|
3446
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3447
|
+
* @param {string} domain Domain name
|
|
3448
|
+
* @param {*} [options] Override http request option.
|
|
3449
|
+
* @throws {RequiredError}
|
|
3450
|
+
*/
|
|
3451
|
+
getWebsiteSSLStatusV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3452
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3453
|
+
assertParamExists('getWebsiteSSLStatusV1', 'websiteUid', websiteUid);
|
|
3454
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3455
|
+
assertParamExists('getWebsiteSSLStatusV1', 'domain', domain);
|
|
3456
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/status`
|
|
3457
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3458
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3460
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3461
|
+
let baseOptions;
|
|
3462
|
+
if (configuration) {
|
|
3463
|
+
baseOptions = configuration.baseOptions;
|
|
3464
|
+
}
|
|
3465
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3466
|
+
const localVarHeaderParameter = {};
|
|
3467
|
+
const localVarQueryParameter = {};
|
|
3468
|
+
// authentication apiToken required
|
|
3469
|
+
// http bearer authentication required
|
|
3470
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3473
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3474
|
+
return {
|
|
3475
|
+
url: toPathString(localVarUrlObj),
|
|
3476
|
+
options: localVarRequestOptions,
|
|
3477
|
+
};
|
|
3478
|
+
}),
|
|
3479
|
+
/**
|
|
3480
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3481
|
+
* @summary Install website SSL
|
|
3482
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3483
|
+
* @param {string} domain Domain name
|
|
3484
|
+
* @param {*} [options] Override http request option.
|
|
3485
|
+
* @throws {RequiredError}
|
|
3486
|
+
*/
|
|
3487
|
+
installWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3488
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3489
|
+
assertParamExists('installWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3490
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3491
|
+
assertParamExists('installWebsiteSSLV1', 'domain', domain);
|
|
3492
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/setup`
|
|
3493
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3494
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3497
|
+
let baseOptions;
|
|
3498
|
+
if (configuration) {
|
|
3499
|
+
baseOptions = configuration.baseOptions;
|
|
3500
|
+
}
|
|
3501
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3502
|
+
const localVarHeaderParameter = {};
|
|
3503
|
+
const localVarQueryParameter = {};
|
|
3504
|
+
// authentication apiToken required
|
|
3505
|
+
// http bearer authentication required
|
|
3506
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3509
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3510
|
+
return {
|
|
3511
|
+
url: toPathString(localVarUrlObj),
|
|
3512
|
+
options: localVarRequestOptions,
|
|
3513
|
+
};
|
|
3514
|
+
}),
|
|
3515
|
+
/**
|
|
3516
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3517
|
+
* @summary Reinstall website SSL
|
|
3518
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3519
|
+
* @param {string} domain Domain name
|
|
3520
|
+
* @param {*} [options] Override http request option.
|
|
3521
|
+
* @throws {RequiredError}
|
|
3522
|
+
*/
|
|
3523
|
+
reinstallWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3524
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3525
|
+
assertParamExists('reinstallWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3526
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3527
|
+
assertParamExists('reinstallWebsiteSSLV1', 'domain', domain);
|
|
3528
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/reinstall`
|
|
3529
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3530
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3531
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3532
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3533
|
+
let baseOptions;
|
|
3534
|
+
if (configuration) {
|
|
3535
|
+
baseOptions = configuration.baseOptions;
|
|
3536
|
+
}
|
|
3537
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3538
|
+
const localVarHeaderParameter = {};
|
|
3539
|
+
const localVarQueryParameter = {};
|
|
3540
|
+
// authentication apiToken required
|
|
3541
|
+
// http bearer authentication required
|
|
3542
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3543
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3544
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3545
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3546
|
+
return {
|
|
3547
|
+
url: toPathString(localVarUrlObj),
|
|
3548
|
+
options: localVarRequestOptions,
|
|
3549
|
+
};
|
|
3550
|
+
}),
|
|
3551
|
+
/**
|
|
3552
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3553
|
+
* @summary Uninstall website SSL
|
|
3554
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3555
|
+
* @param {string} domain Domain name
|
|
3556
|
+
* @param {*} [options] Override http request option.
|
|
3557
|
+
* @throws {RequiredError}
|
|
3558
|
+
*/
|
|
3559
|
+
uninstallWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3560
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3561
|
+
assertParamExists('uninstallWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3562
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3563
|
+
assertParamExists('uninstallWebsiteSSLV1', 'domain', domain);
|
|
3564
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl`
|
|
3565
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3566
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3569
|
+
let baseOptions;
|
|
3570
|
+
if (configuration) {
|
|
3571
|
+
baseOptions = configuration.baseOptions;
|
|
3572
|
+
}
|
|
3573
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3574
|
+
const localVarHeaderParameter = {};
|
|
3575
|
+
const localVarQueryParameter = {};
|
|
3576
|
+
// authentication apiToken required
|
|
3577
|
+
// http bearer authentication required
|
|
3578
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3579
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3580
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3581
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3582
|
+
return {
|
|
3583
|
+
url: toPathString(localVarUrlObj),
|
|
3584
|
+
options: localVarRequestOptions,
|
|
3585
|
+
};
|
|
3586
|
+
}),
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
/**
|
|
3590
|
+
* AgencyHostingSSLApi - functional programming interface
|
|
3591
|
+
* @export
|
|
3592
|
+
*/
|
|
3593
|
+
export const AgencyHostingSSLApiFp = function (configuration) {
|
|
3594
|
+
const localVarAxiosParamCreator = AgencyHostingSSLApiAxiosParamCreator(configuration);
|
|
3595
|
+
return {
|
|
3596
|
+
/**
|
|
3597
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3598
|
+
* @summary Get website SSL status
|
|
3599
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3600
|
+
* @param {string} domain Domain name
|
|
3601
|
+
* @param {*} [options] Override http request option.
|
|
3602
|
+
* @throws {RequiredError}
|
|
3603
|
+
*/
|
|
3604
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3606
|
+
var _a, _b;
|
|
3607
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteSSLStatusV1(websiteUid, domain, options);
|
|
3608
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.getWebsiteSSLStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3609
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3610
|
+
});
|
|
3611
|
+
},
|
|
3612
|
+
/**
|
|
3613
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3614
|
+
* @summary Install website SSL
|
|
3615
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3616
|
+
* @param {string} domain Domain name
|
|
3617
|
+
* @param {*} [options] Override http request option.
|
|
3618
|
+
* @throws {RequiredError}
|
|
3619
|
+
*/
|
|
3620
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3622
|
+
var _a, _b;
|
|
3623
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWebsiteSSLV1(websiteUid, domain, options);
|
|
3624
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.installWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3625
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3626
|
+
});
|
|
3627
|
+
},
|
|
3628
|
+
/**
|
|
3629
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3630
|
+
* @summary Reinstall website SSL
|
|
3631
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3632
|
+
* @param {string} domain Domain name
|
|
3633
|
+
* @param {*} [options] Override http request option.
|
|
3634
|
+
* @throws {RequiredError}
|
|
3635
|
+
*/
|
|
3636
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3638
|
+
var _a, _b;
|
|
3639
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reinstallWebsiteSSLV1(websiteUid, domain, options);
|
|
3640
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.reinstallWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3641
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3642
|
+
});
|
|
3643
|
+
},
|
|
3644
|
+
/**
|
|
3645
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3646
|
+
* @summary Uninstall website SSL
|
|
3647
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3648
|
+
* @param {string} domain Domain name
|
|
3649
|
+
* @param {*} [options] Override http request option.
|
|
3650
|
+
* @throws {RequiredError}
|
|
3651
|
+
*/
|
|
3652
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3654
|
+
var _a, _b;
|
|
3655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWebsiteSSLV1(websiteUid, domain, options);
|
|
3656
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingSSLApi.uninstallWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3658
|
+
});
|
|
3659
|
+
},
|
|
3660
|
+
};
|
|
3661
|
+
};
|
|
3662
|
+
/**
|
|
3663
|
+
* AgencyHostingSSLApi - factory interface
|
|
3664
|
+
* @export
|
|
3665
|
+
*/
|
|
3666
|
+
export const AgencyHostingSSLApiFactory = function (configuration, basePath, axios) {
|
|
3667
|
+
const localVarFp = AgencyHostingSSLApiFp(configuration);
|
|
3668
|
+
return {
|
|
3669
|
+
/**
|
|
3670
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3671
|
+
* @summary Get website SSL status
|
|
3672
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3673
|
+
* @param {string} domain Domain name
|
|
3674
|
+
* @param {*} [options] Override http request option.
|
|
3675
|
+
* @throws {RequiredError}
|
|
3676
|
+
*/
|
|
3677
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3678
|
+
return localVarFp.getWebsiteSSLStatusV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3679
|
+
},
|
|
3680
|
+
/**
|
|
3681
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3682
|
+
* @summary Install website SSL
|
|
3683
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3684
|
+
* @param {string} domain Domain name
|
|
3685
|
+
* @param {*} [options] Override http request option.
|
|
3686
|
+
* @throws {RequiredError}
|
|
3687
|
+
*/
|
|
3688
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3689
|
+
return localVarFp.installWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3690
|
+
},
|
|
3691
|
+
/**
|
|
3692
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3693
|
+
* @summary Reinstall website SSL
|
|
3694
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3695
|
+
* @param {string} domain Domain name
|
|
3696
|
+
* @param {*} [options] Override http request option.
|
|
3697
|
+
* @throws {RequiredError}
|
|
3698
|
+
*/
|
|
3699
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3700
|
+
return localVarFp.reinstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3701
|
+
},
|
|
3702
|
+
/**
|
|
3703
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3704
|
+
* @summary Uninstall website SSL
|
|
3705
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3706
|
+
* @param {string} domain Domain name
|
|
3707
|
+
* @param {*} [options] Override http request option.
|
|
3708
|
+
* @throws {RequiredError}
|
|
3709
|
+
*/
|
|
3710
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3711
|
+
return localVarFp.uninstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3712
|
+
},
|
|
3713
|
+
};
|
|
3714
|
+
};
|
|
3715
|
+
/**
|
|
3716
|
+
* AgencyHostingSSLApi - object-oriented interface
|
|
3717
|
+
* @export
|
|
3718
|
+
* @class AgencyHostingSSLApi
|
|
3719
|
+
* @extends {BaseAPI}
|
|
3720
|
+
*/
|
|
3721
|
+
export class AgencyHostingSSLApi extends BaseAPI {
|
|
3722
|
+
/**
|
|
3723
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3724
|
+
* @summary Get website SSL status
|
|
3725
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3726
|
+
* @param {string} domain Domain name
|
|
3727
|
+
* @param {*} [options] Override http request option.
|
|
3728
|
+
* @throws {RequiredError}
|
|
3729
|
+
* @memberof AgencyHostingSSLApi
|
|
3730
|
+
*/
|
|
3731
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3732
|
+
return AgencyHostingSSLApiFp(this.configuration).getWebsiteSSLStatusV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3733
|
+
}
|
|
3734
|
+
/**
|
|
3735
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3736
|
+
* @summary Install website SSL
|
|
3737
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3738
|
+
* @param {string} domain Domain name
|
|
3739
|
+
* @param {*} [options] Override http request option.
|
|
3740
|
+
* @throws {RequiredError}
|
|
3741
|
+
* @memberof AgencyHostingSSLApi
|
|
3742
|
+
*/
|
|
3743
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3744
|
+
return AgencyHostingSSLApiFp(this.configuration).installWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3745
|
+
}
|
|
3746
|
+
/**
|
|
3747
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3748
|
+
* @summary Reinstall website SSL
|
|
3749
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3750
|
+
* @param {string} domain Domain name
|
|
3751
|
+
* @param {*} [options] Override http request option.
|
|
3752
|
+
* @throws {RequiredError}
|
|
3753
|
+
* @memberof AgencyHostingSSLApi
|
|
3754
|
+
*/
|
|
3755
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3756
|
+
return AgencyHostingSSLApiFp(this.configuration).reinstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3760
|
+
* @summary Uninstall website SSL
|
|
3761
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3762
|
+
* @param {string} domain Domain name
|
|
3763
|
+
* @param {*} [options] Override http request option.
|
|
3764
|
+
* @throws {RequiredError}
|
|
3765
|
+
* @memberof AgencyHostingSSLApi
|
|
3766
|
+
*/
|
|
3767
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3768
|
+
return AgencyHostingSSLApiFp(this.configuration).uninstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3769
|
+
}
|
|
3770
|
+
}
|
|
3430
3771
|
/**
|
|
3431
3772
|
* AgencyHostingWebsiteSetupsApi - axios parameter creator
|
|
3432
3773
|
* @export
|
|
@@ -12849,6 +13190,45 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
12849
13190
|
options: localVarRequestOptions,
|
|
12850
13191
|
};
|
|
12851
13192
|
}),
|
|
13193
|
+
/**
|
|
13194
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13195
|
+
* @summary Setup website database
|
|
13196
|
+
* @param {string} username
|
|
13197
|
+
* @param {string} domain Domain name
|
|
13198
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13199
|
+
* @param {*} [options] Override http request option.
|
|
13200
|
+
* @throws {RequiredError}
|
|
13201
|
+
*/
|
|
13202
|
+
setupWebsiteDatabaseV1: (username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DatabasesSetupDatabaseRequest, options = {}) {
|
|
13203
|
+
// verify required parameter 'username' is not null or undefined
|
|
13204
|
+
assertParamExists('setupWebsiteDatabaseV1', 'username', username);
|
|
13205
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13206
|
+
assertParamExists('setupWebsiteDatabaseV1', 'domain', domain);
|
|
13207
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup`
|
|
13208
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13209
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13210
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13211
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13212
|
+
let baseOptions;
|
|
13213
|
+
if (configuration) {
|
|
13214
|
+
baseOptions = configuration.baseOptions;
|
|
13215
|
+
}
|
|
13216
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13217
|
+
const localVarHeaderParameter = {};
|
|
13218
|
+
const localVarQueryParameter = {};
|
|
13219
|
+
// authentication apiToken required
|
|
13220
|
+
// http bearer authentication required
|
|
13221
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13222
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13225
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13226
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesSetupDatabaseRequest, localVarRequestOptions, configuration);
|
|
13227
|
+
return {
|
|
13228
|
+
url: toPathString(localVarUrlObj),
|
|
13229
|
+
options: localVarRequestOptions,
|
|
13230
|
+
};
|
|
13231
|
+
}),
|
|
12852
13232
|
};
|
|
12853
13233
|
};
|
|
12854
13234
|
/**
|
|
@@ -13009,6 +13389,23 @@ export const HostingDatabasesApiFp = function (configuration) {
|
|
|
13009
13389
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13010
13390
|
});
|
|
13011
13391
|
},
|
|
13392
|
+
/**
|
|
13393
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13394
|
+
* @summary Setup website database
|
|
13395
|
+
* @param {string} username
|
|
13396
|
+
* @param {string} domain Domain name
|
|
13397
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13398
|
+
* @param {*} [options] Override http request option.
|
|
13399
|
+
* @throws {RequiredError}
|
|
13400
|
+
*/
|
|
13401
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13403
|
+
var _a, _b;
|
|
13404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options);
|
|
13405
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.setupWebsiteDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13406
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13407
|
+
});
|
|
13408
|
+
},
|
|
13012
13409
|
};
|
|
13013
13410
|
};
|
|
13014
13411
|
/**
|
|
@@ -13124,6 +13521,18 @@ export const HostingDatabasesApiFactory = function (configuration, basePath, axi
|
|
|
13124
13521
|
repairDatabaseV1(username, name, options) {
|
|
13125
13522
|
return localVarFp.repairDatabaseV1(username, name, options).then((request) => request(axios, basePath));
|
|
13126
13523
|
},
|
|
13524
|
+
/**
|
|
13525
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13526
|
+
* @summary Setup website database
|
|
13527
|
+
* @param {string} username
|
|
13528
|
+
* @param {string} domain Domain name
|
|
13529
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13530
|
+
* @param {*} [options] Override http request option.
|
|
13531
|
+
* @throws {RequiredError}
|
|
13532
|
+
*/
|
|
13533
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13534
|
+
return localVarFp.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
13535
|
+
},
|
|
13127
13536
|
};
|
|
13128
13537
|
};
|
|
13129
13538
|
/**
|
|
@@ -13248,6 +13657,19 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
13248
13657
|
repairDatabaseV1(username, name, options) {
|
|
13249
13658
|
return HostingDatabasesApiFp(this.configuration).repairDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
13250
13659
|
}
|
|
13660
|
+
/**
|
|
13661
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13662
|
+
* @summary Setup website database
|
|
13663
|
+
* @param {string} username
|
|
13664
|
+
* @param {string} domain Domain name
|
|
13665
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13666
|
+
* @param {*} [options] Override http request option.
|
|
13667
|
+
* @throws {RequiredError}
|
|
13668
|
+
* @memberof HostingDatabasesApi
|
|
13669
|
+
*/
|
|
13670
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13671
|
+
return HostingDatabasesApiFp(this.configuration).setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13672
|
+
}
|
|
13251
13673
|
}
|
|
13252
13674
|
/**
|
|
13253
13675
|
* HostingDatacentersApi - axios parameter creator
|
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.54.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.54.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.54.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.54.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.54.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.54.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.54.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.54.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/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.54.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/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.54.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/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.54.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
|