hostinger-api-sdk 1.38.0 → 1.40.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 +1536 -32
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1086 -30
- package/dist/api.js +902 -44
- 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 +1086 -30
- package/dist/esm/api.js +892 -34
- 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/AgencyHostingFilesApi.md +54 -0
- package/docs/AgencyHostingListAgencyPlanWebsitesV1200Response.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuilderWebsiteDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesH5gWebsiteDetailsResource.md +46 -0
- package/docs/AgencyHostingV1WebsitesPlanResource.md +25 -0
- package/docs/AgencyHostingV1WebsitesU4sWebsiteDetailsResource.md +36 -0
- package/docs/AgencyHostingV1WebsitesWebsiteListItemResource.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteListItemResourceDetails.md +59 -0
- package/docs/AgencyHostingWebsitesApi.md +69 -0
- package/docs/HostingDatabasesApi.md +2 -2
- package/docs/HostingFilesApi.md +56 -0
- package/docs/HostingNodeJSApi.md +124 -1
- package/docs/HostingV1FilesGenerateUploadUrlRequest.md +22 -0
- package/docs/HostingV1FilesUploadUrlResource.md +24 -0
- package/docs/HostingV1NodeJsBuildSettingsResource.md +34 -0
- package/docs/HostingV1NodeJsGetBuildSettingsRequest.md +20 -0
- package/docs/HostingV1NodeJsStartBuildRequest.md +36 -0
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +21 -0
- package/docs/HostingV1WebsitesDeployArchiveRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +69 -4
- package/docs/WordPressInstallationsApi.md +64 -2
- package/docs/WordPressPluginsApi.md +64 -2
- package/docs/WordPressThemesApi.md +62 -0
- package/docs/WordPressV1InstallationsImportWordPressRequest.md +22 -0
- package/docs/WordPressV1PluginsDeployPluginRequest.md +22 -0
- package/docs/WordPressV1ThemesDeployThemeRequest.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.42.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -19,16 +19,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.WordPressThemesApi = 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 = void 0;
|
|
22
|
+
exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
|
+
exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = void 0;
|
|
24
|
+
exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = void 0;
|
|
25
|
+
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.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 = void 0;
|
|
26
|
+
exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = 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 = void 0;
|
|
27
|
+
exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = 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 = void 0;
|
|
28
|
+
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 = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = void 0;
|
|
29
|
+
exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ReachFormsApi = exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = 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 = void 0;
|
|
30
|
+
exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = 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 = void 0;
|
|
31
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = 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 = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -52,6 +52,27 @@ exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = {
|
|
|
52
52
|
Running: 'running',
|
|
53
53
|
Completed: 'completed'
|
|
54
54
|
};
|
|
55
|
+
exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = {
|
|
56
|
+
Wordpress: 'wordpress',
|
|
57
|
+
Builder: 'builder',
|
|
58
|
+
Horizons: 'horizons',
|
|
59
|
+
Nodejs: 'nodejs',
|
|
60
|
+
U4s: 'u4s',
|
|
61
|
+
Other: 'other'
|
|
62
|
+
};
|
|
63
|
+
exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = {
|
|
64
|
+
Active: 'active',
|
|
65
|
+
Suspended: 'suspended'
|
|
66
|
+
};
|
|
67
|
+
exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = {
|
|
68
|
+
U4s: 'u4s',
|
|
69
|
+
Horizons: 'horizons'
|
|
70
|
+
};
|
|
71
|
+
exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = {
|
|
72
|
+
H5g: 'h5g',
|
|
73
|
+
Builder: 'builder',
|
|
74
|
+
U4s: 'u4s'
|
|
75
|
+
};
|
|
55
76
|
exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = {
|
|
56
77
|
Running: 'running',
|
|
57
78
|
Completed: 'completed',
|
|
@@ -284,6 +305,32 @@ exports.HostingV1NodeJsBuildResourceStateEnum = {
|
|
|
284
305
|
Completed: 'completed',
|
|
285
306
|
Failed: 'failed'
|
|
286
307
|
};
|
|
308
|
+
exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = {
|
|
309
|
+
CreateReactApp: 'create-react-app',
|
|
310
|
+
Gatsby: 'gatsby',
|
|
311
|
+
Vite: 'vite',
|
|
312
|
+
Angular: 'angular',
|
|
313
|
+
React: 'react',
|
|
314
|
+
Vue: 'vue',
|
|
315
|
+
Parcel: 'parcel',
|
|
316
|
+
Next: 'next',
|
|
317
|
+
Nuxt: 'nuxt',
|
|
318
|
+
Nest: 'nest',
|
|
319
|
+
Express: 'express',
|
|
320
|
+
Fastify: 'fastify',
|
|
321
|
+
Astro: 'astro',
|
|
322
|
+
Svelte: 'svelte',
|
|
323
|
+
SvelteKit: 'svelte-kit',
|
|
324
|
+
Hono: 'hono',
|
|
325
|
+
ReactRouter: 'react-router',
|
|
326
|
+
Nitro: 'nitro',
|
|
327
|
+
Other: 'other'
|
|
328
|
+
};
|
|
329
|
+
exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = {
|
|
330
|
+
Npm: 'npm',
|
|
331
|
+
Yarn: 'yarn',
|
|
332
|
+
Pnpm: 'pnpm'
|
|
333
|
+
};
|
|
287
334
|
exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = {
|
|
288
335
|
NUMBER_18: 18,
|
|
289
336
|
NUMBER_20: 20,
|
|
@@ -316,6 +363,41 @@ exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
|
|
|
316
363
|
Yarn: 'yarn',
|
|
317
364
|
Pnpm: 'pnpm'
|
|
318
365
|
};
|
|
366
|
+
exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = {
|
|
367
|
+
NUMBER_18: 18,
|
|
368
|
+
NUMBER_20: 20,
|
|
369
|
+
NUMBER_22: 22,
|
|
370
|
+
NUMBER_24: 24
|
|
371
|
+
};
|
|
372
|
+
exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = {
|
|
373
|
+
CreateReactApp: 'create-react-app',
|
|
374
|
+
Gatsby: 'gatsby',
|
|
375
|
+
Vite: 'vite',
|
|
376
|
+
Angular: 'angular',
|
|
377
|
+
React: 'react',
|
|
378
|
+
Vue: 'vue',
|
|
379
|
+
Parcel: 'parcel',
|
|
380
|
+
Next: 'next',
|
|
381
|
+
Nuxt: 'nuxt',
|
|
382
|
+
Nest: 'nest',
|
|
383
|
+
Express: 'express',
|
|
384
|
+
Fastify: 'fastify',
|
|
385
|
+
Astro: 'astro',
|
|
386
|
+
Svelte: 'svelte',
|
|
387
|
+
SvelteKit: 'svelte-kit',
|
|
388
|
+
Hono: 'hono',
|
|
389
|
+
ReactRouter: 'react-router',
|
|
390
|
+
Nitro: 'nitro',
|
|
391
|
+
Other: 'other'
|
|
392
|
+
};
|
|
393
|
+
exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
|
|
394
|
+
Npm: 'npm',
|
|
395
|
+
Yarn: 'yarn',
|
|
396
|
+
Pnpm: 'pnpm'
|
|
397
|
+
};
|
|
398
|
+
exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
|
|
399
|
+
Archive: 'archive'
|
|
400
|
+
};
|
|
319
401
|
exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = {
|
|
320
402
|
Low: 'low',
|
|
321
403
|
Moderate: 'moderate',
|
|
@@ -2105,6 +2187,38 @@ exports.AgencyHostingDomainsApi = AgencyHostingDomainsApi;
|
|
|
2105
2187
|
*/
|
|
2106
2188
|
const AgencyHostingFilesApiAxiosParamCreator = function (configuration) {
|
|
2107
2189
|
return {
|
|
2190
|
+
/**
|
|
2191
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2192
|
+
* @summary Generate upload URL
|
|
2193
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2194
|
+
* @param {*} [options] Override http request option.
|
|
2195
|
+
* @throws {RequiredError}
|
|
2196
|
+
*/
|
|
2197
|
+
generateUploadURLV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2198
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2199
|
+
(0, common_1.assertParamExists)('generateUploadURLV1', 'websiteUid', websiteUid);
|
|
2200
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/files/upload-urls`
|
|
2201
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2203
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2204
|
+
let baseOptions;
|
|
2205
|
+
if (configuration) {
|
|
2206
|
+
baseOptions = configuration.baseOptions;
|
|
2207
|
+
}
|
|
2208
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2209
|
+
const localVarHeaderParameter = {};
|
|
2210
|
+
const localVarQueryParameter = {};
|
|
2211
|
+
// authentication apiToken required
|
|
2212
|
+
// http bearer authentication required
|
|
2213
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2214
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2216
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2217
|
+
return {
|
|
2218
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2219
|
+
options: localVarRequestOptions,
|
|
2220
|
+
};
|
|
2221
|
+
}),
|
|
2108
2222
|
/**
|
|
2109
2223
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2110
2224
|
* @summary Import website from archive
|
|
@@ -2152,6 +2266,21 @@ exports.AgencyHostingFilesApiAxiosParamCreator = AgencyHostingFilesApiAxiosParam
|
|
|
2152
2266
|
const AgencyHostingFilesApiFp = function (configuration) {
|
|
2153
2267
|
const localVarAxiosParamCreator = (0, exports.AgencyHostingFilesApiAxiosParamCreator)(configuration);
|
|
2154
2268
|
return {
|
|
2269
|
+
/**
|
|
2270
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2271
|
+
* @summary Generate upload URL
|
|
2272
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2273
|
+
* @param {*} [options] Override http request option.
|
|
2274
|
+
* @throws {RequiredError}
|
|
2275
|
+
*/
|
|
2276
|
+
generateUploadURLV1(websiteUid, options) {
|
|
2277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2278
|
+
var _a, _b;
|
|
2279
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateUploadURLV1(websiteUid, options);
|
|
2280
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingFilesApi.generateUploadURLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2281
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2282
|
+
});
|
|
2283
|
+
},
|
|
2155
2284
|
/**
|
|
2156
2285
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2157
2286
|
* @summary Import website from archive
|
|
@@ -2178,6 +2307,16 @@ exports.AgencyHostingFilesApiFp = AgencyHostingFilesApiFp;
|
|
|
2178
2307
|
const AgencyHostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
2179
2308
|
const localVarFp = (0, exports.AgencyHostingFilesApiFp)(configuration);
|
|
2180
2309
|
return {
|
|
2310
|
+
/**
|
|
2311
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2312
|
+
* @summary Generate upload URL
|
|
2313
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2314
|
+
* @param {*} [options] Override http request option.
|
|
2315
|
+
* @throws {RequiredError}
|
|
2316
|
+
*/
|
|
2317
|
+
generateUploadURLV1(websiteUid, options) {
|
|
2318
|
+
return localVarFp.generateUploadURLV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2319
|
+
},
|
|
2181
2320
|
/**
|
|
2182
2321
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2183
2322
|
* @summary Import website from archive
|
|
@@ -2199,6 +2338,17 @@ exports.AgencyHostingFilesApiFactory = AgencyHostingFilesApiFactory;
|
|
|
2199
2338
|
* @extends {BaseAPI}
|
|
2200
2339
|
*/
|
|
2201
2340
|
class AgencyHostingFilesApi extends base_1.BaseAPI {
|
|
2341
|
+
/**
|
|
2342
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2343
|
+
* @summary Generate upload URL
|
|
2344
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2345
|
+
* @param {*} [options] Override http request option.
|
|
2346
|
+
* @throws {RequiredError}
|
|
2347
|
+
* @memberof AgencyHostingFilesApi
|
|
2348
|
+
*/
|
|
2349
|
+
generateUploadURLV1(websiteUid, options) {
|
|
2350
|
+
return (0, exports.AgencyHostingFilesApiFp)(this.configuration).generateUploadURLV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2351
|
+
}
|
|
2202
2352
|
/**
|
|
2203
2353
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2204
2354
|
* @summary Import website from archive
|
|
@@ -3367,6 +3517,58 @@ const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
3367
3517
|
options: localVarRequestOptions,
|
|
3368
3518
|
};
|
|
3369
3519
|
}),
|
|
3520
|
+
/**
|
|
3521
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, 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. The response shape differs per platform — see the `platform` field on each item. 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 `order_ids`, `states`, or `domain` for more targeted results.
|
|
3522
|
+
* @summary List Agency Plan websites
|
|
3523
|
+
* @param {number} [page] Page number
|
|
3524
|
+
* @param {number} [perPage] Number of items per page
|
|
3525
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3526
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3527
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3528
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3529
|
+
* @param {*} [options] Override http request option.
|
|
3530
|
+
* @throws {RequiredError}
|
|
3531
|
+
*/
|
|
3532
|
+
listAgencyPlanWebsitesV1: (page_1, perPage_1, orderIds_1, states_1, websiteTypes_1, domain_1, ...args_1) => __awaiter(this, [page_1, perPage_1, orderIds_1, states_1, websiteTypes_1, domain_1, ...args_1], void 0, function* (page, perPage, orderIds, states, websiteTypes, domain, options = {}) {
|
|
3533
|
+
const localVarPath = `/api/agency-hosting/v1/websites`;
|
|
3534
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3535
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3536
|
+
let baseOptions;
|
|
3537
|
+
if (configuration) {
|
|
3538
|
+
baseOptions = configuration.baseOptions;
|
|
3539
|
+
}
|
|
3540
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3541
|
+
const localVarHeaderParameter = {};
|
|
3542
|
+
const localVarQueryParameter = {};
|
|
3543
|
+
// authentication apiToken required
|
|
3544
|
+
// http bearer authentication required
|
|
3545
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3546
|
+
if (page !== undefined) {
|
|
3547
|
+
localVarQueryParameter['page'] = page;
|
|
3548
|
+
}
|
|
3549
|
+
if (perPage !== undefined) {
|
|
3550
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
3551
|
+
}
|
|
3552
|
+
if (orderIds) {
|
|
3553
|
+
localVarQueryParameter['order_ids'] = orderIds.join(base_1.COLLECTION_FORMATS.csv);
|
|
3554
|
+
}
|
|
3555
|
+
if (states) {
|
|
3556
|
+
localVarQueryParameter['states'] = states.join(base_1.COLLECTION_FORMATS.csv);
|
|
3557
|
+
}
|
|
3558
|
+
if (websiteTypes) {
|
|
3559
|
+
localVarQueryParameter['website_types'] = websiteTypes.join(base_1.COLLECTION_FORMATS.csv);
|
|
3560
|
+
}
|
|
3561
|
+
if (domain !== undefined) {
|
|
3562
|
+
localVarQueryParameter['domain'] = domain;
|
|
3563
|
+
}
|
|
3564
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3565
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3566
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3567
|
+
return {
|
|
3568
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3569
|
+
options: localVarRequestOptions,
|
|
3570
|
+
};
|
|
3571
|
+
}),
|
|
3370
3572
|
/**
|
|
3371
3573
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3372
3574
|
* @summary List website processes
|
|
@@ -3455,6 +3657,26 @@ const AgencyHostingWebsitesApiFp = function (configuration) {
|
|
|
3455
3657
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3456
3658
|
});
|
|
3457
3659
|
},
|
|
3660
|
+
/**
|
|
3661
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, 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. The response shape differs per platform — see the `platform` field on each item. 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 `order_ids`, `states`, or `domain` for more targeted results.
|
|
3662
|
+
* @summary List Agency Plan websites
|
|
3663
|
+
* @param {number} [page] Page number
|
|
3664
|
+
* @param {number} [perPage] Number of items per page
|
|
3665
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3666
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3667
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3668
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3669
|
+
* @param {*} [options] Override http request option.
|
|
3670
|
+
* @throws {RequiredError}
|
|
3671
|
+
*/
|
|
3672
|
+
listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options) {
|
|
3673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3674
|
+
var _a, _b;
|
|
3675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options);
|
|
3676
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.listAgencyPlanWebsitesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3677
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3678
|
+
});
|
|
3679
|
+
},
|
|
3458
3680
|
/**
|
|
3459
3681
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3460
3682
|
* @summary List website processes
|
|
@@ -3511,6 +3733,21 @@ const AgencyHostingWebsitesApiFactory = function (configuration, basePath, axios
|
|
|
3511
3733
|
getWebsiteDetailsV1(websiteUid, options) {
|
|
3512
3734
|
return localVarFp.getWebsiteDetailsV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
3513
3735
|
},
|
|
3736
|
+
/**
|
|
3737
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, 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. The response shape differs per platform — see the `platform` field on each item. 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 `order_ids`, `states`, or `domain` for more targeted results.
|
|
3738
|
+
* @summary List Agency Plan websites
|
|
3739
|
+
* @param {number} [page] Page number
|
|
3740
|
+
* @param {number} [perPage] Number of items per page
|
|
3741
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3742
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3743
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3744
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3745
|
+
* @param {*} [options] Override http request option.
|
|
3746
|
+
* @throws {RequiredError}
|
|
3747
|
+
*/
|
|
3748
|
+
listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options) {
|
|
3749
|
+
return localVarFp.listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options).then((request) => request(axios, basePath));
|
|
3750
|
+
},
|
|
3514
3751
|
/**
|
|
3515
3752
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3516
3753
|
* @summary List website processes
|
|
@@ -3565,6 +3802,22 @@ class AgencyHostingWebsitesApi extends base_1.BaseAPI {
|
|
|
3565
3802
|
getWebsiteDetailsV1(websiteUid, options) {
|
|
3566
3803
|
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).getWebsiteDetailsV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
3567
3804
|
}
|
|
3805
|
+
/**
|
|
3806
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, 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. The response shape differs per platform — see the `platform` field on each item. 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 `order_ids`, `states`, or `domain` for more targeted results.
|
|
3807
|
+
* @summary List Agency Plan websites
|
|
3808
|
+
* @param {number} [page] Page number
|
|
3809
|
+
* @param {number} [perPage] Number of items per page
|
|
3810
|
+
* @param {Array<number> | null} [orderIds] Filter by order IDs. Accepts a comma-separated list.
|
|
3811
|
+
* @param {Array<ListAgencyPlanWebsitesV1StatesEnum>} [states] Filter by website state. Accepts a comma-separated list.
|
|
3812
|
+
* @param {Array<ListAgencyPlanWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3813
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
3814
|
+
* @param {*} [options] Override http request option.
|
|
3815
|
+
* @throws {RequiredError}
|
|
3816
|
+
* @memberof AgencyHostingWebsitesApi
|
|
3817
|
+
*/
|
|
3818
|
+
listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options) {
|
|
3819
|
+
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).listAgencyPlanWebsitesV1(page, perPage, orderIds, states, websiteTypes, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3820
|
+
}
|
|
3568
3821
|
/**
|
|
3569
3822
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
3570
3823
|
* @summary List website processes
|
|
@@ -3578,6 +3831,26 @@ class AgencyHostingWebsitesApi extends base_1.BaseAPI {
|
|
|
3578
3831
|
}
|
|
3579
3832
|
}
|
|
3580
3833
|
exports.AgencyHostingWebsitesApi = AgencyHostingWebsitesApi;
|
|
3834
|
+
/**
|
|
3835
|
+
* @export
|
|
3836
|
+
*/
|
|
3837
|
+
exports.ListAgencyPlanWebsitesV1StatesEnum = {
|
|
3838
|
+
Active: 'active',
|
|
3839
|
+
Locked: 'locked',
|
|
3840
|
+
Suspended: 'suspended',
|
|
3841
|
+
Deleting: 'deleting',
|
|
3842
|
+
Deleted: 'deleted'
|
|
3843
|
+
};
|
|
3844
|
+
/**
|
|
3845
|
+
* @export
|
|
3846
|
+
*/
|
|
3847
|
+
exports.ListAgencyPlanWebsitesV1WebsiteTypesEnum = {
|
|
3848
|
+
Wordpress: 'wordpress',
|
|
3849
|
+
Builder: 'builder',
|
|
3850
|
+
Horizons: 'horizons',
|
|
3851
|
+
Nodejs: 'nodejs',
|
|
3852
|
+
Other: 'other'
|
|
3853
|
+
};
|
|
3581
3854
|
/**
|
|
3582
3855
|
* AgencyHostingWordPressApi - axios parameter creator
|
|
3583
3856
|
* @export
|
|
@@ -10562,7 +10835,7 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
10562
10835
|
* @param {string} username
|
|
10563
10836
|
* @param {number} [page] Page number
|
|
10564
10837
|
* @param {number} [perPage] Number of items per page
|
|
10565
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
10838
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
10566
10839
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
10567
10840
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
10568
10841
|
* @param {*} [options] Override http request option.
|
|
@@ -10795,7 +11068,7 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
10795
11068
|
* @param {string} username
|
|
10796
11069
|
* @param {number} [page] Page number
|
|
10797
11070
|
* @param {number} [perPage] Number of items per page
|
|
10798
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
11071
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
10799
11072
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
10800
11073
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
10801
11074
|
* @param {*} [options] Override http request option.
|
|
@@ -10926,7 +11199,7 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
|
10926
11199
|
* @param {string} username
|
|
10927
11200
|
* @param {number} [page] Page number
|
|
10928
11201
|
* @param {number} [perPage] Number of items per page
|
|
10929
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
11202
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
10930
11203
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
10931
11204
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
10932
11205
|
* @param {*} [options] Override http request option.
|
|
@@ -11048,7 +11321,7 @@ class HostingDatabasesApi extends base_1.BaseAPI {
|
|
|
11048
11321
|
* @param {string} username
|
|
11049
11322
|
* @param {number} [page] Page number
|
|
11050
11323
|
* @param {number} [perPage] Number of items per page
|
|
11051
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
11324
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
11052
11325
|
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
11053
11326
|
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
11054
11327
|
* @param {*} [options] Override http request option.
|
|
@@ -11846,6 +12119,39 @@ exports.HostingDomainsApi = HostingDomainsApi;
|
|
|
11846
12119
|
*/
|
|
11847
12120
|
const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
11848
12121
|
return {
|
|
12122
|
+
/**
|
|
12123
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
12124
|
+
* @summary Generate upload URL
|
|
12125
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
12126
|
+
* @param {*} [options] Override http request option.
|
|
12127
|
+
* @throws {RequiredError}
|
|
12128
|
+
*/
|
|
12129
|
+
generateUploadURLV1: (hostingV1FilesGenerateUploadUrlRequest_1, ...args_1) => __awaiter(this, [hostingV1FilesGenerateUploadUrlRequest_1, ...args_1], void 0, function* (hostingV1FilesGenerateUploadUrlRequest, options = {}) {
|
|
12130
|
+
// verify required parameter 'hostingV1FilesGenerateUploadUrlRequest' is not null or undefined
|
|
12131
|
+
(0, common_1.assertParamExists)('generateUploadURLV1', 'hostingV1FilesGenerateUploadUrlRequest', hostingV1FilesGenerateUploadUrlRequest);
|
|
12132
|
+
const localVarPath = `/api/hosting/v1/files/upload-urls`;
|
|
12133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12134
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12135
|
+
let baseOptions;
|
|
12136
|
+
if (configuration) {
|
|
12137
|
+
baseOptions = configuration.baseOptions;
|
|
12138
|
+
}
|
|
12139
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12140
|
+
const localVarHeaderParameter = {};
|
|
12141
|
+
const localVarQueryParameter = {};
|
|
12142
|
+
// authentication apiToken required
|
|
12143
|
+
// http bearer authentication required
|
|
12144
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12145
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12146
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12148
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12149
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1FilesGenerateUploadUrlRequest, localVarRequestOptions, configuration);
|
|
12150
|
+
return {
|
|
12151
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12152
|
+
options: localVarRequestOptions,
|
|
12153
|
+
};
|
|
12154
|
+
}),
|
|
11849
12155
|
/**
|
|
11850
12156
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
11851
12157
|
* @summary Get website file content
|
|
@@ -11962,6 +12268,21 @@ exports.HostingFilesApiAxiosParamCreator = HostingFilesApiAxiosParamCreator;
|
|
|
11962
12268
|
const HostingFilesApiFp = function (configuration) {
|
|
11963
12269
|
const localVarAxiosParamCreator = (0, exports.HostingFilesApiAxiosParamCreator)(configuration);
|
|
11964
12270
|
return {
|
|
12271
|
+
/**
|
|
12272
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
12273
|
+
* @summary Generate upload URL
|
|
12274
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
12275
|
+
* @param {*} [options] Override http request option.
|
|
12276
|
+
* @throws {RequiredError}
|
|
12277
|
+
*/
|
|
12278
|
+
generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
|
|
12279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12280
|
+
var _a, _b;
|
|
12281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options);
|
|
12282
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingFilesApi.generateUploadURLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12283
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12284
|
+
});
|
|
12285
|
+
},
|
|
11965
12286
|
/**
|
|
11966
12287
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
11967
12288
|
* @summary Get website file content
|
|
@@ -12012,6 +12333,16 @@ exports.HostingFilesApiFp = HostingFilesApiFp;
|
|
|
12012
12333
|
const HostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
12013
12334
|
const localVarFp = (0, exports.HostingFilesApiFp)(configuration);
|
|
12014
12335
|
return {
|
|
12336
|
+
/**
|
|
12337
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
12338
|
+
* @summary Generate upload URL
|
|
12339
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
12340
|
+
* @param {*} [options] Override http request option.
|
|
12341
|
+
* @throws {RequiredError}
|
|
12342
|
+
*/
|
|
12343
|
+
generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
|
|
12344
|
+
return localVarFp.generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options).then((request) => request(axios, basePath));
|
|
12345
|
+
},
|
|
12015
12346
|
/**
|
|
12016
12347
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
12017
12348
|
* @summary Get website file content
|
|
@@ -12052,6 +12383,17 @@ exports.HostingFilesApiFactory = HostingFilesApiFactory;
|
|
|
12052
12383
|
* @extends {BaseAPI}
|
|
12053
12384
|
*/
|
|
12054
12385
|
class HostingFilesApi extends base_1.BaseAPI {
|
|
12386
|
+
/**
|
|
12387
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
12388
|
+
* @summary Generate upload URL
|
|
12389
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
12390
|
+
* @param {*} [options] Override http request option.
|
|
12391
|
+
* @throws {RequiredError}
|
|
12392
|
+
* @memberof HostingFilesApi
|
|
12393
|
+
*/
|
|
12394
|
+
generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
|
|
12395
|
+
return (0, exports.HostingFilesApiFp)(this.configuration).generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12396
|
+
}
|
|
12055
12397
|
/**
|
|
12056
12398
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
12057
12399
|
* @summary Get website file content
|
|
@@ -12102,7 +12444,7 @@ exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
|
12102
12444
|
const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
12103
12445
|
return {
|
|
12104
12446
|
/**
|
|
12105
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12447
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12106
12448
|
* @summary Create NodeJS build from archive
|
|
12107
12449
|
* @param {string} username
|
|
12108
12450
|
* @param {string} domain Domain name
|
|
@@ -12186,6 +12528,48 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
12186
12528
|
options: localVarRequestOptions,
|
|
12187
12529
|
};
|
|
12188
12530
|
}),
|
|
12531
|
+
/**
|
|
12532
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
12533
|
+
* @summary Get Node.js build settings from archive
|
|
12534
|
+
* @param {string} username
|
|
12535
|
+
* @param {string} domain Domain name
|
|
12536
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
12537
|
+
* @param {*} [options] Override http request option.
|
|
12538
|
+
* @throws {RequiredError}
|
|
12539
|
+
*/
|
|
12540
|
+
getNodeJsBuildSettingsFromArchiveV1: (username_1, domain_1, archivePath_1, ...args_1) => __awaiter(this, [username_1, domain_1, archivePath_1, ...args_1], void 0, function* (username, domain, archivePath, options = {}) {
|
|
12541
|
+
// verify required parameter 'username' is not null or undefined
|
|
12542
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromArchiveV1', 'username', username);
|
|
12543
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12544
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromArchiveV1', 'domain', domain);
|
|
12545
|
+
// verify required parameter 'archivePath' is not null or undefined
|
|
12546
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromArchiveV1', 'archivePath', archivePath);
|
|
12547
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive`
|
|
12548
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12549
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12550
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12551
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12552
|
+
let baseOptions;
|
|
12553
|
+
if (configuration) {
|
|
12554
|
+
baseOptions = configuration.baseOptions;
|
|
12555
|
+
}
|
|
12556
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12557
|
+
const localVarHeaderParameter = {};
|
|
12558
|
+
const localVarQueryParameter = {};
|
|
12559
|
+
// authentication apiToken required
|
|
12560
|
+
// http bearer authentication required
|
|
12561
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12562
|
+
if (archivePath !== undefined) {
|
|
12563
|
+
localVarQueryParameter['archive_path'] = archivePath;
|
|
12564
|
+
}
|
|
12565
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12566
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12567
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12568
|
+
return {
|
|
12569
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12570
|
+
options: localVarRequestOptions,
|
|
12571
|
+
};
|
|
12572
|
+
}),
|
|
12189
12573
|
/**
|
|
12190
12574
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12191
12575
|
* @summary List NodeJS builds
|
|
@@ -12351,6 +12735,47 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
12351
12735
|
options: localVarRequestOptions,
|
|
12352
12736
|
};
|
|
12353
12737
|
}),
|
|
12738
|
+
/**
|
|
12739
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12740
|
+
* @summary Start Node.js build
|
|
12741
|
+
* @param {string} username
|
|
12742
|
+
* @param {string} domain Domain name
|
|
12743
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
12744
|
+
* @param {*} [options] Override http request option.
|
|
12745
|
+
* @throws {RequiredError}
|
|
12746
|
+
*/
|
|
12747
|
+
startNodeJsBuildV1: (username_1, domain_1, hostingV1NodeJsStartBuildRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsStartBuildRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsStartBuildRequest, options = {}) {
|
|
12748
|
+
// verify required parameter 'username' is not null or undefined
|
|
12749
|
+
(0, common_1.assertParamExists)('startNodeJsBuildV1', 'username', username);
|
|
12750
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12751
|
+
(0, common_1.assertParamExists)('startNodeJsBuildV1', 'domain', domain);
|
|
12752
|
+
// verify required parameter 'hostingV1NodeJsStartBuildRequest' is not null or undefined
|
|
12753
|
+
(0, common_1.assertParamExists)('startNodeJsBuildV1', 'hostingV1NodeJsStartBuildRequest', hostingV1NodeJsStartBuildRequest);
|
|
12754
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds`
|
|
12755
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12756
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12757
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12758
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12759
|
+
let baseOptions;
|
|
12760
|
+
if (configuration) {
|
|
12761
|
+
baseOptions = configuration.baseOptions;
|
|
12762
|
+
}
|
|
12763
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12764
|
+
const localVarHeaderParameter = {};
|
|
12765
|
+
const localVarQueryParameter = {};
|
|
12766
|
+
// authentication apiToken required
|
|
12767
|
+
// http bearer authentication required
|
|
12768
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12769
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12770
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12771
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12772
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12773
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1NodeJsStartBuildRequest, localVarRequestOptions, configuration);
|
|
12774
|
+
return {
|
|
12775
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12776
|
+
options: localVarRequestOptions,
|
|
12777
|
+
};
|
|
12778
|
+
}),
|
|
12354
12779
|
};
|
|
12355
12780
|
};
|
|
12356
12781
|
exports.HostingNodeJSApiAxiosParamCreator = HostingNodeJSApiAxiosParamCreator;
|
|
@@ -12362,7 +12787,7 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
12362
12787
|
const localVarAxiosParamCreator = (0, exports.HostingNodeJSApiAxiosParamCreator)(configuration);
|
|
12363
12788
|
return {
|
|
12364
12789
|
/**
|
|
12365
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12790
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12366
12791
|
* @summary Create NodeJS build from archive
|
|
12367
12792
|
* @param {string} username
|
|
12368
12793
|
* @param {string} domain Domain name
|
|
@@ -12396,6 +12821,23 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
12396
12821
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12397
12822
|
});
|
|
12398
12823
|
},
|
|
12824
|
+
/**
|
|
12825
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
12826
|
+
* @summary Get Node.js build settings from archive
|
|
12827
|
+
* @param {string} username
|
|
12828
|
+
* @param {string} domain Domain name
|
|
12829
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
12830
|
+
* @param {*} [options] Override http request option.
|
|
12831
|
+
* @throws {RequiredError}
|
|
12832
|
+
*/
|
|
12833
|
+
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
12834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12835
|
+
var _a, _b;
|
|
12836
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options);
|
|
12837
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12838
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12839
|
+
});
|
|
12840
|
+
},
|
|
12399
12841
|
/**
|
|
12400
12842
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12401
12843
|
* @summary List NodeJS builds
|
|
@@ -12465,6 +12907,23 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
12465
12907
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12466
12908
|
});
|
|
12467
12909
|
},
|
|
12910
|
+
/**
|
|
12911
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12912
|
+
* @summary Start Node.js build
|
|
12913
|
+
* @param {string} username
|
|
12914
|
+
* @param {string} domain Domain name
|
|
12915
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
12916
|
+
* @param {*} [options] Override http request option.
|
|
12917
|
+
* @throws {RequiredError}
|
|
12918
|
+
*/
|
|
12919
|
+
startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
|
|
12920
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12921
|
+
var _a, _b;
|
|
12922
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options);
|
|
12923
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.startNodeJsBuildV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12924
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12925
|
+
});
|
|
12926
|
+
},
|
|
12468
12927
|
};
|
|
12469
12928
|
};
|
|
12470
12929
|
exports.HostingNodeJSApiFp = HostingNodeJSApiFp;
|
|
@@ -12476,7 +12935,7 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
12476
12935
|
const localVarFp = (0, exports.HostingNodeJSApiFp)(configuration);
|
|
12477
12936
|
return {
|
|
12478
12937
|
/**
|
|
12479
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12938
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12480
12939
|
* @summary Create NodeJS build from archive
|
|
12481
12940
|
* @param {string} username
|
|
12482
12941
|
* @param {string} domain Domain name
|
|
@@ -12500,6 +12959,18 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
12500
12959
|
getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
|
|
12501
12960
|
return localVarFp.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(axios, basePath));
|
|
12502
12961
|
},
|
|
12962
|
+
/**
|
|
12963
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
12964
|
+
* @summary Get Node.js build settings from archive
|
|
12965
|
+
* @param {string} username
|
|
12966
|
+
* @param {string} domain Domain name
|
|
12967
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
12968
|
+
* @param {*} [options] Override http request option.
|
|
12969
|
+
* @throws {RequiredError}
|
|
12970
|
+
*/
|
|
12971
|
+
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
12972
|
+
return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
|
|
12973
|
+
},
|
|
12503
12974
|
/**
|
|
12504
12975
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12505
12976
|
* @summary List NodeJS builds
|
|
@@ -12546,8 +13017,20 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
12546
13017
|
* @param {*} [options] Override http request option.
|
|
12547
13018
|
* @throws {RequiredError}
|
|
12548
13019
|
*/
|
|
12549
|
-
restartNodeJsApplicationV1(username, domain, options) {
|
|
12550
|
-
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13020
|
+
restartNodeJsApplicationV1(username, domain, options) {
|
|
13021
|
+
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13022
|
+
},
|
|
13023
|
+
/**
|
|
13024
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
13025
|
+
* @summary Start Node.js build
|
|
13026
|
+
* @param {string} username
|
|
13027
|
+
* @param {string} domain Domain name
|
|
13028
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
13029
|
+
* @param {*} [options] Override http request option.
|
|
13030
|
+
* @throws {RequiredError}
|
|
13031
|
+
*/
|
|
13032
|
+
startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
|
|
13033
|
+
return localVarFp.startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options).then((request) => request(axios, basePath));
|
|
12551
13034
|
},
|
|
12552
13035
|
};
|
|
12553
13036
|
};
|
|
@@ -12560,7 +13043,7 @@ exports.HostingNodeJSApiFactory = HostingNodeJSApiFactory;
|
|
|
12560
13043
|
*/
|
|
12561
13044
|
class HostingNodeJSApi extends base_1.BaseAPI {
|
|
12562
13045
|
/**
|
|
12563
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
13046
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12564
13047
|
* @summary Create NodeJS build from archive
|
|
12565
13048
|
* @param {string} username
|
|
12566
13049
|
* @param {string} domain Domain name
|
|
@@ -12586,6 +13069,19 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
12586
13069
|
getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
|
|
12587
13070
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(this.axios, this.basePath));
|
|
12588
13071
|
}
|
|
13072
|
+
/**
|
|
13073
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
13074
|
+
* @summary Get Node.js build settings from archive
|
|
13075
|
+
* @param {string} username
|
|
13076
|
+
* @param {string} domain Domain name
|
|
13077
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
13078
|
+
* @param {*} [options] Override http request option.
|
|
13079
|
+
* @throws {RequiredError}
|
|
13080
|
+
* @memberof HostingNodeJSApi
|
|
13081
|
+
*/
|
|
13082
|
+
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
13083
|
+
return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
|
|
13084
|
+
}
|
|
12589
13085
|
/**
|
|
12590
13086
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12591
13087
|
* @summary List NodeJS builds
|
|
@@ -12639,6 +13135,19 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
12639
13135
|
restartNodeJsApplicationV1(username, domain, options) {
|
|
12640
13136
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
12641
13137
|
}
|
|
13138
|
+
/**
|
|
13139
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
13140
|
+
* @summary Start Node.js build
|
|
13141
|
+
* @param {string} username
|
|
13142
|
+
* @param {string} domain Domain name
|
|
13143
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
13144
|
+
* @param {*} [options] Override http request option.
|
|
13145
|
+
* @throws {RequiredError}
|
|
13146
|
+
* @memberof HostingNodeJSApi
|
|
13147
|
+
*/
|
|
13148
|
+
startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
|
|
13149
|
+
return (0, exports.HostingNodeJSApiFp)(this.configuration).startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13150
|
+
}
|
|
12642
13151
|
}
|
|
12643
13152
|
exports.HostingNodeJSApi = HostingNodeJSApi;
|
|
12644
13153
|
/**
|
|
@@ -13674,18 +14183,60 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
13674
14183
|
};
|
|
13675
14184
|
}),
|
|
13676
14185
|
/**
|
|
13677
|
-
*
|
|
14186
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14187
|
+
* @summary Deploy static site archive
|
|
14188
|
+
* @param {string} username
|
|
14189
|
+
* @param {string} domain Domain name
|
|
14190
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14191
|
+
* @param {*} [options] Override http request option.
|
|
14192
|
+
* @throws {RequiredError}
|
|
14193
|
+
*/
|
|
14194
|
+
deployStaticSiteArchiveV1: (username_1, domain_1, hostingV1WebsitesDeployArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1WebsitesDeployArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1WebsitesDeployArchiveRequest, options = {}) {
|
|
14195
|
+
// verify required parameter 'username' is not null or undefined
|
|
14196
|
+
(0, common_1.assertParamExists)('deployStaticSiteArchiveV1', 'username', username);
|
|
14197
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14198
|
+
(0, common_1.assertParamExists)('deployStaticSiteArchiveV1', 'domain', domain);
|
|
14199
|
+
// verify required parameter 'hostingV1WebsitesDeployArchiveRequest' is not null or undefined
|
|
14200
|
+
(0, common_1.assertParamExists)('deployStaticSiteArchiveV1', 'hostingV1WebsitesDeployArchiveRequest', hostingV1WebsitesDeployArchiveRequest);
|
|
14201
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/deploy`
|
|
14202
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14203
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14205
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14206
|
+
let baseOptions;
|
|
14207
|
+
if (configuration) {
|
|
14208
|
+
baseOptions = configuration.baseOptions;
|
|
14209
|
+
}
|
|
14210
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14211
|
+
const localVarHeaderParameter = {};
|
|
14212
|
+
const localVarQueryParameter = {};
|
|
14213
|
+
// authentication apiToken required
|
|
14214
|
+
// http bearer authentication required
|
|
14215
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14216
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14217
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14220
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1WebsitesDeployArchiveRequest, localVarRequestOptions, configuration);
|
|
14221
|
+
return {
|
|
14222
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14223
|
+
options: localVarRequestOptions,
|
|
14224
|
+
};
|
|
14225
|
+
}),
|
|
14226
|
+
/**
|
|
14227
|
+
* 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.
|
|
13678
14228
|
* @summary List websites
|
|
13679
14229
|
* @param {number} [page] Page number
|
|
13680
14230
|
* @param {number} [perPage] Number of items per page
|
|
13681
14231
|
* @param {string | null} [username] Filter by specific username
|
|
13682
14232
|
* @param {number | null} [orderId] Order ID
|
|
13683
14233
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
13684
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
14234
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
14235
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
13685
14236
|
* @param {*} [options] Override http request option.
|
|
13686
14237
|
* @throws {RequiredError}
|
|
13687
14238
|
*/
|
|
13688
|
-
listWebsitesV1: (page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1) => __awaiter(this, [page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1], void 0, function* (page, perPage, username, orderId, isEnabled, domain, options = {}) {
|
|
14239
|
+
listWebsitesV1: (page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, websiteTypes_1, ...args_1) => __awaiter(this, [page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, websiteTypes_1, ...args_1], void 0, function* (page, perPage, username, orderId, isEnabled, domain, websiteTypes, options = {}) {
|
|
13689
14240
|
const localVarPath = `/api/hosting/v1/websites`;
|
|
13690
14241
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13691
14242
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -13717,6 +14268,9 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
13717
14268
|
if (domain !== undefined) {
|
|
13718
14269
|
localVarQueryParameter['domain'] = domain;
|
|
13719
14270
|
}
|
|
14271
|
+
if (websiteTypes) {
|
|
14272
|
+
localVarQueryParameter['website_types'] = websiteTypes.join(base_1.COLLECTION_FORMATS.csv);
|
|
14273
|
+
}
|
|
13720
14274
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13721
14275
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13722
14276
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -13766,21 +14320,39 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
13766
14320
|
});
|
|
13767
14321
|
},
|
|
13768
14322
|
/**
|
|
13769
|
-
*
|
|
14323
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14324
|
+
* @summary Deploy static site archive
|
|
14325
|
+
* @param {string} username
|
|
14326
|
+
* @param {string} domain Domain name
|
|
14327
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14328
|
+
* @param {*} [options] Override http request option.
|
|
14329
|
+
* @throws {RequiredError}
|
|
14330
|
+
*/
|
|
14331
|
+
deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
|
|
14332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14333
|
+
var _a, _b;
|
|
14334
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options);
|
|
14335
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.deployStaticSiteArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14336
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14337
|
+
});
|
|
14338
|
+
},
|
|
14339
|
+
/**
|
|
14340
|
+
* 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.
|
|
13770
14341
|
* @summary List websites
|
|
13771
14342
|
* @param {number} [page] Page number
|
|
13772
14343
|
* @param {number} [perPage] Number of items per page
|
|
13773
14344
|
* @param {string | null} [username] Filter by specific username
|
|
13774
14345
|
* @param {number | null} [orderId] Order ID
|
|
13775
14346
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
13776
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
14347
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
14348
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
13777
14349
|
* @param {*} [options] Override http request option.
|
|
13778
14350
|
* @throws {RequiredError}
|
|
13779
14351
|
*/
|
|
13780
|
-
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
14352
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
13781
14353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13782
14354
|
var _a, _b;
|
|
13783
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options);
|
|
14355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options);
|
|
13784
14356
|
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.listWebsitesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13785
14357
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13786
14358
|
});
|
|
@@ -13816,19 +14388,32 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
13816
14388
|
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
|
|
13817
14389
|
},
|
|
13818
14390
|
/**
|
|
13819
|
-
*
|
|
14391
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14392
|
+
* @summary Deploy static site archive
|
|
14393
|
+
* @param {string} username
|
|
14394
|
+
* @param {string} domain Domain name
|
|
14395
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14396
|
+
* @param {*} [options] Override http request option.
|
|
14397
|
+
* @throws {RequiredError}
|
|
14398
|
+
*/
|
|
14399
|
+
deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
|
|
14400
|
+
return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
|
|
14401
|
+
},
|
|
14402
|
+
/**
|
|
14403
|
+
* 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.
|
|
13820
14404
|
* @summary List websites
|
|
13821
14405
|
* @param {number} [page] Page number
|
|
13822
14406
|
* @param {number} [perPage] Number of items per page
|
|
13823
14407
|
* @param {string | null} [username] Filter by specific username
|
|
13824
14408
|
* @param {number | null} [orderId] Order ID
|
|
13825
14409
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
13826
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
14410
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
14411
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
13827
14412
|
* @param {*} [options] Override http request option.
|
|
13828
14413
|
* @throws {RequiredError}
|
|
13829
14414
|
*/
|
|
13830
|
-
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
13831
|
-
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(axios, basePath));
|
|
14415
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
14416
|
+
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
13832
14417
|
},
|
|
13833
14418
|
};
|
|
13834
14419
|
};
|
|
@@ -13863,23 +14448,47 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
13863
14448
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
13864
14449
|
}
|
|
13865
14450
|
/**
|
|
13866
|
-
*
|
|
14451
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14452
|
+
* @summary Deploy static site archive
|
|
14453
|
+
* @param {string} username
|
|
14454
|
+
* @param {string} domain Domain name
|
|
14455
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14456
|
+
* @param {*} [options] Override http request option.
|
|
14457
|
+
* @throws {RequiredError}
|
|
14458
|
+
* @memberof HostingWebsitesApi
|
|
14459
|
+
*/
|
|
14460
|
+
deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
|
|
14461
|
+
return (0, exports.HostingWebsitesApiFp)(this.configuration).deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14462
|
+
}
|
|
14463
|
+
/**
|
|
14464
|
+
* 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.
|
|
13867
14465
|
* @summary List websites
|
|
13868
14466
|
* @param {number} [page] Page number
|
|
13869
14467
|
* @param {number} [perPage] Number of items per page
|
|
13870
14468
|
* @param {string | null} [username] Filter by specific username
|
|
13871
14469
|
* @param {number | null} [orderId] Order ID
|
|
13872
14470
|
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
13873
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
14471
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
14472
|
+
* @param {Array<ListWebsitesV1WebsiteTypesEnum>} [websiteTypes] Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
13874
14473
|
* @param {*} [options] Override http request option.
|
|
13875
14474
|
* @throws {RequiredError}
|
|
13876
14475
|
* @memberof HostingWebsitesApi
|
|
13877
14476
|
*/
|
|
13878
|
-
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
13879
|
-
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14477
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options) {
|
|
14478
|
+
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
|
|
13880
14479
|
}
|
|
13881
14480
|
}
|
|
13882
14481
|
exports.HostingWebsitesApi = HostingWebsitesApi;
|
|
14482
|
+
/**
|
|
14483
|
+
* @export
|
|
14484
|
+
*/
|
|
14485
|
+
exports.ListWebsitesV1WebsiteTypesEnum = {
|
|
14486
|
+
Wordpress: 'wordpress',
|
|
14487
|
+
Builder: 'builder',
|
|
14488
|
+
Horizons: 'horizons',
|
|
14489
|
+
Nodejs: 'nodejs',
|
|
14490
|
+
Other: 'other'
|
|
14491
|
+
};
|
|
13883
14492
|
/**
|
|
13884
14493
|
* MailAPITokensApi - axios parameter creator
|
|
13885
14494
|
* @export
|
|
@@ -26661,6 +27270,47 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
26661
27270
|
options: localVarRequestOptions,
|
|
26662
27271
|
};
|
|
26663
27272
|
}),
|
|
27273
|
+
/**
|
|
27274
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27275
|
+
* @summary Import WordPress website
|
|
27276
|
+
* @param {string} username
|
|
27277
|
+
* @param {string} domain Domain name
|
|
27278
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27279
|
+
* @param {*} [options] Override http request option.
|
|
27280
|
+
* @throws {RequiredError}
|
|
27281
|
+
*/
|
|
27282
|
+
importWordPressWebsiteV1: (username_1, domain_1, wordPressV1InstallationsImportWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1InstallationsImportWordPressRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1InstallationsImportWordPressRequest, options = {}) {
|
|
27283
|
+
// verify required parameter 'username' is not null or undefined
|
|
27284
|
+
(0, common_1.assertParamExists)('importWordPressWebsiteV1', 'username', username);
|
|
27285
|
+
// verify required parameter 'domain' is not null or undefined
|
|
27286
|
+
(0, common_1.assertParamExists)('importWordPressWebsiteV1', 'domain', domain);
|
|
27287
|
+
// verify required parameter 'wordPressV1InstallationsImportWordPressRequest' is not null or undefined
|
|
27288
|
+
(0, common_1.assertParamExists)('importWordPressWebsiteV1', 'wordPressV1InstallationsImportWordPressRequest', wordPressV1InstallationsImportWordPressRequest);
|
|
27289
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import`
|
|
27290
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
27291
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
27292
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27293
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27294
|
+
let baseOptions;
|
|
27295
|
+
if (configuration) {
|
|
27296
|
+
baseOptions = configuration.baseOptions;
|
|
27297
|
+
}
|
|
27298
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
27299
|
+
const localVarHeaderParameter = {};
|
|
27300
|
+
const localVarQueryParameter = {};
|
|
27301
|
+
// authentication apiToken required
|
|
27302
|
+
// http bearer authentication required
|
|
27303
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
27304
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27305
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27307
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27308
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsImportWordPressRequest, localVarRequestOptions, configuration);
|
|
27309
|
+
return {
|
|
27310
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27311
|
+
options: localVarRequestOptions,
|
|
27312
|
+
};
|
|
27313
|
+
}),
|
|
26664
27314
|
/**
|
|
26665
27315
|
* 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/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations 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 filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
26666
27316
|
* @summary Install WordPress
|
|
@@ -26738,7 +27388,7 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
26738
27388
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
26739
27389
|
* @summary List WordPress installations
|
|
26740
27390
|
* @param {string | null} [username] Filter by specific username
|
|
26741
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27391
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
26742
27392
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
26743
27393
|
* @param {*} [options] Override http request option.
|
|
26744
27394
|
* @throws {RequiredError}
|
|
@@ -26925,6 +27575,23 @@ const WordPressInstallationsApiFp = function (configuration) {
|
|
|
26925
27575
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26926
27576
|
});
|
|
26927
27577
|
},
|
|
27578
|
+
/**
|
|
27579
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27580
|
+
* @summary Import WordPress website
|
|
27581
|
+
* @param {string} username
|
|
27582
|
+
* @param {string} domain Domain name
|
|
27583
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27584
|
+
* @param {*} [options] Override http request option.
|
|
27585
|
+
* @throws {RequiredError}
|
|
27586
|
+
*/
|
|
27587
|
+
importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
|
|
27588
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27589
|
+
var _a, _b;
|
|
27590
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options);
|
|
27591
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.importWordPressWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
27592
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27593
|
+
});
|
|
27594
|
+
},
|
|
26928
27595
|
/**
|
|
26929
27596
|
* 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/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations 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 filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
26930
27597
|
* @summary Install WordPress
|
|
@@ -26961,7 +27628,7 @@ const WordPressInstallationsApiFp = function (configuration) {
|
|
|
26961
27628
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
26962
27629
|
* @summary List WordPress installations
|
|
26963
27630
|
* @param {string | null} [username] Filter by specific username
|
|
26964
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27631
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
26965
27632
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
26966
27633
|
* @param {*} [options] Override http request option.
|
|
26967
27634
|
* @throws {RequiredError}
|
|
@@ -27061,6 +27728,18 @@ const WordPressInstallationsApiFactory = function (configuration, basePath, axio
|
|
|
27061
27728
|
getInstallationJWTTokenV1(username, software, options) {
|
|
27062
27729
|
return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
|
|
27063
27730
|
},
|
|
27731
|
+
/**
|
|
27732
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27733
|
+
* @summary Import WordPress website
|
|
27734
|
+
* @param {string} username
|
|
27735
|
+
* @param {string} domain Domain name
|
|
27736
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27737
|
+
* @param {*} [options] Override http request option.
|
|
27738
|
+
* @throws {RequiredError}
|
|
27739
|
+
*/
|
|
27740
|
+
importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
|
|
27741
|
+
return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
|
|
27742
|
+
},
|
|
27064
27743
|
/**
|
|
27065
27744
|
* 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/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations 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 filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
27066
27745
|
* @summary Install WordPress
|
|
@@ -27087,7 +27766,7 @@ const WordPressInstallationsApiFactory = function (configuration, basePath, axio
|
|
|
27087
27766
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
27088
27767
|
* @summary List WordPress installations
|
|
27089
27768
|
* @param {string | null} [username] Filter by specific username
|
|
27090
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27769
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
27091
27770
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
27092
27771
|
* @param {*} [options] Override http request option.
|
|
27093
27772
|
* @throws {RequiredError}
|
|
@@ -27176,6 +27855,19 @@ class WordPressInstallationsApi extends base_1.BaseAPI {
|
|
|
27176
27855
|
getInstallationJWTTokenV1(username, software, options) {
|
|
27177
27856
|
return (0, exports.WordPressInstallationsApiFp)(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
27178
27857
|
}
|
|
27858
|
+
/**
|
|
27859
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27860
|
+
* @summary Import WordPress website
|
|
27861
|
+
* @param {string} username
|
|
27862
|
+
* @param {string} domain Domain name
|
|
27863
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27864
|
+
* @param {*} [options] Override http request option.
|
|
27865
|
+
* @throws {RequiredError}
|
|
27866
|
+
* @memberof WordPressInstallationsApi
|
|
27867
|
+
*/
|
|
27868
|
+
importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
|
|
27869
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27870
|
+
}
|
|
27179
27871
|
/**
|
|
27180
27872
|
* 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/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations 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 filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
27181
27873
|
* @summary Install WordPress
|
|
@@ -27204,7 +27896,7 @@ class WordPressInstallationsApi extends base_1.BaseAPI {
|
|
|
27204
27896
|
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
27205
27897
|
* @summary List WordPress installations
|
|
27206
27898
|
* @param {string | null} [username] Filter by specific username
|
|
27207
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
27899
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
27208
27900
|
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
27209
27901
|
* @param {*} [options] Override http request option.
|
|
27210
27902
|
* @throws {RequiredError}
|
|
@@ -27991,7 +28683,7 @@ const WordPressPluginsApiAxiosParamCreator = function (configuration) {
|
|
|
27991
28683
|
/**
|
|
27992
28684
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
27993
28685
|
* @summary Check if WooCommerce is installed
|
|
27994
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
28686
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
27995
28687
|
* @param {*} [options] Override http request option.
|
|
27996
28688
|
* @throws {RequiredError}
|
|
27997
28689
|
*/
|
|
@@ -28061,6 +28753,47 @@ const WordPressPluginsApiAxiosParamCreator = function (configuration) {
|
|
|
28061
28753
|
options: localVarRequestOptions,
|
|
28062
28754
|
};
|
|
28063
28755
|
}),
|
|
28756
|
+
/**
|
|
28757
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
28758
|
+
* @summary Deploy WordPress plugin
|
|
28759
|
+
* @param {string} username
|
|
28760
|
+
* @param {string} domain Domain name
|
|
28761
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
28762
|
+
* @param {*} [options] Override http request option.
|
|
28763
|
+
* @throws {RequiredError}
|
|
28764
|
+
*/
|
|
28765
|
+
deployWordPressPluginV1: (username_1, domain_1, wordPressV1PluginsDeployPluginRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1PluginsDeployPluginRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1PluginsDeployPluginRequest, options = {}) {
|
|
28766
|
+
// verify required parameter 'username' is not null or undefined
|
|
28767
|
+
(0, common_1.assertParamExists)('deployWordPressPluginV1', 'username', username);
|
|
28768
|
+
// verify required parameter 'domain' is not null or undefined
|
|
28769
|
+
(0, common_1.assertParamExists)('deployWordPressPluginV1', 'domain', domain);
|
|
28770
|
+
// verify required parameter 'wordPressV1PluginsDeployPluginRequest' is not null or undefined
|
|
28771
|
+
(0, common_1.assertParamExists)('deployWordPressPluginV1', 'wordPressV1PluginsDeployPluginRequest', wordPressV1PluginsDeployPluginRequest);
|
|
28772
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy`
|
|
28773
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
28774
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
28775
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28776
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
28777
|
+
let baseOptions;
|
|
28778
|
+
if (configuration) {
|
|
28779
|
+
baseOptions = configuration.baseOptions;
|
|
28780
|
+
}
|
|
28781
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
28782
|
+
const localVarHeaderParameter = {};
|
|
28783
|
+
const localVarQueryParameter = {};
|
|
28784
|
+
// authentication apiToken required
|
|
28785
|
+
// http bearer authentication required
|
|
28786
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
28787
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28788
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
28789
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28790
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
28791
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsDeployPluginRequest, localVarRequestOptions, configuration);
|
|
28792
|
+
return {
|
|
28793
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
28794
|
+
options: localVarRequestOptions,
|
|
28795
|
+
};
|
|
28796
|
+
}),
|
|
28064
28797
|
/**
|
|
28065
28798
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28066
28799
|
* @summary Install WordPress plugins
|
|
@@ -28397,7 +29130,7 @@ const WordPressPluginsApiFp = function (configuration) {
|
|
|
28397
29130
|
/**
|
|
28398
29131
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
28399
29132
|
* @summary Check if WooCommerce is installed
|
|
28400
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
29133
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
28401
29134
|
* @param {*} [options] Override http request option.
|
|
28402
29135
|
* @throws {RequiredError}
|
|
28403
29136
|
*/
|
|
@@ -28426,6 +29159,23 @@ const WordPressPluginsApiFp = function (configuration) {
|
|
|
28426
29159
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28427
29160
|
});
|
|
28428
29161
|
},
|
|
29162
|
+
/**
|
|
29163
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
29164
|
+
* @summary Deploy WordPress plugin
|
|
29165
|
+
* @param {string} username
|
|
29166
|
+
* @param {string} domain Domain name
|
|
29167
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
29168
|
+
* @param {*} [options] Override http request option.
|
|
29169
|
+
* @throws {RequiredError}
|
|
29170
|
+
*/
|
|
29171
|
+
deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
|
|
29172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29173
|
+
var _a, _b;
|
|
29174
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options);
|
|
29175
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.deployWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
29176
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29177
|
+
});
|
|
29178
|
+
},
|
|
28429
29179
|
/**
|
|
28430
29180
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28431
29181
|
* @summary Install WordPress plugins
|
|
@@ -28582,7 +29332,7 @@ const WordPressPluginsApiFactory = function (configuration, basePath, axios) {
|
|
|
28582
29332
|
/**
|
|
28583
29333
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
28584
29334
|
* @summary Check if WooCommerce is installed
|
|
28585
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
29335
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
28586
29336
|
* @param {*} [options] Override http request option.
|
|
28587
29337
|
* @throws {RequiredError}
|
|
28588
29338
|
*/
|
|
@@ -28601,6 +29351,18 @@ const WordPressPluginsApiFactory = function (configuration, basePath, axios) {
|
|
|
28601
29351
|
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
28602
29352
|
return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
28603
29353
|
},
|
|
29354
|
+
/**
|
|
29355
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
29356
|
+
* @summary Deploy WordPress plugin
|
|
29357
|
+
* @param {string} username
|
|
29358
|
+
* @param {string} domain Domain name
|
|
29359
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
29360
|
+
* @param {*} [options] Override http request option.
|
|
29361
|
+
* @throws {RequiredError}
|
|
29362
|
+
*/
|
|
29363
|
+
deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
|
|
29364
|
+
return localVarFp.deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options).then((request) => request(axios, basePath));
|
|
29365
|
+
},
|
|
28604
29366
|
/**
|
|
28605
29367
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28606
29368
|
* @summary Install WordPress plugins
|
|
@@ -28718,7 +29480,7 @@ class WordPressPluginsApi extends base_1.BaseAPI {
|
|
|
28718
29480
|
/**
|
|
28719
29481
|
* Check whether WooCommerce is installed on any WordPress installation of a domain. Optionally filter by domain to scope the check.
|
|
28720
29482
|
* @summary Check if WooCommerce is installed
|
|
28721
|
-
* @param {string | null} [domain] Filter by domain name (
|
|
29483
|
+
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
28722
29484
|
* @param {*} [options] Override http request option.
|
|
28723
29485
|
* @throws {RequiredError}
|
|
28724
29486
|
* @memberof WordPressPluginsApi
|
|
@@ -28739,6 +29501,19 @@ class WordPressPluginsApi extends base_1.BaseAPI {
|
|
|
28739
29501
|
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
28740
29502
|
return (0, exports.WordPressPluginsApiFp)(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28741
29503
|
}
|
|
29504
|
+
/**
|
|
29505
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
29506
|
+
* @summary Deploy WordPress plugin
|
|
29507
|
+
* @param {string} username
|
|
29508
|
+
* @param {string} domain Domain name
|
|
29509
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
29510
|
+
* @param {*} [options] Override http request option.
|
|
29511
|
+
* @throws {RequiredError}
|
|
29512
|
+
* @memberof WordPressPluginsApi
|
|
29513
|
+
*/
|
|
29514
|
+
deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
|
|
29515
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29516
|
+
}
|
|
28742
29517
|
/**
|
|
28743
29518
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28744
29519
|
* @summary Install WordPress plugins
|
|
@@ -28893,6 +29668,47 @@ const WordPressThemesApiAxiosParamCreator = function (configuration) {
|
|
|
28893
29668
|
options: localVarRequestOptions,
|
|
28894
29669
|
};
|
|
28895
29670
|
}),
|
|
29671
|
+
/**
|
|
29672
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
29673
|
+
* @summary Deploy WordPress theme
|
|
29674
|
+
* @param {string} username
|
|
29675
|
+
* @param {string} domain Domain name
|
|
29676
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
29677
|
+
* @param {*} [options] Override http request option.
|
|
29678
|
+
* @throws {RequiredError}
|
|
29679
|
+
*/
|
|
29680
|
+
deployWordPressThemeV1: (username_1, domain_1, wordPressV1ThemesDeployThemeRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1ThemesDeployThemeRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1ThemesDeployThemeRequest, options = {}) {
|
|
29681
|
+
// verify required parameter 'username' is not null or undefined
|
|
29682
|
+
(0, common_1.assertParamExists)('deployWordPressThemeV1', 'username', username);
|
|
29683
|
+
// verify required parameter 'domain' is not null or undefined
|
|
29684
|
+
(0, common_1.assertParamExists)('deployWordPressThemeV1', 'domain', domain);
|
|
29685
|
+
// verify required parameter 'wordPressV1ThemesDeployThemeRequest' is not null or undefined
|
|
29686
|
+
(0, common_1.assertParamExists)('deployWordPressThemeV1', 'wordPressV1ThemesDeployThemeRequest', wordPressV1ThemesDeployThemeRequest);
|
|
29687
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy`
|
|
29688
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
29689
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
29690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29691
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29692
|
+
let baseOptions;
|
|
29693
|
+
if (configuration) {
|
|
29694
|
+
baseOptions = configuration.baseOptions;
|
|
29695
|
+
}
|
|
29696
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29697
|
+
const localVarHeaderParameter = {};
|
|
29698
|
+
const localVarQueryParameter = {};
|
|
29699
|
+
// authentication apiToken required
|
|
29700
|
+
// http bearer authentication required
|
|
29701
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
29702
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29703
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
29704
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29705
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29706
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesDeployThemeRequest, localVarRequestOptions, configuration);
|
|
29707
|
+
return {
|
|
29708
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
29709
|
+
options: localVarRequestOptions,
|
|
29710
|
+
};
|
|
29711
|
+
}),
|
|
28896
29712
|
/**
|
|
28897
29713
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
28898
29714
|
* @summary Install WordPress theme
|
|
@@ -29115,6 +29931,23 @@ const WordPressThemesApiFp = function (configuration) {
|
|
|
29115
29931
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29116
29932
|
});
|
|
29117
29933
|
},
|
|
29934
|
+
/**
|
|
29935
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
29936
|
+
* @summary Deploy WordPress theme
|
|
29937
|
+
* @param {string} username
|
|
29938
|
+
* @param {string} domain Domain name
|
|
29939
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
29940
|
+
* @param {*} [options] Override http request option.
|
|
29941
|
+
* @throws {RequiredError}
|
|
29942
|
+
*/
|
|
29943
|
+
deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
|
|
29944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29945
|
+
var _a, _b;
|
|
29946
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options);
|
|
29947
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.deployWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
29948
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29949
|
+
});
|
|
29950
|
+
},
|
|
29118
29951
|
/**
|
|
29119
29952
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
29120
29953
|
* @summary Install WordPress theme
|
|
@@ -29220,6 +30053,18 @@ const WordPressThemesApiFactory = function (configuration, basePath, axios) {
|
|
|
29220
30053
|
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
29221
30054
|
return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
|
|
29222
30055
|
},
|
|
30056
|
+
/**
|
|
30057
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
30058
|
+
* @summary Deploy WordPress theme
|
|
30059
|
+
* @param {string} username
|
|
30060
|
+
* @param {string} domain Domain name
|
|
30061
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
30062
|
+
* @param {*} [options] Override http request option.
|
|
30063
|
+
* @throws {RequiredError}
|
|
30064
|
+
*/
|
|
30065
|
+
deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
|
|
30066
|
+
return localVarFp.deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options).then((request) => request(axios, basePath));
|
|
30067
|
+
},
|
|
29223
30068
|
/**
|
|
29224
30069
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
29225
30070
|
* @summary Install WordPress theme
|
|
@@ -29301,6 +30146,19 @@ class WordPressThemesApi extends base_1.BaseAPI {
|
|
|
29301
30146
|
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
29302
30147
|
return (0, exports.WordPressThemesApiFp)(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29303
30148
|
}
|
|
30149
|
+
/**
|
|
30150
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
30151
|
+
* @summary Deploy WordPress theme
|
|
30152
|
+
* @param {string} username
|
|
30153
|
+
* @param {string} domain Domain name
|
|
30154
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
30155
|
+
* @param {*} [options] Override http request option.
|
|
30156
|
+
* @throws {RequiredError}
|
|
30157
|
+
* @memberof WordPressThemesApi
|
|
30158
|
+
*/
|
|
30159
|
+
deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
|
|
30160
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30161
|
+
}
|
|
29304
30162
|
/**
|
|
29305
30163
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
29306
30164
|
* @summary Install WordPress theme
|