@newfold/huapi-js 2.1715.0 → 2.1748.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 +33 -1
- package/src/index.js +27 -1
- package/src/index.msw.d.ts +3 -1
- package/src/index.msw.js +13 -1
- package/src/index.schemas.d.ts +100 -67
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, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -876,6 +876,38 @@ export declare const useAddonsCloudflare: <TError = AxiosError<unknown, any>, TC
|
|
|
876
876
|
} | undefined) => UseMutationResult<AxiosResponse<AddonsCloudflare200, any>, TError, {
|
|
877
877
|
addonId: number;
|
|
878
878
|
}, TContext>;
|
|
879
|
+
/**
|
|
880
|
+
* Get cloudflare basic addon nameservers
|
|
881
|
+
* @summary Get cloudflare basic addon nameservers
|
|
882
|
+
*/
|
|
883
|
+
export declare const addonsCloudflareExternalNsCheck: (addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsCloudflareExternalNsCheck200>>;
|
|
884
|
+
export declare const getAddonsCloudflareExternalNsCheckQueryKey: (addonId: number, params?: AddonsCloudflareExternalNsCheckParams) => readonly [`/v1/addons/${number}/cloudflare/external-ns-check`, ...AddonsCloudflareExternalNsCheckParams[]];
|
|
885
|
+
export declare const getAddonsCloudflareExternalNsCheckQueryOptions: <TData = AxiosResponse<AddonsCloudflareExternalNsCheck200, any>, TError = AxiosError<unknown, any>>(addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: {
|
|
886
|
+
query?: Partial<UseQueryOptions<AxiosResponse<AddonsCloudflareExternalNsCheck200, any>, TError, TData, QueryKey>> | undefined;
|
|
887
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
888
|
+
} | undefined) => UseQueryOptions<AxiosResponse<AddonsCloudflareExternalNsCheck200, any>, TError, TData, QueryKey> & {
|
|
889
|
+
queryKey: QueryKey;
|
|
890
|
+
};
|
|
891
|
+
export declare type AddonsCloudflareExternalNsCheckQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>>;
|
|
892
|
+
export declare type AddonsCloudflareExternalNsCheckQueryError = AxiosError<unknown>;
|
|
893
|
+
export declare function useAddonsCloudflareExternalNsCheck<TData = Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError = AxiosError<unknown>>(addonId: number, params: undefined | AddonsCloudflareExternalNsCheckParams, options: {
|
|
894
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>, 'initialData'>;
|
|
895
|
+
axios?: AxiosRequestConfig;
|
|
896
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
897
|
+
queryKey: QueryKey;
|
|
898
|
+
};
|
|
899
|
+
export declare function useAddonsCloudflareExternalNsCheck<TData = Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError = AxiosError<unknown>>(addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: {
|
|
900
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>, 'initialData'>;
|
|
901
|
+
axios?: AxiosRequestConfig;
|
|
902
|
+
}): UseQueryResult<TData, TError> & {
|
|
903
|
+
queryKey: QueryKey;
|
|
904
|
+
};
|
|
905
|
+
export declare function useAddonsCloudflareExternalNsCheck<TData = Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError = AxiosError<unknown>>(addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: {
|
|
906
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>>;
|
|
907
|
+
axios?: AxiosRequestConfig;
|
|
908
|
+
}): UseQueryResult<TData, TError> & {
|
|
909
|
+
queryKey: QueryKey;
|
|
910
|
+
};
|
|
879
911
|
/**
|
|
880
912
|
* Returns addon information
|
|
881
913
|
* @summary info
|
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.1748.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -691,6 +691,32 @@ export const useAddonsCloudflare = (options) => {
|
|
|
691
691
|
const mutationOptions = getAddonsCloudflareMutationOptions(options);
|
|
692
692
|
return useMutation(mutationOptions);
|
|
693
693
|
};
|
|
694
|
+
/**
|
|
695
|
+
* Get cloudflare basic addon nameservers
|
|
696
|
+
* @summary Get cloudflare basic addon nameservers
|
|
697
|
+
*/
|
|
698
|
+
export const addonsCloudflareExternalNsCheck = (addonId, params, options) => {
|
|
699
|
+
return axios.get(`/v1/addons/${addonId}/cloudflare/external-ns-check`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
700
|
+
};
|
|
701
|
+
export const getAddonsCloudflareExternalNsCheckQueryKey = (addonId, params) => {
|
|
702
|
+
return [`/v1/addons/${addonId}/cloudflare/external-ns-check`, ...(params ? [params] : [])];
|
|
703
|
+
};
|
|
704
|
+
export const getAddonsCloudflareExternalNsCheckQueryOptions = (addonId, params, options) => {
|
|
705
|
+
var _a;
|
|
706
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
707
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAddonsCloudflareExternalNsCheckQueryKey(addonId, params);
|
|
708
|
+
const queryFn = ({ signal }) => addonsCloudflareExternalNsCheck(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
709
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* @summary Get cloudflare basic addon nameservers
|
|
713
|
+
*/
|
|
714
|
+
export function useAddonsCloudflareExternalNsCheck(addonId, params, options) {
|
|
715
|
+
const queryOptions = getAddonsCloudflareExternalNsCheckQueryOptions(addonId, params, options);
|
|
716
|
+
const query = useQuery(queryOptions);
|
|
717
|
+
query.queryKey = queryOptions.queryKey;
|
|
718
|
+
return query;
|
|
719
|
+
}
|
|
694
720
|
/**
|
|
695
721
|
* Returns addon information
|
|
696
722
|
* @summary info
|
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, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
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;
|
|
@@ -28,6 +28,7 @@ export declare const getBackupStatusResponseMock: (overrideResponse?: Partial<Ba
|
|
|
28
28
|
export declare const getBackupListResponseMock: (overrideResponse?: Partial<BackupList200>) => BackupList200;
|
|
29
29
|
export declare const getBackupMetaResponseMock: (overrideResponse?: Partial<BackupMeta200>) => BackupMeta200;
|
|
30
30
|
export declare const getAddonsCloudflareResponseMock: (overrideResponse?: Partial<AddonsCloudflare200>) => AddonsCloudflare200;
|
|
31
|
+
export declare const getAddonsCloudflareExternalNsCheckResponseMock: (overrideResponse?: Partial<AddonsCloudflareExternalNsCheck200>) => AddonsCloudflareExternalNsCheck200;
|
|
31
32
|
export declare const getAddonsInfoResponseMock: (overrideResponse?: Partial<AddonsInfo200>) => AddonsInfo200;
|
|
32
33
|
export declare const getAddonsJetpackValidateResponseMock: (overrideResponse?: Partial<AddonsJetpackValidate200>) => AddonsJetpackValidate200;
|
|
33
34
|
export declare const getAddonsSpamexpertsSsoResponseMock: (overrideResponse?: Partial<AddonsSpamexpertsSso200>) => AddonsSpamexpertsSso200;
|
|
@@ -307,6 +308,7 @@ export declare const getBackupStatusMockHandler: (overrideResponse?: BackupStatu
|
|
|
307
308
|
export declare const getBackupListMockHandler: (overrideResponse?: BackupList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupList200> | BackupList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
308
309
|
export declare const getBackupMetaMockHandler: (overrideResponse?: BackupMeta200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupMeta200> | BackupMeta200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
309
310
|
export declare const getAddonsCloudflareMockHandler: (overrideResponse?: AddonsCloudflare200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<AddonsCloudflare200> | AddonsCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
311
|
+
export declare const getAddonsCloudflareExternalNsCheckMockHandler: (overrideResponse?: AddonsCloudflareExternalNsCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsCloudflareExternalNsCheck200> | AddonsCloudflareExternalNsCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
310
312
|
export declare const getAddonsInfoMockHandler: (overrideResponse?: AddonsInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsInfo200> | AddonsInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
311
313
|
export declare const getAddonsJetpackValidateMockHandler: (overrideResponse?: AddonsJetpackValidate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddonsJetpackValidate200> | AddonsJetpackValidate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
312
314
|
export declare const getAddonsSpamexpertsSsoMockHandler: (overrideResponse?: AddonsSpamexpertsSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSpamexpertsSso200> | AddonsSpamexpertsSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
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.1748.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -37,6 +37,7 @@ export const getBackupStatusResponseMock = (overrideResponse = {}) => (Object.as
|
|
|
37
37
|
export const getBackupListResponseMock = (overrideResponse = {}) => (Object.assign({ home: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_status: faker.helpers.arrayElement([{ download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]), time_created: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
38
38
|
export const getBackupMetaResponseMock = (overrideResponse = {}) => (Object.assign({ account: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_event_processing: faker.helpers.arrayElement([{ action: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), client_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), internal_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), snapshot_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), cbs_last_restore_timestamp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), site: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ snapshot_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_restore_consent_info: faker.helpers.arrayElement([{ backup_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current_state_backup_download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current_state_backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), internal_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), restore_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]) }, undefined]) }, overrideResponse));
|
|
39
39
|
export const getAddonsCloudflareResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
40
|
+
export const getAddonsCloudflareExternalNsCheckResponseMock = (overrideResponse = {}) => (Object.assign({ base: faker.helpers.arrayElement([{ detected_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), matched: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), cdn_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), domain_ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), is_external: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), need_records: faker.helpers.arrayElement([{ content: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), server_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), server_ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), www: faker.helpers.arrayElement([{ detected_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), matched: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]) }, overrideResponse));
|
|
40
41
|
export const getAddonsInfoResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
41
42
|
export const getAddonsJetpackValidateResponseMock = (overrideResponse = {}) => (Object.assign({ is_connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
42
43
|
export const getAddonsSpamexpertsSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -594,6 +595,16 @@ export const getAddonsCloudflareMockHandler = (overrideResponse) => {
|
|
|
594
595
|
});
|
|
595
596
|
}));
|
|
596
597
|
};
|
|
598
|
+
export const getAddonsCloudflareExternalNsCheckMockHandler = (overrideResponse) => {
|
|
599
|
+
return http.get('*/v1/addons/:addonId/cloudflare/external-ns-check', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
600
|
+
yield delay(0);
|
|
601
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
602
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
603
|
+
: getAddonsCloudflareExternalNsCheckResponseMock()), { status: 200,
|
|
604
|
+
headers: { 'Content-Type': 'application/json' }
|
|
605
|
+
});
|
|
606
|
+
}));
|
|
607
|
+
};
|
|
597
608
|
export const getAddonsInfoMockHandler = (overrideResponse) => {
|
|
598
609
|
return http.get('*/v1/addons/:addonId/info', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
599
610
|
yield delay(0);
|
|
@@ -3153,6 +3164,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3153
3164
|
getBackupListMockHandler(),
|
|
3154
3165
|
getBackupMetaMockHandler(),
|
|
3155
3166
|
getAddonsCloudflareMockHandler(),
|
|
3167
|
+
getAddonsCloudflareExternalNsCheckMockHandler(),
|
|
3156
3168
|
getAddonsInfoMockHandler(),
|
|
3157
3169
|
getAddonsJetpackValidateMockHandler(),
|
|
3158
3170
|
getAddonsSpamexpertsSsoMockHandler(),
|
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.1748.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -265,12 +265,6 @@ export declare type SiteMalwareStatusV2200 = {
|
|
|
265
265
|
*/
|
|
266
266
|
scanner_state?: string | null;
|
|
267
267
|
};
|
|
268
|
-
export declare type SitesDomainsV2200 = {
|
|
269
|
-
domains: SitesDomainsV2200DomainsItem[];
|
|
270
|
-
limit?: number;
|
|
271
|
-
page?: number;
|
|
272
|
-
total?: number;
|
|
273
|
-
};
|
|
274
268
|
/**
|
|
275
269
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
276
270
|
* @nullable
|
|
@@ -407,6 +401,12 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
407
401
|
*/
|
|
408
402
|
used_entri?: number | null;
|
|
409
403
|
};
|
|
404
|
+
export declare type SitesDomainsV2200 = {
|
|
405
|
+
domains: SitesDomainsV2200DomainsItem[];
|
|
406
|
+
limit?: number;
|
|
407
|
+
page?: number;
|
|
408
|
+
total?: number;
|
|
409
|
+
};
|
|
410
410
|
export declare type SitesDomainsV2Params = {
|
|
411
411
|
scan?: boolean;
|
|
412
412
|
};
|
|
@@ -923,12 +923,6 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
923
923
|
/** The site id to be unassigned */
|
|
924
924
|
site_id: number;
|
|
925
925
|
};
|
|
926
|
-
export declare type HostingDomainsV2200 = {
|
|
927
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
928
|
-
limit?: number;
|
|
929
|
-
page?: number;
|
|
930
|
-
total?: number;
|
|
931
|
-
};
|
|
932
926
|
/**
|
|
933
927
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
934
928
|
* @nullable
|
|
@@ -1065,6 +1059,12 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
1065
1059
|
*/
|
|
1066
1060
|
used_entri?: number | null;
|
|
1067
1061
|
};
|
|
1062
|
+
export declare type HostingDomainsV2200 = {
|
|
1063
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
1064
|
+
limit?: number;
|
|
1065
|
+
page?: number;
|
|
1066
|
+
total?: number;
|
|
1067
|
+
};
|
|
1068
1068
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
1069
1069
|
export declare const HostingDomainsV2TypesItem: {
|
|
1070
1070
|
readonly addon: "addon";
|
|
@@ -1973,6 +1973,9 @@ export declare type SiteQualityMetrics200Audits = {
|
|
|
1973
1973
|
export declare type SiteQualityMetrics200AspectScores = {
|
|
1974
1974
|
performance?: number;
|
|
1975
1975
|
};
|
|
1976
|
+
export declare type SiteQualityMetrics200AspectDetails = {
|
|
1977
|
+
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
1978
|
+
};
|
|
1976
1979
|
export declare type SiteQualityMetrics200 = {
|
|
1977
1980
|
aspect_details: SiteQualityMetrics200AspectDetails;
|
|
1978
1981
|
aspect_scores: SiteQualityMetrics200AspectScores;
|
|
@@ -2003,9 +2006,6 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
|
|
|
2003
2006
|
'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
|
|
2004
2007
|
'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
|
|
2005
2008
|
};
|
|
2006
|
-
export declare type SiteQualityMetrics200AspectDetails = {
|
|
2007
|
-
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
2008
|
-
};
|
|
2009
2009
|
export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
|
|
2010
2010
|
export declare const SiteQualityMetricsStrategy: {
|
|
2011
2011
|
readonly MOBILE: "MOBILE";
|
|
@@ -2141,18 +2141,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
|
2141
2141
|
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
2142
2142
|
timestamp?: number;
|
|
2143
2143
|
};
|
|
2144
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
2145
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2146
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2147
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2148
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2149
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2150
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2151
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2152
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2153
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2154
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2155
|
-
};
|
|
2156
2144
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
2157
2145
|
[key: string]: number;
|
|
2158
2146
|
};
|
|
@@ -2195,6 +2183,18 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
2195
2183
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
2196
2184
|
timestamp?: number;
|
|
2197
2185
|
};
|
|
2186
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
2187
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2188
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2189
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2190
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2191
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2192
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2193
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2194
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2195
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2196
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2197
|
+
};
|
|
2198
2198
|
export declare type SitesMetricDimensionsParams = {
|
|
2199
2199
|
start?: string;
|
|
2200
2200
|
end?: string;
|
|
@@ -3188,6 +3188,9 @@ export declare type HostingRedirects200Item = {
|
|
|
3188
3188
|
url?: string;
|
|
3189
3189
|
wildcard?: boolean;
|
|
3190
3190
|
};
|
|
3191
|
+
export declare type ProductLicenseDetails200 = {
|
|
3192
|
+
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
3193
|
+
};
|
|
3191
3194
|
export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
|
|
3192
3195
|
expirationDate?: string;
|
|
3193
3196
|
prodInstId?: string;
|
|
@@ -3201,9 +3204,6 @@ export declare type ProductLicenseDetails200Wpsolution = {
|
|
|
3201
3204
|
creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
|
|
3202
3205
|
total?: number;
|
|
3203
3206
|
};
|
|
3204
|
-
export declare type ProductLicenseDetails200 = {
|
|
3205
|
-
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
3206
|
-
};
|
|
3207
3207
|
export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
|
|
3208
3208
|
export declare const ProductLicenseDetailsProductName: {
|
|
3209
3209
|
readonly wpsolution: "wpsolution";
|
|
@@ -4109,12 +4109,6 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4109
4109
|
/** list of rules to be applied to the filter */
|
|
4110
4110
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4111
4111
|
};
|
|
4112
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4113
|
-
/** The number of filters */
|
|
4114
|
-
count?: number;
|
|
4115
|
-
/** List of filters */
|
|
4116
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4117
|
-
};
|
|
4118
4112
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4119
4113
|
match?: FilterRuleMatch;
|
|
4120
4114
|
opt?: FilterRuleOpt;
|
|
@@ -4145,6 +4139,12 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4145
4139
|
/** Whether the filter is unescaped */
|
|
4146
4140
|
unescaped?: boolean;
|
|
4147
4141
|
};
|
|
4142
|
+
export declare type HostingEmailFiltersList200 = {
|
|
4143
|
+
/** The number of filters */
|
|
4144
|
+
count?: number;
|
|
4145
|
+
/** List of filters */
|
|
4146
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4147
|
+
};
|
|
4148
4148
|
export declare type HostingEmailFiltersListParams = {
|
|
4149
4149
|
/**
|
|
4150
4150
|
* The email account address to query filters by
|
|
@@ -4321,6 +4321,10 @@ export declare type HostingEmailUpdateBody = {
|
|
|
4321
4321
|
/** The password for the email */
|
|
4322
4322
|
password?: string;
|
|
4323
4323
|
};
|
|
4324
|
+
export declare type HostingEmailList200 = {
|
|
4325
|
+
/** List of email resources */
|
|
4326
|
+
rows?: HostingEmailList200RowsItem[];
|
|
4327
|
+
};
|
|
4324
4328
|
/**
|
|
4325
4329
|
* List of suspensions that affect the entire user account
|
|
4326
4330
|
* @nullable
|
|
@@ -4410,10 +4414,6 @@ export declare type HostingEmailList200RowsItem = {
|
|
|
4410
4414
|
*/
|
|
4411
4415
|
utf8_folders?: boolean | null;
|
|
4412
4416
|
};
|
|
4413
|
-
export declare type HostingEmailList200 = {
|
|
4414
|
-
/** List of email resources */
|
|
4415
|
-
rows?: HostingEmailList200RowsItem[];
|
|
4416
|
-
};
|
|
4417
4417
|
export declare type HostingEmailDelete200 = {
|
|
4418
4418
|
[key: string]: unknown;
|
|
4419
4419
|
};
|
|
@@ -5117,6 +5117,24 @@ export declare type ActivityLog200 = {
|
|
|
5117
5117
|
export declare type ActivityLogParams = {
|
|
5118
5118
|
days?: number;
|
|
5119
5119
|
};
|
|
5120
|
+
export declare type HostingAccount200 = {
|
|
5121
|
+
account_id?: string;
|
|
5122
|
+
account_limits?: HostingAccount200AccountLimits;
|
|
5123
|
+
advanced?: boolean;
|
|
5124
|
+
billing?: HostingAccount200Billing;
|
|
5125
|
+
brand?: string;
|
|
5126
|
+
id?: string;
|
|
5127
|
+
panel?: string;
|
|
5128
|
+
plan_key?: string;
|
|
5129
|
+
platform?: string;
|
|
5130
|
+
/** @nullable */
|
|
5131
|
+
resources?: HostingAccount200Resources;
|
|
5132
|
+
/** @nullable */
|
|
5133
|
+
ssh_hostname?: string | null;
|
|
5134
|
+
status?: string;
|
|
5135
|
+
type?: string;
|
|
5136
|
+
username?: string;
|
|
5137
|
+
};
|
|
5120
5138
|
export declare type HostingAccount200ResourcesWorkers = {
|
|
5121
5139
|
/** @nullable */
|
|
5122
5140
|
available?: number | null;
|
|
@@ -5134,14 +5152,6 @@ export declare type HostingAccount200ResourcesStorage = {
|
|
|
5134
5152
|
/** @nullable */
|
|
5135
5153
|
used?: number | null;
|
|
5136
5154
|
};
|
|
5137
|
-
/**
|
|
5138
|
-
* @nullable
|
|
5139
|
-
*/
|
|
5140
|
-
export declare type HostingAccount200Resources = {
|
|
5141
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
5142
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
5143
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
5144
|
-
} | null;
|
|
5145
5155
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
5146
5156
|
/** @nullable */
|
|
5147
5157
|
available?: number | null;
|
|
@@ -5163,6 +5173,14 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
5163
5173
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
5164
5174
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
5165
5175
|
};
|
|
5176
|
+
/**
|
|
5177
|
+
* @nullable
|
|
5178
|
+
*/
|
|
5179
|
+
export declare type HostingAccount200Resources = {
|
|
5180
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
5181
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
5182
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
5183
|
+
} | null;
|
|
5166
5184
|
export declare type HostingAccount200Billing = {
|
|
5167
5185
|
prod_code?: string;
|
|
5168
5186
|
product_name?: string;
|
|
@@ -5180,24 +5198,6 @@ export declare type HostingAccount200AccountLimits = {
|
|
|
5180
5198
|
*/
|
|
5181
5199
|
sites?: number | null;
|
|
5182
5200
|
};
|
|
5183
|
-
export declare type HostingAccount200 = {
|
|
5184
|
-
account_id?: string;
|
|
5185
|
-
account_limits?: HostingAccount200AccountLimits;
|
|
5186
|
-
advanced?: boolean;
|
|
5187
|
-
billing?: HostingAccount200Billing;
|
|
5188
|
-
brand?: string;
|
|
5189
|
-
id?: string;
|
|
5190
|
-
panel?: string;
|
|
5191
|
-
plan_key?: string;
|
|
5192
|
-
platform?: string;
|
|
5193
|
-
/** @nullable */
|
|
5194
|
-
resources?: HostingAccount200Resources;
|
|
5195
|
-
/** @nullable */
|
|
5196
|
-
ssh_hostname?: string | null;
|
|
5197
|
-
status?: string;
|
|
5198
|
-
type?: string;
|
|
5199
|
-
username?: string;
|
|
5200
|
-
};
|
|
5201
5201
|
export declare type DomainZoneeditorUrl200 = {
|
|
5202
5202
|
url: string;
|
|
5203
5203
|
};
|
|
@@ -5646,6 +5646,39 @@ export declare type AddonsJetpackValidate200 = {
|
|
|
5646
5646
|
export declare type AddonsInfo200 = {
|
|
5647
5647
|
id?: string;
|
|
5648
5648
|
};
|
|
5649
|
+
export declare type AddonsCloudflareExternalNsCheck200Www = {
|
|
5650
|
+
/** @nullable */
|
|
5651
|
+
detected_ips?: string[] | null;
|
|
5652
|
+
matched?: string;
|
|
5653
|
+
};
|
|
5654
|
+
/**
|
|
5655
|
+
* @nullable
|
|
5656
|
+
*/
|
|
5657
|
+
export declare type AddonsCloudflareExternalNsCheck200NeedRecords = {
|
|
5658
|
+
content?: string;
|
|
5659
|
+
type?: string;
|
|
5660
|
+
} | null;
|
|
5661
|
+
export declare type AddonsCloudflareExternalNsCheck200Base = {
|
|
5662
|
+
/** @nullable */
|
|
5663
|
+
detected_ips?: string[] | null;
|
|
5664
|
+
matched?: string;
|
|
5665
|
+
};
|
|
5666
|
+
export declare type AddonsCloudflareExternalNsCheck200 = {
|
|
5667
|
+
base?: AddonsCloudflareExternalNsCheck200Base;
|
|
5668
|
+
cdn_ip?: string;
|
|
5669
|
+
domain?: string;
|
|
5670
|
+
domain_id?: number;
|
|
5671
|
+
domain_ns?: string[];
|
|
5672
|
+
is_external?: number;
|
|
5673
|
+
/** @nullable */
|
|
5674
|
+
need_records?: AddonsCloudflareExternalNsCheck200NeedRecords;
|
|
5675
|
+
server_ip?: string;
|
|
5676
|
+
server_ns?: string[];
|
|
5677
|
+
www?: AddonsCloudflareExternalNsCheck200Www;
|
|
5678
|
+
};
|
|
5679
|
+
export declare type AddonsCloudflareExternalNsCheckParams = {
|
|
5680
|
+
domain?: string;
|
|
5681
|
+
};
|
|
5649
5682
|
export declare type AddonsCloudflare200 = {
|
|
5650
5683
|
status?: string;
|
|
5651
5684
|
};
|