hostinger-api-sdk 2.1.0 → 2.1.2
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 +402 -21
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +220 -21
- package/dist/api.js +369 -26
- 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 +220 -21
- package/dist/esm/api.js +356 -17
- 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/HostingCDNApi.md +238 -0
- package/docs/HostingCacheApi.md +1 -1
- package/docs/HostingV1CdnCdnStatusResource.md +20 -0
- package/docs/HostingV1OnboardingsOnboardingResource.md +1 -1
- package/docs/HostingV1OnboardingsStartOnboardingRequest.md +2 -2
- package/docs/HostingWebsitesApi.md +2 -2
- package/docs/WordPressInstallationsApi.md +1 -1
- package/docs/WordPressV1InstallationsInstallWordPressRequest.md +3 -1
- 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: 2.1.
|
|
7
|
+
* API Version: 2.1.2
|
|
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,15 +22,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductUpdateRequestStatusEnum = exports.EcommerceV1ProductProductResourceStatusEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.EcommerceV1PaymentProviderPaymentProviderListResourceDataConnectedInnerStatusEnum = exports.EcommerceV1DiscountDiscountResourceAllocationEnum = exports.EcommerceV1DiscountDiscountResourceTypeEnum = exports.EcommerceV1DiscountCreateDiscountRequestAllocationEnum = exports.EcommerceV1DiscountCreateDiscountRequestTypeEnum = 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.BillingV1OrderPaymentProcessingResourceStatusEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgentReadinessV1ScansScanResourceStatusEnum = exports.AgentReadinessV1ScansCheckResultResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1SslSslStatusResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
23
|
exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1SslSslStatusResourceProviderEnum = exports.HostingV1SslSslStatusResourceStatusEnum = exports.HostingV1OnboardingsStartOnboardingRequestTypeEnum = exports.HostingV1OnboardingsOnboardingResourceStatusEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestPackageManagerEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestAppTypeEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestNodeVersionEnum = exports.HostingV1NodeJsStoredBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1HeadlessStoreAgentReportRequestRunKindEnum = exports.HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = exports.HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = exports.HostingV1GitGitInstallationResourceStatusEnum = exports.HostingV1GitGitInstallationResourceAccountTypeEnum = exports.HostingV1GitGitInstallationResourceProviderEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesWebsiteResourceStatusEnum = void 0;
|
|
24
24
|
exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = 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.ReachV1ContactsSegmentsSegmentFilterOperatorResourceInputTypeEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceOperatorEnum = exports.ReachV1ContactsSegmentsSegmentFilterAttributeResourceTypeEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortDirectionEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortByEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCreatedCampaignResourceTypeEnum = exports.ReachV1CampaignsCreatedCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = void 0;
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = 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 = void 0;
|
|
25
|
+
exports.ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = exports.AgencyHostingMetricsApi = exports.AgencyHostingMetricsApiFactory = exports.AgencyHostingMetricsApiFp = exports.AgencyHostingMetricsApiAxiosParamCreator = 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.WordPressV1McpExecuteMcpToolRequestServerEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1InstallationsInstallWordPressRequestTypeEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.WordPressV1ContentGenerationResourceStatusEnum = exports.WordPressV1ContentGenerationResourceTypeEnum = exports.WordPressV1ContentGenerateImagesRequestImageTypeEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = void 0;
|
|
26
|
+
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.AgentReadinessScansApi = exports.AgentReadinessScansApiFactory = exports.AgentReadinessScansApiFp = exports.AgentReadinessScansApiAxiosParamCreator = exports.AgentReadinessChecksApi = exports.AgentReadinessChecksApiFactory = exports.AgentReadinessChecksApiFp = exports.AgentReadinessChecksApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.ListAgencyPlanWebsitesV1WebsiteTypesEnum = exports.ListAgencyPlanWebsitesV1StatesEnum = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingSSLApi = exports.AgencyHostingSSLApiFactory = exports.AgencyHostingSSLApiFp = exports.AgencyHostingSSLApiAxiosParamCreator = exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = void 0;
|
|
27
|
+
exports.EcommerceOrdersApiFactory = exports.EcommerceOrdersApiFp = exports.EcommerceOrdersApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.ListDiscountsV1IsDisabledEnum = exports.EcommerceDiscountsApi = exports.EcommerceDiscountsApiFactory = exports.EcommerceDiscountsApiFp = exports.EcommerceDiscountsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = 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 = void 0;
|
|
28
|
+
exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HostingCDNApi = exports.HostingCDNApiFactory = exports.HostingCDNApiFp = exports.HostingCDNApiAxiosParamCreator = 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.ListProductsV1IncludeEnum = exports.ListProductsV1StatusEnum = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommerceProductVariantsApi = exports.EcommerceProductVariantsApiFactory = exports.EcommerceProductVariantsApiFp = exports.EcommerceProductVariantsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.ListStoreOrdersV1FulfillmentStatusEnum = exports.ListStoreOrdersV1PaymentStatusEnum = exports.ListStoreOrdersV1StatusEnum = exports.EcommerceOrdersApi = void 0;
|
|
29
|
+
exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingSSLApi = exports.HostingSSLApiFactory = exports.HostingSSLApiFp = exports.HostingSSLApiAxiosParamCreator = 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.GetNodeJsRuntimeLogsV1LevelsEnum = exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingHeadlessApi = exports.HostingHeadlessApiFactory = exports.HostingHeadlessApiFp = exports.HostingHeadlessApiAxiosParamCreator = exports.ListGitInstallationsV1StatusEnum = exports.ListGitInstallationsV1ProviderEnum = exports.HostingGitApi = exports.HostingGitApiFactory = exports.HostingGitApiFp = exports.HostingGitApiAxiosParamCreator = 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 = void 0;
|
|
30
|
+
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 = 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.ListWebsitesV1WebsiteTypesEnum = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = void 0;
|
|
31
|
+
exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTemplatesApi = exports.ReachTemplatesApiFactory = exports.ReachTemplatesApiFp = exports.ReachTemplatesApiAxiosParamCreator = 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 = 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 = void 0;
|
|
32
|
+
exports.WordPressAIContentApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSSSHKeysApi = exports.VPSSSHKeysApiFactory = exports.VPSSSHKeysApiFp = exports.VPSSSHKeysApiAxiosParamCreator = 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 = 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 = void 0;
|
|
33
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = 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.GetGenerationResultV1TypeEnum = exports.WordPressAIContentApi = exports.WordPressAIContentApiFactory = exports.WordPressAIContentApiFp = void 0;
|
|
34
34
|
const axios_1 = require("axios");
|
|
35
35
|
// Some imports not used depending on template conditions
|
|
36
36
|
// @ts-ignore
|
|
@@ -573,6 +573,7 @@ exports.HostingV1OnboardingsOnboardingResourceStatusEnum = {
|
|
|
573
573
|
};
|
|
574
574
|
exports.HostingV1OnboardingsStartOnboardingRequestTypeEnum = {
|
|
575
575
|
Wordpress: 'wordpress',
|
|
576
|
+
HeadlessEmpty: 'headless_empty',
|
|
576
577
|
HeadlessWordpress: 'headless_wordpress',
|
|
577
578
|
HeadlessEcommerce: 'headless_ecommerce',
|
|
578
579
|
HeadlessPocketbase: 'headless_pocketbase'
|
|
@@ -1177,6 +1178,10 @@ exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
|
|
|
1177
1178
|
Llmstxt: 'llmstxt',
|
|
1178
1179
|
Web2agent: 'web2agent'
|
|
1179
1180
|
};
|
|
1181
|
+
exports.WordPressV1InstallationsInstallWordPressRequestTypeEnum = {
|
|
1182
|
+
Default: 'default',
|
|
1183
|
+
Headless: 'headless'
|
|
1184
|
+
};
|
|
1180
1185
|
exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
|
|
1181
1186
|
All: 'all',
|
|
1182
1187
|
None: 'none',
|
|
@@ -12784,6 +12789,344 @@ class HorizonsWebsitesApi extends base_1.BaseAPI {
|
|
|
12784
12789
|
}
|
|
12785
12790
|
}
|
|
12786
12791
|
exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
|
|
12792
|
+
/**
|
|
12793
|
+
* HostingCDNApi - axios parameter creator
|
|
12794
|
+
* @export
|
|
12795
|
+
*/
|
|
12796
|
+
const HostingCDNApiAxiosParamCreator = function (configuration) {
|
|
12797
|
+
return {
|
|
12798
|
+
/**
|
|
12799
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12800
|
+
* @summary Disable CDN
|
|
12801
|
+
* @param {string} username
|
|
12802
|
+
* @param {string} domain Domain name
|
|
12803
|
+
* @param {*} [options] Override http request option.
|
|
12804
|
+
* @throws {RequiredError}
|
|
12805
|
+
*/
|
|
12806
|
+
disableCDNV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12807
|
+
// verify required parameter 'username' is not null or undefined
|
|
12808
|
+
(0, common_1.assertParamExists)('disableCDNV1', 'username', username);
|
|
12809
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12810
|
+
(0, common_1.assertParamExists)('disableCDNV1', 'domain', domain);
|
|
12811
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/disable`
|
|
12812
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12813
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12815
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12816
|
+
let baseOptions;
|
|
12817
|
+
if (configuration) {
|
|
12818
|
+
baseOptions = configuration.baseOptions;
|
|
12819
|
+
}
|
|
12820
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12821
|
+
const localVarHeaderParameter = {};
|
|
12822
|
+
const localVarQueryParameter = {};
|
|
12823
|
+
// authentication apiToken required
|
|
12824
|
+
// http bearer authentication required
|
|
12825
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12826
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12827
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12828
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12829
|
+
return {
|
|
12830
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12831
|
+
options: localVarRequestOptions,
|
|
12832
|
+
};
|
|
12833
|
+
}),
|
|
12834
|
+
/**
|
|
12835
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12836
|
+
* @summary Enable CDN
|
|
12837
|
+
* @param {string} username
|
|
12838
|
+
* @param {string} domain Domain name
|
|
12839
|
+
* @param {*} [options] Override http request option.
|
|
12840
|
+
* @throws {RequiredError}
|
|
12841
|
+
*/
|
|
12842
|
+
enableCDNV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12843
|
+
// verify required parameter 'username' is not null or undefined
|
|
12844
|
+
(0, common_1.assertParamExists)('enableCDNV1', 'username', username);
|
|
12845
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12846
|
+
(0, common_1.assertParamExists)('enableCDNV1', 'domain', domain);
|
|
12847
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/enable`
|
|
12848
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12849
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12850
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12851
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12852
|
+
let baseOptions;
|
|
12853
|
+
if (configuration) {
|
|
12854
|
+
baseOptions = configuration.baseOptions;
|
|
12855
|
+
}
|
|
12856
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12857
|
+
const localVarHeaderParameter = {};
|
|
12858
|
+
const localVarQueryParameter = {};
|
|
12859
|
+
// authentication apiToken required
|
|
12860
|
+
// http bearer authentication required
|
|
12861
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12862
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12863
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12864
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12865
|
+
return {
|
|
12866
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12867
|
+
options: localVarRequestOptions,
|
|
12868
|
+
};
|
|
12869
|
+
}),
|
|
12870
|
+
/**
|
|
12871
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
12872
|
+
* @summary Get CDN status
|
|
12873
|
+
* @param {string} username
|
|
12874
|
+
* @param {string} domain Domain name
|
|
12875
|
+
* @param {*} [options] Override http request option.
|
|
12876
|
+
* @throws {RequiredError}
|
|
12877
|
+
*/
|
|
12878
|
+
getCDNStatusV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12879
|
+
// verify required parameter 'username' is not null or undefined
|
|
12880
|
+
(0, common_1.assertParamExists)('getCDNStatusV1', 'username', username);
|
|
12881
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12882
|
+
(0, common_1.assertParamExists)('getCDNStatusV1', 'domain', domain);
|
|
12883
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/status`
|
|
12884
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12885
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12887
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12888
|
+
let baseOptions;
|
|
12889
|
+
if (configuration) {
|
|
12890
|
+
baseOptions = configuration.baseOptions;
|
|
12891
|
+
}
|
|
12892
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12893
|
+
const localVarHeaderParameter = {};
|
|
12894
|
+
const localVarQueryParameter = {};
|
|
12895
|
+
// authentication apiToken required
|
|
12896
|
+
// http bearer authentication required
|
|
12897
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12898
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12899
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12900
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12901
|
+
return {
|
|
12902
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12903
|
+
options: localVarRequestOptions,
|
|
12904
|
+
};
|
|
12905
|
+
}),
|
|
12906
|
+
/**
|
|
12907
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
12908
|
+
* @summary Purge CDN cache
|
|
12909
|
+
* @param {string} username
|
|
12910
|
+
* @param {string} domain Domain name
|
|
12911
|
+
* @param {*} [options] Override http request option.
|
|
12912
|
+
* @throws {RequiredError}
|
|
12913
|
+
*/
|
|
12914
|
+
purgeCDNCacheV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12915
|
+
// verify required parameter 'username' is not null or undefined
|
|
12916
|
+
(0, common_1.assertParamExists)('purgeCDNCacheV1', 'username', username);
|
|
12917
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12918
|
+
(0, common_1.assertParamExists)('purgeCDNCacheV1', 'domain', domain);
|
|
12919
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/purge`
|
|
12920
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12921
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12922
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12923
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12924
|
+
let baseOptions;
|
|
12925
|
+
if (configuration) {
|
|
12926
|
+
baseOptions = configuration.baseOptions;
|
|
12927
|
+
}
|
|
12928
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12929
|
+
const localVarHeaderParameter = {};
|
|
12930
|
+
const localVarQueryParameter = {};
|
|
12931
|
+
// authentication apiToken required
|
|
12932
|
+
// http bearer authentication required
|
|
12933
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12936
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12937
|
+
return {
|
|
12938
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12939
|
+
options: localVarRequestOptions,
|
|
12940
|
+
};
|
|
12941
|
+
}),
|
|
12942
|
+
};
|
|
12943
|
+
};
|
|
12944
|
+
exports.HostingCDNApiAxiosParamCreator = HostingCDNApiAxiosParamCreator;
|
|
12945
|
+
/**
|
|
12946
|
+
* HostingCDNApi - functional programming interface
|
|
12947
|
+
* @export
|
|
12948
|
+
*/
|
|
12949
|
+
const HostingCDNApiFp = function (configuration) {
|
|
12950
|
+
const localVarAxiosParamCreator = (0, exports.HostingCDNApiAxiosParamCreator)(configuration);
|
|
12951
|
+
return {
|
|
12952
|
+
/**
|
|
12953
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12954
|
+
* @summary Disable CDN
|
|
12955
|
+
* @param {string} username
|
|
12956
|
+
* @param {string} domain Domain name
|
|
12957
|
+
* @param {*} [options] Override http request option.
|
|
12958
|
+
* @throws {RequiredError}
|
|
12959
|
+
*/
|
|
12960
|
+
disableCDNV1(username, domain, options) {
|
|
12961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12962
|
+
var _a, _b;
|
|
12963
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableCDNV1(username, domain, options);
|
|
12964
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.disableCDNV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12965
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12966
|
+
});
|
|
12967
|
+
},
|
|
12968
|
+
/**
|
|
12969
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12970
|
+
* @summary Enable CDN
|
|
12971
|
+
* @param {string} username
|
|
12972
|
+
* @param {string} domain Domain name
|
|
12973
|
+
* @param {*} [options] Override http request option.
|
|
12974
|
+
* @throws {RequiredError}
|
|
12975
|
+
*/
|
|
12976
|
+
enableCDNV1(username, domain, options) {
|
|
12977
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12978
|
+
var _a, _b;
|
|
12979
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableCDNV1(username, domain, options);
|
|
12980
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.enableCDNV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12981
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12982
|
+
});
|
|
12983
|
+
},
|
|
12984
|
+
/**
|
|
12985
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
12986
|
+
* @summary Get CDN status
|
|
12987
|
+
* @param {string} username
|
|
12988
|
+
* @param {string} domain Domain name
|
|
12989
|
+
* @param {*} [options] Override http request option.
|
|
12990
|
+
* @throws {RequiredError}
|
|
12991
|
+
*/
|
|
12992
|
+
getCDNStatusV1(username, domain, options) {
|
|
12993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12994
|
+
var _a, _b;
|
|
12995
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCDNStatusV1(username, domain, options);
|
|
12996
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.getCDNStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12997
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12998
|
+
});
|
|
12999
|
+
},
|
|
13000
|
+
/**
|
|
13001
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
13002
|
+
* @summary Purge CDN cache
|
|
13003
|
+
* @param {string} username
|
|
13004
|
+
* @param {string} domain Domain name
|
|
13005
|
+
* @param {*} [options] Override http request option.
|
|
13006
|
+
* @throws {RequiredError}
|
|
13007
|
+
*/
|
|
13008
|
+
purgeCDNCacheV1(username, domain, options) {
|
|
13009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13010
|
+
var _a, _b;
|
|
13011
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCDNCacheV1(username, domain, options);
|
|
13012
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.purgeCDNCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13013
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13014
|
+
});
|
|
13015
|
+
},
|
|
13016
|
+
};
|
|
13017
|
+
};
|
|
13018
|
+
exports.HostingCDNApiFp = HostingCDNApiFp;
|
|
13019
|
+
/**
|
|
13020
|
+
* HostingCDNApi - factory interface
|
|
13021
|
+
* @export
|
|
13022
|
+
*/
|
|
13023
|
+
const HostingCDNApiFactory = function (configuration, basePath, axios) {
|
|
13024
|
+
const localVarFp = (0, exports.HostingCDNApiFp)(configuration);
|
|
13025
|
+
return {
|
|
13026
|
+
/**
|
|
13027
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13028
|
+
* @summary Disable CDN
|
|
13029
|
+
* @param {string} username
|
|
13030
|
+
* @param {string} domain Domain name
|
|
13031
|
+
* @param {*} [options] Override http request option.
|
|
13032
|
+
* @throws {RequiredError}
|
|
13033
|
+
*/
|
|
13034
|
+
disableCDNV1(username, domain, options) {
|
|
13035
|
+
return localVarFp.disableCDNV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13036
|
+
},
|
|
13037
|
+
/**
|
|
13038
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13039
|
+
* @summary Enable CDN
|
|
13040
|
+
* @param {string} username
|
|
13041
|
+
* @param {string} domain Domain name
|
|
13042
|
+
* @param {*} [options] Override http request option.
|
|
13043
|
+
* @throws {RequiredError}
|
|
13044
|
+
*/
|
|
13045
|
+
enableCDNV1(username, domain, options) {
|
|
13046
|
+
return localVarFp.enableCDNV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13047
|
+
},
|
|
13048
|
+
/**
|
|
13049
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13050
|
+
* @summary Get CDN status
|
|
13051
|
+
* @param {string} username
|
|
13052
|
+
* @param {string} domain Domain name
|
|
13053
|
+
* @param {*} [options] Override http request option.
|
|
13054
|
+
* @throws {RequiredError}
|
|
13055
|
+
*/
|
|
13056
|
+
getCDNStatusV1(username, domain, options) {
|
|
13057
|
+
return localVarFp.getCDNStatusV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13058
|
+
},
|
|
13059
|
+
/**
|
|
13060
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
13061
|
+
* @summary Purge CDN cache
|
|
13062
|
+
* @param {string} username
|
|
13063
|
+
* @param {string} domain Domain name
|
|
13064
|
+
* @param {*} [options] Override http request option.
|
|
13065
|
+
* @throws {RequiredError}
|
|
13066
|
+
*/
|
|
13067
|
+
purgeCDNCacheV1(username, domain, options) {
|
|
13068
|
+
return localVarFp.purgeCDNCacheV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13069
|
+
},
|
|
13070
|
+
};
|
|
13071
|
+
};
|
|
13072
|
+
exports.HostingCDNApiFactory = HostingCDNApiFactory;
|
|
13073
|
+
/**
|
|
13074
|
+
* HostingCDNApi - object-oriented interface
|
|
13075
|
+
* @export
|
|
13076
|
+
* @class HostingCDNApi
|
|
13077
|
+
* @extends {BaseAPI}
|
|
13078
|
+
*/
|
|
13079
|
+
class HostingCDNApi extends base_1.BaseAPI {
|
|
13080
|
+
/**
|
|
13081
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13082
|
+
* @summary Disable CDN
|
|
13083
|
+
* @param {string} username
|
|
13084
|
+
* @param {string} domain Domain name
|
|
13085
|
+
* @param {*} [options] Override http request option.
|
|
13086
|
+
* @throws {RequiredError}
|
|
13087
|
+
* @memberof HostingCDNApi
|
|
13088
|
+
*/
|
|
13089
|
+
disableCDNV1(username, domain, options) {
|
|
13090
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).disableCDNV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13091
|
+
}
|
|
13092
|
+
/**
|
|
13093
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13094
|
+
* @summary Enable CDN
|
|
13095
|
+
* @param {string} username
|
|
13096
|
+
* @param {string} domain Domain name
|
|
13097
|
+
* @param {*} [options] Override http request option.
|
|
13098
|
+
* @throws {RequiredError}
|
|
13099
|
+
* @memberof HostingCDNApi
|
|
13100
|
+
*/
|
|
13101
|
+
enableCDNV1(username, domain, options) {
|
|
13102
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).enableCDNV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13103
|
+
}
|
|
13104
|
+
/**
|
|
13105
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13106
|
+
* @summary Get CDN status
|
|
13107
|
+
* @param {string} username
|
|
13108
|
+
* @param {string} domain Domain name
|
|
13109
|
+
* @param {*} [options] Override http request option.
|
|
13110
|
+
* @throws {RequiredError}
|
|
13111
|
+
* @memberof HostingCDNApi
|
|
13112
|
+
*/
|
|
13113
|
+
getCDNStatusV1(username, domain, options) {
|
|
13114
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).getCDNStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13115
|
+
}
|
|
13116
|
+
/**
|
|
13117
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
13118
|
+
* @summary Purge CDN cache
|
|
13119
|
+
* @param {string} username
|
|
13120
|
+
* @param {string} domain Domain name
|
|
13121
|
+
* @param {*} [options] Override http request option.
|
|
13122
|
+
* @throws {RequiredError}
|
|
13123
|
+
* @memberof HostingCDNApi
|
|
13124
|
+
*/
|
|
13125
|
+
purgeCDNCacheV1(username, domain, options) {
|
|
13126
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).purgeCDNCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13127
|
+
}
|
|
13128
|
+
}
|
|
13129
|
+
exports.HostingCDNApi = HostingCDNApi;
|
|
12787
13130
|
/**
|
|
12788
13131
|
* HostingCacheApi - axios parameter creator
|
|
12789
13132
|
* @export
|
|
@@ -12791,7 +13134,7 @@ exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
|
|
|
12791
13134
|
const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
12792
13135
|
return {
|
|
12793
13136
|
/**
|
|
12794
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13137
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
12795
13138
|
* @summary Clear website cache
|
|
12796
13139
|
* @param {string} username
|
|
12797
13140
|
* @param {string} domain Domain name
|
|
@@ -12923,7 +13266,7 @@ const HostingCacheApiFp = function (configuration) {
|
|
|
12923
13266
|
const localVarAxiosParamCreator = (0, exports.HostingCacheApiAxiosParamCreator)(configuration);
|
|
12924
13267
|
return {
|
|
12925
13268
|
/**
|
|
12926
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13269
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
12927
13270
|
* @summary Clear website cache
|
|
12928
13271
|
* @param {string} username
|
|
12929
13272
|
* @param {string} domain Domain name
|
|
@@ -12984,7 +13327,7 @@ const HostingCacheApiFactory = function (configuration, basePath, axios) {
|
|
|
12984
13327
|
const localVarFp = (0, exports.HostingCacheApiFp)(configuration);
|
|
12985
13328
|
return {
|
|
12986
13329
|
/**
|
|
12987
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13330
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
12988
13331
|
* @summary Clear website cache
|
|
12989
13332
|
* @param {string} username
|
|
12990
13333
|
* @param {string} domain Domain name
|
|
@@ -13030,7 +13373,7 @@ exports.HostingCacheApiFactory = HostingCacheApiFactory;
|
|
|
13030
13373
|
*/
|
|
13031
13374
|
class HostingCacheApi extends base_1.BaseAPI {
|
|
13032
13375
|
/**
|
|
13033
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13376
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13034
13377
|
* @summary Clear website cache
|
|
13035
13378
|
* @param {string} username
|
|
13036
13379
|
* @param {string} domain Domain name
|
|
@@ -18890,7 +19233,7 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
18890
19233
|
};
|
|
18891
19234
|
}),
|
|
18892
19235
|
/**
|
|
18893
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
19236
|
+
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
18894
19237
|
* @summary List website setups
|
|
18895
19238
|
* @param {number | null} [orderId] Order ID
|
|
18896
19239
|
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
@@ -18986,7 +19329,7 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
18986
19329
|
};
|
|
18987
19330
|
}),
|
|
18988
19331
|
/**
|
|
18989
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19332
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
18990
19333
|
* @summary Start website setup
|
|
18991
19334
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18992
19335
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -19081,7 +19424,7 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
19081
19424
|
});
|
|
19082
19425
|
},
|
|
19083
19426
|
/**
|
|
19084
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
19427
|
+
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
19085
19428
|
* @summary List website setups
|
|
19086
19429
|
* @param {number | null} [orderId] Order ID
|
|
19087
19430
|
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
@@ -19119,7 +19462,7 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
19119
19462
|
});
|
|
19120
19463
|
},
|
|
19121
19464
|
/**
|
|
19122
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19465
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19123
19466
|
* @summary Start website setup
|
|
19124
19467
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19125
19468
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -19178,7 +19521,7 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
19178
19521
|
return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
|
|
19179
19522
|
},
|
|
19180
19523
|
/**
|
|
19181
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
19524
|
+
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
19182
19525
|
* @summary List website setups
|
|
19183
19526
|
* @param {number | null} [orderId] Order ID
|
|
19184
19527
|
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
@@ -19206,7 +19549,7 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
19206
19549
|
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
19207
19550
|
},
|
|
19208
19551
|
/**
|
|
19209
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19552
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19210
19553
|
* @summary Start website setup
|
|
19211
19554
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19212
19555
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -19263,7 +19606,7 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
19263
19606
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19264
19607
|
}
|
|
19265
19608
|
/**
|
|
19266
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
19609
|
+
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
|
|
19267
19610
|
* @summary List website setups
|
|
19268
19611
|
* @param {number | null} [orderId] Order ID
|
|
19269
19612
|
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
@@ -19293,7 +19636,7 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
19293
19636
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
|
|
19294
19637
|
}
|
|
19295
19638
|
/**
|
|
19296
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19639
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19297
19640
|
* @summary Start website setup
|
|
19298
19641
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19299
19642
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -33616,7 +33959,7 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
33616
33959
|
};
|
|
33617
33960
|
}),
|
|
33618
33961
|
/**
|
|
33619
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/
|
|
33962
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
33620
33963
|
* @summary Install WordPress
|
|
33621
33964
|
* @param {string} username
|
|
33622
33965
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -33897,7 +34240,7 @@ const WordPressInstallationsApiFp = function (configuration) {
|
|
|
33897
34240
|
});
|
|
33898
34241
|
},
|
|
33899
34242
|
/**
|
|
33900
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/
|
|
34243
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
33901
34244
|
* @summary Install WordPress
|
|
33902
34245
|
* @param {string} username
|
|
33903
34246
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -34045,7 +34388,7 @@ const WordPressInstallationsApiFactory = function (configuration, basePath, axio
|
|
|
34045
34388
|
return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
|
|
34046
34389
|
},
|
|
34047
34390
|
/**
|
|
34048
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/
|
|
34391
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
34049
34392
|
* @summary Install WordPress
|
|
34050
34393
|
* @param {string} username
|
|
34051
34394
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -34173,7 +34516,7 @@ class WordPressInstallationsApi extends base_1.BaseAPI {
|
|
|
34173
34516
|
return (0, exports.WordPressInstallationsApiFp)(this.configuration).importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34174
34517
|
}
|
|
34175
34518
|
/**
|
|
34176
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/
|
|
34519
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
34177
34520
|
* @summary Install WordPress
|
|
34178
34521
|
* @param {string} username
|
|
34179
34522
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|