hostinger-api-sdk 1.1.1 → 1.2.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 +1036 -30
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +652 -9
- package/dist/api.js +680 -17
- 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 +652 -9
- package/dist/esm/api.js +674 -15
- 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/EcommerceSalesChannelsApi.md +66 -4
- package/docs/EcommerceStoresApi.md +54 -0
- package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
- package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
- package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
- 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.1
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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
|
|
@@ -3525,17 +3525,17 @@ const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
3525
3525
|
return {
|
|
3526
3526
|
/**
|
|
3527
3527
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3528
|
-
* @summary Create
|
|
3528
|
+
* @summary Create custom sales channel
|
|
3529
3529
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3530
3530
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3531
3531
|
* @param {*} [options] Override http request option.
|
|
3532
3532
|
* @throws {RequiredError}
|
|
3533
3533
|
*/
|
|
3534
|
-
|
|
3534
|
+
createCustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
|
|
3535
3535
|
// verify required parameter 'storeId' is not null or undefined
|
|
3536
|
-
(0, common_1.assertParamExists)('
|
|
3536
|
+
(0, common_1.assertParamExists)('createCustomSalesChannelV1', 'storeId', storeId);
|
|
3537
3537
|
// verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
|
|
3538
|
-
(0, common_1.assertParamExists)('
|
|
3538
|
+
(0, common_1.assertParamExists)('createCustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
|
|
3539
3539
|
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
3540
3540
|
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3541
3541
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3592,6 +3592,47 @@ const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
3592
3592
|
options: localVarRequestOptions,
|
|
3593
3593
|
};
|
|
3594
3594
|
}),
|
|
3595
|
+
/**
|
|
3596
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3597
|
+
* @summary Update sales channel
|
|
3598
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3599
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3600
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3601
|
+
* @param {*} [options] Override http request option.
|
|
3602
|
+
* @throws {RequiredError}
|
|
3603
|
+
*/
|
|
3604
|
+
updateSalesChannelV1: (storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1) => __awaiter(this, [storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1], void 0, function* (storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options = {}) {
|
|
3605
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3606
|
+
(0, common_1.assertParamExists)('updateSalesChannelV1', 'storeId', storeId);
|
|
3607
|
+
// verify required parameter 'salesChannelId' is not null or undefined
|
|
3608
|
+
(0, common_1.assertParamExists)('updateSalesChannelV1', 'salesChannelId', salesChannelId);
|
|
3609
|
+
// verify required parameter 'ecommerceV1SalesChannelUpdateRequest' is not null or undefined
|
|
3610
|
+
(0, common_1.assertParamExists)('updateSalesChannelV1', 'ecommerceV1SalesChannelUpdateRequest', ecommerceV1SalesChannelUpdateRequest);
|
|
3611
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}`
|
|
3612
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
|
|
3613
|
+
.replace(`{${"sales_channel_id"}}`, encodeURIComponent(String(salesChannelId)));
|
|
3614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3615
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3616
|
+
let baseOptions;
|
|
3617
|
+
if (configuration) {
|
|
3618
|
+
baseOptions = configuration.baseOptions;
|
|
3619
|
+
}
|
|
3620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3621
|
+
const localVarHeaderParameter = {};
|
|
3622
|
+
const localVarQueryParameter = {};
|
|
3623
|
+
// authentication apiToken required
|
|
3624
|
+
// http bearer authentication required
|
|
3625
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3626
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3627
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3630
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1SalesChannelUpdateRequest, localVarRequestOptions, configuration);
|
|
3631
|
+
return {
|
|
3632
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3633
|
+
options: localVarRequestOptions,
|
|
3634
|
+
};
|
|
3635
|
+
}),
|
|
3595
3636
|
};
|
|
3596
3637
|
};
|
|
3597
3638
|
exports.EcommerceSalesChannelsApiAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator;
|
|
@@ -3604,17 +3645,17 @@ const EcommerceSalesChannelsApiFp = function (configuration) {
|
|
|
3604
3645
|
return {
|
|
3605
3646
|
/**
|
|
3606
3647
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3607
|
-
* @summary Create
|
|
3648
|
+
* @summary Create custom sales channel
|
|
3608
3649
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3609
3650
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3610
3651
|
* @param {*} [options] Override http request option.
|
|
3611
3652
|
* @throws {RequiredError}
|
|
3612
3653
|
*/
|
|
3613
|
-
|
|
3654
|
+
createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3614
3655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3615
3656
|
var _a, _b;
|
|
3616
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3617
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.
|
|
3657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
|
|
3658
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.createCustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3618
3659
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3619
3660
|
});
|
|
3620
3661
|
},
|
|
@@ -3633,6 +3674,23 @@ const EcommerceSalesChannelsApiFp = function (configuration) {
|
|
|
3633
3674
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3634
3675
|
});
|
|
3635
3676
|
},
|
|
3677
|
+
/**
|
|
3678
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3679
|
+
* @summary Update sales channel
|
|
3680
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3681
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3682
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3683
|
+
* @param {*} [options] Override http request option.
|
|
3684
|
+
* @throws {RequiredError}
|
|
3685
|
+
*/
|
|
3686
|
+
updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
|
|
3687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3688
|
+
var _a, _b;
|
|
3689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options);
|
|
3690
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceSalesChannelsApi.updateSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3691
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3692
|
+
});
|
|
3693
|
+
},
|
|
3636
3694
|
};
|
|
3637
3695
|
};
|
|
3638
3696
|
exports.EcommerceSalesChannelsApiFp = EcommerceSalesChannelsApiFp;
|
|
@@ -3645,14 +3703,14 @@ const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axio
|
|
|
3645
3703
|
return {
|
|
3646
3704
|
/**
|
|
3647
3705
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3648
|
-
* @summary Create
|
|
3706
|
+
* @summary Create custom sales channel
|
|
3649
3707
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3650
3708
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3651
3709
|
* @param {*} [options] Override http request option.
|
|
3652
3710
|
* @throws {RequiredError}
|
|
3653
3711
|
*/
|
|
3654
|
-
|
|
3655
|
-
return localVarFp.
|
|
3712
|
+
createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3713
|
+
return localVarFp.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
|
|
3656
3714
|
},
|
|
3657
3715
|
/**
|
|
3658
3716
|
* List a store\'s active sales channels with their full metadata.
|
|
@@ -3664,6 +3722,18 @@ const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axio
|
|
|
3664
3722
|
listSalesChannelsV1(storeId, options) {
|
|
3665
3723
|
return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
|
|
3666
3724
|
},
|
|
3725
|
+
/**
|
|
3726
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3727
|
+
* @summary Update sales channel
|
|
3728
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3729
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3730
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3731
|
+
* @param {*} [options] Override http request option.
|
|
3732
|
+
* @throws {RequiredError}
|
|
3733
|
+
*/
|
|
3734
|
+
updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
|
|
3735
|
+
return localVarFp.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(axios, basePath));
|
|
3736
|
+
},
|
|
3667
3737
|
};
|
|
3668
3738
|
};
|
|
3669
3739
|
exports.EcommerceSalesChannelsApiFactory = EcommerceSalesChannelsApiFactory;
|
|
@@ -3676,15 +3746,15 @@ exports.EcommerceSalesChannelsApiFactory = EcommerceSalesChannelsApiFactory;
|
|
|
3676
3746
|
class EcommerceSalesChannelsApi extends base_1.BaseAPI {
|
|
3677
3747
|
/**
|
|
3678
3748
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
|
|
3679
|
-
* @summary Create
|
|
3749
|
+
* @summary Create custom sales channel
|
|
3680
3750
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
3681
3751
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
3682
3752
|
* @param {*} [options] Override http request option.
|
|
3683
3753
|
* @throws {RequiredError}
|
|
3684
3754
|
* @memberof EcommerceSalesChannelsApi
|
|
3685
3755
|
*/
|
|
3686
|
-
|
|
3687
|
-
return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).
|
|
3756
|
+
createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
|
|
3757
|
+
return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3688
3758
|
}
|
|
3689
3759
|
/**
|
|
3690
3760
|
* List a store\'s active sales channels with their full metadata.
|
|
@@ -3697,6 +3767,19 @@ class EcommerceSalesChannelsApi extends base_1.BaseAPI {
|
|
|
3697
3767
|
listSalesChannelsV1(storeId, options) {
|
|
3698
3768
|
return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
3699
3769
|
}
|
|
3770
|
+
/**
|
|
3771
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
3772
|
+
* @summary Update sales channel
|
|
3773
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
3774
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
3775
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
3776
|
+
* @param {*} [options] Override http request option.
|
|
3777
|
+
* @throws {RequiredError}
|
|
3778
|
+
* @memberof EcommerceSalesChannelsApi
|
|
3779
|
+
*/
|
|
3780
|
+
updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
|
|
3781
|
+
return (0, exports.EcommerceSalesChannelsApiFp)(this.configuration).updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3782
|
+
}
|
|
3700
3783
|
}
|
|
3701
3784
|
exports.EcommerceSalesChannelsApi = EcommerceSalesChannelsApi;
|
|
3702
3785
|
/**
|
|
@@ -3884,6 +3967,38 @@ const EcommerceStoresApiAxiosParamCreator = function (configuration) {
|
|
|
3884
3967
|
options: localVarRequestOptions,
|
|
3885
3968
|
};
|
|
3886
3969
|
}),
|
|
3970
|
+
/**
|
|
3971
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
3972
|
+
* @summary Get store metadata
|
|
3973
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
3974
|
+
* @param {*} [options] Override http request option.
|
|
3975
|
+
* @throws {RequiredError}
|
|
3976
|
+
*/
|
|
3977
|
+
getStoreMetadataV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
|
|
3978
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3979
|
+
(0, common_1.assertParamExists)('getStoreMetadataV1', 'storeId', storeId);
|
|
3980
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/metadata`
|
|
3981
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3982
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3983
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3984
|
+
let baseOptions;
|
|
3985
|
+
if (configuration) {
|
|
3986
|
+
baseOptions = configuration.baseOptions;
|
|
3987
|
+
}
|
|
3988
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3989
|
+
const localVarHeaderParameter = {};
|
|
3990
|
+
const localVarQueryParameter = {};
|
|
3991
|
+
// authentication apiToken required
|
|
3992
|
+
// http bearer authentication required
|
|
3993
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3994
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3995
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3996
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3997
|
+
return {
|
|
3998
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3999
|
+
options: localVarRequestOptions,
|
|
4000
|
+
};
|
|
4001
|
+
}),
|
|
3887
4002
|
/**
|
|
3888
4003
|
* Retrieve the stores associated with your account.
|
|
3889
4004
|
* @summary Get stores
|
|
@@ -3956,6 +4071,21 @@ const EcommerceStoresApiFp = function (configuration) {
|
|
|
3956
4071
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3957
4072
|
});
|
|
3958
4073
|
},
|
|
4074
|
+
/**
|
|
4075
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
4076
|
+
* @summary Get store metadata
|
|
4077
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
4078
|
+
* @param {*} [options] Override http request option.
|
|
4079
|
+
* @throws {RequiredError}
|
|
4080
|
+
*/
|
|
4081
|
+
getStoreMetadataV1(storeId, options) {
|
|
4082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4083
|
+
var _a, _b;
|
|
4084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoreMetadataV1(storeId, options);
|
|
4085
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.getStoreMetadataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4086
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4087
|
+
});
|
|
4088
|
+
},
|
|
3959
4089
|
/**
|
|
3960
4090
|
* Retrieve the stores associated with your account.
|
|
3961
4091
|
* @summary Get stores
|
|
@@ -4001,6 +4131,16 @@ const EcommerceStoresApiFactory = function (configuration, basePath, axios) {
|
|
|
4001
4131
|
deleteStoreV1(storeId, options) {
|
|
4002
4132
|
return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
|
|
4003
4133
|
},
|
|
4134
|
+
/**
|
|
4135
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
4136
|
+
* @summary Get store metadata
|
|
4137
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
4138
|
+
* @param {*} [options] Override http request option.
|
|
4139
|
+
* @throws {RequiredError}
|
|
4140
|
+
*/
|
|
4141
|
+
getStoreMetadataV1(storeId, options) {
|
|
4142
|
+
return localVarFp.getStoreMetadataV1(storeId, options).then((request) => request(axios, basePath));
|
|
4143
|
+
},
|
|
4004
4144
|
/**
|
|
4005
4145
|
* Retrieve the stores associated with your account.
|
|
4006
4146
|
* @summary Get stores
|
|
@@ -4043,6 +4183,17 @@ class EcommerceStoresApi extends base_1.BaseAPI {
|
|
|
4043
4183
|
deleteStoreV1(storeId, options) {
|
|
4044
4184
|
return (0, exports.EcommerceStoresApiFp)(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
4045
4185
|
}
|
|
4186
|
+
/**
|
|
4187
|
+
* Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
4188
|
+
* @summary Get store metadata
|
|
4189
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
4190
|
+
* @param {*} [options] Override http request option.
|
|
4191
|
+
* @throws {RequiredError}
|
|
4192
|
+
* @memberof EcommerceStoresApi
|
|
4193
|
+
*/
|
|
4194
|
+
getStoreMetadataV1(storeId, options) {
|
|
4195
|
+
return (0, exports.EcommerceStoresApiFp)(this.configuration).getStoreMetadataV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
4196
|
+
}
|
|
4046
4197
|
/**
|
|
4047
4198
|
* Retrieve the stores associated with your account.
|
|
4048
4199
|
* @summary Get stores
|
|
@@ -6537,6 +6688,518 @@ exports.ListOrdersV1StatusesEnum = {
|
|
|
6537
6688
|
Deleted: 'deleted',
|
|
6538
6689
|
Suspended: 'suspended'
|
|
6539
6690
|
};
|
|
6691
|
+
/**
|
|
6692
|
+
* HostingPHPApi - axios parameter creator
|
|
6693
|
+
* @export
|
|
6694
|
+
*/
|
|
6695
|
+
const HostingPHPApiAxiosParamCreator = function (configuration) {
|
|
6696
|
+
return {
|
|
6697
|
+
/**
|
|
6698
|
+
* 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.
|
|
6699
|
+
* @summary Get PHP details
|
|
6700
|
+
* @param {string} username
|
|
6701
|
+
* @param {string} domain Domain name
|
|
6702
|
+
* @param {*} [options] Override http request option.
|
|
6703
|
+
* @throws {RequiredError}
|
|
6704
|
+
*/
|
|
6705
|
+
getPHPDetailsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
6706
|
+
// verify required parameter 'username' is not null or undefined
|
|
6707
|
+
(0, common_1.assertParamExists)('getPHPDetailsV1', 'username', username);
|
|
6708
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6709
|
+
(0, common_1.assertParamExists)('getPHPDetailsV1', 'domain', domain);
|
|
6710
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
|
|
6711
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6712
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6714
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6715
|
+
let baseOptions;
|
|
6716
|
+
if (configuration) {
|
|
6717
|
+
baseOptions = configuration.baseOptions;
|
|
6718
|
+
}
|
|
6719
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6720
|
+
const localVarHeaderParameter = {};
|
|
6721
|
+
const localVarQueryParameter = {};
|
|
6722
|
+
// authentication apiToken required
|
|
6723
|
+
// http bearer authentication required
|
|
6724
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6725
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6727
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6728
|
+
return {
|
|
6729
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6730
|
+
options: localVarRequestOptions,
|
|
6731
|
+
};
|
|
6732
|
+
}),
|
|
6733
|
+
/**
|
|
6734
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
6735
|
+
* @summary Get PHP info
|
|
6736
|
+
* @param {string} username
|
|
6737
|
+
* @param {string} domain Domain name
|
|
6738
|
+
* @param {*} [options] Override http request option.
|
|
6739
|
+
* @throws {RequiredError}
|
|
6740
|
+
*/
|
|
6741
|
+
getPHPInfoV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
6742
|
+
// verify required parameter 'username' is not null or undefined
|
|
6743
|
+
(0, common_1.assertParamExists)('getPHPInfoV1', 'username', username);
|
|
6744
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6745
|
+
(0, common_1.assertParamExists)('getPHPInfoV1', 'domain', domain);
|
|
6746
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
|
|
6747
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6748
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6750
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6751
|
+
let baseOptions;
|
|
6752
|
+
if (configuration) {
|
|
6753
|
+
baseOptions = configuration.baseOptions;
|
|
6754
|
+
}
|
|
6755
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6756
|
+
const localVarHeaderParameter = {};
|
|
6757
|
+
const localVarQueryParameter = {};
|
|
6758
|
+
// authentication apiToken required
|
|
6759
|
+
// http bearer authentication required
|
|
6760
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6761
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6762
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6763
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6764
|
+
return {
|
|
6765
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6766
|
+
options: localVarRequestOptions,
|
|
6767
|
+
};
|
|
6768
|
+
}),
|
|
6769
|
+
/**
|
|
6770
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
6771
|
+
* @summary Reset PHP extensions
|
|
6772
|
+
* @param {string} username
|
|
6773
|
+
* @param {string} domain Domain name
|
|
6774
|
+
* @param {*} [options] Override http request option.
|
|
6775
|
+
* @throws {RequiredError}
|
|
6776
|
+
*/
|
|
6777
|
+
resetPHPExtensionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
6778
|
+
// verify required parameter 'username' is not null or undefined
|
|
6779
|
+
(0, common_1.assertParamExists)('resetPHPExtensionsV1', 'username', username);
|
|
6780
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6781
|
+
(0, common_1.assertParamExists)('resetPHPExtensionsV1', 'domain', domain);
|
|
6782
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
|
|
6783
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6784
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6786
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6787
|
+
let baseOptions;
|
|
6788
|
+
if (configuration) {
|
|
6789
|
+
baseOptions = configuration.baseOptions;
|
|
6790
|
+
}
|
|
6791
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6792
|
+
const localVarHeaderParameter = {};
|
|
6793
|
+
const localVarQueryParameter = {};
|
|
6794
|
+
// authentication apiToken required
|
|
6795
|
+
// http bearer authentication required
|
|
6796
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6797
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6798
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6799
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6800
|
+
return {
|
|
6801
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6802
|
+
options: localVarRequestOptions,
|
|
6803
|
+
};
|
|
6804
|
+
}),
|
|
6805
|
+
/**
|
|
6806
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
6807
|
+
* @summary Update PHP extensions
|
|
6808
|
+
* @param {string} username
|
|
6809
|
+
* @param {string} domain Domain name
|
|
6810
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
6811
|
+
* @param {*} [options] Override http request option.
|
|
6812
|
+
* @throws {RequiredError}
|
|
6813
|
+
*/
|
|
6814
|
+
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 = {}) {
|
|
6815
|
+
// verify required parameter 'username' is not null or undefined
|
|
6816
|
+
(0, common_1.assertParamExists)('updatePHPExtensionsV1', 'username', username);
|
|
6817
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6818
|
+
(0, common_1.assertParamExists)('updatePHPExtensionsV1', 'domain', domain);
|
|
6819
|
+
// verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
|
|
6820
|
+
(0, common_1.assertParamExists)('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest);
|
|
6821
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
|
|
6822
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6823
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6824
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6825
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6826
|
+
let baseOptions;
|
|
6827
|
+
if (configuration) {
|
|
6828
|
+
baseOptions = configuration.baseOptions;
|
|
6829
|
+
}
|
|
6830
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6831
|
+
const localVarHeaderParameter = {};
|
|
6832
|
+
const localVarQueryParameter = {};
|
|
6833
|
+
// authentication apiToken required
|
|
6834
|
+
// http bearer authentication required
|
|
6835
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6836
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6837
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6838
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6839
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6840
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration);
|
|
6841
|
+
return {
|
|
6842
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6843
|
+
options: localVarRequestOptions,
|
|
6844
|
+
};
|
|
6845
|
+
}),
|
|
6846
|
+
/**
|
|
6847
|
+
* 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.
|
|
6848
|
+
* @summary Update PHP options
|
|
6849
|
+
* @param {string} username
|
|
6850
|
+
* @param {string} domain Domain name
|
|
6851
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
6852
|
+
* @param {*} [options] Override http request option.
|
|
6853
|
+
* @throws {RequiredError}
|
|
6854
|
+
*/
|
|
6855
|
+
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 = {}) {
|
|
6856
|
+
// verify required parameter 'username' is not null or undefined
|
|
6857
|
+
(0, common_1.assertParamExists)('updatePHPOptionsV1', 'username', username);
|
|
6858
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6859
|
+
(0, common_1.assertParamExists)('updatePHPOptionsV1', 'domain', domain);
|
|
6860
|
+
// verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
|
|
6861
|
+
(0, common_1.assertParamExists)('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest);
|
|
6862
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
|
|
6863
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6864
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6866
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6867
|
+
let baseOptions;
|
|
6868
|
+
if (configuration) {
|
|
6869
|
+
baseOptions = configuration.baseOptions;
|
|
6870
|
+
}
|
|
6871
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6872
|
+
const localVarHeaderParameter = {};
|
|
6873
|
+
const localVarQueryParameter = {};
|
|
6874
|
+
// authentication apiToken required
|
|
6875
|
+
// http bearer authentication required
|
|
6876
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6877
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6878
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6879
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6880
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6881
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration);
|
|
6882
|
+
return {
|
|
6883
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6884
|
+
options: localVarRequestOptions,
|
|
6885
|
+
};
|
|
6886
|
+
}),
|
|
6887
|
+
/**
|
|
6888
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
6889
|
+
* @summary Update PHP version
|
|
6890
|
+
* @param {string} username
|
|
6891
|
+
* @param {string} domain Domain name
|
|
6892
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
6893
|
+
* @param {*} [options] Override http request option.
|
|
6894
|
+
* @throws {RequiredError}
|
|
6895
|
+
*/
|
|
6896
|
+
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 = {}) {
|
|
6897
|
+
// verify required parameter 'username' is not null or undefined
|
|
6898
|
+
(0, common_1.assertParamExists)('updatePHPVersionV1', 'username', username);
|
|
6899
|
+
// verify required parameter 'domain' is not null or undefined
|
|
6900
|
+
(0, common_1.assertParamExists)('updatePHPVersionV1', 'domain', domain);
|
|
6901
|
+
// verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
|
|
6902
|
+
(0, common_1.assertParamExists)('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest);
|
|
6903
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
|
|
6904
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
6905
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
6906
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6907
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6908
|
+
let baseOptions;
|
|
6909
|
+
if (configuration) {
|
|
6910
|
+
baseOptions = configuration.baseOptions;
|
|
6911
|
+
}
|
|
6912
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6913
|
+
const localVarHeaderParameter = {};
|
|
6914
|
+
const localVarQueryParameter = {};
|
|
6915
|
+
// authentication apiToken required
|
|
6916
|
+
// http bearer authentication required
|
|
6917
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6918
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6919
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6920
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6921
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6922
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration);
|
|
6923
|
+
return {
|
|
6924
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6925
|
+
options: localVarRequestOptions,
|
|
6926
|
+
};
|
|
6927
|
+
}),
|
|
6928
|
+
};
|
|
6929
|
+
};
|
|
6930
|
+
exports.HostingPHPApiAxiosParamCreator = HostingPHPApiAxiosParamCreator;
|
|
6931
|
+
/**
|
|
6932
|
+
* HostingPHPApi - functional programming interface
|
|
6933
|
+
* @export
|
|
6934
|
+
*/
|
|
6935
|
+
const HostingPHPApiFp = function (configuration) {
|
|
6936
|
+
const localVarAxiosParamCreator = (0, exports.HostingPHPApiAxiosParamCreator)(configuration);
|
|
6937
|
+
return {
|
|
6938
|
+
/**
|
|
6939
|
+
* 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.
|
|
6940
|
+
* @summary Get PHP details
|
|
6941
|
+
* @param {string} username
|
|
6942
|
+
* @param {string} domain Domain name
|
|
6943
|
+
* @param {*} [options] Override http request option.
|
|
6944
|
+
* @throws {RequiredError}
|
|
6945
|
+
*/
|
|
6946
|
+
getPHPDetailsV1(username, domain, options) {
|
|
6947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6948
|
+
var _a, _b;
|
|
6949
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
|
|
6950
|
+
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;
|
|
6951
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6952
|
+
});
|
|
6953
|
+
},
|
|
6954
|
+
/**
|
|
6955
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
6956
|
+
* @summary Get PHP info
|
|
6957
|
+
* @param {string} username
|
|
6958
|
+
* @param {string} domain Domain name
|
|
6959
|
+
* @param {*} [options] Override http request option.
|
|
6960
|
+
* @throws {RequiredError}
|
|
6961
|
+
*/
|
|
6962
|
+
getPHPInfoV1(username, domain, options) {
|
|
6963
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6964
|
+
var _a, _b;
|
|
6965
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
|
|
6966
|
+
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;
|
|
6967
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6968
|
+
});
|
|
6969
|
+
},
|
|
6970
|
+
/**
|
|
6971
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
6972
|
+
* @summary Reset PHP extensions
|
|
6973
|
+
* @param {string} username
|
|
6974
|
+
* @param {string} domain Domain name
|
|
6975
|
+
* @param {*} [options] Override http request option.
|
|
6976
|
+
* @throws {RequiredError}
|
|
6977
|
+
*/
|
|
6978
|
+
resetPHPExtensionsV1(username, domain, options) {
|
|
6979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6980
|
+
var _a, _b;
|
|
6981
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
|
|
6982
|
+
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;
|
|
6983
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6984
|
+
});
|
|
6985
|
+
},
|
|
6986
|
+
/**
|
|
6987
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
6988
|
+
* @summary Update PHP extensions
|
|
6989
|
+
* @param {string} username
|
|
6990
|
+
* @param {string} domain Domain name
|
|
6991
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
6992
|
+
* @param {*} [options] Override http request option.
|
|
6993
|
+
* @throws {RequiredError}
|
|
6994
|
+
*/
|
|
6995
|
+
updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
|
|
6996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6997
|
+
var _a, _b;
|
|
6998
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
|
|
6999
|
+
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;
|
|
7000
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7001
|
+
});
|
|
7002
|
+
},
|
|
7003
|
+
/**
|
|
7004
|
+
* 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.
|
|
7005
|
+
* @summary Update PHP options
|
|
7006
|
+
* @param {string} username
|
|
7007
|
+
* @param {string} domain Domain name
|
|
7008
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
7009
|
+
* @param {*} [options] Override http request option.
|
|
7010
|
+
* @throws {RequiredError}
|
|
7011
|
+
*/
|
|
7012
|
+
updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
|
|
7013
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7014
|
+
var _a, _b;
|
|
7015
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
|
|
7016
|
+
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;
|
|
7017
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7018
|
+
});
|
|
7019
|
+
},
|
|
7020
|
+
/**
|
|
7021
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
7022
|
+
* @summary Update PHP version
|
|
7023
|
+
* @param {string} username
|
|
7024
|
+
* @param {string} domain Domain name
|
|
7025
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
7026
|
+
* @param {*} [options] Override http request option.
|
|
7027
|
+
* @throws {RequiredError}
|
|
7028
|
+
*/
|
|
7029
|
+
updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
|
|
7030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7031
|
+
var _a, _b;
|
|
7032
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
|
|
7033
|
+
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;
|
|
7034
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7035
|
+
});
|
|
7036
|
+
},
|
|
7037
|
+
};
|
|
7038
|
+
};
|
|
7039
|
+
exports.HostingPHPApiFp = HostingPHPApiFp;
|
|
7040
|
+
/**
|
|
7041
|
+
* HostingPHPApi - factory interface
|
|
7042
|
+
* @export
|
|
7043
|
+
*/
|
|
7044
|
+
const HostingPHPApiFactory = function (configuration, basePath, axios) {
|
|
7045
|
+
const localVarFp = (0, exports.HostingPHPApiFp)(configuration);
|
|
7046
|
+
return {
|
|
7047
|
+
/**
|
|
7048
|
+
* 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.
|
|
7049
|
+
* @summary Get PHP details
|
|
7050
|
+
* @param {string} username
|
|
7051
|
+
* @param {string} domain Domain name
|
|
7052
|
+
* @param {*} [options] Override http request option.
|
|
7053
|
+
* @throws {RequiredError}
|
|
7054
|
+
*/
|
|
7055
|
+
getPHPDetailsV1(username, domain, options) {
|
|
7056
|
+
return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
7057
|
+
},
|
|
7058
|
+
/**
|
|
7059
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
7060
|
+
* @summary Get PHP info
|
|
7061
|
+
* @param {string} username
|
|
7062
|
+
* @param {string} domain Domain name
|
|
7063
|
+
* @param {*} [options] Override http request option.
|
|
7064
|
+
* @throws {RequiredError}
|
|
7065
|
+
*/
|
|
7066
|
+
getPHPInfoV1(username, domain, options) {
|
|
7067
|
+
return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
|
|
7068
|
+
},
|
|
7069
|
+
/**
|
|
7070
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
7071
|
+
* @summary Reset PHP extensions
|
|
7072
|
+
* @param {string} username
|
|
7073
|
+
* @param {string} domain Domain name
|
|
7074
|
+
* @param {*} [options] Override http request option.
|
|
7075
|
+
* @throws {RequiredError}
|
|
7076
|
+
*/
|
|
7077
|
+
resetPHPExtensionsV1(username, domain, options) {
|
|
7078
|
+
return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
7079
|
+
},
|
|
7080
|
+
/**
|
|
7081
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
7082
|
+
* @summary Update PHP extensions
|
|
7083
|
+
* @param {string} username
|
|
7084
|
+
* @param {string} domain Domain name
|
|
7085
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
7086
|
+
* @param {*} [options] Override http request option.
|
|
7087
|
+
* @throws {RequiredError}
|
|
7088
|
+
*/
|
|
7089
|
+
updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
|
|
7090
|
+
return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
|
|
7091
|
+
},
|
|
7092
|
+
/**
|
|
7093
|
+
* 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.
|
|
7094
|
+
* @summary Update PHP options
|
|
7095
|
+
* @param {string} username
|
|
7096
|
+
* @param {string} domain Domain name
|
|
7097
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
7098
|
+
* @param {*} [options] Override http request option.
|
|
7099
|
+
* @throws {RequiredError}
|
|
7100
|
+
*/
|
|
7101
|
+
updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
|
|
7102
|
+
return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
|
|
7103
|
+
},
|
|
7104
|
+
/**
|
|
7105
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
7106
|
+
* @summary Update PHP version
|
|
7107
|
+
* @param {string} username
|
|
7108
|
+
* @param {string} domain Domain name
|
|
7109
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
7110
|
+
* @param {*} [options] Override http request option.
|
|
7111
|
+
* @throws {RequiredError}
|
|
7112
|
+
*/
|
|
7113
|
+
updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
|
|
7114
|
+
return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
|
|
7115
|
+
},
|
|
7116
|
+
};
|
|
7117
|
+
};
|
|
7118
|
+
exports.HostingPHPApiFactory = HostingPHPApiFactory;
|
|
7119
|
+
/**
|
|
7120
|
+
* HostingPHPApi - object-oriented interface
|
|
7121
|
+
* @export
|
|
7122
|
+
* @class HostingPHPApi
|
|
7123
|
+
* @extends {BaseAPI}
|
|
7124
|
+
*/
|
|
7125
|
+
class HostingPHPApi extends base_1.BaseAPI {
|
|
7126
|
+
/**
|
|
7127
|
+
* 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.
|
|
7128
|
+
* @summary Get PHP details
|
|
7129
|
+
* @param {string} username
|
|
7130
|
+
* @param {string} domain Domain name
|
|
7131
|
+
* @param {*} [options] Override http request option.
|
|
7132
|
+
* @throws {RequiredError}
|
|
7133
|
+
* @memberof HostingPHPApi
|
|
7134
|
+
*/
|
|
7135
|
+
getPHPDetailsV1(username, domain, options) {
|
|
7136
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
7137
|
+
}
|
|
7138
|
+
/**
|
|
7139
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
7140
|
+
* @summary Get PHP info
|
|
7141
|
+
* @param {string} username
|
|
7142
|
+
* @param {string} domain Domain name
|
|
7143
|
+
* @param {*} [options] Override http request option.
|
|
7144
|
+
* @throws {RequiredError}
|
|
7145
|
+
* @memberof HostingPHPApi
|
|
7146
|
+
*/
|
|
7147
|
+
getPHPInfoV1(username, domain, options) {
|
|
7148
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
7149
|
+
}
|
|
7150
|
+
/**
|
|
7151
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
7152
|
+
* @summary Reset PHP extensions
|
|
7153
|
+
* @param {string} username
|
|
7154
|
+
* @param {string} domain Domain name
|
|
7155
|
+
* @param {*} [options] Override http request option.
|
|
7156
|
+
* @throws {RequiredError}
|
|
7157
|
+
* @memberof HostingPHPApi
|
|
7158
|
+
*/
|
|
7159
|
+
resetPHPExtensionsV1(username, domain, options) {
|
|
7160
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
7161
|
+
}
|
|
7162
|
+
/**
|
|
7163
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
7164
|
+
* @summary Update PHP extensions
|
|
7165
|
+
* @param {string} username
|
|
7166
|
+
* @param {string} domain Domain name
|
|
7167
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
7168
|
+
* @param {*} [options] Override http request option.
|
|
7169
|
+
* @throws {RequiredError}
|
|
7170
|
+
* @memberof HostingPHPApi
|
|
7171
|
+
*/
|
|
7172
|
+
updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
|
|
7173
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7174
|
+
}
|
|
7175
|
+
/**
|
|
7176
|
+
* 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.
|
|
7177
|
+
* @summary Update PHP options
|
|
7178
|
+
* @param {string} username
|
|
7179
|
+
* @param {string} domain Domain name
|
|
7180
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
7181
|
+
* @param {*} [options] Override http request option.
|
|
7182
|
+
* @throws {RequiredError}
|
|
7183
|
+
* @memberof HostingPHPApi
|
|
7184
|
+
*/
|
|
7185
|
+
updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
|
|
7186
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7187
|
+
}
|
|
7188
|
+
/**
|
|
7189
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
7190
|
+
* @summary Update PHP version
|
|
7191
|
+
* @param {string} username
|
|
7192
|
+
* @param {string} domain Domain name
|
|
7193
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
7194
|
+
* @param {*} [options] Override http request option.
|
|
7195
|
+
* @throws {RequiredError}
|
|
7196
|
+
* @memberof HostingPHPApi
|
|
7197
|
+
*/
|
|
7198
|
+
updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
|
|
7199
|
+
return (0, exports.HostingPHPApiFp)(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7200
|
+
}
|
|
7201
|
+
}
|
|
7202
|
+
exports.HostingPHPApi = HostingPHPApi;
|
|
6540
7203
|
/**
|
|
6541
7204
|
* HostingWebsitesApi - axios parameter creator
|
|
6542
7205
|
* @export
|