@newfold/huapi-js 2.1766.0 → 2.1789.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 +131 -7
- package/src/index.js +98 -10
- package/src/index.msw.d.ts +9 -1
- package/src/index.msw.js +54 -4
- package/src/index.schemas.d.ts +274 -202
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, 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, 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, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, 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, 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, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, 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, 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, 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, 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, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, 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, 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, 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, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, 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
|
/**
|
|
@@ -73,9 +73,9 @@ export declare function useAccountFeatures<TData = Awaited<ReturnType<typeof acc
|
|
|
73
73
|
* Returns a hosting account list
|
|
74
74
|
* @summary Hosting account list for a customer
|
|
75
75
|
*/
|
|
76
|
-
export declare const accountHostingList: (options?: AxiosRequestConfig) => Promise<AxiosResponse<AccountHostingList200>>;
|
|
77
|
-
export declare const getAccountHostingListQueryKey: () => readonly ["/v1/account/hosting"];
|
|
78
|
-
export declare const getAccountHostingListQueryOptions: <TData = AxiosResponse<AccountHostingList200, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
76
|
+
export declare const accountHostingList: (params?: AccountHostingListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AccountHostingList200>>;
|
|
77
|
+
export declare const getAccountHostingListQueryKey: (params?: AccountHostingListParams) => readonly ["/v1/account/hosting", ...AccountHostingListParams[]];
|
|
78
|
+
export declare const getAccountHostingListQueryOptions: <TData = AxiosResponse<AccountHostingList200, any>, TError = AxiosError<unknown, any>>(params?: AccountHostingListParams, options?: {
|
|
79
79
|
query?: Partial<UseQueryOptions<AxiosResponse<AccountHostingList200, any>, TError, TData, QueryKey>> | undefined;
|
|
80
80
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
81
81
|
} | undefined) => UseQueryOptions<AxiosResponse<AccountHostingList200, any>, TError, TData, QueryKey> & {
|
|
@@ -83,19 +83,19 @@ export declare const getAccountHostingListQueryOptions: <TData = AxiosResponse<A
|
|
|
83
83
|
};
|
|
84
84
|
export declare type AccountHostingListQueryResult = NonNullable<Awaited<ReturnType<typeof accountHostingList>>>;
|
|
85
85
|
export declare type AccountHostingListQueryError = AxiosError<unknown>;
|
|
86
|
-
export declare function useAccountHostingList<TData = Awaited<ReturnType<typeof accountHostingList>>, TError = AxiosError<unknown>>(options: {
|
|
86
|
+
export declare function useAccountHostingList<TData = Awaited<ReturnType<typeof accountHostingList>>, TError = AxiosError<unknown>>(params: undefined | AccountHostingListParams, options: {
|
|
87
87
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof accountHostingList>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof accountHostingList>>, TError, TData>, 'initialData'>;
|
|
88
88
|
axios?: AxiosRequestConfig;
|
|
89
89
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
90
90
|
queryKey: QueryKey;
|
|
91
91
|
};
|
|
92
|
-
export declare function useAccountHostingList<TData = Awaited<ReturnType<typeof accountHostingList>>, TError = AxiosError<unknown>>(options?: {
|
|
92
|
+
export declare function useAccountHostingList<TData = Awaited<ReturnType<typeof accountHostingList>>, TError = AxiosError<unknown>>(params?: AccountHostingListParams, options?: {
|
|
93
93
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof accountHostingList>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof accountHostingList>>, TError, TData>, 'initialData'>;
|
|
94
94
|
axios?: AxiosRequestConfig;
|
|
95
95
|
}): UseQueryResult<TData, TError> & {
|
|
96
96
|
queryKey: QueryKey;
|
|
97
97
|
};
|
|
98
|
-
export declare function useAccountHostingList<TData = Awaited<ReturnType<typeof accountHostingList>>, TError = AxiosError<unknown>>(options?: {
|
|
98
|
+
export declare function useAccountHostingList<TData = Awaited<ReturnType<typeof accountHostingList>>, TError = AxiosError<unknown>>(params?: AccountHostingListParams, options?: {
|
|
99
99
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof accountHostingList>>, TError, TData>>;
|
|
100
100
|
axios?: AxiosRequestConfig;
|
|
101
101
|
}): UseQueryResult<TData, TError> & {
|
|
@@ -7035,6 +7035,37 @@ export declare const useSitePluginUpdate: <TError = AxiosError<unknown, any>, TC
|
|
|
7035
7035
|
siteId: string;
|
|
7036
7036
|
data: SitePluginUpdateBody;
|
|
7037
7037
|
}, TContext>;
|
|
7038
|
+
/**
|
|
7039
|
+
* Installs and activates a plugin
|
|
7040
|
+
* @summary plugin install
|
|
7041
|
+
*/
|
|
7042
|
+
export declare const sitePluginInstall: (siteId: string, sitePluginInstallBody: SitePluginInstallBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginInstall200>>;
|
|
7043
|
+
export declare const getSitePluginInstallMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
7044
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginInstall200, any>, TError, {
|
|
7045
|
+
siteId: string;
|
|
7046
|
+
data: SitePluginInstallBody;
|
|
7047
|
+
}, TContext> | undefined;
|
|
7048
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
7049
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SitePluginInstall200, any>, TError, {
|
|
7050
|
+
siteId: string;
|
|
7051
|
+
data: SitePluginInstallBody;
|
|
7052
|
+
}, TContext>;
|
|
7053
|
+
export declare type SitePluginInstallMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginInstall>>>;
|
|
7054
|
+
export declare type SitePluginInstallMutationBody = SitePluginInstallBody;
|
|
7055
|
+
export declare type SitePluginInstallMutationError = AxiosError<unknown>;
|
|
7056
|
+
/**
|
|
7057
|
+
* @summary plugin install
|
|
7058
|
+
*/
|
|
7059
|
+
export declare const useSitePluginInstall: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
7060
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginInstall200, any>, TError, {
|
|
7061
|
+
siteId: string;
|
|
7062
|
+
data: SitePluginInstallBody;
|
|
7063
|
+
}, TContext> | undefined;
|
|
7064
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
7065
|
+
} | undefined) => UseMutationResult<AxiosResponse<SitePluginInstall200, any>, TError, {
|
|
7066
|
+
siteId: string;
|
|
7067
|
+
data: SitePluginInstallBody;
|
|
7068
|
+
}, TContext>;
|
|
7038
7069
|
/**
|
|
7039
7070
|
* Enables / disables plugin auto-updates
|
|
7040
7071
|
* @deprecated
|
|
@@ -7068,6 +7099,37 @@ export declare const useSitePluginsAutoupdate: <TError = AxiosError<unknown, any
|
|
|
7068
7099
|
siteId: string;
|
|
7069
7100
|
data: SitePluginsAutoupdateBody;
|
|
7070
7101
|
}, TContext>;
|
|
7102
|
+
/**
|
|
7103
|
+
* Installs a WordPress plugin using either plugin slug (preferred) or plugin_url. If both are provided, plugin takes priority.
|
|
7104
|
+
* @summary Install plugin by slug or URL
|
|
7105
|
+
*/
|
|
7106
|
+
export declare const sitePluginInstaller: (siteId: string, sitePluginInstallerBody: SitePluginInstallerBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginInstaller200>>;
|
|
7107
|
+
export declare const getSitePluginInstallerMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
7108
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginInstaller200, any>, TError, {
|
|
7109
|
+
siteId: string;
|
|
7110
|
+
data: SitePluginInstallerBody;
|
|
7111
|
+
}, TContext> | undefined;
|
|
7112
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
7113
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SitePluginInstaller200, any>, TError, {
|
|
7114
|
+
siteId: string;
|
|
7115
|
+
data: SitePluginInstallerBody;
|
|
7116
|
+
}, TContext>;
|
|
7117
|
+
export declare type SitePluginInstallerMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginInstaller>>>;
|
|
7118
|
+
export declare type SitePluginInstallerMutationBody = SitePluginInstallerBody;
|
|
7119
|
+
export declare type SitePluginInstallerMutationError = AxiosError<unknown>;
|
|
7120
|
+
/**
|
|
7121
|
+
* @summary Install plugin by slug or URL
|
|
7122
|
+
*/
|
|
7123
|
+
export declare const useSitePluginInstaller: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
7124
|
+
mutation?: UseMutationOptions<AxiosResponse<SitePluginInstaller200, any>, TError, {
|
|
7125
|
+
siteId: string;
|
|
7126
|
+
data: SitePluginInstallerBody;
|
|
7127
|
+
}, TContext> | undefined;
|
|
7128
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
7129
|
+
} | undefined) => UseMutationResult<AxiosResponse<SitePluginInstaller200, any>, TError, {
|
|
7130
|
+
siteId: string;
|
|
7131
|
+
data: SitePluginInstallerBody;
|
|
7132
|
+
}, TContext>;
|
|
7071
7133
|
/**
|
|
7072
7134
|
* Enables / disables a plugin
|
|
7073
7135
|
* @deprecated
|
|
@@ -7977,6 +8039,68 @@ export declare function useSitesVersion<TData = Awaited<ReturnType<typeof sitesV
|
|
|
7977
8039
|
}): UseQueryResult<TData, TError> & {
|
|
7978
8040
|
queryKey: QueryKey;
|
|
7979
8041
|
};
|
|
8042
|
+
/**
|
|
8043
|
+
* Generates site content based on prompt value passed
|
|
8044
|
+
* @summary Generate site content based on prompt
|
|
8045
|
+
*/
|
|
8046
|
+
export declare const siteWpGenerate: (siteId: string, siteWpGenerateBody: SiteWpGenerateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteWpGenerate200>>;
|
|
8047
|
+
export declare const getSiteWpGenerateMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
8048
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteWpGenerate200, any>, TError, {
|
|
8049
|
+
siteId: string;
|
|
8050
|
+
data: SiteWpGenerateBody;
|
|
8051
|
+
}, TContext> | undefined;
|
|
8052
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
8053
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SiteWpGenerate200, any>, TError, {
|
|
8054
|
+
siteId: string;
|
|
8055
|
+
data: SiteWpGenerateBody;
|
|
8056
|
+
}, TContext>;
|
|
8057
|
+
export declare type SiteWpGenerateMutationResult = NonNullable<Awaited<ReturnType<typeof siteWpGenerate>>>;
|
|
8058
|
+
export declare type SiteWpGenerateMutationBody = SiteWpGenerateBody;
|
|
8059
|
+
export declare type SiteWpGenerateMutationError = AxiosError<unknown>;
|
|
8060
|
+
/**
|
|
8061
|
+
* @summary Generate site content based on prompt
|
|
8062
|
+
*/
|
|
8063
|
+
export declare const useSiteWpGenerate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
8064
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteWpGenerate200, any>, TError, {
|
|
8065
|
+
siteId: string;
|
|
8066
|
+
data: SiteWpGenerateBody;
|
|
8067
|
+
}, TContext> | undefined;
|
|
8068
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
8069
|
+
} | undefined) => UseMutationResult<AxiosResponse<SiteWpGenerate200, any>, TError, {
|
|
8070
|
+
siteId: string;
|
|
8071
|
+
data: SiteWpGenerateBody;
|
|
8072
|
+
}, TContext>;
|
|
8073
|
+
/**
|
|
8074
|
+
* Installs and activates a theme
|
|
8075
|
+
* @summary theme install
|
|
8076
|
+
*/
|
|
8077
|
+
export declare const siteThemeInstall: (siteId: string, siteThemeInstallBody: SiteThemeInstallBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteThemeInstall200>>;
|
|
8078
|
+
export declare const getSiteThemeInstallMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
8079
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteThemeInstall200, any>, TError, {
|
|
8080
|
+
siteId: string;
|
|
8081
|
+
data: SiteThemeInstallBody;
|
|
8082
|
+
}, TContext> | undefined;
|
|
8083
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
8084
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SiteThemeInstall200, any>, TError, {
|
|
8085
|
+
siteId: string;
|
|
8086
|
+
data: SiteThemeInstallBody;
|
|
8087
|
+
}, TContext>;
|
|
8088
|
+
export declare type SiteThemeInstallMutationResult = NonNullable<Awaited<ReturnType<typeof siteThemeInstall>>>;
|
|
8089
|
+
export declare type SiteThemeInstallMutationBody = SiteThemeInstallBody;
|
|
8090
|
+
export declare type SiteThemeInstallMutationError = AxiosError<unknown>;
|
|
8091
|
+
/**
|
|
8092
|
+
* @summary theme install
|
|
8093
|
+
*/
|
|
8094
|
+
export declare const useSiteThemeInstall: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
8095
|
+
mutation?: UseMutationOptions<AxiosResponse<SiteThemeInstall200, any>, TError, {
|
|
8096
|
+
siteId: string;
|
|
8097
|
+
data: SiteThemeInstallBody;
|
|
8098
|
+
}, TContext> | undefined;
|
|
8099
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
8100
|
+
} | undefined) => UseMutationResult<AxiosResponse<SiteThemeInstall200, any>, TError, {
|
|
8101
|
+
siteId: string;
|
|
8102
|
+
data: SiteThemeInstallBody;
|
|
8103
|
+
}, TContext>;
|
|
7980
8104
|
/**
|
|
7981
8105
|
* Creates wpsolution license addon for site_id
|
|
7982
8106
|
* @summary configure wpsolution license for site_id
|
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.1789.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -65,24 +65,24 @@ export function useAccountFeatures(params, options) {
|
|
|
65
65
|
* Returns a hosting account list
|
|
66
66
|
* @summary Hosting account list for a customer
|
|
67
67
|
*/
|
|
68
|
-
export const accountHostingList = (options) => {
|
|
69
|
-
return axios.get(`/v1/account/hosting`, options);
|
|
68
|
+
export const accountHostingList = (params, options) => {
|
|
69
|
+
return axios.get(`/v1/account/hosting`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
70
70
|
};
|
|
71
|
-
export const getAccountHostingListQueryKey = () => {
|
|
72
|
-
return [`/v1/account/hosting
|
|
71
|
+
export const getAccountHostingListQueryKey = (params) => {
|
|
72
|
+
return [`/v1/account/hosting`, ...(params ? [params] : [])];
|
|
73
73
|
};
|
|
74
|
-
export const getAccountHostingListQueryOptions = (options) => {
|
|
74
|
+
export const getAccountHostingListQueryOptions = (params, options) => {
|
|
75
75
|
var _a;
|
|
76
76
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
77
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAccountHostingListQueryKey();
|
|
78
|
-
const queryFn = ({ signal }) => accountHostingList(Object.assign({ signal }, axiosOptions));
|
|
77
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAccountHostingListQueryKey(params);
|
|
78
|
+
const queryFn = ({ signal }) => accountHostingList(params, Object.assign({ signal }, axiosOptions));
|
|
79
79
|
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
* @summary Hosting account list for a customer
|
|
83
83
|
*/
|
|
84
|
-
export function useAccountHostingList(options) {
|
|
85
|
-
const queryOptions = getAccountHostingListQueryOptions(options);
|
|
84
|
+
export function useAccountHostingList(params, options) {
|
|
85
|
+
const queryOptions = getAccountHostingListQueryOptions(params, options);
|
|
86
86
|
const query = useQuery(queryOptions);
|
|
87
87
|
query.queryKey = queryOptions.queryKey;
|
|
88
88
|
return query;
|
|
@@ -5426,6 +5426,28 @@ export const useSitePluginUpdate = (options) => {
|
|
|
5426
5426
|
const mutationOptions = getSitePluginUpdateMutationOptions(options);
|
|
5427
5427
|
return useMutation(mutationOptions);
|
|
5428
5428
|
};
|
|
5429
|
+
/**
|
|
5430
|
+
* Installs and activates a plugin
|
|
5431
|
+
* @summary plugin install
|
|
5432
|
+
*/
|
|
5433
|
+
export const sitePluginInstall = (siteId, sitePluginInstallBody, options) => {
|
|
5434
|
+
return axios.post(`/v1/sites/${siteId}/plugins`, sitePluginInstallBody, options);
|
|
5435
|
+
};
|
|
5436
|
+
export const getSitePluginInstallMutationOptions = (options) => {
|
|
5437
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5438
|
+
const mutationFn = (props) => {
|
|
5439
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
5440
|
+
return sitePluginInstall(siteId, data, axiosOptions);
|
|
5441
|
+
};
|
|
5442
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5443
|
+
};
|
|
5444
|
+
/**
|
|
5445
|
+
* @summary plugin install
|
|
5446
|
+
*/
|
|
5447
|
+
export const useSitePluginInstall = (options) => {
|
|
5448
|
+
const mutationOptions = getSitePluginInstallMutationOptions(options);
|
|
5449
|
+
return useMutation(mutationOptions);
|
|
5450
|
+
};
|
|
5429
5451
|
/**
|
|
5430
5452
|
* Enables / disables plugin auto-updates
|
|
5431
5453
|
* @deprecated
|
|
@@ -5450,6 +5472,28 @@ export const useSitePluginsAutoupdate = (options) => {
|
|
|
5450
5472
|
const mutationOptions = getSitePluginsAutoupdateMutationOptions(options);
|
|
5451
5473
|
return useMutation(mutationOptions);
|
|
5452
5474
|
};
|
|
5475
|
+
/**
|
|
5476
|
+
* Installs a WordPress plugin using either plugin slug (preferred) or plugin_url. If both are provided, plugin takes priority.
|
|
5477
|
+
* @summary Install plugin by slug or URL
|
|
5478
|
+
*/
|
|
5479
|
+
export const sitePluginInstaller = (siteId, sitePluginInstallerBody, options) => {
|
|
5480
|
+
return axios.post(`/v1/sites/${siteId}/plugins/installer`, sitePluginInstallerBody, options);
|
|
5481
|
+
};
|
|
5482
|
+
export const getSitePluginInstallerMutationOptions = (options) => {
|
|
5483
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5484
|
+
const mutationFn = (props) => {
|
|
5485
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
5486
|
+
return sitePluginInstaller(siteId, data, axiosOptions);
|
|
5487
|
+
};
|
|
5488
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5489
|
+
};
|
|
5490
|
+
/**
|
|
5491
|
+
* @summary Install plugin by slug or URL
|
|
5492
|
+
*/
|
|
5493
|
+
export const useSitePluginInstaller = (options) => {
|
|
5494
|
+
const mutationOptions = getSitePluginInstallerMutationOptions(options);
|
|
5495
|
+
return useMutation(mutationOptions);
|
|
5496
|
+
};
|
|
5453
5497
|
/**
|
|
5454
5498
|
* Enables / disables a plugin
|
|
5455
5499
|
* @deprecated
|
|
@@ -6159,6 +6203,50 @@ export function useSitesVersion(siteId, options) {
|
|
|
6159
6203
|
query.queryKey = queryOptions.queryKey;
|
|
6160
6204
|
return query;
|
|
6161
6205
|
}
|
|
6206
|
+
/**
|
|
6207
|
+
* Generates site content based on prompt value passed
|
|
6208
|
+
* @summary Generate site content based on prompt
|
|
6209
|
+
*/
|
|
6210
|
+
export const siteWpGenerate = (siteId, siteWpGenerateBody, options) => {
|
|
6211
|
+
return axios.post(`/v1/sites/${siteId}/wp/generate`, siteWpGenerateBody, options);
|
|
6212
|
+
};
|
|
6213
|
+
export const getSiteWpGenerateMutationOptions = (options) => {
|
|
6214
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
6215
|
+
const mutationFn = (props) => {
|
|
6216
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
6217
|
+
return siteWpGenerate(siteId, data, axiosOptions);
|
|
6218
|
+
};
|
|
6219
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
6220
|
+
};
|
|
6221
|
+
/**
|
|
6222
|
+
* @summary Generate site content based on prompt
|
|
6223
|
+
*/
|
|
6224
|
+
export const useSiteWpGenerate = (options) => {
|
|
6225
|
+
const mutationOptions = getSiteWpGenerateMutationOptions(options);
|
|
6226
|
+
return useMutation(mutationOptions);
|
|
6227
|
+
};
|
|
6228
|
+
/**
|
|
6229
|
+
* Installs and activates a theme
|
|
6230
|
+
* @summary theme install
|
|
6231
|
+
*/
|
|
6232
|
+
export const siteThemeInstall = (siteId, siteThemeInstallBody, options) => {
|
|
6233
|
+
return axios.post(`/v1/sites/${siteId}/wp/themes`, siteThemeInstallBody, options);
|
|
6234
|
+
};
|
|
6235
|
+
export const getSiteThemeInstallMutationOptions = (options) => {
|
|
6236
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
6237
|
+
const mutationFn = (props) => {
|
|
6238
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
6239
|
+
return siteThemeInstall(siteId, data, axiosOptions);
|
|
6240
|
+
};
|
|
6241
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
6242
|
+
};
|
|
6243
|
+
/**
|
|
6244
|
+
* @summary theme install
|
|
6245
|
+
*/
|
|
6246
|
+
export const useSiteThemeInstall = (options) => {
|
|
6247
|
+
const mutationOptions = getSiteThemeInstallMutationOptions(options);
|
|
6248
|
+
return useMutation(mutationOptions);
|
|
6249
|
+
};
|
|
6162
6250
|
/**
|
|
6163
6251
|
* Creates wpsolution license addon for site_id
|
|
6164
6252
|
* @summary configure wpsolution license for site_id
|
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, 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, 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, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, 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, 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, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, 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, 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, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, 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, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, 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, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, 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;
|
|
@@ -222,7 +222,9 @@ export declare const getSitesPerformanceRedisPurgeResponseMock: (overrideRespons
|
|
|
222
222
|
export declare const getCreatePhpInfoResponseMock: (overrideResponse?: Partial<CreatePhpInfo200>) => CreatePhpInfo200;
|
|
223
223
|
export declare const getSitePluginsResponseMock: (overrideResponse?: Partial<SitePlugins200>) => SitePlugins200;
|
|
224
224
|
export declare const getSitePluginUpdateResponseMock: (overrideResponse?: Partial<SitePluginUpdate200>) => SitePluginUpdate200;
|
|
225
|
+
export declare const getSitePluginInstallResponseMock: (overrideResponse?: Partial<SitePluginInstall200>) => SitePluginInstall200;
|
|
225
226
|
export declare const getSitePluginsAutoupdateResponseMock: (overrideResponse?: Partial<SitePluginsAutoupdate200>) => SitePluginsAutoupdate200;
|
|
227
|
+
export declare const getSitePluginInstallerResponseMock: (overrideResponse?: Partial<SitePluginInstaller200>) => SitePluginInstaller200;
|
|
226
228
|
export declare const getSitePluginsToggleResponseMock: (overrideResponse?: Partial<SitePluginsToggle200>) => SitePluginsToggle200;
|
|
227
229
|
export declare const getSitePluginsUpdateResponseMock: (overrideResponse?: Partial<SitePluginsUpdate200>) => SitePluginsUpdate200;
|
|
228
230
|
export declare const getSiteQualityMetricsResponseMock: (overrideResponse?: Partial<SiteQualityMetrics200>) => SiteQualityMetrics200;
|
|
@@ -252,6 +254,8 @@ export declare const getStagingSitePromoteResponseMock: (overrideResponse?: Part
|
|
|
252
254
|
export declare const getSiteStatusResponseMock: (overrideResponse?: Partial<SiteStatus200>) => SiteStatus200;
|
|
253
255
|
export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteUsers200>) => SiteUsers200;
|
|
254
256
|
export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
|
|
257
|
+
export declare const getSiteWpGenerateResponseMock: (overrideResponse?: Partial<SiteWpGenerate200>) => SiteWpGenerate200;
|
|
258
|
+
export declare const getSiteThemeInstallResponseMock: (overrideResponse?: Partial<SiteThemeInstall200>) => SiteThemeInstall200;
|
|
255
259
|
export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Partial<SiteAddonWpsolution200>) => SiteAddonWpsolution200;
|
|
256
260
|
export declare const getUserHostingResponseMock: (overrideResponse?: Partial<UserHosting200>) => UserHosting200;
|
|
257
261
|
export declare const getUserHostingOverviewResponseMock: (overrideResponse?: Partial<UserHostingOverview200>) => UserHostingOverview200;
|
|
@@ -510,7 +514,9 @@ export declare const getSitesPerformanceRedisPurgeMockHandler: (overrideResponse
|
|
|
510
514
|
export declare const getCreatePhpInfoMockHandler: (overrideResponse?: CreatePhpInfo200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CreatePhpInfo200> | CreatePhpInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
511
515
|
export declare const getSitePluginsMockHandler: (overrideResponse?: SitePlugins200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitePlugins200> | SitePlugins200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
512
516
|
export declare const getSitePluginUpdateMockHandler: (overrideResponse?: SitePluginUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<SitePluginUpdate200> | SitePluginUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
517
|
+
export declare const getSitePluginInstallMockHandler: (overrideResponse?: SitePluginInstall200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginInstall200> | SitePluginInstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
513
518
|
export declare const getSitePluginsAutoupdateMockHandler: (overrideResponse?: SitePluginsAutoupdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginsAutoupdate200> | SitePluginsAutoupdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
519
|
+
export declare const getSitePluginInstallerMockHandler: (overrideResponse?: SitePluginInstaller200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginInstaller200> | SitePluginInstaller200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
514
520
|
export declare const getSitePluginsToggleMockHandler: (overrideResponse?: SitePluginsToggle200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginsToggle200> | SitePluginsToggle200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
515
521
|
export declare const getSitePluginsUpdateMockHandler: (overrideResponse?: SitePluginsUpdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitePluginsUpdate200> | SitePluginsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
516
522
|
export declare const getSiteQualityMetricsMockHandler: (overrideResponse?: SiteQualityMetrics200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteQualityMetrics200> | SiteQualityMetrics200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -540,6 +546,8 @@ export declare const getStagingSitePromoteMockHandler: (overrideResponse?: Stagi
|
|
|
540
546
|
export declare const getSiteStatusMockHandler: (overrideResponse?: SiteStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteStatus200> | SiteStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
541
547
|
export declare const getSiteUsersMockHandler: (overrideResponse?: SiteUsers200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteUsers200> | SiteUsers200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
542
548
|
export declare const getSitesVersionMockHandler: (overrideResponse?: SitesVersion200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesVersion200> | SitesVersion200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
549
|
+
export declare const getSiteWpGenerateMockHandler: (overrideResponse?: SiteWpGenerate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteWpGenerate200> | SiteWpGenerate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
550
|
+
export declare const getSiteThemeInstallMockHandler: (overrideResponse?: SiteThemeInstall200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteThemeInstall200> | SiteThemeInstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
543
551
|
export declare const getSiteAddonWpsolutionMockHandler: (overrideResponse?: SiteAddonWpsolution200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteAddonWpsolution200> | SiteAddonWpsolution200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
544
552
|
export declare const getUserHostingMockHandler: (overrideResponse?: UserHosting200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHosting200> | UserHosting200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
545
553
|
export declare const getUserHostingOverviewMockHandler: (overrideResponse?: UserHostingOverview200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHostingOverview200> | UserHostingOverview200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
package/src/index.msw.js
CHANGED
|
@@ -4,14 +4,14 @@ 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.1789.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
11
11
|
import { FilterAction, FilterRuleMatch, FilterRuleOpt, FilterRulePart } from './index.schemas';
|
|
12
12
|
export const getAccountEventListResponseMock = (overrideResponse = {}) => (Object.assign({ events: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), date_first: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_last: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), event: faker.helpers.arrayElement([faker.word.sample(), undefined]), hosting_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), utc: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
13
13
|
export const getAccountFeaturesResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ autoRenewFlag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), expirationDate: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.word.sample(), undefined]), info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prodCode: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prodName: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]), total_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
14
|
-
export const getAccountHostingListResponseMock = (overrideResponse = {}) => (Object.assign({ accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), current_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), feature_set: faker.helpers.arrayElement([faker.word.sample(), undefined]), hosting_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), max_sites: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), prod_inst_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), region_desc: faker.helpers.arrayElement([faker.word.sample(), undefined]), region_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
14
|
+
export const getAccountHostingListResponseMock = (overrideResponse = {}) => (Object.assign({ accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), current_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), feature_set: faker.helpers.arrayElement([faker.word.sample(), undefined]), hosting_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), max_sites: faker.helpers.arrayElement([faker.word.sample(), undefined]), parent_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), prod_inst_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), region_desc: faker.helpers.arrayElement([faker.word.sample(), undefined]), region_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
15
15
|
export const getAccountPublicKeysResponseMock = (overrideResponse = {}) => (Object.assign({ public_keys: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), is_active: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
16
16
|
export const getAccountPublicKeyCreateResponseMock = (overrideResponse = {}) => (Object.assign({ date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), is_active: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
17
17
|
export const getAccountPublicKeyResponseMock = (overrideResponse = {}) => (Object.assign({ date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), is_active: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -69,7 +69,7 @@ export const getHostingAdvancedDnsResponseMock = (overrideResponse = {}) => (Obj
|
|
|
69
69
|
export const getHostingAdvancedDnsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
70
70
|
export const getHostingAdvancedDomainServicesCheckResponseMock = (overrideResponse = {}) => (Object.assign({ configure_domain_services: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), managed_cpanel_user_exists: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
71
71
|
export const getHostingAdvancedDomainServicesResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
72
|
-
export const getHostingAdvancedImagesResponseMock = (overrideResponse = {}) => (Object.assign({ images: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ arch_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.word.sample(), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) })) }, overrideResponse));
|
|
72
|
+
export const getHostingAdvancedImagesResponseMock = (overrideResponse = {}) => (Object.assign({ images: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ arch_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.word.sample(), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) })) }, overrideResponse));
|
|
73
73
|
export const getHostingAdvancedServerResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), hostname: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([{ other_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), primary_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
74
74
|
export const getHostingAdvancedServerStatusResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
75
75
|
export const getHostingAdvancedPasswordResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
@@ -255,7 +255,9 @@ export const getSitesPerformanceRedisPurgeResponseMock = (overrideResponse = {})
|
|
|
255
255
|
export const getCreatePhpInfoResponseMock = (overrideResponse = {}) => (Object.assign({ html: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
256
256
|
export const getSitePluginsResponseMock = (overrideResponse = {}) => (Object.assign({ auto_update: faker.datatype.boolean(), plugins: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.word.sample(), status: faker.word.sample(), title: faker.word.sample(), update: faker.datatype.boolean(), version: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), subtype: faker.word.sample() }, overrideResponse));
|
|
257
257
|
export const getSitePluginUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.word.sample(), status: faker.word.sample() }, overrideResponse));
|
|
258
|
+
export const getSitePluginInstallResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
258
259
|
export const getSitePluginsAutoupdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
|
|
260
|
+
export const getSitePluginInstallerResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.word.sample(), status: faker.word.sample(), success: faker.datatype.boolean() }, overrideResponse));
|
|
259
261
|
export const getSitePluginsToggleResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
|
|
260
262
|
export const getSitePluginsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
|
|
261
263
|
export const getSiteQualityMetricsResponseMock = (overrideResponse = {}) => (Object.assign({ aspect_details: { performance: faker.helpers.arrayElement([{ 'cumulative-layout-shift': faker.helpers.arrayElement([{}, undefined]), 'first-contentful-paint': faker.helpers.arrayElement([{}, undefined]), 'largest-contentful-paint': faker.helpers.arrayElement([{}, undefined]), 'speed-index': faker.helpers.arrayElement([{}, undefined]), 'total-blocking-time': faker.helpers.arrayElement([{}, undefined]) }, undefined]) }, aspect_scores: { performance: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, audits: faker.helpers.arrayElement([{}, undefined]), loading_experience: faker.helpers.arrayElement([{}, undefined]), origin_loading_experience: faker.helpers.arrayElement([{}, undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -285,8 +287,12 @@ export const getStagingSitePromoteResponseMock = (overrideResponse = {}) => (Obj
|
|
|
285
287
|
export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assign({ cloudflare_ready: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), pending_url: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
286
288
|
export const getSiteUsersResponseMock = (overrideResponse = {}) => (Object.assign({ users: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ display_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.number.int({ min: undefined, max: undefined }), meta: faker.helpers.arrayElement([{ maestro_web_pro: faker.helpers.arrayElement([faker.word.sample(), undefined]), maestro_wpp_identifier: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), post_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), role: faker.word.sample(), user_email: faker.word.sample(), user_id: faker.number.int({ min: undefined, max: undefined }), user_login: faker.word.sample(), user_nicename: faker.word.sample() })) }, overrideResponse));
|
|
287
289
|
export const getSitesVersionResponseMock = (overrideResponse = {}) => (Object.assign({ current: faker.helpers.arrayElement([faker.word.sample(), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), update: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
290
|
+
export const getSiteWpGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ results: faker.helpers.arrayElement([{
|
|
291
|
+
[faker.string.alphanumeric(5)]: faker.word.sample()
|
|
292
|
+
}, undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
293
|
+
export const getSiteThemeInstallResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
288
294
|
export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
289
|
-
export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), application: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), capability_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_panel_mail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
|
|
295
|
+
export const getUserHostingResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), application: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), region: faker.helpers.arrayElement([{ desc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing: faker.helpers.arrayElement([{ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), expiration_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_inst_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), capability_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_panel_mail: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), limit_remote: faker.helpers.arrayElement([{ inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), inodes: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), used_stage: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]) }, overrideResponse));
|
|
290
296
|
export const getUserHostingOverviewResponseMock = (overrideResponse = {}) => (Object.assign({ has_unlimited_sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), hosting_accounts: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), max_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
291
297
|
export const getAddonsSitelockSsoV2ResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
292
298
|
export const getBackupCreateV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -2561,6 +2567,16 @@ export const getSitePluginUpdateMockHandler = (overrideResponse) => {
|
|
|
2561
2567
|
});
|
|
2562
2568
|
}));
|
|
2563
2569
|
};
|
|
2570
|
+
export const getSitePluginInstallMockHandler = (overrideResponse) => {
|
|
2571
|
+
return http.post('*/v1/sites/:siteId/plugins', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2572
|
+
yield delay(0);
|
|
2573
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2574
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2575
|
+
: getSitePluginInstallResponseMock()), { status: 200,
|
|
2576
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2577
|
+
});
|
|
2578
|
+
}));
|
|
2579
|
+
};
|
|
2564
2580
|
export const getSitePluginsAutoupdateMockHandler = (overrideResponse) => {
|
|
2565
2581
|
return http.post('*/v1/sites/:siteId/plugins/autoupdate', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2566
2582
|
yield delay(0);
|
|
@@ -2571,6 +2587,16 @@ export const getSitePluginsAutoupdateMockHandler = (overrideResponse) => {
|
|
|
2571
2587
|
});
|
|
2572
2588
|
}));
|
|
2573
2589
|
};
|
|
2590
|
+
export const getSitePluginInstallerMockHandler = (overrideResponse) => {
|
|
2591
|
+
return http.post('*/v1/sites/:siteId/plugins/installer', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2592
|
+
yield delay(0);
|
|
2593
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2594
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2595
|
+
: getSitePluginInstallerResponseMock()), { status: 200,
|
|
2596
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2597
|
+
});
|
|
2598
|
+
}));
|
|
2599
|
+
};
|
|
2574
2600
|
export const getSitePluginsToggleMockHandler = (overrideResponse) => {
|
|
2575
2601
|
return http.post('*/v1/sites/:siteId/plugins/toggle', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2576
2602
|
yield delay(0);
|
|
@@ -2861,6 +2887,26 @@ export const getSitesVersionMockHandler = (overrideResponse) => {
|
|
|
2861
2887
|
});
|
|
2862
2888
|
}));
|
|
2863
2889
|
};
|
|
2890
|
+
export const getSiteWpGenerateMockHandler = (overrideResponse) => {
|
|
2891
|
+
return http.post('*/v1/sites/:siteId/wp/generate', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2892
|
+
yield delay(0);
|
|
2893
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2894
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2895
|
+
: getSiteWpGenerateResponseMock()), { status: 200,
|
|
2896
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2897
|
+
});
|
|
2898
|
+
}));
|
|
2899
|
+
};
|
|
2900
|
+
export const getSiteThemeInstallMockHandler = (overrideResponse) => {
|
|
2901
|
+
return http.post('*/v1/sites/:siteId/wp/themes', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2902
|
+
yield delay(0);
|
|
2903
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2904
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2905
|
+
: getSiteThemeInstallResponseMock()), { status: 200,
|
|
2906
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2907
|
+
});
|
|
2908
|
+
}));
|
|
2909
|
+
};
|
|
2864
2910
|
export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
|
|
2865
2911
|
return http.post('*/v1/sites/:siteId/wpsolution', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2866
2912
|
yield delay(0);
|
|
@@ -3426,7 +3472,9 @@ export const getHostingUAPIMock = () => [
|
|
|
3426
3472
|
getCreatePhpInfoMockHandler(),
|
|
3427
3473
|
getSitePluginsMockHandler(),
|
|
3428
3474
|
getSitePluginUpdateMockHandler(),
|
|
3475
|
+
getSitePluginInstallMockHandler(),
|
|
3429
3476
|
getSitePluginsAutoupdateMockHandler(),
|
|
3477
|
+
getSitePluginInstallerMockHandler(),
|
|
3430
3478
|
getSitePluginsToggleMockHandler(),
|
|
3431
3479
|
getSitePluginsUpdateMockHandler(),
|
|
3432
3480
|
getSiteQualityMetricsMockHandler(),
|
|
@@ -3456,6 +3504,8 @@ export const getHostingUAPIMock = () => [
|
|
|
3456
3504
|
getSiteStatusMockHandler(),
|
|
3457
3505
|
getSiteUsersMockHandler(),
|
|
3458
3506
|
getSitesVersionMockHandler(),
|
|
3507
|
+
getSiteWpGenerateMockHandler(),
|
|
3508
|
+
getSiteThemeInstallMockHandler(),
|
|
3459
3509
|
getSiteAddonWpsolutionMockHandler(),
|
|
3460
3510
|
getUserHostingMockHandler(),
|
|
3461
3511
|
getUserHostingOverviewMockHandler(),
|
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.1789.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -410,6 +410,17 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
410
410
|
export declare type SitesDomainsV2Params = {
|
|
411
411
|
scan?: boolean;
|
|
412
412
|
};
|
|
413
|
+
export declare type SitesListV2200 = {
|
|
414
|
+
items?: SitesListV2200ItemsItem[];
|
|
415
|
+
/** page size */
|
|
416
|
+
limit?: number;
|
|
417
|
+
/** current page number */
|
|
418
|
+
page?: number;
|
|
419
|
+
/** total number of pages */
|
|
420
|
+
pages?: number;
|
|
421
|
+
/** total number of sites returned */
|
|
422
|
+
total?: number;
|
|
423
|
+
};
|
|
413
424
|
/**
|
|
414
425
|
* @nullable
|
|
415
426
|
*/
|
|
@@ -437,6 +448,63 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
437
448
|
/** A list of staging sites of the current site */
|
|
438
449
|
sites?: number[];
|
|
439
450
|
} | null;
|
|
451
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
452
|
+
/** @nullable */
|
|
453
|
+
available?: number | null;
|
|
454
|
+
/** @nullable */
|
|
455
|
+
total?: number | null;
|
|
456
|
+
unit?: string;
|
|
457
|
+
/** @nullable */
|
|
458
|
+
used?: number | null;
|
|
459
|
+
};
|
|
460
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
461
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
462
|
+
/** @nullable */
|
|
463
|
+
workers?: number | null;
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* @nullable
|
|
467
|
+
*/
|
|
468
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
469
|
+
/**
|
|
470
|
+
* The root domain name
|
|
471
|
+
* @nullable
|
|
472
|
+
*/
|
|
473
|
+
base_domain?: string | null;
|
|
474
|
+
/**
|
|
475
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
476
|
+
* @nullable
|
|
477
|
+
*/
|
|
478
|
+
domain?: string | null;
|
|
479
|
+
/**
|
|
480
|
+
* The current pending_url's HAL Domain ID
|
|
481
|
+
* @nullable
|
|
482
|
+
*/
|
|
483
|
+
domain_id?: number | null;
|
|
484
|
+
/** @nullable */
|
|
485
|
+
error?: string | null;
|
|
486
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
487
|
+
is_temp?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
490
|
+
* @nullable
|
|
491
|
+
*/
|
|
492
|
+
job_failed?: boolean | null;
|
|
493
|
+
/** @nullable */
|
|
494
|
+
stage?: string | null;
|
|
495
|
+
/**
|
|
496
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
497
|
+
* @nullable
|
|
498
|
+
*/
|
|
499
|
+
wp_session?: string | null;
|
|
500
|
+
} | null;
|
|
501
|
+
/**
|
|
502
|
+
* Job ids for the site
|
|
503
|
+
* @nullable
|
|
504
|
+
*/
|
|
505
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
506
|
+
[key: string]: unknown;
|
|
507
|
+
} | null;
|
|
440
508
|
export declare type SitesListV2200ItemsItem = {
|
|
441
509
|
/** @nullable */
|
|
442
510
|
account_back_ref?: string | null;
|
|
@@ -515,74 +583,6 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
515
583
|
*/
|
|
516
584
|
version_ptr?: string | null;
|
|
517
585
|
};
|
|
518
|
-
export declare type SitesListV2200 = {
|
|
519
|
-
items?: SitesListV2200ItemsItem[];
|
|
520
|
-
/** page size */
|
|
521
|
-
limit?: number;
|
|
522
|
-
/** current page number */
|
|
523
|
-
page?: number;
|
|
524
|
-
/** total number of pages */
|
|
525
|
-
pages?: number;
|
|
526
|
-
/** total number of sites returned */
|
|
527
|
-
total?: number;
|
|
528
|
-
};
|
|
529
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
530
|
-
/** @nullable */
|
|
531
|
-
available?: number | null;
|
|
532
|
-
/** @nullable */
|
|
533
|
-
total?: number | null;
|
|
534
|
-
unit?: string;
|
|
535
|
-
/** @nullable */
|
|
536
|
-
used?: number | null;
|
|
537
|
-
};
|
|
538
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
539
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
540
|
-
/** @nullable */
|
|
541
|
-
workers?: number | null;
|
|
542
|
-
};
|
|
543
|
-
/**
|
|
544
|
-
* @nullable
|
|
545
|
-
*/
|
|
546
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
547
|
-
/**
|
|
548
|
-
* The root domain name
|
|
549
|
-
* @nullable
|
|
550
|
-
*/
|
|
551
|
-
base_domain?: string | null;
|
|
552
|
-
/**
|
|
553
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
554
|
-
* @nullable
|
|
555
|
-
*/
|
|
556
|
-
domain?: string | null;
|
|
557
|
-
/**
|
|
558
|
-
* The current pending_url's HAL Domain ID
|
|
559
|
-
* @nullable
|
|
560
|
-
*/
|
|
561
|
-
domain_id?: number | null;
|
|
562
|
-
/** @nullable */
|
|
563
|
-
error?: string | null;
|
|
564
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
565
|
-
is_temp?: boolean;
|
|
566
|
-
/**
|
|
567
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
568
|
-
* @nullable
|
|
569
|
-
*/
|
|
570
|
-
job_failed?: boolean | null;
|
|
571
|
-
/** @nullable */
|
|
572
|
-
stage?: string | null;
|
|
573
|
-
/**
|
|
574
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
575
|
-
* @nullable
|
|
576
|
-
*/
|
|
577
|
-
wp_session?: string | null;
|
|
578
|
-
} | null;
|
|
579
|
-
/**
|
|
580
|
-
* Job ids for the site
|
|
581
|
-
* @nullable
|
|
582
|
-
*/
|
|
583
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
584
|
-
[key: string]: unknown;
|
|
585
|
-
} | null;
|
|
586
586
|
export declare type SshKeyV2200 = {
|
|
587
587
|
deleted?: number;
|
|
588
588
|
key_name?: string;
|
|
@@ -686,30 +686,6 @@ export declare type HostingSitesV2200UsedSitesDetails = {
|
|
|
686
686
|
/** Count of staging sites on specified hosting account */
|
|
687
687
|
staging_sites?: number;
|
|
688
688
|
};
|
|
689
|
-
export declare type HostingSitesV2200 = {
|
|
690
|
-
/**
|
|
691
|
-
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
692
|
-
* @nullable
|
|
693
|
-
*/
|
|
694
|
-
available_sites?: number | null;
|
|
695
|
-
items?: HostingSitesV2200ItemsItem[];
|
|
696
|
-
/** page size */
|
|
697
|
-
limit?: number;
|
|
698
|
-
/**
|
|
699
|
-
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
700
|
-
* @nullable
|
|
701
|
-
*/
|
|
702
|
-
max_sites?: number | null;
|
|
703
|
-
/** current page number */
|
|
704
|
-
page?: number;
|
|
705
|
-
/** total number of pages */
|
|
706
|
-
pages?: number;
|
|
707
|
-
/** total number of sites returned */
|
|
708
|
-
total?: number;
|
|
709
|
-
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
710
|
-
used_sites?: number;
|
|
711
|
-
used_sites_details?: HostingSitesV2200UsedSitesDetails;
|
|
712
|
-
};
|
|
713
689
|
/**
|
|
714
690
|
* @nullable
|
|
715
691
|
*/
|
|
@@ -872,6 +848,30 @@ export declare type HostingSitesV2200ItemsItem = {
|
|
|
872
848
|
*/
|
|
873
849
|
version_ptr?: string | null;
|
|
874
850
|
};
|
|
851
|
+
export declare type HostingSitesV2200 = {
|
|
852
|
+
/**
|
|
853
|
+
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
854
|
+
* @nullable
|
|
855
|
+
*/
|
|
856
|
+
available_sites?: number | null;
|
|
857
|
+
items?: HostingSitesV2200ItemsItem[];
|
|
858
|
+
/** page size */
|
|
859
|
+
limit?: number;
|
|
860
|
+
/**
|
|
861
|
+
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
862
|
+
* @nullable
|
|
863
|
+
*/
|
|
864
|
+
max_sites?: number | null;
|
|
865
|
+
/** current page number */
|
|
866
|
+
page?: number;
|
|
867
|
+
/** total number of pages */
|
|
868
|
+
pages?: number;
|
|
869
|
+
/** total number of sites returned */
|
|
870
|
+
total?: number;
|
|
871
|
+
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
872
|
+
used_sites?: number;
|
|
873
|
+
used_sites_details?: HostingSitesV2200UsedSitesDetails;
|
|
874
|
+
};
|
|
875
875
|
export declare type HostingSitesV2Params = {
|
|
876
876
|
limit?: number;
|
|
877
877
|
page?: number;
|
|
@@ -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";
|
|
@@ -1234,6 +1234,10 @@ export declare type UserHostingOverviewParams = {
|
|
|
1234
1234
|
*/
|
|
1235
1235
|
limit?: number;
|
|
1236
1236
|
};
|
|
1237
|
+
export declare type UserHosting200 = {
|
|
1238
|
+
/** Information for the paginated hosting accounts */
|
|
1239
|
+
rows?: UserHosting200RowsItem[];
|
|
1240
|
+
};
|
|
1237
1241
|
/**
|
|
1238
1242
|
* Usage statistics for staging sites
|
|
1239
1243
|
* @nullable
|
|
@@ -1306,6 +1310,11 @@ export declare type UserHosting200RowsItemUsed = {
|
|
|
1306
1310
|
* @nullable
|
|
1307
1311
|
*/
|
|
1308
1312
|
export declare type UserHosting200RowsItemLimitRemote = {
|
|
1313
|
+
/**
|
|
1314
|
+
* Total Number of files (inodes) on the hosting account
|
|
1315
|
+
* @nullable
|
|
1316
|
+
*/
|
|
1317
|
+
inodes?: number | null;
|
|
1309
1318
|
/**
|
|
1310
1319
|
* Quota in KB associated with the account
|
|
1311
1320
|
* @nullable
|
|
@@ -1424,10 +1433,6 @@ export declare type UserHosting200RowsItem = {
|
|
|
1424
1433
|
*/
|
|
1425
1434
|
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1426
1435
|
};
|
|
1427
|
-
export declare type UserHosting200 = {
|
|
1428
|
-
/** Information for the paginated hosting accounts */
|
|
1429
|
-
rows?: UserHosting200RowsItem[];
|
|
1430
|
-
};
|
|
1431
1436
|
/**
|
|
1432
1437
|
* Region information for the account
|
|
1433
1438
|
* @nullable
|
|
@@ -1639,6 +1644,28 @@ export declare type SiteAddonWpsolutionBody = {
|
|
|
1639
1644
|
/** wpsolution addon subtype */
|
|
1640
1645
|
subtype: SiteAddonWpsolutionBodySubtype;
|
|
1641
1646
|
};
|
|
1647
|
+
export declare type SiteThemeInstall200 = {
|
|
1648
|
+
id?: string;
|
|
1649
|
+
status?: string;
|
|
1650
|
+
success?: boolean;
|
|
1651
|
+
};
|
|
1652
|
+
export declare type SiteThemeInstallBody = {
|
|
1653
|
+
/** Whether to activate the theme after installation */
|
|
1654
|
+
activate?: boolean;
|
|
1655
|
+
/** The theme id (slug) */
|
|
1656
|
+
theme: string;
|
|
1657
|
+
};
|
|
1658
|
+
export declare type SiteWpGenerate200Results = {
|
|
1659
|
+
[key: string]: string;
|
|
1660
|
+
};
|
|
1661
|
+
export declare type SiteWpGenerate200 = {
|
|
1662
|
+
results?: SiteWpGenerate200Results;
|
|
1663
|
+
success?: boolean;
|
|
1664
|
+
};
|
|
1665
|
+
export declare type SiteWpGenerateBody = {
|
|
1666
|
+
/** The value for nfd_origin_prompt option */
|
|
1667
|
+
value?: string;
|
|
1668
|
+
};
|
|
1642
1669
|
export declare type SitesVersion200 = {
|
|
1643
1670
|
current?: string;
|
|
1644
1671
|
latest?: string;
|
|
@@ -2056,12 +2083,41 @@ export declare type SitePluginsToggleBody = {
|
|
|
2056
2083
|
/** The plugin id */
|
|
2057
2084
|
id: string;
|
|
2058
2085
|
};
|
|
2086
|
+
export declare type SitePluginInstaller200 = {
|
|
2087
|
+
id: string;
|
|
2088
|
+
status: string;
|
|
2089
|
+
success: boolean;
|
|
2090
|
+
};
|
|
2091
|
+
export declare type SitePluginInstallerBody = (unknown & {
|
|
2092
|
+
activate?: boolean;
|
|
2093
|
+
/** Plugin slug. If both plugin and plugin_url are provided, plugin is used. */
|
|
2094
|
+
plugin?: string;
|
|
2095
|
+
/** Direct URL to plugin package. Used only if plugin slug is not provided. */
|
|
2096
|
+
plugin_url?: string;
|
|
2097
|
+
}) | (unknown & {
|
|
2098
|
+
activate?: boolean;
|
|
2099
|
+
/** Plugin slug. If both plugin and plugin_url are provided, plugin is used. */
|
|
2100
|
+
plugin?: string;
|
|
2101
|
+
/** Direct URL to plugin package. Used only if plugin slug is not provided. */
|
|
2102
|
+
plugin_url?: string;
|
|
2103
|
+
});
|
|
2059
2104
|
export declare type SitePluginsAutoupdate200 = {
|
|
2060
2105
|
success: boolean;
|
|
2061
2106
|
};
|
|
2062
2107
|
export declare type SitePluginsAutoupdateBody = {
|
|
2063
2108
|
enable: boolean;
|
|
2064
2109
|
};
|
|
2110
|
+
export declare type SitePluginInstall200 = {
|
|
2111
|
+
id?: string;
|
|
2112
|
+
status?: string;
|
|
2113
|
+
success?: boolean;
|
|
2114
|
+
};
|
|
2115
|
+
export declare type SitePluginInstallBody = {
|
|
2116
|
+
/** Whether to activate the plugin after installation */
|
|
2117
|
+
activate?: boolean;
|
|
2118
|
+
/** The plugin id (slug) */
|
|
2119
|
+
plugin: string;
|
|
2120
|
+
};
|
|
2065
2121
|
export declare type SitePluginUpdate200 = {
|
|
2066
2122
|
id: string;
|
|
2067
2123
|
status: string;
|
|
@@ -2152,6 +2208,13 @@ export declare type SitesPerformanceCachepurgeBody = {
|
|
|
2152
2208
|
export declare type SitePendingDomainDelete200 = {
|
|
2153
2209
|
[key: string]: unknown;
|
|
2154
2210
|
};
|
|
2211
|
+
export declare type SitesMetricDimensions200 = {
|
|
2212
|
+
date_end?: string;
|
|
2213
|
+
date_start?: string;
|
|
2214
|
+
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2215
|
+
elapsed?: number;
|
|
2216
|
+
metric?: string;
|
|
2217
|
+
};
|
|
2155
2218
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
2156
2219
|
[key: string]: number;
|
|
2157
2220
|
};
|
|
@@ -2180,6 +2243,18 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
|
2180
2243
|
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
2181
2244
|
timestamp?: number;
|
|
2182
2245
|
};
|
|
2246
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
2247
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2248
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2249
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2250
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2251
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2252
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2253
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2254
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2255
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2256
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2257
|
+
};
|
|
2183
2258
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
2184
2259
|
[key: string]: number;
|
|
2185
2260
|
};
|
|
@@ -2222,25 +2297,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
2222
2297
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
2223
2298
|
timestamp?: number;
|
|
2224
2299
|
};
|
|
2225
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
2226
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2227
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2228
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2229
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2230
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2231
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2232
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2233
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2234
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2235
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2236
|
-
};
|
|
2237
|
-
export declare type SitesMetricDimensions200 = {
|
|
2238
|
-
date_end?: string;
|
|
2239
|
-
date_start?: string;
|
|
2240
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2241
|
-
elapsed?: number;
|
|
2242
|
-
metric?: string;
|
|
2243
|
-
};
|
|
2244
2300
|
export declare type SitesMetricDimensionsParams = {
|
|
2245
2301
|
start?: string;
|
|
2246
2302
|
end?: string;
|
|
@@ -2750,71 +2806,6 @@ export declare type SitesInfo200Staging = {
|
|
|
2750
2806
|
/** A list of staging sites of the current site */
|
|
2751
2807
|
sites?: number[];
|
|
2752
2808
|
} | null;
|
|
2753
|
-
export declare type SitesInfo200ResourcesStorage = {
|
|
2754
|
-
/** @nullable */
|
|
2755
|
-
available?: number | null;
|
|
2756
|
-
/** @nullable */
|
|
2757
|
-
total?: number | null;
|
|
2758
|
-
unit?: string;
|
|
2759
|
-
/** @nullable */
|
|
2760
|
-
used?: number | null;
|
|
2761
|
-
};
|
|
2762
|
-
export declare type SitesInfo200Resources = {
|
|
2763
|
-
storage?: SitesInfo200ResourcesStorage;
|
|
2764
|
-
/** @nullable */
|
|
2765
|
-
workers?: number | null;
|
|
2766
|
-
};
|
|
2767
|
-
/**
|
|
2768
|
-
* @nullable
|
|
2769
|
-
*/
|
|
2770
|
-
export declare type SitesInfo200PendingUrlData = {
|
|
2771
|
-
/**
|
|
2772
|
-
* The root domain name
|
|
2773
|
-
* @nullable
|
|
2774
|
-
*/
|
|
2775
|
-
base_domain?: string | null;
|
|
2776
|
-
/**
|
|
2777
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
2778
|
-
* @nullable
|
|
2779
|
-
*/
|
|
2780
|
-
domain?: string | null;
|
|
2781
|
-
/**
|
|
2782
|
-
* The current pending_url's HAL Domain ID
|
|
2783
|
-
* @nullable
|
|
2784
|
-
*/
|
|
2785
|
-
domain_id?: number | null;
|
|
2786
|
-
/** @nullable */
|
|
2787
|
-
error?: string | null;
|
|
2788
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
2789
|
-
is_temp?: boolean;
|
|
2790
|
-
/**
|
|
2791
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
2792
|
-
* @nullable
|
|
2793
|
-
*/
|
|
2794
|
-
job_failed?: boolean | null;
|
|
2795
|
-
/** @nullable */
|
|
2796
|
-
stage?: string | null;
|
|
2797
|
-
/**
|
|
2798
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
2799
|
-
* @nullable
|
|
2800
|
-
*/
|
|
2801
|
-
wp_session?: string | null;
|
|
2802
|
-
} | null;
|
|
2803
|
-
/**
|
|
2804
|
-
* @nullable
|
|
2805
|
-
*/
|
|
2806
|
-
export declare type SitesInfo200Pagespeed = {
|
|
2807
|
-
lastrun?: string;
|
|
2808
|
-
performance?: string;
|
|
2809
|
-
strategy?: string;
|
|
2810
|
-
} | null;
|
|
2811
|
-
/**
|
|
2812
|
-
* Job ids for the site
|
|
2813
|
-
* @nullable
|
|
2814
|
-
*/
|
|
2815
|
-
export declare type SitesInfo200Jobs = {
|
|
2816
|
-
[key: string]: unknown;
|
|
2817
|
-
} | null;
|
|
2818
2809
|
export declare type SitesInfo200 = {
|
|
2819
2810
|
/** @nullable */
|
|
2820
2811
|
account_back_ref?: string | null;
|
|
@@ -2896,6 +2887,71 @@ export declare type SitesInfo200 = {
|
|
|
2896
2887
|
*/
|
|
2897
2888
|
version_ptr?: string | null;
|
|
2898
2889
|
};
|
|
2890
|
+
export declare type SitesInfo200ResourcesStorage = {
|
|
2891
|
+
/** @nullable */
|
|
2892
|
+
available?: number | null;
|
|
2893
|
+
/** @nullable */
|
|
2894
|
+
total?: number | null;
|
|
2895
|
+
unit?: string;
|
|
2896
|
+
/** @nullable */
|
|
2897
|
+
used?: number | null;
|
|
2898
|
+
};
|
|
2899
|
+
export declare type SitesInfo200Resources = {
|
|
2900
|
+
storage?: SitesInfo200ResourcesStorage;
|
|
2901
|
+
/** @nullable */
|
|
2902
|
+
workers?: number | null;
|
|
2903
|
+
};
|
|
2904
|
+
/**
|
|
2905
|
+
* @nullable
|
|
2906
|
+
*/
|
|
2907
|
+
export declare type SitesInfo200PendingUrlData = {
|
|
2908
|
+
/**
|
|
2909
|
+
* The root domain name
|
|
2910
|
+
* @nullable
|
|
2911
|
+
*/
|
|
2912
|
+
base_domain?: string | null;
|
|
2913
|
+
/**
|
|
2914
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
2915
|
+
* @nullable
|
|
2916
|
+
*/
|
|
2917
|
+
domain?: string | null;
|
|
2918
|
+
/**
|
|
2919
|
+
* The current pending_url's HAL Domain ID
|
|
2920
|
+
* @nullable
|
|
2921
|
+
*/
|
|
2922
|
+
domain_id?: number | null;
|
|
2923
|
+
/** @nullable */
|
|
2924
|
+
error?: string | null;
|
|
2925
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
2926
|
+
is_temp?: boolean;
|
|
2927
|
+
/**
|
|
2928
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
2929
|
+
* @nullable
|
|
2930
|
+
*/
|
|
2931
|
+
job_failed?: boolean | null;
|
|
2932
|
+
/** @nullable */
|
|
2933
|
+
stage?: string | null;
|
|
2934
|
+
/**
|
|
2935
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
2936
|
+
* @nullable
|
|
2937
|
+
*/
|
|
2938
|
+
wp_session?: string | null;
|
|
2939
|
+
} | null;
|
|
2940
|
+
/**
|
|
2941
|
+
* @nullable
|
|
2942
|
+
*/
|
|
2943
|
+
export declare type SitesInfo200Pagespeed = {
|
|
2944
|
+
lastrun?: string;
|
|
2945
|
+
performance?: string;
|
|
2946
|
+
strategy?: string;
|
|
2947
|
+
} | null;
|
|
2948
|
+
/**
|
|
2949
|
+
* Job ids for the site
|
|
2950
|
+
* @nullable
|
|
2951
|
+
*/
|
|
2952
|
+
export declare type SitesInfo200Jobs = {
|
|
2953
|
+
[key: string]: unknown;
|
|
2954
|
+
} | null;
|
|
2899
2955
|
export declare type HostingVisitors200VisitorsItem = {
|
|
2900
2956
|
bandwidth?: number;
|
|
2901
2957
|
hits?: number;
|
|
@@ -4164,6 +4220,12 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4164
4220
|
/** list of rules to be applied to the filter */
|
|
4165
4221
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4166
4222
|
};
|
|
4223
|
+
export declare type HostingEmailFiltersList200 = {
|
|
4224
|
+
/** The number of filters */
|
|
4225
|
+
count?: number;
|
|
4226
|
+
/** List of filters */
|
|
4227
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4228
|
+
};
|
|
4167
4229
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4168
4230
|
match?: FilterRuleMatch;
|
|
4169
4231
|
opt?: FilterRuleOpt;
|
|
@@ -4174,6 +4236,14 @@ export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
|
4174
4236
|
*/
|
|
4175
4237
|
val?: string | null;
|
|
4176
4238
|
};
|
|
4239
|
+
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
4240
|
+
action?: FilterAction;
|
|
4241
|
+
/**
|
|
4242
|
+
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
4243
|
+
* @nullable
|
|
4244
|
+
*/
|
|
4245
|
+
dest?: string | null;
|
|
4246
|
+
};
|
|
4177
4247
|
export declare type HostingEmailFiltersList200FiltersItem = {
|
|
4178
4248
|
/** Where the email will be forwarded to */
|
|
4179
4249
|
actions?: HostingEmailFiltersList200FiltersItemActionsItem[];
|
|
@@ -4186,20 +4256,6 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4186
4256
|
/** Whether the filter is unescaped */
|
|
4187
4257
|
unescaped?: boolean;
|
|
4188
4258
|
};
|
|
4189
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4190
|
-
/** The number of filters */
|
|
4191
|
-
count?: number;
|
|
4192
|
-
/** List of filters */
|
|
4193
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4194
|
-
};
|
|
4195
|
-
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
4196
|
-
action?: FilterAction;
|
|
4197
|
-
/**
|
|
4198
|
-
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
4199
|
-
* @nullable
|
|
4200
|
-
*/
|
|
4201
|
-
dest?: string | null;
|
|
4202
|
-
};
|
|
4203
4259
|
export declare type HostingEmailFiltersListParams = {
|
|
4204
4260
|
/**
|
|
4205
4261
|
* The email account address to query filters by
|
|
@@ -5092,6 +5148,11 @@ export declare type HostingAdvancedServer200 = {
|
|
|
5092
5148
|
export declare type HostingAdvancedImages200ImagesItem = {
|
|
5093
5149
|
/** The image architecture type */
|
|
5094
5150
|
arch_name?: string;
|
|
5151
|
+
/**
|
|
5152
|
+
* Whether this image is the default for cpanel app installations; If this = 1, it is an image that can be used when installing cPanel
|
|
5153
|
+
* @nullable
|
|
5154
|
+
*/
|
|
5155
|
+
cpanel_default?: string | null;
|
|
5095
5156
|
/**
|
|
5096
5157
|
* Whether this is the image currently in use by the hosting addon
|
|
5097
5158
|
* @nullable
|
|
@@ -5100,7 +5161,7 @@ export declare type HostingAdvancedImages200ImagesItem = {
|
|
|
5100
5161
|
/** The date and time the image was added */
|
|
5101
5162
|
date_added?: string;
|
|
5102
5163
|
/**
|
|
5103
|
-
* Whether this image is the default for docker site installations; If this = 1, it is
|
|
5164
|
+
* Whether this image is the default for docker site installations; If this = 1, it is an image that can be used when installing a Docker app
|
|
5104
5165
|
* @nullable
|
|
5105
5166
|
*/
|
|
5106
5167
|
docker_default?: string | null;
|
|
@@ -6169,6 +6230,11 @@ export declare type AccountHostingList200AccountsItem = {
|
|
|
6169
6230
|
/** HAL Account ID */
|
|
6170
6231
|
hosting_id?: string;
|
|
6171
6232
|
max_sites?: string;
|
|
6233
|
+
/**
|
|
6234
|
+
* HAL parent_id for atomic accounts, account id for non-atomic accounts
|
|
6235
|
+
* @nullable
|
|
6236
|
+
*/
|
|
6237
|
+
parent_id?: string | null;
|
|
6172
6238
|
platform?: string;
|
|
6173
6239
|
/** HAL Account back_reference */
|
|
6174
6240
|
prod_inst_id?: string;
|
|
@@ -6181,6 +6247,12 @@ export declare type AccountHostingList200AccountsItem = {
|
|
|
6181
6247
|
export declare type AccountHostingList200 = {
|
|
6182
6248
|
accounts?: AccountHostingList200AccountsItem[];
|
|
6183
6249
|
};
|
|
6250
|
+
export declare type AccountHostingListParams = {
|
|
6251
|
+
/**
|
|
6252
|
+
* Flag to exclude atomic site accounts from the response
|
|
6253
|
+
*/
|
|
6254
|
+
exclude_atomic_sites?: boolean;
|
|
6255
|
+
};
|
|
6184
6256
|
/**
|
|
6185
6257
|
* Usage statistics
|
|
6186
6258
|
* @nullable
|