@newfold/huapi-js 2.1750.0 → 2.1766.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 +152 -1
- package/src/index.js +115 -1
- package/src/index.msw.d.ts +11 -1
- package/src/index.msw.js +63 -3
- package/src/index.schemas.d.ts +237 -182
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, AccountFeatures200, AccountFeaturesParams, 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, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, 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, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, 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, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, 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, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, 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, SitesJetpackPurchase200, 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, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, 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, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, 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, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, 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, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, 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, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, 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, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, 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, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, 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, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, 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
|
/**
|
|
@@ -4870,6 +4870,37 @@ export declare const useHostingOnboardingDataUpdate: <TError = AxiosError<unknow
|
|
|
4870
4870
|
hostingId: string;
|
|
4871
4871
|
data: HostingOnboardingDataUpdateBody;
|
|
4872
4872
|
}, TContext>;
|
|
4873
|
+
/**
|
|
4874
|
+
* Updates the hosting account password for the specified hosting account.
|
|
4875
|
+
* @summary Update the hosting account password
|
|
4876
|
+
*/
|
|
4877
|
+
export declare const hostingPasswordUpdate: (hostingId: string, hostingPasswordUpdateBody: HostingPasswordUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingPasswordUpdate200>>;
|
|
4878
|
+
export declare const getHostingPasswordUpdateMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
4879
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingPasswordUpdate200, any>, TError, {
|
|
4880
|
+
hostingId: string;
|
|
4881
|
+
data: HostingPasswordUpdateBody;
|
|
4882
|
+
}, TContext> | undefined;
|
|
4883
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
4884
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingPasswordUpdate200, any>, TError, {
|
|
4885
|
+
hostingId: string;
|
|
4886
|
+
data: HostingPasswordUpdateBody;
|
|
4887
|
+
}, TContext>;
|
|
4888
|
+
export declare type HostingPasswordUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof hostingPasswordUpdate>>>;
|
|
4889
|
+
export declare type HostingPasswordUpdateMutationBody = HostingPasswordUpdateBody;
|
|
4890
|
+
export declare type HostingPasswordUpdateMutationError = AxiosError<unknown>;
|
|
4891
|
+
/**
|
|
4892
|
+
* @summary Update the hosting account password
|
|
4893
|
+
*/
|
|
4894
|
+
export declare const useHostingPasswordUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
4895
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingPasswordUpdate200, any>, TError, {
|
|
4896
|
+
hostingId: string;
|
|
4897
|
+
data: HostingPasswordUpdateBody;
|
|
4898
|
+
}, TContext> | undefined;
|
|
4899
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
4900
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingPasswordUpdate200, any>, TError, {
|
|
4901
|
+
hostingId: string;
|
|
4902
|
+
data: HostingPasswordUpdateBody;
|
|
4903
|
+
}, TContext>;
|
|
4873
4904
|
/**
|
|
4874
4905
|
* Generate account password
|
|
4875
4906
|
* @summary Generate account password
|
|
@@ -6795,6 +6826,126 @@ export declare const useSitesPerformanceEndurancePageCache: <TError = AxiosError
|
|
|
6795
6826
|
} | undefined) => UseMutationResult<AxiosResponse<SitesPerformanceEndurancePageCache200, any>, TError, {
|
|
6796
6827
|
siteId: number;
|
|
6797
6828
|
}, TContext>;
|
|
6829
|
+
/**
|
|
6830
|
+
* Update the redis object cache
|
|
6831
|
+
* @summary Toggle redis object caching for a site
|
|
6832
|
+
*/
|
|
6833
|
+
export declare const sitesPerformanceRedisToggle: (siteId: number, sitesPerformanceRedisToggleBody: SitesPerformanceRedisToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceRedisToggle200>>;
|
|
6834
|
+
export declare const getSitesPerformanceRedisToggleMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6835
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceRedisToggle200, any>, TError, {
|
|
6836
|
+
siteId: number;
|
|
6837
|
+
data: SitesPerformanceRedisToggleBody;
|
|
6838
|
+
}, TContext> | undefined;
|
|
6839
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6840
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SitesPerformanceRedisToggle200, any>, TError, {
|
|
6841
|
+
siteId: number;
|
|
6842
|
+
data: SitesPerformanceRedisToggleBody;
|
|
6843
|
+
}, TContext>;
|
|
6844
|
+
export declare type SitesPerformanceRedisToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceRedisToggle>>>;
|
|
6845
|
+
export declare type SitesPerformanceRedisToggleMutationBody = SitesPerformanceRedisToggleBody;
|
|
6846
|
+
export declare type SitesPerformanceRedisToggleMutationError = AxiosError<unknown>;
|
|
6847
|
+
/**
|
|
6848
|
+
* @summary Toggle redis object caching for a site
|
|
6849
|
+
*/
|
|
6850
|
+
export declare const useSitesPerformanceRedisToggle: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6851
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceRedisToggle200, any>, TError, {
|
|
6852
|
+
siteId: number;
|
|
6853
|
+
data: SitesPerformanceRedisToggleBody;
|
|
6854
|
+
}, TContext> | undefined;
|
|
6855
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6856
|
+
} | undefined) => UseMutationResult<AxiosResponse<SitesPerformanceRedisToggle200, any>, TError, {
|
|
6857
|
+
siteId: number;
|
|
6858
|
+
data: SitesPerformanceRedisToggleBody;
|
|
6859
|
+
}, TContext>;
|
|
6860
|
+
/**
|
|
6861
|
+
* Get state of redis object caching for a site
|
|
6862
|
+
* @summary Get state of redis object caching for a site
|
|
6863
|
+
*/
|
|
6864
|
+
export declare const sitesPerformanceRedisStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceRedisStatus200>>;
|
|
6865
|
+
export declare const getSitesPerformanceRedisStatusQueryKey: (siteId: number) => readonly [`/v1/sites/${number}/performance/redis`];
|
|
6866
|
+
export declare const getSitesPerformanceRedisStatusQueryOptions: <TData = AxiosResponse<SitesPerformanceRedisStatus200, any>, TError = AxiosError<unknown, any>>(siteId: number, options?: {
|
|
6867
|
+
query?: Partial<UseQueryOptions<AxiosResponse<SitesPerformanceRedisStatus200, any>, TError, TData, QueryKey>> | undefined;
|
|
6868
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6869
|
+
} | undefined) => UseQueryOptions<AxiosResponse<SitesPerformanceRedisStatus200, any>, TError, TData, QueryKey> & {
|
|
6870
|
+
queryKey: QueryKey;
|
|
6871
|
+
};
|
|
6872
|
+
export declare type SitesPerformanceRedisStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>>;
|
|
6873
|
+
export declare type SitesPerformanceRedisStatusQueryError = AxiosError<unknown>;
|
|
6874
|
+
export declare function useSitesPerformanceRedisStatus<TData = Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError = AxiosError<unknown>>(siteId: number, options: {
|
|
6875
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError, TData>, 'initialData'>;
|
|
6876
|
+
axios?: AxiosRequestConfig;
|
|
6877
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
6878
|
+
queryKey: QueryKey;
|
|
6879
|
+
};
|
|
6880
|
+
export declare function useSitesPerformanceRedisStatus<TData = Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError = AxiosError<unknown>>(siteId: number, options?: {
|
|
6881
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError, TData>, 'initialData'>;
|
|
6882
|
+
axios?: AxiosRequestConfig;
|
|
6883
|
+
}): UseQueryResult<TData, TError> & {
|
|
6884
|
+
queryKey: QueryKey;
|
|
6885
|
+
};
|
|
6886
|
+
export declare function useSitesPerformanceRedisStatus<TData = Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError = AxiosError<unknown>>(siteId: number, options?: {
|
|
6887
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesPerformanceRedisStatus>>, TError, TData>>;
|
|
6888
|
+
axios?: AxiosRequestConfig;
|
|
6889
|
+
}): UseQueryResult<TData, TError> & {
|
|
6890
|
+
queryKey: QueryKey;
|
|
6891
|
+
};
|
|
6892
|
+
/**
|
|
6893
|
+
* Uninstall redis object caching for a site
|
|
6894
|
+
* @summary Uninstall redis object caching for a site
|
|
6895
|
+
*/
|
|
6896
|
+
export declare const sitesPerformanceRedisUninstall: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceRedisUninstall200>>;
|
|
6897
|
+
export declare const getSitesPerformanceRedisUninstallMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6898
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceRedisUninstall200, any>, TError, {
|
|
6899
|
+
siteId: number;
|
|
6900
|
+
}, TContext> | undefined;
|
|
6901
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6902
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SitesPerformanceRedisUninstall200, any>, TError, {
|
|
6903
|
+
siteId: number;
|
|
6904
|
+
}, TContext>;
|
|
6905
|
+
export declare type SitesPerformanceRedisUninstallMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceRedisUninstall>>>;
|
|
6906
|
+
export declare type SitesPerformanceRedisUninstallMutationError = AxiosError<unknown>;
|
|
6907
|
+
/**
|
|
6908
|
+
* @summary Uninstall redis object caching for a site
|
|
6909
|
+
*/
|
|
6910
|
+
export declare const useSitesPerformanceRedisUninstall: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6911
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceRedisUninstall200, any>, TError, {
|
|
6912
|
+
siteId: number;
|
|
6913
|
+
}, TContext> | undefined;
|
|
6914
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6915
|
+
} | undefined) => UseMutationResult<AxiosResponse<SitesPerformanceRedisUninstall200, any>, TError, {
|
|
6916
|
+
siteId: number;
|
|
6917
|
+
}, TContext>;
|
|
6918
|
+
/**
|
|
6919
|
+
* Purge redis object caching for a site
|
|
6920
|
+
* @summary Purge redis object caching for a site
|
|
6921
|
+
*/
|
|
6922
|
+
export declare const sitesPerformanceRedisPurge: (siteId: number, sitesPerformanceRedisPurgeBody: SitesPerformanceRedisPurgeBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceRedisPurge200>>;
|
|
6923
|
+
export declare const getSitesPerformanceRedisPurgeMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6924
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceRedisPurge200, any>, TError, {
|
|
6925
|
+
siteId: number;
|
|
6926
|
+
data: SitesPerformanceRedisPurgeBody;
|
|
6927
|
+
}, TContext> | undefined;
|
|
6928
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6929
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SitesPerformanceRedisPurge200, any>, TError, {
|
|
6930
|
+
siteId: number;
|
|
6931
|
+
data: SitesPerformanceRedisPurgeBody;
|
|
6932
|
+
}, TContext>;
|
|
6933
|
+
export declare type SitesPerformanceRedisPurgeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceRedisPurge>>>;
|
|
6934
|
+
export declare type SitesPerformanceRedisPurgeMutationBody = SitesPerformanceRedisPurgeBody;
|
|
6935
|
+
export declare type SitesPerformanceRedisPurgeMutationError = AxiosError<unknown>;
|
|
6936
|
+
/**
|
|
6937
|
+
* @summary Purge redis object caching for a site
|
|
6938
|
+
*/
|
|
6939
|
+
export declare const useSitesPerformanceRedisPurge: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6940
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesPerformanceRedisPurge200, any>, TError, {
|
|
6941
|
+
siteId: number;
|
|
6942
|
+
data: SitesPerformanceRedisPurgeBody;
|
|
6943
|
+
}, TContext> | undefined;
|
|
6944
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6945
|
+
} | undefined) => UseMutationResult<AxiosResponse<SitesPerformanceRedisPurge200, any>, TError, {
|
|
6946
|
+
siteId: number;
|
|
6947
|
+
data: SitesPerformanceRedisPurgeBody;
|
|
6948
|
+
}, TContext>;
|
|
6798
6949
|
/**
|
|
6799
6950
|
* Create php info for a site
|
|
6800
6951
|
* @summary Create php info for a site
|
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.1766.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -3742,6 +3742,28 @@ export const useHostingOnboardingDataUpdate = (options) => {
|
|
|
3742
3742
|
const mutationOptions = getHostingOnboardingDataUpdateMutationOptions(options);
|
|
3743
3743
|
return useMutation(mutationOptions);
|
|
3744
3744
|
};
|
|
3745
|
+
/**
|
|
3746
|
+
* Updates the hosting account password for the specified hosting account.
|
|
3747
|
+
* @summary Update the hosting account password
|
|
3748
|
+
*/
|
|
3749
|
+
export const hostingPasswordUpdate = (hostingId, hostingPasswordUpdateBody, options) => {
|
|
3750
|
+
return axios.put(`/v1/hosting/${hostingId}/password`, hostingPasswordUpdateBody, options);
|
|
3751
|
+
};
|
|
3752
|
+
export const getHostingPasswordUpdateMutationOptions = (options) => {
|
|
3753
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
3754
|
+
const mutationFn = (props) => {
|
|
3755
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
3756
|
+
return hostingPasswordUpdate(hostingId, data, axiosOptions);
|
|
3757
|
+
};
|
|
3758
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
3759
|
+
};
|
|
3760
|
+
/**
|
|
3761
|
+
* @summary Update the hosting account password
|
|
3762
|
+
*/
|
|
3763
|
+
export const useHostingPasswordUpdate = (options) => {
|
|
3764
|
+
const mutationOptions = getHostingPasswordUpdateMutationOptions(options);
|
|
3765
|
+
return useMutation(mutationOptions);
|
|
3766
|
+
};
|
|
3745
3767
|
/**
|
|
3746
3768
|
* Generate account password
|
|
3747
3769
|
* @summary Generate account password
|
|
@@ -5242,6 +5264,98 @@ export const useSitesPerformanceEndurancePageCache = (options) => {
|
|
|
5242
5264
|
const mutationOptions = getSitesPerformanceEndurancePageCacheMutationOptions(options);
|
|
5243
5265
|
return useMutation(mutationOptions);
|
|
5244
5266
|
};
|
|
5267
|
+
/**
|
|
5268
|
+
* Update the redis object cache
|
|
5269
|
+
* @summary Toggle redis object caching for a site
|
|
5270
|
+
*/
|
|
5271
|
+
export const sitesPerformanceRedisToggle = (siteId, sitesPerformanceRedisToggleBody, options) => {
|
|
5272
|
+
return axios.put(`/v1/sites/${siteId}/performance/redis`, sitesPerformanceRedisToggleBody, options);
|
|
5273
|
+
};
|
|
5274
|
+
export const getSitesPerformanceRedisToggleMutationOptions = (options) => {
|
|
5275
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5276
|
+
const mutationFn = (props) => {
|
|
5277
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
5278
|
+
return sitesPerformanceRedisToggle(siteId, data, axiosOptions);
|
|
5279
|
+
};
|
|
5280
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5281
|
+
};
|
|
5282
|
+
/**
|
|
5283
|
+
* @summary Toggle redis object caching for a site
|
|
5284
|
+
*/
|
|
5285
|
+
export const useSitesPerformanceRedisToggle = (options) => {
|
|
5286
|
+
const mutationOptions = getSitesPerformanceRedisToggleMutationOptions(options);
|
|
5287
|
+
return useMutation(mutationOptions);
|
|
5288
|
+
};
|
|
5289
|
+
/**
|
|
5290
|
+
* Get state of redis object caching for a site
|
|
5291
|
+
* @summary Get state of redis object caching for a site
|
|
5292
|
+
*/
|
|
5293
|
+
export const sitesPerformanceRedisStatus = (siteId, options) => {
|
|
5294
|
+
return axios.get(`/v1/sites/${siteId}/performance/redis`, options);
|
|
5295
|
+
};
|
|
5296
|
+
export const getSitesPerformanceRedisStatusQueryKey = (siteId) => {
|
|
5297
|
+
return [`/v1/sites/${siteId}/performance/redis`];
|
|
5298
|
+
};
|
|
5299
|
+
export const getSitesPerformanceRedisStatusQueryOptions = (siteId, options) => {
|
|
5300
|
+
var _a;
|
|
5301
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5302
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesPerformanceRedisStatusQueryKey(siteId);
|
|
5303
|
+
const queryFn = ({ signal }) => sitesPerformanceRedisStatus(siteId, Object.assign({ signal }, axiosOptions));
|
|
5304
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions);
|
|
5305
|
+
};
|
|
5306
|
+
/**
|
|
5307
|
+
* @summary Get state of redis object caching for a site
|
|
5308
|
+
*/
|
|
5309
|
+
export function useSitesPerformanceRedisStatus(siteId, options) {
|
|
5310
|
+
const queryOptions = getSitesPerformanceRedisStatusQueryOptions(siteId, options);
|
|
5311
|
+
const query = useQuery(queryOptions);
|
|
5312
|
+
query.queryKey = queryOptions.queryKey;
|
|
5313
|
+
return query;
|
|
5314
|
+
}
|
|
5315
|
+
/**
|
|
5316
|
+
* Uninstall redis object caching for a site
|
|
5317
|
+
* @summary Uninstall redis object caching for a site
|
|
5318
|
+
*/
|
|
5319
|
+
export const sitesPerformanceRedisUninstall = (siteId, options) => {
|
|
5320
|
+
return axios.delete(`/v1/sites/${siteId}/performance/redis`, options);
|
|
5321
|
+
};
|
|
5322
|
+
export const getSitesPerformanceRedisUninstallMutationOptions = (options) => {
|
|
5323
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5324
|
+
const mutationFn = (props) => {
|
|
5325
|
+
const { siteId } = props !== null && props !== void 0 ? props : {};
|
|
5326
|
+
return sitesPerformanceRedisUninstall(siteId, axiosOptions);
|
|
5327
|
+
};
|
|
5328
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5329
|
+
};
|
|
5330
|
+
/**
|
|
5331
|
+
* @summary Uninstall redis object caching for a site
|
|
5332
|
+
*/
|
|
5333
|
+
export const useSitesPerformanceRedisUninstall = (options) => {
|
|
5334
|
+
const mutationOptions = getSitesPerformanceRedisUninstallMutationOptions(options);
|
|
5335
|
+
return useMutation(mutationOptions);
|
|
5336
|
+
};
|
|
5337
|
+
/**
|
|
5338
|
+
* Purge redis object caching for a site
|
|
5339
|
+
* @summary Purge redis object caching for a site
|
|
5340
|
+
*/
|
|
5341
|
+
export const sitesPerformanceRedisPurge = (siteId, sitesPerformanceRedisPurgeBody, options) => {
|
|
5342
|
+
return axios.post(`/v1/sites/${siteId}/performance/redis`, sitesPerformanceRedisPurgeBody, options);
|
|
5343
|
+
};
|
|
5344
|
+
export const getSitesPerformanceRedisPurgeMutationOptions = (options) => {
|
|
5345
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5346
|
+
const mutationFn = (props) => {
|
|
5347
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
5348
|
+
return sitesPerformanceRedisPurge(siteId, data, axiosOptions);
|
|
5349
|
+
};
|
|
5350
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5351
|
+
};
|
|
5352
|
+
/**
|
|
5353
|
+
* @summary Purge redis object caching for a site
|
|
5354
|
+
*/
|
|
5355
|
+
export const useSitesPerformanceRedisPurge = (options) => {
|
|
5356
|
+
const mutationOptions = getSitesPerformanceRedisPurgeMutationOptions(options);
|
|
5357
|
+
return useMutation(mutationOptions);
|
|
5358
|
+
};
|
|
5245
5359
|
/**
|
|
5246
5360
|
* Create php info for a site
|
|
5247
5361
|
* @summary Create php info for a site
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, 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, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, 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, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, 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, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, 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, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, 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, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -156,6 +156,7 @@ export declare const getHostingMigrationSiteScanStatusResponseMock: (overrideRes
|
|
|
156
156
|
export declare const getHostingNameserversResponseMock: (overrideResponse?: Partial<HostingNameservers200>) => HostingNameservers200;
|
|
157
157
|
export declare const getHostingOnboardingDataResponseMock: (overrideResponse?: Partial<HostingOnboardingData200>) => HostingOnboardingData200;
|
|
158
158
|
export declare const getHostingOnboardingDataUpdateResponseMock: (overrideResponse?: Partial<HostingOnboardingDataUpdate200>) => HostingOnboardingDataUpdate200;
|
|
159
|
+
export declare const getHostingPasswordUpdateResponseMock: (overrideResponse?: Partial<HostingPasswordUpdate200>) => HostingPasswordUpdate200;
|
|
159
160
|
export declare const getPasswordGenerateResponseMock: (overrideResponse?: Partial<PasswordGenerate200>) => PasswordGenerate200;
|
|
160
161
|
export declare const getPasswordScoreResponseMock: (overrideResponse?: Partial<PasswordScore200>) => PasswordScore200;
|
|
161
162
|
export declare const getPhpErrorsResponseMock: (overrideResponse?: Partial<PhpErrors200>) => PhpErrors200;
|
|
@@ -214,6 +215,10 @@ export declare const getSitesPerformanceEdgecacheResponseMock: (overrideResponse
|
|
|
214
215
|
export declare const getSitesPerformanceEnduranceCacheLevelStatusResponseMock: (overrideResponse?: Partial<SitesPerformanceEnduranceCacheLevelStatus200>) => SitesPerformanceEnduranceCacheLevelStatus200;
|
|
215
216
|
export declare const getSitesPerformanceEnduranceCacheLevelResponseMock: (overrideResponse?: Partial<SitesPerformanceEnduranceCacheLevel200>) => SitesPerformanceEnduranceCacheLevel200;
|
|
216
217
|
export declare const getSitesPerformanceEndurancePageCacheResponseMock: (overrideResponse?: Partial<SitesPerformanceEndurancePageCache200>) => SitesPerformanceEndurancePageCache200;
|
|
218
|
+
export declare const getSitesPerformanceRedisToggleResponseMock: (overrideResponse?: Partial<SitesPerformanceRedisToggle200>) => SitesPerformanceRedisToggle200;
|
|
219
|
+
export declare const getSitesPerformanceRedisStatusResponseMock: (overrideResponse?: Partial<SitesPerformanceRedisStatus200>) => SitesPerformanceRedisStatus200;
|
|
220
|
+
export declare const getSitesPerformanceRedisUninstallResponseMock: (overrideResponse?: Partial<SitesPerformanceRedisUninstall200>) => SitesPerformanceRedisUninstall200;
|
|
221
|
+
export declare const getSitesPerformanceRedisPurgeResponseMock: (overrideResponse?: Partial<SitesPerformanceRedisPurge200>) => SitesPerformanceRedisPurge200;
|
|
217
222
|
export declare const getCreatePhpInfoResponseMock: (overrideResponse?: Partial<CreatePhpInfo200>) => CreatePhpInfo200;
|
|
218
223
|
export declare const getSitePluginsResponseMock: (overrideResponse?: Partial<SitePlugins200>) => SitePlugins200;
|
|
219
224
|
export declare const getSitePluginUpdateResponseMock: (overrideResponse?: Partial<SitePluginUpdate200>) => SitePluginUpdate200;
|
|
@@ -437,6 +442,7 @@ export declare const getHostingMigrationSiteScanStatusMockHandler: (overrideResp
|
|
|
437
442
|
export declare const getHostingNameserversMockHandler: (overrideResponse?: HostingNameservers200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingNameservers200> | HostingNameservers200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
438
443
|
export declare const getHostingOnboardingDataMockHandler: (overrideResponse?: HostingOnboardingData200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingOnboardingData200> | HostingOnboardingData200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
439
444
|
export declare const getHostingOnboardingDataUpdateMockHandler: (overrideResponse?: HostingOnboardingDataUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingOnboardingDataUpdate200> | HostingOnboardingDataUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
445
|
+
export declare const getHostingPasswordUpdateMockHandler: (overrideResponse?: HostingPasswordUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingPasswordUpdate200> | HostingPasswordUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
440
446
|
export declare const getPasswordGenerateMockHandler: (overrideResponse?: PasswordGenerate200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PasswordGenerate200> | PasswordGenerate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
441
447
|
export declare const getPasswordScoreMockHandler: (overrideResponse?: PasswordScore200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PasswordScore200> | PasswordScore200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
442
448
|
export declare const getPhpErrorsMockHandler: (overrideResponse?: PhpErrors200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PhpErrors200> | PhpErrors200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -497,6 +503,10 @@ export declare const getSitesPerformanceEdgecacheMockHandler: (overrideResponse?
|
|
|
497
503
|
export declare const getSitesPerformanceEnduranceCacheLevelStatusMockHandler: (overrideResponse?: SitesPerformanceEnduranceCacheLevelStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesPerformanceEnduranceCacheLevelStatus200> | SitesPerformanceEnduranceCacheLevelStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
498
504
|
export declare const getSitesPerformanceEnduranceCacheLevelMockHandler: (overrideResponse?: SitesPerformanceEnduranceCacheLevel200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesPerformanceEnduranceCacheLevel200> | SitesPerformanceEnduranceCacheLevel200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
499
505
|
export declare const getSitesPerformanceEndurancePageCacheMockHandler: (overrideResponse?: SitesPerformanceEndurancePageCache200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<SitesPerformanceEndurancePageCache200> | SitesPerformanceEndurancePageCache200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
506
|
+
export declare const getSitesPerformanceRedisToggleMockHandler: (overrideResponse?: SitesPerformanceRedisToggle200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<SitesPerformanceRedisToggle200> | SitesPerformanceRedisToggle200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
507
|
+
export declare const getSitesPerformanceRedisStatusMockHandler: (overrideResponse?: SitesPerformanceRedisStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesPerformanceRedisStatus200> | SitesPerformanceRedisStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
508
|
+
export declare const getSitesPerformanceRedisUninstallMockHandler: (overrideResponse?: SitesPerformanceRedisUninstall200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<SitesPerformanceRedisUninstall200> | SitesPerformanceRedisUninstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
509
|
+
export declare const getSitesPerformanceRedisPurgeMockHandler: (overrideResponse?: SitesPerformanceRedisPurge200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesPerformanceRedisPurge200> | SitesPerformanceRedisPurge200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
500
510
|
export declare const getCreatePhpInfoMockHandler: (overrideResponse?: CreatePhpInfo200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CreatePhpInfo200> | CreatePhpInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
501
511
|
export declare const getSitePluginsMockHandler: (overrideResponse?: SitePlugins200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitePlugins200> | SitePlugins200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
502
512
|
export declare const getSitePluginUpdateMockHandler: (overrideResponse?: SitePluginUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<SitePluginUpdate200> | SitePluginUpdate200) | 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.1766.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -143,7 +143,7 @@ export const getHostingEmailSetupInfoResponseMock = (overrideResponse = {}) => (
|
|
|
143
143
|
export const getHostingSendEmailSetupInfoResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
144
144
|
export const getHostingFixownershipResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
145
145
|
export const getHostingFtpListResponseMock = (overrideResponse = {}) => (Object.assign({ ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), server_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), special_ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
146
|
-
export const getHostingFtpAddResponseMock = (overrideResponse = {}) => (Object.assign({
|
|
146
|
+
export const getHostingFtpAddResponseMock = (overrideResponse = {}) => (Object.assign({ user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
147
147
|
export const getHostingFtpUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
148
148
|
export const getHostingFtpResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
149
149
|
export const getHostingRepoListResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ branch: faker.helpers.arrayElement([faker.word.sample(), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), repo_url: faker.helpers.arrayElement([faker.word.sample(), undefined]) })));
|
|
@@ -167,6 +167,7 @@ export const getHostingMigrationSiteScanStatusResponseMock = (overrideResponse =
|
|
|
167
167
|
export const getHostingNameserversResponseMock = (overrideResponse = {}) => (Object.assign({ nameservers: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())) }, overrideResponse));
|
|
168
168
|
export const getHostingOnboardingDataResponseMock = (overrideResponse = {}) => (Object.assign({ completed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
169
169
|
export const getHostingOnboardingDataUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ completed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
170
|
+
export const getHostingPasswordUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ updated: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
170
171
|
export const getPasswordGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ password: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
171
172
|
export const getPasswordScoreResponseMock = (overrideResponse = {}) => (Object.assign({ score: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
172
173
|
export const getPhpErrorsResponseMock = (overrideResponse = {}) => (Object.assign({ content: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
@@ -247,6 +248,10 @@ export const getSitesPerformanceEdgecacheResponseMock = (overrideResponse = {})
|
|
|
247
248
|
export const getSitesPerformanceEnduranceCacheLevelStatusResponseMock = (overrideResponse = {}) => (Object.assign({ endurance_cache_level: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
248
249
|
export const getSitesPerformanceEnduranceCacheLevelResponseMock = (overrideResponse = {}) => (Object.assign({ options: faker.helpers.arrayElement([{}, undefined]) }, overrideResponse));
|
|
249
250
|
export const getSitesPerformanceEndurancePageCacheResponseMock = (overrideResponse = {}) => (Object.assign({ result: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
251
|
+
export const getSitesPerformanceRedisToggleResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
252
|
+
export const getSitesPerformanceRedisStatusResponseMock = (overrideResponse = {}) => (Object.assign({ obj_cache_enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), obj_cache_installed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), redis_service_active: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
253
|
+
export const getSitesPerformanceRedisUninstallResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
254
|
+
export const getSitesPerformanceRedisPurgeResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
250
255
|
export const getCreatePhpInfoResponseMock = (overrideResponse = {}) => (Object.assign({ html: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
251
256
|
export const getSitePluginsResponseMock = (overrideResponse = {}) => (Object.assign({ auto_update: faker.datatype.boolean(), plugins: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.word.sample(), status: faker.word.sample(), title: faker.word.sample(), update: faker.datatype.boolean(), version: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), subtype: faker.word.sample() }, overrideResponse));
|
|
252
257
|
export const getSitePluginUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.word.sample(), status: faker.word.sample() }, overrideResponse));
|
|
@@ -281,7 +286,7 @@ export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assi
|
|
|
281
286
|
export const getSiteUsersResponseMock = (overrideResponse = {}) => (Object.assign({ users: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ display_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.number.int({ min: undefined, max: undefined }), meta: faker.helpers.arrayElement([{ maestro_web_pro: faker.helpers.arrayElement([faker.word.sample(), undefined]), maestro_wpp_identifier: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), post_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), role: faker.word.sample(), user_email: faker.word.sample(), user_id: faker.number.int({ min: undefined, max: undefined }), user_login: faker.word.sample(), user_nicename: faker.word.sample() })) }, overrideResponse));
|
|
282
287
|
export const getSitesVersionResponseMock = (overrideResponse = {}) => (Object.assign({ current: faker.helpers.arrayElement([faker.word.sample(), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), update: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
283
288
|
export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
284
|
-
export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), capability_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_panel_mail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
|
|
289
|
+
export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), application: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), capability_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_panel_mail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
|
|
285
290
|
export const getUserHostingOverviewResponseMock = (overrideResponse = {}) => (Object.assign({ has_unlimited_sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), hosting_accounts: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), max_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
286
291
|
export const getAddonsSitelockSsoV2ResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
287
292
|
export const getBackupCreateV2ResponseMock = (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));
|
|
@@ -1876,6 +1881,16 @@ export const getHostingOnboardingDataUpdateMockHandler = (overrideResponse) => {
|
|
|
1876
1881
|
});
|
|
1877
1882
|
}));
|
|
1878
1883
|
};
|
|
1884
|
+
export const getHostingPasswordUpdateMockHandler = (overrideResponse) => {
|
|
1885
|
+
return http.put('*/v1/hosting/:hostingId/password', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1886
|
+
yield delay(0);
|
|
1887
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1888
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1889
|
+
: getHostingPasswordUpdateResponseMock()), { status: 200,
|
|
1890
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1891
|
+
});
|
|
1892
|
+
}));
|
|
1893
|
+
};
|
|
1879
1894
|
export const getPasswordGenerateMockHandler = (overrideResponse) => {
|
|
1880
1895
|
return http.get('*/v1/hosting/:hostingId/password/generate', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1881
1896
|
yield delay(0);
|
|
@@ -2476,6 +2491,46 @@ export const getSitesPerformanceEndurancePageCacheMockHandler = (overrideRespons
|
|
|
2476
2491
|
});
|
|
2477
2492
|
}));
|
|
2478
2493
|
};
|
|
2494
|
+
export const getSitesPerformanceRedisToggleMockHandler = (overrideResponse) => {
|
|
2495
|
+
return http.put('*/v1/sites/:siteId/performance/redis', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2496
|
+
yield delay(0);
|
|
2497
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2498
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2499
|
+
: getSitesPerformanceRedisToggleResponseMock()), { status: 200,
|
|
2500
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2501
|
+
});
|
|
2502
|
+
}));
|
|
2503
|
+
};
|
|
2504
|
+
export const getSitesPerformanceRedisStatusMockHandler = (overrideResponse) => {
|
|
2505
|
+
return http.get('*/v1/sites/:siteId/performance/redis', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2506
|
+
yield delay(0);
|
|
2507
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2508
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2509
|
+
: getSitesPerformanceRedisStatusResponseMock()), { status: 200,
|
|
2510
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2511
|
+
});
|
|
2512
|
+
}));
|
|
2513
|
+
};
|
|
2514
|
+
export const getSitesPerformanceRedisUninstallMockHandler = (overrideResponse) => {
|
|
2515
|
+
return http.delete('*/v1/sites/:siteId/performance/redis', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2516
|
+
yield delay(0);
|
|
2517
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2518
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2519
|
+
: getSitesPerformanceRedisUninstallResponseMock()), { status: 200,
|
|
2520
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2521
|
+
});
|
|
2522
|
+
}));
|
|
2523
|
+
};
|
|
2524
|
+
export const getSitesPerformanceRedisPurgeMockHandler = (overrideResponse) => {
|
|
2525
|
+
return http.post('*/v1/sites/:siteId/performance/redis', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2526
|
+
yield delay(0);
|
|
2527
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2528
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2529
|
+
: getSitesPerformanceRedisPurgeResponseMock()), { status: 200,
|
|
2530
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2531
|
+
});
|
|
2532
|
+
}));
|
|
2533
|
+
};
|
|
2479
2534
|
export const getCreatePhpInfoMockHandler = (overrideResponse) => {
|
|
2480
2535
|
return http.post('*/v1/sites/:siteId/php-info', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2481
2536
|
yield delay(0);
|
|
@@ -3303,6 +3358,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3303
3358
|
getHostingNameserversMockHandler(),
|
|
3304
3359
|
getHostingOnboardingDataMockHandler(),
|
|
3305
3360
|
getHostingOnboardingDataUpdateMockHandler(),
|
|
3361
|
+
getHostingPasswordUpdateMockHandler(),
|
|
3306
3362
|
getPasswordGenerateMockHandler(),
|
|
3307
3363
|
getPasswordScoreMockHandler(),
|
|
3308
3364
|
getPhpErrorsMockHandler(),
|
|
@@ -3363,6 +3419,10 @@ export const getHostingUAPIMock = () => [
|
|
|
3363
3419
|
getSitesPerformanceEnduranceCacheLevelStatusMockHandler(),
|
|
3364
3420
|
getSitesPerformanceEnduranceCacheLevelMockHandler(),
|
|
3365
3421
|
getSitesPerformanceEndurancePageCacheMockHandler(),
|
|
3422
|
+
getSitesPerformanceRedisToggleMockHandler(),
|
|
3423
|
+
getSitesPerformanceRedisStatusMockHandler(),
|
|
3424
|
+
getSitesPerformanceRedisUninstallMockHandler(),
|
|
3425
|
+
getSitesPerformanceRedisPurgeMockHandler(),
|
|
3366
3426
|
getCreatePhpInfoMockHandler(),
|
|
3367
3427
|
getSitePluginsMockHandler(),
|
|
3368
3428
|
getSitePluginUpdateMockHandler(),
|
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.1766.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -437,63 +437,6 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
437
437
|
/** A list of staging sites of the current site */
|
|
438
438
|
sites?: number[];
|
|
439
439
|
} | null;
|
|
440
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
441
|
-
/** @nullable */
|
|
442
|
-
available?: number | null;
|
|
443
|
-
/** @nullable */
|
|
444
|
-
total?: number | null;
|
|
445
|
-
unit?: string;
|
|
446
|
-
/** @nullable */
|
|
447
|
-
used?: number | null;
|
|
448
|
-
};
|
|
449
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
450
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
451
|
-
/** @nullable */
|
|
452
|
-
workers?: number | null;
|
|
453
|
-
};
|
|
454
|
-
/**
|
|
455
|
-
* @nullable
|
|
456
|
-
*/
|
|
457
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
458
|
-
/**
|
|
459
|
-
* The root domain name
|
|
460
|
-
* @nullable
|
|
461
|
-
*/
|
|
462
|
-
base_domain?: string | null;
|
|
463
|
-
/**
|
|
464
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
465
|
-
* @nullable
|
|
466
|
-
*/
|
|
467
|
-
domain?: string | null;
|
|
468
|
-
/**
|
|
469
|
-
* The current pending_url's HAL Domain ID
|
|
470
|
-
* @nullable
|
|
471
|
-
*/
|
|
472
|
-
domain_id?: number | null;
|
|
473
|
-
/** @nullable */
|
|
474
|
-
error?: string | null;
|
|
475
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
476
|
-
is_temp?: boolean;
|
|
477
|
-
/**
|
|
478
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
479
|
-
* @nullable
|
|
480
|
-
*/
|
|
481
|
-
job_failed?: boolean | null;
|
|
482
|
-
/** @nullable */
|
|
483
|
-
stage?: string | null;
|
|
484
|
-
/**
|
|
485
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
486
|
-
* @nullable
|
|
487
|
-
*/
|
|
488
|
-
wp_session?: string | null;
|
|
489
|
-
} | null;
|
|
490
|
-
/**
|
|
491
|
-
* Job ids for the site
|
|
492
|
-
* @nullable
|
|
493
|
-
*/
|
|
494
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
495
|
-
[key: string]: unknown;
|
|
496
|
-
} | null;
|
|
497
440
|
export declare type SitesListV2200ItemsItem = {
|
|
498
441
|
/** @nullable */
|
|
499
442
|
account_back_ref?: string | null;
|
|
@@ -583,6 +526,63 @@ export declare type SitesListV2200 = {
|
|
|
583
526
|
/** total number of sites returned */
|
|
584
527
|
total?: number;
|
|
585
528
|
};
|
|
529
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
530
|
+
/** @nullable */
|
|
531
|
+
available?: number | null;
|
|
532
|
+
/** @nullable */
|
|
533
|
+
total?: number | null;
|
|
534
|
+
unit?: string;
|
|
535
|
+
/** @nullable */
|
|
536
|
+
used?: number | null;
|
|
537
|
+
};
|
|
538
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
539
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
540
|
+
/** @nullable */
|
|
541
|
+
workers?: number | null;
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* @nullable
|
|
545
|
+
*/
|
|
546
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
547
|
+
/**
|
|
548
|
+
* The root domain name
|
|
549
|
+
* @nullable
|
|
550
|
+
*/
|
|
551
|
+
base_domain?: string | null;
|
|
552
|
+
/**
|
|
553
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
554
|
+
* @nullable
|
|
555
|
+
*/
|
|
556
|
+
domain?: string | null;
|
|
557
|
+
/**
|
|
558
|
+
* The current pending_url's HAL Domain ID
|
|
559
|
+
* @nullable
|
|
560
|
+
*/
|
|
561
|
+
domain_id?: number | null;
|
|
562
|
+
/** @nullable */
|
|
563
|
+
error?: string | null;
|
|
564
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
565
|
+
is_temp?: boolean;
|
|
566
|
+
/**
|
|
567
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
568
|
+
* @nullable
|
|
569
|
+
*/
|
|
570
|
+
job_failed?: boolean | null;
|
|
571
|
+
/** @nullable */
|
|
572
|
+
stage?: string | null;
|
|
573
|
+
/**
|
|
574
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
575
|
+
* @nullable
|
|
576
|
+
*/
|
|
577
|
+
wp_session?: string | null;
|
|
578
|
+
} | null;
|
|
579
|
+
/**
|
|
580
|
+
* Job ids for the site
|
|
581
|
+
* @nullable
|
|
582
|
+
*/
|
|
583
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
584
|
+
[key: string]: unknown;
|
|
585
|
+
} | null;
|
|
586
586
|
export declare type SshKeyV2200 = {
|
|
587
587
|
deleted?: number;
|
|
588
588
|
key_name?: string;
|
|
@@ -923,6 +923,12 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
923
923
|
/** The site id to be unassigned */
|
|
924
924
|
site_id: number;
|
|
925
925
|
};
|
|
926
|
+
export declare type HostingDomainsV2200 = {
|
|
927
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
928
|
+
limit?: number;
|
|
929
|
+
page?: number;
|
|
930
|
+
total?: number;
|
|
931
|
+
};
|
|
926
932
|
/**
|
|
927
933
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
928
934
|
* @nullable
|
|
@@ -1059,12 +1065,6 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
1059
1065
|
*/
|
|
1060
1066
|
used_entri?: number | null;
|
|
1061
1067
|
};
|
|
1062
|
-
export declare type HostingDomainsV2200 = {
|
|
1063
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
1064
|
-
limit?: number;
|
|
1065
|
-
page?: number;
|
|
1066
|
-
total?: number;
|
|
1067
|
-
};
|
|
1068
1068
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
1069
1069
|
export declare const HostingDomainsV2TypesItem: {
|
|
1070
1070
|
readonly addon: "addon";
|
|
@@ -1234,70 +1234,6 @@ export declare type UserHostingOverviewParams = {
|
|
|
1234
1234
|
*/
|
|
1235
1235
|
limit?: number;
|
|
1236
1236
|
};
|
|
1237
|
-
export declare type UserHosting200RowsItem = {
|
|
1238
|
-
/** Additional information about the account */
|
|
1239
|
-
account_info?: UserHosting200RowsItemAccountInfo;
|
|
1240
|
-
/** HAL Account back_reference, used to link to the product instance */
|
|
1241
|
-
back_reference?: string;
|
|
1242
|
-
/**
|
|
1243
|
-
* Information from the billing system about this hosting account
|
|
1244
|
-
* @nullable
|
|
1245
|
-
*/
|
|
1246
|
-
billing?: UserHosting200RowsItemBilling;
|
|
1247
|
-
/**
|
|
1248
|
-
* Capability sites associated with the account
|
|
1249
|
-
* @nullable
|
|
1250
|
-
*/
|
|
1251
|
-
capability_sites?: string | null;
|
|
1252
|
-
/**
|
|
1253
|
-
* Feature set name ex: hosting_40s
|
|
1254
|
-
* @nullable
|
|
1255
|
-
*/
|
|
1256
|
-
feature_set?: string | null;
|
|
1257
|
-
/** Whether the product associated with this hosting account has panel mail (True) or not (False) */
|
|
1258
|
-
has_panel_mail?: boolean;
|
|
1259
|
-
/** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
|
|
1260
|
-
is_upgradeable?: boolean;
|
|
1261
|
-
/**
|
|
1262
|
-
* Account limits
|
|
1263
|
-
* @nullable
|
|
1264
|
-
*/
|
|
1265
|
-
limit?: UserHosting200RowsItemLimit;
|
|
1266
|
-
/**
|
|
1267
|
-
* Remote limits for the account
|
|
1268
|
-
* @nullable
|
|
1269
|
-
*/
|
|
1270
|
-
limit_remote?: UserHosting200RowsItemLimitRemote;
|
|
1271
|
-
/**
|
|
1272
|
-
* Package name
|
|
1273
|
-
* @nullable
|
|
1274
|
-
*/
|
|
1275
|
-
package?: string | null;
|
|
1276
|
-
/**
|
|
1277
|
-
* Control panel type
|
|
1278
|
-
* @nullable
|
|
1279
|
-
*/
|
|
1280
|
-
panel?: string | null;
|
|
1281
|
-
/**
|
|
1282
|
-
* Number of sites
|
|
1283
|
-
* @nullable
|
|
1284
|
-
*/
|
|
1285
|
-
sites?: number | null;
|
|
1286
|
-
/**
|
|
1287
|
-
* Usage statistics for non-staging sites
|
|
1288
|
-
* @nullable
|
|
1289
|
-
*/
|
|
1290
|
-
used?: UserHosting200RowsItemUsed;
|
|
1291
|
-
/**
|
|
1292
|
-
* Usage statistics for staging sites
|
|
1293
|
-
* @nullable
|
|
1294
|
-
*/
|
|
1295
|
-
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1296
|
-
};
|
|
1297
|
-
export declare type UserHosting200 = {
|
|
1298
|
-
/** Information for the paginated hosting accounts */
|
|
1299
|
-
rows?: UserHosting200RowsItem[];
|
|
1300
|
-
};
|
|
1301
1237
|
/**
|
|
1302
1238
|
* Usage statistics for staging sites
|
|
1303
1239
|
* @nullable
|
|
@@ -1334,6 +1270,16 @@ export declare type UserHosting200RowsItemUsed = {
|
|
|
1334
1270
|
* @nullable
|
|
1335
1271
|
*/
|
|
1336
1272
|
disk_usage?: number | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Total number of domain
|
|
1275
|
+
* @nullable
|
|
1276
|
+
*/
|
|
1277
|
+
domain?: number | null;
|
|
1278
|
+
/**
|
|
1279
|
+
* Number of files (inodes) used on the hosting account - if 0, unable to retrieve data or unlimited
|
|
1280
|
+
* @nullable
|
|
1281
|
+
*/
|
|
1282
|
+
inodes?: number | null;
|
|
1337
1283
|
/**
|
|
1338
1284
|
* Total number of sites
|
|
1339
1285
|
* @nullable
|
|
@@ -1418,6 +1364,70 @@ export declare type UserHosting200RowsItemBilling = {
|
|
|
1418
1364
|
*/
|
|
1419
1365
|
prod_name?: string | null;
|
|
1420
1366
|
} | null;
|
|
1367
|
+
export declare type UserHosting200RowsItem = {
|
|
1368
|
+
/** Additional information about the account */
|
|
1369
|
+
account_info?: UserHosting200RowsItemAccountInfo;
|
|
1370
|
+
/** HAL Account back_reference, used to link to the product instance */
|
|
1371
|
+
back_reference?: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Information from the billing system about this hosting account
|
|
1374
|
+
* @nullable
|
|
1375
|
+
*/
|
|
1376
|
+
billing?: UserHosting200RowsItemBilling;
|
|
1377
|
+
/**
|
|
1378
|
+
* Capability sites associated with the account
|
|
1379
|
+
* @nullable
|
|
1380
|
+
*/
|
|
1381
|
+
capability_sites?: string | null;
|
|
1382
|
+
/**
|
|
1383
|
+
* Feature set name ex: hosting_40s
|
|
1384
|
+
* @nullable
|
|
1385
|
+
*/
|
|
1386
|
+
feature_set?: string | null;
|
|
1387
|
+
/** Whether the product associated with this hosting account has panel mail (True) or not (False) */
|
|
1388
|
+
has_panel_mail?: boolean;
|
|
1389
|
+
/** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
|
|
1390
|
+
is_upgradeable?: boolean;
|
|
1391
|
+
/**
|
|
1392
|
+
* Account limits
|
|
1393
|
+
* @nullable
|
|
1394
|
+
*/
|
|
1395
|
+
limit?: UserHosting200RowsItemLimit;
|
|
1396
|
+
/**
|
|
1397
|
+
* Remote limits for the account
|
|
1398
|
+
* @nullable
|
|
1399
|
+
*/
|
|
1400
|
+
limit_remote?: UserHosting200RowsItemLimitRemote;
|
|
1401
|
+
/**
|
|
1402
|
+
* Package name
|
|
1403
|
+
* @nullable
|
|
1404
|
+
*/
|
|
1405
|
+
package?: string | null;
|
|
1406
|
+
/**
|
|
1407
|
+
* Control panel type
|
|
1408
|
+
* @nullable
|
|
1409
|
+
*/
|
|
1410
|
+
panel?: string | null;
|
|
1411
|
+
/**
|
|
1412
|
+
* Number of sites
|
|
1413
|
+
* @nullable
|
|
1414
|
+
*/
|
|
1415
|
+
sites?: number | null;
|
|
1416
|
+
/**
|
|
1417
|
+
* Usage statistics for non-staging sites
|
|
1418
|
+
* @nullable
|
|
1419
|
+
*/
|
|
1420
|
+
used?: UserHosting200RowsItemUsed;
|
|
1421
|
+
/**
|
|
1422
|
+
* Usage statistics for staging sites
|
|
1423
|
+
* @nullable
|
|
1424
|
+
*/
|
|
1425
|
+
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1426
|
+
};
|
|
1427
|
+
export declare type UserHosting200 = {
|
|
1428
|
+
/** Information for the paginated hosting accounts */
|
|
1429
|
+
rows?: UserHosting200RowsItem[];
|
|
1430
|
+
};
|
|
1421
1431
|
/**
|
|
1422
1432
|
* Region information for the account
|
|
1423
1433
|
* @nullable
|
|
@@ -1469,6 +1479,11 @@ export declare type UserHosting200RowsItemAccountInfo = {
|
|
|
1469
1479
|
* @nullable
|
|
1470
1480
|
*/
|
|
1471
1481
|
addon_status?: string | null;
|
|
1482
|
+
/**
|
|
1483
|
+
* The app being used on the server, if applicable
|
|
1484
|
+
* @nullable
|
|
1485
|
+
*/
|
|
1486
|
+
application?: string | null;
|
|
1472
1487
|
/**
|
|
1473
1488
|
* Brand name associated with the account
|
|
1474
1489
|
* @nullable
|
|
@@ -1515,10 +1530,15 @@ export declare type UserHosting200RowsItemAccountInfo = {
|
|
|
1515
1530
|
*/
|
|
1516
1531
|
ns?: string[] | null;
|
|
1517
1532
|
/**
|
|
1518
|
-
* Operating system name
|
|
1533
|
+
* Operating system name, if applicable
|
|
1519
1534
|
* @nullable
|
|
1520
1535
|
*/
|
|
1521
1536
|
os_name?: string | null;
|
|
1537
|
+
/**
|
|
1538
|
+
* Operating system version, if applicable
|
|
1539
|
+
* @nullable
|
|
1540
|
+
*/
|
|
1541
|
+
os_version?: string | null;
|
|
1522
1542
|
/**
|
|
1523
1543
|
* Platform type
|
|
1524
1544
|
* @nullable
|
|
@@ -1549,6 +1569,11 @@ export declare type UserHosting200RowsItemAccountInfo = {
|
|
|
1549
1569
|
* @nullable
|
|
1550
1570
|
*/
|
|
1551
1571
|
server_type?: string | null;
|
|
1572
|
+
/**
|
|
1573
|
+
* The software installed on the server, if applicable
|
|
1574
|
+
* @nullable
|
|
1575
|
+
*/
|
|
1576
|
+
software?: string | null;
|
|
1552
1577
|
/**
|
|
1553
1578
|
* SSH hostname
|
|
1554
1579
|
* @nullable
|
|
@@ -2066,6 +2091,27 @@ export declare type CreatePhpInfo200 = {
|
|
|
2066
2091
|
/** html file content */
|
|
2067
2092
|
html?: string;
|
|
2068
2093
|
};
|
|
2094
|
+
export declare type SitesPerformanceRedisPurge200 = {
|
|
2095
|
+
[key: string]: unknown;
|
|
2096
|
+
};
|
|
2097
|
+
export declare type SitesPerformanceRedisPurgeBody = {
|
|
2098
|
+
[key: string]: unknown;
|
|
2099
|
+
};
|
|
2100
|
+
export declare type SitesPerformanceRedisUninstall200 = {
|
|
2101
|
+
[key: string]: unknown;
|
|
2102
|
+
};
|
|
2103
|
+
export declare type SitesPerformanceRedisStatus200 = {
|
|
2104
|
+
obj_cache_enabled?: boolean;
|
|
2105
|
+
obj_cache_installed?: boolean;
|
|
2106
|
+
redis_service_active?: boolean;
|
|
2107
|
+
};
|
|
2108
|
+
export declare type SitesPerformanceRedisToggle200 = {
|
|
2109
|
+
[key: string]: unknown;
|
|
2110
|
+
};
|
|
2111
|
+
export declare type SitesPerformanceRedisToggleBody = {
|
|
2112
|
+
/** Pass either 0 or 1 */
|
|
2113
|
+
state: number;
|
|
2114
|
+
};
|
|
2069
2115
|
export declare type SitesPerformanceEndurancePageCache200 = {
|
|
2070
2116
|
result?: string;
|
|
2071
2117
|
status?: string;
|
|
@@ -2106,13 +2152,6 @@ export declare type SitesPerformanceCachepurgeBody = {
|
|
|
2106
2152
|
export declare type SitePendingDomainDelete200 = {
|
|
2107
2153
|
[key: string]: unknown;
|
|
2108
2154
|
};
|
|
2109
|
-
export declare type SitesMetricDimensions200 = {
|
|
2110
|
-
date_end?: string;
|
|
2111
|
-
date_start?: string;
|
|
2112
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2113
|
-
elapsed?: number;
|
|
2114
|
-
metric?: string;
|
|
2115
|
-
};
|
|
2116
2155
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
2117
2156
|
[key: string]: number;
|
|
2118
2157
|
};
|
|
@@ -2134,18 +2173,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItem = {
|
|
|
2134
2173
|
dimension?: SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension;
|
|
2135
2174
|
timestamp?: number;
|
|
2136
2175
|
};
|
|
2137
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
2138
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2139
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2140
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2141
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2142
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2143
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2144
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2145
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2146
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2147
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2148
|
-
};
|
|
2149
2176
|
export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
|
|
2150
2177
|
[key: string]: number;
|
|
2151
2178
|
};
|
|
@@ -2195,6 +2222,25 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
2195
2222
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
2196
2223
|
timestamp?: number;
|
|
2197
2224
|
};
|
|
2225
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
2226
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2227
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2228
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2229
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2230
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2231
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2232
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2233
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2234
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2235
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2236
|
+
};
|
|
2237
|
+
export declare type SitesMetricDimensions200 = {
|
|
2238
|
+
date_end?: string;
|
|
2239
|
+
date_start?: string;
|
|
2240
|
+
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2241
|
+
elapsed?: number;
|
|
2242
|
+
metric?: string;
|
|
2243
|
+
};
|
|
2198
2244
|
export declare type SitesMetricDimensionsParams = {
|
|
2199
2245
|
start?: string;
|
|
2200
2246
|
end?: string;
|
|
@@ -3229,6 +3275,16 @@ export declare type PasswordScoreParams = {
|
|
|
3229
3275
|
export declare type PasswordGenerate200 = {
|
|
3230
3276
|
password?: string;
|
|
3231
3277
|
};
|
|
3278
|
+
export declare type HostingPasswordUpdate200 = {
|
|
3279
|
+
/** Indicates whether the password was successfully updated (1 = updated, 0 = not updated). */
|
|
3280
|
+
updated?: number;
|
|
3281
|
+
};
|
|
3282
|
+
export declare type HostingPasswordUpdateBody = {
|
|
3283
|
+
/** Whether to also change the database password to match the new hosting account password. */
|
|
3284
|
+
change_db_user_pw?: boolean;
|
|
3285
|
+
/** The new password for the hosting account. */
|
|
3286
|
+
new_pw: string;
|
|
3287
|
+
};
|
|
3232
3288
|
export declare type HostingOnboardingDataUpdate200 = {
|
|
3233
3289
|
completed?: boolean;
|
|
3234
3290
|
};
|
|
@@ -3516,7 +3572,6 @@ export declare type HostingFtpUpdateBody = {
|
|
|
3516
3572
|
user_type_set?: HostingFtpUpdateBodyUserTypeSet;
|
|
3517
3573
|
};
|
|
3518
3574
|
export declare type HostingFtpAdd200 = {
|
|
3519
|
-
pass?: string;
|
|
3520
3575
|
user?: string;
|
|
3521
3576
|
};
|
|
3522
3577
|
export declare type HostingFtpAddBody = {
|
|
@@ -4119,14 +4174,6 @@ export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
|
4119
4174
|
*/
|
|
4120
4175
|
val?: string | null;
|
|
4121
4176
|
};
|
|
4122
|
-
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
4123
|
-
action?: FilterAction;
|
|
4124
|
-
/**
|
|
4125
|
-
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
4126
|
-
* @nullable
|
|
4127
|
-
*/
|
|
4128
|
-
dest?: string | null;
|
|
4129
|
-
};
|
|
4130
4177
|
export declare type HostingEmailFiltersList200FiltersItem = {
|
|
4131
4178
|
/** Where the email will be forwarded to */
|
|
4132
4179
|
actions?: HostingEmailFiltersList200FiltersItemActionsItem[];
|
|
@@ -4145,6 +4192,14 @@ export declare type HostingEmailFiltersList200 = {
|
|
|
4145
4192
|
/** List of filters */
|
|
4146
4193
|
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4147
4194
|
};
|
|
4195
|
+
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
4196
|
+
action?: FilterAction;
|
|
4197
|
+
/**
|
|
4198
|
+
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
4199
|
+
* @nullable
|
|
4200
|
+
*/
|
|
4201
|
+
dest?: string | null;
|
|
4202
|
+
};
|
|
4148
4203
|
export declare type HostingEmailFiltersListParams = {
|
|
4149
4204
|
/**
|
|
4150
4205
|
* The email account address to query filters by
|
|
@@ -5168,6 +5223,31 @@ export declare type ActivityLog200 = {
|
|
|
5168
5223
|
export declare type ActivityLogParams = {
|
|
5169
5224
|
days?: number;
|
|
5170
5225
|
};
|
|
5226
|
+
export declare type HostingAccount200ResourcesWorkers = {
|
|
5227
|
+
/** @nullable */
|
|
5228
|
+
available?: number | null;
|
|
5229
|
+
/** @nullable */
|
|
5230
|
+
total?: number | null;
|
|
5231
|
+
/** @nullable */
|
|
5232
|
+
used?: number | null;
|
|
5233
|
+
};
|
|
5234
|
+
export declare type HostingAccount200ResourcesStorage = {
|
|
5235
|
+
/** @nullable */
|
|
5236
|
+
available?: number | null;
|
|
5237
|
+
/** @nullable */
|
|
5238
|
+
total?: number | null;
|
|
5239
|
+
unit?: string;
|
|
5240
|
+
/** @nullable */
|
|
5241
|
+
used?: number | null;
|
|
5242
|
+
};
|
|
5243
|
+
/**
|
|
5244
|
+
* @nullable
|
|
5245
|
+
*/
|
|
5246
|
+
export declare type HostingAccount200Resources = {
|
|
5247
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
5248
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
5249
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
5250
|
+
} | null;
|
|
5171
5251
|
export declare type HostingAccount200 = {
|
|
5172
5252
|
account_id?: string;
|
|
5173
5253
|
account_limits?: HostingAccount200AccountLimits;
|
|
@@ -5188,23 +5268,6 @@ export declare type HostingAccount200 = {
|
|
|
5188
5268
|
type?: string;
|
|
5189
5269
|
username?: string;
|
|
5190
5270
|
};
|
|
5191
|
-
export declare type HostingAccount200ResourcesWorkers = {
|
|
5192
|
-
/** @nullable */
|
|
5193
|
-
available?: number | null;
|
|
5194
|
-
/** @nullable */
|
|
5195
|
-
total?: number | null;
|
|
5196
|
-
/** @nullable */
|
|
5197
|
-
used?: number | null;
|
|
5198
|
-
};
|
|
5199
|
-
export declare type HostingAccount200ResourcesStorage = {
|
|
5200
|
-
/** @nullable */
|
|
5201
|
-
available?: number | null;
|
|
5202
|
-
/** @nullable */
|
|
5203
|
-
total?: number | null;
|
|
5204
|
-
unit?: string;
|
|
5205
|
-
/** @nullable */
|
|
5206
|
-
used?: number | null;
|
|
5207
|
-
};
|
|
5208
5271
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
5209
5272
|
/** @nullable */
|
|
5210
5273
|
available?: number | null;
|
|
@@ -5226,14 +5289,6 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
5226
5289
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
5227
5290
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
5228
5291
|
};
|
|
5229
|
-
/**
|
|
5230
|
-
* @nullable
|
|
5231
|
-
*/
|
|
5232
|
-
export declare type HostingAccount200Resources = {
|
|
5233
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
5234
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
5235
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
5236
|
-
} | null;
|
|
5237
5292
|
export declare type HostingAccount200Billing = {
|
|
5238
5293
|
prod_code?: string;
|
|
5239
5294
|
product_name?: string;
|