@newfold/huapi-js 2.1466.0 → 2.1470.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.1466.0",
13
+ "version": "2.1470.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 { AccessLogs200, AccessLogsParams, 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, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, 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, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, 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, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, 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, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, 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, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
4
+ import type { AccessLogs200, AccessLogsParams, 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, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, 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, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, 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, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, 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, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponder200, HostingEmailAutoresponderBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, 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, StagingSitePromote409, 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
  /**
@@ -3001,6 +3001,131 @@ export declare const useHostingEmailUpdate: <TError = AxiosError<HostingEmailUpd
3001
3001
  hostingId: string;
3002
3002
  data: HostingEmailUpdateBody;
3003
3003
  }, TContext>;
3004
+ /**
3005
+ * Get info of email autoresponder based on the address associated
3006
+ * @summary email autoresponder get
3007
+ */
3008
+ export declare const hostingEmailAutoresponderInfo: (hostingId: string, params?: HostingEmailAutoresponderInfoParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailAutoresponderInfo200>>;
3009
+ export declare const getHostingEmailAutoresponderInfoQueryKey: (hostingId: string, params?: HostingEmailAutoresponderInfoParams) => readonly [`/v1/hosting/${string}/emails/autoresponder`, ...HostingEmailAutoresponderInfoParams[]];
3010
+ export declare const getHostingEmailAutoresponderInfoQueryOptions: <TData = AxiosResponse<HostingEmailAutoresponderInfo200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: HostingEmailAutoresponderInfoParams, options?: {
3011
+ query?: Partial<UseQueryOptions<AxiosResponse<HostingEmailAutoresponderInfo200, any>, TError, TData, QueryKey>> | undefined;
3012
+ axios?: AxiosRequestConfig<any> | undefined;
3013
+ } | undefined) => UseQueryOptions<AxiosResponse<HostingEmailAutoresponderInfo200, any>, TError, TData, QueryKey> & {
3014
+ queryKey: QueryKey;
3015
+ };
3016
+ export declare type HostingEmailAutoresponderInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>>;
3017
+ export declare type HostingEmailAutoresponderInfoQueryError = AxiosError<unknown>;
3018
+ export declare function useHostingEmailAutoresponderInfo<TData = Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | HostingEmailAutoresponderInfoParams, options: {
3019
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError, TData>, 'initialData'>;
3020
+ axios?: AxiosRequestConfig;
3021
+ }): DefinedUseQueryResult<TData, TError> & {
3022
+ queryKey: QueryKey;
3023
+ };
3024
+ export declare function useHostingEmailAutoresponderInfo<TData = Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingEmailAutoresponderInfoParams, options?: {
3025
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError, TData>, 'initialData'>;
3026
+ axios?: AxiosRequestConfig;
3027
+ }): UseQueryResult<TData, TError> & {
3028
+ queryKey: QueryKey;
3029
+ };
3030
+ export declare function useHostingEmailAutoresponderInfo<TData = Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingEmailAutoresponderInfoParams, options?: {
3031
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderInfo>>, TError, TData>>;
3032
+ axios?: AxiosRequestConfig;
3033
+ }): UseQueryResult<TData, TError> & {
3034
+ queryKey: QueryKey;
3035
+ };
3036
+ /**
3037
+ * Creates/Updates existing email autoresponder
3038
+ * @summary email autoresponder create or update
3039
+ */
3040
+ export declare const hostingEmailAutoresponder: (hostingId: string, hostingEmailAutoresponderBody: HostingEmailAutoresponderBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailAutoresponder200>>;
3041
+ export declare const getHostingEmailAutoresponderMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
3042
+ mutation?: UseMutationOptions<AxiosResponse<HostingEmailAutoresponder200, any>, TError, {
3043
+ hostingId: string;
3044
+ data: HostingEmailAutoresponderBody;
3045
+ }, TContext> | undefined;
3046
+ axios?: AxiosRequestConfig<any> | undefined;
3047
+ } | undefined) => UseMutationOptions<AxiosResponse<HostingEmailAutoresponder200, any>, TError, {
3048
+ hostingId: string;
3049
+ data: HostingEmailAutoresponderBody;
3050
+ }, TContext>;
3051
+ export declare type HostingEmailAutoresponderMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailAutoresponder>>>;
3052
+ export declare type HostingEmailAutoresponderMutationBody = HostingEmailAutoresponderBody;
3053
+ export declare type HostingEmailAutoresponderMutationError = AxiosError<unknown>;
3054
+ /**
3055
+ * @summary email autoresponder create or update
3056
+ */
3057
+ export declare const useHostingEmailAutoresponder: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
3058
+ mutation?: UseMutationOptions<AxiosResponse<HostingEmailAutoresponder200, any>, TError, {
3059
+ hostingId: string;
3060
+ data: HostingEmailAutoresponderBody;
3061
+ }, TContext> | undefined;
3062
+ axios?: AxiosRequestConfig<any> | undefined;
3063
+ } | undefined) => UseMutationResult<AxiosResponse<HostingEmailAutoresponder200, any>, TError, {
3064
+ hostingId: string;
3065
+ data: HostingEmailAutoresponderBody;
3066
+ }, TContext>;
3067
+ /**
3068
+ * Deletes autorespond emails
3069
+ * @summary delete email autoresponder
3070
+ */
3071
+ export declare const hostingEmailAutoresponderDelete: (hostingId: string, params?: HostingEmailAutoresponderDeleteParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailAutoresponderDelete200>>;
3072
+ export declare const getHostingEmailAutoresponderDeleteMutationOptions: <TError = AxiosError<HostingEmailAutoresponderDelete404 | HostingEmailAutoresponderDelete400, any>, TContext = unknown>(options?: {
3073
+ mutation?: UseMutationOptions<AxiosResponse<HostingEmailAutoresponderDelete200, any>, TError, {
3074
+ hostingId: string;
3075
+ params?: HostingEmailAutoresponderDeleteParams | undefined;
3076
+ }, TContext> | undefined;
3077
+ axios?: AxiosRequestConfig<any> | undefined;
3078
+ } | undefined) => UseMutationOptions<AxiosResponse<HostingEmailAutoresponderDelete200, any>, TError, {
3079
+ hostingId: string;
3080
+ params?: HostingEmailAutoresponderDeleteParams | undefined;
3081
+ }, TContext>;
3082
+ export declare type HostingEmailAutoresponderDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailAutoresponderDelete>>>;
3083
+ export declare type HostingEmailAutoresponderDeleteMutationError = AxiosError<HostingEmailAutoresponderDelete400 | HostingEmailAutoresponderDelete404>;
3084
+ /**
3085
+ * @summary delete email autoresponder
3086
+ */
3087
+ export declare const useHostingEmailAutoresponderDelete: <TError = AxiosError<HostingEmailAutoresponderDelete404 | HostingEmailAutoresponderDelete400, any>, TContext = unknown>(options?: {
3088
+ mutation?: UseMutationOptions<AxiosResponse<HostingEmailAutoresponderDelete200, any>, TError, {
3089
+ hostingId: string;
3090
+ params?: HostingEmailAutoresponderDeleteParams | undefined;
3091
+ }, TContext> | undefined;
3092
+ axios?: AxiosRequestConfig<any> | undefined;
3093
+ } | undefined) => UseMutationResult<AxiosResponse<HostingEmailAutoresponderDelete200, any>, TError, {
3094
+ hostingId: string;
3095
+ params?: HostingEmailAutoresponderDeleteParams | undefined;
3096
+ }, TContext>;
3097
+ /**
3098
+ * Lists existing email autoresponders
3099
+ * @summary email autoresponder list
3100
+ */
3101
+ export declare const hostingEmailAutoresponderList: (hostingId: string, params?: HostingEmailAutoresponderListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailAutoresponderList200>>;
3102
+ export declare const getHostingEmailAutoresponderListQueryKey: (hostingId: string, params?: HostingEmailAutoresponderListParams) => readonly [`/v1/hosting/${string}/emails/autoresponders`, ...HostingEmailAutoresponderListParams[]];
3103
+ export declare const getHostingEmailAutoresponderListQueryOptions: <TData = AxiosResponse<HostingEmailAutoresponderList200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: HostingEmailAutoresponderListParams, options?: {
3104
+ query?: Partial<UseQueryOptions<AxiosResponse<HostingEmailAutoresponderList200, any>, TError, TData, QueryKey>> | undefined;
3105
+ axios?: AxiosRequestConfig<any> | undefined;
3106
+ } | undefined) => UseQueryOptions<AxiosResponse<HostingEmailAutoresponderList200, any>, TError, TData, QueryKey> & {
3107
+ queryKey: QueryKey;
3108
+ };
3109
+ export declare type HostingEmailAutoresponderListQueryResult = NonNullable<Awaited<ReturnType<typeof hostingEmailAutoresponderList>>>;
3110
+ export declare type HostingEmailAutoresponderListQueryError = AxiosError<unknown>;
3111
+ export declare function useHostingEmailAutoresponderList<TData = Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | HostingEmailAutoresponderListParams, options: {
3112
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError, TData>, 'initialData'>;
3113
+ axios?: AxiosRequestConfig;
3114
+ }): DefinedUseQueryResult<TData, TError> & {
3115
+ queryKey: QueryKey;
3116
+ };
3117
+ export declare function useHostingEmailAutoresponderList<TData = Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingEmailAutoresponderListParams, options?: {
3118
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError, TData>, 'initialData'>;
3119
+ axios?: AxiosRequestConfig;
3120
+ }): UseQueryResult<TData, TError> & {
3121
+ queryKey: QueryKey;
3122
+ };
3123
+ export declare function useHostingEmailAutoresponderList<TData = Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingEmailAutoresponderListParams, options?: {
3124
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailAutoresponderList>>, TError, TData>>;
3125
+ axios?: AxiosRequestConfig;
3126
+ }): UseQueryResult<TData, TError> & {
3127
+ queryKey: QueryKey;
3128
+ };
3004
3129
  /**
3005
3130
  * Lists existing email account and domain filters
3006
3131
  * @summary email filters list
@@ -7270,6 +7395,38 @@ export declare function useDbListV2<TData = Awaited<ReturnType<typeof dbListV2>>
7270
7395
  }): UseQueryResult<TData, TError> & {
7271
7396
  queryKey: QueryKey;
7272
7397
  };
7398
+ /**
7399
+ * Returns a list of domains
7400
+ * @summary domain list v2
7401
+ */
7402
+ export declare const hostingDomainsV2: (hostingId: string, params?: HostingDomainsV2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingDomainsV2200>>;
7403
+ export declare const getHostingDomainsV2QueryKey: (hostingId: string, params?: HostingDomainsV2Params) => readonly [`/v2/hosting/${string}/domains`, ...HostingDomainsV2Params[]];
7404
+ export declare const getHostingDomainsV2QueryOptions: <TData = AxiosResponse<HostingDomainsV2200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: HostingDomainsV2Params, options?: {
7405
+ query?: Partial<UseQueryOptions<AxiosResponse<HostingDomainsV2200, any>, TError, TData, QueryKey>> | undefined;
7406
+ axios?: AxiosRequestConfig<any> | undefined;
7407
+ } | undefined) => UseQueryOptions<AxiosResponse<HostingDomainsV2200, any>, TError, TData, QueryKey> & {
7408
+ queryKey: QueryKey;
7409
+ };
7410
+ export declare type HostingDomainsV2QueryResult = NonNullable<Awaited<ReturnType<typeof hostingDomainsV2>>>;
7411
+ export declare type HostingDomainsV2QueryError = AxiosError<unknown>;
7412
+ export declare function useHostingDomainsV2<TData = Awaited<ReturnType<typeof hostingDomainsV2>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | HostingDomainsV2Params, options: {
7413
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingDomainsV2>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingDomainsV2>>, TError, TData>, 'initialData'>;
7414
+ axios?: AxiosRequestConfig;
7415
+ }): DefinedUseQueryResult<TData, TError> & {
7416
+ queryKey: QueryKey;
7417
+ };
7418
+ export declare function useHostingDomainsV2<TData = Awaited<ReturnType<typeof hostingDomainsV2>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingDomainsV2Params, options?: {
7419
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingDomainsV2>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingDomainsV2>>, TError, TData>, 'initialData'>;
7420
+ axios?: AxiosRequestConfig;
7421
+ }): UseQueryResult<TData, TError> & {
7422
+ queryKey: QueryKey;
7423
+ };
7424
+ export declare function useHostingDomainsV2<TData = Awaited<ReturnType<typeof hostingDomainsV2>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingDomainsV2Params, options?: {
7425
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingDomainsV2>>, TError, TData>>;
7426
+ axios?: AxiosRequestConfig;
7427
+ }): UseQueryResult<TData, TError> & {
7428
+ queryKey: QueryKey;
7429
+ };
7273
7430
  /**
7274
7431
  * Unassign the domain associated with the hosting account
7275
7432
  * @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.1466.0
6
+ * OpenAPI spec version: 1.1470.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -2307,6 +2307,102 @@ export const useHostingEmailUpdate = (options) => {
2307
2307
  const mutationOptions = getHostingEmailUpdateMutationOptions(options);
2308
2308
  return useMutation(mutationOptions);
2309
2309
  };
2310
+ /**
2311
+ * Get info of email autoresponder based on the address associated
2312
+ * @summary email autoresponder get
2313
+ */
2314
+ export const hostingEmailAutoresponderInfo = (hostingId, params, options) => {
2315
+ return axios.get(`/v1/hosting/${hostingId}/emails/autoresponder`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
2316
+ };
2317
+ export const getHostingEmailAutoresponderInfoQueryKey = (hostingId, params) => {
2318
+ return [`/v1/hosting/${hostingId}/emails/autoresponder`, ...(params ? [params] : [])];
2319
+ };
2320
+ export const getHostingEmailAutoresponderInfoQueryOptions = (hostingId, params, options) => {
2321
+ var _a;
2322
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
2323
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingEmailAutoresponderInfoQueryKey(hostingId, params);
2324
+ const queryFn = ({ signal }) => hostingEmailAutoresponderInfo(hostingId, params, Object.assign({ signal }, axiosOptions));
2325
+ return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
2326
+ };
2327
+ /**
2328
+ * @summary email autoresponder get
2329
+ */
2330
+ export function useHostingEmailAutoresponderInfo(hostingId, params, options) {
2331
+ const queryOptions = getHostingEmailAutoresponderInfoQueryOptions(hostingId, params, options);
2332
+ const query = useQuery(queryOptions);
2333
+ query.queryKey = queryOptions.queryKey;
2334
+ return query;
2335
+ }
2336
+ /**
2337
+ * Creates/Updates existing email autoresponder
2338
+ * @summary email autoresponder create or update
2339
+ */
2340
+ export const hostingEmailAutoresponder = (hostingId, hostingEmailAutoresponderBody, options) => {
2341
+ return axios.put(`/v1/hosting/${hostingId}/emails/autoresponder`, hostingEmailAutoresponderBody, options);
2342
+ };
2343
+ export const getHostingEmailAutoresponderMutationOptions = (options) => {
2344
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
2345
+ const mutationFn = (props) => {
2346
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
2347
+ return hostingEmailAutoresponder(hostingId, data, axiosOptions);
2348
+ };
2349
+ return Object.assign({ mutationFn }, mutationOptions);
2350
+ };
2351
+ /**
2352
+ * @summary email autoresponder create or update
2353
+ */
2354
+ export const useHostingEmailAutoresponder = (options) => {
2355
+ const mutationOptions = getHostingEmailAutoresponderMutationOptions(options);
2356
+ return useMutation(mutationOptions);
2357
+ };
2358
+ /**
2359
+ * Deletes autorespond emails
2360
+ * @summary delete email autoresponder
2361
+ */
2362
+ export const hostingEmailAutoresponderDelete = (hostingId, params, options) => {
2363
+ return axios.delete(`/v1/hosting/${hostingId}/emails/autoresponder`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
2364
+ };
2365
+ export const getHostingEmailAutoresponderDeleteMutationOptions = (options) => {
2366
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
2367
+ const mutationFn = (props) => {
2368
+ const { hostingId, params } = props !== null && props !== void 0 ? props : {};
2369
+ return hostingEmailAutoresponderDelete(hostingId, params, axiosOptions);
2370
+ };
2371
+ return Object.assign({ mutationFn }, mutationOptions);
2372
+ };
2373
+ /**
2374
+ * @summary delete email autoresponder
2375
+ */
2376
+ export const useHostingEmailAutoresponderDelete = (options) => {
2377
+ const mutationOptions = getHostingEmailAutoresponderDeleteMutationOptions(options);
2378
+ return useMutation(mutationOptions);
2379
+ };
2380
+ /**
2381
+ * Lists existing email autoresponders
2382
+ * @summary email autoresponder list
2383
+ */
2384
+ export const hostingEmailAutoresponderList = (hostingId, params, options) => {
2385
+ return axios.get(`/v1/hosting/${hostingId}/emails/autoresponders`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
2386
+ };
2387
+ export const getHostingEmailAutoresponderListQueryKey = (hostingId, params) => {
2388
+ return [`/v1/hosting/${hostingId}/emails/autoresponders`, ...(params ? [params] : [])];
2389
+ };
2390
+ export const getHostingEmailAutoresponderListQueryOptions = (hostingId, params, options) => {
2391
+ var _a;
2392
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
2393
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingEmailAutoresponderListQueryKey(hostingId, params);
2394
+ const queryFn = ({ signal }) => hostingEmailAutoresponderList(hostingId, params, Object.assign({ signal }, axiosOptions));
2395
+ return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
2396
+ };
2397
+ /**
2398
+ * @summary email autoresponder list
2399
+ */
2400
+ export function useHostingEmailAutoresponderList(hostingId, params, options) {
2401
+ const queryOptions = getHostingEmailAutoresponderListQueryOptions(hostingId, params, options);
2402
+ const query = useQuery(queryOptions);
2403
+ query.queryKey = queryOptions.queryKey;
2404
+ return query;
2405
+ }
2310
2406
  /**
2311
2407
  * Lists existing email account and domain filters
2312
2408
  * @summary email filters list
@@ -5607,6 +5703,32 @@ export function useDbListV2(hostingId, options) {
5607
5703
  query.queryKey = queryOptions.queryKey;
5608
5704
  return query;
5609
5705
  }
5706
+ /**
5707
+ * Returns a list of domains
5708
+ * @summary domain list v2
5709
+ */
5710
+ export const hostingDomainsV2 = (hostingId, params, options) => {
5711
+ return axios.get(`/v2/hosting/${hostingId}/domains`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
5712
+ };
5713
+ export const getHostingDomainsV2QueryKey = (hostingId, params) => {
5714
+ return [`/v2/hosting/${hostingId}/domains`, ...(params ? [params] : [])];
5715
+ };
5716
+ export const getHostingDomainsV2QueryOptions = (hostingId, params, options) => {
5717
+ var _a;
5718
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
5719
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingDomainsV2QueryKey(hostingId, params);
5720
+ const queryFn = ({ signal }) => hostingDomainsV2(hostingId, params, Object.assign({ signal }, axiosOptions));
5721
+ return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
5722
+ };
5723
+ /**
5724
+ * @summary domain list v2
5725
+ */
5726
+ export function useHostingDomainsV2(hostingId, params, options) {
5727
+ const queryOptions = getHostingDomainsV2QueryOptions(hostingId, params, options);
5728
+ const query = useQuery(queryOptions);
5729
+ query.queryKey = queryOptions.queryKey;
5730
+ return query;
5731
+ }
5610
5732
  /**
5611
5733
  * Unassign the domain associated with the hosting account
5612
5734
  * @summary Unassign the domain
@@ -1,5 +1,5 @@
1
1
  import { http } from 'msw';
2
- import type { AccessLogs200, AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailDelete200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailList200, HostingEmailSettings200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, 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 { AccessLogs200, AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponder200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailDelete200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailList200, HostingEmailSettings200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, 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;
@@ -96,6 +96,10 @@ export declare const getHostingEmailAddResponseMock: (overrideResponse?: Partial
96
96
  export declare const getHostingEmailDeleteResponseMock: (overrideResponse?: Partial<HostingEmailDelete200>) => HostingEmailDelete200;
97
97
  export declare const getHostingEmailListResponseMock: (overrideResponse?: Partial<HostingEmailList200>) => HostingEmailList200;
98
98
  export declare const getHostingEmailUpdateResponseMock: (overrideResponse?: Partial<HostingEmailUpdate200>) => HostingEmailUpdate200;
99
+ export declare const getHostingEmailAutoresponderInfoResponseMock: (overrideResponse?: Partial<HostingEmailAutoresponderInfo200>) => HostingEmailAutoresponderInfo200;
100
+ export declare const getHostingEmailAutoresponderResponseMock: (overrideResponse?: Partial<HostingEmailAutoresponder200>) => HostingEmailAutoresponder200;
101
+ export declare const getHostingEmailAutoresponderDeleteResponseMock: (overrideResponse?: Partial<HostingEmailAutoresponderDelete200>) => HostingEmailAutoresponderDelete200;
102
+ export declare const getHostingEmailAutoresponderListResponseMock: (overrideResponse?: Partial<HostingEmailAutoresponderList200>) => HostingEmailAutoresponderList200;
99
103
  export declare const getHostingEmailFiltersListResponseMock: (overrideResponse?: Partial<HostingEmailFiltersList200>) => HostingEmailFiltersList200;
100
104
  export declare const getHostingEmailFiltersAddResponseMock: (overrideResponse?: Partial<HostingEmailFiltersAdd200>) => HostingEmailFiltersAdd200;
101
105
  export declare const getHostingEmailFiltersUpdateResponseMock: (overrideResponse?: Partial<HostingEmailFiltersUpdate200>) => HostingEmailFiltersUpdate200;
@@ -229,6 +233,7 @@ export declare const getBackupListV2ResponseMock: (overrideResponse?: Partial<Ba
229
233
  export declare const getBackupRestoreV2ResponseMock: (overrideResponse?: Partial<BackupRestoreV2200>) => BackupRestoreV2200;
230
234
  export declare const getBackupStatusV2ResponseMock: (overrideResponse?: Partial<BackupStatusV2200>) => BackupStatusV2200;
231
235
  export declare const getDbListV2ResponseMock: (overrideResponse?: Partial<DbListV2200>) => DbListV2200;
236
+ export declare const getHostingDomainsV2ResponseMock: (overrideResponse?: Partial<HostingDomainsV2200>) => HostingDomainsV2200;
232
237
  export declare const getHostingDomainsUnassignV2ResponseMock: (overrideResponse?: Partial<HostingDomainsUnassignV2200>) => HostingDomainsUnassignV2200;
233
238
  export declare const getListFilesV2ResponseMock: (overrideResponse?: Partial<ListFilesV2200>) => ListFilesV2200;
234
239
  export declare const getHostingNameserversV2ResponseMock: (overrideResponse?: Partial<HostingNameserversV2200>) => HostingNameserversV2200;
@@ -346,6 +351,10 @@ export declare const getHostingEmailAddMockHandler: (overrideResponse?: HostingE
346
351
  export declare const getHostingEmailDeleteMockHandler: (overrideResponse?: HostingEmailDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailDelete200> | HostingEmailDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
347
352
  export declare const getHostingEmailListMockHandler: (overrideResponse?: HostingEmailList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailList200> | HostingEmailList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
348
353
  export declare const getHostingEmailUpdateMockHandler: (overrideResponse?: HostingEmailUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingEmailUpdate200> | HostingEmailUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
354
+ export declare const getHostingEmailAutoresponderInfoMockHandler: (overrideResponse?: HostingEmailAutoresponderInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailAutoresponderInfo200> | HostingEmailAutoresponderInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
355
+ export declare const getHostingEmailAutoresponderMockHandler: (overrideResponse?: HostingEmailAutoresponder200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingEmailAutoresponder200> | HostingEmailAutoresponder200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
356
+ export declare const getHostingEmailAutoresponderDeleteMockHandler: (overrideResponse?: HostingEmailAutoresponderDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailAutoresponderDelete200> | HostingEmailAutoresponderDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
357
+ export declare const getHostingEmailAutoresponderListMockHandler: (overrideResponse?: HostingEmailAutoresponderList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailAutoresponderList200> | HostingEmailAutoresponderList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
349
358
  export declare const getHostingEmailFiltersListMockHandler: (overrideResponse?: HostingEmailFiltersList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailFiltersList200> | HostingEmailFiltersList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
350
359
  export declare const getHostingEmailFiltersAddMockHandler: (overrideResponse?: HostingEmailFiltersAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailFiltersAdd200> | HostingEmailFiltersAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
351
360
  export declare const getHostingEmailFiltersUpdateMockHandler: (overrideResponse?: HostingEmailFiltersUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingEmailFiltersUpdate200> | HostingEmailFiltersUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
@@ -481,6 +490,7 @@ export declare const getBackupListV2MockHandler: (overrideResponse?: BackupListV
481
490
  export declare const getBackupRestoreV2MockHandler: (overrideResponse?: BackupRestoreV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupRestoreV2200> | BackupRestoreV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
482
491
  export declare const getBackupStatusV2MockHandler: (overrideResponse?: BackupStatusV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupStatusV2200> | BackupStatusV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
483
492
  export declare const getDbListV2MockHandler: (overrideResponse?: DbListV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DbListV2200> | DbListV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
493
+ export declare const getHostingDomainsV2MockHandler: (overrideResponse?: HostingDomainsV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingDomainsV2200> | HostingDomainsV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
484
494
  export declare const getHostingDomainsUnassignV2MockHandler: (overrideResponse?: HostingDomainsUnassignV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingDomainsUnassignV2200> | HostingDomainsUnassignV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
485
495
  export declare const getListFilesV2MockHandler: (overrideResponse?: ListFilesV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListFilesV2200> | ListFilesV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
486
496
  export declare const getHostingNameserversV2MockHandler: (overrideResponse?: HostingNameserversV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingNameserversV2200> | HostingNameserversV2200) | 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.1466.0
7
+ * OpenAPI spec version: 1.1470.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -106,6 +106,10 @@ export const getHostingEmailAddResponseMock = (overrideResponse = {}) => (Object
106
106
  export const getHostingEmailDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
107
107
  export const getHostingEmailListResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ address: faker.helpers.arrayElement([faker.word.sample(), undefined]), autofolders: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), box_suspensions: faker.helpers.arrayElement([{ incoming: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), login: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), outgoing: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), outgoing_hold: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, undefined]), disk_limit_mib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_used_mib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_used_percent: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), files: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), system_suspensions: faker.helpers.arrayElement([{ receive: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), relay: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), sendmail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), utf8_folders: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) })), undefined]) }, overrideResponse));
108
108
  export const getHostingEmailUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
109
+ export const getHostingEmailAutoresponderInfoResponseMock = (overrideResponse = {}) => (Object.assign({ autoresponder: faker.helpers.arrayElement([{ body: faker.helpers.arrayElement([faker.word.sample(), undefined]), charset: faker.helpers.arrayElement([faker.word.sample(), undefined]), from: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), start: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), stop: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), subject: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]) }, overrideResponse));
110
+ export const getHostingEmailAutoresponderResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
111
+ export const getHostingEmailAutoresponderDeleteResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
112
+ export const getHostingEmailAutoresponderListResponseMock = (overrideResponse = {}) => (Object.assign({ autoresponders: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ email: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), subject: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
109
113
  export const getHostingEmailFiltersListResponseMock = (overrideResponse = {}) => (Object.assign({ count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), filters: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ actions: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ action: faker.helpers.arrayElement([faker.word.sample(), undefined]), dest: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), rules: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ match: faker.helpers.arrayElement([faker.word.sample(), undefined]), opt: faker.helpers.arrayElement([faker.word.sample(), undefined]), part: faker.helpers.arrayElement([faker.word.sample(), undefined]), val: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), unescaped: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) })), undefined]) }, overrideResponse));
110
114
  export const getHostingEmailFiltersAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
111
115
  export const getHostingEmailFiltersUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
@@ -261,6 +265,7 @@ export const getBackupListV2ResponseMock = (overrideResponse = {}) => (Object.as
261
265
  export const getBackupRestoreV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
262
266
  export const getBackupStatusV2ResponseMock = (overrideResponse = {}) => (Object.assign({ backup_download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
263
267
  export const getDbListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), sitename: faker.helpers.arrayElement([faker.word.sample(), undefined]), sizemib: faker.helpers.arrayElement([faker.word.sample(), undefined]), usercount: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), userlist: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) })), undefined]) }, overrideResponse));
268
+ export const getHostingDomainsV2ResponseMock = (overrideResponse = {}) => (Object.assign({ domains: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), authoritative: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), autogen_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing_account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), billing_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), dns_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), docroot: faker.helpers.arrayElement([faker.word.sample(), null]), domain: faker.word.sample(), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), hosting_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), id: faker.number.int({ min: undefined, max: undefined }), is_internal: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), nameservers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), setup_progress: faker.helpers.arrayElement([{ validate_cdn: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_cdn_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_dns: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_auto_repair: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_ssl: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_ssl_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_tier: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.word.sample() })), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), page: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
264
269
  export const getHostingDomainsUnassignV2ResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
265
270
  export const getListFilesV2ResponseMock = (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));
266
271
  export const getHostingNameserversV2ResponseMock = (overrideResponse = {}) => (Object.assign({ brand: faker.word.sample(), hosts: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ host: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) })), id: faker.number.int({ min: undefined, max: undefined }), is_default: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
@@ -1242,6 +1247,46 @@ export const getHostingEmailUpdateMockHandler = (overrideResponse) => {
1242
1247
  });
1243
1248
  }));
1244
1249
  };
1250
+ export const getHostingEmailAutoresponderInfoMockHandler = (overrideResponse) => {
1251
+ return http.get('*/v1/hosting/:hostingId/emails/autoresponder', (info) => __awaiter(void 0, void 0, void 0, function* () {
1252
+ yield delay(0);
1253
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1254
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1255
+ : getHostingEmailAutoresponderInfoResponseMock()), { status: 200,
1256
+ headers: { 'Content-Type': 'application/json' }
1257
+ });
1258
+ }));
1259
+ };
1260
+ export const getHostingEmailAutoresponderMockHandler = (overrideResponse) => {
1261
+ return http.put('*/v1/hosting/:hostingId/emails/autoresponder', (info) => __awaiter(void 0, void 0, void 0, function* () {
1262
+ yield delay(0);
1263
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1264
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1265
+ : getHostingEmailAutoresponderResponseMock()), { status: 200,
1266
+ headers: { 'Content-Type': 'application/json' }
1267
+ });
1268
+ }));
1269
+ };
1270
+ export const getHostingEmailAutoresponderDeleteMockHandler = (overrideResponse) => {
1271
+ return http.delete('*/v1/hosting/:hostingId/emails/autoresponder', (info) => __awaiter(void 0, void 0, void 0, function* () {
1272
+ yield delay(0);
1273
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1274
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1275
+ : getHostingEmailAutoresponderDeleteResponseMock()), { status: 200,
1276
+ headers: { 'Content-Type': 'application/json' }
1277
+ });
1278
+ }));
1279
+ };
1280
+ export const getHostingEmailAutoresponderListMockHandler = (overrideResponse) => {
1281
+ return http.get('*/v1/hosting/:hostingId/emails/autoresponders', (info) => __awaiter(void 0, void 0, void 0, function* () {
1282
+ yield delay(0);
1283
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1284
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1285
+ : getHostingEmailAutoresponderListResponseMock()), { status: 200,
1286
+ headers: { 'Content-Type': 'application/json' }
1287
+ });
1288
+ }));
1289
+ };
1245
1290
  export const getHostingEmailFiltersListMockHandler = (overrideResponse) => {
1246
1291
  return http.get('*/v1/hosting/:hostingId/emails/filters', (info) => __awaiter(void 0, void 0, void 0, function* () {
1247
1292
  yield delay(0);
@@ -2592,6 +2637,16 @@ export const getDbListV2MockHandler = (overrideResponse) => {
2592
2637
  });
2593
2638
  }));
2594
2639
  };
2640
+ export const getHostingDomainsV2MockHandler = (overrideResponse) => {
2641
+ return http.get('*/v2/hosting/:hostingId/domains', (info) => __awaiter(void 0, void 0, void 0, function* () {
2642
+ yield delay(0);
2643
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2644
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2645
+ : getHostingDomainsV2ResponseMock()), { status: 200,
2646
+ headers: { 'Content-Type': 'application/json' }
2647
+ });
2648
+ }));
2649
+ };
2595
2650
  export const getHostingDomainsUnassignV2MockHandler = (overrideResponse) => {
2596
2651
  return http.post('*/v2/hosting/:hostingId/domains/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
2597
2652
  yield delay(0);
@@ -2899,6 +2954,10 @@ export const getHostingUAPIMock = () => [
2899
2954
  getHostingEmailDeleteMockHandler(),
2900
2955
  getHostingEmailListMockHandler(),
2901
2956
  getHostingEmailUpdateMockHandler(),
2957
+ getHostingEmailAutoresponderInfoMockHandler(),
2958
+ getHostingEmailAutoresponderMockHandler(),
2959
+ getHostingEmailAutoresponderDeleteMockHandler(),
2960
+ getHostingEmailAutoresponderListMockHandler(),
2902
2961
  getHostingEmailFiltersListMockHandler(),
2903
2962
  getHostingEmailFiltersAddMockHandler(),
2904
2963
  getHostingEmailFiltersUpdateMockHandler(),
@@ -3034,6 +3093,7 @@ export const getHostingUAPIMock = () => [
3034
3093
  getBackupRestoreV2MockHandler(),
3035
3094
  getBackupStatusV2MockHandler(),
3036
3095
  getDbListV2MockHandler(),
3096
+ getHostingDomainsV2MockHandler(),
3037
3097
  getHostingDomainsUnassignV2MockHandler(),
3038
3098
  getListFilesV2MockHandler(),
3039
3099
  getHostingNameserversV2MockHandler(),