@newfold/huapi-js 2.1637.0 → 2.1655.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 +68 -15
- package/src/index.js +58 -12
- package/src/index.msw.d.ts +7 -3
- package/src/index.msw.js +31 -7
- package/src/index.schemas.d.ts +195 -110
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHostings200, UserHostingsParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -1403,6 +1403,58 @@ export declare function useDomainEmailDeliverability<TData = Awaited<ReturnType<
|
|
|
1403
1403
|
}): UseQueryResult<TData, TError> & {
|
|
1404
1404
|
queryKey: QueryKey;
|
|
1405
1405
|
};
|
|
1406
|
+
/**
|
|
1407
|
+
* Sets hal domain meta_used_entri that indicates the domain was set up using Entri
|
|
1408
|
+
* @summary Set hal domain meta_used_entri
|
|
1409
|
+
*/
|
|
1410
|
+
export declare const domainsSetEntriUsed: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainsSetEntriUsed200>>;
|
|
1411
|
+
export declare const getDomainsSetEntriUsedMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1412
|
+
mutation?: UseMutationOptions<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
|
|
1413
|
+
domainId: string;
|
|
1414
|
+
}, TContext> | undefined;
|
|
1415
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1416
|
+
} | undefined) => UseMutationOptions<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
|
|
1417
|
+
domainId: string;
|
|
1418
|
+
}, TContext>;
|
|
1419
|
+
export declare type DomainsSetEntriUsedMutationResult = NonNullable<Awaited<ReturnType<typeof domainsSetEntriUsed>>>;
|
|
1420
|
+
export declare type DomainsSetEntriUsedMutationError = AxiosError<unknown>;
|
|
1421
|
+
/**
|
|
1422
|
+
* @summary Set hal domain meta_used_entri
|
|
1423
|
+
*/
|
|
1424
|
+
export declare const useDomainsSetEntriUsed: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1425
|
+
mutation?: UseMutationOptions<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
|
|
1426
|
+
domainId: string;
|
|
1427
|
+
}, TContext> | undefined;
|
|
1428
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1429
|
+
} | undefined) => UseMutationResult<AxiosResponse<DomainsSetEntriUsed200, any>, TError, {
|
|
1430
|
+
domainId: string;
|
|
1431
|
+
}, TContext>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Unsets hal domain meta_used_entri that indicates the domain was set up using Entri
|
|
1434
|
+
* @summary Unset hal domain meta_used_entri
|
|
1435
|
+
*/
|
|
1436
|
+
export declare const domainsUnsetEntriUsed: (domainId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<DomainsUnsetEntriUsed200>>;
|
|
1437
|
+
export declare const getDomainsUnsetEntriUsedMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1438
|
+
mutation?: UseMutationOptions<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
|
|
1439
|
+
domainId: string;
|
|
1440
|
+
}, TContext> | undefined;
|
|
1441
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1442
|
+
} | undefined) => UseMutationOptions<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
|
|
1443
|
+
domainId: string;
|
|
1444
|
+
}, TContext>;
|
|
1445
|
+
export declare type DomainsUnsetEntriUsedMutationResult = NonNullable<Awaited<ReturnType<typeof domainsUnsetEntriUsed>>>;
|
|
1446
|
+
export declare type DomainsUnsetEntriUsedMutationError = AxiosError<unknown>;
|
|
1447
|
+
/**
|
|
1448
|
+
* @summary Unset hal domain meta_used_entri
|
|
1449
|
+
*/
|
|
1450
|
+
export declare const useDomainsUnsetEntriUsed: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1451
|
+
mutation?: UseMutationOptions<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
|
|
1452
|
+
domainId: string;
|
|
1453
|
+
}, TContext> | undefined;
|
|
1454
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1455
|
+
} | undefined) => UseMutationResult<AxiosResponse<DomainsUnsetEntriUsed200, any>, TError, {
|
|
1456
|
+
domainId: string;
|
|
1457
|
+
}, TContext>;
|
|
1406
1458
|
/**
|
|
1407
1459
|
* Access logs
|
|
1408
1460
|
* @summary Access logs
|
|
@@ -6407,6 +6459,7 @@ export declare function useSitesErrorLogsDownload<TData = Awaited<ReturnType<typ
|
|
|
6407
6459
|
};
|
|
6408
6460
|
/**
|
|
6409
6461
|
* Returns malware status of atomic site
|
|
6462
|
+
* @deprecated
|
|
6410
6463
|
* @summary malware status of atomic site
|
|
6411
6464
|
*/
|
|
6412
6465
|
export declare const siteMalwareStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteMalwareStatus200>>;
|
|
@@ -7742,32 +7795,32 @@ export declare const useSiteAddonWpsolution: <TError = AxiosError<SiteAddonWpsol
|
|
|
7742
7795
|
}, TContext>;
|
|
7743
7796
|
/**
|
|
7744
7797
|
* Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
7745
|
-
* @summary Return
|
|
7798
|
+
* @summary Return a list of accounts and info about each (account, addon, sites), plus extra optional info (disk usage, userbox limits, etc)
|
|
7746
7799
|
*/
|
|
7747
|
-
export declare const
|
|
7748
|
-
export declare const
|
|
7749
|
-
export declare const
|
|
7750
|
-
query?: Partial<UseQueryOptions<AxiosResponse<
|
|
7800
|
+
export declare const userHosting: (params?: UserHostingParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<UserHosting200>>;
|
|
7801
|
+
export declare const getUserHostingQueryKey: (params?: UserHostingParams) => readonly ["/v1/user/hosting", ...UserHostingParams[]];
|
|
7802
|
+
export declare const getUserHostingQueryOptions: <TData = AxiosResponse<UserHosting200, any>, TError = AxiosError<unknown, any>>(params?: UserHostingParams, options?: {
|
|
7803
|
+
query?: Partial<UseQueryOptions<AxiosResponse<UserHosting200, any>, TError, TData, QueryKey>> | undefined;
|
|
7751
7804
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
7752
|
-
} | undefined) => UseQueryOptions<AxiosResponse<
|
|
7805
|
+
} | undefined) => UseQueryOptions<AxiosResponse<UserHosting200, any>, TError, TData, QueryKey> & {
|
|
7753
7806
|
queryKey: QueryKey;
|
|
7754
7807
|
};
|
|
7755
|
-
export declare type
|
|
7756
|
-
export declare type
|
|
7757
|
-
export declare function
|
|
7758
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
7808
|
+
export declare type UserHostingQueryResult = NonNullable<Awaited<ReturnType<typeof userHosting>>>;
|
|
7809
|
+
export declare type UserHostingQueryError = AxiosError<unknown>;
|
|
7810
|
+
export declare function useUserHosting<TData = Awaited<ReturnType<typeof userHosting>>, TError = AxiosError<unknown>>(params: undefined | UserHostingParams, options: {
|
|
7811
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>, 'initialData'>;
|
|
7759
7812
|
axios?: AxiosRequestConfig;
|
|
7760
7813
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
7761
7814
|
queryKey: QueryKey;
|
|
7762
7815
|
};
|
|
7763
|
-
export declare function
|
|
7764
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
7816
|
+
export declare function useUserHosting<TData = Awaited<ReturnType<typeof userHosting>>, TError = AxiosError<unknown>>(params?: UserHostingParams, options?: {
|
|
7817
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>, 'initialData'>;
|
|
7765
7818
|
axios?: AxiosRequestConfig;
|
|
7766
7819
|
}): UseQueryResult<TData, TError> & {
|
|
7767
7820
|
queryKey: QueryKey;
|
|
7768
7821
|
};
|
|
7769
|
-
export declare function
|
|
7770
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
7822
|
+
export declare function useUserHosting<TData = Awaited<ReturnType<typeof userHosting>>, TError = AxiosError<unknown>>(params?: UserHostingParams, options?: {
|
|
7823
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHosting>>, TError, TData>>;
|
|
7771
7824
|
axios?: AxiosRequestConfig;
|
|
7772
7825
|
}): UseQueryResult<TData, TError> & {
|
|
7773
7826
|
queryKey: QueryKey;
|
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.1655.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -1105,6 +1105,50 @@ export function useDomainEmailDeliverability(domainId, options) {
|
|
|
1105
1105
|
query.queryKey = queryOptions.queryKey;
|
|
1106
1106
|
return query;
|
|
1107
1107
|
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Sets hal domain meta_used_entri that indicates the domain was set up using Entri
|
|
1110
|
+
* @summary Set hal domain meta_used_entri
|
|
1111
|
+
*/
|
|
1112
|
+
export const domainsSetEntriUsed = (domainId, options) => {
|
|
1113
|
+
return axios.post(`/v1/domains/${domainId}/entri/used`, undefined, options);
|
|
1114
|
+
};
|
|
1115
|
+
export const getDomainsSetEntriUsedMutationOptions = (options) => {
|
|
1116
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1117
|
+
const mutationFn = (props) => {
|
|
1118
|
+
const { domainId } = props !== null && props !== void 0 ? props : {};
|
|
1119
|
+
return domainsSetEntriUsed(domainId, axiosOptions);
|
|
1120
|
+
};
|
|
1121
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
1122
|
+
};
|
|
1123
|
+
/**
|
|
1124
|
+
* @summary Set hal domain meta_used_entri
|
|
1125
|
+
*/
|
|
1126
|
+
export const useDomainsSetEntriUsed = (options) => {
|
|
1127
|
+
const mutationOptions = getDomainsSetEntriUsedMutationOptions(options);
|
|
1128
|
+
return useMutation(mutationOptions);
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Unsets hal domain meta_used_entri that indicates the domain was set up using Entri
|
|
1132
|
+
* @summary Unset hal domain meta_used_entri
|
|
1133
|
+
*/
|
|
1134
|
+
export const domainsUnsetEntriUsed = (domainId, options) => {
|
|
1135
|
+
return axios.delete(`/v1/domains/${domainId}/entri/used`, options);
|
|
1136
|
+
};
|
|
1137
|
+
export const getDomainsUnsetEntriUsedMutationOptions = (options) => {
|
|
1138
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1139
|
+
const mutationFn = (props) => {
|
|
1140
|
+
const { domainId } = props !== null && props !== void 0 ? props : {};
|
|
1141
|
+
return domainsUnsetEntriUsed(domainId, axiosOptions);
|
|
1142
|
+
};
|
|
1143
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
1144
|
+
};
|
|
1145
|
+
/**
|
|
1146
|
+
* @summary Unset hal domain meta_used_entri
|
|
1147
|
+
*/
|
|
1148
|
+
export const useDomainsUnsetEntriUsed = (options) => {
|
|
1149
|
+
const mutationOptions = getDomainsUnsetEntriUsedMutationOptions(options);
|
|
1150
|
+
return useMutation(mutationOptions);
|
|
1151
|
+
};
|
|
1108
1152
|
/**
|
|
1109
1153
|
* Access logs
|
|
1110
1154
|
* @summary Access logs
|
|
@@ -4932,6 +4976,7 @@ export function useSitesErrorLogsDownload(siteId, params, options) {
|
|
|
4932
4976
|
}
|
|
4933
4977
|
/**
|
|
4934
4978
|
* Returns malware status of atomic site
|
|
4979
|
+
* @deprecated
|
|
4935
4980
|
* @summary malware status of atomic site
|
|
4936
4981
|
*/
|
|
4937
4982
|
export const siteMalwareStatus = (siteId, options) => {
|
|
@@ -4948,6 +4993,7 @@ export const getSiteMalwareStatusQueryOptions = (siteId, options) => {
|
|
|
4948
4993
|
return Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions);
|
|
4949
4994
|
};
|
|
4950
4995
|
/**
|
|
4996
|
+
* @deprecated
|
|
4951
4997
|
* @summary malware status of atomic site
|
|
4952
4998
|
*/
|
|
4953
4999
|
export function useSiteMalwareStatus(siteId, options) {
|
|
@@ -5971,26 +6017,26 @@ export const useSiteAddonWpsolution = (options) => {
|
|
|
5971
6017
|
};
|
|
5972
6018
|
/**
|
|
5973
6019
|
* Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
5974
|
-
* @summary Return
|
|
6020
|
+
* @summary Return a list of accounts and info about each (account, addon, sites), plus extra optional info (disk usage, userbox limits, etc)
|
|
5975
6021
|
*/
|
|
5976
|
-
export const
|
|
5977
|
-
return axios.get(`/v1/user/
|
|
6022
|
+
export const userHosting = (params, options) => {
|
|
6023
|
+
return axios.get(`/v1/user/hosting`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
5978
6024
|
};
|
|
5979
|
-
export const
|
|
5980
|
-
return [`/v1/user/
|
|
6025
|
+
export const getUserHostingQueryKey = (params) => {
|
|
6026
|
+
return [`/v1/user/hosting`, ...(params ? [params] : [])];
|
|
5981
6027
|
};
|
|
5982
|
-
export const
|
|
6028
|
+
export const getUserHostingQueryOptions = (params, options) => {
|
|
5983
6029
|
var _a;
|
|
5984
6030
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5985
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a :
|
|
5986
|
-
const queryFn = ({ signal }) =>
|
|
6031
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUserHostingQueryKey(params);
|
|
6032
|
+
const queryFn = ({ signal }) => userHosting(params, Object.assign({ signal }, axiosOptions));
|
|
5987
6033
|
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
5988
6034
|
};
|
|
5989
6035
|
/**
|
|
5990
|
-
* @summary Return
|
|
6036
|
+
* @summary Return a list of accounts and info about each (account, addon, sites), plus extra optional info (disk usage, userbox limits, etc)
|
|
5991
6037
|
*/
|
|
5992
|
-
export function
|
|
5993
|
-
const queryOptions =
|
|
6038
|
+
export function useUserHosting(params, options) {
|
|
6039
|
+
const queryOptions = getUserHostingQueryOptions(params, options);
|
|
5994
6040
|
const query = useQuery(queryOptions);
|
|
5995
6041
|
query.queryKey = queryOptions.queryKey;
|
|
5996
6042
|
return query;
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200,
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -45,6 +45,8 @@ export declare const getDomainDnseditorAddResponseMock: (overrideResponse?: Part
|
|
|
45
45
|
export declare const getDomainDnseditorEditResponseMock: (overrideResponse?: Partial<DomainDnseditorEdit200>) => DomainDnseditorEdit200;
|
|
46
46
|
export declare const getDomainDnszoneResetResponseMock: (overrideResponse?: Partial<DomainDnszoneReset200>) => DomainDnszoneReset200;
|
|
47
47
|
export declare const getDomainEmailDeliverabilityResponseMock: (overrideResponse?: Partial<DomainEmailDeliverability200>) => DomainEmailDeliverability200;
|
|
48
|
+
export declare const getDomainsSetEntriUsedResponseMock: (overrideResponse?: Partial<DomainsSetEntriUsed200>) => DomainsSetEntriUsed200;
|
|
49
|
+
export declare const getDomainsUnsetEntriUsedResponseMock: (overrideResponse?: Partial<DomainsUnsetEntriUsed200>) => DomainsUnsetEntriUsed200;
|
|
48
50
|
export declare const getAccessLogsResponseMock: (overrideResponse?: Partial<AccessLogs200>) => AccessLogs200;
|
|
49
51
|
export declare const getDomainUnassignResponseMock: (overrideResponse?: Partial<DomainUnassign200>) => DomainUnassign200;
|
|
50
52
|
export declare const getDomainZoneeditorUrlResponseMock: (overrideResponse?: Partial<DomainZoneeditorUrl200>) => DomainZoneeditorUrl200;
|
|
@@ -244,7 +246,7 @@ export declare const getSiteStatusResponseMock: (overrideResponse?: Partial<Site
|
|
|
244
246
|
export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteUsers200>) => SiteUsers200;
|
|
245
247
|
export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
|
|
246
248
|
export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Partial<SiteAddonWpsolution200>) => SiteAddonWpsolution200;
|
|
247
|
-
export declare const
|
|
249
|
+
export declare const getUserHostingResponseMock: (overrideResponse?: Partial<UserHosting200>) => UserHosting200;
|
|
248
250
|
export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
|
|
249
251
|
export declare const getBackupCreateV2ResponseMock: (overrideResponse?: Partial<BackupCreateV2200>) => BackupCreateV2200;
|
|
250
252
|
export declare const getBackupDownloadV2ResponseMock: (overrideResponse?: Partial<BackupDownloadV2200>) => BackupDownloadV2200;
|
|
@@ -320,6 +322,8 @@ export declare const getDomainDnseditorAddMockHandler: (overrideResponse?: Domai
|
|
|
320
322
|
export declare const getDomainDnseditorEditMockHandler: (overrideResponse?: DomainDnseditorEdit200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<DomainDnseditorEdit200> | DomainDnseditorEdit200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
321
323
|
export declare const getDomainDnszoneResetMockHandler: (overrideResponse?: DomainDnszoneReset200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainDnszoneReset200> | DomainDnszoneReset200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
322
324
|
export declare const getDomainEmailDeliverabilityMockHandler: (overrideResponse?: DomainEmailDeliverability200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainEmailDeliverability200> | DomainEmailDeliverability200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
325
|
+
export declare const getDomainsSetEntriUsedMockHandler: (overrideResponse?: DomainsSetEntriUsed200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainsSetEntriUsed200> | DomainsSetEntriUsed200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
326
|
+
export declare const getDomainsUnsetEntriUsedMockHandler: (overrideResponse?: DomainsUnsetEntriUsed200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DomainsUnsetEntriUsed200> | DomainsUnsetEntriUsed200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
323
327
|
export declare const getAccessLogsMockHandler: (overrideResponse?: AccessLogs200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AccessLogs200> | AccessLogs200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
324
328
|
export declare const getDomainUnassignMockHandler: (overrideResponse?: DomainUnassign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainUnassign200> | DomainUnassign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
325
329
|
export declare const getDomainZoneeditorUrlMockHandler: (overrideResponse?: DomainZoneeditorUrl200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainZoneeditorUrl200> | DomainZoneeditorUrl200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -521,7 +525,7 @@ export declare const getSiteStatusMockHandler: (overrideResponse?: SiteStatus200
|
|
|
521
525
|
export declare const getSiteUsersMockHandler: (overrideResponse?: SiteUsers200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteUsers200> | SiteUsers200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
522
526
|
export declare const getSitesVersionMockHandler: (overrideResponse?: SitesVersion200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesVersion200> | SitesVersion200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
523
527
|
export declare const getSiteAddonWpsolutionMockHandler: (overrideResponse?: SiteAddonWpsolution200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteAddonWpsolution200> | SiteAddonWpsolution200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
524
|
-
export declare const
|
|
528
|
+
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;
|
|
525
529
|
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;
|
|
526
530
|
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;
|
|
527
531
|
export declare const getBackupDownloadV2MockHandler: (overrideResponse?: BackupDownloadV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupDownloadV2200> | BackupDownloadV2200) | 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.1655.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -54,6 +54,8 @@ export const getDomainDnseditorAddResponseMock = (overrideResponse = {}) => (Obj
|
|
|
54
54
|
export const getDomainDnseditorEditResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
55
55
|
export const getDomainDnszoneResetResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
56
56
|
export const getDomainEmailDeliverabilityResponseMock = (overrideResponse = {}) => (Object.assign({ a_record_check: faker.helpers.arrayElement([{ a_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), box: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected: faker.helpers.arrayElement([faker.word.sample(), undefined]), xns: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), dkim_check: faker.helpers.arrayElement([{ dkim_record: faker.helpers.arrayElement([faker.word.sample(), undefined]), private_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), pubkeys_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), record_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), mx_check: faker.helpers.arrayElement([{ box_mx: faker.helpers.arrayElement([faker.word.sample(), undefined]), mx_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), xns_mx: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), ptr_check: faker.helpers.arrayElement([{ helo_hostname: faker.helpers.arrayElement([faker.word.sample(), undefined]), ptr_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), ptr_value: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), spf_check: faker.helpers.arrayElement([{ box_spf: faker.helpers.arrayElement([faker.word.sample(), undefined]), spf_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), xns_spf: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
57
|
+
export const getDomainsSetEntriUsedResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
58
|
+
export const getDomainsUnsetEntriUsedResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
57
59
|
export const getAccessLogsResponseMock = (overrideResponse = {}) => (Object.assign({ logs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), device: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), host: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), request: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), response_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), response_size: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
58
60
|
export const getDomainUnassignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
59
61
|
export const getDomainZoneeditorUrlResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
@@ -277,7 +279,7 @@ export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assi
|
|
|
277
279
|
export const getSiteUsersResponseMock = (overrideResponse = {}) => (Object.assign({ users: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ display_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.number.int({ min: undefined, max: undefined }), meta: faker.helpers.arrayElement([{ maestro_web_pro: faker.helpers.arrayElement([faker.word.sample(), undefined]), maestro_wpp_identifier: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), post_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), role: faker.word.sample(), user_email: faker.word.sample(), user_id: faker.number.int({ min: undefined, max: undefined }), user_login: faker.word.sample(), user_nicename: faker.word.sample() })) }, overrideResponse));
|
|
278
280
|
export const getSitesVersionResponseMock = (overrideResponse = {}) => (Object.assign({ current: faker.helpers.arrayElement([faker.word.sample(), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), update: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
279
281
|
export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
280
|
-
export const
|
|
282
|
+
export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
|
|
281
283
|
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));
|
|
282
284
|
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));
|
|
283
285
|
export const getBackupDownloadV2ResponseMock = (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));
|
|
@@ -290,7 +292,7 @@ export const getHostingDomainsUnassignV2ResponseMock = (overrideResponse = {}) =
|
|
|
290
292
|
export const getListFilesV2ResponseMock = (overrideResponse = {}) => (Object.assign({ files: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), size: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
291
293
|
export const getHostingNameserversV2ResponseMock = (overrideResponse = {}) => (Object.assign({ brand: faker.word.sample(), hosts: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ host: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) })), id: faker.number.int({ min: undefined, max: undefined }), is_default: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
292
294
|
export const getHostingRedirectsV2ResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ docroot: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), http_status_code: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), redirect_www: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), src: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]), wildcard: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })));
|
|
293
|
-
export const getHostingSitesV2ResponseMock = (overrideResponse = {}) => (Object.assign({ available_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), max_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), page: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), used_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), used_sites_details: faker.helpers.arrayElement([{ sites_active: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), sites_misconfigured: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), sites_other: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), sites_pending: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, overrideResponse));
|
|
295
|
+
export const getHostingSitesV2ResponseMock = (overrideResponse = {}) => (Object.assign({ available_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), max_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), page: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), used_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), used_sites_details: faker.helpers.arrayElement([{ sites_active: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), sites_misconfigured: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), sites_other: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), sites_pending: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), staging_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, overrideResponse));
|
|
294
296
|
export const getHostingSiteAddV2ResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
295
297
|
export const getSshKeyImportV2ResponseMock = (overrideResponse = {}) => (Object.assign({ private_key_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), public_key_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
296
298
|
export const getSshKeyListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ key: faker.helpers.arrayElement([faker.word.sample(), undefined]), mtime: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
@@ -760,6 +762,26 @@ export const getDomainEmailDeliverabilityMockHandler = (overrideResponse) => {
|
|
|
760
762
|
});
|
|
761
763
|
}));
|
|
762
764
|
};
|
|
765
|
+
export const getDomainsSetEntriUsedMockHandler = (overrideResponse) => {
|
|
766
|
+
return http.post('*/v1/domains/:domainId/entri/used', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
767
|
+
yield delay(0);
|
|
768
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
769
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
770
|
+
: getDomainsSetEntriUsedResponseMock()), { status: 200,
|
|
771
|
+
headers: { 'Content-Type': 'application/json' }
|
|
772
|
+
});
|
|
773
|
+
}));
|
|
774
|
+
};
|
|
775
|
+
export const getDomainsUnsetEntriUsedMockHandler = (overrideResponse) => {
|
|
776
|
+
return http.delete('*/v1/domains/:domainId/entri/used', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
777
|
+
yield delay(0);
|
|
778
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
779
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
780
|
+
: getDomainsUnsetEntriUsedResponseMock()), { status: 200,
|
|
781
|
+
headers: { 'Content-Type': 'application/json' }
|
|
782
|
+
});
|
|
783
|
+
}));
|
|
784
|
+
};
|
|
763
785
|
export const getAccessLogsMockHandler = (overrideResponse) => {
|
|
764
786
|
return http.get('*/v1/domains/:domainId/logs/access', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
765
787
|
yield delay(0);
|
|
@@ -2770,12 +2792,12 @@ export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
|
|
|
2770
2792
|
});
|
|
2771
2793
|
}));
|
|
2772
2794
|
};
|
|
2773
|
-
export const
|
|
2774
|
-
return http.get('*/v1/user/
|
|
2795
|
+
export const getUserHostingMockHandler = (overrideResponse) => {
|
|
2796
|
+
return http.get('*/v1/user/hosting', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2775
2797
|
yield delay(0);
|
|
2776
2798
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2777
2799
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2778
|
-
:
|
|
2800
|
+
: getUserHostingResponseMock()), { status: 200,
|
|
2779
2801
|
headers: { 'Content-Type': 'application/json' }
|
|
2780
2802
|
});
|
|
2781
2803
|
}));
|
|
@@ -3126,6 +3148,8 @@ export const getHostingUAPIMock = () => [
|
|
|
3126
3148
|
getDomainDnseditorEditMockHandler(),
|
|
3127
3149
|
getDomainDnszoneResetMockHandler(),
|
|
3128
3150
|
getDomainEmailDeliverabilityMockHandler(),
|
|
3151
|
+
getDomainsSetEntriUsedMockHandler(),
|
|
3152
|
+
getDomainsUnsetEntriUsedMockHandler(),
|
|
3129
3153
|
getAccessLogsMockHandler(),
|
|
3130
3154
|
getDomainUnassignMockHandler(),
|
|
3131
3155
|
getDomainZoneeditorUrlMockHandler(),
|
|
@@ -3327,7 +3351,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3327
3351
|
getSiteUsersMockHandler(),
|
|
3328
3352
|
getSitesVersionMockHandler(),
|
|
3329
3353
|
getSiteAddonWpsolutionMockHandler(),
|
|
3330
|
-
|
|
3354
|
+
getUserHostingMockHandler(),
|
|
3331
3355
|
getAddonsSitelockSsoV2MockHandler(),
|
|
3332
3356
|
getBackupCreateV2MockHandler(),
|
|
3333
3357
|
getBackupDownloadV2MockHandler(),
|
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.1655.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -348,17 +348,6 @@ export declare type SitesDomainsV2200 = {
|
|
|
348
348
|
export declare type SitesDomainsV2Params = {
|
|
349
349
|
scan?: boolean;
|
|
350
350
|
};
|
|
351
|
-
export declare type SitesListV2200 = {
|
|
352
|
-
items?: SitesListV2200ItemsItem[];
|
|
353
|
-
/** page size */
|
|
354
|
-
limit?: number;
|
|
355
|
-
/** current page number */
|
|
356
|
-
page?: number;
|
|
357
|
-
/** total number of pages */
|
|
358
|
-
pages?: number;
|
|
359
|
-
/** total number of sites returned */
|
|
360
|
-
total?: number;
|
|
361
|
-
};
|
|
362
351
|
/**
|
|
363
352
|
* @nullable
|
|
364
353
|
*/
|
|
@@ -521,6 +510,17 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
521
510
|
*/
|
|
522
511
|
version_ptr?: string | null;
|
|
523
512
|
};
|
|
513
|
+
export declare type SitesListV2200 = {
|
|
514
|
+
items?: SitesListV2200ItemsItem[];
|
|
515
|
+
/** page size */
|
|
516
|
+
limit?: number;
|
|
517
|
+
/** current page number */
|
|
518
|
+
page?: number;
|
|
519
|
+
/** total number of pages */
|
|
520
|
+
pages?: number;
|
|
521
|
+
/** total number of sites returned */
|
|
522
|
+
total?: number;
|
|
523
|
+
};
|
|
524
524
|
export declare type SshKeyV2200 = {
|
|
525
525
|
deleted?: number;
|
|
526
526
|
key_name?: string;
|
|
@@ -621,6 +621,8 @@ export declare type HostingSitesV2200UsedSitesDetails = {
|
|
|
621
621
|
sites_other?: number;
|
|
622
622
|
/** Count of sites that are in pending statuses i.e. pending_create pending_reset pending_delete etc */
|
|
623
623
|
sites_pending?: number;
|
|
624
|
+
/** Count of staging sites on specified hosting account */
|
|
625
|
+
staging_sites?: number;
|
|
624
626
|
};
|
|
625
627
|
export declare type HostingSitesV2200 = {
|
|
626
628
|
/**
|
|
@@ -859,6 +861,12 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
859
861
|
/** The site id to be unassigned */
|
|
860
862
|
site_id: number;
|
|
861
863
|
};
|
|
864
|
+
export declare type HostingDomainsV2200 = {
|
|
865
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
866
|
+
limit?: number;
|
|
867
|
+
page?: number;
|
|
868
|
+
total?: number;
|
|
869
|
+
};
|
|
862
870
|
/**
|
|
863
871
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
864
872
|
* @nullable
|
|
@@ -978,12 +986,6 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
978
986
|
third_party_dns?: boolean | null;
|
|
979
987
|
type: string;
|
|
980
988
|
};
|
|
981
|
-
export declare type HostingDomainsV2200 = {
|
|
982
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
983
|
-
limit?: number;
|
|
984
|
-
page?: number;
|
|
985
|
-
total?: number;
|
|
986
|
-
};
|
|
987
989
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
988
990
|
export declare const HostingDomainsV2TypesItem: {
|
|
989
991
|
readonly addon: "addon";
|
|
@@ -1092,22 +1094,46 @@ export declare type AddonsSitelockSsoV2Params = {
|
|
|
1092
1094
|
*/
|
|
1093
1095
|
source?: string;
|
|
1094
1096
|
};
|
|
1095
|
-
export declare type
|
|
1096
|
-
/**
|
|
1097
|
-
rows?:
|
|
1098
|
-
/** Total number of product instance IDs available to that account */
|
|
1099
|
-
total_count?: number;
|
|
1097
|
+
export declare type UserHosting200 = {
|
|
1098
|
+
/** Information for the paginated hosting accounts */
|
|
1099
|
+
rows?: UserHosting200RowsItem[];
|
|
1100
1100
|
};
|
|
1101
1101
|
/**
|
|
1102
|
-
* Usage statistics
|
|
1102
|
+
* Usage statistics for staging sites
|
|
1103
1103
|
* @nullable
|
|
1104
1104
|
*/
|
|
1105
|
-
export declare type
|
|
1105
|
+
export declare type UserHosting200RowsItemUsedStage = {
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Disk usage in bytes
|
|
1108
1108
|
* @nullable
|
|
1109
1109
|
*/
|
|
1110
|
-
|
|
1110
|
+
disk_limit_gib?: number | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Disk usage in bytes
|
|
1113
|
+
* @nullable
|
|
1114
|
+
*/
|
|
1115
|
+
disk_usage?: number | null;
|
|
1116
|
+
/**
|
|
1117
|
+
* Number of workers
|
|
1118
|
+
* @nullable
|
|
1119
|
+
*/
|
|
1120
|
+
workers?: number | null;
|
|
1121
|
+
} | null;
|
|
1122
|
+
/**
|
|
1123
|
+
* Usage statistics for non-staging sites
|
|
1124
|
+
* @nullable
|
|
1125
|
+
*/
|
|
1126
|
+
export declare type UserHosting200RowsItemUsed = {
|
|
1127
|
+
/**
|
|
1128
|
+
* Disk usage in bytes
|
|
1129
|
+
* @nullable
|
|
1130
|
+
*/
|
|
1131
|
+
disk_limit_gib?: number | null;
|
|
1132
|
+
/**
|
|
1133
|
+
* Disk usage in bytes
|
|
1134
|
+
* @nullable
|
|
1135
|
+
*/
|
|
1136
|
+
disk_usage?: number | null;
|
|
1111
1137
|
/**
|
|
1112
1138
|
* Total number of sites
|
|
1113
1139
|
* @nullable
|
|
@@ -1133,7 +1159,7 @@ export declare type UserHostings200RowsItemUsed = {
|
|
|
1133
1159
|
* Remote limits for the account
|
|
1134
1160
|
* @nullable
|
|
1135
1161
|
*/
|
|
1136
|
-
export declare type
|
|
1162
|
+
export declare type UserHosting200RowsItemLimitRemote = {
|
|
1137
1163
|
/**
|
|
1138
1164
|
* Quota in KB associated with the account
|
|
1139
1165
|
* @nullable
|
|
@@ -1144,7 +1170,7 @@ export declare type UserHostings200RowsItemLimitRemote = {
|
|
|
1144
1170
|
* Account limits
|
|
1145
1171
|
* @nullable
|
|
1146
1172
|
*/
|
|
1147
|
-
export declare type
|
|
1173
|
+
export declare type UserHosting200RowsItemLimit = {
|
|
1148
1174
|
/**
|
|
1149
1175
|
* Disk space limit in GiB
|
|
1150
1176
|
* @nullable
|
|
@@ -1161,11 +1187,37 @@ export declare type UserHostings200RowsItemLimit = {
|
|
|
1161
1187
|
*/
|
|
1162
1188
|
workers?: number | null;
|
|
1163
1189
|
} | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Information from the billing system about this hosting account
|
|
1192
|
+
* @nullable
|
|
1193
|
+
*/
|
|
1194
|
+
export declare type UserHosting200RowsItemBilling = {
|
|
1195
|
+
/**
|
|
1196
|
+
* Product auto-renew flag
|
|
1197
|
+
* @nullable
|
|
1198
|
+
*/
|
|
1199
|
+
auto_renew_flag?: boolean | null;
|
|
1200
|
+
/**
|
|
1201
|
+
* Product expiration date
|
|
1202
|
+
* @nullable
|
|
1203
|
+
*/
|
|
1204
|
+
expiration_date?: string | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* Product code
|
|
1207
|
+
* @nullable
|
|
1208
|
+
*/
|
|
1209
|
+
prod_code?: string | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* Product name
|
|
1212
|
+
* @nullable
|
|
1213
|
+
*/
|
|
1214
|
+
prod_name?: string | null;
|
|
1215
|
+
} | null;
|
|
1164
1216
|
/**
|
|
1165
1217
|
* Region information for the account
|
|
1166
1218
|
* @nullable
|
|
1167
1219
|
*/
|
|
1168
|
-
export declare type
|
|
1220
|
+
export declare type UserHosting200RowsItemAccountInfoRegion = {
|
|
1169
1221
|
/**
|
|
1170
1222
|
* Region description
|
|
1171
1223
|
* @nullable
|
|
@@ -1177,10 +1229,26 @@ export declare type UserHostings200RowsItemInfoRegion = {
|
|
|
1177
1229
|
*/
|
|
1178
1230
|
name?: string | null;
|
|
1179
1231
|
} | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Metadata information for the account
|
|
1234
|
+
* @nullable
|
|
1235
|
+
*/
|
|
1236
|
+
export declare type UserHosting200RowsItemAccountInfoMeta = {
|
|
1237
|
+
/**
|
|
1238
|
+
* Main domain associated with the account
|
|
1239
|
+
* @nullable
|
|
1240
|
+
*/
|
|
1241
|
+
main_domain?: string | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Previous tenant ID
|
|
1244
|
+
* @nullable
|
|
1245
|
+
*/
|
|
1246
|
+
prev_tenant?: string | null;
|
|
1247
|
+
} | null;
|
|
1180
1248
|
/**
|
|
1181
1249
|
* Additional information about the account
|
|
1182
1250
|
*/
|
|
1183
|
-
export declare type
|
|
1251
|
+
export declare type UserHosting200RowsItemAccountInfo = {
|
|
1184
1252
|
/**
|
|
1185
1253
|
* HAL Account back_reference, used to link to the product instance
|
|
1186
1254
|
* @nullable
|
|
@@ -1231,6 +1299,11 @@ export declare type UserHostings200RowsItemInfo = {
|
|
|
1231
1299
|
* @nullable
|
|
1232
1300
|
*/
|
|
1233
1301
|
ip?: string | null;
|
|
1302
|
+
/**
|
|
1303
|
+
* Metadata information for the account
|
|
1304
|
+
* @nullable
|
|
1305
|
+
*/
|
|
1306
|
+
meta?: UserHosting200RowsItemAccountInfoMeta;
|
|
1234
1307
|
/**
|
|
1235
1308
|
* A list of nameservers associated with the account
|
|
1236
1309
|
* @nullable
|
|
@@ -1250,7 +1323,7 @@ export declare type UserHostings200RowsItemInfo = {
|
|
|
1250
1323
|
* Region information for the account
|
|
1251
1324
|
* @nullable
|
|
1252
1325
|
*/
|
|
1253
|
-
region?:
|
|
1326
|
+
region?: UserHosting200RowsItemAccountInfoRegion;
|
|
1254
1327
|
/**
|
|
1255
1328
|
* Server ID
|
|
1256
1329
|
* @nullable
|
|
@@ -1297,36 +1370,33 @@ export declare type UserHostings200RowsItemInfo = {
|
|
|
1297
1370
|
*/
|
|
1298
1371
|
username?: string | null;
|
|
1299
1372
|
};
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1373
|
+
export declare type UserHosting200RowsItem = {
|
|
1374
|
+
/** Additional information about the account */
|
|
1375
|
+
account_info?: UserHosting200RowsItemAccountInfo;
|
|
1376
|
+
/** HAL Account back_reference, used to link to the product instance */
|
|
1377
|
+
back_reference?: string;
|
|
1304
1378
|
/**
|
|
1305
|
-
*
|
|
1379
|
+
* Information from the billing system about this hosting account
|
|
1306
1380
|
* @nullable
|
|
1307
1381
|
*/
|
|
1308
|
-
|
|
1309
|
-
/** HAL Account back_reference, used to link to the product instance */
|
|
1310
|
-
back_reference?: string;
|
|
1382
|
+
billing?: UserHosting200RowsItemBilling;
|
|
1311
1383
|
/**
|
|
1312
|
-
*
|
|
1384
|
+
* Feature set name ex: hosting_40s
|
|
1313
1385
|
* @nullable
|
|
1314
1386
|
*/
|
|
1315
|
-
|
|
1316
|
-
/**
|
|
1317
|
-
|
|
1318
|
-
/** Additional information about the account */
|
|
1319
|
-
info?: UserHostings200RowsItemInfo;
|
|
1387
|
+
feature_set?: string | null;
|
|
1388
|
+
/** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
|
|
1389
|
+
is_upgradeable?: boolean;
|
|
1320
1390
|
/**
|
|
1321
1391
|
* Account limits
|
|
1322
1392
|
* @nullable
|
|
1323
1393
|
*/
|
|
1324
|
-
limit?:
|
|
1394
|
+
limit?: UserHosting200RowsItemLimit;
|
|
1325
1395
|
/**
|
|
1326
1396
|
* Remote limits for the account
|
|
1327
1397
|
* @nullable
|
|
1328
1398
|
*/
|
|
1329
|
-
limit_remote?:
|
|
1399
|
+
limit_remote?: UserHosting200RowsItemLimitRemote;
|
|
1330
1400
|
/**
|
|
1331
1401
|
* Package name
|
|
1332
1402
|
* @nullable
|
|
@@ -1338,35 +1408,34 @@ export declare type UserHostings200RowsItem = {
|
|
|
1338
1408
|
*/
|
|
1339
1409
|
panel?: string | null;
|
|
1340
1410
|
/**
|
|
1341
|
-
*
|
|
1342
|
-
* @nullable
|
|
1343
|
-
*/
|
|
1344
|
-
prod_code?: string | null;
|
|
1345
|
-
/**
|
|
1346
|
-
* Product name
|
|
1411
|
+
* Number of sites
|
|
1347
1412
|
* @nullable
|
|
1348
1413
|
*/
|
|
1349
|
-
|
|
1414
|
+
sites?: number | null;
|
|
1350
1415
|
/**
|
|
1351
|
-
*
|
|
1416
|
+
* Usage statistics for non-staging sites
|
|
1352
1417
|
* @nullable
|
|
1353
1418
|
*/
|
|
1354
|
-
|
|
1419
|
+
used?: UserHosting200RowsItemUsed;
|
|
1355
1420
|
/**
|
|
1356
|
-
* Usage statistics
|
|
1421
|
+
* Usage statistics for staging sites
|
|
1357
1422
|
* @nullable
|
|
1358
1423
|
*/
|
|
1359
|
-
|
|
1424
|
+
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1360
1425
|
};
|
|
1361
|
-
export declare type
|
|
1426
|
+
export declare type UserHostingParams = {
|
|
1362
1427
|
/**
|
|
1363
|
-
* Starting
|
|
1428
|
+
* Starting page for pagination (default: 1)
|
|
1364
1429
|
*/
|
|
1365
|
-
|
|
1430
|
+
page?: number;
|
|
1366
1431
|
/**
|
|
1367
1432
|
* Maximum number of items to return. If not provided, returns all items from start index
|
|
1368
1433
|
*/
|
|
1369
1434
|
limit?: number;
|
|
1435
|
+
/**
|
|
1436
|
+
* Whether to reach out to remote sources for more granular hosting info
|
|
1437
|
+
*/
|
|
1438
|
+
remote?: boolean;
|
|
1370
1439
|
};
|
|
1371
1440
|
export declare type SiteAddonWpsolution400 = {
|
|
1372
1441
|
error?: string;
|
|
@@ -1728,6 +1797,8 @@ export declare type ResetSite200 = {
|
|
|
1728
1797
|
status: string;
|
|
1729
1798
|
};
|
|
1730
1799
|
export declare type ResetSiteBody = {
|
|
1800
|
+
/** Admin email for the site user */
|
|
1801
|
+
admin_email?: string;
|
|
1731
1802
|
/** Site subtype to morph to */
|
|
1732
1803
|
subtype?: string;
|
|
1733
1804
|
/** Site type to morph to */
|
|
@@ -1878,6 +1949,22 @@ export declare type SitesPerformanceCachepurgeBody = {
|
|
|
1878
1949
|
export declare type SitePendingDomainDelete200 = {
|
|
1879
1950
|
[key: string]: unknown;
|
|
1880
1951
|
};
|
|
1952
|
+
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
1953
|
+
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
1954
|
+
timestamp?: number;
|
|
1955
|
+
};
|
|
1956
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
1957
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1958
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1959
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1960
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1961
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1962
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1963
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1964
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1965
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1966
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1967
|
+
};
|
|
1881
1968
|
export declare type SitesMetricDimensions200 = {
|
|
1882
1969
|
date_end?: string;
|
|
1883
1970
|
date_start?: string;
|
|
@@ -1888,10 +1975,6 @@ export declare type SitesMetricDimensions200 = {
|
|
|
1888
1975
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
1889
1976
|
[key: string]: number;
|
|
1890
1977
|
};
|
|
1891
|
-
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
1892
|
-
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
1893
|
-
timestamp?: number;
|
|
1894
|
-
};
|
|
1895
1978
|
export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
|
|
1896
1979
|
[key: string]: number;
|
|
1897
1980
|
};
|
|
@@ -1955,18 +2038,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
1955
2038
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
1956
2039
|
timestamp?: number;
|
|
1957
2040
|
};
|
|
1958
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
1959
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1960
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1961
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1962
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1963
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1964
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1965
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1966
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1967
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1968
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1969
|
-
};
|
|
1970
2041
|
export declare type SitesMetricDimensionsParams = {
|
|
1971
2042
|
start?: string;
|
|
1972
2043
|
end?: string;
|
|
@@ -2959,9 +3030,6 @@ export declare type HostingRedirects200Item = {
|
|
|
2959
3030
|
url?: string;
|
|
2960
3031
|
wildcard?: boolean;
|
|
2961
3032
|
};
|
|
2962
|
-
export declare type ProductLicenseDetails200 = {
|
|
2963
|
-
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
2964
|
-
};
|
|
2965
3033
|
export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
|
|
2966
3034
|
expirationDate?: string;
|
|
2967
3035
|
prodInstId?: string;
|
|
@@ -2975,6 +3043,9 @@ export declare type ProductLicenseDetails200Wpsolution = {
|
|
|
2975
3043
|
creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
|
|
2976
3044
|
total?: number;
|
|
2977
3045
|
};
|
|
3046
|
+
export declare type ProductLicenseDetails200 = {
|
|
3047
|
+
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
3048
|
+
};
|
|
2978
3049
|
export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
|
|
2979
3050
|
export declare const ProductLicenseDetailsProductName: {
|
|
2980
3051
|
readonly wpsolution: "wpsolution";
|
|
@@ -3890,6 +3961,14 @@ export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
|
3890
3961
|
*/
|
|
3891
3962
|
val?: string | null;
|
|
3892
3963
|
};
|
|
3964
|
+
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
3965
|
+
action?: FilterAction;
|
|
3966
|
+
/**
|
|
3967
|
+
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
3968
|
+
* @nullable
|
|
3969
|
+
*/
|
|
3970
|
+
dest?: string | null;
|
|
3971
|
+
};
|
|
3893
3972
|
export declare type HostingEmailFiltersList200FiltersItem = {
|
|
3894
3973
|
/** Where the email will be forwarded to */
|
|
3895
3974
|
actions?: HostingEmailFiltersList200FiltersItemActionsItem[];
|
|
@@ -3908,14 +3987,6 @@ export declare type HostingEmailFiltersList200 = {
|
|
|
3908
3987
|
/** List of filters */
|
|
3909
3988
|
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
3910
3989
|
};
|
|
3911
|
-
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
3912
|
-
action?: FilterAction;
|
|
3913
|
-
/**
|
|
3914
|
-
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
3915
|
-
* @nullable
|
|
3916
|
-
*/
|
|
3917
|
-
dest?: string | null;
|
|
3918
|
-
};
|
|
3919
3990
|
export declare type HostingEmailFiltersListParams = {
|
|
3920
3991
|
/**
|
|
3921
3992
|
* The email account address to query filters by
|
|
@@ -4092,6 +4163,10 @@ export declare type HostingEmailUpdateBody = {
|
|
|
4092
4163
|
/** The password for the email */
|
|
4093
4164
|
password?: string;
|
|
4094
4165
|
};
|
|
4166
|
+
export declare type HostingEmailList200 = {
|
|
4167
|
+
/** List of email resources */
|
|
4168
|
+
rows?: HostingEmailList200RowsItem[];
|
|
4169
|
+
};
|
|
4095
4170
|
/**
|
|
4096
4171
|
* List of suspensions that affect the entire user account
|
|
4097
4172
|
* @nullable
|
|
@@ -4181,10 +4256,6 @@ export declare type HostingEmailList200RowsItem = {
|
|
|
4181
4256
|
*/
|
|
4182
4257
|
utf8_folders?: boolean | null;
|
|
4183
4258
|
};
|
|
4184
|
-
export declare type HostingEmailList200 = {
|
|
4185
|
-
/** List of email resources */
|
|
4186
|
-
rows?: HostingEmailList200RowsItem[];
|
|
4187
|
-
};
|
|
4188
4259
|
export declare type HostingEmailDelete200 = {
|
|
4189
4260
|
[key: string]: unknown;
|
|
4190
4261
|
};
|
|
@@ -4773,6 +4844,14 @@ export declare type HostingAdvancedServerStatus200 = {
|
|
|
4773
4844
|
export declare type HostingAdvancedServerStatusBody = {
|
|
4774
4845
|
/** action to be performed */
|
|
4775
4846
|
action?: string;
|
|
4847
|
+
/** Admin email for the site user */
|
|
4848
|
+
admin_email?: string;
|
|
4849
|
+
/** To skip site installation */
|
|
4850
|
+
skip_site_installation?: boolean;
|
|
4851
|
+
/** Site subtype to be installed during rebuild */
|
|
4852
|
+
subtype?: string;
|
|
4853
|
+
/** Site type to be installed during rebuild */
|
|
4854
|
+
type?: string;
|
|
4776
4855
|
};
|
|
4777
4856
|
export declare type HostingAdvancedServer200Ips = {
|
|
4778
4857
|
other_ips?: string[];
|
|
@@ -4880,6 +4959,24 @@ export declare type ActivityLog200 = {
|
|
|
4880
4959
|
export declare type ActivityLogParams = {
|
|
4881
4960
|
days?: number;
|
|
4882
4961
|
};
|
|
4962
|
+
export declare type HostingAccount200 = {
|
|
4963
|
+
account_id?: string;
|
|
4964
|
+
account_limits?: HostingAccount200AccountLimits;
|
|
4965
|
+
advanced?: boolean;
|
|
4966
|
+
billing?: HostingAccount200Billing;
|
|
4967
|
+
brand?: string;
|
|
4968
|
+
id?: string;
|
|
4969
|
+
panel?: string;
|
|
4970
|
+
plan_key?: string;
|
|
4971
|
+
platform?: string;
|
|
4972
|
+
/** @nullable */
|
|
4973
|
+
resources?: HostingAccount200Resources;
|
|
4974
|
+
/** @nullable */
|
|
4975
|
+
ssh_hostname?: string | null;
|
|
4976
|
+
status?: string;
|
|
4977
|
+
type?: string;
|
|
4978
|
+
username?: string;
|
|
4979
|
+
};
|
|
4883
4980
|
export declare type HostingAccount200ResourcesWorkers = {
|
|
4884
4981
|
/** @nullable */
|
|
4885
4982
|
available?: number | null;
|
|
@@ -4905,24 +5002,6 @@ export declare type HostingAccount200Resources = {
|
|
|
4905
5002
|
storage?: HostingAccount200ResourcesStorage;
|
|
4906
5003
|
workers?: HostingAccount200ResourcesWorkers;
|
|
4907
5004
|
} | null;
|
|
4908
|
-
export declare type HostingAccount200 = {
|
|
4909
|
-
account_id?: string;
|
|
4910
|
-
account_limits?: HostingAccount200AccountLimits;
|
|
4911
|
-
advanced?: boolean;
|
|
4912
|
-
billing?: HostingAccount200Billing;
|
|
4913
|
-
brand?: string;
|
|
4914
|
-
id?: string;
|
|
4915
|
-
panel?: string;
|
|
4916
|
-
plan_key?: string;
|
|
4917
|
-
platform?: string;
|
|
4918
|
-
/** @nullable */
|
|
4919
|
-
resources?: HostingAccount200Resources;
|
|
4920
|
-
/** @nullable */
|
|
4921
|
-
ssh_hostname?: string | null;
|
|
4922
|
-
status?: string;
|
|
4923
|
-
type?: string;
|
|
4924
|
-
username?: string;
|
|
4925
|
-
};
|
|
4926
5005
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
4927
5006
|
/** @nullable */
|
|
4928
5007
|
available?: number | null;
|
|
@@ -4999,6 +5078,12 @@ export declare type AccessLogsParams = {
|
|
|
4999
5078
|
*/
|
|
5000
5079
|
type?: AccessLogsType;
|
|
5001
5080
|
};
|
|
5081
|
+
export declare type DomainsUnsetEntriUsed200 = {
|
|
5082
|
+
[key: string]: unknown;
|
|
5083
|
+
};
|
|
5084
|
+
export declare type DomainsSetEntriUsed200 = {
|
|
5085
|
+
[key: string]: unknown;
|
|
5086
|
+
};
|
|
5002
5087
|
export declare type DomainEmailDeliverability200SpfCheck = {
|
|
5003
5088
|
/** SPF record configured on the hosting server */
|
|
5004
5089
|
box_spf?: string;
|