hostinger-api-sdk 1.1.1 → 1.2.0
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 +710 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +433 -1
- package/dist/api.js +515 -3
- 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 +433 -1
- package/dist/esm/api.js +509 -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/HostingPHPApi.md +364 -0
- package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
- package/docs/HostingV1PhpPhpInfoResource.md +20 -0
- package/docs/HostingV1PhpPhpOptionResource.md +30 -0
- package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
- package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
- package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.0
|
|
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
|
|
@@ -22,8 +22,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
|
|
23
23
|
exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = void 0;
|
|
24
24
|
exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = void 0;
|
|
25
|
-
exports.
|
|
26
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = void 0;
|
|
26
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -6537,6 +6537,518 @@ exports.ListOrdersV1StatusesEnum = {
|
|
|
6537
6537
|
Deleted: 'deleted',
|
|
6538
6538
|
Suspended: 'suspended'
|
|
6539
6539
|
};
|
|
6540
|
+
/**
|
|
6541
|
+
* HostingPHPApi - axios parameter creator
|
|
6542
|
+
* @export
|
|
6543
|
+
*/
|
|
6544
|
+
const HostingPHPApiAxiosParamCreator = function (configuration) {
|
|
6545
|
+
return {
|
|
6546
|
+
/**
|
|
6547
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
6548
|
+
* @summary Get PHP details
|
|
6549
|
+
* @param {string} username
|
|
6550
|
+
* @param {string} domain Domain name
|
|
6551
|
+
* @param {*} [options] Override http request option.
|
|
6552
|
+
* @throws {RequiredError}
|
|
6553
|
+
*/
|
|
6554
|
+
getPHPDetailsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
6555
|
+
// verify required parameter 'username' is not null or undefined
|
|
6556
|
+
(0, common_1.assertParamExists)('getPHPDetailsV1', 'username', username);
|
|
6557
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6558
|
+
(0, common_1.assertParamExists)('getPHPDetailsV1', 'domain', domain);
|
|
6559
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
|
|
6560
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6561
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6562
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6563
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6564
|
+
let baseOptions;
|
|
6565
|
+
if (configuration) {
|
|
6566
|
+
baseOptions = configuration.baseOptions;
|
|
6567
|
+
}
|
|
6568
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6569
|
+
const localVarHeaderParameter = {};
|
|
6570
|
+
const localVarQueryParameter = {};
|
|
6571
|
+
// authentication apiToken required
|
|
6572
|
+
// http bearer authentication required
|
|
6573
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6574
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6576
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6577
|
+
return {
|
|
6578
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6579
|
+
options: localVarRequestOptions,
|
|
6580
|
+
};
|
|
6581
|
+
}),
|
|
6582
|
+
/**
|
|
6583
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
6584
|
+
* @summary Get PHP info
|
|
6585
|
+
* @param {string} username
|
|
6586
|
+
* @param {string} domain Domain name
|
|
6587
|
+
* @param {*} [options] Override http request option.
|
|
6588
|
+
* @throws {RequiredError}
|
|
6589
|
+
*/
|
|
6590
|
+
getPHPInfoV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
6591
|
+
// verify required parameter 'username' is not null or undefined
|
|
6592
|
+
(0, common_1.assertParamExists)('getPHPInfoV1', 'username', username);
|
|
6593
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6594
|
+
(0, common_1.assertParamExists)('getPHPInfoV1', 'domain', domain);
|
|
6595
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
|
|
6596
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6597
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6598
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6599
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6600
|
+
let baseOptions;
|
|
6601
|
+
if (configuration) {
|
|
6602
|
+
baseOptions = configuration.baseOptions;
|
|
6603
|
+
}
|
|
6604
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6605
|
+
const localVarHeaderParameter = {};
|
|
6606
|
+
const localVarQueryParameter = {};
|
|
6607
|
+
// authentication apiToken required
|
|
6608
|
+
// http bearer authentication required
|
|
6609
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6610
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6612
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6613
|
+
return {
|
|
6614
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6615
|
+
options: localVarRequestOptions,
|
|
6616
|
+
};
|
|
6617
|
+
}),
|
|
6618
|
+
/**
|
|
6619
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
6620
|
+
* @summary Reset PHP extensions
|
|
6621
|
+
* @param {string} username
|
|
6622
|
+
* @param {string} domain Domain name
|
|
6623
|
+
* @param {*} [options] Override http request option.
|
|
6624
|
+
* @throws {RequiredError}
|
|
6625
|
+
*/
|
|
6626
|
+
resetPHPExtensionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
6627
|
+
// verify required parameter 'username' is not null or undefined
|
|
6628
|
+
(0, common_1.assertParamExists)('resetPHPExtensionsV1', 'username', username);
|
|
6629
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6630
|
+
(0, common_1.assertParamExists)('resetPHPExtensionsV1', 'domain', domain);
|
|
6631
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
|
|
6632
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6633
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6635
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6636
|
+
let baseOptions;
|
|
6637
|
+
if (configuration) {
|
|
6638
|
+
baseOptions = configuration.baseOptions;
|
|
6639
|
+
}
|
|
6640
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6641
|
+
const localVarHeaderParameter = {};
|
|
6642
|
+
const localVarQueryParameter = {};
|
|
6643
|
+
// authentication apiToken required
|
|
6644
|
+
// http bearer authentication required
|
|
6645
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6646
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6648
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6649
|
+
return {
|
|
6650
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6651
|
+
options: localVarRequestOptions,
|
|
6652
|
+
};
|
|
6653
|
+
}),
|
|
6654
|
+
/**
|
|
6655
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
6656
|
+
* @summary Update PHP extensions
|
|
6657
|
+
* @param {string} username
|
|
6658
|
+
* @param {string} domain Domain name
|
|
6659
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
6660
|
+
* @param {*} [options] Override http request option.
|
|
6661
|
+
* @throws {RequiredError}
|
|
6662
|
+
*/
|
|
6663
|
+
updatePHPExtensionsV1: (username_1, domain_1, hostingV1PhpUpdatePhpExtensionsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpExtensionsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options = {}) {
|
|
6664
|
+
// verify required parameter 'username' is not null or undefined
|
|
6665
|
+
(0, common_1.assertParamExists)('updatePHPExtensionsV1', 'username', username);
|
|
6666
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6667
|
+
(0, common_1.assertParamExists)('updatePHPExtensionsV1', 'domain', domain);
|
|
6668
|
+
// verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
|
|
6669
|
+
(0, common_1.assertParamExists)('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest);
|
|
6670
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
|
|
6671
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6672
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6673
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6674
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6675
|
+
let baseOptions;
|
|
6676
|
+
if (configuration) {
|
|
6677
|
+
baseOptions = configuration.baseOptions;
|
|
6678
|
+
}
|
|
6679
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6680
|
+
const localVarHeaderParameter = {};
|
|
6681
|
+
const localVarQueryParameter = {};
|
|
6682
|
+
// authentication apiToken required
|
|
6683
|
+
// http bearer authentication required
|
|
6684
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6685
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6686
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6687
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6688
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6689
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration);
|
|
6690
|
+
return {
|
|
6691
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6692
|
+
options: localVarRequestOptions,
|
|
6693
|
+
};
|
|
6694
|
+
}),
|
|
6695
|
+
/**
|
|
6696
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
6697
|
+
* @summary Update PHP options
|
|
6698
|
+
* @param {string} username
|
|
6699
|
+
* @param {string} domain Domain name
|
|
6700
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
6701
|
+
* @param {*} [options] Override http request option.
|
|
6702
|
+
* @throws {RequiredError}
|
|
6703
|
+
*/
|
|
6704
|
+
updatePHPOptionsV1: (username_1, domain_1, hostingV1PhpUpdatePhpOptionsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpOptionsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpOptionsRequest, options = {}) {
|
|
6705
|
+
// verify required parameter 'username' is not null or undefined
|
|
6706
|
+
(0, common_1.assertParamExists)('updatePHPOptionsV1', 'username', username);
|
|
6707
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6708
|
+
(0, common_1.assertParamExists)('updatePHPOptionsV1', 'domain', domain);
|
|
6709
|
+
// verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
|
|
6710
|
+
(0, common_1.assertParamExists)('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest);
|
|
6711
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
|
|
6712
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6713
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6715
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6716
|
+
let baseOptions;
|
|
6717
|
+
if (configuration) {
|
|
6718
|
+
baseOptions = configuration.baseOptions;
|
|
6719
|
+
}
|
|
6720
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6721
|
+
const localVarHeaderParameter = {};
|
|
6722
|
+
const localVarQueryParameter = {};
|
|
6723
|
+
// authentication apiToken required
|
|
6724
|
+
// http bearer authentication required
|
|
6725
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6726
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6727
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6728
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6729
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6730
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration);
|
|
6731
|
+
return {
|
|
6732
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6733
|
+
options: localVarRequestOptions,
|
|
6734
|
+
};
|
|
6735
|
+
}),
|
|
6736
|
+
/**
|
|
6737
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
6738
|
+
* @summary Update PHP version
|
|
6739
|
+
* @param {string} username
|
|
6740
|
+
* @param {string} domain Domain name
|
|
6741
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
6742
|
+
* @param {*} [options] Override http request option.
|
|
6743
|
+
* @throws {RequiredError}
|
|
6744
|
+
*/
|
|
6745
|
+
updatePHPVersionV1: (username_1, domain_1, hostingV1PhpUpdatePhpVersionRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpVersionRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpVersionRequest, options = {}) {
|
|
6746
|
+
// verify required parameter 'username' is not null or undefined
|
|
6747
|
+
(0, common_1.assertParamExists)('updatePHPVersionV1', 'username', username);
|
|
6748
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6749
|
+
(0, common_1.assertParamExists)('updatePHPVersionV1', 'domain', domain);
|
|
6750
|
+
// verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
|
|
6751
|
+
(0, common_1.assertParamExists)('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest);
|
|
6752
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
|
|
6753
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6754
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6755
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6756
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6757
|
+
let baseOptions;
|
|
6758
|
+
if (configuration) {
|
|
6759
|
+
baseOptions = configuration.baseOptions;
|
|
6760
|
+
}
|
|
6761
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6762
|
+
const localVarHeaderParameter = {};
|
|
6763
|
+
const localVarQueryParameter = {};
|
|
6764
|
+
// authentication apiToken required
|
|
6765
|
+
// http bearer authentication required
|
|
6766
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6767
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6768
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6770
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6771
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration);
|
|
6772
|
+
return {
|
|
6773
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6774
|
+
options: localVarRequestOptions,
|
|
6775
|
+
};
|
|
6776
|
+
}),
|
|
6777
|
+
};
|
|
6778
|
+
};
|
|
6779
|
+
exports.HostingPHPApiAxiosParamCreator = HostingPHPApiAxiosParamCreator;
|
|
6780
|
+
/**
|
|
6781
|
+
* HostingPHPApi - functional programming interface
|
|
6782
|
+
* @export
|
|
6783
|
+
*/
|
|
6784
|
+
const HostingPHPApiFp = function (configuration) {
|
|
6785
|
+
const localVarAxiosParamCreator = (0, exports.HostingPHPApiAxiosParamCreator)(configuration);
|
|
6786
|
+
return {
|
|
6787
|
+
/**
|
|
6788
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
6789
|
+
* @summary Get PHP details
|
|
6790
|
+
* @param {string} username
|
|
6791
|
+
* @param {string} domain Domain name
|
|
6792
|
+
* @param {*} [options] Override http request option.
|
|
6793
|
+
* @throws {RequiredError}
|
|
6794
|
+
*/
|
|
6795
|
+
getPHPDetailsV1(username, domain, options) {
|
|
6796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6797
|
+
var _a, _b;
|
|
6798
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
|
|
6799
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.getPHPDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6800
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6801
|
+
});
|
|
6802
|
+
},
|
|
6803
|
+
/**
|
|
6804
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
6805
|
+
* @summary Get PHP info
|
|
6806
|
+
* @param {string} username
|
|
6807
|
+
* @param {string} domain Domain name
|
|
6808
|
+
* @param {*} [options] Override http request option.
|
|
6809
|
+
* @throws {RequiredError}
|
|
6810
|
+
*/
|
|
6811
|
+
getPHPInfoV1(username, domain, options) {
|
|
6812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6813
|
+
var _a, _b;
|
|
6814
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
|
|
6815
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.getPHPInfoV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6816
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6817
|
+
});
|
|
6818
|
+
},
|
|
6819
|
+
/**
|
|
6820
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
6821
|
+
* @summary Reset PHP extensions
|
|
6822
|
+
* @param {string} username
|
|
6823
|
+
* @param {string} domain Domain name
|
|
6824
|
+
* @param {*} [options] Override http request option.
|
|
6825
|
+
* @throws {RequiredError}
|
|
6826
|
+
*/
|
|
6827
|
+
resetPHPExtensionsV1(username, domain, options) {
|
|
6828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6829
|
+
var _a, _b;
|
|
6830
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
|
|
6831
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.resetPHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6832
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6833
|
+
});
|
|
6834
|
+
},
|
|
6835
|
+
/**
|
|
6836
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
6837
|
+
* @summary Update PHP extensions
|
|
6838
|
+
* @param {string} username
|
|
6839
|
+
* @param {string} domain Domain name
|
|
6840
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
6841
|
+
* @param {*} [options] Override http request option.
|
|
6842
|
+
* @throws {RequiredError}
|
|
6843
|
+
*/
|
|
6844
|
+
updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
|
|
6845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6846
|
+
var _a, _b;
|
|
6847
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
|
|
6848
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.updatePHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6849
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6850
|
+
});
|
|
6851
|
+
},
|
|
6852
|
+
/**
|
|
6853
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
6854
|
+
* @summary Update PHP options
|
|
6855
|
+
* @param {string} username
|
|
6856
|
+
* @param {string} domain Domain name
|
|
6857
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
6858
|
+
* @param {*} [options] Override http request option.
|
|
6859
|
+
* @throws {RequiredError}
|
|
6860
|
+
*/
|
|
6861
|
+
updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
|
|
6862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6863
|
+
var _a, _b;
|
|
6864
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
|
|
6865
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.updatePHPOptionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6866
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6867
|
+
});
|
|
6868
|
+
},
|
|
6869
|
+
/**
|
|
6870
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
6871
|
+
* @summary Update PHP version
|
|
6872
|
+
* @param {string} username
|
|
6873
|
+
* @param {string} domain Domain name
|
|
6874
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
6875
|
+
* @param {*} [options] Override http request option.
|
|
6876
|
+
* @throws {RequiredError}
|
|
6877
|
+
*/
|
|
6878
|
+
updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
|
|
6879
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6880
|
+
var _a, _b;
|
|
6881
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
|
|
6882
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPHPApi.updatePHPVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6884
|
+
});
|
|
6885
|
+
},
|
|
6886
|
+
};
|
|
6887
|
+
};
|
|
6888
|
+
exports.HostingPHPApiFp = HostingPHPApiFp;
|
|
6889
|
+
/**
|
|
6890
|
+
* HostingPHPApi - factory interface
|
|
6891
|
+
* @export
|
|
6892
|
+
*/
|
|
6893
|
+
const HostingPHPApiFactory = function (configuration, basePath, axios) {
|
|
6894
|
+
const localVarFp = (0, exports.HostingPHPApiFp)(configuration);
|
|
6895
|
+
return {
|
|
6896
|
+
/**
|
|
6897
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
6898
|
+
* @summary Get PHP details
|
|
6899
|
+
* @param {string} username
|
|
6900
|
+
* @param {string} domain Domain name
|
|
6901
|
+
* @param {*} [options] Override http request option.
|
|
6902
|
+
* @throws {RequiredError}
|
|
6903
|
+
*/
|
|
6904
|
+
getPHPDetailsV1(username, domain, options) {
|
|
6905
|
+
return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
6906
|
+
},
|
|
6907
|
+
/**
|
|
6908
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
6909
|
+
* @summary Get PHP info
|
|
6910
|
+
* @param {string} username
|
|
6911
|
+
* @param {string} domain Domain name
|
|
6912
|
+
* @param {*} [options] Override http request option.
|
|
6913
|
+
* @throws {RequiredError}
|
|
6914
|
+
*/
|
|
6915
|
+
getPHPInfoV1(username, domain, options) {
|
|
6916
|
+
return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
|
|
6917
|
+
},
|
|
6918
|
+
/**
|
|
6919
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
6920
|
+
* @summary Reset PHP extensions
|
|
6921
|
+
* @param {string} username
|
|
6922
|
+
* @param {string} domain Domain name
|
|
6923
|
+
* @param {*} [options] Override http request option.
|
|
6924
|
+
* @throws {RequiredError}
|
|
6925
|
+
*/
|
|
6926
|
+
resetPHPExtensionsV1(username, domain, options) {
|
|
6927
|
+
return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
6928
|
+
},
|
|
6929
|
+
/**
|
|
6930
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
6931
|
+
* @summary Update PHP extensions
|
|
6932
|
+
* @param {string} username
|
|
6933
|
+
* @param {string} domain Domain name
|
|
6934
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
6935
|
+
* @param {*} [options] Override http request option.
|
|
6936
|
+
* @throws {RequiredError}
|
|
6937
|
+
*/
|
|
6938
|
+
updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
|
|
6939
|
+
return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
|
|
6940
|
+
},
|
|
6941
|
+
/**
|
|
6942
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
6943
|
+
* @summary Update PHP options
|
|
6944
|
+
* @param {string} username
|
|
6945
|
+
* @param {string} domain Domain name
|
|
6946
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
6947
|
+
* @param {*} [options] Override http request option.
|
|
6948
|
+
* @throws {RequiredError}
|
|
6949
|
+
*/
|
|
6950
|
+
updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
|
|
6951
|
+
return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
|
|
6952
|
+
},
|
|
6953
|
+
/**
|
|
6954
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
6955
|
+
* @summary Update PHP version
|
|
6956
|
+
* @param {string} username
|
|
6957
|
+
* @param {string} domain Domain name
|
|
6958
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
6959
|
+
* @param {*} [options] Override http request option.
|
|
6960
|
+
* @throws {RequiredError}
|
|
6961
|
+
*/
|
|
6962
|
+
updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
|
|
6963
|
+
return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
|
|
6964
|
+
},
|
|
6965
|
+
};
|
|
6966
|
+
};
|
|
6967
|
+
exports.HostingPHPApiFactory = HostingPHPApiFactory;
|
|
6968
|
+
/**
|
|
6969
|
+
* HostingPHPApi - object-oriented interface
|
|
6970
|
+
* @export
|
|
6971
|
+
* @class HostingPHPApi
|
|
6972
|
+
* @extends {BaseAPI}
|
|
6973
|
+
*/
|
|
6974
|
+
class HostingPHPApi extends base_1.BaseAPI {
|
|
6975
|
+
/**
|
|
6976
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
6977
|
+
* @summary Get PHP details
|
|
6978
|
+
* @param {string} username
|
|
6979
|
+
* @param {string} domain Domain name
|
|
6980
|
+
* @param {*} [options] Override http request option.
|
|
6981
|
+
* @throws {RequiredError}
|
|
6982
|
+
* @memberof HostingPHPApi
|
|
6983
|
+
*/
|
|
6984
|
+
getPHPDetailsV1(username, domain, options) {
|
|
6985
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
6986
|
+
}
|
|
6987
|
+
/**
|
|
6988
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
6989
|
+
* @summary Get PHP info
|
|
6990
|
+
* @param {string} username
|
|
6991
|
+
* @param {string} domain Domain name
|
|
6992
|
+
* @param {*} [options] Override http request option.
|
|
6993
|
+
* @throws {RequiredError}
|
|
6994
|
+
* @memberof HostingPHPApi
|
|
6995
|
+
*/
|
|
6996
|
+
getPHPInfoV1(username, domain, options) {
|
|
6997
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
6998
|
+
}
|
|
6999
|
+
/**
|
|
7000
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
7001
|
+
* @summary Reset PHP extensions
|
|
7002
|
+
* @param {string} username
|
|
7003
|
+
* @param {string} domain Domain name
|
|
7004
|
+
* @param {*} [options] Override http request option.
|
|
7005
|
+
* @throws {RequiredError}
|
|
7006
|
+
* @memberof HostingPHPApi
|
|
7007
|
+
*/
|
|
7008
|
+
resetPHPExtensionsV1(username, domain, options) {
|
|
7009
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
7010
|
+
}
|
|
7011
|
+
/**
|
|
7012
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
7013
|
+
* @summary Update PHP extensions
|
|
7014
|
+
* @param {string} username
|
|
7015
|
+
* @param {string} domain Domain name
|
|
7016
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
7017
|
+
* @param {*} [options] Override http request option.
|
|
7018
|
+
* @throws {RequiredError}
|
|
7019
|
+
* @memberof HostingPHPApi
|
|
7020
|
+
*/
|
|
7021
|
+
updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
|
|
7022
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7023
|
+
}
|
|
7024
|
+
/**
|
|
7025
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
7026
|
+
* @summary Update PHP options
|
|
7027
|
+
* @param {string} username
|
|
7028
|
+
* @param {string} domain Domain name
|
|
7029
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
7030
|
+
* @param {*} [options] Override http request option.
|
|
7031
|
+
* @throws {RequiredError}
|
|
7032
|
+
* @memberof HostingPHPApi
|
|
7033
|
+
*/
|
|
7034
|
+
updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
|
|
7035
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7036
|
+
}
|
|
7037
|
+
/**
|
|
7038
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
7039
|
+
* @summary Update PHP version
|
|
7040
|
+
* @param {string} username
|
|
7041
|
+
* @param {string} domain Domain name
|
|
7042
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
7043
|
+
* @param {*} [options] Override http request option.
|
|
7044
|
+
* @throws {RequiredError}
|
|
7045
|
+
* @memberof HostingPHPApi
|
|
7046
|
+
*/
|
|
7047
|
+
updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
|
|
7048
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7049
|
+
}
|
|
7050
|
+
}
|
|
7051
|
+
exports.HostingPHPApi = HostingPHPApi;
|
|
6540
7052
|
/**
|
|
6541
7053
|
* HostingWebsitesApi - axios parameter creator
|
|
6542
7054
|
* @export
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.0
|
|
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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.0
|
|
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
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.0
|
|
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/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.0
|
|
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
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.0
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.0
|
|
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
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.2.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|