hostinger-api-sdk 1.30.0 → 1.30.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 +714 -38
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +445 -30
- package/dist/api.js +500 -33
- 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 +445 -30
- package/dist/esm/api.js +487 -24
- 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/DomainsAvailabilityApi.md +113 -1
- package/docs/DomainsV1AvailabilityAlternativesFromDescriptionRequest.md +22 -0
- package/docs/DomainsV1AvailabilityAlternativesFromDomainRequest.md +22 -0
- package/docs/EcommerceProductsApi.md +62 -0
- package/docs/EcommerceV1ProductProductImageUploadResource.md +22 -0
- package/docs/EcommerceV1ProductUploadProductImageRequest.md +22 -0
- package/docs/HostingFilesApi.md +148 -0
- package/docs/{HostingV1WebsitesDeleteWebsiteRequest.md → HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md} +3 -5
- package/docs/HostingV1FilesFileContentResource.md +28 -0
- package/docs/HostingV1FilesFilesResource.md +28 -0
- package/docs/HostingV1FilesFilesResourceItemsInner.md +26 -0
- package/docs/HostingWebsitesApi.md +5 -9
- 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.32.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
|
|
@@ -19,15 +19,15 @@ 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.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 = void 0;
|
|
22
|
+
exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = void 0;
|
|
23
|
+
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.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.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = void 0;
|
|
24
|
+
exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = void 0;
|
|
25
|
+
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 = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = void 0;
|
|
26
|
+
exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = void 0;
|
|
27
|
+
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.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = void 0;
|
|
28
|
+
exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = void 0;
|
|
29
|
+
exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = void 0;
|
|
30
|
+
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 = void 0;
|
|
31
31
|
const axios_1 = require("axios");
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -233,6 +233,12 @@ exports.HostingV1DomainsParkedDomainResourceTypeEnum = {
|
|
|
233
233
|
Domain: 'domain',
|
|
234
234
|
Ip: 'ip'
|
|
235
235
|
};
|
|
236
|
+
exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = {
|
|
237
|
+
File: 'file',
|
|
238
|
+
Directory: 'directory',
|
|
239
|
+
Symlink: 'symlink',
|
|
240
|
+
Other: 'other'
|
|
241
|
+
};
|
|
236
242
|
exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
|
|
237
243
|
CreateReactApp: 'create-react-app',
|
|
238
244
|
Vite: 'vite',
|
|
@@ -4508,7 +4514,7 @@ exports.DomainAccessVerifierVerificationsApi = DomainAccessVerifierVerifications
|
|
|
4508
4514
|
const DomainsAvailabilityApiAxiosParamCreator = function (configuration) {
|
|
4509
4515
|
return {
|
|
4510
4516
|
/**
|
|
4511
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4517
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4512
4518
|
* @summary Check domain availability
|
|
4513
4519
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4514
4520
|
* @param {*} [options] Override http request option.
|
|
@@ -4540,6 +4546,72 @@ const DomainsAvailabilityApiAxiosParamCreator = function (configuration) {
|
|
|
4540
4546
|
options: localVarRequestOptions,
|
|
4541
4547
|
};
|
|
4542
4548
|
}),
|
|
4549
|
+
/**
|
|
4550
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4551
|
+
* @summary Suggest domain names from a description
|
|
4552
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4553
|
+
* @param {*} [options] Override http request option.
|
|
4554
|
+
* @throws {RequiredError}
|
|
4555
|
+
*/
|
|
4556
|
+
suggestDomainNamesFromADescriptionV1: (domainsV1AvailabilityAlternativesFromDescriptionRequest_1, ...args_1) => __awaiter(this, [domainsV1AvailabilityAlternativesFromDescriptionRequest_1, ...args_1], void 0, function* (domainsV1AvailabilityAlternativesFromDescriptionRequest, options = {}) {
|
|
4557
|
+
// verify required parameter 'domainsV1AvailabilityAlternativesFromDescriptionRequest' is not null or undefined
|
|
4558
|
+
(0, common_1.assertParamExists)('suggestDomainNamesFromADescriptionV1', 'domainsV1AvailabilityAlternativesFromDescriptionRequest', domainsV1AvailabilityAlternativesFromDescriptionRequest);
|
|
4559
|
+
const localVarPath = `/api/domains/v1/availability/alternatives-from-description`;
|
|
4560
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4561
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4562
|
+
let baseOptions;
|
|
4563
|
+
if (configuration) {
|
|
4564
|
+
baseOptions = configuration.baseOptions;
|
|
4565
|
+
}
|
|
4566
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4567
|
+
const localVarHeaderParameter = {};
|
|
4568
|
+
const localVarQueryParameter = {};
|
|
4569
|
+
// authentication apiToken required
|
|
4570
|
+
// http bearer authentication required
|
|
4571
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4572
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4573
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4575
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4576
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1AvailabilityAlternativesFromDescriptionRequest, localVarRequestOptions, configuration);
|
|
4577
|
+
return {
|
|
4578
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4579
|
+
options: localVarRequestOptions,
|
|
4580
|
+
};
|
|
4581
|
+
}),
|
|
4582
|
+
/**
|
|
4583
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4584
|
+
* @summary Suggest domain names from a domain
|
|
4585
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4586
|
+
* @param {*} [options] Override http request option.
|
|
4587
|
+
* @throws {RequiredError}
|
|
4588
|
+
*/
|
|
4589
|
+
suggestDomainNamesFromADomainV1: (domainsV1AvailabilityAlternativesFromDomainRequest_1, ...args_1) => __awaiter(this, [domainsV1AvailabilityAlternativesFromDomainRequest_1, ...args_1], void 0, function* (domainsV1AvailabilityAlternativesFromDomainRequest, options = {}) {
|
|
4590
|
+
// verify required parameter 'domainsV1AvailabilityAlternativesFromDomainRequest' is not null or undefined
|
|
4591
|
+
(0, common_1.assertParamExists)('suggestDomainNamesFromADomainV1', 'domainsV1AvailabilityAlternativesFromDomainRequest', domainsV1AvailabilityAlternativesFromDomainRequest);
|
|
4592
|
+
const localVarPath = `/api/domains/v1/availability/alternatives-from-domain`;
|
|
4593
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4594
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4595
|
+
let baseOptions;
|
|
4596
|
+
if (configuration) {
|
|
4597
|
+
baseOptions = configuration.baseOptions;
|
|
4598
|
+
}
|
|
4599
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4600
|
+
const localVarHeaderParameter = {};
|
|
4601
|
+
const localVarQueryParameter = {};
|
|
4602
|
+
// authentication apiToken required
|
|
4603
|
+
// http bearer authentication required
|
|
4604
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4605
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4606
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4607
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4608
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4609
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1AvailabilityAlternativesFromDomainRequest, localVarRequestOptions, configuration);
|
|
4610
|
+
return {
|
|
4611
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4612
|
+
options: localVarRequestOptions,
|
|
4613
|
+
};
|
|
4614
|
+
}),
|
|
4543
4615
|
};
|
|
4544
4616
|
};
|
|
4545
4617
|
exports.DomainsAvailabilityApiAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator;
|
|
@@ -4551,7 +4623,7 @@ const DomainsAvailabilityApiFp = function (configuration) {
|
|
|
4551
4623
|
const localVarAxiosParamCreator = (0, exports.DomainsAvailabilityApiAxiosParamCreator)(configuration);
|
|
4552
4624
|
return {
|
|
4553
4625
|
/**
|
|
4554
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4626
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4555
4627
|
* @summary Check domain availability
|
|
4556
4628
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4557
4629
|
* @param {*} [options] Override http request option.
|
|
@@ -4565,6 +4637,36 @@ const DomainsAvailabilityApiFp = function (configuration) {
|
|
|
4565
4637
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4566
4638
|
});
|
|
4567
4639
|
},
|
|
4640
|
+
/**
|
|
4641
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4642
|
+
* @summary Suggest domain names from a description
|
|
4643
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4644
|
+
* @param {*} [options] Override http request option.
|
|
4645
|
+
* @throws {RequiredError}
|
|
4646
|
+
*/
|
|
4647
|
+
suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options) {
|
|
4648
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4649
|
+
var _a, _b;
|
|
4650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options);
|
|
4651
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADescriptionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4652
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4653
|
+
});
|
|
4654
|
+
},
|
|
4655
|
+
/**
|
|
4656
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4657
|
+
* @summary Suggest domain names from a domain
|
|
4658
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4659
|
+
* @param {*} [options] Override http request option.
|
|
4660
|
+
* @throws {RequiredError}
|
|
4661
|
+
*/
|
|
4662
|
+
suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options) {
|
|
4663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4664
|
+
var _a, _b;
|
|
4665
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options);
|
|
4666
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4667
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4668
|
+
});
|
|
4669
|
+
},
|
|
4568
4670
|
};
|
|
4569
4671
|
};
|
|
4570
4672
|
exports.DomainsAvailabilityApiFp = DomainsAvailabilityApiFp;
|
|
@@ -4576,7 +4678,7 @@ const DomainsAvailabilityApiFactory = function (configuration, basePath, axios)
|
|
|
4576
4678
|
const localVarFp = (0, exports.DomainsAvailabilityApiFp)(configuration);
|
|
4577
4679
|
return {
|
|
4578
4680
|
/**
|
|
4579
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4681
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4580
4682
|
* @summary Check domain availability
|
|
4581
4683
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4582
4684
|
* @param {*} [options] Override http request option.
|
|
@@ -4585,6 +4687,26 @@ const DomainsAvailabilityApiFactory = function (configuration, basePath, axios)
|
|
|
4585
4687
|
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
4586
4688
|
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
4587
4689
|
},
|
|
4690
|
+
/**
|
|
4691
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4692
|
+
* @summary Suggest domain names from a description
|
|
4693
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4694
|
+
* @param {*} [options] Override http request option.
|
|
4695
|
+
* @throws {RequiredError}
|
|
4696
|
+
*/
|
|
4697
|
+
suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options) {
|
|
4698
|
+
return localVarFp.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(axios, basePath));
|
|
4699
|
+
},
|
|
4700
|
+
/**
|
|
4701
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4702
|
+
* @summary Suggest domain names from a domain
|
|
4703
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4704
|
+
* @param {*} [options] Override http request option.
|
|
4705
|
+
* @throws {RequiredError}
|
|
4706
|
+
*/
|
|
4707
|
+
suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options) {
|
|
4708
|
+
return localVarFp.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(axios, basePath));
|
|
4709
|
+
},
|
|
4588
4710
|
};
|
|
4589
4711
|
};
|
|
4590
4712
|
exports.DomainsAvailabilityApiFactory = DomainsAvailabilityApiFactory;
|
|
@@ -4596,7 +4718,7 @@ exports.DomainsAvailabilityApiFactory = DomainsAvailabilityApiFactory;
|
|
|
4596
4718
|
*/
|
|
4597
4719
|
class DomainsAvailabilityApi extends base_1.BaseAPI {
|
|
4598
4720
|
/**
|
|
4599
|
-
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of
|
|
4721
|
+
* Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
4600
4722
|
* @summary Check domain availability
|
|
4601
4723
|
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4602
4724
|
* @param {*} [options] Override http request option.
|
|
@@ -4606,6 +4728,28 @@ class DomainsAvailabilityApi extends base_1.BaseAPI {
|
|
|
4606
4728
|
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options) {
|
|
4607
4729
|
return (0, exports.DomainsAvailabilityApiFp)(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4608
4730
|
}
|
|
4731
|
+
/**
|
|
4732
|
+
* Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
|
|
4733
|
+
* @summary Suggest domain names from a description
|
|
4734
|
+
* @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
|
|
4735
|
+
* @param {*} [options] Override http request option.
|
|
4736
|
+
* @throws {RequiredError}
|
|
4737
|
+
* @memberof DomainsAvailabilityApi
|
|
4738
|
+
*/
|
|
4739
|
+
suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options) {
|
|
4740
|
+
return (0, exports.DomainsAvailabilityApiFp)(this.configuration).suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4741
|
+
}
|
|
4742
|
+
/**
|
|
4743
|
+
* Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
|
|
4744
|
+
* @summary Suggest domain names from a domain
|
|
4745
|
+
* @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
|
|
4746
|
+
* @param {*} [options] Override http request option.
|
|
4747
|
+
* @throws {RequiredError}
|
|
4748
|
+
* @memberof DomainsAvailabilityApi
|
|
4749
|
+
*/
|
|
4750
|
+
suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options) {
|
|
4751
|
+
return (0, exports.DomainsAvailabilityApiFp)(this.configuration).suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4752
|
+
}
|
|
4609
4753
|
}
|
|
4610
4754
|
exports.DomainsAvailabilityApi = DomainsAvailabilityApi;
|
|
4611
4755
|
/**
|
|
@@ -7556,6 +7700,47 @@ const EcommerceProductsApiAxiosParamCreator = function (configuration) {
|
|
|
7556
7700
|
options: localVarRequestOptions,
|
|
7557
7701
|
};
|
|
7558
7702
|
}),
|
|
7703
|
+
/**
|
|
7704
|
+
* Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7705
|
+
* @summary Upload and attach a product image
|
|
7706
|
+
* @param {string} storeId The ID of the store the product belongs to.
|
|
7707
|
+
* @param {string} productId The ID of the product to attach the image to.
|
|
7708
|
+
* @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
|
|
7709
|
+
* @param {*} [options] Override http request option.
|
|
7710
|
+
* @throws {RequiredError}
|
|
7711
|
+
*/
|
|
7712
|
+
uploadAndAttachAProductImageV1: (storeId_1, productId_1, ecommerceV1ProductUploadProductImageRequest_1, ...args_1) => __awaiter(this, [storeId_1, productId_1, ecommerceV1ProductUploadProductImageRequest_1, ...args_1], void 0, function* (storeId, productId, ecommerceV1ProductUploadProductImageRequest, options = {}) {
|
|
7713
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
7714
|
+
(0, common_1.assertParamExists)('uploadAndAttachAProductImageV1', 'storeId', storeId);
|
|
7715
|
+
// verify required parameter 'productId' is not null or undefined
|
|
7716
|
+
(0, common_1.assertParamExists)('uploadAndAttachAProductImageV1', 'productId', productId);
|
|
7717
|
+
// verify required parameter 'ecommerceV1ProductUploadProductImageRequest' is not null or undefined
|
|
7718
|
+
(0, common_1.assertParamExists)('uploadAndAttachAProductImageV1', 'ecommerceV1ProductUploadProductImageRequest', ecommerceV1ProductUploadProductImageRequest);
|
|
7719
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/{product_id}/images`
|
|
7720
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
|
|
7721
|
+
.replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
|
|
7722
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7723
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7724
|
+
let baseOptions;
|
|
7725
|
+
if (configuration) {
|
|
7726
|
+
baseOptions = configuration.baseOptions;
|
|
7727
|
+
}
|
|
7728
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7729
|
+
const localVarHeaderParameter = {};
|
|
7730
|
+
const localVarQueryParameter = {};
|
|
7731
|
+
// authentication apiToken required
|
|
7732
|
+
// http bearer authentication required
|
|
7733
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7734
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7735
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7737
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7738
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1ProductUploadProductImageRequest, localVarRequestOptions, configuration);
|
|
7739
|
+
return {
|
|
7740
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7741
|
+
options: localVarRequestOptions,
|
|
7742
|
+
};
|
|
7743
|
+
}),
|
|
7559
7744
|
};
|
|
7560
7745
|
};
|
|
7561
7746
|
exports.EcommerceProductsApiAxiosParamCreator = EcommerceProductsApiAxiosParamCreator;
|
|
@@ -7598,6 +7783,23 @@ const EcommerceProductsApiFp = function (configuration) {
|
|
|
7598
7783
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7599
7784
|
});
|
|
7600
7785
|
},
|
|
7786
|
+
/**
|
|
7787
|
+
* Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7788
|
+
* @summary Upload and attach a product image
|
|
7789
|
+
* @param {string} storeId The ID of the store the product belongs to.
|
|
7790
|
+
* @param {string} productId The ID of the product to attach the image to.
|
|
7791
|
+
* @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
|
|
7792
|
+
* @param {*} [options] Override http request option.
|
|
7793
|
+
* @throws {RequiredError}
|
|
7794
|
+
*/
|
|
7795
|
+
uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options) {
|
|
7796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7797
|
+
var _a, _b;
|
|
7798
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options);
|
|
7799
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceProductsApi.uploadAndAttachAProductImageV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
7800
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7801
|
+
});
|
|
7802
|
+
},
|
|
7601
7803
|
};
|
|
7602
7804
|
};
|
|
7603
7805
|
exports.EcommerceProductsApiFp = EcommerceProductsApiFp;
|
|
@@ -7630,6 +7832,18 @@ const EcommerceProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
7630
7832
|
createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
|
|
7631
7833
|
return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
|
|
7632
7834
|
},
|
|
7835
|
+
/**
|
|
7836
|
+
* Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7837
|
+
* @summary Upload and attach a product image
|
|
7838
|
+
* @param {string} storeId The ID of the store the product belongs to.
|
|
7839
|
+
* @param {string} productId The ID of the product to attach the image to.
|
|
7840
|
+
* @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
|
|
7841
|
+
* @param {*} [options] Override http request option.
|
|
7842
|
+
* @throws {RequiredError}
|
|
7843
|
+
*/
|
|
7844
|
+
uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options) {
|
|
7845
|
+
return localVarFp.uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options).then((request) => request(axios, basePath));
|
|
7846
|
+
},
|
|
7633
7847
|
};
|
|
7634
7848
|
};
|
|
7635
7849
|
exports.EcommerceProductsApiFactory = EcommerceProductsApiFactory;
|
|
@@ -7664,6 +7878,19 @@ class EcommerceProductsApi extends base_1.BaseAPI {
|
|
|
7664
7878
|
createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
|
|
7665
7879
|
return (0, exports.EcommerceProductsApiFp)(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7666
7880
|
}
|
|
7881
|
+
/**
|
|
7882
|
+
* Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7883
|
+
* @summary Upload and attach a product image
|
|
7884
|
+
* @param {string} storeId The ID of the store the product belongs to.
|
|
7885
|
+
* @param {string} productId The ID of the product to attach the image to.
|
|
7886
|
+
* @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
|
|
7887
|
+
* @param {*} [options] Override http request option.
|
|
7888
|
+
* @throws {RequiredError}
|
|
7889
|
+
* @memberof EcommerceProductsApi
|
|
7890
|
+
*/
|
|
7891
|
+
uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options) {
|
|
7892
|
+
return (0, exports.EcommerceProductsApiFp)(this.configuration).uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7893
|
+
}
|
|
7667
7894
|
}
|
|
7668
7895
|
exports.EcommerceProductsApi = EcommerceProductsApi;
|
|
7669
7896
|
/**
|
|
@@ -10672,6 +10899,254 @@ class HostingDomainsApi extends base_1.BaseAPI {
|
|
|
10672
10899
|
}
|
|
10673
10900
|
}
|
|
10674
10901
|
exports.HostingDomainsApi = HostingDomainsApi;
|
|
10902
|
+
/**
|
|
10903
|
+
* HostingFilesApi - axios parameter creator
|
|
10904
|
+
* @export
|
|
10905
|
+
*/
|
|
10906
|
+
const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
10907
|
+
return {
|
|
10908
|
+
/**
|
|
10909
|
+
* 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.
|
|
10910
|
+
* @summary Get website file content
|
|
10911
|
+
* @param {string} username
|
|
10912
|
+
* @param {string} domain Domain name
|
|
10913
|
+
* @param {string} path File path, relative to the document root.
|
|
10914
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
10915
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
10916
|
+
* @param {*} [options] Override http request option.
|
|
10917
|
+
* @throws {RequiredError}
|
|
10918
|
+
*/
|
|
10919
|
+
getWebsiteFileContentV1: (username_1, domain_1, path_1, fromLine_1, maxLines_1, ...args_1) => __awaiter(this, [username_1, domain_1, path_1, fromLine_1, maxLines_1, ...args_1], void 0, function* (username, domain, path, fromLine, maxLines, options = {}) {
|
|
10920
|
+
// verify required parameter 'username' is not null or undefined
|
|
10921
|
+
(0, common_1.assertParamExists)('getWebsiteFileContentV1', 'username', username);
|
|
10922
|
+
// verify required parameter 'domain' is not null or undefined
|
|
10923
|
+
(0, common_1.assertParamExists)('getWebsiteFileContentV1', 'domain', domain);
|
|
10924
|
+
// verify required parameter 'path' is not null or undefined
|
|
10925
|
+
(0, common_1.assertParamExists)('getWebsiteFileContentV1', 'path', path);
|
|
10926
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files/content`
|
|
10927
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
10928
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
10929
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10930
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10931
|
+
let baseOptions;
|
|
10932
|
+
if (configuration) {
|
|
10933
|
+
baseOptions = configuration.baseOptions;
|
|
10934
|
+
}
|
|
10935
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10936
|
+
const localVarHeaderParameter = {};
|
|
10937
|
+
const localVarQueryParameter = {};
|
|
10938
|
+
// authentication apiToken required
|
|
10939
|
+
// http bearer authentication required
|
|
10940
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10941
|
+
if (path !== undefined) {
|
|
10942
|
+
localVarQueryParameter['path'] = path;
|
|
10943
|
+
}
|
|
10944
|
+
if (fromLine !== undefined) {
|
|
10945
|
+
localVarQueryParameter['from_line'] = fromLine;
|
|
10946
|
+
}
|
|
10947
|
+
if (maxLines !== undefined) {
|
|
10948
|
+
localVarQueryParameter['max_lines'] = maxLines;
|
|
10949
|
+
}
|
|
10950
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10951
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10952
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10953
|
+
return {
|
|
10954
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10955
|
+
options: localVarRequestOptions,
|
|
10956
|
+
};
|
|
10957
|
+
}),
|
|
10958
|
+
/**
|
|
10959
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
10960
|
+
* @summary List website files and directories
|
|
10961
|
+
* @param {string} username
|
|
10962
|
+
* @param {string} domain Domain name
|
|
10963
|
+
* @param {string} [directory] Directory path to check
|
|
10964
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10965
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10966
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10967
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
10968
|
+
* @param {*} [options] Override http request option.
|
|
10969
|
+
* @throws {RequiredError}
|
|
10970
|
+
*/
|
|
10971
|
+
listWebsiteFilesAndDirectoriesV1: (username_1, domain_1, directory_1, maxDepth_1, maxItems_1, offset_1, fileTypes_1, ...args_1) => __awaiter(this, [username_1, domain_1, directory_1, maxDepth_1, maxItems_1, offset_1, fileTypes_1, ...args_1], void 0, function* (username, domain, directory, maxDepth, maxItems, offset, fileTypes, options = {}) {
|
|
10972
|
+
// verify required parameter 'username' is not null or undefined
|
|
10973
|
+
(0, common_1.assertParamExists)('listWebsiteFilesAndDirectoriesV1', 'username', username);
|
|
10974
|
+
// verify required parameter 'domain' is not null or undefined
|
|
10975
|
+
(0, common_1.assertParamExists)('listWebsiteFilesAndDirectoriesV1', 'domain', domain);
|
|
10976
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files`
|
|
10977
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
10978
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
10979
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10980
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10981
|
+
let baseOptions;
|
|
10982
|
+
if (configuration) {
|
|
10983
|
+
baseOptions = configuration.baseOptions;
|
|
10984
|
+
}
|
|
10985
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10986
|
+
const localVarHeaderParameter = {};
|
|
10987
|
+
const localVarQueryParameter = {};
|
|
10988
|
+
// authentication apiToken required
|
|
10989
|
+
// http bearer authentication required
|
|
10990
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10991
|
+
if (directory !== undefined) {
|
|
10992
|
+
localVarQueryParameter['directory'] = directory;
|
|
10993
|
+
}
|
|
10994
|
+
if (maxDepth !== undefined) {
|
|
10995
|
+
localVarQueryParameter['max_depth'] = maxDepth;
|
|
10996
|
+
}
|
|
10997
|
+
if (maxItems !== undefined) {
|
|
10998
|
+
localVarQueryParameter['max_items'] = maxItems;
|
|
10999
|
+
}
|
|
11000
|
+
if (offset !== undefined) {
|
|
11001
|
+
localVarQueryParameter['offset'] = offset;
|
|
11002
|
+
}
|
|
11003
|
+
if (fileTypes !== undefined) {
|
|
11004
|
+
for (const [key, value] of Object.entries(fileTypes)) {
|
|
11005
|
+
localVarQueryParameter[key] = value;
|
|
11006
|
+
}
|
|
11007
|
+
}
|
|
11008
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11009
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11010
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11011
|
+
return {
|
|
11012
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11013
|
+
options: localVarRequestOptions,
|
|
11014
|
+
};
|
|
11015
|
+
}),
|
|
11016
|
+
};
|
|
11017
|
+
};
|
|
11018
|
+
exports.HostingFilesApiAxiosParamCreator = HostingFilesApiAxiosParamCreator;
|
|
11019
|
+
/**
|
|
11020
|
+
* HostingFilesApi - functional programming interface
|
|
11021
|
+
* @export
|
|
11022
|
+
*/
|
|
11023
|
+
const HostingFilesApiFp = function (configuration) {
|
|
11024
|
+
const localVarAxiosParamCreator = (0, exports.HostingFilesApiAxiosParamCreator)(configuration);
|
|
11025
|
+
return {
|
|
11026
|
+
/**
|
|
11027
|
+
* 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.
|
|
11028
|
+
* @summary Get website file content
|
|
11029
|
+
* @param {string} username
|
|
11030
|
+
* @param {string} domain Domain name
|
|
11031
|
+
* @param {string} path File path, relative to the document root.
|
|
11032
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
11033
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
11034
|
+
* @param {*} [options] Override http request option.
|
|
11035
|
+
* @throws {RequiredError}
|
|
11036
|
+
*/
|
|
11037
|
+
getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options) {
|
|
11038
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11039
|
+
var _a, _b;
|
|
11040
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options);
|
|
11041
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingFilesApi.getWebsiteFileContentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
11042
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11043
|
+
});
|
|
11044
|
+
},
|
|
11045
|
+
/**
|
|
11046
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
11047
|
+
* @summary List website files and directories
|
|
11048
|
+
* @param {string} username
|
|
11049
|
+
* @param {string} domain Domain name
|
|
11050
|
+
* @param {string} [directory] Directory path to check
|
|
11051
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
11052
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
11053
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
11054
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
11055
|
+
* @param {*} [options] Override http request option.
|
|
11056
|
+
* @throws {RequiredError}
|
|
11057
|
+
*/
|
|
11058
|
+
listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options) {
|
|
11059
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11060
|
+
var _a, _b;
|
|
11061
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options);
|
|
11062
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingFilesApi.listWebsiteFilesAndDirectoriesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
11063
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11064
|
+
});
|
|
11065
|
+
},
|
|
11066
|
+
};
|
|
11067
|
+
};
|
|
11068
|
+
exports.HostingFilesApiFp = HostingFilesApiFp;
|
|
11069
|
+
/**
|
|
11070
|
+
* HostingFilesApi - factory interface
|
|
11071
|
+
* @export
|
|
11072
|
+
*/
|
|
11073
|
+
const HostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
11074
|
+
const localVarFp = (0, exports.HostingFilesApiFp)(configuration);
|
|
11075
|
+
return {
|
|
11076
|
+
/**
|
|
11077
|
+
* 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.
|
|
11078
|
+
* @summary Get website file content
|
|
11079
|
+
* @param {string} username
|
|
11080
|
+
* @param {string} domain Domain name
|
|
11081
|
+
* @param {string} path File path, relative to the document root.
|
|
11082
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
11083
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
11084
|
+
* @param {*} [options] Override http request option.
|
|
11085
|
+
* @throws {RequiredError}
|
|
11086
|
+
*/
|
|
11087
|
+
getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options) {
|
|
11088
|
+
return localVarFp.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(axios, basePath));
|
|
11089
|
+
},
|
|
11090
|
+
/**
|
|
11091
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
11092
|
+
* @summary List website files and directories
|
|
11093
|
+
* @param {string} username
|
|
11094
|
+
* @param {string} domain Domain name
|
|
11095
|
+
* @param {string} [directory] Directory path to check
|
|
11096
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
11097
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
11098
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
11099
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
11100
|
+
* @param {*} [options] Override http request option.
|
|
11101
|
+
* @throws {RequiredError}
|
|
11102
|
+
*/
|
|
11103
|
+
listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options) {
|
|
11104
|
+
return localVarFp.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(axios, basePath));
|
|
11105
|
+
},
|
|
11106
|
+
};
|
|
11107
|
+
};
|
|
11108
|
+
exports.HostingFilesApiFactory = HostingFilesApiFactory;
|
|
11109
|
+
/**
|
|
11110
|
+
* HostingFilesApi - object-oriented interface
|
|
11111
|
+
* @export
|
|
11112
|
+
* @class HostingFilesApi
|
|
11113
|
+
* @extends {BaseAPI}
|
|
11114
|
+
*/
|
|
11115
|
+
class HostingFilesApi extends base_1.BaseAPI {
|
|
11116
|
+
/**
|
|
11117
|
+
* 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.
|
|
11118
|
+
* @summary Get website file content
|
|
11119
|
+
* @param {string} username
|
|
11120
|
+
* @param {string} domain Domain name
|
|
11121
|
+
* @param {string} path File path, relative to the document root.
|
|
11122
|
+
* @param {number | null} [fromLine] Line offset to start reading from.
|
|
11123
|
+
* @param {number | null} [maxLines] Max number of lines to return.
|
|
11124
|
+
* @param {*} [options] Override http request option.
|
|
11125
|
+
* @throws {RequiredError}
|
|
11126
|
+
* @memberof HostingFilesApi
|
|
11127
|
+
*/
|
|
11128
|
+
getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options) {
|
|
11129
|
+
return (0, exports.HostingFilesApiFp)(this.configuration).getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(this.axios, this.basePath));
|
|
11130
|
+
}
|
|
11131
|
+
/**
|
|
11132
|
+
* List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
|
|
11133
|
+
* @summary List website files and directories
|
|
11134
|
+
* @param {string} username
|
|
11135
|
+
* @param {string} domain Domain name
|
|
11136
|
+
* @param {string} [directory] Directory path to check
|
|
11137
|
+
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
11138
|
+
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
11139
|
+
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
11140
|
+
* @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
|
|
11141
|
+
* @param {*} [options] Override http request option.
|
|
11142
|
+
* @throws {RequiredError}
|
|
11143
|
+
* @memberof HostingFilesApi
|
|
11144
|
+
*/
|
|
11145
|
+
listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options) {
|
|
11146
|
+
return (0, exports.HostingFilesApiFp)(this.configuration).listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(this.axios, this.basePath));
|
|
11147
|
+
}
|
|
11148
|
+
}
|
|
11149
|
+
exports.HostingFilesApi = HostingFilesApi;
|
|
10675
11150
|
/**
|
|
10676
11151
|
* HostingNodeJSApi - axios parameter creator
|
|
10677
11152
|
* @export
|
|
@@ -11925,18 +12400,15 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
11925
12400
|
};
|
|
11926
12401
|
}),
|
|
11927
12402
|
/**
|
|
11928
|
-
*
|
|
12403
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
11929
12404
|
* @summary Delete website
|
|
11930
12405
|
* @param {string} domain Domain name
|
|
11931
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
11932
12406
|
* @param {*} [options] Override http request option.
|
|
11933
12407
|
* @throws {RequiredError}
|
|
11934
12408
|
*/
|
|
11935
|
-
deleteWebsiteV1: (domain_1,
|
|
12409
|
+
deleteWebsiteV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
11936
12410
|
// verify required parameter 'domain' is not null or undefined
|
|
11937
12411
|
(0, common_1.assertParamExists)('deleteWebsiteV1', 'domain', domain);
|
|
11938
|
-
// verify required parameter 'hostingV1WebsitesDeleteWebsiteRequest' is not null or undefined
|
|
11939
|
-
(0, common_1.assertParamExists)('deleteWebsiteV1', 'hostingV1WebsitesDeleteWebsiteRequest', hostingV1WebsitesDeleteWebsiteRequest);
|
|
11940
12412
|
const localVarPath = `/api/hosting/v1/websites/{domain}`
|
|
11941
12413
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
11942
12414
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11951,11 +12423,9 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
11951
12423
|
// authentication apiToken required
|
|
11952
12424
|
// http bearer authentication required
|
|
11953
12425
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11954
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11955
12426
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11956
12427
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11957
12428
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11958
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1WebsitesDeleteWebsiteRequest, localVarRequestOptions, configuration);
|
|
11959
12429
|
return {
|
|
11960
12430
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11961
12431
|
options: localVarRequestOptions,
|
|
@@ -12039,17 +12509,16 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
12039
12509
|
});
|
|
12040
12510
|
},
|
|
12041
12511
|
/**
|
|
12042
|
-
*
|
|
12512
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
12043
12513
|
* @summary Delete website
|
|
12044
12514
|
* @param {string} domain Domain name
|
|
12045
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
12046
12515
|
* @param {*} [options] Override http request option.
|
|
12047
12516
|
* @throws {RequiredError}
|
|
12048
12517
|
*/
|
|
12049
|
-
deleteWebsiteV1(domain,
|
|
12518
|
+
deleteWebsiteV1(domain, options) {
|
|
12050
12519
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12051
12520
|
var _a, _b;
|
|
12052
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteV1(domain,
|
|
12521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteV1(domain, options);
|
|
12053
12522
|
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.deleteWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12054
12523
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12055
12524
|
});
|
|
@@ -12095,15 +12564,14 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
12095
12564
|
return localVarFp.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
12096
12565
|
},
|
|
12097
12566
|
/**
|
|
12098
|
-
*
|
|
12567
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
12099
12568
|
* @summary Delete website
|
|
12100
12569
|
* @param {string} domain Domain name
|
|
12101
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
12102
12570
|
* @param {*} [options] Override http request option.
|
|
12103
12571
|
* @throws {RequiredError}
|
|
12104
12572
|
*/
|
|
12105
|
-
deleteWebsiteV1(domain,
|
|
12106
|
-
return localVarFp.deleteWebsiteV1(domain,
|
|
12573
|
+
deleteWebsiteV1(domain, options) {
|
|
12574
|
+
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
|
|
12107
12575
|
},
|
|
12108
12576
|
/**
|
|
12109
12577
|
* Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
@@ -12142,16 +12610,15 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
12142
12610
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12143
12611
|
}
|
|
12144
12612
|
/**
|
|
12145
|
-
*
|
|
12613
|
+
* This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
|
|
12146
12614
|
* @summary Delete website
|
|
12147
12615
|
* @param {string} domain Domain name
|
|
12148
|
-
* @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
|
|
12149
12616
|
* @param {*} [options] Override http request option.
|
|
12150
12617
|
* @throws {RequiredError}
|
|
12151
12618
|
* @memberof HostingWebsitesApi
|
|
12152
12619
|
*/
|
|
12153
|
-
deleteWebsiteV1(domain,
|
|
12154
|
-
return (0, exports.HostingWebsitesApiFp)(this.configuration).deleteWebsiteV1(domain,
|
|
12620
|
+
deleteWebsiteV1(domain, options) {
|
|
12621
|
+
return (0, exports.HostingWebsitesApiFp)(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
12155
12622
|
}
|
|
12156
12623
|
/**
|
|
12157
12624
|
* Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|