hostinger-api-sdk 1.29.2 → 1.30.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 +588 -38
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +366 -30
- package/dist/api.js +417 -33
- 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 +366 -30
- package/dist/esm/api.js +404 -24
- 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/DomainsAvailabilityApi.md +113 -1
- package/docs/DomainsV1AvailabilityAlternativesFromDescriptionRequest.md +22 -0
- package/docs/DomainsV1AvailabilityAlternativesFromDomainRequest.md +22 -0
- package/docs/HostingFilesApi.md +148 -0
- package/docs/{HostingV1WebsitesDeleteWebsiteRequest.md → HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md} +3 -5
- package/docs/HostingV1FilesFileContentResource.md +28 -0
- package/docs/HostingV1FilesFilesResource.md +28 -0
- package/docs/HostingV1FilesFilesResourceItemsInner.md +26 -0
- package/docs/HostingWebsitesApi.md +5 -9
- 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.32.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
|
|
@@ -222,6 +222,12 @@ export const HostingV1DomainsParkedDomainResourceTypeEnum = {
|
|
|
222
222
|
Domain: 'domain',
|
|
223
223
|
Ip: 'ip'
|
|
224
224
|
};
|
|
225
|
+
export const HostingV1FilesFilesResourceItemsInnerTypeEnum = {
|
|
226
|
+
File: 'file',
|
|
227
|
+
Directory: 'directory',
|
|
228
|
+
Symlink: 'symlink',
|
|
229
|
+
Other: 'other'
|
|
230
|
+
};
|
|
225
231
|
export const HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
|
|
226
232
|
CreateReactApp: 'create-react-app',
|
|
227
233
|
Vite: 'vite',
|
|
@@ -4429,7 +4435,7 @@ export class DomainAccessVerifierVerificationsApi extends BaseAPI {
|
|
|
4429
4435
|
export const DomainsAvailabilityApiAxiosParamCreator = function (configuration) {
|
|
4430
4436
|
return {
|
|
4431
4437
|
/**
|
|
4432
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4438
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4433
4439
|
* @summary Check domain availability
|
|
4434
4440
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4435
4441
|
* @param {*} [options] Override http request option.
|
|
@@ -4461,6 +4467,72 @@ export const DomainsAvailabilityApiAxiosParamCreator = function (configuration)
|
|
|
4461
4467
|
options: localVarRequestOptions,
|
|
4462
4468
|
};
|
|
4463
4469
|
}),
|
|
4470
|
+
/**
|
|
4471
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4472
|
+
* @summary Suggest domain names from a description
|
|
4473
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4474
|
+
* @param {*} [options] Override http request option.
|
|
4475
|
+
* @throws {RequiredError}
|
|
4476
|
+
*/
|
|
4477
|
+
suggestDomainNamesFromADescriptionV1: (domainsV1AvailabilityAlternativesFromDescriptionRequest_1, ...args_1) => __awaiter(this, [domainsV1AvailabilityAlternativesFromDescriptionRequest_1, ...args_1], void 0, function* (domainsV1AvailabilityAlternativesFromDescriptionRequest, options = {}) {
|
|
4478
|
+
// verify required parameter 'domainsV1AvailabilityAlternativesFromDescriptionRequest' is not null or undefined
|
|
4479
|
+
assertParamExists('suggestDomainNamesFromADescriptionV1', 'domainsV1AvailabilityAlternativesFromDescriptionRequest', domainsV1AvailabilityAlternativesFromDescriptionRequest);
|
|
4480
|
+
const localVarPath = `/api/domains/v1/availability/alternatives-from-description`;
|
|
4481
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4482
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4483
|
+
let baseOptions;
|
|
4484
|
+
if (configuration) {
|
|
4485
|
+
baseOptions = configuration.baseOptions;
|
|
4486
|
+
}
|
|
4487
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4488
|
+
const localVarHeaderParameter = {};
|
|
4489
|
+
const localVarQueryParameter = {};
|
|
4490
|
+
// authentication apiToken required
|
|
4491
|
+
// http bearer authentication required
|
|
4492
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4493
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4494
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4495
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4496
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4497
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAlternativesFromDescriptionRequest, localVarRequestOptions, configuration);
|
|
4498
|
+
return {
|
|
4499
|
+
url: toPathString(localVarUrlObj),
|
|
4500
|
+
options: localVarRequestOptions,
|
|
4501
|
+
};
|
|
4502
|
+
}),
|
|
4503
|
+
/**
|
|
4504
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4505
|
+
* @summary Suggest domain names from a domain
|
|
4506
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4507
|
+
* @param {*} [options] Override http request option.
|
|
4508
|
+
* @throws {RequiredError}
|
|
4509
|
+
*/
|
|
4510
|
+
suggestDomainNamesFromADomainV1: (domainsV1AvailabilityAlternativesFromDomainRequest_1, ...args_1) => __awaiter(this, [domainsV1AvailabilityAlternativesFromDomainRequest_1, ...args_1], void 0, function* (domainsV1AvailabilityAlternativesFromDomainRequest, options = {}) {
|
|
4511
|
+
// verify required parameter 'domainsV1AvailabilityAlternativesFromDomainRequest' is not null or undefined
|
|
4512
|
+
assertParamExists('suggestDomainNamesFromADomainV1', 'domainsV1AvailabilityAlternativesFromDomainRequest', domainsV1AvailabilityAlternativesFromDomainRequest);
|
|
4513
|
+
const localVarPath = `/api/domains/v1/availability/alternatives-from-domain`;
|
|
4514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4516
|
+
let baseOptions;
|
|
4517
|
+
if (configuration) {
|
|
4518
|
+
baseOptions = configuration.baseOptions;
|
|
4519
|
+
}
|
|
4520
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4521
|
+
const localVarHeaderParameter = {};
|
|
4522
|
+
const localVarQueryParameter = {};
|
|
4523
|
+
// authentication apiToken required
|
|
4524
|
+
// http bearer authentication required
|
|
4525
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4526
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4527
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4529
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4530
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAlternativesFromDomainRequest, localVarRequestOptions, configuration);
|
|
4531
|
+
return {
|
|
4532
|
+
url: toPathString(localVarUrlObj),
|
|
4533
|
+
options: localVarRequestOptions,
|
|
4534
|
+
};
|
|
4535
|
+
}),
|
|
4464
4536
|
};
|
|
4465
4537
|
};
|
|
4466
4538
|
/**
|
|
@@ -4471,7 +4543,7 @@ export const DomainsAvailabilityApiFp = function (configuration) {
|
|
|
4471
4543
|
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration);
|
|
4472
4544
|
return {
|
|
4473
4545
|
/**
|
|
4474
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4546
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4475
4547
|
* @summary Check domain availability
|
|
4476
4548
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4477
4549
|
* @param {*} [options] Override http request option.
|
|
@@ -4485,6 +4557,36 @@ export const DomainsAvailabilityApiFp = function (configuration) {
|
|
|
4485
4557
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4486
4558
|
});
|
|
4487
4559
|
},
|
|
4560
|
+
/**
|
|
4561
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4562
|
+
* @summary Suggest domain names from a description
|
|
4563
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4564
|
+
* @param {*} [options] Override http request option.
|
|
4565
|
+
* @throws {RequiredError}
|
|
4566
|
+
*/
|
|
4567
|
+
suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options) {
|
|
4568
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4569
|
+
var _a, _b;
|
|
4570
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options);
|
|
4571
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADescriptionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4572
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4573
|
+
});
|
|
4574
|
+
},
|
|
4575
|
+
/**
|
|
4576
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4577
|
+
* @summary Suggest domain names from a domain
|
|
4578
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4579
|
+
* @param {*} [options] Override http request option.
|
|
4580
|
+
* @throws {RequiredError}
|
|
4581
|
+
*/
|
|
4582
|
+
suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options) {
|
|
4583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4584
|
+
var _a, _b;
|
|
4585
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options);
|
|
4586
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4587
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4588
|
+
});
|
|
4589
|
+
},
|
|
4488
4590
|
};
|
|
4489
4591
|
};
|
|
4490
4592
|
/**
|
|
@@ -4495,7 +4597,7 @@ export const DomainsAvailabilityApiFactory = function (configuration, basePath,
|
|
|
4495
4597
|
const localVarFp = DomainsAvailabilityApiFp(configuration);
|
|
4496
4598
|
return {
|
|
4497
4599
|
/**
|
|
4498
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4600
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4499
4601
|
* @summary Check domain availability
|
|
4500
4602
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4501
4603
|
* @param {*} [options] Override http request option.
|
|
@@ -4504,6 +4606,26 @@ export const DomainsAvailabilityApiFactory = function (configuration, basePath,
|
|
|
4504
4606
|
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
4505
4607
|
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
4506
4608
|
},
|
|
4609
|
+
/**
|
|
4610
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4611
|
+
* @summary Suggest domain names from a description
|
|
4612
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4613
|
+
* @param {*} [options] Override http request option.
|
|
4614
|
+
* @throws {RequiredError}
|
|
4615
|
+
*/
|
|
4616
|
+
suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options) {
|
|
4617
|
+
return localVarFp.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(axios, basePath));
|
|
4618
|
+
},
|
|
4619
|
+
/**
|
|
4620
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4621
|
+
* @summary Suggest domain names from a domain
|
|
4622
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4623
|
+
* @param {*} [options] Override http request option.
|
|
4624
|
+
* @throws {RequiredError}
|
|
4625
|
+
*/
|
|
4626
|
+
suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options) {
|
|
4627
|
+
return localVarFp.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(axios, basePath));
|
|
4628
|
+
},
|
|
4507
4629
|
};
|
|
4508
4630
|
};
|
|
4509
4631
|
/**
|
|
@@ -4514,7 +4636,7 @@ export const DomainsAvailabilityApiFactory = function (configuration, basePath,
|
|
|
4514
4636
|
*/
|
|
4515
4637
|
export class DomainsAvailabilityApi extends BaseAPI {
|
|
4516
4638
|
/**
|
|
4517
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4639
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4518
4640
|
* @summary Check domain availability
|
|
4519
4641
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4520
4642
|
* @param {*} [options] Override http request option.
|
|
@@ -4524,6 +4646,28 @@ export class DomainsAvailabilityApi extends BaseAPI {
|
|
|
4524
4646
|
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
4525
4647
|
return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4526
4648
|
}
|
|
4649
|
+
/**
|
|
4650
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4651
|
+
* @summary Suggest domain names from a description
|
|
4652
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4653
|
+
* @param {*} [options] Override http request option.
|
|
4654
|
+
* @throws {RequiredError}
|
|
4655
|
+
* @memberof DomainsAvailabilityApi
|
|
4656
|
+
*/
|
|
4657
|
+
suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options) {
|
|
4658
|
+
return DomainsAvailabilityApiFp(this.configuration).suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4659
|
+
}
|
|
4660
|
+
/**
|
|
4661
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4662
|
+
* @summary Suggest domain names from a domain
|
|
4663
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4664
|
+
* @param {*} [options] Override http request option.
|
|
4665
|
+
* @throws {RequiredError}
|
|
4666
|
+
* @memberof DomainsAvailabilityApi
|
|
4667
|
+
*/
|
|
4668
|
+
suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options) {
|
|
4669
|
+
return DomainsAvailabilityApiFp(this.configuration).suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4670
|
+
}
|
|
4527
4671
|
}
|
|
4528
4672
|
/**
|
|
4529
4673
|
* DomainsForwardingApi - axios parameter creator
|
|
@@ -10521,6 +10665,250 @@ export class HostingDomainsApi extends BaseAPI {
|
|
|
10521
10665
|
return HostingDomainsApiFp(this.configuration).verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10522
10666
|
}
|
|
10523
10667
|
}
|
|
10668
|
+
/**
|
|
10669
|
+
* HostingFilesApi - axios parameter creator
|
|
10670
|
+
* @export
|
|
10671
|
+
*/
|
|
10672
|
+
export const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
10673
|
+
return {
|
|
10674
|
+
/**
|
|
10675
|
+
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
10676
|
+
* @summary Get website file content
|
|
10677
|
+
* @param {string} username
|
|
10678
|
+
* @param {string} domain Domain name
|
|
10679
|
+
* @param {string} path File path, relative to the document root.
|
|
10680
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
10681
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
10682
|
+
* @param {*} [options] Override http request option.
|
|
10683
|
+
* @throws {RequiredError}
|
|
10684
|
+
*/
|
|
10685
|
+
getWebsiteFileContentV1: (username_1, domain_1, path_1, fromLine_1, maxLines_1, ...args_1) => __awaiter(this, [username_1, domain_1, path_1, fromLine_1, maxLines_1, ...args_1], void 0, function* (username, domain, path, fromLine, maxLines, options = {}) {
|
|
10686
|
+
// verify required parameter 'username' is not null or undefined
|
|
10687
|
+
assertParamExists('getWebsiteFileContentV1', 'username', username);
|
|
10688
|
+
// verify required parameter 'domain' is not null or undefined
|
|
10689
|
+
assertParamExists('getWebsiteFileContentV1', 'domain', domain);
|
|
10690
|
+
// verify required parameter 'path' is not null or undefined
|
|
10691
|
+
assertParamExists('getWebsiteFileContentV1', 'path', path);
|
|
10692
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files/content`
|
|
10693
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
10694
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
10695
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10696
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10697
|
+
let baseOptions;
|
|
10698
|
+
if (configuration) {
|
|
10699
|
+
baseOptions = configuration.baseOptions;
|
|
10700
|
+
}
|
|
10701
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10702
|
+
const localVarHeaderParameter = {};
|
|
10703
|
+
const localVarQueryParameter = {};
|
|
10704
|
+
// authentication apiToken required
|
|
10705
|
+
// http bearer authentication required
|
|
10706
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10707
|
+
if (path !== undefined) {
|
|
10708
|
+
localVarQueryParameter['path'] = path;
|
|
10709
|
+
}
|
|
10710
|
+
if (fromLine !== undefined) {
|
|
10711
|
+
localVarQueryParameter['from_line'] = fromLine;
|
|
10712
|
+
}
|
|
10713
|
+
if (maxLines !== undefined) {
|
|
10714
|
+
localVarQueryParameter['max_lines'] = maxLines;
|
|
10715
|
+
}
|
|
10716
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10717
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10718
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10719
|
+
return {
|
|
10720
|
+
url: toPathString(localVarUrlObj),
|
|
10721
|
+
options: localVarRequestOptions,
|
|
10722
|
+
};
|
|
10723
|
+
}),
|
|
10724
|
+
/**
|
|
10725
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
10726
|
+
* @summary List website files and directories
|
|
10727
|
+
* @param {string} username
|
|
10728
|
+
* @param {string} domain Domain name
|
|
10729
|
+
* @param {string} [directory] Directory path to check
|
|
10730
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10731
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10732
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10733
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
10734
|
+
* @param {*} [options] Override http request option.
|
|
10735
|
+
* @throws {RequiredError}
|
|
10736
|
+
*/
|
|
10737
|
+
listWebsiteFilesAndDirectoriesV1: (username_1, domain_1, directory_1, maxDepth_1, maxItems_1, offset_1, fileTypes_1, ...args_1) => __awaiter(this, [username_1, domain_1, directory_1, maxDepth_1, maxItems_1, offset_1, fileTypes_1, ...args_1], void 0, function* (username, domain, directory, maxDepth, maxItems, offset, fileTypes, options = {}) {
|
|
10738
|
+
// verify required parameter 'username' is not null or undefined
|
|
10739
|
+
assertParamExists('listWebsiteFilesAndDirectoriesV1', 'username', username);
|
|
10740
|
+
// verify required parameter 'domain' is not null or undefined
|
|
10741
|
+
assertParamExists('listWebsiteFilesAndDirectoriesV1', 'domain', domain);
|
|
10742
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files`
|
|
10743
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
10744
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
10745
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10746
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10747
|
+
let baseOptions;
|
|
10748
|
+
if (configuration) {
|
|
10749
|
+
baseOptions = configuration.baseOptions;
|
|
10750
|
+
}
|
|
10751
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10752
|
+
const localVarHeaderParameter = {};
|
|
10753
|
+
const localVarQueryParameter = {};
|
|
10754
|
+
// authentication apiToken required
|
|
10755
|
+
// http bearer authentication required
|
|
10756
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10757
|
+
if (directory !== undefined) {
|
|
10758
|
+
localVarQueryParameter['directory'] = directory;
|
|
10759
|
+
}
|
|
10760
|
+
if (maxDepth !== undefined) {
|
|
10761
|
+
localVarQueryParameter['max_depth'] = maxDepth;
|
|
10762
|
+
}
|
|
10763
|
+
if (maxItems !== undefined) {
|
|
10764
|
+
localVarQueryParameter['max_items'] = maxItems;
|
|
10765
|
+
}
|
|
10766
|
+
if (offset !== undefined) {
|
|
10767
|
+
localVarQueryParameter['offset'] = offset;
|
|
10768
|
+
}
|
|
10769
|
+
if (fileTypes !== undefined) {
|
|
10770
|
+
for (const [key, value] of Object.entries(fileTypes)) {
|
|
10771
|
+
localVarQueryParameter[key] = value;
|
|
10772
|
+
}
|
|
10773
|
+
}
|
|
10774
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10776
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10777
|
+
return {
|
|
10778
|
+
url: toPathString(localVarUrlObj),
|
|
10779
|
+
options: localVarRequestOptions,
|
|
10780
|
+
};
|
|
10781
|
+
}),
|
|
10782
|
+
};
|
|
10783
|
+
};
|
|
10784
|
+
/**
|
|
10785
|
+
* HostingFilesApi - functional programming interface
|
|
10786
|
+
* @export
|
|
10787
|
+
*/
|
|
10788
|
+
export const HostingFilesApiFp = function (configuration) {
|
|
10789
|
+
const localVarAxiosParamCreator = HostingFilesApiAxiosParamCreator(configuration);
|
|
10790
|
+
return {
|
|
10791
|
+
/**
|
|
10792
|
+
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
10793
|
+
* @summary Get website file content
|
|
10794
|
+
* @param {string} username
|
|
10795
|
+
* @param {string} domain Domain name
|
|
10796
|
+
* @param {string} path File path, relative to the document root.
|
|
10797
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
10798
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
10799
|
+
* @param {*} [options] Override http request option.
|
|
10800
|
+
* @throws {RequiredError}
|
|
10801
|
+
*/
|
|
10802
|
+
getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options) {
|
|
10803
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10804
|
+
var _a, _b;
|
|
10805
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options);
|
|
10806
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingFilesApi.getWebsiteFileContentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
10807
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10808
|
+
});
|
|
10809
|
+
},
|
|
10810
|
+
/**
|
|
10811
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
10812
|
+
* @summary List website files and directories
|
|
10813
|
+
* @param {string} username
|
|
10814
|
+
* @param {string} domain Domain name
|
|
10815
|
+
* @param {string} [directory] Directory path to check
|
|
10816
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10817
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10818
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10819
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
10820
|
+
* @param {*} [options] Override http request option.
|
|
10821
|
+
* @throws {RequiredError}
|
|
10822
|
+
*/
|
|
10823
|
+
listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options) {
|
|
10824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10825
|
+
var _a, _b;
|
|
10826
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options);
|
|
10827
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingFilesApi.listWebsiteFilesAndDirectoriesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
10828
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10829
|
+
});
|
|
10830
|
+
},
|
|
10831
|
+
};
|
|
10832
|
+
};
|
|
10833
|
+
/**
|
|
10834
|
+
* HostingFilesApi - factory interface
|
|
10835
|
+
* @export
|
|
10836
|
+
*/
|
|
10837
|
+
export const HostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
10838
|
+
const localVarFp = HostingFilesApiFp(configuration);
|
|
10839
|
+
return {
|
|
10840
|
+
/**
|
|
10841
|
+
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
10842
|
+
* @summary Get website file content
|
|
10843
|
+
* @param {string} username
|
|
10844
|
+
* @param {string} domain Domain name
|
|
10845
|
+
* @param {string} path File path, relative to the document root.
|
|
10846
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
10847
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
10848
|
+
* @param {*} [options] Override http request option.
|
|
10849
|
+
* @throws {RequiredError}
|
|
10850
|
+
*/
|
|
10851
|
+
getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options) {
|
|
10852
|
+
return localVarFp.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(axios, basePath));
|
|
10853
|
+
},
|
|
10854
|
+
/**
|
|
10855
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
10856
|
+
* @summary List website files and directories
|
|
10857
|
+
* @param {string} username
|
|
10858
|
+
* @param {string} domain Domain name
|
|
10859
|
+
* @param {string} [directory] Directory path to check
|
|
10860
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10861
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10862
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10863
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
10864
|
+
* @param {*} [options] Override http request option.
|
|
10865
|
+
* @throws {RequiredError}
|
|
10866
|
+
*/
|
|
10867
|
+
listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options) {
|
|
10868
|
+
return localVarFp.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(axios, basePath));
|
|
10869
|
+
},
|
|
10870
|
+
};
|
|
10871
|
+
};
|
|
10872
|
+
/**
|
|
10873
|
+
* HostingFilesApi - object-oriented interface
|
|
10874
|
+
* @export
|
|
10875
|
+
* @class HostingFilesApi
|
|
10876
|
+
* @extends {BaseAPI}
|
|
10877
|
+
*/
|
|
10878
|
+
export class HostingFilesApi extends BaseAPI {
|
|
10879
|
+
/**
|
|
10880
|
+
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
10881
|
+
* @summary Get website file content
|
|
10882
|
+
* @param {string} username
|
|
10883
|
+
* @param {string} domain Domain name
|
|
10884
|
+
* @param {string} path File path, relative to the document root.
|
|
10885
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
10886
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
10887
|
+
* @param {*} [options] Override http request option.
|
|
10888
|
+
* @throws {RequiredError}
|
|
10889
|
+
* @memberof HostingFilesApi
|
|
10890
|
+
*/
|
|
10891
|
+
getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options) {
|
|
10892
|
+
return HostingFilesApiFp(this.configuration).getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(this.axios, this.basePath));
|
|
10893
|
+
}
|
|
10894
|
+
/**
|
|
10895
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
10896
|
+
* @summary List website files and directories
|
|
10897
|
+
* @param {string} username
|
|
10898
|
+
* @param {string} domain Domain name
|
|
10899
|
+
* @param {string} [directory] Directory path to check
|
|
10900
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10901
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10902
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10903
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
10904
|
+
* @param {*} [options] Override http request option.
|
|
10905
|
+
* @throws {RequiredError}
|
|
10906
|
+
* @memberof HostingFilesApi
|
|
10907
|
+
*/
|
|
10908
|
+
listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options) {
|
|
10909
|
+
return HostingFilesApiFp(this.configuration).listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(this.axios, this.basePath));
|
|
10910
|
+
}
|
|
10911
|
+
}
|
|
10524
10912
|
/**
|
|
10525
10913
|
* HostingNodeJSApi - axios parameter creator
|
|
10526
10914
|
* @export
|
|
@@ -11762,18 +12150,15 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
11762
12150
|
};
|
|
11763
12151
|
}),
|
|
11764
12152
|
/**
|
|
11765
|
-
*
|
|
12153
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
11766
12154
|
* @summary Delete website
|
|
11767
12155
|
* @param {string} domain Domain name
|
|
11768
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
11769
12156
|
* @param {*} [options] Override http request option.
|
|
11770
12157
|
* @throws {RequiredError}
|
|
11771
12158
|
*/
|
|
11772
|
-
deleteWebsiteV1: (domain_1,
|
|
12159
|
+
deleteWebsiteV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
11773
12160
|
// verify required parameter 'domain' is not null or undefined
|
|
11774
12161
|
assertParamExists('deleteWebsiteV1', 'domain', domain);
|
|
11775
|
-
// verify required parameter 'hostingV1WebsitesDeleteWebsiteRequest' is not null or undefined
|
|
11776
|
-
assertParamExists('deleteWebsiteV1', 'hostingV1WebsitesDeleteWebsiteRequest', hostingV1WebsitesDeleteWebsiteRequest);
|
|
11777
12162
|
const localVarPath = `/api/hosting/v1/websites/{domain}`
|
|
11778
12163
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
11779
12164
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11788,11 +12173,9 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
11788
12173
|
// authentication apiToken required
|
|
11789
12174
|
// http bearer authentication required
|
|
11790
12175
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11791
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11792
12176
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11793
12177
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11794
12178
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11795
|
-
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1WebsitesDeleteWebsiteRequest, localVarRequestOptions, configuration);
|
|
11796
12179
|
return {
|
|
11797
12180
|
url: toPathString(localVarUrlObj),
|
|
11798
12181
|
options: localVarRequestOptions,
|
|
@@ -11875,17 +12258,16 @@ export const HostingWebsitesApiFp = function (configuration) {
|
|
|
11875
12258
|
});
|
|
11876
12259
|
},
|
|
11877
12260
|
/**
|
|
11878
|
-
*
|
|
12261
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
11879
12262
|
* @summary Delete website
|
|
11880
12263
|
* @param {string} domain Domain name
|
|
11881
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
11882
12264
|
* @param {*} [options] Override http request option.
|
|
11883
12265
|
* @throws {RequiredError}
|
|
11884
12266
|
*/
|
|
11885
|
-
deleteWebsiteV1(domain,
|
|
12267
|
+
deleteWebsiteV1(domain, options) {
|
|
11886
12268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11887
12269
|
var _a, _b;
|
|
11888
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteV1(domain,
|
|
12270
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteV1(domain, options);
|
|
11889
12271
|
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWebsitesApi.deleteWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
11890
12272
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11891
12273
|
});
|
|
@@ -11930,15 +12312,14 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
|
|
|
11930
12312
|
return localVarFp.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
11931
12313
|
},
|
|
11932
12314
|
/**
|
|
11933
|
-
*
|
|
12315
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
11934
12316
|
* @summary Delete website
|
|
11935
12317
|
* @param {string} domain Domain name
|
|
11936
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
11937
12318
|
* @param {*} [options] Override http request option.
|
|
11938
12319
|
* @throws {RequiredError}
|
|
11939
12320
|
*/
|
|
11940
|
-
deleteWebsiteV1(domain,
|
|
11941
|
-
return localVarFp.deleteWebsiteV1(domain,
|
|
12321
|
+
deleteWebsiteV1(domain, options) {
|
|
12322
|
+
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
|
|
11942
12323
|
},
|
|
11943
12324
|
/**
|
|
11944
12325
|
* Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
@@ -11976,16 +12357,15 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
11976
12357
|
return HostingWebsitesApiFp(this.configuration).createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11977
12358
|
}
|
|
11978
12359
|
/**
|
|
11979
|
-
*
|
|
12360
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
11980
12361
|
* @summary Delete website
|
|
11981
12362
|
* @param {string} domain Domain name
|
|
11982
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
11983
12363
|
* @param {*} [options] Override http request option.
|
|
11984
12364
|
* @throws {RequiredError}
|
|
11985
12365
|
* @memberof HostingWebsitesApi
|
|
11986
12366
|
*/
|
|
11987
|
-
deleteWebsiteV1(domain,
|
|
11988
|
-
return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain,
|
|
12367
|
+
deleteWebsiteV1(domain, options) {
|
|
12368
|
+
return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
11989
12369
|
}
|
|
11990
12370
|
/**
|
|
11991
12371
|
* Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
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.32.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.32.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.32.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.32.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.32.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
|