@newfold/huapi-js 2.1247.0 → 2.1251.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.7.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "2.1247.0",
13
+ "version": "2.1251.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import axios from 'axios';
3
3
  import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
4
- import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
4
+ import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
5
5
  declare type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
@@ -2686,6 +2686,41 @@ export declare function useDomainDnsExport<TData = Awaited<ReturnType<typeof dom
2686
2686
  }): UseQueryResult<TData, TError> & {
2687
2687
  queryKey: QueryKey;
2688
2688
  };
2689
+ /**
2690
+ * Returns the content of the zone file
2691
+ * @summary Import DNS Zone file
2692
+ */
2693
+ export declare const domainDnsImport: (hostingId: string, domainDnsImportBody: DomainDnsImportBody, params: DomainDnsImportParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainDnsImport200>>;
2694
+ export declare const getDomainDnsImportMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
2695
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnsImport200, any>, TError, {
2696
+ hostingId: string;
2697
+ data: DomainDnsImportBody;
2698
+ params: DomainDnsImportParams;
2699
+ }, TContext> | undefined;
2700
+ axios?: AxiosRequestConfig<any> | undefined;
2701
+ } | undefined) => UseMutationOptions<AxiosResponse<DomainDnsImport200, any>, TError, {
2702
+ hostingId: string;
2703
+ data: DomainDnsImportBody;
2704
+ params: DomainDnsImportParams;
2705
+ }, TContext>;
2706
+ export declare type DomainDnsImportMutationResult = NonNullable<Awaited<ReturnType<typeof domainDnsImport>>>;
2707
+ export declare type DomainDnsImportMutationBody = DomainDnsImportBody;
2708
+ export declare type DomainDnsImportMutationError = AxiosError<unknown>;
2709
+ /**
2710
+ * @summary Import DNS Zone file
2711
+ */
2712
+ export declare const useDomainDnsImport: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
2713
+ mutation?: UseMutationOptions<AxiosResponse<DomainDnsImport200, any>, TError, {
2714
+ hostingId: string;
2715
+ data: DomainDnsImportBody;
2716
+ params: DomainDnsImportParams;
2717
+ }, TContext> | undefined;
2718
+ axios?: AxiosRequestConfig<any> | undefined;
2719
+ } | undefined) => UseMutationResult<AxiosResponse<DomainDnsImport200, any>, TError, {
2720
+ hostingId: string;
2721
+ data: DomainDnsImportBody;
2722
+ params: DomainDnsImportParams;
2723
+ }, TContext>;
2689
2724
  /**
2690
2725
  * Unassign the domain associated with the hosting account
2691
2726
  * @summary Unassign the domain
package/src/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * Hosting UAPI
5
5
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
6
- * OpenAPI spec version: 1.1247.0
6
+ * OpenAPI spec version: 1.1251.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -2069,6 +2069,30 @@ export function useDomainDnsExport(hostingId, params, options) {
2069
2069
  query.queryKey = queryOptions.queryKey;
2070
2070
  return query;
2071
2071
  }
2072
+ /**
2073
+ * Returns the content of the zone file
2074
+ * @summary Import DNS Zone file
2075
+ */
2076
+ export const domainDnsImport = (hostingId, domainDnsImportBody, params, options) => {
2077
+ const formData = new FormData();
2078
+ formData.append('file', domainDnsImportBody.file);
2079
+ return axios.post(`/v1/hosting/${hostingId}/domains/dns/import`, formData, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
2080
+ };
2081
+ export const getDomainDnsImportMutationOptions = (options) => {
2082
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
2083
+ const mutationFn = (props) => {
2084
+ const { hostingId, data, params } = props !== null && props !== void 0 ? props : {};
2085
+ return domainDnsImport(hostingId, data, params, axiosOptions);
2086
+ };
2087
+ return Object.assign({ mutationFn }, mutationOptions);
2088
+ };
2089
+ /**
2090
+ * @summary Import DNS Zone file
2091
+ */
2092
+ export const useDomainDnsImport = (options) => {
2093
+ const mutationOptions = getDomainDnsImportMutationOptions(options);
2094
+ return useMutation(mutationOptions);
2095
+ };
2072
2096
  /**
2073
2097
  * Unassign the domain associated with the hosting account
2074
2098
  * @summary Unassign the domain
@@ -1,5 +1,5 @@
1
1
  import { http } from 'msw';
2
- import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, Privacy200, PrivacyUser200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
2
+ import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200Item, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesV2200, ListIndex200, Privacy200, PrivacyUser200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
3
3
  export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
4
4
  export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
5
5
  export declare const getAccountPublicKeysResponseMock: (overrideResponse?: Partial<AccountPublicKeys200>) => AccountPublicKeys200;
@@ -86,6 +86,7 @@ export declare const getHostingDomainAssignResponseMock: (overrideResponse?: Par
86
86
  export declare const getHostingDomainAvailabilityResponseMock: (overrideResponse?: Partial<HostingDomainAvailability200>) => HostingDomainAvailability200;
87
87
  export declare const getDomainsResponseMock: (overrideResponse?: Partial<Domains200>) => Domains200;
88
88
  export declare const getDomainDnsExportResponseMock: (overrideResponse?: Partial<DomainDnsExport200>) => DomainDnsExport200;
89
+ export declare const getDomainDnsImportResponseMock: (overrideResponse?: Partial<DomainDnsImport200>) => DomainDnsImport200;
89
90
  export declare const getHostingDomainsUnassignResponseMock: (overrideResponse?: Partial<HostingDomainsUnassign200>) => HostingDomainsUnassign200;
90
91
  export declare const getHostingEcommerceInfoResponseMock: (overrideResponse?: Partial<HostingEcommerceInfo200>) => HostingEcommerceInfo200;
91
92
  export declare const getListFilesResponseMock: (overrideResponse?: Partial<ListFiles200>) => ListFiles200;
@@ -300,6 +301,7 @@ export declare const getHostingDomainAssignMockHandler: (overrideResponse?: Host
300
301
  export declare const getHostingDomainAvailabilityMockHandler: (overrideResponse?: HostingDomainAvailability200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingDomainAvailability200> | HostingDomainAvailability200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
301
302
  export declare const getDomainsMockHandler: (overrideResponse?: Domains200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Domains200> | Domains200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
302
303
  export declare const getDomainDnsExportMockHandler: (overrideResponse?: DomainDnsExport200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainDnsExport200> | DomainDnsExport200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
304
+ export declare const getDomainDnsImportMockHandler: (overrideResponse?: DomainDnsImport200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainDnsImport200> | DomainDnsImport200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
303
305
  export declare const getHostingDomainsUnassignMockHandler: (overrideResponse?: HostingDomainsUnassign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingDomainsUnassign200> | HostingDomainsUnassign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
304
306
  export declare const getHostingEcommerceInfoMockHandler: (overrideResponse?: HostingEcommerceInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEcommerceInfo200> | HostingEcommerceInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
305
307
  export declare const getListFilesMockHandler: (overrideResponse?: ListFiles200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListFiles200> | ListFiles200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
package/src/index.msw.js CHANGED
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
4
4
  * Do not edit manually.
5
5
  * Hosting UAPI
6
6
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
7
- * OpenAPI spec version: 1.1247.0
7
+ * OpenAPI spec version: 1.1251.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -76,8 +76,8 @@ export const getHostingDbAuthorizedHostsResponseMock = (overrideResponse = {}) =
76
76
  export const getHostingDbAuthorizedHostsAddResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
77
77
  export const getHostingDbAuthorizedHostsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
78
78
  export const getHostingDbAuthorizedHostsDeleteResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
79
- export const getDbCheckDatabaseResponseMock = (overrideResponse = {}) => (Object.assign({ database: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
80
- export const getRepairDatabaseResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
79
+ export const getDbCheckDatabaseResponseMock = (overrideResponse = {}) => (Object.assign({ tables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]), table: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
80
+ export const getRepairDatabaseResponseMock = (overrideResponse = {}) => (Object.assign({ tables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]), table: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
81
81
  export const getDbUsageResponseMock = (overrideResponse = {}) => (Object.assign({ db_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), db_limit: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, overrideResponse));
82
82
  export const getDbUserPasswordSetResponseMock = (overrideResponse = {}) => (Object.assign({ dbuser: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
83
83
  export const getDbUserPrivsGetResponseMock = (overrideResponse = {}) => (Object.assign({ privileges: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, overrideResponse));
@@ -96,6 +96,7 @@ export const getHostingDomainAssignResponseMock = (overrideResponse = {}) => (Ob
96
96
  export const getHostingDomainAvailabilityResponseMock = (overrideResponse = {}) => (Object.assign({ assignable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), assigned: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), assigned_to_this_product: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), can_assign: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), registered: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
97
97
  export const getDomainsResponseMock = (overrideResponse = {}) => (Object.assign({ domains: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.word.sample(), domain: faker.word.sample(), id: faker.number.int({ min: undefined, max: undefined }), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.word.sample() })) }, overrideResponse));
98
98
  export const getDomainDnsExportResponseMock = (overrideResponse = {}) => (Object.assign({ content: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
99
+ export const getDomainDnsImportResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
99
100
  export const getHostingDomainsUnassignResponseMock = (overrideResponse = {}) => (Object.assign({ queued: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
100
101
  export const getHostingEcommerceInfoResponseMock = (overrideResponse = {}) => (Object.assign({ addon_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), back_ref: faker.helpers.arrayElement([faker.word.sample(), undefined]), level: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
101
102
  export const getListFilesResponseMock = (overrideResponse = {}) => (Object.assign({ files: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), size: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
@@ -1104,6 +1105,16 @@ export const getDomainDnsExportMockHandler = (overrideResponse) => {
1104
1105
  });
1105
1106
  }));
1106
1107
  };
1108
+ export const getDomainDnsImportMockHandler = (overrideResponse) => {
1109
+ return http.post('*/v1/hosting/:hostingId/domains/dns/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
1110
+ yield delay(1000);
1111
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1112
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1113
+ : getDomainDnsImportResponseMock()), { status: 200,
1114
+ headers: { 'Content-Type': 'application/json' }
1115
+ });
1116
+ }));
1117
+ };
1107
1118
  export const getHostingDomainsUnassignMockHandler = (overrideResponse) => {
1108
1119
  return http.post('*/v1/hosting/:hostingId/domains/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
1109
1120
  yield delay(1000);
@@ -2491,6 +2502,7 @@ export const getHostingUAPIMock = () => [
2491
2502
  getHostingDomainAvailabilityMockHandler(),
2492
2503
  getDomainsMockHandler(),
2493
2504
  getDomainDnsExportMockHandler(),
2505
+ getDomainDnsImportMockHandler(),
2494
2506
  getHostingDomainsUnassignMockHandler(),
2495
2507
  getHostingEcommerceInfoMockHandler(),
2496
2508
  getListFilesMockHandler(),
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * Hosting UAPI
5
5
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
6
- * OpenAPI spec version: 1.1247.0
6
+ * OpenAPI spec version: 1.1251.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -203,17 +203,6 @@ export declare type SitesDomainsV2200 = {
203
203
  export declare type SitesDomainsV2Params = {
204
204
  scan?: boolean;
205
205
  };
206
- export declare type SitesListV2200 = {
207
- items?: SitesListV2200ItemsItem[];
208
- /** page size */
209
- limit?: number;
210
- /** current page number */
211
- page?: number;
212
- /** total number of pages */
213
- pages?: number;
214
- /** total number of sites returned */
215
- total?: number;
216
- };
217
206
  /**
218
207
  * @nullable
219
208
  */
@@ -369,6 +358,17 @@ export declare type SitesListV2200ItemsItem = {
369
358
  */
370
359
  version_ptr?: string | null;
371
360
  };
361
+ export declare type SitesListV2200 = {
362
+ items?: SitesListV2200ItemsItem[];
363
+ /** page size */
364
+ limit?: number;
365
+ /** current page number */
366
+ page?: number;
367
+ /** total number of pages */
368
+ pages?: number;
369
+ /** total number of sites returned */
370
+ total?: number;
371
+ };
372
372
  export declare type SshKeyV2200 = {
373
373
  deleted?: number;
374
374
  key_name?: string;
@@ -459,6 +459,29 @@ export declare type HostingSiteAddV2Body = {
459
459
  /** Number of PHP workers */
460
460
  workers?: number;
461
461
  };
462
+ export declare type HostingSitesV2200 = {
463
+ /**
464
+ * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
465
+ * @nullable
466
+ */
467
+ available_sites?: number | null;
468
+ items?: HostingSitesV2200ItemsItem[];
469
+ /** page size */
470
+ limit?: number;
471
+ /**
472
+ * Maximum number of sites the customer can have. Null means 'unlimited'.
473
+ * @nullable
474
+ */
475
+ max_sites?: number | null;
476
+ /** current page number */
477
+ page?: number;
478
+ /** total number of pages */
479
+ pages?: number;
480
+ /** total number of sites returned */
481
+ total?: number;
482
+ /** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
483
+ used_sites?: number;
484
+ };
462
485
  /**
463
486
  * @nullable
464
487
  */
@@ -614,29 +637,6 @@ export declare type HostingSitesV2200ItemsItem = {
614
637
  */
615
638
  version_ptr?: string | null;
616
639
  };
617
- export declare type HostingSitesV2200 = {
618
- /**
619
- * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
620
- * @nullable
621
- */
622
- available_sites?: number | null;
623
- items?: HostingSitesV2200ItemsItem[];
624
- /** page size */
625
- limit?: number;
626
- /**
627
- * Maximum number of sites the customer can have. Null means 'unlimited'.
628
- * @nullable
629
- */
630
- max_sites?: number | null;
631
- /** current page number */
632
- page?: number;
633
- /** total number of pages */
634
- pages?: number;
635
- /** total number of sites returned */
636
- total?: number;
637
- /** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
638
- used_sites?: number;
639
- };
640
640
  export declare type HostingSitesV2Params = {
641
641
  limit?: number;
642
642
  page?: number;
@@ -1050,6 +1050,9 @@ export declare type SiteQualityMetrics200AspectScores = {
1050
1050
  performance?: number;
1051
1051
  seo?: number;
1052
1052
  };
1053
+ export declare type SiteQualityMetrics200AspectDetails = {
1054
+ performance?: SiteQualityMetrics200AspectDetailsPerformance;
1055
+ };
1053
1056
  export declare type SiteQualityMetrics200 = {
1054
1057
  aspect_details: SiteQualityMetrics200AspectDetails;
1055
1058
  aspect_scores: SiteQualityMetrics200AspectScores;
@@ -1080,9 +1083,6 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
1080
1083
  'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
1081
1084
  'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
1082
1085
  };
1083
- export declare type SiteQualityMetrics200AspectDetails = {
1084
- performance?: SiteQualityMetrics200AspectDetailsPerformance;
1085
- };
1086
1086
  export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
1087
1087
  export declare const SiteQualityMetricsStrategy: {
1088
1088
  readonly MOBILE: "MOBILE";
@@ -1183,13 +1183,6 @@ export declare type SitesPerformanceCachepurgeBody = {
1183
1183
  export declare type SitePendingDomainDelete200 = {
1184
1184
  [key: string]: unknown;
1185
1185
  };
1186
- export declare type SitesMetricDimensions200 = {
1187
- date_end?: string;
1188
- date_start?: string;
1189
- dimensions?: SitesMetricDimensions200Dimensions;
1190
- elapsed?: number;
1191
- metric?: string;
1192
- };
1193
1186
  export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
1194
1187
  [key: string]: number;
1195
1188
  };
@@ -1197,6 +1190,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
1197
1190
  dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
1198
1191
  timestamp?: number;
1199
1192
  };
1193
+ export declare type SitesMetricDimensions200Dimensions = {
1194
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1195
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
1196
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
1197
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
1198
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
1199
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
1200
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
1201
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
1202
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1203
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1204
+ };
1205
+ export declare type SitesMetricDimensions200 = {
1206
+ date_end?: string;
1207
+ date_start?: string;
1208
+ dimensions?: SitesMetricDimensions200Dimensions;
1209
+ elapsed?: number;
1210
+ metric?: string;
1211
+ };
1200
1212
  export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
1201
1213
  [key: string]: number;
1202
1214
  };
@@ -1218,18 +1230,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
1218
1230
  dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
1219
1231
  timestamp?: number;
1220
1232
  };
1221
- export declare type SitesMetricDimensions200Dimensions = {
1222
- http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1223
- http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
1224
- http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
1225
- http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
1226
- page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
1227
- page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
1228
- visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
1229
- visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
1230
- visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1231
- wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1232
- };
1233
1233
  export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
1234
1234
  [key: string]: number;
1235
1235
  };
@@ -1709,6 +1709,71 @@ export declare type SitesInfo200Staging = {
1709
1709
  /** A list of staging sites of the current site */
1710
1710
  sites?: number[];
1711
1711
  } | null;
1712
+ export declare type SitesInfo200ResourcesStorage = {
1713
+ /** @nullable */
1714
+ available?: number | null;
1715
+ /** @nullable */
1716
+ total?: number | null;
1717
+ unit?: string;
1718
+ /** @nullable */
1719
+ used?: number | null;
1720
+ };
1721
+ export declare type SitesInfo200Resources = {
1722
+ storage?: SitesInfo200ResourcesStorage;
1723
+ /** @nullable */
1724
+ workers?: number | null;
1725
+ };
1726
+ /**
1727
+ * @nullable
1728
+ */
1729
+ export declare type SitesInfo200PendingUrlData = {
1730
+ /**
1731
+ * The root domain name
1732
+ * @nullable
1733
+ */
1734
+ base_domain?: string | null;
1735
+ /**
1736
+ * The Fully Qualified Domain Name (FQDN)
1737
+ * @nullable
1738
+ */
1739
+ domain?: string | null;
1740
+ /**
1741
+ * The current pending_url's HAL Domain ID
1742
+ * @nullable
1743
+ */
1744
+ domain_id?: number | null;
1745
+ /** @nullable */
1746
+ error?: string | null;
1747
+ /** Flag indicating whether the pending_url is temporary or not */
1748
+ is_temp?: boolean;
1749
+ /**
1750
+ * Flag indicating whether the url_sync job has run out of attempts
1751
+ * @nullable
1752
+ */
1753
+ job_failed?: boolean | null;
1754
+ /** @nullable */
1755
+ stage?: string | null;
1756
+ /**
1757
+ * Timestamp for when we will update the WP url, regardless of active sessions
1758
+ * @nullable
1759
+ */
1760
+ wp_session?: string | null;
1761
+ } | null;
1762
+ /**
1763
+ * @nullable
1764
+ */
1765
+ export declare type SitesInfo200Pagespeed = {
1766
+ lastrun?: string;
1767
+ performance?: string;
1768
+ strategy?: string;
1769
+ } | null;
1770
+ /**
1771
+ * Job ids for the site
1772
+ * @nullable
1773
+ */
1774
+ export declare type SitesInfo200Jobs = {
1775
+ [key: string]: unknown;
1776
+ } | null;
1712
1777
  export declare type SitesInfo200 = {
1713
1778
  /** @nullable */
1714
1779
  account_back_ref?: string | null;
@@ -1783,71 +1848,6 @@ export declare type SitesInfo200 = {
1783
1848
  */
1784
1849
  version_ptr?: string | null;
1785
1850
  };
1786
- export declare type SitesInfo200ResourcesStorage = {
1787
- /** @nullable */
1788
- available?: number | null;
1789
- /** @nullable */
1790
- total?: number | null;
1791
- unit?: string;
1792
- /** @nullable */
1793
- used?: number | null;
1794
- };
1795
- export declare type SitesInfo200Resources = {
1796
- storage?: SitesInfo200ResourcesStorage;
1797
- /** @nullable */
1798
- workers?: number | null;
1799
- };
1800
- /**
1801
- * @nullable
1802
- */
1803
- export declare type SitesInfo200PendingUrlData = {
1804
- /**
1805
- * The root domain name
1806
- * @nullable
1807
- */
1808
- base_domain?: string | null;
1809
- /**
1810
- * The Fully Qualified Domain Name (FQDN)
1811
- * @nullable
1812
- */
1813
- domain?: string | null;
1814
- /**
1815
- * The current pending_url's HAL Domain ID
1816
- * @nullable
1817
- */
1818
- domain_id?: number | null;
1819
- /** @nullable */
1820
- error?: string | null;
1821
- /** Flag indicating whether the pending_url is temporary or not */
1822
- is_temp?: boolean;
1823
- /**
1824
- * Flag indicating whether the url_sync job has run out of attempts
1825
- * @nullable
1826
- */
1827
- job_failed?: boolean | null;
1828
- /** @nullable */
1829
- stage?: string | null;
1830
- /**
1831
- * Timestamp for when we will update the WP url, regardless of active sessions
1832
- * @nullable
1833
- */
1834
- wp_session?: string | null;
1835
- } | null;
1836
- /**
1837
- * @nullable
1838
- */
1839
- export declare type SitesInfo200Pagespeed = {
1840
- lastrun?: string;
1841
- performance?: string;
1842
- strategy?: string;
1843
- } | null;
1844
- /**
1845
- * Job ids for the site
1846
- * @nullable
1847
- */
1848
- export declare type SitesInfo200Jobs = {
1849
- [key: string]: unknown;
1850
- } | null;
1851
1851
  export declare type HostingVisitors200VisitorsItem = {
1852
1852
  bandwidth?: number;
1853
1853
  hits?: number;
@@ -1858,6 +1858,15 @@ export declare type HostingVisitors200VisitorsItem = {
1858
1858
  unique_visitors?: number;
1859
1859
  visitors?: number;
1860
1860
  };
1861
+ export declare type HostingVisitors200 = {
1862
+ daily?: HostingVisitors200Daily;
1863
+ total_bandwidth?: number;
1864
+ total_hits?: number;
1865
+ total_pages?: number;
1866
+ total_unique_visitors?: number;
1867
+ total_visitors?: number;
1868
+ visitors?: HostingVisitors200VisitorsItem[];
1869
+ };
1861
1870
  export declare type HostingVisitors200DailyTotal = {
1862
1871
  total_bandwidth?: number;
1863
1872
  total_hits?: number;
@@ -1877,15 +1886,6 @@ export declare type HostingVisitors200Daily = {
1877
1886
  data?: HostingVisitors200DailyDataItem[];
1878
1887
  total?: HostingVisitors200DailyTotal;
1879
1888
  };
1880
- export declare type HostingVisitors200 = {
1881
- daily?: HostingVisitors200Daily;
1882
- total_bandwidth?: number;
1883
- total_hits?: number;
1884
- total_pages?: number;
1885
- total_unique_visitors?: number;
1886
- total_visitors?: number;
1887
- visitors?: HostingVisitors200VisitorsItem[];
1888
- };
1889
1889
  export declare type HostingVisitorsSource = typeof HostingVisitorsSource[keyof typeof HostingVisitorsSource];
1890
1890
  export declare const HostingVisitorsSource: {
1891
1891
  readonly http: "http";
@@ -2441,6 +2441,16 @@ export declare type HostingDomainsUnassignBody = {
2441
2441
  /** The domain id to be unassigned */
2442
2442
  domain_id: number;
2443
2443
  };
2444
+ export declare type DomainDnsImport200 = {
2445
+ success?: boolean;
2446
+ };
2447
+ export declare type DomainDnsImportBody = {
2448
+ /** The file to upload */
2449
+ file: Blob;
2450
+ };
2451
+ export declare type DomainDnsImportParams = {
2452
+ domain: string;
2453
+ };
2444
2454
  export declare type DomainDnsExport200 = {
2445
2455
  content?: string;
2446
2456
  };
@@ -2714,15 +2724,23 @@ export declare type DbUsage200 = {
2714
2724
  /** @nullable */
2715
2725
  db_limit?: number | null;
2716
2726
  };
2727
+ export declare type RepairDatabase200TablesItem = {
2728
+ status?: string;
2729
+ table?: string;
2730
+ };
2717
2731
  export declare type RepairDatabase200 = {
2718
- [key: string]: unknown;
2732
+ tables?: RepairDatabase200TablesItem[];
2719
2733
  };
2720
2734
  export declare type RepairDatabaseBody = {
2721
2735
  /** A valid database name. */
2722
2736
  database: string;
2723
2737
  };
2738
+ export declare type DbCheckDatabase200TablesItem = {
2739
+ status?: string;
2740
+ table?: string;
2741
+ };
2724
2742
  export declare type DbCheckDatabase200 = {
2725
- database?: string;
2743
+ tables?: DbCheckDatabase200TablesItem[];
2726
2744
  };
2727
2745
  /**
2728
2746
  * Type of database