@newfold/huapi-js 2.1974.0 → 2.1990.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 +128 -1
- package/src/index.js +101 -1
- package/src/index.msw.d.ts +9 -1
- package/src/index.msw.js +49 -1
- package/src/index.schemas.d.ts +264 -72
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, 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';
|
|
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, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsDomainAssignBody, 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, HostingSpamexpertsEligibleDomains200, 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, UserProducts200, UserProducts401, UserProducts502, UserProservices200, 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
|
/**
|
|
@@ -1470,6 +1470,37 @@ export declare function useMonarxAddonReportUrl<TData = Awaited<ReturnType<typeo
|
|
|
1470
1470
|
}): UseQueryResult<TData, TError> & {
|
|
1471
1471
|
queryKey: QueryKey;
|
|
1472
1472
|
};
|
|
1473
|
+
/**
|
|
1474
|
+
* Assigns a domain to SpamExperts
|
|
1475
|
+
* @summary SpamExperts domain assign
|
|
1476
|
+
*/
|
|
1477
|
+
export declare const addonsSpamexpertsDomainAssign: (addonId: string, addonsSpamexpertsDomainAssignBody: AddonsSpamexpertsDomainAssignBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsSpamexpertsDomainAssign200>>;
|
|
1478
|
+
export declare const getAddonsSpamexpertsDomainAssignMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1479
|
+
mutation?: UseMutationOptions<AxiosResponse<AddonsSpamexpertsDomainAssign200, any>, TError, {
|
|
1480
|
+
addonId: string;
|
|
1481
|
+
data: AddonsSpamexpertsDomainAssignBody;
|
|
1482
|
+
}, TContext> | undefined;
|
|
1483
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1484
|
+
} | undefined) => UseMutationOptions<AxiosResponse<AddonsSpamexpertsDomainAssign200, any>, TError, {
|
|
1485
|
+
addonId: string;
|
|
1486
|
+
data: AddonsSpamexpertsDomainAssignBody;
|
|
1487
|
+
}, TContext>;
|
|
1488
|
+
export declare type AddonsSpamexpertsDomainAssignMutationResult = NonNullable<Awaited<ReturnType<typeof addonsSpamexpertsDomainAssign>>>;
|
|
1489
|
+
export declare type AddonsSpamexpertsDomainAssignMutationBody = AddonsSpamexpertsDomainAssignBody;
|
|
1490
|
+
export declare type AddonsSpamexpertsDomainAssignMutationError = AxiosError<unknown>;
|
|
1491
|
+
/**
|
|
1492
|
+
* @summary SpamExperts domain assign
|
|
1493
|
+
*/
|
|
1494
|
+
export declare const useAddonsSpamexpertsDomainAssign: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1495
|
+
mutation?: UseMutationOptions<AxiosResponse<AddonsSpamexpertsDomainAssign200, any>, TError, {
|
|
1496
|
+
addonId: string;
|
|
1497
|
+
data: AddonsSpamexpertsDomainAssignBody;
|
|
1498
|
+
}, TContext> | undefined;
|
|
1499
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1500
|
+
} | undefined) => UseMutationResult<AxiosResponse<AddonsSpamexpertsDomainAssign200, any>, TError, {
|
|
1501
|
+
addonId: string;
|
|
1502
|
+
data: AddonsSpamexpertsDomainAssignBody;
|
|
1503
|
+
}, TContext>;
|
|
1473
1504
|
/**
|
|
1474
1505
|
* Returns spamexperts sso url
|
|
1475
1506
|
* @summary info
|
|
@@ -6043,6 +6074,38 @@ export declare const useSitesBatch: <TError = AxiosError<unknown, any>, TContext
|
|
|
6043
6074
|
hostingId: number;
|
|
6044
6075
|
data: SitesBatchBody;
|
|
6045
6076
|
}, TContext>;
|
|
6077
|
+
/**
|
|
6078
|
+
* Returns domains on the hosting account that are eligible for SpamExperts domain assignment
|
|
6079
|
+
* @summary SpamExperts eligible domains
|
|
6080
|
+
*/
|
|
6081
|
+
export declare const hostingSpamexpertsEligibleDomains: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSpamexpertsEligibleDomains200>>;
|
|
6082
|
+
export declare const getHostingSpamexpertsEligibleDomainsQueryKey: (hostingId: string) => readonly [`/v1/hosting/${string}/spamexperts/eligible-domains`];
|
|
6083
|
+
export declare const getHostingSpamexpertsEligibleDomainsQueryOptions: <TData = AxiosResponse<HostingSpamexpertsEligibleDomains200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
6084
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingSpamexpertsEligibleDomains200, any>, TError, TData, QueryKey>> | undefined;
|
|
6085
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6086
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingSpamexpertsEligibleDomains200, any>, TError, TData, QueryKey> & {
|
|
6087
|
+
queryKey: QueryKey;
|
|
6088
|
+
};
|
|
6089
|
+
export declare type HostingSpamexpertsEligibleDomainsQueryResult = NonNullable<Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>>;
|
|
6090
|
+
export declare type HostingSpamexpertsEligibleDomainsQueryError = AxiosError<unknown>;
|
|
6091
|
+
export declare function useHostingSpamexpertsEligibleDomains<TData = Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError = AxiosError<unknown>>(hostingId: string, options: {
|
|
6092
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError, TData>, 'initialData'>;
|
|
6093
|
+
axios?: AxiosRequestConfig;
|
|
6094
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
6095
|
+
queryKey: QueryKey;
|
|
6096
|
+
};
|
|
6097
|
+
export declare function useHostingSpamexpertsEligibleDomains<TData = Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
6098
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError, TData>, 'initialData'>;
|
|
6099
|
+
axios?: AxiosRequestConfig;
|
|
6100
|
+
}): UseQueryResult<TData, TError> & {
|
|
6101
|
+
queryKey: QueryKey;
|
|
6102
|
+
};
|
|
6103
|
+
export declare function useHostingSpamexpertsEligibleDomains<TData = Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
6104
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingSpamexpertsEligibleDomains>>, TError, TData>>;
|
|
6105
|
+
axios?: AxiosRequestConfig;
|
|
6106
|
+
}): UseQueryResult<TData, TError> & {
|
|
6107
|
+
queryKey: QueryKey;
|
|
6108
|
+
};
|
|
6046
6109
|
/**
|
|
6047
6110
|
* Returns the hosting account's SSH information
|
|
6048
6111
|
* @summary ssh info
|
|
@@ -9168,6 +9231,70 @@ export declare function useAllUserMonarxDetails<TData = Awaited<ReturnType<typeo
|
|
|
9168
9231
|
}): UseQueryResult<TData, TError> & {
|
|
9169
9232
|
queryKey: QueryKey;
|
|
9170
9233
|
};
|
|
9234
|
+
/**
|
|
9235
|
+
* Returns a list of products belonging to the user
|
|
9236
|
+
* @summary Get user product lites
|
|
9237
|
+
*/
|
|
9238
|
+
export declare const userProducts: (options?: AxiosRequestConfig) => Promise<AxiosResponse<UserProducts200>>;
|
|
9239
|
+
export declare const getUserProductsQueryKey: () => readonly ["/v1/user/products"];
|
|
9240
|
+
export declare const getUserProductsQueryOptions: <TData = AxiosResponse<UserProducts200, any>, TError = AxiosError<UserProducts502 | UserProducts401, any>>(options?: {
|
|
9241
|
+
query?: Partial<UseQueryOptions<AxiosResponse<UserProducts200, any>, TError, TData, QueryKey>> | undefined;
|
|
9242
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
9243
|
+
} | undefined) => UseQueryOptions<AxiosResponse<UserProducts200, any>, TError, TData, QueryKey> & {
|
|
9244
|
+
queryKey: QueryKey;
|
|
9245
|
+
};
|
|
9246
|
+
export declare type UserProductsQueryResult = NonNullable<Awaited<ReturnType<typeof userProducts>>>;
|
|
9247
|
+
export declare type UserProductsQueryError = AxiosError<UserProducts401 | UserProducts502>;
|
|
9248
|
+
export declare function useUserProducts<TData = Awaited<ReturnType<typeof userProducts>>, TError = AxiosError<UserProducts401 | UserProducts502>>(options: {
|
|
9249
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProducts>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof userProducts>>, TError, TData>, 'initialData'>;
|
|
9250
|
+
axios?: AxiosRequestConfig;
|
|
9251
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
9252
|
+
queryKey: QueryKey;
|
|
9253
|
+
};
|
|
9254
|
+
export declare function useUserProducts<TData = Awaited<ReturnType<typeof userProducts>>, TError = AxiosError<UserProducts401 | UserProducts502>>(options?: {
|
|
9255
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProducts>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof userProducts>>, TError, TData>, 'initialData'>;
|
|
9256
|
+
axios?: AxiosRequestConfig;
|
|
9257
|
+
}): UseQueryResult<TData, TError> & {
|
|
9258
|
+
queryKey: QueryKey;
|
|
9259
|
+
};
|
|
9260
|
+
export declare function useUserProducts<TData = Awaited<ReturnType<typeof userProducts>>, TError = AxiosError<UserProducts401 | UserProducts502>>(options?: {
|
|
9261
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProducts>>, TError, TData>>;
|
|
9262
|
+
axios?: AxiosRequestConfig;
|
|
9263
|
+
}): UseQueryResult<TData, TError> & {
|
|
9264
|
+
queryKey: QueryKey;
|
|
9265
|
+
};
|
|
9266
|
+
/**
|
|
9267
|
+
* Returns pro-services FG products for the authenticated user
|
|
9268
|
+
* @summary Return pro-services products for the user
|
|
9269
|
+
*/
|
|
9270
|
+
export declare const userProservices: (options?: AxiosRequestConfig) => Promise<AxiosResponse<UserProservices200>>;
|
|
9271
|
+
export declare const getUserProservicesQueryKey: () => readonly ["/v1/user/proservices"];
|
|
9272
|
+
export declare const getUserProservicesQueryOptions: <TData = AxiosResponse<UserProservices200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
9273
|
+
query?: Partial<UseQueryOptions<AxiosResponse<UserProservices200, any>, TError, TData, QueryKey>> | undefined;
|
|
9274
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
9275
|
+
} | undefined) => UseQueryOptions<AxiosResponse<UserProservices200, any>, TError, TData, QueryKey> & {
|
|
9276
|
+
queryKey: QueryKey;
|
|
9277
|
+
};
|
|
9278
|
+
export declare type UserProservicesQueryResult = NonNullable<Awaited<ReturnType<typeof userProservices>>>;
|
|
9279
|
+
export declare type UserProservicesQueryError = AxiosError<unknown>;
|
|
9280
|
+
export declare function useUserProservices<TData = Awaited<ReturnType<typeof userProservices>>, TError = AxiosError<unknown>>(options: {
|
|
9281
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>, 'initialData'>;
|
|
9282
|
+
axios?: AxiosRequestConfig;
|
|
9283
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
9284
|
+
queryKey: QueryKey;
|
|
9285
|
+
};
|
|
9286
|
+
export declare function useUserProservices<TData = Awaited<ReturnType<typeof userProservices>>, TError = AxiosError<unknown>>(options?: {
|
|
9287
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>, 'initialData'>;
|
|
9288
|
+
axios?: AxiosRequestConfig;
|
|
9289
|
+
}): UseQueryResult<TData, TError> & {
|
|
9290
|
+
queryKey: QueryKey;
|
|
9291
|
+
};
|
|
9292
|
+
export declare function useUserProservices<TData = Awaited<ReturnType<typeof userProservices>>, TError = AxiosError<unknown>>(options?: {
|
|
9293
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userProservices>>, TError, TData>>;
|
|
9294
|
+
axios?: AxiosRequestConfig;
|
|
9295
|
+
}): UseQueryResult<TData, TError> & {
|
|
9296
|
+
queryKey: QueryKey;
|
|
9297
|
+
};
|
|
9171
9298
|
/**
|
|
9172
9299
|
* Returns an SSO redirect URL for the WaldAI (BLU GPT / AI All Access) product. Accepts a product instance ID, resolves the providerProdInstId from FG, and returns the SSO redirect URL from ESB.
|
|
9173
9300
|
* @summary Get WaldAI SSO redirect URL
|
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.1990.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -1139,6 +1139,28 @@ export function useMonarxAddonReportUrl(addonId, params, options) {
|
|
|
1139
1139
|
query.queryKey = queryOptions.queryKey;
|
|
1140
1140
|
return query;
|
|
1141
1141
|
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Assigns a domain to SpamExperts
|
|
1144
|
+
* @summary SpamExperts domain assign
|
|
1145
|
+
*/
|
|
1146
|
+
export const addonsSpamexpertsDomainAssign = (addonId, addonsSpamexpertsDomainAssignBody, options) => {
|
|
1147
|
+
return axios.post(`/v1/addons/${addonId}/spamexperts/domain/assign`, addonsSpamexpertsDomainAssignBody, options);
|
|
1148
|
+
};
|
|
1149
|
+
export const getAddonsSpamexpertsDomainAssignMutationOptions = (options) => {
|
|
1150
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1151
|
+
const mutationFn = (props) => {
|
|
1152
|
+
const { addonId, data } = props !== null && props !== void 0 ? props : {};
|
|
1153
|
+
return addonsSpamexpertsDomainAssign(addonId, data, axiosOptions);
|
|
1154
|
+
};
|
|
1155
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
1156
|
+
};
|
|
1157
|
+
/**
|
|
1158
|
+
* @summary SpamExperts domain assign
|
|
1159
|
+
*/
|
|
1160
|
+
export const useAddonsSpamexpertsDomainAssign = (options) => {
|
|
1161
|
+
const mutationOptions = getAddonsSpamexpertsDomainAssignMutationOptions(options);
|
|
1162
|
+
return useMutation(mutationOptions);
|
|
1163
|
+
};
|
|
1142
1164
|
/**
|
|
1143
1165
|
* Returns spamexperts sso url
|
|
1144
1166
|
* @summary info
|
|
@@ -4642,6 +4664,32 @@ export const useSitesBatch = (options) => {
|
|
|
4642
4664
|
const mutationOptions = getSitesBatchMutationOptions(options);
|
|
4643
4665
|
return useMutation(mutationOptions);
|
|
4644
4666
|
};
|
|
4667
|
+
/**
|
|
4668
|
+
* Returns domains on the hosting account that are eligible for SpamExperts domain assignment
|
|
4669
|
+
* @summary SpamExperts eligible domains
|
|
4670
|
+
*/
|
|
4671
|
+
export const hostingSpamexpertsEligibleDomains = (hostingId, options) => {
|
|
4672
|
+
return axios.get(`/v1/hosting/${hostingId}/spamexperts/eligible-domains`, options);
|
|
4673
|
+
};
|
|
4674
|
+
export const getHostingSpamexpertsEligibleDomainsQueryKey = (hostingId) => {
|
|
4675
|
+
return [`/v1/hosting/${hostingId}/spamexperts/eligible-domains`];
|
|
4676
|
+
};
|
|
4677
|
+
export const getHostingSpamexpertsEligibleDomainsQueryOptions = (hostingId, options) => {
|
|
4678
|
+
var _a;
|
|
4679
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
4680
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingSpamexpertsEligibleDomainsQueryKey(hostingId);
|
|
4681
|
+
const queryFn = ({ signal }) => hostingSpamexpertsEligibleDomains(hostingId, Object.assign({ signal }, axiosOptions));
|
|
4682
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
4683
|
+
};
|
|
4684
|
+
/**
|
|
4685
|
+
* @summary SpamExperts eligible domains
|
|
4686
|
+
*/
|
|
4687
|
+
export function useHostingSpamexpertsEligibleDomains(hostingId, options) {
|
|
4688
|
+
const queryOptions = getHostingSpamexpertsEligibleDomainsQueryOptions(hostingId, options);
|
|
4689
|
+
const query = useQuery(queryOptions);
|
|
4690
|
+
query.queryKey = queryOptions.queryKey;
|
|
4691
|
+
return query;
|
|
4692
|
+
}
|
|
4645
4693
|
/**
|
|
4646
4694
|
* Returns the hosting account's SSH information
|
|
4647
4695
|
* @summary ssh info
|
|
@@ -7075,6 +7123,58 @@ export function useAllUserMonarxDetails(options) {
|
|
|
7075
7123
|
query.queryKey = queryOptions.queryKey;
|
|
7076
7124
|
return query;
|
|
7077
7125
|
}
|
|
7126
|
+
/**
|
|
7127
|
+
* Returns a list of products belonging to the user
|
|
7128
|
+
* @summary Get user product lites
|
|
7129
|
+
*/
|
|
7130
|
+
export const userProducts = (options) => {
|
|
7131
|
+
return axios.get(`/v1/user/products`, options);
|
|
7132
|
+
};
|
|
7133
|
+
export const getUserProductsQueryKey = () => {
|
|
7134
|
+
return [`/v1/user/products`];
|
|
7135
|
+
};
|
|
7136
|
+
export const getUserProductsQueryOptions = (options) => {
|
|
7137
|
+
var _a;
|
|
7138
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
7139
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUserProductsQueryKey();
|
|
7140
|
+
const queryFn = ({ signal }) => userProducts(Object.assign({ signal }, axiosOptions));
|
|
7141
|
+
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
7142
|
+
};
|
|
7143
|
+
/**
|
|
7144
|
+
* @summary Get user product lites
|
|
7145
|
+
*/
|
|
7146
|
+
export function useUserProducts(options) {
|
|
7147
|
+
const queryOptions = getUserProductsQueryOptions(options);
|
|
7148
|
+
const query = useQuery(queryOptions);
|
|
7149
|
+
query.queryKey = queryOptions.queryKey;
|
|
7150
|
+
return query;
|
|
7151
|
+
}
|
|
7152
|
+
/**
|
|
7153
|
+
* Returns pro-services FG products for the authenticated user
|
|
7154
|
+
* @summary Return pro-services products for the user
|
|
7155
|
+
*/
|
|
7156
|
+
export const userProservices = (options) => {
|
|
7157
|
+
return axios.get(`/v1/user/proservices`, options);
|
|
7158
|
+
};
|
|
7159
|
+
export const getUserProservicesQueryKey = () => {
|
|
7160
|
+
return [`/v1/user/proservices`];
|
|
7161
|
+
};
|
|
7162
|
+
export const getUserProservicesQueryOptions = (options) => {
|
|
7163
|
+
var _a;
|
|
7164
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
7165
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUserProservicesQueryKey();
|
|
7166
|
+
const queryFn = ({ signal }) => userProservices(Object.assign({ signal }, axiosOptions));
|
|
7167
|
+
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
7168
|
+
};
|
|
7169
|
+
/**
|
|
7170
|
+
* @summary Return pro-services products for the user
|
|
7171
|
+
*/
|
|
7172
|
+
export function useUserProservices(options) {
|
|
7173
|
+
const queryOptions = getUserProservicesQueryOptions(options);
|
|
7174
|
+
const query = useQuery(queryOptions);
|
|
7175
|
+
query.queryKey = queryOptions.queryKey;
|
|
7176
|
+
return query;
|
|
7177
|
+
}
|
|
7078
7178
|
/**
|
|
7079
7179
|
* Returns an SSO redirect URL for the WaldAI (BLU GPT / AI All Access) product. Accepts a product instance ID, resolves the providerProdInstId from FG, and returns the SSO redirect URL from ESB.
|
|
7080
7180
|
* @summary Get WaldAI SSO redirect URL
|
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, 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';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsDomainAssign200, 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, HostingSpamexpertsEligibleDomains200, 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, UserProducts200, UserProservices200, 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;
|
|
@@ -46,6 +46,7 @@ export declare const getAddonsInfoResponseMock: (overrideResponse?: Partial<Addo
|
|
|
46
46
|
export declare const getAddonsJetpackValidateResponseMock: (overrideResponse?: Partial<AddonsJetpackValidate200>) => AddonsJetpackValidate200;
|
|
47
47
|
export declare const getMonarxAddonSealGenerationResponseMock: (overrideResponse?: Partial<MonarxAddonSealGeneration200>) => MonarxAddonSealGeneration200;
|
|
48
48
|
export declare const getMonarxAddonReportUrlResponseMock: (overrideResponse?: Partial<MonarxAddonReportUrl200>) => MonarxAddonReportUrl200;
|
|
49
|
+
export declare const getAddonsSpamexpertsDomainAssignResponseMock: (overrideResponse?: Partial<AddonsSpamexpertsDomainAssign200>) => AddonsSpamexpertsDomainAssign200;
|
|
49
50
|
export declare const getAddonsSpamexpertsSsoResponseMock: (overrideResponse?: Partial<AddonsSpamexpertsSso200>) => AddonsSpamexpertsSso200;
|
|
50
51
|
export declare const getAddonsSyncResponseMock: (overrideResponse?: Partial<AddonsSync200>) => AddonsSync200;
|
|
51
52
|
export declare const getWebzaiSsoResponseMock: (overrideResponse?: Partial<WebzaiSso200>) => WebzaiSso200;
|
|
@@ -192,6 +193,7 @@ export declare const getHostingShellToggleResponseMock: (overrideResponse?: Part
|
|
|
192
193
|
export declare const getHostingShellInfoResponseMock: (overrideResponse?: Partial<HostingShellInfo200>) => HostingShellInfo200;
|
|
193
194
|
export declare const getHostingSiteAddResponseMock: (overrideResponse?: Partial<HostingSiteAdd200>) => HostingSiteAdd200;
|
|
194
195
|
export declare const getSitesBatchResponseMock: (overrideResponse?: Partial<SitesBatch200>) => SitesBatch200;
|
|
196
|
+
export declare const getHostingSpamexpertsEligibleDomainsResponseMock: (overrideResponse?: Partial<HostingSpamexpertsEligibleDomains200>) => HostingSpamexpertsEligibleDomains200;
|
|
195
197
|
export declare const getHostingSshInfoResponseMock: (overrideResponse?: Partial<HostingSshInfo200>) => HostingSshInfo200;
|
|
196
198
|
export declare const getSshKeyFetchResponseMock: (overrideResponse?: Partial<SshKeyFetch200>) => SshKeyFetch200;
|
|
197
199
|
export declare const getSshKeyImportResponseMock: (overrideResponse?: Partial<SshKeyImport200>) => SshKeyImport200;
|
|
@@ -289,6 +291,8 @@ export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Par
|
|
|
289
291
|
export declare const getUserHostingResponseMock: (overrideResponse?: Partial<UserHosting200>) => UserHosting200;
|
|
290
292
|
export declare const getUserHostingOverviewResponseMock: (overrideResponse?: Partial<UserHostingOverview200>) => UserHostingOverview200;
|
|
291
293
|
export declare const getAllUserMonarxDetailsResponseMock: (overrideResponse?: Partial<AllUserMonarxDetails200>) => AllUserMonarxDetails200;
|
|
294
|
+
export declare const getUserProductsResponseMock: (overrideResponse?: Partial<UserProducts200>) => UserProducts200;
|
|
295
|
+
export declare const getUserProservicesResponseMock: (overrideResponse?: Partial<UserProservices200>) => UserProservices200;
|
|
292
296
|
export declare const getWaldaiSsoResponseMock: (overrideResponse?: Partial<WaldaiSso200>) => WaldaiSso200;
|
|
293
297
|
export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
|
|
294
298
|
export declare const getBackupCreateV2ResponseMock: (overrideResponse?: Partial<BackupCreateV2200>) => BackupCreateV2200;
|
|
@@ -370,6 +374,7 @@ export declare const getAddonsInfoMockHandler: (overrideResponse?: AddonsInfo200
|
|
|
370
374
|
export declare const getAddonsJetpackValidateMockHandler: (overrideResponse?: AddonsJetpackValidate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddonsJetpackValidate200> | AddonsJetpackValidate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
371
375
|
export declare const getMonarxAddonSealGenerationMockHandler: (overrideResponse?: MonarxAddonSealGeneration200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<MonarxAddonSealGeneration200> | MonarxAddonSealGeneration200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
372
376
|
export declare const getMonarxAddonReportUrlMockHandler: (overrideResponse?: MonarxAddonReportUrl200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<MonarxAddonReportUrl200> | MonarxAddonReportUrl200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
377
|
+
export declare const getAddonsSpamexpertsDomainAssignMockHandler: (overrideResponse?: AddonsSpamexpertsDomainAssign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddonsSpamexpertsDomainAssign200> | AddonsSpamexpertsDomainAssign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
373
378
|
export declare const getAddonsSpamexpertsSsoMockHandler: (overrideResponse?: AddonsSpamexpertsSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSpamexpertsSso200> | AddonsSpamexpertsSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
374
379
|
export declare const getAddonsSyncMockHandler: (overrideResponse?: AddonsSync200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSync200> | AddonsSync200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
375
380
|
export declare const getWebzaiSsoMockHandler: (overrideResponse?: WebzaiSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebzaiSso200> | WebzaiSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -516,6 +521,7 @@ export declare const getHostingShellToggleMockHandler: (overrideResponse?: Hosti
|
|
|
516
521
|
export declare const getHostingShellInfoMockHandler: (overrideResponse?: HostingShellInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingShellInfo200> | HostingShellInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
517
522
|
export declare const getHostingSiteAddMockHandler: (overrideResponse?: HostingSiteAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingSiteAdd200> | HostingSiteAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
518
523
|
export declare const getSitesBatchMockHandler: (overrideResponse?: SitesBatch200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<SitesBatch200> | SitesBatch200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
524
|
+
export declare const getHostingSpamexpertsEligibleDomainsMockHandler: (overrideResponse?: HostingSpamexpertsEligibleDomains200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingSpamexpertsEligibleDomains200> | HostingSpamexpertsEligibleDomains200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
519
525
|
export declare const getHostingSshInfoMockHandler: (overrideResponse?: HostingSshInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingSshInfo200> | HostingSshInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
520
526
|
export declare const getSshKeyFetchMockHandler: (overrideResponse?: SshKeyFetch200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SshKeyFetch200> | SshKeyFetch200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
521
527
|
export declare const getSshKeyImportMockHandler: (overrideResponse?: SshKeyImport200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SshKeyImport200> | SshKeyImport200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -615,6 +621,8 @@ export declare const getSiteAddonWpsolutionMockHandler: (overrideResponse?: Site
|
|
|
615
621
|
export declare const getUserHostingMockHandler: (overrideResponse?: UserHosting200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHosting200> | UserHosting200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
616
622
|
export declare const getUserHostingOverviewMockHandler: (overrideResponse?: UserHostingOverview200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHostingOverview200> | UserHostingOverview200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
617
623
|
export declare const getAllUserMonarxDetailsMockHandler: (overrideResponse?: AllUserMonarxDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AllUserMonarxDetails200> | AllUserMonarxDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
624
|
+
export declare const getUserProductsMockHandler: (overrideResponse?: UserProducts200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserProducts200> | UserProducts200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
625
|
+
export declare const getUserProservicesMockHandler: (overrideResponse?: UserProservices200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserProservices200> | UserProservices200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
618
626
|
export declare const getWaldaiSsoMockHandler: (overrideResponse?: WaldaiSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WaldaiSso200> | WaldaiSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
619
627
|
export declare const getAddonsSitelockSsoV2MockHandler: (overrideResponse?: AddonsSitelockSsoV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSitelockSsoV2200> | AddonsSitelockSsoV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
620
628
|
export declare const getBackupCreateV2MockHandler: (overrideResponse?: BackupCreateV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupCreateV2200> | BackupCreateV2200) | 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.1990.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -55,6 +55,7 @@ export const getAddonsInfoResponseMock = (overrideResponse = {}) => (Object.assi
|
|
|
55
55
|
export const getAddonsJetpackValidateResponseMock = (overrideResponse = {}) => (Object.assign({ is_connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
56
56
|
export const getMonarxAddonSealGenerationResponseMock = (overrideResponse = {}) => (Object.assign({ monarx_seal: faker.word.sample(), site_registration_id: faker.word.sample() }, overrideResponse));
|
|
57
57
|
export const getMonarxAddonReportUrlResponseMock = (overrideResponse = {}) => (Object.assign({ report_url: faker.word.sample() }, overrideResponse));
|
|
58
|
+
export const getAddonsSpamexpertsDomainAssignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
58
59
|
export const getAddonsSpamexpertsSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
59
60
|
export const getAddonsSyncResponseMock = (overrideResponse = {}) => (Object.assign({ previous_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
60
61
|
export const getWebzaiSsoResponseMock = (overrideResponse = {}) => (Object.assign({ sso: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -203,6 +204,7 @@ export const getHostingShellToggleResponseMock = (overrideResponse = {}) => (Obj
|
|
|
203
204
|
export const getHostingShellInfoResponseMock = (overrideResponse = {}) => (Object.assign({ enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
204
205
|
export const getHostingSiteAddResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.datatype.boolean() }, overrideResponse));
|
|
205
206
|
export const getSitesBatchResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
207
|
+
export const getHostingSpamexpertsEligibleDomainsResponseMock = (overrideResponse = {}) => (Object.assign({ n_rows: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
206
208
|
export const getHostingSshInfoResponseMock = (overrideResponse = {}) => (Object.assign({ credential: faker.helpers.arrayElement([faker.word.sample(), undefined]), ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
207
209
|
export const getSshKeyFetchResponseMock = (overrideResponse = {}) => (Object.assign({ key: faker.helpers.arrayElement([faker.word.sample(), undefined]), key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
208
210
|
export const getSshKeyImportResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -324,6 +326,8 @@ export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Ob
|
|
|
324
326
|
export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), application: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), image: faker.helpers.arrayElement([{ app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), capability_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_panel_mail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel_mail_addon: faker.helpers.arrayElement([{ back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
|
|
325
327
|
export const getUserHostingOverviewResponseMock = (overrideResponse = {}) => (Object.assign({ has_unlimited_sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), hosting_accounts: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), max_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
326
328
|
export const getAllUserMonarxDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.word.sample(), undefined]), addon_id: faker.number.int({ min: undefined, max: undefined }), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain_name: faker.word.sample(), health_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), last_scan_completed_at: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), plan: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })) }, overrideResponse));
|
|
329
|
+
export const getUserProductsResponseMock = (overrideResponse = {}) => (Object.assign({ products: 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.number.int({ min: undefined, max: undefined }), null]), undefined]), auto_renew: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), created_date: faker.helpers.arrayElement([faker.helpers.arrayElement([`${faker.date.past().toISOString().split('.')[0]}Z`, null]), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), generic_prod_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_cloud_product: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_free_foundation_hosting: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_gw_product_configured: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), parent_prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), subscription_term: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), subscription_unit: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
330
|
+
export const getUserProservicesResponseMock = (overrideResponse = {}) => (Object.assign({ products: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing_account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), created_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), generic_prod_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), identifier: faker.helpers.arrayElement([{ key: faker.helpers.arrayElement([faker.word.sample(), undefined]), value: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), life_cycle_state: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), parent_prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), parent_prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), product_profile_options: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ profile_option: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), profile_value: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), revision_window_days: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
327
331
|
export const getWaldaiSsoResponseMock = (overrideResponse = {}) => (Object.assign({ redirect_url: faker.word.sample() }, overrideResponse));
|
|
328
332
|
export const getAddonsSitelockSsoV2ResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
329
333
|
export const getBackupCreateV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -821,6 +825,16 @@ export const getMonarxAddonReportUrlMockHandler = (overrideResponse) => {
|
|
|
821
825
|
});
|
|
822
826
|
}));
|
|
823
827
|
};
|
|
828
|
+
export const getAddonsSpamexpertsDomainAssignMockHandler = (overrideResponse) => {
|
|
829
|
+
return http.post('*/v1/addons/:addonId/spamexperts/domain/assign', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
830
|
+
yield delay(0);
|
|
831
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
832
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
833
|
+
: getAddonsSpamexpertsDomainAssignResponseMock()), { status: 200,
|
|
834
|
+
headers: { 'Content-Type': 'application/json' }
|
|
835
|
+
});
|
|
836
|
+
}));
|
|
837
|
+
};
|
|
824
838
|
export const getAddonsSpamexpertsSsoMockHandler = (overrideResponse) => {
|
|
825
839
|
return http.get('*/v1/addons/:addonId/spamexperts/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
826
840
|
yield delay(0);
|
|
@@ -2281,6 +2295,16 @@ export const getSitesBatchMockHandler = (overrideResponse) => {
|
|
|
2281
2295
|
});
|
|
2282
2296
|
}));
|
|
2283
2297
|
};
|
|
2298
|
+
export const getHostingSpamexpertsEligibleDomainsMockHandler = (overrideResponse) => {
|
|
2299
|
+
return http.get('*/v1/hosting/:hostingId/spamexperts/eligible-domains', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2300
|
+
yield delay(0);
|
|
2301
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2302
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2303
|
+
: getHostingSpamexpertsEligibleDomainsResponseMock()), { status: 200,
|
|
2304
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2305
|
+
});
|
|
2306
|
+
}));
|
|
2307
|
+
};
|
|
2284
2308
|
export const getHostingSshInfoMockHandler = (overrideResponse) => {
|
|
2285
2309
|
return http.get('*/v1/hosting/:hostingId/ssh', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2286
2310
|
yield delay(0);
|
|
@@ -3271,6 +3295,26 @@ export const getAllUserMonarxDetailsMockHandler = (overrideResponse) => {
|
|
|
3271
3295
|
});
|
|
3272
3296
|
}));
|
|
3273
3297
|
};
|
|
3298
|
+
export const getUserProductsMockHandler = (overrideResponse) => {
|
|
3299
|
+
return http.get('*/v1/user/products', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3300
|
+
yield delay(0);
|
|
3301
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
3302
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
3303
|
+
: getUserProductsResponseMock()), { status: 200,
|
|
3304
|
+
headers: { 'Content-Type': 'application/json' }
|
|
3305
|
+
});
|
|
3306
|
+
}));
|
|
3307
|
+
};
|
|
3308
|
+
export const getUserProservicesMockHandler = (overrideResponse) => {
|
|
3309
|
+
return http.get('*/v1/user/proservices', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3310
|
+
yield delay(0);
|
|
3311
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
3312
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
3313
|
+
: getUserProservicesResponseMock()), { status: 200,
|
|
3314
|
+
headers: { 'Content-Type': 'application/json' }
|
|
3315
|
+
});
|
|
3316
|
+
}));
|
|
3317
|
+
};
|
|
3274
3318
|
export const getWaldaiSsoMockHandler = (overrideResponse) => {
|
|
3275
3319
|
return http.get('*/v1/user/wald-ai/:prodInstId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3276
3320
|
yield delay(0);
|
|
@@ -3668,6 +3712,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3668
3712
|
getAddonsJetpackValidateMockHandler(),
|
|
3669
3713
|
getMonarxAddonSealGenerationMockHandler(),
|
|
3670
3714
|
getMonarxAddonReportUrlMockHandler(),
|
|
3715
|
+
getAddonsSpamexpertsDomainAssignMockHandler(),
|
|
3671
3716
|
getAddonsSpamexpertsSsoMockHandler(),
|
|
3672
3717
|
getAddonsSyncMockHandler(),
|
|
3673
3718
|
getWebzaiSsoMockHandler(),
|
|
@@ -3814,6 +3859,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3814
3859
|
getHostingShellInfoMockHandler(),
|
|
3815
3860
|
getHostingSiteAddMockHandler(),
|
|
3816
3861
|
getSitesBatchMockHandler(),
|
|
3862
|
+
getHostingSpamexpertsEligibleDomainsMockHandler(),
|
|
3817
3863
|
getHostingSshInfoMockHandler(),
|
|
3818
3864
|
getSshKeyFetchMockHandler(),
|
|
3819
3865
|
getSshKeyImportMockHandler(),
|
|
@@ -3913,6 +3959,8 @@ export const getHostingUAPIMock = () => [
|
|
|
3913
3959
|
getUserHostingMockHandler(),
|
|
3914
3960
|
getUserHostingOverviewMockHandler(),
|
|
3915
3961
|
getAllUserMonarxDetailsMockHandler(),
|
|
3962
|
+
getUserProductsMockHandler(),
|
|
3963
|
+
getUserProservicesMockHandler(),
|
|
3916
3964
|
getWaldaiSsoMockHandler(),
|
|
3917
3965
|
getAddonsSitelockSsoV2MockHandler(),
|
|
3918
3966
|
getBackupCreateV2MockHandler(),
|
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.1990.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -206,6 +206,13 @@ 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
|
+
};
|
|
209
216
|
/**
|
|
210
217
|
* @nullable
|
|
211
218
|
*/
|
|
@@ -240,13 +247,6 @@ export declare type BackupListV3200ItemsItem = {
|
|
|
240
247
|
timezone?: string;
|
|
241
248
|
type?: string;
|
|
242
249
|
};
|
|
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,19 +429,6 @@ 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
|
-
};
|
|
438
|
-
/**
|
|
439
|
-
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
440
|
-
* @nullable
|
|
441
|
-
*/
|
|
442
|
-
export declare type SitesDomainsV2200DomainsItemSetupProgressValidateSslErrorTable = {
|
|
443
|
-
[key: string]: unknown;
|
|
444
|
-
} | null;
|
|
445
432
|
/**
|
|
446
433
|
* @nullable
|
|
447
434
|
*/
|
|
@@ -492,13 +479,6 @@ export declare type SitesDomainsV2200DomainsItemSetupProgress = {
|
|
|
492
479
|
*/
|
|
493
480
|
validate_ssl_error_table?: SitesDomainsV2200DomainsItemSetupProgressValidateSslErrorTable;
|
|
494
481
|
} | null;
|
|
495
|
-
/**
|
|
496
|
-
* Job ids and names currently running on the domain
|
|
497
|
-
* @nullable
|
|
498
|
-
*/
|
|
499
|
-
export declare type SitesDomainsV2200DomainsItemJobs = {
|
|
500
|
-
[key: string]: unknown;
|
|
501
|
-
} | null;
|
|
502
482
|
export declare type SitesDomainsV2200DomainsItem = {
|
|
503
483
|
/** @nullable */
|
|
504
484
|
account_back_ref?: string | null;
|
|
@@ -571,6 +551,26 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
571
551
|
*/
|
|
572
552
|
used_entri?: number | null;
|
|
573
553
|
};
|
|
554
|
+
export declare type SitesDomainsV2200 = {
|
|
555
|
+
domains: SitesDomainsV2200DomainsItem[];
|
|
556
|
+
limit?: number;
|
|
557
|
+
page?: number;
|
|
558
|
+
total?: number;
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
562
|
+
* @nullable
|
|
563
|
+
*/
|
|
564
|
+
export declare type SitesDomainsV2200DomainsItemSetupProgressValidateSslErrorTable = {
|
|
565
|
+
[key: string]: unknown;
|
|
566
|
+
} | null;
|
|
567
|
+
/**
|
|
568
|
+
* Job ids and names currently running on the domain
|
|
569
|
+
* @nullable
|
|
570
|
+
*/
|
|
571
|
+
export declare type SitesDomainsV2200DomainsItemJobs = {
|
|
572
|
+
[key: string]: unknown;
|
|
573
|
+
} | null;
|
|
574
574
|
export declare type SitesDomainsV2Params = {
|
|
575
575
|
scan?: boolean;
|
|
576
576
|
};
|
|
@@ -1477,6 +1477,174 @@ export declare type WaldaiSso200 = {
|
|
|
1477
1477
|
/** SSO redirect URL for WaldAI dashboard */
|
|
1478
1478
|
redirect_url: string;
|
|
1479
1479
|
};
|
|
1480
|
+
export declare type UserProservices200ProductsItemProductProfileOptionsItem = {
|
|
1481
|
+
/** @nullable */
|
|
1482
|
+
profile_option?: number | null;
|
|
1483
|
+
/** @nullable */
|
|
1484
|
+
profile_value?: string | null;
|
|
1485
|
+
};
|
|
1486
|
+
/**
|
|
1487
|
+
* @nullable
|
|
1488
|
+
*/
|
|
1489
|
+
export declare type UserProservices200ProductsItemIdentifier = {
|
|
1490
|
+
/** Identifier type: domain, ticket_id, or account_id */
|
|
1491
|
+
key?: string;
|
|
1492
|
+
/** Resolved identifier value from Pega or FG */
|
|
1493
|
+
value?: string;
|
|
1494
|
+
} | null;
|
|
1495
|
+
export declare type UserProservices200ProductsItem = {
|
|
1496
|
+
/** @nullable */
|
|
1497
|
+
auto_renew_flag?: boolean | null;
|
|
1498
|
+
/**
|
|
1499
|
+
* FG billing account id
|
|
1500
|
+
* @nullable
|
|
1501
|
+
*/
|
|
1502
|
+
billing_account_id?: string | null;
|
|
1503
|
+
/** @nullable */
|
|
1504
|
+
created_date?: string | null;
|
|
1505
|
+
/** @nullable */
|
|
1506
|
+
expiration_date?: string | null;
|
|
1507
|
+
/** @nullable */
|
|
1508
|
+
generic_prod_type?: string | null;
|
|
1509
|
+
/** @nullable */
|
|
1510
|
+
identifier?: UserProservices200ProductsItemIdentifier;
|
|
1511
|
+
/** @nullable */
|
|
1512
|
+
life_cycle_state?: string | null;
|
|
1513
|
+
/**
|
|
1514
|
+
* prod_code of the parent product referenced by parent_prod_inst_id
|
|
1515
|
+
* @nullable
|
|
1516
|
+
*/
|
|
1517
|
+
parent_prod_code?: string | null;
|
|
1518
|
+
/** @nullable */
|
|
1519
|
+
parent_prod_inst_id?: string | null;
|
|
1520
|
+
/** @nullable */
|
|
1521
|
+
prod_code?: string | null;
|
|
1522
|
+
/** @nullable */
|
|
1523
|
+
prod_inst_id?: string | null;
|
|
1524
|
+
/**
|
|
1525
|
+
* FG product instance display name
|
|
1526
|
+
* @nullable
|
|
1527
|
+
*/
|
|
1528
|
+
prod_inst_name?: string | null;
|
|
1529
|
+
/** @nullable */
|
|
1530
|
+
prod_name?: string | null;
|
|
1531
|
+
/** FG product profile options */
|
|
1532
|
+
product_profile_options?: UserProservices200ProductsItemProductProfileOptionsItem[];
|
|
1533
|
+
/** Remaining revision days, Expired when the window has ended, or empty when not applicable */
|
|
1534
|
+
revision_window_days?: string;
|
|
1535
|
+
/** Pro-services status: Active or Completed */
|
|
1536
|
+
status?: string;
|
|
1537
|
+
};
|
|
1538
|
+
export declare type UserProservices200 = {
|
|
1539
|
+
/** Pro-services products from FG */
|
|
1540
|
+
products?: UserProservices200ProductsItem[];
|
|
1541
|
+
/** Number of pro-services products returned */
|
|
1542
|
+
total?: number;
|
|
1543
|
+
};
|
|
1544
|
+
export declare type UserProducts502 = {
|
|
1545
|
+
/** Error code */
|
|
1546
|
+
error?: string;
|
|
1547
|
+
};
|
|
1548
|
+
export declare type UserProducts401 = {
|
|
1549
|
+
/** Error code */
|
|
1550
|
+
error?: string;
|
|
1551
|
+
};
|
|
1552
|
+
export declare type UserProducts200ProductsItem = {
|
|
1553
|
+
/**
|
|
1554
|
+
* Account identifier
|
|
1555
|
+
* @nullable
|
|
1556
|
+
*/
|
|
1557
|
+
account_id?: number | null;
|
|
1558
|
+
/**
|
|
1559
|
+
* Human-readable auto-renew status. Possible values: 'On' (auto-renew enabled) or 'Off' (auto-renew disabled).
|
|
1560
|
+
* @nullable
|
|
1561
|
+
*/
|
|
1562
|
+
auto_renew?: string | null;
|
|
1563
|
+
/**
|
|
1564
|
+
* Whether auto-renew is enabled
|
|
1565
|
+
* @nullable
|
|
1566
|
+
*/
|
|
1567
|
+
auto_renew_flag?: boolean | null;
|
|
1568
|
+
/**
|
|
1569
|
+
* Date when the product was created
|
|
1570
|
+
* @nullable
|
|
1571
|
+
*/
|
|
1572
|
+
created_date?: string | null;
|
|
1573
|
+
/**
|
|
1574
|
+
* Product expiration date
|
|
1575
|
+
* @nullable
|
|
1576
|
+
*/
|
|
1577
|
+
expiration_date?: string | null;
|
|
1578
|
+
/**
|
|
1579
|
+
* Generic product type
|
|
1580
|
+
* @nullable
|
|
1581
|
+
*/
|
|
1582
|
+
generic_prod_type?: string | null;
|
|
1583
|
+
/**
|
|
1584
|
+
* Whether the product is a WP Cloud product (e.g. WP_CLOUD_1, WP_CLOUD_10, WP_CLOUD_25, WP_CLOUD_50, WP_CLOUD_100, WP_CLOUD_300, WP_CLOUD_600).
|
|
1585
|
+
* @nullable
|
|
1586
|
+
*/
|
|
1587
|
+
is_cloud_product?: boolean | null;
|
|
1588
|
+
/**
|
|
1589
|
+
* Whether this product includes free foundation hosting
|
|
1590
|
+
* @nullable
|
|
1591
|
+
*/
|
|
1592
|
+
is_free_foundation_hosting?: boolean | null;
|
|
1593
|
+
/**
|
|
1594
|
+
* Whether the Google Workspace product has been configured (i.e. configuredCdId equals 13).
|
|
1595
|
+
* @nullable
|
|
1596
|
+
*/
|
|
1597
|
+
is_gw_product_configured?: boolean | null;
|
|
1598
|
+
/**
|
|
1599
|
+
* Parent product instance identifier
|
|
1600
|
+
* @nullable
|
|
1601
|
+
*/
|
|
1602
|
+
parent_prod_inst_id?: string | null;
|
|
1603
|
+
/**
|
|
1604
|
+
* Internal product code
|
|
1605
|
+
* @nullable
|
|
1606
|
+
*/
|
|
1607
|
+
prod_code?: string | null;
|
|
1608
|
+
/**
|
|
1609
|
+
* Product identifier
|
|
1610
|
+
* @nullable
|
|
1611
|
+
*/
|
|
1612
|
+
prod_id?: number | null;
|
|
1613
|
+
/**
|
|
1614
|
+
* Product instance identifier
|
|
1615
|
+
* @nullable
|
|
1616
|
+
*/
|
|
1617
|
+
prod_inst_id?: string | null;
|
|
1618
|
+
/**
|
|
1619
|
+
* Product instance name
|
|
1620
|
+
* @nullable
|
|
1621
|
+
*/
|
|
1622
|
+
prod_inst_name?: string | null;
|
|
1623
|
+
/**
|
|
1624
|
+
* Product display name
|
|
1625
|
+
* @nullable
|
|
1626
|
+
*/
|
|
1627
|
+
prod_name?: string | null;
|
|
1628
|
+
/**
|
|
1629
|
+
* Product type
|
|
1630
|
+
* @nullable
|
|
1631
|
+
*/
|
|
1632
|
+
prod_type?: string | null;
|
|
1633
|
+
/**
|
|
1634
|
+
* Numeric duration of the subscription. The unit of this value is defined by subscription_unit (e.g. a value of 1 with subscription_unit 'Y' means 1 year, a value of 6 with subscription_unit 'M' means 6 months).
|
|
1635
|
+
* @nullable
|
|
1636
|
+
*/
|
|
1637
|
+
subscription_term?: number | null;
|
|
1638
|
+
/**
|
|
1639
|
+
* Unit of the subscription term. Common values: 'Y' (year), 'M' (month). Use in conjunction with subscription_term to determine the full subscription length (e.g. subscription_term: 1, subscription_unit: 'Y' = 1 year).
|
|
1640
|
+
* @nullable
|
|
1641
|
+
*/
|
|
1642
|
+
subscription_unit?: string | null;
|
|
1643
|
+
};
|
|
1644
|
+
export declare type UserProducts200 = {
|
|
1645
|
+
/** List of products associated with the account */
|
|
1646
|
+
products?: UserProducts200ProductsItem[];
|
|
1647
|
+
};
|
|
1480
1648
|
export declare type AllUserMonarxDetails200RowsItem = {
|
|
1481
1649
|
/** HAL Account back_reference, used to link to the product instance */
|
|
1482
1650
|
account_back_ref?: string;
|
|
@@ -2652,18 +2820,6 @@ export declare type SitesMetricDimensions200DimensionsPageIsCachedItem = {
|
|
|
2652
2820
|
dimension?: SitesMetricDimensions200DimensionsPageIsCachedItemDimension;
|
|
2653
2821
|
timestamp?: number;
|
|
2654
2822
|
};
|
|
2655
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
2656
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2657
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2658
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2659
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2660
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2661
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2662
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2663
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2664
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2665
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2666
|
-
};
|
|
2667
2823
|
export declare type SitesMetricDimensions200DimensionsHttpVersionItemDimension = {
|
|
2668
2824
|
[key: string]: number;
|
|
2669
2825
|
};
|
|
@@ -2692,6 +2848,18 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
2692
2848
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
2693
2849
|
timestamp?: number;
|
|
2694
2850
|
};
|
|
2851
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
2852
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2853
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2854
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2855
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2856
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2857
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2858
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2859
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2860
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2861
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2862
|
+
};
|
|
2695
2863
|
export declare type SitesMetricDimensionsParams = {
|
|
2696
2864
|
start?: string;
|
|
2697
2865
|
end?: string;
|
|
@@ -3128,10 +3296,6 @@ export declare type SitesAtomicMetrics200Views = {
|
|
|
3128
3296
|
last_n_days?: SitesAtomicMetrics200ViewsLastNDaysItem[];
|
|
3129
3297
|
total_hits?: number;
|
|
3130
3298
|
};
|
|
3131
|
-
export declare type SitesAtomicMetrics200 = {
|
|
3132
|
-
raw?: SitesAtomicMetrics200Raw;
|
|
3133
|
-
views?: SitesAtomicMetrics200Views;
|
|
3134
|
-
};
|
|
3135
3299
|
export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
|
|
3136
3300
|
[key: string]: string | number | number;
|
|
3137
3301
|
};
|
|
@@ -3149,6 +3313,10 @@ export declare type SitesAtomicMetrics200Raw = {
|
|
|
3149
3313
|
periods?: SitesAtomicMetrics200RawPeriodsItem[];
|
|
3150
3314
|
resolution?: number;
|
|
3151
3315
|
};
|
|
3316
|
+
export declare type SitesAtomicMetrics200 = {
|
|
3317
|
+
raw?: SitesAtomicMetrics200Raw;
|
|
3318
|
+
views?: SitesAtomicMetrics200Views;
|
|
3319
|
+
};
|
|
3152
3320
|
export declare type SitesAtomicMetricsParams = {
|
|
3153
3321
|
metric?: string[];
|
|
3154
3322
|
dimension?: string[];
|
|
@@ -3241,6 +3409,20 @@ export declare type SitesInfo200Staging = {
|
|
|
3241
3409
|
/** A list of staging sites of the current site */
|
|
3242
3410
|
sites?: number[];
|
|
3243
3411
|
} | null;
|
|
3412
|
+
export declare type SitesInfo200ResourcesStorage = {
|
|
3413
|
+
/** @nullable */
|
|
3414
|
+
available?: number | null;
|
|
3415
|
+
/** @nullable */
|
|
3416
|
+
total?: number | null;
|
|
3417
|
+
unit?: string;
|
|
3418
|
+
/** @nullable */
|
|
3419
|
+
used?: number | null;
|
|
3420
|
+
};
|
|
3421
|
+
export declare type SitesInfo200Resources = {
|
|
3422
|
+
storage?: SitesInfo200ResourcesStorage;
|
|
3423
|
+
/** @nullable */
|
|
3424
|
+
workers?: number | null;
|
|
3425
|
+
};
|
|
3244
3426
|
/**
|
|
3245
3427
|
* @nullable
|
|
3246
3428
|
*/
|
|
@@ -3390,20 +3572,6 @@ export declare type SitesInfo200 = {
|
|
|
3390
3572
|
/** @nullable */
|
|
3391
3573
|
wp_multi_site?: SitesInfo200WpMultiSite;
|
|
3392
3574
|
};
|
|
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
3575
|
export declare type PublicRegions200RowsItem = {
|
|
3408
3576
|
/**
|
|
3409
3577
|
* Whether dedicated configurator is active for this region
|
|
@@ -3811,6 +3979,21 @@ export declare type HostingSshInfo200 = {
|
|
|
3811
3979
|
success?: boolean;
|
|
3812
3980
|
username?: string;
|
|
3813
3981
|
};
|
|
3982
|
+
export declare type HostingSpamexpertsEligibleDomains200RowsItem = {
|
|
3983
|
+
/** Domain name */
|
|
3984
|
+
domain?: string;
|
|
3985
|
+
/** HAL domain id */
|
|
3986
|
+
id?: number;
|
|
3987
|
+
/** Domain status on the hosting account */
|
|
3988
|
+
status?: string;
|
|
3989
|
+
/** Domain type */
|
|
3990
|
+
type?: string;
|
|
3991
|
+
};
|
|
3992
|
+
export declare type HostingSpamexpertsEligibleDomains200 = {
|
|
3993
|
+
/** Number of eligible domains returned */
|
|
3994
|
+
n_rows?: number;
|
|
3995
|
+
rows?: HostingSpamexpertsEligibleDomains200RowsItem[];
|
|
3996
|
+
};
|
|
3814
3997
|
export declare type SitesBatch200 = {
|
|
3815
3998
|
success?: boolean;
|
|
3816
3999
|
};
|
|
@@ -4927,12 +5110,6 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4927
5110
|
/** list of rules to be applied to the filter */
|
|
4928
5111
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4929
5112
|
};
|
|
4930
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4931
|
-
/** The number of filters */
|
|
4932
|
-
count?: number;
|
|
4933
|
-
/** List of filters */
|
|
4934
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4935
|
-
};
|
|
4936
5113
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4937
5114
|
match?: FilterRuleMatch;
|
|
4938
5115
|
opt?: FilterRuleOpt;
|
|
@@ -4963,6 +5140,12 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4963
5140
|
/** Whether the filter is unescaped */
|
|
4964
5141
|
unescaped?: boolean;
|
|
4965
5142
|
};
|
|
5143
|
+
export declare type HostingEmailFiltersList200 = {
|
|
5144
|
+
/** The number of filters */
|
|
5145
|
+
count?: number;
|
|
5146
|
+
/** List of filters */
|
|
5147
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
5148
|
+
};
|
|
4966
5149
|
export declare type HostingEmailFiltersListParams = {
|
|
4967
5150
|
/**
|
|
4968
5151
|
* The email account address to query filters by
|
|
@@ -6667,6 +6850,15 @@ export declare type AddonsSync200 = {
|
|
|
6667
6850
|
export declare type AddonsSpamexpertsSso200 = {
|
|
6668
6851
|
url?: string;
|
|
6669
6852
|
};
|
|
6853
|
+
export declare type AddonsSpamexpertsDomainAssign200 = {
|
|
6854
|
+
[key: string]: unknown;
|
|
6855
|
+
};
|
|
6856
|
+
export declare type AddonsSpamexpertsDomainAssignBody = {
|
|
6857
|
+
/** The domain to assign to SpamExperts */
|
|
6858
|
+
domain: string;
|
|
6859
|
+
/** The email address to use for the SpamExperts account */
|
|
6860
|
+
email: string;
|
|
6861
|
+
};
|
|
6670
6862
|
export declare type MonarxAddonReportUrl200 = {
|
|
6671
6863
|
/** Tokenized Monarx iframe URL */
|
|
6672
6864
|
report_url: string;
|
|
@@ -7052,6 +7244,14 @@ export declare type BackupMeta200SiteCbsBackupDeleteData = {
|
|
|
7052
7244
|
*/
|
|
7053
7245
|
plan_type?: BackupMeta200SiteCbsBackupDeleteDataPlanType;
|
|
7054
7246
|
} | null;
|
|
7247
|
+
export declare type BackupMeta200Account = {
|
|
7248
|
+
/** @nullable */
|
|
7249
|
+
cbs_downloadables?: BackupMeta200AccountCbsDownloadablesItem[] | null;
|
|
7250
|
+
/** @nullable */
|
|
7251
|
+
cbs_event_processing?: BackupMeta200AccountCbsEventProcessing;
|
|
7252
|
+
/** @nullable */
|
|
7253
|
+
cbs_last_restore_timestamp?: string | null;
|
|
7254
|
+
};
|
|
7055
7255
|
/**
|
|
7056
7256
|
* Backup plan type for the current account event processing context.
|
|
7057
7257
|
* @nullable
|
|
@@ -7095,14 +7295,6 @@ export declare type BackupMeta200AccountCbsDownloadablesItem = {
|
|
|
7095
7295
|
/** @nullable */
|
|
7096
7296
|
url?: string | null;
|
|
7097
7297
|
};
|
|
7098
|
-
export declare type BackupMeta200Account = {
|
|
7099
|
-
/** @nullable */
|
|
7100
|
-
cbs_downloadables?: BackupMeta200AccountCbsDownloadablesItem[] | null;
|
|
7101
|
-
/** @nullable */
|
|
7102
|
-
cbs_event_processing?: BackupMeta200AccountCbsEventProcessing;
|
|
7103
|
-
/** @nullable */
|
|
7104
|
-
cbs_last_restore_timestamp?: string | null;
|
|
7105
|
-
};
|
|
7106
7298
|
export declare type BackupMetaParams = {
|
|
7107
7299
|
site_id?: number;
|
|
7108
7300
|
};
|