@newfold/huapi-js 2.1952.0 → 2.1974.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 +104 -7
- package/src/index.js +90 -10
- package/src/index.msw.d.ts +7 -1
- package/src/index.msw.js +38 -2
- package/src/index.schemas.d.ts +230 -157
- package/src/index.schemas.js +4 -0
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, AccountHostingListParams, 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, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, 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, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, 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, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, 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, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, 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, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, 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, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, HostingAdvancedConsole200, HostingAdvancedConsoleParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, 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, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, 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, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicImagesParams, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, 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, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, 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, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } 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
|
/**
|
|
@@ -1662,6 +1662,38 @@ export declare function useAnnouncements<TData = Awaited<ReturnType<typeof annou
|
|
|
1662
1662
|
}): UseQueryResult<TData, TError> & {
|
|
1663
1663
|
queryKey: QueryKey;
|
|
1664
1664
|
};
|
|
1665
|
+
/**
|
|
1666
|
+
* Reads bullhorn announcements JSON from the configured OCI PAR URL and returns a list. Returns an empty bullhornAnnouncements array when the feature is disabled. Requires bearer JWT.
|
|
1667
|
+
* @summary Bullhorn announcements
|
|
1668
|
+
*/
|
|
1669
|
+
export declare const bullhornAnnouncements: (options?: AxiosRequestConfig) => Promise<AxiosResponse<BullhornAnnouncements200>>;
|
|
1670
|
+
export declare const getBullhornAnnouncementsQueryKey: () => readonly ["/v1/announcements/bullhorn"];
|
|
1671
|
+
export declare const getBullhornAnnouncementsQueryOptions: <TData = AxiosResponse<BullhornAnnouncements200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
1672
|
+
query?: Partial<UseQueryOptions<AxiosResponse<BullhornAnnouncements200, any>, TError, TData, QueryKey>> | undefined;
|
|
1673
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1674
|
+
} | undefined) => UseQueryOptions<AxiosResponse<BullhornAnnouncements200, any>, TError, TData, QueryKey> & {
|
|
1675
|
+
queryKey: QueryKey;
|
|
1676
|
+
};
|
|
1677
|
+
export declare type BullhornAnnouncementsQueryResult = NonNullable<Awaited<ReturnType<typeof bullhornAnnouncements>>>;
|
|
1678
|
+
export declare type BullhornAnnouncementsQueryError = AxiosError<unknown>;
|
|
1679
|
+
export declare function useBullhornAnnouncements<TData = Awaited<ReturnType<typeof bullhornAnnouncements>>, TError = AxiosError<unknown>>(options: {
|
|
1680
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof bullhornAnnouncements>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof bullhornAnnouncements>>, TError, TData>, 'initialData'>;
|
|
1681
|
+
axios?: AxiosRequestConfig;
|
|
1682
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
1683
|
+
queryKey: QueryKey;
|
|
1684
|
+
};
|
|
1685
|
+
export declare function useBullhornAnnouncements<TData = Awaited<ReturnType<typeof bullhornAnnouncements>>, TError = AxiosError<unknown>>(options?: {
|
|
1686
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof bullhornAnnouncements>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof bullhornAnnouncements>>, TError, TData>, 'initialData'>;
|
|
1687
|
+
axios?: AxiosRequestConfig;
|
|
1688
|
+
}): UseQueryResult<TData, TError> & {
|
|
1689
|
+
queryKey: QueryKey;
|
|
1690
|
+
};
|
|
1691
|
+
export declare function useBullhornAnnouncements<TData = Awaited<ReturnType<typeof bullhornAnnouncements>>, TError = AxiosError<unknown>>(options?: {
|
|
1692
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof bullhornAnnouncements>>, TError, TData>>;
|
|
1693
|
+
axios?: AxiosRequestConfig;
|
|
1694
|
+
}): UseQueryResult<TData, TError> & {
|
|
1695
|
+
queryKey: QueryKey;
|
|
1696
|
+
};
|
|
1665
1697
|
/**
|
|
1666
1698
|
* Get domain info
|
|
1667
1699
|
* @summary domain info
|
|
@@ -2241,6 +2273,38 @@ export declare function useHostingAddons<TData = Awaited<ReturnType<typeof hosti
|
|
|
2241
2273
|
}): UseQueryResult<TData, TError> & {
|
|
2242
2274
|
queryKey: QueryKey;
|
|
2243
2275
|
};
|
|
2276
|
+
/**
|
|
2277
|
+
* Returns the advanced hosting server connect url
|
|
2278
|
+
* @summary advanced hosting server connect url
|
|
2279
|
+
*/
|
|
2280
|
+
export declare const hostingAdvancedConsole: (hostingId: string, params?: HostingAdvancedConsoleParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedConsole200>>;
|
|
2281
|
+
export declare const getHostingAdvancedConsoleQueryKey: (hostingId: string, params?: HostingAdvancedConsoleParams) => readonly [`/v1/hosting/${string}/advanced/console`, ...HostingAdvancedConsoleParams[]];
|
|
2282
|
+
export declare const getHostingAdvancedConsoleQueryOptions: <TData = AxiosResponse<HostingAdvancedConsole200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: HostingAdvancedConsoleParams, options?: {
|
|
2283
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingAdvancedConsole200, any>, TError, TData, QueryKey>> | undefined;
|
|
2284
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2285
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingAdvancedConsole200, any>, TError, TData, QueryKey> & {
|
|
2286
|
+
queryKey: QueryKey;
|
|
2287
|
+
};
|
|
2288
|
+
export declare type HostingAdvancedConsoleQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedConsole>>>;
|
|
2289
|
+
export declare type HostingAdvancedConsoleQueryError = AxiosError<unknown>;
|
|
2290
|
+
export declare function useHostingAdvancedConsole<TData = Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | HostingAdvancedConsoleParams, options: {
|
|
2291
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError, TData>, 'initialData'>;
|
|
2292
|
+
axios?: AxiosRequestConfig;
|
|
2293
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
2294
|
+
queryKey: QueryKey;
|
|
2295
|
+
};
|
|
2296
|
+
export declare function useHostingAdvancedConsole<TData = Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingAdvancedConsoleParams, options?: {
|
|
2297
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError, TData>, 'initialData'>;
|
|
2298
|
+
axios?: AxiosRequestConfig;
|
|
2299
|
+
}): UseQueryResult<TData, TError> & {
|
|
2300
|
+
queryKey: QueryKey;
|
|
2301
|
+
};
|
|
2302
|
+
export declare function useHostingAdvancedConsole<TData = Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingAdvancedConsoleParams, options?: {
|
|
2303
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedConsole>>, TError, TData>>;
|
|
2304
|
+
axios?: AxiosRequestConfig;
|
|
2305
|
+
}): UseQueryResult<TData, TError> & {
|
|
2306
|
+
queryKey: QueryKey;
|
|
2307
|
+
};
|
|
2244
2308
|
/**
|
|
2245
2309
|
* Checks for dns already exists
|
|
2246
2310
|
* @summary advanced hosting dns check
|
|
@@ -2462,6 +2526,38 @@ export declare const useHostingAdvancedServerStatus: <TError = AxiosError<unknow
|
|
|
2462
2526
|
hostingId: number;
|
|
2463
2527
|
data: HostingAdvancedServerStatusBody;
|
|
2464
2528
|
}, TContext>;
|
|
2529
|
+
/**
|
|
2530
|
+
* Check whether the server guest is reachable and capable of performing actions that require a healthy server
|
|
2531
|
+
* @summary server healthcheck
|
|
2532
|
+
*/
|
|
2533
|
+
export declare const hostingAdvancedServerHealthcheck: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedServerHealthcheck200>>;
|
|
2534
|
+
export declare const getHostingAdvancedServerHealthcheckQueryKey: (hostingId: string) => readonly [`/v1/hosting/${string}/advanced/server/healthcheck`];
|
|
2535
|
+
export declare const getHostingAdvancedServerHealthcheckQueryOptions: <TData = AxiosResponse<HostingAdvancedServerHealthcheck200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
2536
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingAdvancedServerHealthcheck200, any>, TError, TData, QueryKey>> | undefined;
|
|
2537
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2538
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingAdvancedServerHealthcheck200, any>, TError, TData, QueryKey> & {
|
|
2539
|
+
queryKey: QueryKey;
|
|
2540
|
+
};
|
|
2541
|
+
export declare type HostingAdvancedServerHealthcheckQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>>;
|
|
2542
|
+
export declare type HostingAdvancedServerHealthcheckQueryError = AxiosError<unknown>;
|
|
2543
|
+
export declare function useHostingAdvancedServerHealthcheck<TData = Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError = AxiosError<unknown>>(hostingId: string, options: {
|
|
2544
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError, TData>, 'initialData'>;
|
|
2545
|
+
axios?: AxiosRequestConfig;
|
|
2546
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
2547
|
+
queryKey: QueryKey;
|
|
2548
|
+
};
|
|
2549
|
+
export declare function useHostingAdvancedServerHealthcheck<TData = Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
2550
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError, TData>, 'initialData'>;
|
|
2551
|
+
axios?: AxiosRequestConfig;
|
|
2552
|
+
}): UseQueryResult<TData, TError> & {
|
|
2553
|
+
queryKey: QueryKey;
|
|
2554
|
+
};
|
|
2555
|
+
export declare function useHostingAdvancedServerHealthcheck<TData = Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
2556
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedServerHealthcheck>>, TError, TData>>;
|
|
2557
|
+
axios?: AxiosRequestConfig;
|
|
2558
|
+
}): UseQueryResult<TData, TError> & {
|
|
2559
|
+
queryKey: QueryKey;
|
|
2560
|
+
};
|
|
2465
2561
|
/**
|
|
2466
2562
|
* Update user account's password
|
|
2467
2563
|
* @summary Update user account password
|
|
@@ -2527,6 +2623,7 @@ export declare function useHostingAdvancedSsoWhm<TData = Awaited<ReturnType<type
|
|
|
2527
2623
|
};
|
|
2528
2624
|
/**
|
|
2529
2625
|
* Returns the hosting system_console url
|
|
2626
|
+
* @deprecated
|
|
2530
2627
|
* @summary hosting system_console
|
|
2531
2628
|
*/
|
|
2532
2629
|
export declare const hostingAdvancedSystemConsole: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedSystemConsole200>>;
|
|
@@ -6208,9 +6305,9 @@ export declare function useHostingVisitors<TData = Awaited<ReturnType<typeof hos
|
|
|
6208
6305
|
* Returns a list of images available for public use.
|
|
6209
6306
|
* @summary public hal image list
|
|
6210
6307
|
*/
|
|
6211
|
-
export declare const publicImages: (options?: AxiosRequestConfig) => Promise<AxiosResponse<PublicImages200>>;
|
|
6212
|
-
export declare const getPublicImagesQueryKey: () => readonly ["/v1/public/images"];
|
|
6213
|
-
export declare const getPublicImagesQueryOptions: <TData = AxiosResponse<PublicImages200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
6308
|
+
export declare const publicImages: (params?: PublicImagesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PublicImages200>>;
|
|
6309
|
+
export declare const getPublicImagesQueryKey: (params?: PublicImagesParams) => readonly ["/v1/public/images", ...PublicImagesParams[]];
|
|
6310
|
+
export declare const getPublicImagesQueryOptions: <TData = AxiosResponse<PublicImages200, any>, TError = AxiosError<unknown, any>>(params?: PublicImagesParams, options?: {
|
|
6214
6311
|
query?: Partial<UseQueryOptions<AxiosResponse<PublicImages200, any>, TError, TData, QueryKey>> | undefined;
|
|
6215
6312
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
6216
6313
|
} | undefined) => UseQueryOptions<AxiosResponse<PublicImages200, any>, TError, TData, QueryKey> & {
|
|
@@ -6218,19 +6315,19 @@ export declare const getPublicImagesQueryOptions: <TData = AxiosResponse<PublicI
|
|
|
6218
6315
|
};
|
|
6219
6316
|
export declare type PublicImagesQueryResult = NonNullable<Awaited<ReturnType<typeof publicImages>>>;
|
|
6220
6317
|
export declare type PublicImagesQueryError = AxiosError<unknown>;
|
|
6221
|
-
export declare function usePublicImages<TData = Awaited<ReturnType<typeof publicImages>>, TError = AxiosError<unknown>>(options: {
|
|
6318
|
+
export declare function usePublicImages<TData = Awaited<ReturnType<typeof publicImages>>, TError = AxiosError<unknown>>(params: undefined | PublicImagesParams, options: {
|
|
6222
6319
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof publicImages>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof publicImages>>, TError, TData>, 'initialData'>;
|
|
6223
6320
|
axios?: AxiosRequestConfig;
|
|
6224
6321
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
6225
6322
|
queryKey: QueryKey;
|
|
6226
6323
|
};
|
|
6227
|
-
export declare function usePublicImages<TData = Awaited<ReturnType<typeof publicImages>>, TError = AxiosError<unknown>>(options?: {
|
|
6324
|
+
export declare function usePublicImages<TData = Awaited<ReturnType<typeof publicImages>>, TError = AxiosError<unknown>>(params?: PublicImagesParams, options?: {
|
|
6228
6325
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof publicImages>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof publicImages>>, TError, TData>, 'initialData'>;
|
|
6229
6326
|
axios?: AxiosRequestConfig;
|
|
6230
6327
|
}): UseQueryResult<TData, TError> & {
|
|
6231
6328
|
queryKey: QueryKey;
|
|
6232
6329
|
};
|
|
6233
|
-
export declare function usePublicImages<TData = Awaited<ReturnType<typeof publicImages>>, TError = AxiosError<unknown>>(options?: {
|
|
6330
|
+
export declare function usePublicImages<TData = Awaited<ReturnType<typeof publicImages>>, TError = AxiosError<unknown>>(params?: PublicImagesParams, options?: {
|
|
6234
6331
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof publicImages>>, TError, TData>>;
|
|
6235
6332
|
axios?: AxiosRequestConfig;
|
|
6236
6333
|
}): UseQueryResult<TData, TError> & {
|
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.1974.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -1295,6 +1295,32 @@ export function useAnnouncements(options) {
|
|
|
1295
1295
|
query.queryKey = queryOptions.queryKey;
|
|
1296
1296
|
return query;
|
|
1297
1297
|
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Reads bullhorn announcements JSON from the configured OCI PAR URL and returns a list. Returns an empty bullhornAnnouncements array when the feature is disabled. Requires bearer JWT.
|
|
1300
|
+
* @summary Bullhorn announcements
|
|
1301
|
+
*/
|
|
1302
|
+
export const bullhornAnnouncements = (options) => {
|
|
1303
|
+
return axios.get(`/v1/announcements/bullhorn`, options);
|
|
1304
|
+
};
|
|
1305
|
+
export const getBullhornAnnouncementsQueryKey = () => {
|
|
1306
|
+
return [`/v1/announcements/bullhorn`];
|
|
1307
|
+
};
|
|
1308
|
+
export const getBullhornAnnouncementsQueryOptions = (options) => {
|
|
1309
|
+
var _a;
|
|
1310
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1311
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getBullhornAnnouncementsQueryKey();
|
|
1312
|
+
const queryFn = ({ signal }) => bullhornAnnouncements(Object.assign({ signal }, axiosOptions));
|
|
1313
|
+
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
1314
|
+
};
|
|
1315
|
+
/**
|
|
1316
|
+
* @summary Bullhorn announcements
|
|
1317
|
+
*/
|
|
1318
|
+
export function useBullhornAnnouncements(options) {
|
|
1319
|
+
const queryOptions = getBullhornAnnouncementsQueryOptions(options);
|
|
1320
|
+
const query = useQuery(queryOptions);
|
|
1321
|
+
query.queryKey = queryOptions.queryKey;
|
|
1322
|
+
return query;
|
|
1323
|
+
}
|
|
1298
1324
|
/**
|
|
1299
1325
|
* Get domain info
|
|
1300
1326
|
* @summary domain info
|
|
@@ -1753,6 +1779,32 @@ export function useHostingAddons(hostingId, params, options) {
|
|
|
1753
1779
|
query.queryKey = queryOptions.queryKey;
|
|
1754
1780
|
return query;
|
|
1755
1781
|
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Returns the advanced hosting server connect url
|
|
1784
|
+
* @summary advanced hosting server connect url
|
|
1785
|
+
*/
|
|
1786
|
+
export const hostingAdvancedConsole = (hostingId, params, options) => {
|
|
1787
|
+
return axios.get(`/v1/hosting/${hostingId}/advanced/console`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
1788
|
+
};
|
|
1789
|
+
export const getHostingAdvancedConsoleQueryKey = (hostingId, params) => {
|
|
1790
|
+
return [`/v1/hosting/${hostingId}/advanced/console`, ...(params ? [params] : [])];
|
|
1791
|
+
};
|
|
1792
|
+
export const getHostingAdvancedConsoleQueryOptions = (hostingId, params, options) => {
|
|
1793
|
+
var _a;
|
|
1794
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1795
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingAdvancedConsoleQueryKey(hostingId, params);
|
|
1796
|
+
const queryFn = ({ signal }) => hostingAdvancedConsole(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
1797
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
1798
|
+
};
|
|
1799
|
+
/**
|
|
1800
|
+
* @summary advanced hosting server connect url
|
|
1801
|
+
*/
|
|
1802
|
+
export function useHostingAdvancedConsole(hostingId, params, options) {
|
|
1803
|
+
const queryOptions = getHostingAdvancedConsoleQueryOptions(hostingId, params, options);
|
|
1804
|
+
const query = useQuery(queryOptions);
|
|
1805
|
+
query.queryKey = queryOptions.queryKey;
|
|
1806
|
+
return query;
|
|
1807
|
+
}
|
|
1756
1808
|
/**
|
|
1757
1809
|
* Checks for dns already exists
|
|
1758
1810
|
* @summary advanced hosting dns check
|
|
@@ -1923,6 +1975,32 @@ export const useHostingAdvancedServerStatus = (options) => {
|
|
|
1923
1975
|
const mutationOptions = getHostingAdvancedServerStatusMutationOptions(options);
|
|
1924
1976
|
return useMutation(mutationOptions);
|
|
1925
1977
|
};
|
|
1978
|
+
/**
|
|
1979
|
+
* Check whether the server guest is reachable and capable of performing actions that require a healthy server
|
|
1980
|
+
* @summary server healthcheck
|
|
1981
|
+
*/
|
|
1982
|
+
export const hostingAdvancedServerHealthcheck = (hostingId, options) => {
|
|
1983
|
+
return axios.get(`/v1/hosting/${hostingId}/advanced/server/healthcheck`, options);
|
|
1984
|
+
};
|
|
1985
|
+
export const getHostingAdvancedServerHealthcheckQueryKey = (hostingId) => {
|
|
1986
|
+
return [`/v1/hosting/${hostingId}/advanced/server/healthcheck`];
|
|
1987
|
+
};
|
|
1988
|
+
export const getHostingAdvancedServerHealthcheckQueryOptions = (hostingId, options) => {
|
|
1989
|
+
var _a;
|
|
1990
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1991
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingAdvancedServerHealthcheckQueryKey(hostingId);
|
|
1992
|
+
const queryFn = ({ signal }) => hostingAdvancedServerHealthcheck(hostingId, Object.assign({ signal }, axiosOptions));
|
|
1993
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
1994
|
+
};
|
|
1995
|
+
/**
|
|
1996
|
+
* @summary server healthcheck
|
|
1997
|
+
*/
|
|
1998
|
+
export function useHostingAdvancedServerHealthcheck(hostingId, options) {
|
|
1999
|
+
const queryOptions = getHostingAdvancedServerHealthcheckQueryOptions(hostingId, options);
|
|
2000
|
+
const query = useQuery(queryOptions);
|
|
2001
|
+
query.queryKey = queryOptions.queryKey;
|
|
2002
|
+
return query;
|
|
2003
|
+
}
|
|
1926
2004
|
/**
|
|
1927
2005
|
* Update user account's password
|
|
1928
2006
|
* @summary Update user account password
|
|
@@ -1973,6 +2051,7 @@ export function useHostingAdvancedSsoWhm(hostingId, options) {
|
|
|
1973
2051
|
}
|
|
1974
2052
|
/**
|
|
1975
2053
|
* Returns the hosting system_console url
|
|
2054
|
+
* @deprecated
|
|
1976
2055
|
* @summary hosting system_console
|
|
1977
2056
|
*/
|
|
1978
2057
|
export const hostingAdvancedSystemConsole = (hostingId, options) => {
|
|
@@ -1989,6 +2068,7 @@ export const getHostingAdvancedSystemConsoleQueryOptions = (hostingId, options)
|
|
|
1989
2068
|
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
1990
2069
|
};
|
|
1991
2070
|
/**
|
|
2071
|
+
* @deprecated
|
|
1992
2072
|
* @summary hosting system_console
|
|
1993
2073
|
*/
|
|
1994
2074
|
export function useHostingAdvancedSystemConsole(hostingId, options) {
|
|
@@ -4768,24 +4848,24 @@ export function useHostingVisitors(hostingId, params, options) {
|
|
|
4768
4848
|
* Returns a list of images available for public use.
|
|
4769
4849
|
* @summary public hal image list
|
|
4770
4850
|
*/
|
|
4771
|
-
export const publicImages = (options) => {
|
|
4772
|
-
return axios.get(`/v1/public/images`, options);
|
|
4851
|
+
export const publicImages = (params, options) => {
|
|
4852
|
+
return axios.get(`/v1/public/images`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
4773
4853
|
};
|
|
4774
|
-
export const getPublicImagesQueryKey = () => {
|
|
4775
|
-
return [`/v1/public/images
|
|
4854
|
+
export const getPublicImagesQueryKey = (params) => {
|
|
4855
|
+
return [`/v1/public/images`, ...(params ? [params] : [])];
|
|
4776
4856
|
};
|
|
4777
|
-
export const getPublicImagesQueryOptions = (options) => {
|
|
4857
|
+
export const getPublicImagesQueryOptions = (params, options) => {
|
|
4778
4858
|
var _a;
|
|
4779
4859
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
4780
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getPublicImagesQueryKey();
|
|
4781
|
-
const queryFn = ({ signal }) => publicImages(Object.assign({ signal }, axiosOptions));
|
|
4860
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getPublicImagesQueryKey(params);
|
|
4861
|
+
const queryFn = ({ signal }) => publicImages(params, Object.assign({ signal }, axiosOptions));
|
|
4782
4862
|
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
4783
4863
|
};
|
|
4784
4864
|
/**
|
|
4785
4865
|
* @summary public hal image list
|
|
4786
4866
|
*/
|
|
4787
|
-
export function usePublicImages(options) {
|
|
4788
|
-
const queryOptions = getPublicImagesQueryOptions(options);
|
|
4867
|
+
export function usePublicImages(params, options) {
|
|
4868
|
+
const queryOptions = getPublicImagesQueryOptions(params, options);
|
|
4789
4869
|
const query = useQuery(queryOptions);
|
|
4790
4870
|
query.queryKey = queryOptions.queryKey;
|
|
4791
4871
|
return query;
|
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, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, 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, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, 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, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, 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, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } 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, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, HostingAdvancedConsole200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, 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, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, 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, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, 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, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } 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;
|
|
@@ -52,6 +52,7 @@ export declare const getWebzaiSsoResponseMock: (overrideResponse?: Partial<Webza
|
|
|
52
52
|
export declare const getWeeblySsoResponseMock: (overrideResponse?: Partial<WeeblySso200>) => WeeblySso200;
|
|
53
53
|
export declare const getAddonsWorkflowsResponseMock: (overrideResponse?: Partial<AddonsWorkflows200>) => AddonsWorkflows200;
|
|
54
54
|
export declare const getAnnouncementsResponseMock: (overrideResponse?: Partial<Announcements200>) => Announcements200;
|
|
55
|
+
export declare const getBullhornAnnouncementsResponseMock: (overrideResponse?: Partial<BullhornAnnouncements200>) => BullhornAnnouncements200;
|
|
55
56
|
export declare const getDomainInfoResponseMock: (overrideResponse?: Partial<DomainInfo200>) => DomainInfo200;
|
|
56
57
|
export declare const getDomainCertsResponseMock: (overrideResponse?: Partial<DomainCerts200>) => DomainCerts200;
|
|
57
58
|
export declare const getDomainCertInstallResponseMock: (overrideResponse?: Partial<DomainCertInstall200>) => DomainCertInstall200;
|
|
@@ -71,6 +72,7 @@ export declare const getDomainZoneeditorUrlResponseMock: (overrideResponse?: Par
|
|
|
71
72
|
export declare const getHostingAccountResponseMock: (overrideResponse?: Partial<HostingAccount200>) => HostingAccount200;
|
|
72
73
|
export declare const getActivityLogResponseMock: (overrideResponse?: Partial<ActivityLog200>) => ActivityLog200;
|
|
73
74
|
export declare const getHostingAddonsResponseMock: (overrideResponse?: Partial<HostingAddons200>) => HostingAddons200;
|
|
75
|
+
export declare const getHostingAdvancedConsoleResponseMock: (overrideResponse?: Partial<HostingAdvancedConsole200>) => HostingAdvancedConsole200;
|
|
74
76
|
export declare const getHostingAdvancedDnsResponseMock: (overrideResponse?: Partial<HostingAdvancedDns200>) => HostingAdvancedDns200;
|
|
75
77
|
export declare const getHostingAdvancedDnsUpdateResponseMock: (overrideResponse?: Partial<HostingAdvancedDnsUpdate200>) => HostingAdvancedDnsUpdate200;
|
|
76
78
|
export declare const getHostingAdvancedDomainServicesCheckResponseMock: (overrideResponse?: Partial<HostingAdvancedDomainServicesCheck200>) => HostingAdvancedDomainServicesCheck200;
|
|
@@ -78,6 +80,7 @@ export declare const getHostingAdvancedDomainServicesResponseMock: (overrideResp
|
|
|
78
80
|
export declare const getHostingAdvancedImagesResponseMock: (overrideResponse?: Partial<HostingAdvancedImages200>) => HostingAdvancedImages200;
|
|
79
81
|
export declare const getHostingAdvancedServerResponseMock: (overrideResponse?: Partial<HostingAdvancedServer200>) => HostingAdvancedServer200;
|
|
80
82
|
export declare const getHostingAdvancedServerStatusResponseMock: (overrideResponse?: Partial<HostingAdvancedServerStatus200>) => HostingAdvancedServerStatus200;
|
|
83
|
+
export declare const getHostingAdvancedServerHealthcheckResponseMock: (overrideResponse?: Partial<HostingAdvancedServerHealthcheck200>) => HostingAdvancedServerHealthcheck200;
|
|
81
84
|
export declare const getHostingAdvancedPasswordResponseMock: (overrideResponse?: Partial<HostingAdvancedPassword200>) => HostingAdvancedPassword200;
|
|
82
85
|
export declare const getHostingAdvancedSsoWhmResponseMock: (overrideResponse?: Partial<HostingAdvancedSsoWhm200>) => HostingAdvancedSsoWhm200;
|
|
83
86
|
export declare const getHostingAdvancedSystemConsoleResponseMock: (overrideResponse?: Partial<HostingAdvancedSystemConsole200>) => HostingAdvancedSystemConsole200;
|
|
@@ -373,6 +376,7 @@ export declare const getWebzaiSsoMockHandler: (overrideResponse?: WebzaiSso200 |
|
|
|
373
376
|
export declare const getWeeblySsoMockHandler: (overrideResponse?: WeeblySso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WeeblySso200> | WeeblySso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
374
377
|
export declare const getAddonsWorkflowsMockHandler: (overrideResponse?: AddonsWorkflows200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsWorkflows200> | AddonsWorkflows200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
375
378
|
export declare const getAnnouncementsMockHandler: (overrideResponse?: Announcements200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Announcements200> | Announcements200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
379
|
+
export declare const getBullhornAnnouncementsMockHandler: (overrideResponse?: BullhornAnnouncements200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BullhornAnnouncements200> | BullhornAnnouncements200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
376
380
|
export declare const getDomainInfoMockHandler: (overrideResponse?: DomainInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainInfo200> | DomainInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
377
381
|
export declare const getDomainCertsMockHandler: (overrideResponse?: DomainCerts200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainCerts200> | DomainCerts200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
378
382
|
export declare const getDomainCertInstallMockHandler: (overrideResponse?: DomainCertInstall200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainCertInstall200> | DomainCertInstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -392,6 +396,7 @@ export declare const getDomainZoneeditorUrlMockHandler: (overrideResponse?: Doma
|
|
|
392
396
|
export declare const getHostingAccountMockHandler: (overrideResponse?: HostingAccount200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAccount200> | HostingAccount200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
393
397
|
export declare const getActivityLogMockHandler: (overrideResponse?: ActivityLog200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ActivityLog200> | ActivityLog200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
394
398
|
export declare const getHostingAddonsMockHandler: (overrideResponse?: HostingAddons200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAddons200> | HostingAddons200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
399
|
+
export declare const getHostingAdvancedConsoleMockHandler: (overrideResponse?: HostingAdvancedConsole200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedConsole200> | HostingAdvancedConsole200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
395
400
|
export declare const getHostingAdvancedDnsMockHandler: (overrideResponse?: HostingAdvancedDns200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedDns200> | HostingAdvancedDns200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
396
401
|
export declare const getHostingAdvancedDnsUpdateMockHandler: (overrideResponse?: HostingAdvancedDnsUpdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingAdvancedDnsUpdate200> | HostingAdvancedDnsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
397
402
|
export declare const getHostingAdvancedDomainServicesCheckMockHandler: (overrideResponse?: HostingAdvancedDomainServicesCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedDomainServicesCheck200> | HostingAdvancedDomainServicesCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -399,6 +404,7 @@ export declare const getHostingAdvancedDomainServicesMockHandler: (overrideRespo
|
|
|
399
404
|
export declare const getHostingAdvancedImagesMockHandler: (overrideResponse?: HostingAdvancedImages200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedImages200> | HostingAdvancedImages200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
400
405
|
export declare const getHostingAdvancedServerMockHandler: (overrideResponse?: HostingAdvancedServer200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedServer200> | HostingAdvancedServer200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
401
406
|
export declare const getHostingAdvancedServerStatusMockHandler: (overrideResponse?: HostingAdvancedServerStatus200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingAdvancedServerStatus200> | HostingAdvancedServerStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
407
|
+
export declare const getHostingAdvancedServerHealthcheckMockHandler: (overrideResponse?: HostingAdvancedServerHealthcheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedServerHealthcheck200> | HostingAdvancedServerHealthcheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
402
408
|
export declare const getHostingAdvancedPasswordMockHandler: (overrideResponse?: HostingAdvancedPassword200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingAdvancedPassword200> | HostingAdvancedPassword200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
403
409
|
export declare const getHostingAdvancedSsoWhmMockHandler: (overrideResponse?: HostingAdvancedSsoWhm200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedSsoWhm200> | HostingAdvancedSsoWhm200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
404
410
|
export declare const getHostingAdvancedSystemConsoleMockHandler: (overrideResponse?: HostingAdvancedSystemConsole200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedSystemConsole200> | HostingAdvancedSystemConsole200) | 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.1974.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -61,6 +61,7 @@ export const getWebzaiSsoResponseMock = (overrideResponse = {}) => (Object.assig
|
|
|
61
61
|
export const getWeeblySsoResponseMock = (overrideResponse = {}) => (Object.assign({ sso: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
62
62
|
export const getAddonsWorkflowsResponseMock = (overrideResponse = {}) => (Object.assign({ workflows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ is_completed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), step: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), workflow_id: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
63
63
|
export const getAnnouncementsResponseMock = (overrideResponse = {}) => (Object.assign({ announcements: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ active: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), 'cta-label': faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), 'cta-redirect-url': faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), dismissible: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), heading: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), pageTargets: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), severity: faker.helpers.arrayElement([faker.helpers.arrayElement(['NEUTRAL', 'SUCCESS', 'WARNING', 'ERROR']), undefined]), 'sub-heading': faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })) }, overrideResponse));
|
|
64
|
+
export const getBullhornAnnouncementsResponseMock = (overrideResponse = {}) => (Object.assign({ bullhornAnnouncements: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ body: faker.word.sample(), featureKey: faker.word.sample(), header: faker.word.sample(), url: faker.word.sample() })) }, overrideResponse));
|
|
64
65
|
export const getDomainInfoResponseMock = (overrideResponse = {}) => (Object.assign({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), authoritative: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), autogen_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing_account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), billing_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), dns_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), docroot: faker.helpers.arrayElement([faker.word.sample(), null]), domain: faker.word.sample(), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), hosting_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), id: faker.number.int({ min: undefined, max: undefined }), is_internal: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), nameservers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), product_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), setup_progress: faker.helpers.arrayElement([{ validate_cdn: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_cdn_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_dns: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_auto_repair: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_ssl: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_ssl_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_ssl_error_table: faker.helpers.arrayElement([{}, undefined]) }, undefined]), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_tier: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), third_party_dns: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), type: faker.word.sample(), used_entri: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, overrideResponse));
|
|
65
66
|
export const getDomainCertsResponseMock = (overrideResponse = {}) => (Object.assign({ certs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ cert_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), expires_on: faker.helpers.arrayElement([faker.word.sample(), undefined]), issued_on: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
66
67
|
export const getDomainCertInstallResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
@@ -77,11 +78,12 @@ export const getDomainsUnsetEntriUsedResponseMock = (overrideResponse = {}) => (
|
|
|
77
78
|
export const getAccessLogsResponseMock = (overrideResponse = {}) => (Object.assign({ logs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), device: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), host: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), request: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), response_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), response_size: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
78
79
|
export const getDomainUnassignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
79
80
|
export const getDomainZoneeditorUrlResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
80
|
-
export const getHostingAccountResponseMock = (overrideResponse = {}) => (Object.assign({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_limits: faker.helpers.arrayElement([{ email_accounts: 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]) }, undefined]), addon_date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), advanced: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing: faker.helpers.arrayElement([{ prod_code: faker.helpers.arrayElement([faker.word.sample(), undefined]), product_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), subbrand: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), brand: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), panel: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), resources: faker.helpers.arrayElement([{ staging: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), server_status: 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.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
81
|
+
export const getHostingAccountResponseMock = (overrideResponse = {}) => (Object.assign({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_limits: faker.helpers.arrayElement([{ email_accounts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), max_domain: 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]) }, undefined]), addon_date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), advanced: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing: faker.helpers.arrayElement([{ prod_code: faker.helpers.arrayElement([faker.word.sample(), undefined]), product_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), subbrand: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), brand: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), panel: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), resources: faker.helpers.arrayElement([{ staging: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used: faker.helpers.arrayElement([{ domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), server_status: 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.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
81
82
|
export const getActivityLogResponseMock = (overrideResponse = {}) => (Object.assign({ activity: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), data: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_entry: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), event: faker.helpers.arrayElement([faker.word.sample(), undefined]), site_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), tenant_id: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
82
83
|
export const getHostingAddonsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), meta: faker.helpers.arrayElement([{
|
|
83
84
|
[faker.string.alphanumeric(5)]: faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined }), faker.datatype.boolean()])
|
|
84
85
|
}, undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status_user: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
86
|
+
export const getHostingAdvancedConsoleResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
85
87
|
export const getHostingAdvancedDnsResponseMock = (overrideResponse = {}) => (Object.assign({ dns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ content: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ttl: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
86
88
|
export const getHostingAdvancedDnsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
87
89
|
export const getHostingAdvancedDomainServicesCheckResponseMock = (overrideResponse = {}) => (Object.assign({ configure_domain_services: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), managed_cpanel_user_exists: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -89,6 +91,7 @@ export const getHostingAdvancedDomainServicesResponseMock = (overrideResponse =
|
|
|
89
91
|
export const getHostingAdvancedImagesResponseMock = (overrideResponse = {}) => (Object.assign({ images: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), arch_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), links: faker.helpers.arrayElement([{ community: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), doc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), forums: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), manage_link: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_cpus: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_disk: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_ram: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), readme: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.word.sample(), undefined]), title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) })) }, overrideResponse));
|
|
90
92
|
export const getHostingAdvancedServerResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), hostname: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([{ other_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), primary_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
91
93
|
export const getHostingAdvancedServerStatusResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
94
|
+
export const getHostingAdvancedServerHealthcheckResponseMock = (overrideResponse = {}) => (Object.assign({ panel_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), reason: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_hello: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), server_status: faker.word.sample() }, overrideResponse));
|
|
92
95
|
export const getHostingAdvancedPasswordResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
93
96
|
export const getHostingAdvancedSsoWhmResponseMock = (overrideResponse = {}) => (Object.assign({ ssl_setup: faker.helpers.arrayElement([{ dns_updated: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), dns_zone_with_us: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), required: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), server_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
94
97
|
export const getHostingAdvancedSystemConsoleResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -878,6 +881,16 @@ export const getAnnouncementsMockHandler = (overrideResponse) => {
|
|
|
878
881
|
});
|
|
879
882
|
}));
|
|
880
883
|
};
|
|
884
|
+
export const getBullhornAnnouncementsMockHandler = (overrideResponse) => {
|
|
885
|
+
return http.get('*/v1/announcements/bullhorn', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
886
|
+
yield delay(0);
|
|
887
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
888
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
889
|
+
: getBullhornAnnouncementsResponseMock()), { status: 200,
|
|
890
|
+
headers: { 'Content-Type': 'application/json' }
|
|
891
|
+
});
|
|
892
|
+
}));
|
|
893
|
+
};
|
|
881
894
|
export const getDomainInfoMockHandler = (overrideResponse) => {
|
|
882
895
|
return http.get('*/v1/domains/:domainId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
883
896
|
yield delay(0);
|
|
@@ -1068,6 +1081,16 @@ export const getHostingAddonsMockHandler = (overrideResponse) => {
|
|
|
1068
1081
|
});
|
|
1069
1082
|
}));
|
|
1070
1083
|
};
|
|
1084
|
+
export const getHostingAdvancedConsoleMockHandler = (overrideResponse) => {
|
|
1085
|
+
return http.get('*/v1/hosting/:hostingId/advanced/console', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1086
|
+
yield delay(0);
|
|
1087
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1088
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1089
|
+
: getHostingAdvancedConsoleResponseMock()), { status: 200,
|
|
1090
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1091
|
+
});
|
|
1092
|
+
}));
|
|
1093
|
+
};
|
|
1071
1094
|
export const getHostingAdvancedDnsMockHandler = (overrideResponse) => {
|
|
1072
1095
|
return http.get('*/v1/hosting/:hostingId/advanced/dns', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1073
1096
|
yield delay(0);
|
|
@@ -1138,6 +1161,16 @@ export const getHostingAdvancedServerStatusMockHandler = (overrideResponse) => {
|
|
|
1138
1161
|
});
|
|
1139
1162
|
}));
|
|
1140
1163
|
};
|
|
1164
|
+
export const getHostingAdvancedServerHealthcheckMockHandler = (overrideResponse) => {
|
|
1165
|
+
return http.get('*/v1/hosting/:hostingId/advanced/server/healthcheck', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1166
|
+
yield delay(0);
|
|
1167
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1168
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1169
|
+
: getHostingAdvancedServerHealthcheckResponseMock()), { status: 200,
|
|
1170
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1171
|
+
});
|
|
1172
|
+
}));
|
|
1173
|
+
};
|
|
1141
1174
|
export const getHostingAdvancedPasswordMockHandler = (overrideResponse) => {
|
|
1142
1175
|
return http.put('*/v1/hosting/:hostingId/advanced/server/password', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1143
1176
|
yield delay(0);
|
|
@@ -3641,6 +3674,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3641
3674
|
getWeeblySsoMockHandler(),
|
|
3642
3675
|
getAddonsWorkflowsMockHandler(),
|
|
3643
3676
|
getAnnouncementsMockHandler(),
|
|
3677
|
+
getBullhornAnnouncementsMockHandler(),
|
|
3644
3678
|
getDomainInfoMockHandler(),
|
|
3645
3679
|
getDomainCertsMockHandler(),
|
|
3646
3680
|
getDomainCertInstallMockHandler(),
|
|
@@ -3660,6 +3694,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3660
3694
|
getHostingAccountMockHandler(),
|
|
3661
3695
|
getActivityLogMockHandler(),
|
|
3662
3696
|
getHostingAddonsMockHandler(),
|
|
3697
|
+
getHostingAdvancedConsoleMockHandler(),
|
|
3663
3698
|
getHostingAdvancedDnsMockHandler(),
|
|
3664
3699
|
getHostingAdvancedDnsUpdateMockHandler(),
|
|
3665
3700
|
getHostingAdvancedDomainServicesCheckMockHandler(),
|
|
@@ -3667,6 +3702,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3667
3702
|
getHostingAdvancedImagesMockHandler(),
|
|
3668
3703
|
getHostingAdvancedServerMockHandler(),
|
|
3669
3704
|
getHostingAdvancedServerStatusMockHandler(),
|
|
3705
|
+
getHostingAdvancedServerHealthcheckMockHandler(),
|
|
3670
3706
|
getHostingAdvancedPasswordMockHandler(),
|
|
3671
3707
|
getHostingAdvancedSsoWhmMockHandler(),
|
|
3672
3708
|
getHostingAdvancedSystemConsoleMockHandler(),
|
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.1974.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -206,13 +206,6 @@ export declare type BackupStatusV3Params = {
|
|
|
206
206
|
*/
|
|
207
207
|
client_tracking_id: string;
|
|
208
208
|
};
|
|
209
|
-
export declare type BackupListV3200 = {
|
|
210
|
-
has_more?: boolean;
|
|
211
|
-
items?: BackupListV3200ItemsItem[];
|
|
212
|
-
limit?: number;
|
|
213
|
-
offset?: number;
|
|
214
|
-
total?: number;
|
|
215
|
-
};
|
|
216
209
|
/**
|
|
217
210
|
* @nullable
|
|
218
211
|
*/
|
|
@@ -247,6 +240,13 @@ export declare type BackupListV3200ItemsItem = {
|
|
|
247
240
|
timezone?: string;
|
|
248
241
|
type?: string;
|
|
249
242
|
};
|
|
243
|
+
export declare type BackupListV3200 = {
|
|
244
|
+
has_more?: boolean;
|
|
245
|
+
items?: BackupListV3200ItemsItem[];
|
|
246
|
+
limit?: number;
|
|
247
|
+
offset?: number;
|
|
248
|
+
total?: number;
|
|
249
|
+
};
|
|
250
250
|
export declare type BackupListV3Params = {
|
|
251
251
|
page?: number;
|
|
252
252
|
limit?: number;
|
|
@@ -429,6 +429,12 @@ export declare type SiteMalwareStatusV2200 = {
|
|
|
429
429
|
*/
|
|
430
430
|
scanner_state?: string | null;
|
|
431
431
|
};
|
|
432
|
+
export declare type SitesDomainsV2200 = {
|
|
433
|
+
domains: SitesDomainsV2200DomainsItem[];
|
|
434
|
+
limit?: number;
|
|
435
|
+
page?: number;
|
|
436
|
+
total?: number;
|
|
437
|
+
};
|
|
432
438
|
/**
|
|
433
439
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
434
440
|
* @nullable
|
|
@@ -565,12 +571,6 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
565
571
|
*/
|
|
566
572
|
used_entri?: number | null;
|
|
567
573
|
};
|
|
568
|
-
export declare type SitesDomainsV2200 = {
|
|
569
|
-
domains: SitesDomainsV2200DomainsItem[];
|
|
570
|
-
limit?: number;
|
|
571
|
-
page?: number;
|
|
572
|
-
total?: number;
|
|
573
|
-
};
|
|
574
574
|
export declare type SitesDomainsV2Params = {
|
|
575
575
|
scan?: boolean;
|
|
576
576
|
};
|
|
@@ -1118,6 +1118,12 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
1118
1118
|
/** The site id to be unassigned */
|
|
1119
1119
|
site_id: number;
|
|
1120
1120
|
};
|
|
1121
|
+
export declare type HostingDomainsV2200 = {
|
|
1122
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
1123
|
+
limit?: number;
|
|
1124
|
+
page?: number;
|
|
1125
|
+
total?: number;
|
|
1126
|
+
};
|
|
1121
1127
|
/**
|
|
1122
1128
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
1123
1129
|
* @nullable
|
|
@@ -1254,12 +1260,6 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
1254
1260
|
*/
|
|
1255
1261
|
used_entri?: number | null;
|
|
1256
1262
|
};
|
|
1257
|
-
export declare type HostingDomainsV2200 = {
|
|
1258
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
1259
|
-
limit?: number;
|
|
1260
|
-
page?: number;
|
|
1261
|
-
total?: number;
|
|
1262
|
-
};
|
|
1263
1263
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
1264
1264
|
export declare const HostingDomainsV2TypesItem: {
|
|
1265
1265
|
readonly addon: "addon";
|
|
@@ -2652,13 +2652,6 @@ export declare type SitesMetricDimensions200DimensionsPageIsCachedItem = {
|
|
|
2652
2652
|
dimension?: SitesMetricDimensions200DimensionsPageIsCachedItemDimension;
|
|
2653
2653
|
timestamp?: number;
|
|
2654
2654
|
};
|
|
2655
|
-
export declare type SitesMetricDimensions200DimensionsHttpVersionItemDimension = {
|
|
2656
|
-
[key: string]: number;
|
|
2657
|
-
};
|
|
2658
|
-
export declare type SitesMetricDimensions200DimensionsHttpVersionItem = {
|
|
2659
|
-
dimension?: SitesMetricDimensions200DimensionsHttpVersionItemDimension;
|
|
2660
|
-
timestamp?: number;
|
|
2661
|
-
};
|
|
2662
2655
|
export declare type SitesMetricDimensions200Dimensions = {
|
|
2663
2656
|
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2664
2657
|
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
@@ -2671,6 +2664,13 @@ export declare type SitesMetricDimensions200Dimensions = {
|
|
|
2671
2664
|
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2672
2665
|
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2673
2666
|
};
|
|
2667
|
+
export declare type SitesMetricDimensions200DimensionsHttpVersionItemDimension = {
|
|
2668
|
+
[key: string]: number;
|
|
2669
|
+
};
|
|
2670
|
+
export declare type SitesMetricDimensions200DimensionsHttpVersionItem = {
|
|
2671
|
+
dimension?: SitesMetricDimensions200DimensionsHttpVersionItemDimension;
|
|
2672
|
+
timestamp?: number;
|
|
2673
|
+
};
|
|
2674
2674
|
export declare type SitesMetricDimensions200DimensionsHttpVerbItemDimension = {
|
|
2675
2675
|
[key: string]: number;
|
|
2676
2676
|
};
|
|
@@ -3241,20 +3241,6 @@ export declare type SitesInfo200Staging = {
|
|
|
3241
3241
|
/** A list of staging sites of the current site */
|
|
3242
3242
|
sites?: number[];
|
|
3243
3243
|
} | null;
|
|
3244
|
-
export declare type SitesInfo200ResourcesStorage = {
|
|
3245
|
-
/** @nullable */
|
|
3246
|
-
available?: number | null;
|
|
3247
|
-
/** @nullable */
|
|
3248
|
-
total?: number | null;
|
|
3249
|
-
unit?: string;
|
|
3250
|
-
/** @nullable */
|
|
3251
|
-
used?: number | null;
|
|
3252
|
-
};
|
|
3253
|
-
export declare type SitesInfo200Resources = {
|
|
3254
|
-
storage?: SitesInfo200ResourcesStorage;
|
|
3255
|
-
/** @nullable */
|
|
3256
|
-
workers?: number | null;
|
|
3257
|
-
};
|
|
3258
3244
|
/**
|
|
3259
3245
|
* @nullable
|
|
3260
3246
|
*/
|
|
@@ -3404,6 +3390,20 @@ export declare type SitesInfo200 = {
|
|
|
3404
3390
|
/** @nullable */
|
|
3405
3391
|
wp_multi_site?: SitesInfo200WpMultiSite;
|
|
3406
3392
|
};
|
|
3393
|
+
export declare type SitesInfo200ResourcesStorage = {
|
|
3394
|
+
/** @nullable */
|
|
3395
|
+
available?: number | null;
|
|
3396
|
+
/** @nullable */
|
|
3397
|
+
total?: number | null;
|
|
3398
|
+
unit?: string;
|
|
3399
|
+
/** @nullable */
|
|
3400
|
+
used?: number | null;
|
|
3401
|
+
};
|
|
3402
|
+
export declare type SitesInfo200Resources = {
|
|
3403
|
+
storage?: SitesInfo200ResourcesStorage;
|
|
3404
|
+
/** @nullable */
|
|
3405
|
+
workers?: number | null;
|
|
3406
|
+
};
|
|
3407
3407
|
export declare type PublicRegions200RowsItem = {
|
|
3408
3408
|
/**
|
|
3409
3409
|
* Whether dedicated configurator is active for this region
|
|
@@ -3612,6 +3612,12 @@ export declare type PublicImages200 = {
|
|
|
3612
3612
|
/** List of images */
|
|
3613
3613
|
rows?: PublicImages200RowsItem[];
|
|
3614
3614
|
};
|
|
3615
|
+
export declare type PublicImagesParams = {
|
|
3616
|
+
/**
|
|
3617
|
+
* Brand identifier for HAL admin calls.
|
|
3618
|
+
*/
|
|
3619
|
+
brand?: string;
|
|
3620
|
+
};
|
|
3615
3621
|
export declare type HostingVisitors200VisitorsItem = {
|
|
3616
3622
|
bandwidth?: number;
|
|
3617
3623
|
hits?: number;
|
|
@@ -4921,6 +4927,12 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4921
4927
|
/** list of rules to be applied to the filter */
|
|
4922
4928
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4923
4929
|
};
|
|
4930
|
+
export declare type HostingEmailFiltersList200 = {
|
|
4931
|
+
/** The number of filters */
|
|
4932
|
+
count?: number;
|
|
4933
|
+
/** List of filters */
|
|
4934
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4935
|
+
};
|
|
4924
4936
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4925
4937
|
match?: FilterRuleMatch;
|
|
4926
4938
|
opt?: FilterRuleOpt;
|
|
@@ -4951,12 +4963,6 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4951
4963
|
/** Whether the filter is unescaped */
|
|
4952
4964
|
unescaped?: boolean;
|
|
4953
4965
|
};
|
|
4954
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4955
|
-
/** The number of filters */
|
|
4956
|
-
count?: number;
|
|
4957
|
-
/** List of filters */
|
|
4958
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4959
|
-
};
|
|
4960
4966
|
export declare type HostingEmailFiltersListParams = {
|
|
4961
4967
|
/**
|
|
4962
4968
|
* The email account address to query filters by
|
|
@@ -5802,6 +5808,25 @@ export declare type HostingAdvancedPasswordBody = {
|
|
|
5802
5808
|
*/
|
|
5803
5809
|
password: string;
|
|
5804
5810
|
};
|
|
5811
|
+
export declare type HostingAdvancedServerHealthcheck200 = {
|
|
5812
|
+
/**
|
|
5813
|
+
* 1 if the panel responded (Windows servers)
|
|
5814
|
+
* @nullable
|
|
5815
|
+
*/
|
|
5816
|
+
panel_version?: number | null;
|
|
5817
|
+
/**
|
|
5818
|
+
* Dotted reason code when the server is not healthy
|
|
5819
|
+
* @nullable
|
|
5820
|
+
*/
|
|
5821
|
+
reason?: string | null;
|
|
5822
|
+
/**
|
|
5823
|
+
* 1 if the server responded to a hello probe (Linux servers)
|
|
5824
|
+
* @nullable
|
|
5825
|
+
*/
|
|
5826
|
+
server_hello?: number | null;
|
|
5827
|
+
/** Current server status */
|
|
5828
|
+
server_status: string;
|
|
5829
|
+
};
|
|
5805
5830
|
export declare type HostingAdvancedServerStatus200Actions = {
|
|
5806
5831
|
[key: string]: unknown;
|
|
5807
5832
|
};
|
|
@@ -5854,6 +5879,27 @@ export declare type HostingAdvancedServer200 = {
|
|
|
5854
5879
|
uptime?: string;
|
|
5855
5880
|
uptime_seconds?: number;
|
|
5856
5881
|
};
|
|
5882
|
+
/**
|
|
5883
|
+
* Links
|
|
5884
|
+
* @nullable
|
|
5885
|
+
*/
|
|
5886
|
+
export declare type HostingAdvancedImages200ImagesItemLinks = {
|
|
5887
|
+
/**
|
|
5888
|
+
* Community URL
|
|
5889
|
+
* @nullable
|
|
5890
|
+
*/
|
|
5891
|
+
community?: string | null;
|
|
5892
|
+
/**
|
|
5893
|
+
* Documentation URL
|
|
5894
|
+
* @nullable
|
|
5895
|
+
*/
|
|
5896
|
+
doc?: string | null;
|
|
5897
|
+
/**
|
|
5898
|
+
* Forums URL
|
|
5899
|
+
* @nullable
|
|
5900
|
+
*/
|
|
5901
|
+
forums?: string | null;
|
|
5902
|
+
} | null;
|
|
5857
5903
|
export declare type HostingAdvancedImages200ImagesItem = {
|
|
5858
5904
|
/**
|
|
5859
5905
|
* The application software included on the image
|
|
@@ -5945,27 +5991,6 @@ export declare type HostingAdvancedImages200ImagesItem = {
|
|
|
5945
5991
|
export declare type HostingAdvancedImages200 = {
|
|
5946
5992
|
images: HostingAdvancedImages200ImagesItem[];
|
|
5947
5993
|
};
|
|
5948
|
-
/**
|
|
5949
|
-
* Links
|
|
5950
|
-
* @nullable
|
|
5951
|
-
*/
|
|
5952
|
-
export declare type HostingAdvancedImages200ImagesItemLinks = {
|
|
5953
|
-
/**
|
|
5954
|
-
* Community URL
|
|
5955
|
-
* @nullable
|
|
5956
|
-
*/
|
|
5957
|
-
community?: string | null;
|
|
5958
|
-
/**
|
|
5959
|
-
* Documentation URL
|
|
5960
|
-
* @nullable
|
|
5961
|
-
*/
|
|
5962
|
-
doc?: string | null;
|
|
5963
|
-
/**
|
|
5964
|
-
* Forums URL
|
|
5965
|
-
* @nullable
|
|
5966
|
-
*/
|
|
5967
|
-
forums?: string | null;
|
|
5968
|
-
} | null;
|
|
5969
5994
|
export declare type HostingAdvancedImagesParams = {
|
|
5970
5995
|
/**
|
|
5971
5996
|
* Starting page for pagination
|
|
@@ -6024,6 +6049,16 @@ export declare type HostingAdvancedDnsParams = {
|
|
|
6024
6049
|
domain: string;
|
|
6025
6050
|
dns_with_us?: number;
|
|
6026
6051
|
};
|
|
6052
|
+
export declare type HostingAdvancedConsole200 = {
|
|
6053
|
+
url?: string;
|
|
6054
|
+
};
|
|
6055
|
+
export declare type HostingAdvancedConsoleProtocol = typeof HostingAdvancedConsoleProtocol[keyof typeof HostingAdvancedConsoleProtocol];
|
|
6056
|
+
export declare const HostingAdvancedConsoleProtocol: {
|
|
6057
|
+
readonly ssh: "ssh";
|
|
6058
|
+
};
|
|
6059
|
+
export declare type HostingAdvancedConsoleParams = {
|
|
6060
|
+
protocol?: HostingAdvancedConsoleProtocol;
|
|
6061
|
+
};
|
|
6027
6062
|
export declare type HostingAddons200RowsItemMeta = {
|
|
6028
6063
|
[key: string]: string | number | boolean;
|
|
6029
6064
|
};
|
|
@@ -6067,31 +6102,6 @@ export declare type ActivityLog200 = {
|
|
|
6067
6102
|
export declare type ActivityLogParams = {
|
|
6068
6103
|
days?: number;
|
|
6069
6104
|
};
|
|
6070
|
-
export declare type HostingAccount200ResourcesWorkers = {
|
|
6071
|
-
/** @nullable */
|
|
6072
|
-
available?: number | null;
|
|
6073
|
-
/** @nullable */
|
|
6074
|
-
total?: number | null;
|
|
6075
|
-
/** @nullable */
|
|
6076
|
-
used?: number | null;
|
|
6077
|
-
};
|
|
6078
|
-
export declare type HostingAccount200ResourcesStorage = {
|
|
6079
|
-
/** @nullable */
|
|
6080
|
-
available?: number | null;
|
|
6081
|
-
/** @nullable */
|
|
6082
|
-
total?: number | null;
|
|
6083
|
-
unit?: string;
|
|
6084
|
-
/** @nullable */
|
|
6085
|
-
used?: number | null;
|
|
6086
|
-
};
|
|
6087
|
-
/**
|
|
6088
|
-
* @nullable
|
|
6089
|
-
*/
|
|
6090
|
-
export declare type HostingAccount200Resources = {
|
|
6091
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
6092
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
6093
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
6094
|
-
} | null;
|
|
6095
6105
|
export declare type HostingAccount200 = {
|
|
6096
6106
|
account_id?: string;
|
|
6097
6107
|
account_limits?: HostingAccount200AccountLimits;
|
|
@@ -6114,6 +6124,34 @@ export declare type HostingAccount200 = {
|
|
|
6114
6124
|
type?: string;
|
|
6115
6125
|
username?: string;
|
|
6116
6126
|
};
|
|
6127
|
+
export declare type HostingAccount200ResourcesWorkers = {
|
|
6128
|
+
/** @nullable */
|
|
6129
|
+
available?: number | null;
|
|
6130
|
+
/** @nullable */
|
|
6131
|
+
total?: number | null;
|
|
6132
|
+
/** @nullable */
|
|
6133
|
+
used?: number | null;
|
|
6134
|
+
};
|
|
6135
|
+
/**
|
|
6136
|
+
* Usage statistics for non-staging sites
|
|
6137
|
+
* @nullable
|
|
6138
|
+
*/
|
|
6139
|
+
export declare type HostingAccount200ResourcesUsed = {
|
|
6140
|
+
/**
|
|
6141
|
+
* Total number of domains used by this account
|
|
6142
|
+
* @nullable
|
|
6143
|
+
*/
|
|
6144
|
+
domain?: number | null;
|
|
6145
|
+
} | null;
|
|
6146
|
+
export declare type HostingAccount200ResourcesStorage = {
|
|
6147
|
+
/** @nullable */
|
|
6148
|
+
available?: number | null;
|
|
6149
|
+
/** @nullable */
|
|
6150
|
+
total?: number | null;
|
|
6151
|
+
unit?: string;
|
|
6152
|
+
/** @nullable */
|
|
6153
|
+
used?: number | null;
|
|
6154
|
+
};
|
|
6117
6155
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
6118
6156
|
/** @nullable */
|
|
6119
6157
|
available?: number | null;
|
|
@@ -6135,6 +6173,19 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
6135
6173
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
6136
6174
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
6137
6175
|
};
|
|
6176
|
+
/**
|
|
6177
|
+
* @nullable
|
|
6178
|
+
*/
|
|
6179
|
+
export declare type HostingAccount200Resources = {
|
|
6180
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
6181
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
6182
|
+
/**
|
|
6183
|
+
* Usage statistics for non-staging sites
|
|
6184
|
+
* @nullable
|
|
6185
|
+
*/
|
|
6186
|
+
used?: HostingAccount200ResourcesUsed;
|
|
6187
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
6188
|
+
} | null;
|
|
6138
6189
|
export declare type HostingAccount200Billing = {
|
|
6139
6190
|
prod_code?: string;
|
|
6140
6191
|
product_name?: string;
|
|
@@ -6146,6 +6197,11 @@ export declare type HostingAccount200AccountLimits = {
|
|
|
6146
6197
|
* @nullable
|
|
6147
6198
|
*/
|
|
6148
6199
|
email_accounts?: number | null;
|
|
6200
|
+
/**
|
|
6201
|
+
* Maxmimum number of domains that can be added to this account
|
|
6202
|
+
* @nullable
|
|
6203
|
+
*/
|
|
6204
|
+
max_domain?: number | null;
|
|
6149
6205
|
/**
|
|
6150
6206
|
* Number of max sites allowed for the hosting account
|
|
6151
6207
|
* @nullable
|
|
@@ -6445,6 +6501,70 @@ export declare type DomainCerts200CertsItem = {
|
|
|
6445
6501
|
export declare type DomainCerts200 = {
|
|
6446
6502
|
certs?: DomainCerts200CertsItem[];
|
|
6447
6503
|
};
|
|
6504
|
+
/**
|
|
6505
|
+
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6506
|
+
* @nullable
|
|
6507
|
+
*/
|
|
6508
|
+
export declare type DomainInfo200SetupProgressValidateSslErrorTable = {
|
|
6509
|
+
[key: string]: unknown;
|
|
6510
|
+
} | null;
|
|
6511
|
+
/**
|
|
6512
|
+
* @nullable
|
|
6513
|
+
*/
|
|
6514
|
+
export declare type DomainInfo200SetupProgress = {
|
|
6515
|
+
/**
|
|
6516
|
+
* Result of domain cdn validation (null=not started,0=started,1=succeeded,2=skipped)
|
|
6517
|
+
* @nullable
|
|
6518
|
+
*/
|
|
6519
|
+
validate_cdn?: number | null;
|
|
6520
|
+
/**
|
|
6521
|
+
* Most recent error logged during domain cdn validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6522
|
+
* @nullable
|
|
6523
|
+
*/
|
|
6524
|
+
validate_cdn_error?: string | null;
|
|
6525
|
+
/**
|
|
6526
|
+
* Result of domain dns validation (null=not started,0=started,1=succeeded,2=skipped)
|
|
6527
|
+
* @nullable
|
|
6528
|
+
*/
|
|
6529
|
+
validate_dns?: number | null;
|
|
6530
|
+
/**
|
|
6531
|
+
* Whether dns_auto_repair was run on this domain (1=true)
|
|
6532
|
+
* @nullable
|
|
6533
|
+
*/
|
|
6534
|
+
validate_dns_auto_repair?: number | null;
|
|
6535
|
+
/**
|
|
6536
|
+
* Most recent error logged during domain dns validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6537
|
+
* @nullable
|
|
6538
|
+
*/
|
|
6539
|
+
validate_dns_error?: string | null;
|
|
6540
|
+
/**
|
|
6541
|
+
* Most recent error logged during domain validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6542
|
+
* @nullable
|
|
6543
|
+
*/
|
|
6544
|
+
validate_error?: string | null;
|
|
6545
|
+
/**
|
|
6546
|
+
* Result of domain ssl validation (null=not started,0=started,1=succeeded,2=skipped)
|
|
6547
|
+
* @nullable
|
|
6548
|
+
*/
|
|
6549
|
+
validate_ssl?: number | null;
|
|
6550
|
+
/**
|
|
6551
|
+
* Most recent error logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6552
|
+
* @nullable
|
|
6553
|
+
*/
|
|
6554
|
+
validate_ssl_error?: string | null;
|
|
6555
|
+
/**
|
|
6556
|
+
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6557
|
+
* @nullable
|
|
6558
|
+
*/
|
|
6559
|
+
validate_ssl_error_table?: DomainInfo200SetupProgressValidateSslErrorTable;
|
|
6560
|
+
} | null;
|
|
6561
|
+
/**
|
|
6562
|
+
* Job ids and names currently running on the domain
|
|
6563
|
+
* @nullable
|
|
6564
|
+
*/
|
|
6565
|
+
export declare type DomainInfo200Jobs = {
|
|
6566
|
+
[key: string]: unknown;
|
|
6567
|
+
} | null;
|
|
6448
6568
|
export declare type DomainInfo200 = {
|
|
6449
6569
|
/** @nullable */
|
|
6450
6570
|
account_back_ref?: string | null;
|
|
@@ -6517,70 +6637,10 @@ export declare type DomainInfo200 = {
|
|
|
6517
6637
|
*/
|
|
6518
6638
|
used_entri?: number | null;
|
|
6519
6639
|
};
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
export declare type DomainInfo200SetupProgressValidateSslErrorTable = {
|
|
6525
|
-
[key: string]: unknown;
|
|
6526
|
-
} | null;
|
|
6527
|
-
/**
|
|
6528
|
-
* @nullable
|
|
6529
|
-
*/
|
|
6530
|
-
export declare type DomainInfo200SetupProgress = {
|
|
6531
|
-
/**
|
|
6532
|
-
* Result of domain cdn validation (null=not started,0=started,1=succeeded,2=skipped)
|
|
6533
|
-
* @nullable
|
|
6534
|
-
*/
|
|
6535
|
-
validate_cdn?: number | null;
|
|
6536
|
-
/**
|
|
6537
|
-
* Most recent error logged during domain cdn validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6538
|
-
* @nullable
|
|
6539
|
-
*/
|
|
6540
|
-
validate_cdn_error?: string | null;
|
|
6541
|
-
/**
|
|
6542
|
-
* Result of domain dns validation (null=not started,0=started,1=succeeded,2=skipped)
|
|
6543
|
-
* @nullable
|
|
6544
|
-
*/
|
|
6545
|
-
validate_dns?: number | null;
|
|
6546
|
-
/**
|
|
6547
|
-
* Whether dns_auto_repair was run on this domain (1=true)
|
|
6548
|
-
* @nullable
|
|
6549
|
-
*/
|
|
6550
|
-
validate_dns_auto_repair?: number | null;
|
|
6551
|
-
/**
|
|
6552
|
-
* Most recent error logged during domain dns validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6553
|
-
* @nullable
|
|
6554
|
-
*/
|
|
6555
|
-
validate_dns_error?: string | null;
|
|
6556
|
-
/**
|
|
6557
|
-
* Most recent error logged during domain validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6558
|
-
* @nullable
|
|
6559
|
-
*/
|
|
6560
|
-
validate_error?: string | null;
|
|
6561
|
-
/**
|
|
6562
|
-
* Result of domain ssl validation (null=not started,0=started,1=succeeded,2=skipped)
|
|
6563
|
-
* @nullable
|
|
6564
|
-
*/
|
|
6565
|
-
validate_ssl?: number | null;
|
|
6566
|
-
/**
|
|
6567
|
-
* Most recent error logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6568
|
-
* @nullable
|
|
6569
|
-
*/
|
|
6570
|
-
validate_ssl_error?: string | null;
|
|
6571
|
-
/**
|
|
6572
|
-
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
6573
|
-
* @nullable
|
|
6574
|
-
*/
|
|
6575
|
-
validate_ssl_error_table?: DomainInfo200SetupProgressValidateSslErrorTable;
|
|
6576
|
-
} | null;
|
|
6577
|
-
/**
|
|
6578
|
-
* Job ids and names currently running on the domain
|
|
6579
|
-
* @nullable
|
|
6580
|
-
*/
|
|
6581
|
-
export declare type DomainInfo200Jobs = {
|
|
6582
|
-
[key: string]: unknown;
|
|
6583
|
-
} | null;
|
|
6640
|
+
export declare type BullhornAnnouncements200 = {
|
|
6641
|
+
/** Bullhorn announcement banners for Account Manager. Empty when the feature is disabled or no announcements are configured. */
|
|
6642
|
+
bullhornAnnouncements: BullhornAnnouncement[];
|
|
6643
|
+
};
|
|
6584
6644
|
export declare type Announcements200 = {
|
|
6585
6645
|
/** Global announcement banners for Account Manager. Empty when the feature is disabled or no announcements are configured. */
|
|
6586
6646
|
announcements: Announcement[];
|
|
@@ -7978,6 +8038,19 @@ export interface Announcement {
|
|
|
7978
8038
|
*/
|
|
7979
8039
|
'sub-heading'?: string | null;
|
|
7980
8040
|
}
|
|
8041
|
+
/**
|
|
8042
|
+
* A single bullhorn announcement loaded from object storage.
|
|
8043
|
+
*/
|
|
8044
|
+
export interface BullhornAnnouncement {
|
|
8045
|
+
/** Supporting bullhorn announcement text. */
|
|
8046
|
+
body: string;
|
|
8047
|
+
/** Feature area where the bullhorn announcement should appear. */
|
|
8048
|
+
featureKey: string;
|
|
8049
|
+
/** Primary bullhorn announcement title. */
|
|
8050
|
+
header: string;
|
|
8051
|
+
/** Destination URL opened when the bullhorn announcement is clicked. */
|
|
8052
|
+
url: string;
|
|
8053
|
+
}
|
|
7981
8054
|
/**
|
|
7982
8055
|
* Which character set to use for the autorespond email content
|
|
7983
8056
|
*/
|
package/src/index.schemas.js
CHANGED
|
@@ -371,6 +371,10 @@ export const DbAddBodyType = {
|
|
|
371
371
|
postgres: 'postgres',
|
|
372
372
|
};
|
|
373
373
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
374
|
+
export const HostingAdvancedConsoleProtocol = {
|
|
375
|
+
ssh: 'ssh',
|
|
376
|
+
};
|
|
377
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
374
378
|
export const AccessLogsType = {
|
|
375
379
|
error: 'error',
|
|
376
380
|
all: 'all',
|