hostinger-api-sdk 1.33.1 → 1.35.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 +1179 -72
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +643 -1
- package/dist/api.js +866 -25
- 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 +643 -1
- package/dist/esm/api.js +846 -13
- 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/AgencyHostingPHPApi.md +400 -0
- package/docs/AgencyHostingV1PhpExtensionResource.md +24 -0
- package/docs/AgencyHostingV1PhpOptionResource.md +30 -0
- package/docs/AgencyHostingV1PhpUpdateExtensionsRequest.md +20 -0
- package/docs/AgencyHostingV1PhpUpdateOptionsRequest.md +20 -0
- package/docs/AgencyHostingV1PhpUpdateOptionsRequestOptionsInner.md +22 -0
- package/docs/AgencyHostingV1PhpUpdateVersionRequest.md +20 -0
- package/docs/AgencyHostingV1PhpVersionResource.md +20 -0
- package/docs/HostingListWebsiteRedirectsV1200Response.md +22 -0
- package/docs/HostingRedirectsApi.md +193 -0
- package/docs/HostingV1RedirectsCreateRedirectRequest.md +22 -0
- package/docs/HostingV1RedirectsDeleteRedirectRequest.md +20 -0
- package/docs/HostingV1RedirectsRedirectResource.md +22 -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.37.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
|
|
@@ -19,22 +19,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.WordPressThemesApi = void 0;
|
|
22
|
+
exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = 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 = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
|
+
exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = void 0;
|
|
24
|
+
exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = void 0;
|
|
25
|
+
exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = 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.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = void 0;
|
|
26
|
+
exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = 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 = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = void 0;
|
|
28
|
+
exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListCampaignsV1SortDirectionEnum = exports.ListCampaignsV1TypeEnum = exports.ListCampaignsV1StatusEnum = exports.ReachCampaignsApi = exports.ReachCampaignsApiFactory = exports.ReachCampaignsApiFp = exports.ReachCampaignsApiAxiosParamCreator = exports.ListAutomationsV1SortDirectionEnum = exports.ListAutomationsV1StatusEnum = exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = void 0;
|
|
29
|
+
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.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ReachFormsApi = exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = void 0;
|
|
30
|
+
exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = 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 = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = void 0;
|
|
31
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
const common_1 = require("./common");
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
const base_1 = require("./base");
|
|
38
|
+
exports.AgencyHostingV1PhpExtensionResourceStateEnum = {
|
|
39
|
+
Enabled: 'enabled',
|
|
40
|
+
Disabled: 'disabled',
|
|
41
|
+
BuiltIn: 'built-in'
|
|
42
|
+
};
|
|
43
|
+
exports.AgencyHostingV1PhpOptionResourceTypeEnum = {
|
|
44
|
+
Value: 'value',
|
|
45
|
+
List: 'list'
|
|
46
|
+
};
|
|
38
47
|
exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = {
|
|
39
48
|
Horizons: 'horizons',
|
|
40
49
|
NodeStatic: 'node-static'
|
|
@@ -2283,33 +2292,571 @@ const AgencyHostingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
2283
2292
|
* @param {*} [options] Override http request option.
|
|
2284
2293
|
* @throws {RequiredError}
|
|
2285
2294
|
*/
|
|
2286
|
-
listOrdersV1(page, perPage, options) {
|
|
2287
|
-
return localVarFp.listOrdersV1(page, perPage, options).then((request) => request(axios, basePath));
|
|
2295
|
+
listOrdersV1(page, perPage, options) {
|
|
2296
|
+
return localVarFp.listOrdersV1(page, perPage, options).then((request) => request(axios, basePath));
|
|
2297
|
+
},
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
2300
|
+
exports.AgencyHostingOrdersApiFactory = AgencyHostingOrdersApiFactory;
|
|
2301
|
+
/**
|
|
2302
|
+
* AgencyHostingOrdersApi - object-oriented interface
|
|
2303
|
+
* @export
|
|
2304
|
+
* @class AgencyHostingOrdersApi
|
|
2305
|
+
* @extends {BaseAPI}
|
|
2306
|
+
*/
|
|
2307
|
+
class AgencyHostingOrdersApi extends base_1.BaseAPI {
|
|
2308
|
+
/**
|
|
2309
|
+
* Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
2310
|
+
* @summary List orders
|
|
2311
|
+
* @param {number} [page] Page number
|
|
2312
|
+
* @param {number} [perPage] Number of items per page
|
|
2313
|
+
* @param {*} [options] Override http request option.
|
|
2314
|
+
* @throws {RequiredError}
|
|
2315
|
+
* @memberof AgencyHostingOrdersApi
|
|
2316
|
+
*/
|
|
2317
|
+
listOrdersV1(page, perPage, options) {
|
|
2318
|
+
return (0, exports.AgencyHostingOrdersApiFp)(this.configuration).listOrdersV1(page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
exports.AgencyHostingOrdersApi = AgencyHostingOrdersApi;
|
|
2322
|
+
/**
|
|
2323
|
+
* AgencyHostingPHPApi - axios parameter creator
|
|
2324
|
+
* @export
|
|
2325
|
+
*/
|
|
2326
|
+
const AgencyHostingPHPApiAxiosParamCreator = function (configuration) {
|
|
2327
|
+
return {
|
|
2328
|
+
/**
|
|
2329
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
2330
|
+
* @summary List available PHP versions for a website
|
|
2331
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2332
|
+
* @param {*} [options] Override http request option.
|
|
2333
|
+
* @throws {RequiredError}
|
|
2334
|
+
*/
|
|
2335
|
+
listAvailablePHPVersionsForAWebsiteV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2336
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2337
|
+
(0, common_1.assertParamExists)('listAvailablePHPVersionsForAWebsiteV1', 'websiteUid', websiteUid);
|
|
2338
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/php-settings/versions`
|
|
2339
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2341
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2342
|
+
let baseOptions;
|
|
2343
|
+
if (configuration) {
|
|
2344
|
+
baseOptions = configuration.baseOptions;
|
|
2345
|
+
}
|
|
2346
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2347
|
+
const localVarHeaderParameter = {};
|
|
2348
|
+
const localVarQueryParameter = {};
|
|
2349
|
+
// authentication apiToken required
|
|
2350
|
+
// http bearer authentication required
|
|
2351
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2352
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2354
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2355
|
+
return {
|
|
2356
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2357
|
+
options: localVarRequestOptions,
|
|
2358
|
+
};
|
|
2359
|
+
}),
|
|
2360
|
+
/**
|
|
2361
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
2362
|
+
* @summary List available PHP versions for an order
|
|
2363
|
+
* @param {number} orderId Agency Plan order ID
|
|
2364
|
+
* @param {*} [options] Override http request option.
|
|
2365
|
+
* @throws {RequiredError}
|
|
2366
|
+
*/
|
|
2367
|
+
listAvailablePHPVersionsForAnOrderV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
2368
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
2369
|
+
(0, common_1.assertParamExists)('listAvailablePHPVersionsForAnOrderV1', 'orderId', orderId);
|
|
2370
|
+
const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/websites/php-settings/versions`
|
|
2371
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
2372
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2373
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2374
|
+
let baseOptions;
|
|
2375
|
+
if (configuration) {
|
|
2376
|
+
baseOptions = configuration.baseOptions;
|
|
2377
|
+
}
|
|
2378
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2379
|
+
const localVarHeaderParameter = {};
|
|
2380
|
+
const localVarQueryParameter = {};
|
|
2381
|
+
// authentication apiToken required
|
|
2382
|
+
// http bearer authentication required
|
|
2383
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2384
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2385
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2386
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2387
|
+
return {
|
|
2388
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2389
|
+
options: localVarRequestOptions,
|
|
2390
|
+
};
|
|
2391
|
+
}),
|
|
2392
|
+
/**
|
|
2393
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
2394
|
+
* @summary List PHP extensions for a website
|
|
2395
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2396
|
+
* @param {*} [options] Override http request option.
|
|
2397
|
+
* @throws {RequiredError}
|
|
2398
|
+
*/
|
|
2399
|
+
listPHPExtensionsForAWebsiteV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2400
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2401
|
+
(0, common_1.assertParamExists)('listPHPExtensionsForAWebsiteV1', 'websiteUid', websiteUid);
|
|
2402
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions`
|
|
2403
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2404
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2405
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2406
|
+
let baseOptions;
|
|
2407
|
+
if (configuration) {
|
|
2408
|
+
baseOptions = configuration.baseOptions;
|
|
2409
|
+
}
|
|
2410
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2411
|
+
const localVarHeaderParameter = {};
|
|
2412
|
+
const localVarQueryParameter = {};
|
|
2413
|
+
// authentication apiToken required
|
|
2414
|
+
// http bearer authentication required
|
|
2415
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2416
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2417
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2418
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2419
|
+
return {
|
|
2420
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2421
|
+
options: localVarRequestOptions,
|
|
2422
|
+
};
|
|
2423
|
+
}),
|
|
2424
|
+
/**
|
|
2425
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
2426
|
+
* @summary List PHP options for a website
|
|
2427
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2428
|
+
* @param {*} [options] Override http request option.
|
|
2429
|
+
* @throws {RequiredError}
|
|
2430
|
+
*/
|
|
2431
|
+
listPHPOptionsForAWebsiteV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2432
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2433
|
+
(0, common_1.assertParamExists)('listPHPOptionsForAWebsiteV1', 'websiteUid', websiteUid);
|
|
2434
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/php-settings/options`
|
|
2435
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2436
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2437
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2438
|
+
let baseOptions;
|
|
2439
|
+
if (configuration) {
|
|
2440
|
+
baseOptions = configuration.baseOptions;
|
|
2441
|
+
}
|
|
2442
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2443
|
+
const localVarHeaderParameter = {};
|
|
2444
|
+
const localVarQueryParameter = {};
|
|
2445
|
+
// authentication apiToken required
|
|
2446
|
+
// http bearer authentication required
|
|
2447
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2448
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2450
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2451
|
+
return {
|
|
2452
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2453
|
+
options: localVarRequestOptions,
|
|
2454
|
+
};
|
|
2455
|
+
}),
|
|
2456
|
+
/**
|
|
2457
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
2458
|
+
* @summary Replace website PHP extensions
|
|
2459
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2460
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
2461
|
+
* @param {*} [options] Override http request option.
|
|
2462
|
+
* @throws {RequiredError}
|
|
2463
|
+
*/
|
|
2464
|
+
replaceWebsitePHPExtensionsV1: (websiteUid_1, agencyHostingV1PhpUpdateExtensionsRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1PhpUpdateExtensionsRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1PhpUpdateExtensionsRequest, options = {}) {
|
|
2465
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2466
|
+
(0, common_1.assertParamExists)('replaceWebsitePHPExtensionsV1', 'websiteUid', websiteUid);
|
|
2467
|
+
// verify required parameter 'agencyHostingV1PhpUpdateExtensionsRequest' is not null or undefined
|
|
2468
|
+
(0, common_1.assertParamExists)('replaceWebsitePHPExtensionsV1', 'agencyHostingV1PhpUpdateExtensionsRequest', agencyHostingV1PhpUpdateExtensionsRequest);
|
|
2469
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions`
|
|
2470
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2471
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2472
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2473
|
+
let baseOptions;
|
|
2474
|
+
if (configuration) {
|
|
2475
|
+
baseOptions = configuration.baseOptions;
|
|
2476
|
+
}
|
|
2477
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2478
|
+
const localVarHeaderParameter = {};
|
|
2479
|
+
const localVarQueryParameter = {};
|
|
2480
|
+
// authentication apiToken required
|
|
2481
|
+
// http bearer authentication required
|
|
2482
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2483
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2484
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2485
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2486
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2487
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agencyHostingV1PhpUpdateExtensionsRequest, localVarRequestOptions, configuration);
|
|
2488
|
+
return {
|
|
2489
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2490
|
+
options: localVarRequestOptions,
|
|
2491
|
+
};
|
|
2492
|
+
}),
|
|
2493
|
+
/**
|
|
2494
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
2495
|
+
* @summary Replace website PHP options
|
|
2496
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2497
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
2498
|
+
* @param {*} [options] Override http request option.
|
|
2499
|
+
* @throws {RequiredError}
|
|
2500
|
+
*/
|
|
2501
|
+
replaceWebsitePHPOptionsV1: (websiteUid_1, agencyHostingV1PhpUpdateOptionsRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1PhpUpdateOptionsRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1PhpUpdateOptionsRequest, options = {}) {
|
|
2502
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2503
|
+
(0, common_1.assertParamExists)('replaceWebsitePHPOptionsV1', 'websiteUid', websiteUid);
|
|
2504
|
+
// verify required parameter 'agencyHostingV1PhpUpdateOptionsRequest' is not null or undefined
|
|
2505
|
+
(0, common_1.assertParamExists)('replaceWebsitePHPOptionsV1', 'agencyHostingV1PhpUpdateOptionsRequest', agencyHostingV1PhpUpdateOptionsRequest);
|
|
2506
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/php-settings/options`
|
|
2507
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2508
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2509
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2510
|
+
let baseOptions;
|
|
2511
|
+
if (configuration) {
|
|
2512
|
+
baseOptions = configuration.baseOptions;
|
|
2513
|
+
}
|
|
2514
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2515
|
+
const localVarHeaderParameter = {};
|
|
2516
|
+
const localVarQueryParameter = {};
|
|
2517
|
+
// authentication apiToken required
|
|
2518
|
+
// http bearer authentication required
|
|
2519
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2520
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2521
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2522
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2523
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2524
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agencyHostingV1PhpUpdateOptionsRequest, localVarRequestOptions, configuration);
|
|
2525
|
+
return {
|
|
2526
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2527
|
+
options: localVarRequestOptions,
|
|
2528
|
+
};
|
|
2529
|
+
}),
|
|
2530
|
+
/**
|
|
2531
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
2532
|
+
* @summary Update website PHP version
|
|
2533
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2534
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
2535
|
+
* @param {*} [options] Override http request option.
|
|
2536
|
+
* @throws {RequiredError}
|
|
2537
|
+
*/
|
|
2538
|
+
updateWebsitePHPVersionV1: (websiteUid_1, agencyHostingV1PhpUpdateVersionRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1PhpUpdateVersionRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1PhpUpdateVersionRequest, options = {}) {
|
|
2539
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2540
|
+
(0, common_1.assertParamExists)('updateWebsitePHPVersionV1', 'websiteUid', websiteUid);
|
|
2541
|
+
// verify required parameter 'agencyHostingV1PhpUpdateVersionRequest' is not null or undefined
|
|
2542
|
+
(0, common_1.assertParamExists)('updateWebsitePHPVersionV1', 'agencyHostingV1PhpUpdateVersionRequest', agencyHostingV1PhpUpdateVersionRequest);
|
|
2543
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/php-settings/version`
|
|
2544
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2546
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2547
|
+
let baseOptions;
|
|
2548
|
+
if (configuration) {
|
|
2549
|
+
baseOptions = configuration.baseOptions;
|
|
2550
|
+
}
|
|
2551
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2552
|
+
const localVarHeaderParameter = {};
|
|
2553
|
+
const localVarQueryParameter = {};
|
|
2554
|
+
// authentication apiToken required
|
|
2555
|
+
// http bearer authentication required
|
|
2556
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2557
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2558
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2559
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2560
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2561
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agencyHostingV1PhpUpdateVersionRequest, localVarRequestOptions, configuration);
|
|
2562
|
+
return {
|
|
2563
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2564
|
+
options: localVarRequestOptions,
|
|
2565
|
+
};
|
|
2566
|
+
}),
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
exports.AgencyHostingPHPApiAxiosParamCreator = AgencyHostingPHPApiAxiosParamCreator;
|
|
2570
|
+
/**
|
|
2571
|
+
* AgencyHostingPHPApi - functional programming interface
|
|
2572
|
+
* @export
|
|
2573
|
+
*/
|
|
2574
|
+
const AgencyHostingPHPApiFp = function (configuration) {
|
|
2575
|
+
const localVarAxiosParamCreator = (0, exports.AgencyHostingPHPApiAxiosParamCreator)(configuration);
|
|
2576
|
+
return {
|
|
2577
|
+
/**
|
|
2578
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
2579
|
+
* @summary List available PHP versions for a website
|
|
2580
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2581
|
+
* @param {*} [options] Override http request option.
|
|
2582
|
+
* @throws {RequiredError}
|
|
2583
|
+
*/
|
|
2584
|
+
listAvailablePHPVersionsForAWebsiteV1(websiteUid, options) {
|
|
2585
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2586
|
+
var _a, _b;
|
|
2587
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePHPVersionsForAWebsiteV1(websiteUid, options);
|
|
2588
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingPHPApi.listAvailablePHPVersionsForAWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2590
|
+
});
|
|
2591
|
+
},
|
|
2592
|
+
/**
|
|
2593
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
2594
|
+
* @summary List available PHP versions for an order
|
|
2595
|
+
* @param {number} orderId Agency Plan order ID
|
|
2596
|
+
* @param {*} [options] Override http request option.
|
|
2597
|
+
* @throws {RequiredError}
|
|
2598
|
+
*/
|
|
2599
|
+
listAvailablePHPVersionsForAnOrderV1(orderId, options) {
|
|
2600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2601
|
+
var _a, _b;
|
|
2602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePHPVersionsForAnOrderV1(orderId, options);
|
|
2603
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingPHPApi.listAvailablePHPVersionsForAnOrderV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2604
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2605
|
+
});
|
|
2606
|
+
},
|
|
2607
|
+
/**
|
|
2608
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
2609
|
+
* @summary List PHP extensions for a website
|
|
2610
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2611
|
+
* @param {*} [options] Override http request option.
|
|
2612
|
+
* @throws {RequiredError}
|
|
2613
|
+
*/
|
|
2614
|
+
listPHPExtensionsForAWebsiteV1(websiteUid, options) {
|
|
2615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2616
|
+
var _a, _b;
|
|
2617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPHPExtensionsForAWebsiteV1(websiteUid, options);
|
|
2618
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingPHPApi.listPHPExtensionsForAWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2619
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2620
|
+
});
|
|
2621
|
+
},
|
|
2622
|
+
/**
|
|
2623
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
2624
|
+
* @summary List PHP options for a website
|
|
2625
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2626
|
+
* @param {*} [options] Override http request option.
|
|
2627
|
+
* @throws {RequiredError}
|
|
2628
|
+
*/
|
|
2629
|
+
listPHPOptionsForAWebsiteV1(websiteUid, options) {
|
|
2630
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2631
|
+
var _a, _b;
|
|
2632
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPHPOptionsForAWebsiteV1(websiteUid, options);
|
|
2633
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingPHPApi.listPHPOptionsForAWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2634
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2635
|
+
});
|
|
2636
|
+
},
|
|
2637
|
+
/**
|
|
2638
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
2639
|
+
* @summary Replace website PHP extensions
|
|
2640
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2641
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
2642
|
+
* @param {*} [options] Override http request option.
|
|
2643
|
+
* @throws {RequiredError}
|
|
2644
|
+
*/
|
|
2645
|
+
replaceWebsitePHPExtensionsV1(websiteUid, agencyHostingV1PhpUpdateExtensionsRequest, options) {
|
|
2646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2647
|
+
var _a, _b;
|
|
2648
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceWebsitePHPExtensionsV1(websiteUid, agencyHostingV1PhpUpdateExtensionsRequest, options);
|
|
2649
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingPHPApi.replaceWebsitePHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2650
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2651
|
+
});
|
|
2652
|
+
},
|
|
2653
|
+
/**
|
|
2654
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
2655
|
+
* @summary Replace website PHP options
|
|
2656
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2657
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
2658
|
+
* @param {*} [options] Override http request option.
|
|
2659
|
+
* @throws {RequiredError}
|
|
2660
|
+
*/
|
|
2661
|
+
replaceWebsitePHPOptionsV1(websiteUid, agencyHostingV1PhpUpdateOptionsRequest, options) {
|
|
2662
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2663
|
+
var _a, _b;
|
|
2664
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceWebsitePHPOptionsV1(websiteUid, agencyHostingV1PhpUpdateOptionsRequest, options);
|
|
2665
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingPHPApi.replaceWebsitePHPOptionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2666
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2667
|
+
});
|
|
2668
|
+
},
|
|
2669
|
+
/**
|
|
2670
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
2671
|
+
* @summary Update website PHP version
|
|
2672
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2673
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
2674
|
+
* @param {*} [options] Override http request option.
|
|
2675
|
+
* @throws {RequiredError}
|
|
2676
|
+
*/
|
|
2677
|
+
updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options) {
|
|
2678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2679
|
+
var _a, _b;
|
|
2680
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options);
|
|
2681
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingPHPApi.updateWebsitePHPVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2682
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2683
|
+
});
|
|
2684
|
+
},
|
|
2685
|
+
};
|
|
2686
|
+
};
|
|
2687
|
+
exports.AgencyHostingPHPApiFp = AgencyHostingPHPApiFp;
|
|
2688
|
+
/**
|
|
2689
|
+
* AgencyHostingPHPApi - factory interface
|
|
2690
|
+
* @export
|
|
2691
|
+
*/
|
|
2692
|
+
const AgencyHostingPHPApiFactory = function (configuration, basePath, axios) {
|
|
2693
|
+
const localVarFp = (0, exports.AgencyHostingPHPApiFp)(configuration);
|
|
2694
|
+
return {
|
|
2695
|
+
/**
|
|
2696
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
2697
|
+
* @summary List available PHP versions for a website
|
|
2698
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2699
|
+
* @param {*} [options] Override http request option.
|
|
2700
|
+
* @throws {RequiredError}
|
|
2701
|
+
*/
|
|
2702
|
+
listAvailablePHPVersionsForAWebsiteV1(websiteUid, options) {
|
|
2703
|
+
return localVarFp.listAvailablePHPVersionsForAWebsiteV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2704
|
+
},
|
|
2705
|
+
/**
|
|
2706
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
2707
|
+
* @summary List available PHP versions for an order
|
|
2708
|
+
* @param {number} orderId Agency Plan order ID
|
|
2709
|
+
* @param {*} [options] Override http request option.
|
|
2710
|
+
* @throws {RequiredError}
|
|
2711
|
+
*/
|
|
2712
|
+
listAvailablePHPVersionsForAnOrderV1(orderId, options) {
|
|
2713
|
+
return localVarFp.listAvailablePHPVersionsForAnOrderV1(orderId, options).then((request) => request(axios, basePath));
|
|
2714
|
+
},
|
|
2715
|
+
/**
|
|
2716
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
2717
|
+
* @summary List PHP extensions for a website
|
|
2718
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2719
|
+
* @param {*} [options] Override http request option.
|
|
2720
|
+
* @throws {RequiredError}
|
|
2721
|
+
*/
|
|
2722
|
+
listPHPExtensionsForAWebsiteV1(websiteUid, options) {
|
|
2723
|
+
return localVarFp.listPHPExtensionsForAWebsiteV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2724
|
+
},
|
|
2725
|
+
/**
|
|
2726
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
2727
|
+
* @summary List PHP options for a website
|
|
2728
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2729
|
+
* @param {*} [options] Override http request option.
|
|
2730
|
+
* @throws {RequiredError}
|
|
2731
|
+
*/
|
|
2732
|
+
listPHPOptionsForAWebsiteV1(websiteUid, options) {
|
|
2733
|
+
return localVarFp.listPHPOptionsForAWebsiteV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2734
|
+
},
|
|
2735
|
+
/**
|
|
2736
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
2737
|
+
* @summary Replace website PHP extensions
|
|
2738
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2739
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
2740
|
+
* @param {*} [options] Override http request option.
|
|
2741
|
+
* @throws {RequiredError}
|
|
2742
|
+
*/
|
|
2743
|
+
replaceWebsitePHPExtensionsV1(websiteUid, agencyHostingV1PhpUpdateExtensionsRequest, options) {
|
|
2744
|
+
return localVarFp.replaceWebsitePHPExtensionsV1(websiteUid, agencyHostingV1PhpUpdateExtensionsRequest, options).then((request) => request(axios, basePath));
|
|
2745
|
+
},
|
|
2746
|
+
/**
|
|
2747
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
2748
|
+
* @summary Replace website PHP options
|
|
2749
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2750
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
2751
|
+
* @param {*} [options] Override http request option.
|
|
2752
|
+
* @throws {RequiredError}
|
|
2753
|
+
*/
|
|
2754
|
+
replaceWebsitePHPOptionsV1(websiteUid, agencyHostingV1PhpUpdateOptionsRequest, options) {
|
|
2755
|
+
return localVarFp.replaceWebsitePHPOptionsV1(websiteUid, agencyHostingV1PhpUpdateOptionsRequest, options).then((request) => request(axios, basePath));
|
|
2756
|
+
},
|
|
2757
|
+
/**
|
|
2758
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
2759
|
+
* @summary Update website PHP version
|
|
2760
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2761
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
2762
|
+
* @param {*} [options] Override http request option.
|
|
2763
|
+
* @throws {RequiredError}
|
|
2764
|
+
*/
|
|
2765
|
+
updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options) {
|
|
2766
|
+
return localVarFp.updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options).then((request) => request(axios, basePath));
|
|
2288
2767
|
},
|
|
2289
2768
|
};
|
|
2290
2769
|
};
|
|
2291
|
-
exports.
|
|
2770
|
+
exports.AgencyHostingPHPApiFactory = AgencyHostingPHPApiFactory;
|
|
2292
2771
|
/**
|
|
2293
|
-
*
|
|
2772
|
+
* AgencyHostingPHPApi - object-oriented interface
|
|
2294
2773
|
* @export
|
|
2295
|
-
* @class
|
|
2774
|
+
* @class AgencyHostingPHPApi
|
|
2296
2775
|
* @extends {BaseAPI}
|
|
2297
2776
|
*/
|
|
2298
|
-
class
|
|
2777
|
+
class AgencyHostingPHPApi extends base_1.BaseAPI {
|
|
2299
2778
|
/**
|
|
2300
|
-
*
|
|
2301
|
-
* @summary List
|
|
2302
|
-
* @param {
|
|
2303
|
-
* @param {number} [perPage] Number of items per page
|
|
2779
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
2780
|
+
* @summary List available PHP versions for a website
|
|
2781
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2304
2782
|
* @param {*} [options] Override http request option.
|
|
2305
2783
|
* @throws {RequiredError}
|
|
2306
|
-
* @memberof
|
|
2784
|
+
* @memberof AgencyHostingPHPApi
|
|
2307
2785
|
*/
|
|
2308
|
-
|
|
2309
|
-
return (0, exports.
|
|
2786
|
+
listAvailablePHPVersionsForAWebsiteV1(websiteUid, options) {
|
|
2787
|
+
return (0, exports.AgencyHostingPHPApiFp)(this.configuration).listAvailablePHPVersionsForAWebsiteV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
2791
|
+
* @summary List available PHP versions for an order
|
|
2792
|
+
* @param {number} orderId Agency Plan order ID
|
|
2793
|
+
* @param {*} [options] Override http request option.
|
|
2794
|
+
* @throws {RequiredError}
|
|
2795
|
+
* @memberof AgencyHostingPHPApi
|
|
2796
|
+
*/
|
|
2797
|
+
listAvailablePHPVersionsForAnOrderV1(orderId, options) {
|
|
2798
|
+
return (0, exports.AgencyHostingPHPApiFp)(this.configuration).listAvailablePHPVersionsForAnOrderV1(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
2799
|
+
}
|
|
2800
|
+
/**
|
|
2801
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
2802
|
+
* @summary List PHP extensions for a website
|
|
2803
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2804
|
+
* @param {*} [options] Override http request option.
|
|
2805
|
+
* @throws {RequiredError}
|
|
2806
|
+
* @memberof AgencyHostingPHPApi
|
|
2807
|
+
*/
|
|
2808
|
+
listPHPExtensionsForAWebsiteV1(websiteUid, options) {
|
|
2809
|
+
return (0, exports.AgencyHostingPHPApiFp)(this.configuration).listPHPExtensionsForAWebsiteV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2810
|
+
}
|
|
2811
|
+
/**
|
|
2812
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
2813
|
+
* @summary List PHP options for a website
|
|
2814
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2815
|
+
* @param {*} [options] Override http request option.
|
|
2816
|
+
* @throws {RequiredError}
|
|
2817
|
+
* @memberof AgencyHostingPHPApi
|
|
2818
|
+
*/
|
|
2819
|
+
listPHPOptionsForAWebsiteV1(websiteUid, options) {
|
|
2820
|
+
return (0, exports.AgencyHostingPHPApiFp)(this.configuration).listPHPOptionsForAWebsiteV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
2824
|
+
* @summary Replace website PHP extensions
|
|
2825
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2826
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
2827
|
+
* @param {*} [options] Override http request option.
|
|
2828
|
+
* @throws {RequiredError}
|
|
2829
|
+
* @memberof AgencyHostingPHPApi
|
|
2830
|
+
*/
|
|
2831
|
+
replaceWebsitePHPExtensionsV1(websiteUid, agencyHostingV1PhpUpdateExtensionsRequest, options) {
|
|
2832
|
+
return (0, exports.AgencyHostingPHPApiFp)(this.configuration).replaceWebsitePHPExtensionsV1(websiteUid, agencyHostingV1PhpUpdateExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2833
|
+
}
|
|
2834
|
+
/**
|
|
2835
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
2836
|
+
* @summary Replace website PHP options
|
|
2837
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2838
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
2839
|
+
* @param {*} [options] Override http request option.
|
|
2840
|
+
* @throws {RequiredError}
|
|
2841
|
+
* @memberof AgencyHostingPHPApi
|
|
2842
|
+
*/
|
|
2843
|
+
replaceWebsitePHPOptionsV1(websiteUid, agencyHostingV1PhpUpdateOptionsRequest, options) {
|
|
2844
|
+
return (0, exports.AgencyHostingPHPApiFp)(this.configuration).replaceWebsitePHPOptionsV1(websiteUid, agencyHostingV1PhpUpdateOptionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2845
|
+
}
|
|
2846
|
+
/**
|
|
2847
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
2848
|
+
* @summary Update website PHP version
|
|
2849
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2850
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
2851
|
+
* @param {*} [options] Override http request option.
|
|
2852
|
+
* @throws {RequiredError}
|
|
2853
|
+
* @memberof AgencyHostingPHPApi
|
|
2854
|
+
*/
|
|
2855
|
+
updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options) {
|
|
2856
|
+
return (0, exports.AgencyHostingPHPApiFp)(this.configuration).updateWebsitePHPVersionV1(websiteUid, agencyHostingV1PhpUpdateVersionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2310
2857
|
}
|
|
2311
2858
|
}
|
|
2312
|
-
exports.
|
|
2859
|
+
exports.AgencyHostingPHPApi = AgencyHostingPHPApi;
|
|
2313
2860
|
/**
|
|
2314
2861
|
* AgencyHostingWebsiteSetupsApi - axios parameter creator
|
|
2315
2862
|
* @export
|
|
@@ -12547,6 +13094,300 @@ class HostingPHPApi extends base_1.BaseAPI {
|
|
|
12547
13094
|
}
|
|
12548
13095
|
}
|
|
12549
13096
|
exports.HostingPHPApi = HostingPHPApi;
|
|
13097
|
+
/**
|
|
13098
|
+
* HostingRedirectsApi - axios parameter creator
|
|
13099
|
+
* @export
|
|
13100
|
+
*/
|
|
13101
|
+
const HostingRedirectsApiAxiosParamCreator = function (configuration) {
|
|
13102
|
+
return {
|
|
13103
|
+
/**
|
|
13104
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
13105
|
+
* @summary Create website redirect
|
|
13106
|
+
* @param {string} username
|
|
13107
|
+
* @param {string} domain Domain name
|
|
13108
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
13109
|
+
* @param {*} [options] Override http request option.
|
|
13110
|
+
* @throws {RequiredError}
|
|
13111
|
+
*/
|
|
13112
|
+
createWebsiteRedirectV1: (username_1, domain_1, hostingV1RedirectsCreateRedirectRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1RedirectsCreateRedirectRequest_1, ...args_1], void 0, function* (username, domain, hostingV1RedirectsCreateRedirectRequest, options = {}) {
|
|
13113
|
+
// verify required parameter 'username' is not null or undefined
|
|
13114
|
+
(0, common_1.assertParamExists)('createWebsiteRedirectV1', 'username', username);
|
|
13115
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13116
|
+
(0, common_1.assertParamExists)('createWebsiteRedirectV1', 'domain', domain);
|
|
13117
|
+
// verify required parameter 'hostingV1RedirectsCreateRedirectRequest' is not null or undefined
|
|
13118
|
+
(0, common_1.assertParamExists)('createWebsiteRedirectV1', 'hostingV1RedirectsCreateRedirectRequest', hostingV1RedirectsCreateRedirectRequest);
|
|
13119
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/redirects`
|
|
13120
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13121
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13123
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13124
|
+
let baseOptions;
|
|
13125
|
+
if (configuration) {
|
|
13126
|
+
baseOptions = configuration.baseOptions;
|
|
13127
|
+
}
|
|
13128
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13129
|
+
const localVarHeaderParameter = {};
|
|
13130
|
+
const localVarQueryParameter = {};
|
|
13131
|
+
// authentication apiToken required
|
|
13132
|
+
// http bearer authentication required
|
|
13133
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13135
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13137
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13138
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1RedirectsCreateRedirectRequest, localVarRequestOptions, configuration);
|
|
13139
|
+
return {
|
|
13140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13141
|
+
options: localVarRequestOptions,
|
|
13142
|
+
};
|
|
13143
|
+
}),
|
|
13144
|
+
/**
|
|
13145
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
13146
|
+
* @summary Delete website redirect
|
|
13147
|
+
* @param {string} username
|
|
13148
|
+
* @param {string} domain Domain name
|
|
13149
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
13150
|
+
* @param {*} [options] Override http request option.
|
|
13151
|
+
* @throws {RequiredError}
|
|
13152
|
+
*/
|
|
13153
|
+
deleteWebsiteRedirectV1: (username_1, domain_1, from_1, ...args_1) => __awaiter(this, [username_1, domain_1, from_1, ...args_1], void 0, function* (username, domain, from, options = {}) {
|
|
13154
|
+
// verify required parameter 'username' is not null or undefined
|
|
13155
|
+
(0, common_1.assertParamExists)('deleteWebsiteRedirectV1', 'username', username);
|
|
13156
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13157
|
+
(0, common_1.assertParamExists)('deleteWebsiteRedirectV1', 'domain', domain);
|
|
13158
|
+
// verify required parameter 'from' is not null or undefined
|
|
13159
|
+
(0, common_1.assertParamExists)('deleteWebsiteRedirectV1', 'from', from);
|
|
13160
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/redirects`
|
|
13161
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13162
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13164
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13165
|
+
let baseOptions;
|
|
13166
|
+
if (configuration) {
|
|
13167
|
+
baseOptions = configuration.baseOptions;
|
|
13168
|
+
}
|
|
13169
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
13170
|
+
const localVarHeaderParameter = {};
|
|
13171
|
+
const localVarQueryParameter = {};
|
|
13172
|
+
// authentication apiToken required
|
|
13173
|
+
// http bearer authentication required
|
|
13174
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13175
|
+
if (from !== undefined) {
|
|
13176
|
+
localVarQueryParameter['from'] = from;
|
|
13177
|
+
}
|
|
13178
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13180
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13181
|
+
return {
|
|
13182
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13183
|
+
options: localVarRequestOptions,
|
|
13184
|
+
};
|
|
13185
|
+
}),
|
|
13186
|
+
/**
|
|
13187
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
13188
|
+
* @summary List website redirects
|
|
13189
|
+
* @param {string} username
|
|
13190
|
+
* @param {string} domain Domain name
|
|
13191
|
+
* @param {number} [page] Page number
|
|
13192
|
+
* @param {number} [perPage] Number of items per page
|
|
13193
|
+
* @param {*} [options] Override http request option.
|
|
13194
|
+
* @throws {RequiredError}
|
|
13195
|
+
*/
|
|
13196
|
+
listWebsiteRedirectsV1: (username_1, domain_1, page_1, perPage_1, ...args_1) => __awaiter(this, [username_1, domain_1, page_1, perPage_1, ...args_1], void 0, function* (username, domain, page, perPage, options = {}) {
|
|
13197
|
+
// verify required parameter 'username' is not null or undefined
|
|
13198
|
+
(0, common_1.assertParamExists)('listWebsiteRedirectsV1', 'username', username);
|
|
13199
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13200
|
+
(0, common_1.assertParamExists)('listWebsiteRedirectsV1', 'domain', domain);
|
|
13201
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/redirects`
|
|
13202
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13203
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13205
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13206
|
+
let baseOptions;
|
|
13207
|
+
if (configuration) {
|
|
13208
|
+
baseOptions = configuration.baseOptions;
|
|
13209
|
+
}
|
|
13210
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13211
|
+
const localVarHeaderParameter = {};
|
|
13212
|
+
const localVarQueryParameter = {};
|
|
13213
|
+
// authentication apiToken required
|
|
13214
|
+
// http bearer authentication required
|
|
13215
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13216
|
+
if (page !== undefined) {
|
|
13217
|
+
localVarQueryParameter['page'] = page;
|
|
13218
|
+
}
|
|
13219
|
+
if (perPage !== undefined) {
|
|
13220
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
13221
|
+
}
|
|
13222
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13223
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13224
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13225
|
+
return {
|
|
13226
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13227
|
+
options: localVarRequestOptions,
|
|
13228
|
+
};
|
|
13229
|
+
}),
|
|
13230
|
+
};
|
|
13231
|
+
};
|
|
13232
|
+
exports.HostingRedirectsApiAxiosParamCreator = HostingRedirectsApiAxiosParamCreator;
|
|
13233
|
+
/**
|
|
13234
|
+
* HostingRedirectsApi - functional programming interface
|
|
13235
|
+
* @export
|
|
13236
|
+
*/
|
|
13237
|
+
const HostingRedirectsApiFp = function (configuration) {
|
|
13238
|
+
const localVarAxiosParamCreator = (0, exports.HostingRedirectsApiAxiosParamCreator)(configuration);
|
|
13239
|
+
return {
|
|
13240
|
+
/**
|
|
13241
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
13242
|
+
* @summary Create website redirect
|
|
13243
|
+
* @param {string} username
|
|
13244
|
+
* @param {string} domain Domain name
|
|
13245
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
13246
|
+
* @param {*} [options] Override http request option.
|
|
13247
|
+
* @throws {RequiredError}
|
|
13248
|
+
*/
|
|
13249
|
+
createWebsiteRedirectV1(username, domain, hostingV1RedirectsCreateRedirectRequest, options) {
|
|
13250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13251
|
+
var _a, _b;
|
|
13252
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteRedirectV1(username, domain, hostingV1RedirectsCreateRedirectRequest, options);
|
|
13253
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingRedirectsApi.createWebsiteRedirectV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13254
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13255
|
+
});
|
|
13256
|
+
},
|
|
13257
|
+
/**
|
|
13258
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
13259
|
+
* @summary Delete website redirect
|
|
13260
|
+
* @param {string} username
|
|
13261
|
+
* @param {string} domain Domain name
|
|
13262
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
13263
|
+
* @param {*} [options] Override http request option.
|
|
13264
|
+
* @throws {RequiredError}
|
|
13265
|
+
*/
|
|
13266
|
+
deleteWebsiteRedirectV1(username, domain, from, options) {
|
|
13267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13268
|
+
var _a, _b;
|
|
13269
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteRedirectV1(username, domain, from, options);
|
|
13270
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingRedirectsApi.deleteWebsiteRedirectV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13271
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13272
|
+
});
|
|
13273
|
+
},
|
|
13274
|
+
/**
|
|
13275
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
13276
|
+
* @summary List website redirects
|
|
13277
|
+
* @param {string} username
|
|
13278
|
+
* @param {string} domain Domain name
|
|
13279
|
+
* @param {number} [page] Page number
|
|
13280
|
+
* @param {number} [perPage] Number of items per page
|
|
13281
|
+
* @param {*} [options] Override http request option.
|
|
13282
|
+
* @throws {RequiredError}
|
|
13283
|
+
*/
|
|
13284
|
+
listWebsiteRedirectsV1(username, domain, page, perPage, options) {
|
|
13285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13286
|
+
var _a, _b;
|
|
13287
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteRedirectsV1(username, domain, page, perPage, options);
|
|
13288
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingRedirectsApi.listWebsiteRedirectsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13289
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13290
|
+
});
|
|
13291
|
+
},
|
|
13292
|
+
};
|
|
13293
|
+
};
|
|
13294
|
+
exports.HostingRedirectsApiFp = HostingRedirectsApiFp;
|
|
13295
|
+
/**
|
|
13296
|
+
* HostingRedirectsApi - factory interface
|
|
13297
|
+
* @export
|
|
13298
|
+
*/
|
|
13299
|
+
const HostingRedirectsApiFactory = function (configuration, basePath, axios) {
|
|
13300
|
+
const localVarFp = (0, exports.HostingRedirectsApiFp)(configuration);
|
|
13301
|
+
return {
|
|
13302
|
+
/**
|
|
13303
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
13304
|
+
* @summary Create website redirect
|
|
13305
|
+
* @param {string} username
|
|
13306
|
+
* @param {string} domain Domain name
|
|
13307
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
13308
|
+
* @param {*} [options] Override http request option.
|
|
13309
|
+
* @throws {RequiredError}
|
|
13310
|
+
*/
|
|
13311
|
+
createWebsiteRedirectV1(username, domain, hostingV1RedirectsCreateRedirectRequest, options) {
|
|
13312
|
+
return localVarFp.createWebsiteRedirectV1(username, domain, hostingV1RedirectsCreateRedirectRequest, options).then((request) => request(axios, basePath));
|
|
13313
|
+
},
|
|
13314
|
+
/**
|
|
13315
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
13316
|
+
* @summary Delete website redirect
|
|
13317
|
+
* @param {string} username
|
|
13318
|
+
* @param {string} domain Domain name
|
|
13319
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
13320
|
+
* @param {*} [options] Override http request option.
|
|
13321
|
+
* @throws {RequiredError}
|
|
13322
|
+
*/
|
|
13323
|
+
deleteWebsiteRedirectV1(username, domain, from, options) {
|
|
13324
|
+
return localVarFp.deleteWebsiteRedirectV1(username, domain, from, options).then((request) => request(axios, basePath));
|
|
13325
|
+
},
|
|
13326
|
+
/**
|
|
13327
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
13328
|
+
* @summary List website redirects
|
|
13329
|
+
* @param {string} username
|
|
13330
|
+
* @param {string} domain Domain name
|
|
13331
|
+
* @param {number} [page] Page number
|
|
13332
|
+
* @param {number} [perPage] Number of items per page
|
|
13333
|
+
* @param {*} [options] Override http request option.
|
|
13334
|
+
* @throws {RequiredError}
|
|
13335
|
+
*/
|
|
13336
|
+
listWebsiteRedirectsV1(username, domain, page, perPage, options) {
|
|
13337
|
+
return localVarFp.listWebsiteRedirectsV1(username, domain, page, perPage, options).then((request) => request(axios, basePath));
|
|
13338
|
+
},
|
|
13339
|
+
};
|
|
13340
|
+
};
|
|
13341
|
+
exports.HostingRedirectsApiFactory = HostingRedirectsApiFactory;
|
|
13342
|
+
/**
|
|
13343
|
+
* HostingRedirectsApi - object-oriented interface
|
|
13344
|
+
* @export
|
|
13345
|
+
* @class HostingRedirectsApi
|
|
13346
|
+
* @extends {BaseAPI}
|
|
13347
|
+
*/
|
|
13348
|
+
class HostingRedirectsApi extends base_1.BaseAPI {
|
|
13349
|
+
/**
|
|
13350
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
13351
|
+
* @summary Create website redirect
|
|
13352
|
+
* @param {string} username
|
|
13353
|
+
* @param {string} domain Domain name
|
|
13354
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
13355
|
+
* @param {*} [options] Override http request option.
|
|
13356
|
+
* @throws {RequiredError}
|
|
13357
|
+
* @memberof HostingRedirectsApi
|
|
13358
|
+
*/
|
|
13359
|
+
createWebsiteRedirectV1(username, domain, hostingV1RedirectsCreateRedirectRequest, options) {
|
|
13360
|
+
return (0, exports.HostingRedirectsApiFp)(this.configuration).createWebsiteRedirectV1(username, domain, hostingV1RedirectsCreateRedirectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13361
|
+
}
|
|
13362
|
+
/**
|
|
13363
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
13364
|
+
* @summary Delete website redirect
|
|
13365
|
+
* @param {string} username
|
|
13366
|
+
* @param {string} domain Domain name
|
|
13367
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
13368
|
+
* @param {*} [options] Override http request option.
|
|
13369
|
+
* @throws {RequiredError}
|
|
13370
|
+
* @memberof HostingRedirectsApi
|
|
13371
|
+
*/
|
|
13372
|
+
deleteWebsiteRedirectV1(username, domain, from, options) {
|
|
13373
|
+
return (0, exports.HostingRedirectsApiFp)(this.configuration).deleteWebsiteRedirectV1(username, domain, from, options).then((request) => request(this.axios, this.basePath));
|
|
13374
|
+
}
|
|
13375
|
+
/**
|
|
13376
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
13377
|
+
* @summary List website redirects
|
|
13378
|
+
* @param {string} username
|
|
13379
|
+
* @param {string} domain Domain name
|
|
13380
|
+
* @param {number} [page] Page number
|
|
13381
|
+
* @param {number} [perPage] Number of items per page
|
|
13382
|
+
* @param {*} [options] Override http request option.
|
|
13383
|
+
* @throws {RequiredError}
|
|
13384
|
+
* @memberof HostingRedirectsApi
|
|
13385
|
+
*/
|
|
13386
|
+
listWebsiteRedirectsV1(username, domain, page, perPage, options) {
|
|
13387
|
+
return (0, exports.HostingRedirectsApiFp)(this.configuration).listWebsiteRedirectsV1(username, domain, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
13388
|
+
}
|
|
13389
|
+
}
|
|
13390
|
+
exports.HostingRedirectsApi = HostingRedirectsApi;
|
|
12550
13391
|
/**
|
|
12551
13392
|
* HostingWebsitesApi - axios parameter creator
|
|
12552
13393
|
* @export
|