@newfold/huapi-js 2.1447.0 → 2.1466.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 +1 -1
- package/src/index.d.ts +19 -19
- package/src/index.js +11 -11
- package/src/index.msw.d.ts +3 -3
- package/src/index.msw.js +5 -5
- package/src/index.schemas.d.ts +89 -91
- package/src/index.schemas.js +5 -4
package/package.json
CHANGED
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, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwarderDelete200, HostingEmailForwarderDelete400, HostingEmailForwarderDeleteParams, 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, 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';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -3158,8 +3158,8 @@ export declare function useHostingEmailForwardersList<TData = Awaited<ReturnType
|
|
|
3158
3158
|
queryKey: QueryKey;
|
|
3159
3159
|
};
|
|
3160
3160
|
/**
|
|
3161
|
-
*
|
|
3162
|
-
* @summary
|
|
3161
|
+
* Email forwarding is a feature that automatically redirects incoming emails sent to one email address to another specified email address
|
|
3162
|
+
* @summary email forwarder add
|
|
3163
3163
|
*/
|
|
3164
3164
|
export declare const hostingEmailForwarderAdd: (hostingId: string, hostingEmailForwarderAddBody: HostingEmailForwarderAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailForwarderAdd200>>;
|
|
3165
3165
|
export declare const getHostingEmailForwarderAddMutationOptions: <TError = AxiosError<HostingEmailForwarderAdd512 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd400, any>, TContext = unknown>(options?: {
|
|
@@ -3176,7 +3176,7 @@ export declare type HostingEmailForwarderAddMutationResult = NonNullable<Awaited
|
|
|
3176
3176
|
export declare type HostingEmailForwarderAddMutationBody = HostingEmailForwarderAddBody;
|
|
3177
3177
|
export declare type HostingEmailForwarderAddMutationError = AxiosError<HostingEmailForwarderAdd400 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd512>;
|
|
3178
3178
|
/**
|
|
3179
|
-
* @summary
|
|
3179
|
+
* @summary email forwarder add
|
|
3180
3180
|
*/
|
|
3181
3181
|
export declare const useHostingEmailForwarderAdd: <TError = AxiosError<HostingEmailForwarderAdd512 | HostingEmailForwarderAdd409 | HostingEmailForwarderAdd403 | HostingEmailForwarderAdd400, any>, TContext = unknown>(options?: {
|
|
3182
3182
|
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwarderAdd200, any>, TError, {
|
|
@@ -3190,33 +3190,33 @@ export declare const useHostingEmailForwarderAdd: <TError = AxiosError<HostingEm
|
|
|
3190
3190
|
}, TContext>;
|
|
3191
3191
|
/**
|
|
3192
3192
|
* Delete email forwarder
|
|
3193
|
-
* @summary
|
|
3193
|
+
* @summary email forwarder delete
|
|
3194
3194
|
*/
|
|
3195
|
-
export declare const
|
|
3196
|
-
export declare const
|
|
3197
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
3195
|
+
export declare const hostingEmailForwardDelete: (hostingId: string, params: HostingEmailForwardDeleteParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailForwardDelete200>>;
|
|
3196
|
+
export declare const getHostingEmailForwardDeleteMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3197
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3198
3198
|
hostingId: string;
|
|
3199
|
-
params:
|
|
3199
|
+
params: HostingEmailForwardDeleteParams;
|
|
3200
3200
|
}, TContext> | undefined;
|
|
3201
3201
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
3202
|
-
} | undefined) => UseMutationOptions<AxiosResponse<
|
|
3202
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3203
3203
|
hostingId: string;
|
|
3204
|
-
params:
|
|
3204
|
+
params: HostingEmailForwardDeleteParams;
|
|
3205
3205
|
}, TContext>;
|
|
3206
|
-
export declare type
|
|
3207
|
-
export declare type
|
|
3206
|
+
export declare type HostingEmailForwardDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailForwardDelete>>>;
|
|
3207
|
+
export declare type HostingEmailForwardDeleteMutationError = AxiosError<unknown>;
|
|
3208
3208
|
/**
|
|
3209
|
-
* @summary
|
|
3209
|
+
* @summary email forwarder delete
|
|
3210
3210
|
*/
|
|
3211
|
-
export declare const
|
|
3212
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
3211
|
+
export declare const useHostingEmailForwardDelete: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3212
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3213
3213
|
hostingId: string;
|
|
3214
|
-
params:
|
|
3214
|
+
params: HostingEmailForwardDeleteParams;
|
|
3215
3215
|
}, TContext> | undefined;
|
|
3216
3216
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
3217
|
-
} | undefined) => UseMutationResult<AxiosResponse<
|
|
3217
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingEmailForwardDelete200, any>, TError, {
|
|
3218
3218
|
hostingId: string;
|
|
3219
|
-
params:
|
|
3219
|
+
params: HostingEmailForwardDeleteParams;
|
|
3220
3220
|
}, TContext>;
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Update an email address's settings, depending on address type
|
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.
|
|
6
|
+
* OpenAPI spec version: 1.1466.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -2426,8 +2426,8 @@ export function useHostingEmailForwardersList(hostingId, params, options) {
|
|
|
2426
2426
|
return query;
|
|
2427
2427
|
}
|
|
2428
2428
|
/**
|
|
2429
|
-
*
|
|
2430
|
-
* @summary
|
|
2429
|
+
* Email forwarding is a feature that automatically redirects incoming emails sent to one email address to another specified email address
|
|
2430
|
+
* @summary email forwarder add
|
|
2431
2431
|
*/
|
|
2432
2432
|
export const hostingEmailForwarderAdd = (hostingId, hostingEmailForwarderAddBody, options) => {
|
|
2433
2433
|
return axios.post(`/v1/hosting/${hostingId}/emails/forwarders`, hostingEmailForwarderAddBody, options);
|
|
@@ -2441,7 +2441,7 @@ export const getHostingEmailForwarderAddMutationOptions = (options) => {
|
|
|
2441
2441
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
2442
2442
|
};
|
|
2443
2443
|
/**
|
|
2444
|
-
* @summary
|
|
2444
|
+
* @summary email forwarder add
|
|
2445
2445
|
*/
|
|
2446
2446
|
export const useHostingEmailForwarderAdd = (options) => {
|
|
2447
2447
|
const mutationOptions = getHostingEmailForwarderAddMutationOptions(options);
|
|
@@ -2449,24 +2449,24 @@ export const useHostingEmailForwarderAdd = (options) => {
|
|
|
2449
2449
|
};
|
|
2450
2450
|
/**
|
|
2451
2451
|
* Delete email forwarder
|
|
2452
|
-
* @summary
|
|
2452
|
+
* @summary email forwarder delete
|
|
2453
2453
|
*/
|
|
2454
|
-
export const
|
|
2454
|
+
export const hostingEmailForwardDelete = (hostingId, params, options) => {
|
|
2455
2455
|
return axios.delete(`/v1/hosting/${hostingId}/emails/forwarders`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2456
2456
|
};
|
|
2457
|
-
export const
|
|
2457
|
+
export const getHostingEmailForwardDeleteMutationOptions = (options) => {
|
|
2458
2458
|
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2459
2459
|
const mutationFn = (props) => {
|
|
2460
2460
|
const { hostingId, params } = props !== null && props !== void 0 ? props : {};
|
|
2461
|
-
return
|
|
2461
|
+
return hostingEmailForwardDelete(hostingId, params, axiosOptions);
|
|
2462
2462
|
};
|
|
2463
2463
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
2464
2464
|
};
|
|
2465
2465
|
/**
|
|
2466
|
-
* @summary
|
|
2466
|
+
* @summary email forwarder delete
|
|
2467
2467
|
*/
|
|
2468
|
-
export const
|
|
2469
|
-
const mutationOptions =
|
|
2468
|
+
export const useHostingEmailForwardDelete = (options) => {
|
|
2469
|
+
const mutationOptions = getHostingEmailForwardDeleteMutationOptions(options);
|
|
2470
2470
|
return useMutation(mutationOptions);
|
|
2471
2471
|
};
|
|
2472
2472
|
/**
|
package/src/index.msw.d.ts
CHANGED
|
@@ -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,
|
|
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';
|
|
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;
|
|
@@ -102,7 +102,7 @@ export declare const getHostingEmailFiltersUpdateResponseMock: (overrideResponse
|
|
|
102
102
|
export declare const getHostingEmailFiltersDeleteResponseMock: (overrideResponse?: Partial<HostingEmailFiltersDelete200>) => HostingEmailFiltersDelete200;
|
|
103
103
|
export declare const getHostingEmailForwardersListResponseMock: (overrideResponse?: Partial<HostingEmailForwardersList200>) => HostingEmailForwardersList200;
|
|
104
104
|
export declare const getHostingEmailForwarderAddResponseMock: (overrideResponse?: Partial<HostingEmailForwarderAdd200>) => HostingEmailForwarderAdd200;
|
|
105
|
-
export declare const
|
|
105
|
+
export declare const getHostingEmailForwardDeleteResponseMock: (overrideResponse?: Partial<HostingEmailForwardDelete200>) => HostingEmailForwardDelete200;
|
|
106
106
|
export declare const getHostingEmailSettingsResponseMock: (overrideResponse?: Partial<HostingEmailSettings200>) => HostingEmailSettings200;
|
|
107
107
|
export declare const getEmailSsoResponseMock: (overrideResponse?: Partial<EmailSso200>) => EmailSso200;
|
|
108
108
|
export declare const getHostingEmailFolderListResponseMock: (overrideResponse?: Partial<HostingEmailFolderList200>) => HostingEmailFolderList200;
|
|
@@ -352,7 +352,7 @@ export declare const getHostingEmailFiltersUpdateMockHandler: (overrideResponse?
|
|
|
352
352
|
export declare const getHostingEmailFiltersDeleteMockHandler: (overrideResponse?: HostingEmailFiltersDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailFiltersDelete200> | HostingEmailFiltersDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
353
353
|
export declare const getHostingEmailForwardersListMockHandler: (overrideResponse?: HostingEmailForwardersList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailForwardersList200> | HostingEmailForwardersList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
354
354
|
export declare const getHostingEmailForwarderAddMockHandler: (overrideResponse?: HostingEmailForwarderAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailForwarderAdd200> | HostingEmailForwarderAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
355
|
-
export declare const
|
|
355
|
+
export declare const getHostingEmailForwardDeleteMockHandler: (overrideResponse?: HostingEmailForwardDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailForwardDelete200> | HostingEmailForwardDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
356
356
|
export declare const getHostingEmailSettingsMockHandler: (overrideResponse?: HostingEmailSettings200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailSettings200> | HostingEmailSettings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
357
357
|
export declare const getEmailSsoMockHandler: (overrideResponse?: EmailSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EmailSso200> | EmailSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
358
358
|
export declare const getHostingEmailFolderListMockHandler: (overrideResponse?: HostingEmailFolderList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailFolderList200> | HostingEmailFolderList200) | 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.
|
|
7
|
+
* OpenAPI spec version: 1.1466.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -112,7 +112,7 @@ export const getHostingEmailFiltersUpdateResponseMock = (overrideResponse = {})
|
|
|
112
112
|
export const getHostingEmailFiltersDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
113
113
|
export const getHostingEmailForwardersListResponseMock = (overrideResponse = {}) => (Object.assign({ forwarders: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ destination: faker.helpers.arrayElement([faker.word.sample(), undefined]), source: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
114
114
|
export const getHostingEmailForwarderAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
115
|
-
export const
|
|
115
|
+
export const getHostingEmailForwardDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
116
116
|
export const getHostingEmailSettingsResponseMock = (overrideResponse = {}) => (Object.assign({ account_incoming: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_login: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_outgoing: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), address: faker.helpers.arrayElement([faker.word.sample(), undefined]), autofolders: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), utf8_folders: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
117
117
|
export const getEmailSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
118
118
|
export const getHostingEmailFolderListResponseMock = (overrideResponse = {}) => (Object.assign({ count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), folders: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ children: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ children: faker.helpers.arrayElement([[], undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
@@ -1302,12 +1302,12 @@ export const getHostingEmailForwarderAddMockHandler = (overrideResponse) => {
|
|
|
1302
1302
|
});
|
|
1303
1303
|
}));
|
|
1304
1304
|
};
|
|
1305
|
-
export const
|
|
1305
|
+
export const getHostingEmailForwardDeleteMockHandler = (overrideResponse) => {
|
|
1306
1306
|
return http.delete('*/v1/hosting/:hostingId/emails/forwarders', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1307
1307
|
yield delay(0);
|
|
1308
1308
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1309
1309
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1310
|
-
:
|
|
1310
|
+
: getHostingEmailForwardDeleteResponseMock()), { status: 200,
|
|
1311
1311
|
headers: { 'Content-Type': 'application/json' }
|
|
1312
1312
|
});
|
|
1313
1313
|
}));
|
|
@@ -2905,7 +2905,7 @@ export const getHostingUAPIMock = () => [
|
|
|
2905
2905
|
getHostingEmailFiltersDeleteMockHandler(),
|
|
2906
2906
|
getHostingEmailForwardersListMockHandler(),
|
|
2907
2907
|
getHostingEmailForwarderAddMockHandler(),
|
|
2908
|
-
|
|
2908
|
+
getHostingEmailForwardDeleteMockHandler(),
|
|
2909
2909
|
getHostingEmailSettingsMockHandler(),
|
|
2910
2910
|
getEmailSsoMockHandler(),
|
|
2911
2911
|
getHostingEmailFolderListMockHandler(),
|
package/src/index.schemas.d.ts
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.
|
|
6
|
+
* OpenAPI spec version: 1.1466.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -267,17 +267,6 @@ export declare type SitesDomainsV2200 = {
|
|
|
267
267
|
export declare type SitesDomainsV2Params = {
|
|
268
268
|
scan?: boolean;
|
|
269
269
|
};
|
|
270
|
-
export declare type SitesListV2200 = {
|
|
271
|
-
items?: SitesListV2200ItemsItem[];
|
|
272
|
-
/** page size */
|
|
273
|
-
limit?: number;
|
|
274
|
-
/** current page number */
|
|
275
|
-
page?: number;
|
|
276
|
-
/** total number of pages */
|
|
277
|
-
pages?: number;
|
|
278
|
-
/** total number of sites returned */
|
|
279
|
-
total?: number;
|
|
280
|
-
};
|
|
281
270
|
/**
|
|
282
271
|
* @nullable
|
|
283
272
|
*/
|
|
@@ -305,63 +294,6 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
305
294
|
/** A list of staging sites of the current site */
|
|
306
295
|
sites?: number[];
|
|
307
296
|
} | null;
|
|
308
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
309
|
-
/** @nullable */
|
|
310
|
-
available?: number | null;
|
|
311
|
-
/** @nullable */
|
|
312
|
-
total?: number | null;
|
|
313
|
-
unit?: string;
|
|
314
|
-
/** @nullable */
|
|
315
|
-
used?: number | null;
|
|
316
|
-
};
|
|
317
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
318
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
319
|
-
/** @nullable */
|
|
320
|
-
workers?: number | null;
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* @nullable
|
|
324
|
-
*/
|
|
325
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
326
|
-
/**
|
|
327
|
-
* The root domain name
|
|
328
|
-
* @nullable
|
|
329
|
-
*/
|
|
330
|
-
base_domain?: string | null;
|
|
331
|
-
/**
|
|
332
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
333
|
-
* @nullable
|
|
334
|
-
*/
|
|
335
|
-
domain?: string | null;
|
|
336
|
-
/**
|
|
337
|
-
* The current pending_url's HAL Domain ID
|
|
338
|
-
* @nullable
|
|
339
|
-
*/
|
|
340
|
-
domain_id?: number | null;
|
|
341
|
-
/** @nullable */
|
|
342
|
-
error?: string | null;
|
|
343
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
344
|
-
is_temp?: boolean;
|
|
345
|
-
/**
|
|
346
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
347
|
-
* @nullable
|
|
348
|
-
*/
|
|
349
|
-
job_failed?: boolean | null;
|
|
350
|
-
/** @nullable */
|
|
351
|
-
stage?: string | null;
|
|
352
|
-
/**
|
|
353
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
354
|
-
* @nullable
|
|
355
|
-
*/
|
|
356
|
-
wp_session?: string | null;
|
|
357
|
-
} | null;
|
|
358
|
-
/**
|
|
359
|
-
* Job ids for the site
|
|
360
|
-
* @nullable
|
|
361
|
-
*/
|
|
362
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
363
|
-
[key: string]: unknown;
|
|
364
|
-
} | null;
|
|
365
297
|
export declare type SitesListV2200ItemsItem = {
|
|
366
298
|
/** @nullable */
|
|
367
299
|
account_back_ref?: string | null;
|
|
@@ -440,6 +372,74 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
440
372
|
*/
|
|
441
373
|
version_ptr?: string | null;
|
|
442
374
|
};
|
|
375
|
+
export declare type SitesListV2200 = {
|
|
376
|
+
items?: SitesListV2200ItemsItem[];
|
|
377
|
+
/** page size */
|
|
378
|
+
limit?: number;
|
|
379
|
+
/** current page number */
|
|
380
|
+
page?: number;
|
|
381
|
+
/** total number of pages */
|
|
382
|
+
pages?: number;
|
|
383
|
+
/** total number of sites returned */
|
|
384
|
+
total?: number;
|
|
385
|
+
};
|
|
386
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
387
|
+
/** @nullable */
|
|
388
|
+
available?: number | null;
|
|
389
|
+
/** @nullable */
|
|
390
|
+
total?: number | null;
|
|
391
|
+
unit?: string;
|
|
392
|
+
/** @nullable */
|
|
393
|
+
used?: number | null;
|
|
394
|
+
};
|
|
395
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
396
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
397
|
+
/** @nullable */
|
|
398
|
+
workers?: number | null;
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* @nullable
|
|
402
|
+
*/
|
|
403
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
404
|
+
/**
|
|
405
|
+
* The root domain name
|
|
406
|
+
* @nullable
|
|
407
|
+
*/
|
|
408
|
+
base_domain?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
411
|
+
* @nullable
|
|
412
|
+
*/
|
|
413
|
+
domain?: string | null;
|
|
414
|
+
/**
|
|
415
|
+
* The current pending_url's HAL Domain ID
|
|
416
|
+
* @nullable
|
|
417
|
+
*/
|
|
418
|
+
domain_id?: number | null;
|
|
419
|
+
/** @nullable */
|
|
420
|
+
error?: string | null;
|
|
421
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
422
|
+
is_temp?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
425
|
+
* @nullable
|
|
426
|
+
*/
|
|
427
|
+
job_failed?: boolean | null;
|
|
428
|
+
/** @nullable */
|
|
429
|
+
stage?: string | null;
|
|
430
|
+
/**
|
|
431
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
432
|
+
* @nullable
|
|
433
|
+
*/
|
|
434
|
+
wp_session?: string | null;
|
|
435
|
+
} | null;
|
|
436
|
+
/**
|
|
437
|
+
* Job ids for the site
|
|
438
|
+
* @nullable
|
|
439
|
+
*/
|
|
440
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
441
|
+
[key: string]: unknown;
|
|
442
|
+
} | null;
|
|
443
443
|
export declare type SshKeyV2200 = {
|
|
444
444
|
deleted?: number;
|
|
445
445
|
key_name?: string;
|
|
@@ -1836,15 +1836,10 @@ export declare type SitesAtomicMetrics200 = {
|
|
|
1836
1836
|
raw?: SitesAtomicMetrics200Raw;
|
|
1837
1837
|
views?: SitesAtomicMetrics200Views;
|
|
1838
1838
|
};
|
|
1839
|
-
export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
|
|
1840
|
-
[key: string]: string | number | number;
|
|
1841
|
-
};
|
|
1842
1839
|
export declare type SitesAtomicMetrics200RawPeriodsItem = {
|
|
1843
1840
|
dimension: SitesAtomicMetrics200RawPeriodsItemDimension;
|
|
1844
1841
|
timestamp: number;
|
|
1845
1842
|
};
|
|
1846
|
-
export declare type SitesAtomicMetrics200RawMetric = string | string[];
|
|
1847
|
-
export declare type SitesAtomicMetrics200RawDimension = string | string[];
|
|
1848
1843
|
export declare type SitesAtomicMetrics200Raw = {
|
|
1849
1844
|
date_end?: string;
|
|
1850
1845
|
date_start?: string;
|
|
@@ -1853,6 +1848,11 @@ export declare type SitesAtomicMetrics200Raw = {
|
|
|
1853
1848
|
periods?: SitesAtomicMetrics200RawPeriodsItem[];
|
|
1854
1849
|
resolution?: number;
|
|
1855
1850
|
};
|
|
1851
|
+
export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
|
|
1852
|
+
[key: string]: string | number | number;
|
|
1853
|
+
};
|
|
1854
|
+
export declare type SitesAtomicMetrics200RawMetric = string | string[];
|
|
1855
|
+
export declare type SitesAtomicMetrics200RawDimension = string | string[];
|
|
1856
1856
|
export declare type SitesAtomicMetricsParams = {
|
|
1857
1857
|
metric?: string[];
|
|
1858
1858
|
dimension?: string[];
|
|
@@ -2173,6 +2173,7 @@ export declare type SsoParams = {
|
|
|
2173
2173
|
dir?: string;
|
|
2174
2174
|
domain?: string;
|
|
2175
2175
|
db_name?: string;
|
|
2176
|
+
ssl_status?: number;
|
|
2176
2177
|
bounce?: string;
|
|
2177
2178
|
};
|
|
2178
2179
|
export declare type SshKeyGenerate200 = {
|
|
@@ -2414,9 +2415,6 @@ export declare type HostingRedirects200Item = {
|
|
|
2414
2415
|
url?: string;
|
|
2415
2416
|
wildcard?: boolean;
|
|
2416
2417
|
};
|
|
2417
|
-
export declare type ProductLicenseDetails200 = {
|
|
2418
|
-
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
2419
|
-
};
|
|
2420
2418
|
export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
|
|
2421
2419
|
expirationDate?: string;
|
|
2422
2420
|
prodInstId?: string;
|
|
@@ -2430,6 +2428,9 @@ export declare type ProductLicenseDetails200Wpsolution = {
|
|
|
2430
2428
|
creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
|
|
2431
2429
|
total?: number;
|
|
2432
2430
|
};
|
|
2431
|
+
export declare type ProductLicenseDetails200 = {
|
|
2432
|
+
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
2433
|
+
};
|
|
2433
2434
|
export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
|
|
2434
2435
|
export declare const ProductLicenseDetailsProductName: {
|
|
2435
2436
|
readonly wpsolution: "wpsolution";
|
|
@@ -2915,14 +2916,10 @@ export declare type HostingEmailSettingsBody = {
|
|
|
2915
2916
|
/** Whether to toggle utf8 folder usage on or off - SYSTEM ONLY */
|
|
2916
2917
|
utf8_folders?: HostingEmailSettingsBodyUtf8Folders;
|
|
2917
2918
|
};
|
|
2918
|
-
export declare type
|
|
2919
|
-
/** Customer error code */
|
|
2920
|
-
error?: string;
|
|
2921
|
-
};
|
|
2922
|
-
export declare type HostingEmailForwarderDelete200 = {
|
|
2919
|
+
export declare type HostingEmailForwardDelete200 = {
|
|
2923
2920
|
[key: string]: unknown;
|
|
2924
2921
|
};
|
|
2925
|
-
export declare type
|
|
2922
|
+
export declare type HostingEmailForwardDeleteParams = {
|
|
2926
2923
|
/**
|
|
2927
2924
|
* The source address or domain of the forwarder to be deleted
|
|
2928
2925
|
*/
|
|
@@ -2960,21 +2957,22 @@ export declare const HostingEmailForwarderAddBodyType: {
|
|
|
2960
2957
|
readonly domain: "domain";
|
|
2961
2958
|
};
|
|
2962
2959
|
/**
|
|
2963
|
-
* The type of forwarder destination (defaults to '
|
|
2960
|
+
* The type of forwarder destination (defaults to 'forward')
|
|
2964
2961
|
*/
|
|
2965
2962
|
export declare type HostingEmailForwarderAddBodyDestinationType = typeof HostingEmailForwarderAddBodyDestinationType[keyof typeof HostingEmailForwarderAddBodyDestinationType];
|
|
2966
2963
|
export declare const HostingEmailForwarderAddBodyDestinationType: {
|
|
2967
|
-
readonly
|
|
2964
|
+
readonly domainalias: "domainalias";
|
|
2965
|
+
readonly alias: "alias";
|
|
2966
|
+
readonly alias_unknown: "alias_unknown";
|
|
2968
2967
|
readonly discard: "discard";
|
|
2969
|
-
readonly
|
|
2970
|
-
readonly email: "email";
|
|
2968
|
+
readonly forward: "forward";
|
|
2971
2969
|
readonly pipe: "pipe";
|
|
2972
|
-
readonly
|
|
2970
|
+
readonly system_forward: "system_forward";
|
|
2973
2971
|
};
|
|
2974
2972
|
export declare type HostingEmailForwarderAddBody = {
|
|
2975
|
-
/** The
|
|
2976
|
-
destination
|
|
2977
|
-
/** The type of forwarder destination (defaults to '
|
|
2973
|
+
/** The destination email address where emails should be forwarded to */
|
|
2974
|
+
destination: string;
|
|
2975
|
+
/** The type of forwarder destination (defaults to 'forward') */
|
|
2978
2976
|
destination_type: HostingEmailForwarderAddBodyDestinationType;
|
|
2979
2977
|
/** The source (email address or domain) of the forwarder being added */
|
|
2980
2978
|
source: string;
|
package/src/index.schemas.js
CHANGED
|
@@ -211,12 +211,13 @@ export const HostingEmailForwarderAddBodyType = {
|
|
|
211
211
|
};
|
|
212
212
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
213
213
|
export const HostingEmailForwarderAddBodyDestinationType = {
|
|
214
|
-
|
|
214
|
+
domainalias: 'domainalias',
|
|
215
|
+
alias: 'alias',
|
|
216
|
+
alias_unknown: 'alias_unknown',
|
|
215
217
|
discard: 'discard',
|
|
216
|
-
|
|
217
|
-
email: 'email',
|
|
218
|
+
forward: 'forward',
|
|
218
219
|
pipe: 'pipe',
|
|
219
|
-
|
|
220
|
+
system_forward: 'system_forward',
|
|
220
221
|
};
|
|
221
222
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
222
223
|
export const HostingEmailForwardersListType = {
|