@newfold/huapi-js 2.1900.0 → 2.1903.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 +12 -12
- package/src/index.js +1 -1
- package/src/index.msw.d.ts +2 -3
- package/src/index.msw.js +7 -8
- package/src/index.schemas.d.ts +124 -100
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -863,9 +863,9 @@ export declare const useXcitiumBackupRestore: <TError = AxiosError<unknown, any>
|
|
|
863
863
|
* Returns the subscribed plan and usage info
|
|
864
864
|
* @summary plan info
|
|
865
865
|
*/
|
|
866
|
-
export declare const xcitiumPlanInfo: (addonId:
|
|
867
|
-
export declare const getXcitiumPlanInfoQueryKey: (addonId:
|
|
868
|
-
export declare const getXcitiumPlanInfoQueryOptions: <TData = AxiosResponse<XcitiumPlanInfo200, any>, TError = AxiosError<unknown, any>>(addonId:
|
|
866
|
+
export declare const xcitiumPlanInfo: (addonId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<XcitiumPlanInfo200>>;
|
|
867
|
+
export declare const getXcitiumPlanInfoQueryKey: (addonId: string) => readonly [`/v1/addons/xcitium/${string}/plan`];
|
|
868
|
+
export declare const getXcitiumPlanInfoQueryOptions: <TData = AxiosResponse<XcitiumPlanInfo200, any>, TError = AxiosError<unknown, any>>(addonId: string, options?: {
|
|
869
869
|
query?: Partial<UseQueryOptions<AxiosResponse<XcitiumPlanInfo200, any>, TError, TData, QueryKey>> | undefined;
|
|
870
870
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
871
871
|
} | undefined) => UseQueryOptions<AxiosResponse<XcitiumPlanInfo200, any>, TError, TData, QueryKey> & {
|
|
@@ -873,19 +873,19 @@ export declare const getXcitiumPlanInfoQueryOptions: <TData = AxiosResponse<Xcit
|
|
|
873
873
|
};
|
|
874
874
|
export declare type XcitiumPlanInfoQueryResult = NonNullable<Awaited<ReturnType<typeof xcitiumPlanInfo>>>;
|
|
875
875
|
export declare type XcitiumPlanInfoQueryError = AxiosError<unknown>;
|
|
876
|
-
export declare function useXcitiumPlanInfo<TData = Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError = AxiosError<unknown>>(addonId:
|
|
876
|
+
export declare function useXcitiumPlanInfo<TData = Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError = AxiosError<unknown>>(addonId: string, options: {
|
|
877
877
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError, TData>, 'initialData'>;
|
|
878
878
|
axios?: AxiosRequestConfig;
|
|
879
879
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
880
880
|
queryKey: QueryKey;
|
|
881
881
|
};
|
|
882
|
-
export declare function useXcitiumPlanInfo<TData = Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError = AxiosError<unknown>>(addonId:
|
|
882
|
+
export declare function useXcitiumPlanInfo<TData = Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError = AxiosError<unknown>>(addonId: string, options?: {
|
|
883
883
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError, TData>, 'initialData'>;
|
|
884
884
|
axios?: AxiosRequestConfig;
|
|
885
885
|
}): UseQueryResult<TData, TError> & {
|
|
886
886
|
queryKey: QueryKey;
|
|
887
887
|
};
|
|
888
|
-
export declare function useXcitiumPlanInfo<TData = Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError = AxiosError<unknown>>(addonId:
|
|
888
|
+
export declare function useXcitiumPlanInfo<TData = Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError = AxiosError<unknown>>(addonId: string, options?: {
|
|
889
889
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof xcitiumPlanInfo>>, TError, TData>>;
|
|
890
890
|
axios?: AxiosRequestConfig;
|
|
891
891
|
}): UseQueryResult<TData, TError> & {
|
|
@@ -6511,13 +6511,13 @@ export declare const useBackupsJetpackBackup: <TError = AxiosError<void, any>, T
|
|
|
6511
6511
|
* Adds the site to the Xcitium account
|
|
6512
6512
|
* @summary Add site to xcitium
|
|
6513
6513
|
*/
|
|
6514
|
-
export declare const sitesBackupsXcitium: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
6514
|
+
export declare const sitesBackupsXcitium: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<unknown>>;
|
|
6515
6515
|
export declare const getSitesBackupsXcitiumMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6516
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
6516
|
+
mutation?: UseMutationOptions<AxiosResponse<unknown, any>, TError, {
|
|
6517
6517
|
siteId: number;
|
|
6518
6518
|
}, TContext> | undefined;
|
|
6519
6519
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
6520
|
-
} | undefined) => UseMutationOptions<AxiosResponse<
|
|
6520
|
+
} | undefined) => UseMutationOptions<AxiosResponse<unknown, any>, TError, {
|
|
6521
6521
|
siteId: number;
|
|
6522
6522
|
}, TContext>;
|
|
6523
6523
|
export declare type SitesBackupsXcitiumMutationResult = NonNullable<Awaited<ReturnType<typeof sitesBackupsXcitium>>>;
|
|
@@ -6526,11 +6526,11 @@ export declare type SitesBackupsXcitiumMutationError = AxiosError<unknown>;
|
|
|
6526
6526
|
* @summary Add site to xcitium
|
|
6527
6527
|
*/
|
|
6528
6528
|
export declare const useSitesBackupsXcitium: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6529
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
6529
|
+
mutation?: UseMutationOptions<AxiosResponse<unknown, any>, TError, {
|
|
6530
6530
|
siteId: number;
|
|
6531
6531
|
}, TContext> | undefined;
|
|
6532
6532
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
6533
|
-
} | undefined) => UseMutationResult<AxiosResponse<
|
|
6533
|
+
} | undefined) => UseMutationResult<AxiosResponse<unknown, any>, TError, {
|
|
6534
6534
|
siteId: number;
|
|
6535
6535
|
}, TContext>;
|
|
6536
6536
|
/**
|
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.1903.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200,
|
|
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, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -207,7 +207,6 @@ export declare const getSitesBackupsCodeguardResponseMock: (overrideResponse?: P
|
|
|
207
207
|
export declare const getSitesBackupsDetailsResponseMock: (overrideResponse?: Partial<SitesBackupsDetails200>) => SitesBackupsDetails200;
|
|
208
208
|
export declare const getJetpackBackupStatusResponseMock: (overrideResponse?: Partial<JetpackBackupStatus200>) => JetpackBackupStatus200;
|
|
209
209
|
export declare const getBackupsJetpackBackupResponseMock: () => BackupsJetpackBackup200;
|
|
210
|
-
export declare const getSitesBackupsXcitiumResponseMock: (overrideResponse?: Partial<SitesBackupsXcitium200>) => SitesBackupsXcitium200;
|
|
211
210
|
export declare const getSiteAddonCloudflareResponseMock: (overrideResponse?: Partial<SiteAddonCloudflare200>) => SiteAddonCloudflare200;
|
|
212
211
|
export declare const getSitesDatabaseInfoResponseMock: (overrideResponse?: Partial<SitesDatabaseInfo200>) => SitesDatabaseInfo200;
|
|
213
212
|
export declare const getSitesDatabasePasswordsyncResponseMock: (overrideResponse?: Partial<SitesDatabasePasswordsync200>) => SitesDatabasePasswordsync200;
|
|
@@ -522,7 +521,7 @@ export declare const getSitesBackupsCodeguardMockHandler: (overrideResponse?: Si
|
|
|
522
521
|
export declare const getSitesBackupsDetailsMockHandler: (overrideResponse?: SitesBackupsDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesBackupsDetails200> | SitesBackupsDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
523
522
|
export declare const getJetpackBackupStatusMockHandler: (overrideResponse?: JetpackBackupStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<JetpackBackupStatus200> | JetpackBackupStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
524
523
|
export declare const getBackupsJetpackBackupMockHandler: (overrideResponse?: BackupsJetpackBackup200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<BackupsJetpackBackup200> | BackupsJetpackBackup200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
525
|
-
export declare const getSitesBackupsXcitiumMockHandler: (overrideResponse?:
|
|
524
|
+
export declare const getSitesBackupsXcitiumMockHandler: (overrideResponse?: unknown) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
526
525
|
export declare const getSiteAddonCloudflareMockHandler: (overrideResponse?: SiteAddonCloudflare200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteAddonCloudflare200> | SiteAddonCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
527
526
|
export declare const getSitesDatabaseInfoMockHandler: (overrideResponse?: SitesDatabaseInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesDatabaseInfo200> | SitesDatabaseInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
528
527
|
export declare const getSitesDatabasePasswordsyncMockHandler: (overrideResponse?: SitesDatabasePasswordsync200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesDatabasePasswordsync200> | SitesDatabasePasswordsync200) | 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.1903.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -36,7 +36,7 @@ export const getXcitiumBackupListResponseMock = (overrideResponse = {}) => (Obje
|
|
|
36
36
|
export const getXcitiumBackupCreateResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), website_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
37
37
|
export const getXcitiumBackupDownloadResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), website_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
38
38
|
export const getXcitiumBackupRestoreResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), website_success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
39
|
-
export const getXcitiumPlanInfoResponseMock = (overrideResponse = {}) => (Object.assign({ back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), seat_count: faker.helpers.arrayElement([faker.
|
|
39
|
+
export const getXcitiumPlanInfoResponseMock = (overrideResponse = {}) => (Object.assign({ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), seat_count: faker.helpers.arrayElement([faker.word.sample(), undefined]), seat_limit: faker.helpers.arrayElement([faker.word.sample(), undefined]), seats: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), size: faker.helpers.arrayElement([faker.word.sample(), undefined]), size_limit: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
40
40
|
export const getXcitiumSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
41
41
|
export const getBackupInitiateResponseMock = (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));
|
|
42
42
|
export const getBackupStatusResponseMock = (overrideResponse = {}) => (Object.assign({ download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), message: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -220,7 +220,6 @@ export const getSitesBackupsCodeguardResponseMock = (overrideResponse = {}) => (
|
|
|
220
220
|
export const getSitesBackupsDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ codeguard: faker.helpers.arrayElement([{ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), database_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), seats_available: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), seats_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), jetpack: faker.helpers.arrayElement([{ addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), can_purchase: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_addon: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_plugin: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), last_backup_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), next_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), plugin_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), xcitium: faker.helpers.arrayElement([{ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), database_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), seats_available: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), seats_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]) }, overrideResponse));
|
|
221
221
|
export const getJetpackBackupStatusResponseMock = (overrideResponse = {}) => (Object.assign({ addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_addon: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_plugin: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), next_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), plugin_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
222
222
|
export const getBackupsJetpackBackupResponseMock = () => ({});
|
|
223
|
-
export const getSitesBackupsXcitiumResponseMock = (overrideResponse = {}) => (Object.assign({ website_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
224
223
|
export const getSiteAddonCloudflareResponseMock = (overrideResponse = {}) => (Object.assign({ addon_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
225
224
|
export const getSitesDatabaseInfoResponseMock = (overrideResponse = {}) => (Object.assign({ charset: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), collation: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
226
225
|
export const getSitesDatabasePasswordsyncResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
@@ -343,7 +342,7 @@ export const getSitesSshUserListV2ResponseMock = (overrideResponse = {}) => (Obj
|
|
|
343
342
|
export const getSiteUsersV2ResponseMock = (overrideResponse = {}) => (Object.assign({ total_users: faker.number.int({ min: undefined, max: undefined }), 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));
|
|
344
343
|
export const getBackupCreateV3ResponseMock = (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));
|
|
345
344
|
export const getBackupRestoreV3ResponseMock = (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));
|
|
346
|
-
export const getBackupListV3ResponseMock = (overrideResponse = {}) => (Object.assign({ has_more: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_creation_time: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), backup_expiration_time: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), backup_reason: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_size_bytes: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), backup_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), dc_location: faker.helpers.arrayElement([faker.word.sample(), undefined]), exclude_paths: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), paths: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), schedule_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), timezone: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), offset: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
345
|
+
export const getBackupListV3ResponseMock = (overrideResponse = {}) => (Object.assign({ has_more: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_creation_time: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), backup_expiration_time: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), backup_reason: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_size_bytes: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), backup_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), dc_location: faker.helpers.arrayElement([faker.word.sample(), undefined]), exclude_paths: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), paths: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), schedule_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), timezone: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), offset: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
347
346
|
export const getHostingSiteAddV3ResponseMock = (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));
|
|
348
347
|
export const getSshKeyImportV3ResponseMock = (overrideResponse = {}) => (Object.assign({ public_key_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
349
348
|
export const getSshKeyListV3ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ authorize: faker.helpers.arrayElement([faker.datatype.boolean(), 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));
|
|
@@ -2425,10 +2424,10 @@ export const getBackupsJetpackBackupMockHandler = (overrideResponse) => {
|
|
|
2425
2424
|
export const getSitesBackupsXcitiumMockHandler = (overrideResponse) => {
|
|
2426
2425
|
return http.post('*/v1/sites/:siteId/backups/xcitium', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2427
2426
|
yield delay(0);
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2427
|
+
if (typeof overrideResponse === 'function') {
|
|
2428
|
+
yield overrideResponse(info);
|
|
2429
|
+
}
|
|
2430
|
+
return new HttpResponse(null, { status: 200,
|
|
2432
2431
|
});
|
|
2433
2432
|
}));
|
|
2434
2433
|
};
|
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.1903.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -146,6 +146,11 @@ export declare type BackupListV3200ItemsItem = {
|
|
|
146
146
|
backup_reason?: string;
|
|
147
147
|
backup_size_bytes?: number;
|
|
148
148
|
backup_status?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Backup scope/content type from HAL (e.g. home, db, home_db).
|
|
151
|
+
* @nullable
|
|
152
|
+
*/
|
|
153
|
+
backup_type?: string | null;
|
|
149
154
|
databases?: string[];
|
|
150
155
|
dc_location?: string;
|
|
151
156
|
exclude_paths?: string[];
|
|
@@ -453,84 +458,6 @@ export declare type SitesDomainsV2200 = {
|
|
|
453
458
|
export declare type SitesDomainsV2Params = {
|
|
454
459
|
scan?: boolean;
|
|
455
460
|
};
|
|
456
|
-
export declare type SitesListV2200ItemsItem = {
|
|
457
|
-
/** @nullable */
|
|
458
|
-
account_back_ref?: string | null;
|
|
459
|
-
account_id?: string;
|
|
460
|
-
/**
|
|
461
|
-
* the current status of the account this site belongs to
|
|
462
|
-
* @nullable
|
|
463
|
-
*/
|
|
464
|
-
account_status?: string | null;
|
|
465
|
-
/** @nullable */
|
|
466
|
-
base_domain?: string | null;
|
|
467
|
-
/**
|
|
468
|
-
* False if site was added by site scanner
|
|
469
|
-
* @nullable
|
|
470
|
-
*/
|
|
471
|
-
confirmed?: boolean | null;
|
|
472
|
-
/** @nullable */
|
|
473
|
-
datacenter?: string | null;
|
|
474
|
-
date_added?: string;
|
|
475
|
-
date_modified?: string;
|
|
476
|
-
detected_type?: string;
|
|
477
|
-
/** @nullable */
|
|
478
|
-
docpath?: string | null;
|
|
479
|
-
/** @nullable */
|
|
480
|
-
docroot?: string | null;
|
|
481
|
-
/** @nullable */
|
|
482
|
-
domain?: string | null;
|
|
483
|
-
edge_cache?: boolean;
|
|
484
|
-
handler_404?: string;
|
|
485
|
-
id?: number;
|
|
486
|
-
/** @nullable */
|
|
487
|
-
installed_id?: string | null;
|
|
488
|
-
/** True if docpath is public_html, otherwise False */
|
|
489
|
-
is_primary?: boolean;
|
|
490
|
-
/**
|
|
491
|
-
* Job ids for the site
|
|
492
|
-
* @nullable
|
|
493
|
-
*/
|
|
494
|
-
jobs?: SitesListV2200ItemsItemJobs;
|
|
495
|
-
/** @nullable */
|
|
496
|
-
last_error?: string | null;
|
|
497
|
-
/** @nullable */
|
|
498
|
-
migration_id?: string | null;
|
|
499
|
-
/** @nullable */
|
|
500
|
-
name?: string | null;
|
|
501
|
-
/**
|
|
502
|
-
* Status of the site's onboarding
|
|
503
|
-
* @nullable
|
|
504
|
-
*/
|
|
505
|
-
onboarding?: number | null;
|
|
506
|
-
path?: string;
|
|
507
|
-
/** @nullable */
|
|
508
|
-
pending_url?: string | null;
|
|
509
|
-
/** @nullable */
|
|
510
|
-
pending_url_data?: SitesListV2200ItemsItemPendingUrlData;
|
|
511
|
-
/**
|
|
512
|
-
* The Php Version. If unable to determine, it will be NULL
|
|
513
|
-
* @nullable
|
|
514
|
-
*/
|
|
515
|
-
php_version?: string | null;
|
|
516
|
-
resources?: SitesListV2200ItemsItemResources;
|
|
517
|
-
/** @nullable */
|
|
518
|
-
staging?: SitesListV2200ItemsItemStaging;
|
|
519
|
-
status?: string;
|
|
520
|
-
subtype?: string;
|
|
521
|
-
type?: string;
|
|
522
|
-
/** @nullable */
|
|
523
|
-
url?: string | null;
|
|
524
|
-
/** @nullable */
|
|
525
|
-
url_is_provisional?: boolean | null;
|
|
526
|
-
/** @nullable */
|
|
527
|
-
version?: string | null;
|
|
528
|
-
/**
|
|
529
|
-
* The WP Version
|
|
530
|
-
* @nullable
|
|
531
|
-
*/
|
|
532
|
-
version_ptr?: string | null;
|
|
533
|
-
};
|
|
534
461
|
export declare type SitesListV2200 = {
|
|
535
462
|
items?: SitesListV2200ItemsItem[];
|
|
536
463
|
/** page size */
|
|
@@ -626,6 +553,84 @@ export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
|
626
553
|
export declare type SitesListV2200ItemsItemJobs = {
|
|
627
554
|
[key: string]: unknown;
|
|
628
555
|
} | null;
|
|
556
|
+
export declare type SitesListV2200ItemsItem = {
|
|
557
|
+
/** @nullable */
|
|
558
|
+
account_back_ref?: string | null;
|
|
559
|
+
account_id?: string;
|
|
560
|
+
/**
|
|
561
|
+
* the current status of the account this site belongs to
|
|
562
|
+
* @nullable
|
|
563
|
+
*/
|
|
564
|
+
account_status?: string | null;
|
|
565
|
+
/** @nullable */
|
|
566
|
+
base_domain?: string | null;
|
|
567
|
+
/**
|
|
568
|
+
* False if site was added by site scanner
|
|
569
|
+
* @nullable
|
|
570
|
+
*/
|
|
571
|
+
confirmed?: boolean | null;
|
|
572
|
+
/** @nullable */
|
|
573
|
+
datacenter?: string | null;
|
|
574
|
+
date_added?: string;
|
|
575
|
+
date_modified?: string;
|
|
576
|
+
detected_type?: string;
|
|
577
|
+
/** @nullable */
|
|
578
|
+
docpath?: string | null;
|
|
579
|
+
/** @nullable */
|
|
580
|
+
docroot?: string | null;
|
|
581
|
+
/** @nullable */
|
|
582
|
+
domain?: string | null;
|
|
583
|
+
edge_cache?: boolean;
|
|
584
|
+
handler_404?: string;
|
|
585
|
+
id?: number;
|
|
586
|
+
/** @nullable */
|
|
587
|
+
installed_id?: string | null;
|
|
588
|
+
/** True if docpath is public_html, otherwise False */
|
|
589
|
+
is_primary?: boolean;
|
|
590
|
+
/**
|
|
591
|
+
* Job ids for the site
|
|
592
|
+
* @nullable
|
|
593
|
+
*/
|
|
594
|
+
jobs?: SitesListV2200ItemsItemJobs;
|
|
595
|
+
/** @nullable */
|
|
596
|
+
last_error?: string | null;
|
|
597
|
+
/** @nullable */
|
|
598
|
+
migration_id?: string | null;
|
|
599
|
+
/** @nullable */
|
|
600
|
+
name?: string | null;
|
|
601
|
+
/**
|
|
602
|
+
* Status of the site's onboarding
|
|
603
|
+
* @nullable
|
|
604
|
+
*/
|
|
605
|
+
onboarding?: number | null;
|
|
606
|
+
path?: string;
|
|
607
|
+
/** @nullable */
|
|
608
|
+
pending_url?: string | null;
|
|
609
|
+
/** @nullable */
|
|
610
|
+
pending_url_data?: SitesListV2200ItemsItemPendingUrlData;
|
|
611
|
+
/**
|
|
612
|
+
* The Php Version. If unable to determine, it will be NULL
|
|
613
|
+
* @nullable
|
|
614
|
+
*/
|
|
615
|
+
php_version?: string | null;
|
|
616
|
+
resources?: SitesListV2200ItemsItemResources;
|
|
617
|
+
/** @nullable */
|
|
618
|
+
staging?: SitesListV2200ItemsItemStaging;
|
|
619
|
+
status?: string;
|
|
620
|
+
subtype?: string;
|
|
621
|
+
type?: string;
|
|
622
|
+
/** @nullable */
|
|
623
|
+
url?: string | null;
|
|
624
|
+
/** @nullable */
|
|
625
|
+
url_is_provisional?: boolean | null;
|
|
626
|
+
/** @nullable */
|
|
627
|
+
version?: string | null;
|
|
628
|
+
/**
|
|
629
|
+
* The WP Version
|
|
630
|
+
* @nullable
|
|
631
|
+
*/
|
|
632
|
+
version_ptr?: string | null;
|
|
633
|
+
};
|
|
629
634
|
export declare type SshKeyV2200 = {
|
|
630
635
|
deleted?: number;
|
|
631
636
|
key_name?: string;
|
|
@@ -2369,6 +2374,13 @@ export declare type SitePendingDomainDelete200 = {
|
|
|
2369
2374
|
export declare type SitesOnboardingSteps200 = {
|
|
2370
2375
|
steps?: SiteOnboardingStepModel[];
|
|
2371
2376
|
};
|
|
2377
|
+
export declare type SitesMetricDimensions200 = {
|
|
2378
|
+
date_end?: string;
|
|
2379
|
+
date_start?: string;
|
|
2380
|
+
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2381
|
+
elapsed?: number;
|
|
2382
|
+
metric?: string;
|
|
2383
|
+
};
|
|
2372
2384
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
2373
2385
|
[key: string]: number;
|
|
2374
2386
|
};
|
|
@@ -2451,13 +2463,6 @@ export declare type SitesMetricDimensions200Dimensions = {
|
|
|
2451
2463
|
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2452
2464
|
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2453
2465
|
};
|
|
2454
|
-
export declare type SitesMetricDimensions200 = {
|
|
2455
|
-
date_end?: string;
|
|
2456
|
-
date_start?: string;
|
|
2457
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2458
|
-
elapsed?: number;
|
|
2459
|
-
metric?: string;
|
|
2460
|
-
};
|
|
2461
2466
|
export declare type SitesMetricDimensionsParams = {
|
|
2462
2467
|
start?: string;
|
|
2463
2468
|
end?: string;
|
|
@@ -2763,9 +2768,6 @@ export declare type SiteAddonCloudflare400 = {
|
|
|
2763
2768
|
export declare type SiteAddonCloudflare200 = {
|
|
2764
2769
|
addon_id?: number;
|
|
2765
2770
|
};
|
|
2766
|
-
export declare type SitesBackupsXcitium200 = {
|
|
2767
|
-
website_id?: number;
|
|
2768
|
-
};
|
|
2769
2771
|
export declare type BackupsJetpackBackup200 = {
|
|
2770
2772
|
[key: string]: unknown;
|
|
2771
2773
|
};
|
|
@@ -6670,23 +6672,45 @@ export declare type XcitiumSso200 = {
|
|
|
6670
6672
|
url?: string;
|
|
6671
6673
|
};
|
|
6672
6674
|
export declare type XcitiumPlanInfo200SeatsItem = {
|
|
6675
|
+
/** Whether this site can create or can download xcitium backups */
|
|
6673
6676
|
activated?: boolean;
|
|
6674
|
-
|
|
6675
|
-
|
|
6677
|
+
/**
|
|
6678
|
+
* Site url for this xcitium backup
|
|
6679
|
+
* @nullable
|
|
6680
|
+
*/
|
|
6681
|
+
url?: string | null;
|
|
6682
|
+
/**
|
|
6683
|
+
* The xcitium identifier for this backup
|
|
6684
|
+
* @nullable
|
|
6685
|
+
*/
|
|
6686
|
+
website_id?: string | null;
|
|
6676
6687
|
};
|
|
6677
6688
|
export declare type XcitiumPlanInfo200 = {
|
|
6678
|
-
|
|
6689
|
+
/** Whether backups can be created or downloaded from xcitium */
|
|
6690
|
+
activated?: boolean;
|
|
6691
|
+
/**
|
|
6692
|
+
* Back reference of the xcitium addon
|
|
6693
|
+
* @nullable
|
|
6694
|
+
*/
|
|
6695
|
+
back_reference?: string | null;
|
|
6696
|
+
/** Whether the xcitium addon is upgradable to a higher tier */
|
|
6679
6697
|
can_upgrade?: boolean;
|
|
6680
|
-
/**
|
|
6681
|
-
disabled?: boolean
|
|
6682
|
-
/**
|
|
6683
|
-
over_quota?: boolean
|
|
6698
|
+
/** Whether the xcitium addon has been disabled */
|
|
6699
|
+
disabled?: boolean;
|
|
6700
|
+
/** Whether backup size has gone over the storage limit for the xcitium plan */
|
|
6701
|
+
over_quota?: boolean;
|
|
6702
|
+
/** Displayable plan name that the xcitium addon is on */
|
|
6684
6703
|
plan_name?: string;
|
|
6685
|
-
|
|
6686
|
-
|
|
6704
|
+
/** Current number of sites added to the xcitium plan */
|
|
6705
|
+
seat_count?: string;
|
|
6706
|
+
/** Max number of sites that can be added to the xcitium plan */
|
|
6707
|
+
seat_limit?: string;
|
|
6687
6708
|
seats?: XcitiumPlanInfo200SeatsItem[];
|
|
6688
|
-
size
|
|
6689
|
-
|
|
6709
|
+
/** Current size (in gib) of backups under the xcitium plan */
|
|
6710
|
+
size?: string;
|
|
6711
|
+
/** Max size (in gib) that can be backed up under the xcitium plan */
|
|
6712
|
+
size_limit?: string;
|
|
6713
|
+
/** Status of the xcitium addon */
|
|
6690
6714
|
status?: string;
|
|
6691
6715
|
};
|
|
6692
6716
|
export declare type XcitiumBackupRestore200 = {
|