@hostinger/sdk 1.58.3 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +200 -12
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +142 -9
- package/dist/api.js +119 -23
- 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 +142 -9
- package/dist/esm/api.js +108 -12
- 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/HostingV1OnboardingsOnboardingResource.md +2 -0
- package/docs/HostingV1OnboardingsStartOnboardingRequest.md +25 -0
- package/docs/HostingV1OnboardingsStartOnboardingRequestWordpress.md +25 -0
- package/docs/HostingV1OnboardingsStartOnboardingRequestWordpressAdmin.md +25 -0
- package/docs/HostingWebsitesApi.md +68 -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: 1.
|
|
7
|
+
* API Version: 1.59.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -20,17 +20,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesWebsiteResourceStatusEnum = 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.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1SslSslStatusResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
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 = void 0;
|
|
23
|
+
exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = 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.HostingV1GitGitInstallationResourceStatusEnum = exports.HostingV1GitGitInstallationResourceAccountTypeEnum = exports.HostingV1GitGitInstallationResourceProviderEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = void 0;
|
|
24
|
+
exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = 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 = void 0;
|
|
25
|
+
exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = 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.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = void 0;
|
|
26
|
+
exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.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 = void 0;
|
|
27
|
+
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 = 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 = void 0;
|
|
28
|
+
exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = 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 = 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.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 = void 0;
|
|
29
|
+
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 = 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 = void 0;
|
|
30
|
+
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 = 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 = void 0;
|
|
31
|
+
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 = 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 = void 0;
|
|
32
|
+
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.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = void 0;
|
|
33
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = void 0;
|
|
34
34
|
const axios_1 = require("axios");
|
|
35
35
|
// Some imports not used depending on template conditions
|
|
36
36
|
// @ts-ignore
|
|
@@ -544,6 +544,12 @@ exports.HostingV1OnboardingsOnboardingResourceStatusEnum = {
|
|
|
544
544
|
Completed: 'completed',
|
|
545
545
|
Failed: 'failed'
|
|
546
546
|
};
|
|
547
|
+
exports.HostingV1OnboardingsStartOnboardingRequestTypeEnum = {
|
|
548
|
+
Wordpress: 'wordpress',
|
|
549
|
+
HeadlessWordpress: 'headless_wordpress',
|
|
550
|
+
HeadlessEcommerce: 'headless_ecommerce',
|
|
551
|
+
HeadlessPocketbase: 'headless_pocketbase'
|
|
552
|
+
};
|
|
547
553
|
exports.HostingV1SslSslStatusResourceStatusEnum = {
|
|
548
554
|
NotInstalled: 'not_installed',
|
|
549
555
|
Installing: 'installing',
|
|
@@ -18452,13 +18458,15 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
18452
18458
|
};
|
|
18453
18459
|
}),
|
|
18454
18460
|
/**
|
|
18455
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Meant for polling right after creating a website: 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.
|
|
18461
|
+
* 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.
|
|
18456
18462
|
* @summary List website setups
|
|
18463
|
+
* @param {number | null} [orderId] Order ID
|
|
18464
|
+
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
18457
18465
|
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
18458
18466
|
* @param {*} [options] Override http request option.
|
|
18459
18467
|
* @throws {RequiredError}
|
|
18460
18468
|
*/
|
|
18461
|
-
listWebsiteSetupsV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
18469
|
+
listWebsiteSetupsV1: (orderId_1, subscriptionId_1, domain_1, ...args_1) => __awaiter(this, [orderId_1, subscriptionId_1, domain_1, ...args_1], void 0, function* (orderId, subscriptionId, domain, options = {}) {
|
|
18462
18470
|
const localVarPath = `/api/hosting/v1/onboardings`;
|
|
18463
18471
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18464
18472
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -18472,6 +18480,12 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
18472
18480
|
// authentication apiToken required
|
|
18473
18481
|
// http bearer authentication required
|
|
18474
18482
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
18483
|
+
if (orderId !== undefined) {
|
|
18484
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
18485
|
+
}
|
|
18486
|
+
if (subscriptionId !== undefined) {
|
|
18487
|
+
localVarQueryParameter['subscription_id'] = subscriptionId;
|
|
18488
|
+
}
|
|
18475
18489
|
if (domain !== undefined) {
|
|
18476
18490
|
localVarQueryParameter['domain'] = domain;
|
|
18477
18491
|
}
|
|
@@ -18539,6 +18553,43 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
18539
18553
|
options: localVarRequestOptions,
|
|
18540
18554
|
};
|
|
18541
18555
|
}),
|
|
18556
|
+
/**
|
|
18557
|
+
* 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
|
|
18558
|
+
* @summary Start website setup
|
|
18559
|
+
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18560
|
+
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
18561
|
+
* @param {*} [options] Override http request option.
|
|
18562
|
+
* @throws {RequiredError}
|
|
18563
|
+
*/
|
|
18564
|
+
startWebsiteSetupV1: (orderId_1, hostingV1OnboardingsStartOnboardingRequest_1, ...args_1) => __awaiter(this, [orderId_1, hostingV1OnboardingsStartOnboardingRequest_1, ...args_1], void 0, function* (orderId, hostingV1OnboardingsStartOnboardingRequest, options = {}) {
|
|
18565
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
18566
|
+
(0, common_1.assertParamExists)('startWebsiteSetupV1', 'orderId', orderId);
|
|
18567
|
+
// verify required parameter 'hostingV1OnboardingsStartOnboardingRequest' is not null or undefined
|
|
18568
|
+
(0, common_1.assertParamExists)('startWebsiteSetupV1', 'hostingV1OnboardingsStartOnboardingRequest', hostingV1OnboardingsStartOnboardingRequest);
|
|
18569
|
+
const localVarPath = `/api/hosting/v1/orders/{order_id}/onboardings`
|
|
18570
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
18571
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18572
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18573
|
+
let baseOptions;
|
|
18574
|
+
if (configuration) {
|
|
18575
|
+
baseOptions = configuration.baseOptions;
|
|
18576
|
+
}
|
|
18577
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
18578
|
+
const localVarHeaderParameter = {};
|
|
18579
|
+
const localVarQueryParameter = {};
|
|
18580
|
+
// authentication apiToken required
|
|
18581
|
+
// http bearer authentication required
|
|
18582
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
18583
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18584
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
18585
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18586
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18587
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1OnboardingsStartOnboardingRequest, localVarRequestOptions, configuration);
|
|
18588
|
+
return {
|
|
18589
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
18590
|
+
options: localVarRequestOptions,
|
|
18591
|
+
};
|
|
18592
|
+
}),
|
|
18542
18593
|
};
|
|
18543
18594
|
};
|
|
18544
18595
|
exports.HostingWebsitesApiAxiosParamCreator = HostingWebsitesApiAxiosParamCreator;
|
|
@@ -18597,16 +18648,18 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
18597
18648
|
});
|
|
18598
18649
|
},
|
|
18599
18650
|
/**
|
|
18600
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Meant for polling right after creating a website: 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.
|
|
18651
|
+
* 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.
|
|
18601
18652
|
* @summary List website setups
|
|
18653
|
+
* @param {number | null} [orderId] Order ID
|
|
18654
|
+
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
18602
18655
|
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
18603
18656
|
* @param {*} [options] Override http request option.
|
|
18604
18657
|
* @throws {RequiredError}
|
|
18605
18658
|
*/
|
|
18606
|
-
listWebsiteSetupsV1(domain, options) {
|
|
18659
|
+
listWebsiteSetupsV1(orderId, subscriptionId, domain, options) {
|
|
18607
18660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18608
18661
|
var _a, _b;
|
|
18609
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteSetupsV1(domain, options);
|
|
18662
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteSetupsV1(orderId, subscriptionId, domain, options);
|
|
18610
18663
|
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.listWebsiteSetupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
18611
18664
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18612
18665
|
});
|
|
@@ -18632,6 +18685,22 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
18632
18685
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18633
18686
|
});
|
|
18634
18687
|
},
|
|
18688
|
+
/**
|
|
18689
|
+
* 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
|
|
18690
|
+
* @summary Start website setup
|
|
18691
|
+
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18692
|
+
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
18693
|
+
* @param {*} [options] Override http request option.
|
|
18694
|
+
* @throws {RequiredError}
|
|
18695
|
+
*/
|
|
18696
|
+
startWebsiteSetupV1(orderId, hostingV1OnboardingsStartOnboardingRequest, options) {
|
|
18697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18698
|
+
var _a, _b;
|
|
18699
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startWebsiteSetupV1(orderId, hostingV1OnboardingsStartOnboardingRequest, options);
|
|
18700
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.startWebsiteSetupV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
18701
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18702
|
+
});
|
|
18703
|
+
},
|
|
18635
18704
|
};
|
|
18636
18705
|
};
|
|
18637
18706
|
exports.HostingWebsitesApiFp = HostingWebsitesApiFp;
|
|
@@ -18675,14 +18744,16 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
18675
18744
|
return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
|
|
18676
18745
|
},
|
|
18677
18746
|
/**
|
|
18678
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Meant for polling right after creating a website: 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.
|
|
18747
|
+
* 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.
|
|
18679
18748
|
* @summary List website setups
|
|
18749
|
+
* @param {number | null} [orderId] Order ID
|
|
18750
|
+
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
18680
18751
|
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
18681
18752
|
* @param {*} [options] Override http request option.
|
|
18682
18753
|
* @throws {RequiredError}
|
|
18683
18754
|
*/
|
|
18684
|
-
listWebsiteSetupsV1(domain, options) {
|
|
18685
|
-
return localVarFp.listWebsiteSetupsV1(domain, options).then((request) => request(axios, basePath));
|
|
18755
|
+
listWebsiteSetupsV1(orderId, subscriptionId, domain, options) {
|
|
18756
|
+
return localVarFp.listWebsiteSetupsV1(orderId, subscriptionId, domain, options).then((request) => request(axios, basePath));
|
|
18686
18757
|
},
|
|
18687
18758
|
/**
|
|
18688
18759
|
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with the other available query parameters to filter by username, order ID, enabled status, or domain name for more targeted results. A website appears in this list before its server-side setup has finished, and `is_enabled` reflects suspension, not readiness. To know when a newly created website is ready for file, deploy or database operations, poll the list website setups endpoint instead.
|
|
@@ -18700,6 +18771,17 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
18700
18771
|
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
18701
18772
|
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
18702
18773
|
},
|
|
18774
|
+
/**
|
|
18775
|
+
* 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
|
|
18776
|
+
* @summary Start website setup
|
|
18777
|
+
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18778
|
+
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
18779
|
+
* @param {*} [options] Override http request option.
|
|
18780
|
+
* @throws {RequiredError}
|
|
18781
|
+
*/
|
|
18782
|
+
startWebsiteSetupV1(orderId, hostingV1OnboardingsStartOnboardingRequest, options) {
|
|
18783
|
+
return localVarFp.startWebsiteSetupV1(orderId, hostingV1OnboardingsStartOnboardingRequest, options).then((request) => request(axios, basePath));
|
|
18784
|
+
},
|
|
18703
18785
|
};
|
|
18704
18786
|
};
|
|
18705
18787
|
exports.HostingWebsitesApiFactory = HostingWebsitesApiFactory;
|
|
@@ -18746,15 +18828,17 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
18746
18828
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18747
18829
|
}
|
|
18748
18830
|
/**
|
|
18749
|
-
* Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Meant for polling right after creating a website: 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.
|
|
18831
|
+
* 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.
|
|
18750
18832
|
* @summary List website setups
|
|
18833
|
+
* @param {number | null} [orderId] Order ID
|
|
18834
|
+
* @param {string | null} [subscriptionId] Filter by hosting order subscription ID
|
|
18751
18835
|
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
18752
18836
|
* @param {*} [options] Override http request option.
|
|
18753
18837
|
* @throws {RequiredError}
|
|
18754
18838
|
* @memberof HostingWebsitesApi
|
|
18755
18839
|
*/
|
|
18756
|
-
listWebsiteSetupsV1(domain, options) {
|
|
18757
|
-
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsiteSetupsV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
18840
|
+
listWebsiteSetupsV1(orderId, subscriptionId, domain, options) {
|
|
18841
|
+
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsiteSetupsV1(orderId, subscriptionId, domain, options).then((request) => request(this.axios, this.basePath));
|
|
18758
18842
|
}
|
|
18759
18843
|
/**
|
|
18760
18844
|
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with the other available query parameters to filter by username, order ID, enabled status, or domain name for more targeted results. A website appears in this list before its server-side setup has finished, and `is_enabled` reflects suspension, not readiness. To know when a newly created website is ready for file, deploy or database operations, poll the list website setups endpoint instead.
|
|
@@ -18773,6 +18857,18 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
18773
18857
|
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
18774
18858
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
|
|
18775
18859
|
}
|
|
18860
|
+
/**
|
|
18861
|
+
* 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
|
|
18862
|
+
* @summary Start website setup
|
|
18863
|
+
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18864
|
+
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
18865
|
+
* @param {*} [options] Override http request option.
|
|
18866
|
+
* @throws {RequiredError}
|
|
18867
|
+
* @memberof HostingWebsitesApi
|
|
18868
|
+
*/
|
|
18869
|
+
startWebsiteSetupV1(orderId, hostingV1OnboardingsStartOnboardingRequest, options) {
|
|
18870
|
+
return (0, exports.HostingWebsitesApiFp)(this.configuration).startWebsiteSetupV1(orderId, hostingV1OnboardingsStartOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18871
|
+
}
|
|
18776
18872
|
}
|
|
18777
18873
|
exports.HostingWebsitesApi = HostingWebsitesApi;
|
|
18778
18874
|
/**
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.59.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.59.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.59.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.59.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.59.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.59.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.59.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|