@hostinger/sdk 1.52.0 → 1.52.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +790 -10
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +556 -8
- package/dist/api.js +463 -17
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +556 -8
- package/dist/esm/api.js +449 -7
- 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/HostingGitApi.md +297 -0
- package/docs/HostingNodeJSApi.md +1 -1
- package/docs/HostingV1GitGitAutoDeploymentSettingsResource.md +31 -0
- package/docs/HostingV1GitGitCommitAuthorResource.md +22 -0
- package/docs/HostingV1GitGitCommitResource.md +24 -0
- package/docs/HostingV1GitGitInstallationResource.md +36 -0
- package/docs/HostingV1GitGitRepositoryResource.md +34 -0
- package/docs/HostingV1GitUpdateGitAutoDeploymentSettingsRequest.md +30 -0
- package/docs/HostingV1NodeJsSourceOptionsResource.md +11 -0
- package/docs/HostingV1NodeJsStartBuildRequest.md +1 -1
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +9 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.52.
|
|
7
|
+
* API Version: 1.52.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -20,16 +20,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductUpdateRequestStatusEnum = exports.EcommerceV1ProductProductResourceStatusEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.EcommerceV1PaymentProviderPaymentProviderListResourceDataConnectedInnerStatusEnum = exports.EcommerceV1DiscountDiscountResourceAllocationEnum = exports.EcommerceV1DiscountDiscountResourceTypeEnum = exports.EcommerceV1DiscountCreateDiscountRequestAllocationEnum = exports.EcommerceV1DiscountCreateDiscountRequestTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderPaymentProcessingResourceStatusEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = void 0;
|
|
23
|
+
exports.ReachV1CampaignsCreatedCampaignResourceTypeEnum = exports.ReachV1CampaignsCreatedCampaignResourceStatusEnum = 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.HostingV1NodeJsUpdateBuildSettingsRequestPackageManagerEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestAppTypeEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestNodeVersionEnum = exports.HostingV1NodeJsStoredBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1GitGitInstallationResourceStatusEnum = exports.HostingV1GitGitInstallationResourceAccountTypeEnum = exports.HostingV1GitGitInstallationResourceProviderEnum = void 0;
|
|
24
|
+
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.ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceInputTypeEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceOperatorEnum = exports.ReachV1ContactsSegmentsSegmentFilterAttributeResourceTypeEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortDirectionEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortByEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = void 0;
|
|
25
|
+
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 = 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 = void 0;
|
|
26
|
+
exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = 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 = void 0;
|
|
27
|
+
exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.ListProductsV1IncludeEnum = exports.ListProductsV1StatusEnum = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommerceProductVariantsApi = exports.EcommerceProductVariantsApiFactory = exports.EcommerceProductVariantsApiFp = exports.EcommerceProductVariantsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.ListStoreOrdersV1FulfillmentStatusEnum = exports.ListStoreOrdersV1PaymentStatusEnum = exports.ListStoreOrdersV1StatusEnum = exports.EcommerceOrdersApi = exports.EcommerceOrdersApiFactory = exports.EcommerceOrdersApiFp = exports.EcommerceOrdersApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.ListDiscountsV1IsDisabledEnum = exports.EcommerceDiscountsApi = exports.EcommerceDiscountsApiFactory = exports.EcommerceDiscountsApiFp = exports.EcommerceDiscountsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = void 0;
|
|
28
|
+
exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.ListGitInstallationsV1StatusEnum = exports.ListGitInstallationsV1ProviderEnum = exports.HostingGitApi = exports.HostingGitApiFactory = exports.HostingGitApiFp = exports.HostingGitApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = void 0;
|
|
29
|
+
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 = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = void 0;
|
|
30
|
+
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 = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = void 0;
|
|
31
|
+
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 = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTemplatesApi = exports.ReachTemplatesApiFactory = exports.ReachTemplatesApiFp = exports.ReachTemplatesApiAxiosParamCreator = void 0;
|
|
32
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = void 0;
|
|
33
33
|
const axios_1 = require("axios");
|
|
34
34
|
// Some imports not used depending on template conditions
|
|
35
35
|
// @ts-ignore
|
|
@@ -322,6 +322,20 @@ exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = {
|
|
|
322
322
|
Symlink: 'symlink',
|
|
323
323
|
Other: 'other'
|
|
324
324
|
};
|
|
325
|
+
exports.HostingV1GitGitInstallationResourceProviderEnum = {
|
|
326
|
+
Github: 'github',
|
|
327
|
+
Gitlab: 'gitlab',
|
|
328
|
+
Bitbucket: 'bitbucket'
|
|
329
|
+
};
|
|
330
|
+
exports.HostingV1GitGitInstallationResourceAccountTypeEnum = {
|
|
331
|
+
User: 'User',
|
|
332
|
+
Organization: 'Organization'
|
|
333
|
+
};
|
|
334
|
+
exports.HostingV1GitGitInstallationResourceStatusEnum = {
|
|
335
|
+
Pending: 'pending',
|
|
336
|
+
Active: 'active',
|
|
337
|
+
Suspended: 'suspended'
|
|
338
|
+
};
|
|
325
339
|
exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
|
|
326
340
|
CreateReactApp: 'create-react-app',
|
|
327
341
|
Gatsby: 'gatsby',
|
|
@@ -349,7 +363,8 @@ exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = {
|
|
|
349
363
|
Pnpm: 'pnpm'
|
|
350
364
|
};
|
|
351
365
|
exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = {
|
|
352
|
-
Archive: 'archive'
|
|
366
|
+
Archive: 'archive',
|
|
367
|
+
Git: 'git'
|
|
353
368
|
};
|
|
354
369
|
exports.HostingV1NodeJsBuildResourceStateEnum = {
|
|
355
370
|
Pending: 'pending',
|
|
@@ -448,7 +463,8 @@ exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
|
|
|
448
463
|
Pnpm: 'pnpm'
|
|
449
464
|
};
|
|
450
465
|
exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
|
|
451
|
-
Archive: 'archive'
|
|
466
|
+
Archive: 'archive',
|
|
467
|
+
Git: 'git'
|
|
452
468
|
};
|
|
453
469
|
exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = {
|
|
454
470
|
CreateReactApp: 'create-react-app',
|
|
@@ -14463,6 +14479,436 @@ exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
|
14463
14479
|
Symlink: 'symlink',
|
|
14464
14480
|
Other: 'other'
|
|
14465
14481
|
};
|
|
14482
|
+
/**
|
|
14483
|
+
* HostingGitApi - axios parameter creator
|
|
14484
|
+
* @export
|
|
14485
|
+
*/
|
|
14486
|
+
const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
14487
|
+
return {
|
|
14488
|
+
/**
|
|
14489
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14490
|
+
* @summary Delete Git auto-deployment settings
|
|
14491
|
+
* @param {string} username
|
|
14492
|
+
* @param {string} domain Domain name
|
|
14493
|
+
* @param {*} [options] Override http request option.
|
|
14494
|
+
* @throws {RequiredError}
|
|
14495
|
+
*/
|
|
14496
|
+
deleteGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
14497
|
+
// verify required parameter 'username' is not null or undefined
|
|
14498
|
+
(0, common_1.assertParamExists)('deleteGitAutoDeploymentSettingsV1', 'username', username);
|
|
14499
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14500
|
+
(0, common_1.assertParamExists)('deleteGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14501
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14502
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14503
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14504
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14505
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14506
|
+
let baseOptions;
|
|
14507
|
+
if (configuration) {
|
|
14508
|
+
baseOptions = configuration.baseOptions;
|
|
14509
|
+
}
|
|
14510
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14511
|
+
const localVarHeaderParameter = {};
|
|
14512
|
+
const localVarQueryParameter = {};
|
|
14513
|
+
// authentication apiToken required
|
|
14514
|
+
// http bearer authentication required
|
|
14515
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14516
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14517
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14518
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14519
|
+
return {
|
|
14520
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14521
|
+
options: localVarRequestOptions,
|
|
14522
|
+
};
|
|
14523
|
+
}),
|
|
14524
|
+
/**
|
|
14525
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14526
|
+
* @summary Get Git auto-deployment settings
|
|
14527
|
+
* @param {string} username
|
|
14528
|
+
* @param {string} domain Domain name
|
|
14529
|
+
* @param {*} [options] Override http request option.
|
|
14530
|
+
* @throws {RequiredError}
|
|
14531
|
+
*/
|
|
14532
|
+
getGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
14533
|
+
// verify required parameter 'username' is not null or undefined
|
|
14534
|
+
(0, common_1.assertParamExists)('getGitAutoDeploymentSettingsV1', 'username', username);
|
|
14535
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14536
|
+
(0, common_1.assertParamExists)('getGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14537
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14538
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14539
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14540
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14541
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14542
|
+
let baseOptions;
|
|
14543
|
+
if (configuration) {
|
|
14544
|
+
baseOptions = configuration.baseOptions;
|
|
14545
|
+
}
|
|
14546
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14547
|
+
const localVarHeaderParameter = {};
|
|
14548
|
+
const localVarQueryParameter = {};
|
|
14549
|
+
// authentication apiToken required
|
|
14550
|
+
// http bearer authentication required
|
|
14551
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14552
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14553
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14554
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14555
|
+
return {
|
|
14556
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14557
|
+
options: localVarRequestOptions,
|
|
14558
|
+
};
|
|
14559
|
+
}),
|
|
14560
|
+
/**
|
|
14561
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14562
|
+
* @summary List Git installation repositories
|
|
14563
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14564
|
+
* @param {*} [options] Override http request option.
|
|
14565
|
+
* @throws {RequiredError}
|
|
14566
|
+
*/
|
|
14567
|
+
listGitInstallationRepositoriesV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
14568
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
14569
|
+
(0, common_1.assertParamExists)('listGitInstallationRepositoriesV1', 'uuid', uuid);
|
|
14570
|
+
const localVarPath = `/api/hosting/v1/git/installations/{uuid}/repositories`
|
|
14571
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
14572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14573
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14574
|
+
let baseOptions;
|
|
14575
|
+
if (configuration) {
|
|
14576
|
+
baseOptions = configuration.baseOptions;
|
|
14577
|
+
}
|
|
14578
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14579
|
+
const localVarHeaderParameter = {};
|
|
14580
|
+
const localVarQueryParameter = {};
|
|
14581
|
+
// authentication apiToken required
|
|
14582
|
+
// http bearer authentication required
|
|
14583
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14584
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14585
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14586
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14587
|
+
return {
|
|
14588
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14589
|
+
options: localVarRequestOptions,
|
|
14590
|
+
};
|
|
14591
|
+
}),
|
|
14592
|
+
/**
|
|
14593
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14594
|
+
* @summary List Git installations
|
|
14595
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14596
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14597
|
+
* @param {*} [options] Override http request option.
|
|
14598
|
+
* @throws {RequiredError}
|
|
14599
|
+
*/
|
|
14600
|
+
listGitInstallationsV1: (provider_1, status_1, ...args_1) => __awaiter(this, [provider_1, status_1, ...args_1], void 0, function* (provider, status, options = {}) {
|
|
14601
|
+
const localVarPath = `/api/hosting/v1/git/installations`;
|
|
14602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14603
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14604
|
+
let baseOptions;
|
|
14605
|
+
if (configuration) {
|
|
14606
|
+
baseOptions = configuration.baseOptions;
|
|
14607
|
+
}
|
|
14608
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14609
|
+
const localVarHeaderParameter = {};
|
|
14610
|
+
const localVarQueryParameter = {};
|
|
14611
|
+
// authentication apiToken required
|
|
14612
|
+
// http bearer authentication required
|
|
14613
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14614
|
+
if (provider !== undefined) {
|
|
14615
|
+
localVarQueryParameter['provider'] = provider;
|
|
14616
|
+
}
|
|
14617
|
+
if (status !== undefined) {
|
|
14618
|
+
localVarQueryParameter['status'] = status;
|
|
14619
|
+
}
|
|
14620
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14622
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14623
|
+
return {
|
|
14624
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14625
|
+
options: localVarRequestOptions,
|
|
14626
|
+
};
|
|
14627
|
+
}),
|
|
14628
|
+
/**
|
|
14629
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14630
|
+
* @summary Update Git auto-deployment settings
|
|
14631
|
+
* @param {string} username
|
|
14632
|
+
* @param {string} domain Domain name
|
|
14633
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14634
|
+
* @param {*} [options] Override http request option.
|
|
14635
|
+
* @throws {RequiredError}
|
|
14636
|
+
*/
|
|
14637
|
+
updateGitAutoDeploymentSettingsV1: (username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options = {}) {
|
|
14638
|
+
// verify required parameter 'username' is not null or undefined
|
|
14639
|
+
(0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'username', username);
|
|
14640
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14641
|
+
(0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14642
|
+
// verify required parameter 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest' is not null or undefined
|
|
14643
|
+
(0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest', hostingV1GitUpdateGitAutoDeploymentSettingsRequest);
|
|
14644
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14645
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14646
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14648
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14649
|
+
let baseOptions;
|
|
14650
|
+
if (configuration) {
|
|
14651
|
+
baseOptions = configuration.baseOptions;
|
|
14652
|
+
}
|
|
14653
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
14654
|
+
const localVarHeaderParameter = {};
|
|
14655
|
+
const localVarQueryParameter = {};
|
|
14656
|
+
// authentication apiToken required
|
|
14657
|
+
// http bearer authentication required
|
|
14658
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14659
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14660
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14662
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14663
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1GitUpdateGitAutoDeploymentSettingsRequest, localVarRequestOptions, configuration);
|
|
14664
|
+
return {
|
|
14665
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14666
|
+
options: localVarRequestOptions,
|
|
14667
|
+
};
|
|
14668
|
+
}),
|
|
14669
|
+
};
|
|
14670
|
+
};
|
|
14671
|
+
exports.HostingGitApiAxiosParamCreator = HostingGitApiAxiosParamCreator;
|
|
14672
|
+
/**
|
|
14673
|
+
* HostingGitApi - functional programming interface
|
|
14674
|
+
* @export
|
|
14675
|
+
*/
|
|
14676
|
+
const HostingGitApiFp = function (configuration) {
|
|
14677
|
+
const localVarAxiosParamCreator = (0, exports.HostingGitApiAxiosParamCreator)(configuration);
|
|
14678
|
+
return {
|
|
14679
|
+
/**
|
|
14680
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14681
|
+
* @summary Delete Git auto-deployment settings
|
|
14682
|
+
* @param {string} username
|
|
14683
|
+
* @param {string} domain Domain name
|
|
14684
|
+
* @param {*} [options] Override http request option.
|
|
14685
|
+
* @throws {RequiredError}
|
|
14686
|
+
*/
|
|
14687
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14689
|
+
var _a, _b;
|
|
14690
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteGitAutoDeploymentSettingsV1(username, domain, options);
|
|
14691
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.deleteGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14692
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14693
|
+
});
|
|
14694
|
+
},
|
|
14695
|
+
/**
|
|
14696
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14697
|
+
* @summary Get Git auto-deployment settings
|
|
14698
|
+
* @param {string} username
|
|
14699
|
+
* @param {string} domain Domain name
|
|
14700
|
+
* @param {*} [options] Override http request option.
|
|
14701
|
+
* @throws {RequiredError}
|
|
14702
|
+
*/
|
|
14703
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14705
|
+
var _a, _b;
|
|
14706
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGitAutoDeploymentSettingsV1(username, domain, options);
|
|
14707
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.getGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14708
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14709
|
+
});
|
|
14710
|
+
},
|
|
14711
|
+
/**
|
|
14712
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14713
|
+
* @summary List Git installation repositories
|
|
14714
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14715
|
+
* @param {*} [options] Override http request option.
|
|
14716
|
+
* @throws {RequiredError}
|
|
14717
|
+
*/
|
|
14718
|
+
listGitInstallationRepositoriesV1(uuid, options) {
|
|
14719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14720
|
+
var _a, _b;
|
|
14721
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listGitInstallationRepositoriesV1(uuid, options);
|
|
14722
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.listGitInstallationRepositoriesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14723
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14724
|
+
});
|
|
14725
|
+
},
|
|
14726
|
+
/**
|
|
14727
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14728
|
+
* @summary List Git installations
|
|
14729
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14730
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14731
|
+
* @param {*} [options] Override http request option.
|
|
14732
|
+
* @throws {RequiredError}
|
|
14733
|
+
*/
|
|
14734
|
+
listGitInstallationsV1(provider, status, options) {
|
|
14735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14736
|
+
var _a, _b;
|
|
14737
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listGitInstallationsV1(provider, status, options);
|
|
14738
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.listGitInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14739
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14740
|
+
});
|
|
14741
|
+
},
|
|
14742
|
+
/**
|
|
14743
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14744
|
+
* @summary Update Git auto-deployment settings
|
|
14745
|
+
* @param {string} username
|
|
14746
|
+
* @param {string} domain Domain name
|
|
14747
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14748
|
+
* @param {*} [options] Override http request option.
|
|
14749
|
+
* @throws {RequiredError}
|
|
14750
|
+
*/
|
|
14751
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14753
|
+
var _a, _b;
|
|
14754
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options);
|
|
14755
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.updateGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14756
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14757
|
+
});
|
|
14758
|
+
},
|
|
14759
|
+
};
|
|
14760
|
+
};
|
|
14761
|
+
exports.HostingGitApiFp = HostingGitApiFp;
|
|
14762
|
+
/**
|
|
14763
|
+
* HostingGitApi - factory interface
|
|
14764
|
+
* @export
|
|
14765
|
+
*/
|
|
14766
|
+
const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
14767
|
+
const localVarFp = (0, exports.HostingGitApiFp)(configuration);
|
|
14768
|
+
return {
|
|
14769
|
+
/**
|
|
14770
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14771
|
+
* @summary Delete Git auto-deployment settings
|
|
14772
|
+
* @param {string} username
|
|
14773
|
+
* @param {string} domain Domain name
|
|
14774
|
+
* @param {*} [options] Override http request option.
|
|
14775
|
+
* @throws {RequiredError}
|
|
14776
|
+
*/
|
|
14777
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14778
|
+
return localVarFp.deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
14779
|
+
},
|
|
14780
|
+
/**
|
|
14781
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14782
|
+
* @summary Get Git auto-deployment settings
|
|
14783
|
+
* @param {string} username
|
|
14784
|
+
* @param {string} domain Domain name
|
|
14785
|
+
* @param {*} [options] Override http request option.
|
|
14786
|
+
* @throws {RequiredError}
|
|
14787
|
+
*/
|
|
14788
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14789
|
+
return localVarFp.getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
14790
|
+
},
|
|
14791
|
+
/**
|
|
14792
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14793
|
+
* @summary List Git installation repositories
|
|
14794
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14795
|
+
* @param {*} [options] Override http request option.
|
|
14796
|
+
* @throws {RequiredError}
|
|
14797
|
+
*/
|
|
14798
|
+
listGitInstallationRepositoriesV1(uuid, options) {
|
|
14799
|
+
return localVarFp.listGitInstallationRepositoriesV1(uuid, options).then((request) => request(axios, basePath));
|
|
14800
|
+
},
|
|
14801
|
+
/**
|
|
14802
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14803
|
+
* @summary List Git installations
|
|
14804
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14805
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14806
|
+
* @param {*} [options] Override http request option.
|
|
14807
|
+
* @throws {RequiredError}
|
|
14808
|
+
*/
|
|
14809
|
+
listGitInstallationsV1(provider, status, options) {
|
|
14810
|
+
return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
|
|
14811
|
+
},
|
|
14812
|
+
/**
|
|
14813
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14814
|
+
* @summary Update Git auto-deployment settings
|
|
14815
|
+
* @param {string} username
|
|
14816
|
+
* @param {string} domain Domain name
|
|
14817
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14818
|
+
* @param {*} [options] Override http request option.
|
|
14819
|
+
* @throws {RequiredError}
|
|
14820
|
+
*/
|
|
14821
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14822
|
+
return localVarFp.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(axios, basePath));
|
|
14823
|
+
},
|
|
14824
|
+
};
|
|
14825
|
+
};
|
|
14826
|
+
exports.HostingGitApiFactory = HostingGitApiFactory;
|
|
14827
|
+
/**
|
|
14828
|
+
* HostingGitApi - object-oriented interface
|
|
14829
|
+
* @export
|
|
14830
|
+
* @class HostingGitApi
|
|
14831
|
+
* @extends {BaseAPI}
|
|
14832
|
+
*/
|
|
14833
|
+
class HostingGitApi extends base_1.BaseAPI {
|
|
14834
|
+
/**
|
|
14835
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14836
|
+
* @summary Delete Git auto-deployment settings
|
|
14837
|
+
* @param {string} username
|
|
14838
|
+
* @param {string} domain Domain name
|
|
14839
|
+
* @param {*} [options] Override http request option.
|
|
14840
|
+
* @throws {RequiredError}
|
|
14841
|
+
* @memberof HostingGitApi
|
|
14842
|
+
*/
|
|
14843
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14844
|
+
return (0, exports.HostingGitApiFp)(this.configuration).deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14845
|
+
}
|
|
14846
|
+
/**
|
|
14847
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14848
|
+
* @summary Get Git auto-deployment settings
|
|
14849
|
+
* @param {string} username
|
|
14850
|
+
* @param {string} domain Domain name
|
|
14851
|
+
* @param {*} [options] Override http request option.
|
|
14852
|
+
* @throws {RequiredError}
|
|
14853
|
+
* @memberof HostingGitApi
|
|
14854
|
+
*/
|
|
14855
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14856
|
+
return (0, exports.HostingGitApiFp)(this.configuration).getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14857
|
+
}
|
|
14858
|
+
/**
|
|
14859
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14860
|
+
* @summary List Git installation repositories
|
|
14861
|
+
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14862
|
+
* @param {*} [options] Override http request option.
|
|
14863
|
+
* @throws {RequiredError}
|
|
14864
|
+
* @memberof HostingGitApi
|
|
14865
|
+
*/
|
|
14866
|
+
listGitInstallationRepositoriesV1(uuid, options) {
|
|
14867
|
+
return (0, exports.HostingGitApiFp)(this.configuration).listGitInstallationRepositoriesV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
14868
|
+
}
|
|
14869
|
+
/**
|
|
14870
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14871
|
+
* @summary List Git installations
|
|
14872
|
+
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14873
|
+
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
14874
|
+
* @param {*} [options] Override http request option.
|
|
14875
|
+
* @throws {RequiredError}
|
|
14876
|
+
* @memberof HostingGitApi
|
|
14877
|
+
*/
|
|
14878
|
+
listGitInstallationsV1(provider, status, options) {
|
|
14879
|
+
return (0, exports.HostingGitApiFp)(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
|
|
14880
|
+
}
|
|
14881
|
+
/**
|
|
14882
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14883
|
+
* @summary Update Git auto-deployment settings
|
|
14884
|
+
* @param {string} username
|
|
14885
|
+
* @param {string} domain Domain name
|
|
14886
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14887
|
+
* @param {*} [options] Override http request option.
|
|
14888
|
+
* @throws {RequiredError}
|
|
14889
|
+
* @memberof HostingGitApi
|
|
14890
|
+
*/
|
|
14891
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14892
|
+
return (0, exports.HostingGitApiFp)(this.configuration).updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14893
|
+
}
|
|
14894
|
+
}
|
|
14895
|
+
exports.HostingGitApi = HostingGitApi;
|
|
14896
|
+
/**
|
|
14897
|
+
* @export
|
|
14898
|
+
*/
|
|
14899
|
+
exports.ListGitInstallationsV1ProviderEnum = {
|
|
14900
|
+
Github: 'github',
|
|
14901
|
+
Gitlab: 'gitlab',
|
|
14902
|
+
Bitbucket: 'bitbucket'
|
|
14903
|
+
};
|
|
14904
|
+
/**
|
|
14905
|
+
* @export
|
|
14906
|
+
*/
|
|
14907
|
+
exports.ListGitInstallationsV1StatusEnum = {
|
|
14908
|
+
Pending: 'pending',
|
|
14909
|
+
Active: 'active',
|
|
14910
|
+
Suspended: 'suspended'
|
|
14911
|
+
};
|
|
14466
14912
|
/**
|
|
14467
14913
|
* HostingNodeJSApi - axios parameter creator
|
|
14468
14914
|
* @export
|
|
@@ -15002,7 +15448,7 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
15002
15448
|
};
|
|
15003
15449
|
}),
|
|
15004
15450
|
/**
|
|
15005
|
-
* 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.
|
|
15451
|
+
* 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. With `source_type` `archive`, `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. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15006
15452
|
* @summary Start Node.js build
|
|
15007
15453
|
* @param {string} username
|
|
15008
15454
|
* @param {string} domain Domain name
|
|
@@ -15317,7 +15763,7 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
15317
15763
|
});
|
|
15318
15764
|
},
|
|
15319
15765
|
/**
|
|
15320
|
-
* 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.
|
|
15766
|
+
* 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. With `source_type` `archive`, `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. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15321
15767
|
* @summary Start Node.js build
|
|
15322
15768
|
* @param {string} username
|
|
15323
15769
|
* @param {string} domain Domain name
|
|
@@ -15519,7 +15965,7 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
15519
15965
|
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
15520
15966
|
},
|
|
15521
15967
|
/**
|
|
15522
|
-
* 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.
|
|
15968
|
+
* 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. With `source_type` `archive`, `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. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15523
15969
|
* @summary Start Node.js build
|
|
15524
15970
|
* @param {string} username
|
|
15525
15971
|
* @param {string} domain Domain name
|
|
@@ -15724,7 +16170,7 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
15724
16170
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
15725
16171
|
}
|
|
15726
16172
|
/**
|
|
15727
|
-
* 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.
|
|
16173
|
+
* 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. With `source_type` `archive`, `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. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15728
16174
|
* @summary Start Node.js build
|
|
15729
16175
|
* @param {string} username
|
|
15730
16176
|
* @param {string} domain Domain name
|