@newfold/huapi-js 2.1572.0 → 2.1587.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 +67 -2
- package/src/index.js +56 -2
- package/src/index.msw.d.ts +5 -1
- package/src/index.msw.js +26 -2
- package/src/index.schemas.d.ts +404 -93
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, 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, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHostings200, UserHostingsParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -37,7 +37,8 @@ export declare function useAccountEventList<TData = Awaited<ReturnType<typeof ac
|
|
|
37
37
|
queryKey: QueryKey;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
* Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
40
|
+
* DEPRECATED - Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
41
|
+
* @deprecated
|
|
41
42
|
* @summary Return the array of product_inst_ids for the supplied account_ids
|
|
42
43
|
*/
|
|
43
44
|
export declare const accountFeatures: (params?: AccountFeaturesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AccountFeatures200>>;
|
|
@@ -7327,6 +7328,38 @@ export declare const useSitesSettingsPhpVersionUpdate: <TError = AxiosError<unkn
|
|
|
7327
7328
|
siteId: number;
|
|
7328
7329
|
data: SitesSettingsPhpVersionUpdateBody;
|
|
7329
7330
|
}, TContext>;
|
|
7331
|
+
/**
|
|
7332
|
+
* Returns a list of nested site docpaths and URLs that inherit the PHP version from the given site's docpath.
|
|
7333
|
+
* @summary Get PHP version inheritance for a site
|
|
7334
|
+
*/
|
|
7335
|
+
export declare const sitesSettingsPhpVersionInheritance: (siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsPhpVersionInheritance200>>;
|
|
7336
|
+
export declare const getSitesSettingsPhpVersionInheritanceQueryKey: (siteId: string, params?: SitesSettingsPhpVersionInheritanceParams) => readonly [`/v1/sites/${string}/settings/php-version/inheritance`, ...SitesSettingsPhpVersionInheritanceParams[]];
|
|
7337
|
+
export declare const getSitesSettingsPhpVersionInheritanceQueryOptions: <TData = AxiosResponse<SitesSettingsPhpVersionInheritance200, any>, TError = AxiosError<unknown, any>>(siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: {
|
|
7338
|
+
query?: Partial<UseQueryOptions<AxiosResponse<SitesSettingsPhpVersionInheritance200, any>, TError, TData, QueryKey>> | undefined;
|
|
7339
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
7340
|
+
} | undefined) => UseQueryOptions<AxiosResponse<SitesSettingsPhpVersionInheritance200, any>, TError, TData, QueryKey> & {
|
|
7341
|
+
queryKey: QueryKey;
|
|
7342
|
+
};
|
|
7343
|
+
export declare type SitesSettingsPhpVersionInheritanceQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>>;
|
|
7344
|
+
export declare type SitesSettingsPhpVersionInheritanceQueryError = AxiosError<unknown>;
|
|
7345
|
+
export declare function useSitesSettingsPhpVersionInheritance<TData = Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError = AxiosError<unknown>>(siteId: string, params: undefined | SitesSettingsPhpVersionInheritanceParams, options: {
|
|
7346
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>, 'initialData'>;
|
|
7347
|
+
axios?: AxiosRequestConfig;
|
|
7348
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
7349
|
+
queryKey: QueryKey;
|
|
7350
|
+
};
|
|
7351
|
+
export declare function useSitesSettingsPhpVersionInheritance<TData = Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError = AxiosError<unknown>>(siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: {
|
|
7352
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>, 'initialData'>;
|
|
7353
|
+
axios?: AxiosRequestConfig;
|
|
7354
|
+
}): UseQueryResult<TData, TError> & {
|
|
7355
|
+
queryKey: QueryKey;
|
|
7356
|
+
};
|
|
7357
|
+
export declare function useSitesSettingsPhpVersionInheritance<TData = Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError = AxiosError<unknown>>(siteId: string, params?: SitesSettingsPhpVersionInheritanceParams, options?: {
|
|
7358
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sitesSettingsPhpVersionInheritance>>, TError, TData>>;
|
|
7359
|
+
axios?: AxiosRequestConfig;
|
|
7360
|
+
}): UseQueryResult<TData, TError> & {
|
|
7361
|
+
queryKey: QueryKey;
|
|
7362
|
+
};
|
|
7330
7363
|
/**
|
|
7331
7364
|
* Gets the list of PHP versions available/installed
|
|
7332
7365
|
* @summary settings php versions list
|
|
@@ -7707,6 +7740,38 @@ export declare const useSiteAddonWpsolution: <TError = AxiosError<SiteAddonWpsol
|
|
|
7707
7740
|
siteId: number;
|
|
7708
7741
|
data: SiteAddonWpsolutionBody;
|
|
7709
7742
|
}, TContext>;
|
|
7743
|
+
/**
|
|
7744
|
+
* Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
7745
|
+
* @summary Return the array of product_inst_ids for the supplied account_ids
|
|
7746
|
+
*/
|
|
7747
|
+
export declare const userHostings: (params?: UserHostingsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<UserHostings200>>;
|
|
7748
|
+
export declare const getUserHostingsQueryKey: (params?: UserHostingsParams) => readonly ["/v1/user/hostings", ...UserHostingsParams[]];
|
|
7749
|
+
export declare const getUserHostingsQueryOptions: <TData = AxiosResponse<UserHostings200, any>, TError = AxiosError<unknown, any>>(params?: UserHostingsParams, options?: {
|
|
7750
|
+
query?: Partial<UseQueryOptions<AxiosResponse<UserHostings200, any>, TError, TData, QueryKey>> | undefined;
|
|
7751
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
7752
|
+
} | undefined) => UseQueryOptions<AxiosResponse<UserHostings200, any>, TError, TData, QueryKey> & {
|
|
7753
|
+
queryKey: QueryKey;
|
|
7754
|
+
};
|
|
7755
|
+
export declare type UserHostingsQueryResult = NonNullable<Awaited<ReturnType<typeof userHostings>>>;
|
|
7756
|
+
export declare type UserHostingsQueryError = AxiosError<unknown>;
|
|
7757
|
+
export declare function useUserHostings<TData = Awaited<ReturnType<typeof userHostings>>, TError = AxiosError<unknown>>(params: undefined | UserHostingsParams, options: {
|
|
7758
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>, 'initialData'>;
|
|
7759
|
+
axios?: AxiosRequestConfig;
|
|
7760
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
7761
|
+
queryKey: QueryKey;
|
|
7762
|
+
};
|
|
7763
|
+
export declare function useUserHostings<TData = Awaited<ReturnType<typeof userHostings>>, TError = AxiosError<unknown>>(params?: UserHostingsParams, options?: {
|
|
7764
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>, 'initialData'>;
|
|
7765
|
+
axios?: AxiosRequestConfig;
|
|
7766
|
+
}): UseQueryResult<TData, TError> & {
|
|
7767
|
+
queryKey: QueryKey;
|
|
7768
|
+
};
|
|
7769
|
+
export declare function useUserHostings<TData = Awaited<ReturnType<typeof userHostings>>, TError = AxiosError<unknown>>(params?: UserHostingsParams, options?: {
|
|
7770
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof userHostings>>, TError, TData>>;
|
|
7771
|
+
axios?: AxiosRequestConfig;
|
|
7772
|
+
}): UseQueryResult<TData, TError> & {
|
|
7773
|
+
queryKey: QueryKey;
|
|
7774
|
+
};
|
|
7710
7775
|
/**
|
|
7711
7776
|
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
7712
7777
|
* @summary sso
|
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.1587.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -34,7 +34,8 @@ export function useAccountEventList(params, options) {
|
|
|
34
34
|
return query;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
37
|
+
* DEPRECATED - Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
38
|
+
* @deprecated
|
|
38
39
|
* @summary Return the array of product_inst_ids for the supplied account_ids
|
|
39
40
|
*/
|
|
40
41
|
export const accountFeatures = (params, options) => {
|
|
@@ -51,6 +52,7 @@ export const getAccountFeaturesQueryOptions = (params, options) => {
|
|
|
51
52
|
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
55
|
+
* @deprecated
|
|
54
56
|
* @summary Return the array of product_inst_ids for the supplied account_ids
|
|
55
57
|
*/
|
|
56
58
|
export function useAccountFeatures(params, options) {
|
|
@@ -5646,6 +5648,32 @@ export const useSitesSettingsPhpVersionUpdate = (options) => {
|
|
|
5646
5648
|
const mutationOptions = getSitesSettingsPhpVersionUpdateMutationOptions(options);
|
|
5647
5649
|
return useMutation(mutationOptions);
|
|
5648
5650
|
};
|
|
5651
|
+
/**
|
|
5652
|
+
* Returns a list of nested site docpaths and URLs that inherit the PHP version from the given site's docpath.
|
|
5653
|
+
* @summary Get PHP version inheritance for a site
|
|
5654
|
+
*/
|
|
5655
|
+
export const sitesSettingsPhpVersionInheritance = (siteId, params, options) => {
|
|
5656
|
+
return axios.get(`/v1/sites/${siteId}/settings/php-version/inheritance`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
5657
|
+
};
|
|
5658
|
+
export const getSitesSettingsPhpVersionInheritanceQueryKey = (siteId, params) => {
|
|
5659
|
+
return [`/v1/sites/${siteId}/settings/php-version/inheritance`, ...(params ? [params] : [])];
|
|
5660
|
+
};
|
|
5661
|
+
export const getSitesSettingsPhpVersionInheritanceQueryOptions = (siteId, params, options) => {
|
|
5662
|
+
var _a;
|
|
5663
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5664
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSitesSettingsPhpVersionInheritanceQueryKey(siteId, params);
|
|
5665
|
+
const queryFn = ({ signal }) => sitesSettingsPhpVersionInheritance(siteId, params, Object.assign({ signal }, axiosOptions));
|
|
5666
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(siteId) }, queryOptions);
|
|
5667
|
+
};
|
|
5668
|
+
/**
|
|
5669
|
+
* @summary Get PHP version inheritance for a site
|
|
5670
|
+
*/
|
|
5671
|
+
export function useSitesSettingsPhpVersionInheritance(siteId, params, options) {
|
|
5672
|
+
const queryOptions = getSitesSettingsPhpVersionInheritanceQueryOptions(siteId, params, options);
|
|
5673
|
+
const query = useQuery(queryOptions);
|
|
5674
|
+
query.queryKey = queryOptions.queryKey;
|
|
5675
|
+
return query;
|
|
5676
|
+
}
|
|
5649
5677
|
/**
|
|
5650
5678
|
* Gets the list of PHP versions available/installed
|
|
5651
5679
|
* @summary settings php versions list
|
|
@@ -5941,6 +5969,32 @@ export const useSiteAddonWpsolution = (options) => {
|
|
|
5941
5969
|
const mutationOptions = getSiteAddonWpsolutionMutationOptions(options);
|
|
5942
5970
|
return useMutation(mutationOptions);
|
|
5943
5971
|
};
|
|
5972
|
+
/**
|
|
5973
|
+
* Returns a list of feature information such as addon, features, sites, du, fs, db
|
|
5974
|
+
* @summary Return the array of product_inst_ids for the supplied account_ids
|
|
5975
|
+
*/
|
|
5976
|
+
export const userHostings = (params, options) => {
|
|
5977
|
+
return axios.get(`/v1/user/hostings`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
5978
|
+
};
|
|
5979
|
+
export const getUserHostingsQueryKey = (params) => {
|
|
5980
|
+
return [`/v1/user/hostings`, ...(params ? [params] : [])];
|
|
5981
|
+
};
|
|
5982
|
+
export const getUserHostingsQueryOptions = (params, options) => {
|
|
5983
|
+
var _a;
|
|
5984
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5985
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getUserHostingsQueryKey(params);
|
|
5986
|
+
const queryFn = ({ signal }) => userHostings(params, Object.assign({ signal }, axiosOptions));
|
|
5987
|
+
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
5988
|
+
};
|
|
5989
|
+
/**
|
|
5990
|
+
* @summary Return the array of product_inst_ids for the supplied account_ids
|
|
5991
|
+
*/
|
|
5992
|
+
export function useUserHostings(params, options) {
|
|
5993
|
+
const queryOptions = getUserHostingsQueryOptions(params, options);
|
|
5994
|
+
const query = useQuery(queryOptions);
|
|
5995
|
+
query.queryKey = queryOptions.queryKey;
|
|
5996
|
+
return query;
|
|
5997
|
+
}
|
|
5944
5998
|
/**
|
|
5945
5999
|
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
5946
6000
|
* @summary sso
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHostings200, 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;
|
|
@@ -231,6 +231,7 @@ export declare const getSitesSettingsComingSoonToggleResponseMock: (overrideResp
|
|
|
231
231
|
export declare const getSitesSettingsDebugResponseMock: (overrideResponse?: Partial<SitesSettingsDebug200>) => SitesSettingsDebug200;
|
|
232
232
|
export declare const getSitesSettingsDebugToggleResponseMock: (overrideResponse?: Partial<SitesSettingsDebugToggle200>) => SitesSettingsDebugToggle200;
|
|
233
233
|
export declare const getSitesSettingsPhpVersionUpdateResponseMock: (overrideResponse?: Partial<SitesSettingsPhpVersionUpdate200>) => SitesSettingsPhpVersionUpdate200;
|
|
234
|
+
export declare const getSitesSettingsPhpVersionInheritanceResponseMock: (overrideResponse?: Partial<SitesSettingsPhpVersionInheritance200>) => SitesSettingsPhpVersionInheritance200;
|
|
234
235
|
export declare const getSitesSettingsPhpVersionsResponseMock: (overrideResponse?: Partial<SitesSettingsPhpVersions200>) => SitesSettingsPhpVersions200;
|
|
235
236
|
export declare const getSitesSshUserListResponseMock: (overrideResponse?: Partial<SitesSshUserList200>) => SitesSshUserList200;
|
|
236
237
|
export declare const getSitesSshUserCreateResponseMock: (overrideResponse?: Partial<SitesSshUserCreate200>) => SitesSshUserCreate200;
|
|
@@ -243,6 +244,7 @@ export declare const getSiteStatusResponseMock: (overrideResponse?: Partial<Site
|
|
|
243
244
|
export declare const getSiteUsersResponseMock: (overrideResponse?: Partial<SiteUsers200>) => SiteUsers200;
|
|
244
245
|
export declare const getSitesVersionResponseMock: (overrideResponse?: Partial<SitesVersion200>) => SitesVersion200;
|
|
245
246
|
export declare const getSiteAddonWpsolutionResponseMock: (overrideResponse?: Partial<SiteAddonWpsolution200>) => SiteAddonWpsolution200;
|
|
247
|
+
export declare const getUserHostingsResponseMock: (overrideResponse?: Partial<UserHostings200>) => UserHostings200;
|
|
246
248
|
export declare const getAddonsSitelockSsoV2ResponseMock: (overrideResponse?: Partial<AddonsSitelockSsoV2200>) => AddonsSitelockSsoV2200;
|
|
247
249
|
export declare const getBackupCreateV2ResponseMock: (overrideResponse?: Partial<BackupCreateV2200>) => BackupCreateV2200;
|
|
248
250
|
export declare const getBackupDownloadV2ResponseMock: (overrideResponse?: Partial<BackupDownloadV2200>) => BackupDownloadV2200;
|
|
@@ -505,6 +507,7 @@ export declare const getSitesSettingsComingSoonToggleMockHandler: (overrideRespo
|
|
|
505
507
|
export declare const getSitesSettingsDebugMockHandler: (overrideResponse?: SitesSettingsDebug200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSettingsDebug200> | SitesSettingsDebug200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
506
508
|
export declare const getSitesSettingsDebugToggleMockHandler: (overrideResponse?: SitesSettingsDebugToggle200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesSettingsDebugToggle200> | SitesSettingsDebugToggle200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
507
509
|
export declare const getSitesSettingsPhpVersionUpdateMockHandler: (overrideResponse?: SitesSettingsPhpVersionUpdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesSettingsPhpVersionUpdate200> | SitesSettingsPhpVersionUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
510
|
+
export declare const getSitesSettingsPhpVersionInheritanceMockHandler: (overrideResponse?: SitesSettingsPhpVersionInheritance200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSettingsPhpVersionInheritance200> | SitesSettingsPhpVersionInheritance200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
508
511
|
export declare const getSitesSettingsPhpVersionsMockHandler: (overrideResponse?: SitesSettingsPhpVersions200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSettingsPhpVersions200> | SitesSettingsPhpVersions200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
509
512
|
export declare const getSitesSshUserListMockHandler: (overrideResponse?: SitesSshUserList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSshUserList200> | SitesSshUserList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
510
513
|
export declare const getSitesSshUserCreateMockHandler: (overrideResponse?: SitesSshUserCreate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesSshUserCreate200> | SitesSshUserCreate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -517,6 +520,7 @@ export declare const getSiteStatusMockHandler: (overrideResponse?: SiteStatus200
|
|
|
517
520
|
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;
|
|
518
521
|
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;
|
|
519
522
|
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;
|
|
523
|
+
export declare const getUserHostingsMockHandler: (overrideResponse?: UserHostings200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<UserHostings200> | UserHostings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
520
524
|
export declare const getAddonsSitelockSsoV2MockHandler: (overrideResponse?: AddonsSitelockSsoV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSitelockSsoV2200> | AddonsSitelockSsoV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
521
525
|
export declare const getBackupCreateV2MockHandler: (overrideResponse?: BackupCreateV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupCreateV2200> | BackupCreateV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
522
526
|
export declare const getBackupDownloadV2MockHandler: (overrideResponse?: BackupDownloadV2200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupDownloadV2200> | BackupDownloadV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
package/src/index.msw.js
CHANGED
|
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
|
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Hosting UAPI
|
|
6
6
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
7
|
-
* OpenAPI spec version: 1.
|
|
7
|
+
* OpenAPI spec version: 1.1587.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -71,7 +71,7 @@ export const getHostingAdvancedServerStatusResponseMock = (overrideResponse = {}
|
|
|
71
71
|
export const getHostingAdvancedPasswordResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
72
72
|
export const getHostingAdvancedSsoWhmResponseMock = (overrideResponse = {}) => (Object.assign({ ssl_setup: faker.helpers.arrayElement([{ dns_updated: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), dns_zone_with_us: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), required: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), server_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
73
73
|
export const getHostingAdvancedSystemConsoleResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
74
|
-
export const getHostingCapabilitiesResponseMock = (overrideResponse = {}) => (Object.assign({ advanced_hosting: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]),
|
|
74
|
+
export const getHostingCapabilitiesResponseMock = (overrideResponse = {}) => (Object.assign({ advanced_hosting: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), cpanel: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_sitelock_migrated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), reset_password: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), server_controls: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), sites: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), whm: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
75
75
|
export const getListCronsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ command: faker.helpers.arrayElement([faker.word.sample(), undefined]), day: faker.helpers.arrayElement([faker.word.sample(), undefined]), email: faker.helpers.arrayElement([faker.word.sample(), undefined]), hour: faker.helpers.arrayElement([faker.word.sample(), undefined]), key: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), line: faker.helpers.arrayElement([faker.word.sample(), undefined]), minute: faker.helpers.arrayElement([faker.word.sample(), undefined]), month: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), weekday: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
76
76
|
export const getAddCronResponseMock = (overrideResponse = {}) => (Object.assign({ key: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
77
77
|
export const getUpdateCronResponseMock = (overrideResponse = {}) => (Object.assign({ key: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -264,6 +264,7 @@ export const getSitesSettingsComingSoonToggleResponseMock = (overrideResponse =
|
|
|
264
264
|
export const getSitesSettingsDebugResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
265
265
|
export const getSitesSettingsDebugToggleResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
266
266
|
export const getSitesSettingsPhpVersionUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
267
|
+
export const getSitesSettingsPhpVersionInheritanceResponseMock = (overrideResponse = {}) => (Object.assign({ inherited: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ docpath: faker.word.sample(), docroot: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), ok: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), php_inherited: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), php_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.word.sample(), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), success: faker.number.int({ min: undefined, max: undefined }) }, overrideResponse));
|
|
267
268
|
export const getSitesSettingsPhpVersionsResponseMock = (overrideResponse = {}) => (Object.assign({ default: faker.helpers.arrayElement([faker.word.sample(), undefined]), deprecated: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), latest: faker.helpers.arrayElement([faker.word.sample(), undefined]), versions: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, overrideResponse));
|
|
268
269
|
export const getSitesSshUserListResponseMock = (overrideResponse = {}) => (Object.assign({ users: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, overrideResponse));
|
|
269
270
|
export const getSitesSshUserCreateResponseMock = (overrideResponse = {}) => (Object.assign({ private_key: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), public_key: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), public_key_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, overrideResponse));
|
|
@@ -276,6 +277,7 @@ export const getSiteStatusResponseMock = (overrideResponse = {}) => (Object.assi
|
|
|
276
277
|
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));
|
|
277
278
|
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));
|
|
278
279
|
export const getSiteAddonWpsolutionResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
280
|
+
export const getUserHostingsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ auto_renew_flag: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), expiration_date: 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]), prod_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prod_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), 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));
|
|
279
281
|
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));
|
|
280
282
|
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));
|
|
281
283
|
export const getBackupDownloadV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -2635,6 +2637,16 @@ export const getSitesSettingsPhpVersionUpdateMockHandler = (overrideResponse) =>
|
|
|
2635
2637
|
});
|
|
2636
2638
|
}));
|
|
2637
2639
|
};
|
|
2640
|
+
export const getSitesSettingsPhpVersionInheritanceMockHandler = (overrideResponse) => {
|
|
2641
|
+
return http.get('*/v1/sites/:siteId/settings/php-version/inheritance', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2642
|
+
yield delay(0);
|
|
2643
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2644
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2645
|
+
: getSitesSettingsPhpVersionInheritanceResponseMock()), { status: 200,
|
|
2646
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2647
|
+
});
|
|
2648
|
+
}));
|
|
2649
|
+
};
|
|
2638
2650
|
export const getSitesSettingsPhpVersionsMockHandler = (overrideResponse) => {
|
|
2639
2651
|
return http.get('*/v1/sites/:siteId/settings/php-versions', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2640
2652
|
yield delay(0);
|
|
@@ -2755,6 +2767,16 @@ export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
|
|
|
2755
2767
|
});
|
|
2756
2768
|
}));
|
|
2757
2769
|
};
|
|
2770
|
+
export const getUserHostingsMockHandler = (overrideResponse) => {
|
|
2771
|
+
return http.get('*/v1/user/hostings', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2772
|
+
yield delay(0);
|
|
2773
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2774
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2775
|
+
: getUserHostingsResponseMock()), { status: 200,
|
|
2776
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2777
|
+
});
|
|
2778
|
+
}));
|
|
2779
|
+
};
|
|
2758
2780
|
export const getAddonsSitelockSsoV2MockHandler = (overrideResponse) => {
|
|
2759
2781
|
return http.get('*/v2/addons/sitelock/:addonId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2760
2782
|
yield delay(0);
|
|
@@ -3279,6 +3301,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3279
3301
|
getSitesSettingsDebugMockHandler(),
|
|
3280
3302
|
getSitesSettingsDebugToggleMockHandler(),
|
|
3281
3303
|
getSitesSettingsPhpVersionUpdateMockHandler(),
|
|
3304
|
+
getSitesSettingsPhpVersionInheritanceMockHandler(),
|
|
3282
3305
|
getSitesSettingsPhpVersionsMockHandler(),
|
|
3283
3306
|
getSitesSshUserListMockHandler(),
|
|
3284
3307
|
getSitesSshUserCreateMockHandler(),
|
|
@@ -3291,6 +3314,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3291
3314
|
getSiteUsersMockHandler(),
|
|
3292
3315
|
getSitesVersionMockHandler(),
|
|
3293
3316
|
getSiteAddonWpsolutionMockHandler(),
|
|
3317
|
+
getUserHostingsMockHandler(),
|
|
3294
3318
|
getAddonsSitelockSsoV2MockHandler(),
|
|
3295
3319
|
getBackupCreateV2MockHandler(),
|
|
3296
3320
|
getBackupDownloadV2MockHandler(),
|
package/src/index.schemas.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1587.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -562,30 +562,6 @@ export declare type HostingSitesV2200UsedSitesDetails = {
|
|
|
562
562
|
/** Count of sites that are in pending statuses i.e. pending_create pending_reset pending_delete etc */
|
|
563
563
|
sites_pending?: number;
|
|
564
564
|
};
|
|
565
|
-
export declare type HostingSitesV2200 = {
|
|
566
|
-
/**
|
|
567
|
-
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
568
|
-
* @nullable
|
|
569
|
-
*/
|
|
570
|
-
available_sites?: number | null;
|
|
571
|
-
items?: HostingSitesV2200ItemsItem[];
|
|
572
|
-
/** page size */
|
|
573
|
-
limit?: number;
|
|
574
|
-
/**
|
|
575
|
-
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
576
|
-
* @nullable
|
|
577
|
-
*/
|
|
578
|
-
max_sites?: number | null;
|
|
579
|
-
/** current page number */
|
|
580
|
-
page?: number;
|
|
581
|
-
/** total number of pages */
|
|
582
|
-
pages?: number;
|
|
583
|
-
/** total number of sites returned */
|
|
584
|
-
total?: number;
|
|
585
|
-
/** 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. */
|
|
586
|
-
used_sites?: number;
|
|
587
|
-
used_sites_details?: HostingSitesV2200UsedSitesDetails;
|
|
588
|
-
};
|
|
589
565
|
/**
|
|
590
566
|
* @nullable
|
|
591
567
|
*/
|
|
@@ -613,63 +589,6 @@ export declare type HostingSitesV2200ItemsItemStaging = {
|
|
|
613
589
|
/** A list of staging sites of the current site */
|
|
614
590
|
sites?: number[];
|
|
615
591
|
} | null;
|
|
616
|
-
export declare type HostingSitesV2200ItemsItemResourcesStorage = {
|
|
617
|
-
/** @nullable */
|
|
618
|
-
available?: number | null;
|
|
619
|
-
/** @nullable */
|
|
620
|
-
total?: number | null;
|
|
621
|
-
unit?: string;
|
|
622
|
-
/** @nullable */
|
|
623
|
-
used?: number | null;
|
|
624
|
-
};
|
|
625
|
-
export declare type HostingSitesV2200ItemsItemResources = {
|
|
626
|
-
storage?: HostingSitesV2200ItemsItemResourcesStorage;
|
|
627
|
-
/** @nullable */
|
|
628
|
-
workers?: number | null;
|
|
629
|
-
};
|
|
630
|
-
/**
|
|
631
|
-
* @nullable
|
|
632
|
-
*/
|
|
633
|
-
export declare type HostingSitesV2200ItemsItemPendingUrlData = {
|
|
634
|
-
/**
|
|
635
|
-
* The root domain name
|
|
636
|
-
* @nullable
|
|
637
|
-
*/
|
|
638
|
-
base_domain?: string | null;
|
|
639
|
-
/**
|
|
640
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
641
|
-
* @nullable
|
|
642
|
-
*/
|
|
643
|
-
domain?: string | null;
|
|
644
|
-
/**
|
|
645
|
-
* The current pending_url's HAL Domain ID
|
|
646
|
-
* @nullable
|
|
647
|
-
*/
|
|
648
|
-
domain_id?: number | null;
|
|
649
|
-
/** @nullable */
|
|
650
|
-
error?: string | null;
|
|
651
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
652
|
-
is_temp?: boolean;
|
|
653
|
-
/**
|
|
654
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
655
|
-
* @nullable
|
|
656
|
-
*/
|
|
657
|
-
job_failed?: boolean | null;
|
|
658
|
-
/** @nullable */
|
|
659
|
-
stage?: string | null;
|
|
660
|
-
/**
|
|
661
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
662
|
-
* @nullable
|
|
663
|
-
*/
|
|
664
|
-
wp_session?: string | null;
|
|
665
|
-
} | null;
|
|
666
|
-
/**
|
|
667
|
-
* Job ids for the site
|
|
668
|
-
* @nullable
|
|
669
|
-
*/
|
|
670
|
-
export declare type HostingSitesV2200ItemsItemJobs = {
|
|
671
|
-
[key: string]: unknown;
|
|
672
|
-
} | null;
|
|
673
592
|
export declare type HostingSitesV2200ItemsItem = {
|
|
674
593
|
/** @nullable */
|
|
675
594
|
account_back_ref?: string | null;
|
|
@@ -748,6 +667,87 @@ export declare type HostingSitesV2200ItemsItem = {
|
|
|
748
667
|
*/
|
|
749
668
|
version_ptr?: string | null;
|
|
750
669
|
};
|
|
670
|
+
export declare type HostingSitesV2200 = {
|
|
671
|
+
/**
|
|
672
|
+
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
673
|
+
* @nullable
|
|
674
|
+
*/
|
|
675
|
+
available_sites?: number | null;
|
|
676
|
+
items?: HostingSitesV2200ItemsItem[];
|
|
677
|
+
/** page size */
|
|
678
|
+
limit?: number;
|
|
679
|
+
/**
|
|
680
|
+
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
681
|
+
* @nullable
|
|
682
|
+
*/
|
|
683
|
+
max_sites?: number | null;
|
|
684
|
+
/** current page number */
|
|
685
|
+
page?: number;
|
|
686
|
+
/** total number of pages */
|
|
687
|
+
pages?: number;
|
|
688
|
+
/** total number of sites returned */
|
|
689
|
+
total?: number;
|
|
690
|
+
/** 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. */
|
|
691
|
+
used_sites?: number;
|
|
692
|
+
used_sites_details?: HostingSitesV2200UsedSitesDetails;
|
|
693
|
+
};
|
|
694
|
+
export declare type HostingSitesV2200ItemsItemResourcesStorage = {
|
|
695
|
+
/** @nullable */
|
|
696
|
+
available?: number | null;
|
|
697
|
+
/** @nullable */
|
|
698
|
+
total?: number | null;
|
|
699
|
+
unit?: string;
|
|
700
|
+
/** @nullable */
|
|
701
|
+
used?: number | null;
|
|
702
|
+
};
|
|
703
|
+
export declare type HostingSitesV2200ItemsItemResources = {
|
|
704
|
+
storage?: HostingSitesV2200ItemsItemResourcesStorage;
|
|
705
|
+
/** @nullable */
|
|
706
|
+
workers?: number | null;
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* @nullable
|
|
710
|
+
*/
|
|
711
|
+
export declare type HostingSitesV2200ItemsItemPendingUrlData = {
|
|
712
|
+
/**
|
|
713
|
+
* The root domain name
|
|
714
|
+
* @nullable
|
|
715
|
+
*/
|
|
716
|
+
base_domain?: string | null;
|
|
717
|
+
/**
|
|
718
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
719
|
+
* @nullable
|
|
720
|
+
*/
|
|
721
|
+
domain?: string | null;
|
|
722
|
+
/**
|
|
723
|
+
* The current pending_url's HAL Domain ID
|
|
724
|
+
* @nullable
|
|
725
|
+
*/
|
|
726
|
+
domain_id?: number | null;
|
|
727
|
+
/** @nullable */
|
|
728
|
+
error?: string | null;
|
|
729
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
730
|
+
is_temp?: boolean;
|
|
731
|
+
/**
|
|
732
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
733
|
+
* @nullable
|
|
734
|
+
*/
|
|
735
|
+
job_failed?: boolean | null;
|
|
736
|
+
/** @nullable */
|
|
737
|
+
stage?: string | null;
|
|
738
|
+
/**
|
|
739
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
740
|
+
* @nullable
|
|
741
|
+
*/
|
|
742
|
+
wp_session?: string | null;
|
|
743
|
+
} | null;
|
|
744
|
+
/**
|
|
745
|
+
* Job ids for the site
|
|
746
|
+
* @nullable
|
|
747
|
+
*/
|
|
748
|
+
export declare type HostingSitesV2200ItemsItemJobs = {
|
|
749
|
+
[key: string]: unknown;
|
|
750
|
+
} | null;
|
|
751
751
|
export declare type HostingSitesV2Params = {
|
|
752
752
|
limit?: number;
|
|
753
753
|
page?: number;
|
|
@@ -799,12 +799,6 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
799
799
|
/** The site id to be unassigned */
|
|
800
800
|
site_id: number;
|
|
801
801
|
};
|
|
802
|
-
export declare type HostingDomainsV2200 = {
|
|
803
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
804
|
-
limit?: number;
|
|
805
|
-
page?: number;
|
|
806
|
-
total?: number;
|
|
807
|
-
};
|
|
808
802
|
/**
|
|
809
803
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
810
804
|
* @nullable
|
|
@@ -924,6 +918,12 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
924
918
|
third_party_dns?: boolean | null;
|
|
925
919
|
type: string;
|
|
926
920
|
};
|
|
921
|
+
export declare type HostingDomainsV2200 = {
|
|
922
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
923
|
+
limit?: number;
|
|
924
|
+
page?: number;
|
|
925
|
+
total?: number;
|
|
926
|
+
};
|
|
927
927
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
928
928
|
export declare const HostingDomainsV2TypesItem: {
|
|
929
929
|
readonly addon: "addon";
|
|
@@ -1030,6 +1030,282 @@ export declare type AddonsSitelockSsoV2Params = {
|
|
|
1030
1030
|
*/
|
|
1031
1031
|
source?: string;
|
|
1032
1032
|
};
|
|
1033
|
+
/**
|
|
1034
|
+
* Usage statistics
|
|
1035
|
+
* @nullable
|
|
1036
|
+
*/
|
|
1037
|
+
export declare type UserHostings200RowsItemUsed = {
|
|
1038
|
+
/**
|
|
1039
|
+
* Disk usage in bytes
|
|
1040
|
+
* @nullable
|
|
1041
|
+
*/
|
|
1042
|
+
disk_usage?: string | null;
|
|
1043
|
+
/**
|
|
1044
|
+
* Total number of sites
|
|
1045
|
+
* @nullable
|
|
1046
|
+
*/
|
|
1047
|
+
sites?: number | null;
|
|
1048
|
+
/**
|
|
1049
|
+
* Number of active sites
|
|
1050
|
+
* @nullable
|
|
1051
|
+
*/
|
|
1052
|
+
sites_active?: number | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Number of staging sites
|
|
1055
|
+
* @nullable
|
|
1056
|
+
*/
|
|
1057
|
+
staging_sites?: number | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Number of workers
|
|
1060
|
+
* @nullable
|
|
1061
|
+
*/
|
|
1062
|
+
workers?: number | null;
|
|
1063
|
+
} | null;
|
|
1064
|
+
/**
|
|
1065
|
+
* Remote limits for the account
|
|
1066
|
+
* @nullable
|
|
1067
|
+
*/
|
|
1068
|
+
export declare type UserHostings200RowsItemLimitRemote = {
|
|
1069
|
+
/**
|
|
1070
|
+
* Quota in KB associated with the account
|
|
1071
|
+
* @nullable
|
|
1072
|
+
*/
|
|
1073
|
+
quota_kib?: string | null;
|
|
1074
|
+
} | null;
|
|
1075
|
+
/**
|
|
1076
|
+
* Account limits
|
|
1077
|
+
* @nullable
|
|
1078
|
+
*/
|
|
1079
|
+
export declare type UserHostings200RowsItemLimit = {
|
|
1080
|
+
/**
|
|
1081
|
+
* Disk space limit in GiB
|
|
1082
|
+
* @nullable
|
|
1083
|
+
*/
|
|
1084
|
+
disk_limit_gib?: string | null;
|
|
1085
|
+
/**
|
|
1086
|
+
* Maximum number of sites allowed
|
|
1087
|
+
* @nullable
|
|
1088
|
+
*/
|
|
1089
|
+
sites?: string | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* Number of workers
|
|
1092
|
+
* @nullable
|
|
1093
|
+
*/
|
|
1094
|
+
workers?: number | null;
|
|
1095
|
+
} | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* Feature details from HAL account_feature_info_list
|
|
1098
|
+
*/
|
|
1099
|
+
export declare type UserHostings200RowsItem = {
|
|
1100
|
+
/**
|
|
1101
|
+
* Product auto-renew flag
|
|
1102
|
+
* @nullable
|
|
1103
|
+
*/
|
|
1104
|
+
auto_renew_flag?: boolean | null;
|
|
1105
|
+
/** HAL Account back_reference, used to link to the product instance */
|
|
1106
|
+
back_reference?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* Product expiration date
|
|
1109
|
+
* @nullable
|
|
1110
|
+
*/
|
|
1111
|
+
expiration_date?: string | null;
|
|
1112
|
+
/** Feature set name ex: hosting_40s */
|
|
1113
|
+
feature_set?: string;
|
|
1114
|
+
/** Additional information about the account */
|
|
1115
|
+
info?: UserHostings200RowsItemInfo;
|
|
1116
|
+
/**
|
|
1117
|
+
* Account limits
|
|
1118
|
+
* @nullable
|
|
1119
|
+
*/
|
|
1120
|
+
limit?: UserHostings200RowsItemLimit;
|
|
1121
|
+
/**
|
|
1122
|
+
* Remote limits for the account
|
|
1123
|
+
* @nullable
|
|
1124
|
+
*/
|
|
1125
|
+
limit_remote?: UserHostings200RowsItemLimitRemote;
|
|
1126
|
+
/**
|
|
1127
|
+
* Package name
|
|
1128
|
+
* @nullable
|
|
1129
|
+
*/
|
|
1130
|
+
package?: string | null;
|
|
1131
|
+
/**
|
|
1132
|
+
* Control panel type
|
|
1133
|
+
* @nullable
|
|
1134
|
+
*/
|
|
1135
|
+
panel?: string | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* Product code
|
|
1138
|
+
* @nullable
|
|
1139
|
+
*/
|
|
1140
|
+
prod_code?: string | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* Product name
|
|
1143
|
+
* @nullable
|
|
1144
|
+
*/
|
|
1145
|
+
prod_name?: string | null;
|
|
1146
|
+
/**
|
|
1147
|
+
* Number of sites
|
|
1148
|
+
* @nullable
|
|
1149
|
+
*/
|
|
1150
|
+
sites?: number | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* Usage statistics
|
|
1153
|
+
* @nullable
|
|
1154
|
+
*/
|
|
1155
|
+
used?: UserHostings200RowsItemUsed;
|
|
1156
|
+
};
|
|
1157
|
+
export declare type UserHostings200 = {
|
|
1158
|
+
/** Feature information for the paginated product instances */
|
|
1159
|
+
rows?: UserHostings200RowsItem[];
|
|
1160
|
+
/** Total number of product instance IDs available to that account */
|
|
1161
|
+
total_count?: number;
|
|
1162
|
+
};
|
|
1163
|
+
/**
|
|
1164
|
+
* Region information for the account
|
|
1165
|
+
* @nullable
|
|
1166
|
+
*/
|
|
1167
|
+
export declare type UserHostings200RowsItemInfoRegion = {
|
|
1168
|
+
/**
|
|
1169
|
+
* Region description
|
|
1170
|
+
* @nullable
|
|
1171
|
+
*/
|
|
1172
|
+
desc?: string | null;
|
|
1173
|
+
/**
|
|
1174
|
+
* Region name
|
|
1175
|
+
* @nullable
|
|
1176
|
+
*/
|
|
1177
|
+
name?: string | null;
|
|
1178
|
+
} | null;
|
|
1179
|
+
/**
|
|
1180
|
+
* Additional information about the account
|
|
1181
|
+
*/
|
|
1182
|
+
export declare type UserHostings200RowsItemInfo = {
|
|
1183
|
+
/**
|
|
1184
|
+
* HAL Account back_reference, used to link to the product instance
|
|
1185
|
+
* @nullable
|
|
1186
|
+
*/
|
|
1187
|
+
addon_back_ref?: string | null;
|
|
1188
|
+
/**
|
|
1189
|
+
* The ID of the addon associated with the account
|
|
1190
|
+
* @nullable
|
|
1191
|
+
*/
|
|
1192
|
+
addon_id?: string | null;
|
|
1193
|
+
/**
|
|
1194
|
+
* The status of the addon associated with the account
|
|
1195
|
+
* @nullable
|
|
1196
|
+
*/
|
|
1197
|
+
addon_status?: string | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* Brand name associated with the account
|
|
1200
|
+
* @nullable
|
|
1201
|
+
*/
|
|
1202
|
+
brand?: string | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* Brand ID associated with the account
|
|
1205
|
+
* @nullable
|
|
1206
|
+
*/
|
|
1207
|
+
brand_id?: string | null;
|
|
1208
|
+
/**
|
|
1209
|
+
* Date when the account was added
|
|
1210
|
+
* @nullable
|
|
1211
|
+
*/
|
|
1212
|
+
date_added?: string | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* Date when the account was last modified
|
|
1215
|
+
* @nullable
|
|
1216
|
+
*/
|
|
1217
|
+
date_modified?: string | null;
|
|
1218
|
+
/**
|
|
1219
|
+
* Home directory path for the account
|
|
1220
|
+
* @nullable
|
|
1221
|
+
*/
|
|
1222
|
+
homedir?: string | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* Account ID, used to link to the product instance
|
|
1225
|
+
* @nullable
|
|
1226
|
+
*/
|
|
1227
|
+
id?: string | null;
|
|
1228
|
+
/**
|
|
1229
|
+
* IP address associated with the account
|
|
1230
|
+
* @nullable
|
|
1231
|
+
*/
|
|
1232
|
+
ip?: string | null;
|
|
1233
|
+
/**
|
|
1234
|
+
* A list of nameservers associated with the account
|
|
1235
|
+
* @nullable
|
|
1236
|
+
*/
|
|
1237
|
+
ns?: string[] | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* Operating system name
|
|
1240
|
+
* @nullable
|
|
1241
|
+
*/
|
|
1242
|
+
os_name?: string | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* Platform type
|
|
1245
|
+
* @nullable
|
|
1246
|
+
*/
|
|
1247
|
+
platform?: string | null;
|
|
1248
|
+
/**
|
|
1249
|
+
* Region information for the account
|
|
1250
|
+
* @nullable
|
|
1251
|
+
*/
|
|
1252
|
+
region?: UserHostings200RowsItemInfoRegion;
|
|
1253
|
+
/**
|
|
1254
|
+
* Server ID
|
|
1255
|
+
* @nullable
|
|
1256
|
+
*/
|
|
1257
|
+
server_id?: string | null;
|
|
1258
|
+
/**
|
|
1259
|
+
* Server status
|
|
1260
|
+
* @nullable
|
|
1261
|
+
*/
|
|
1262
|
+
server_status?: string | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* Server type
|
|
1265
|
+
* @nullable
|
|
1266
|
+
*/
|
|
1267
|
+
server_type?: string | null;
|
|
1268
|
+
/**
|
|
1269
|
+
* SSH hostname
|
|
1270
|
+
* @nullable
|
|
1271
|
+
*/
|
|
1272
|
+
ssh_hostname?: string | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Account status
|
|
1275
|
+
* @nullable
|
|
1276
|
+
*/
|
|
1277
|
+
status?: string | null;
|
|
1278
|
+
/**
|
|
1279
|
+
* HAL Tenant back_reference, used to link to the product instance
|
|
1280
|
+
* @nullable
|
|
1281
|
+
*/
|
|
1282
|
+
tenant_back_ref?: string | null;
|
|
1283
|
+
/**
|
|
1284
|
+
* HAL Tenant ID, used to link to the product instance
|
|
1285
|
+
* @nullable
|
|
1286
|
+
*/
|
|
1287
|
+
tenant_id?: string | null;
|
|
1288
|
+
/**
|
|
1289
|
+
* Type of account, e.g., 'shared_cpanel'
|
|
1290
|
+
* @nullable
|
|
1291
|
+
*/
|
|
1292
|
+
type?: string | null;
|
|
1293
|
+
/**
|
|
1294
|
+
* Username associated with the account
|
|
1295
|
+
* @nullable
|
|
1296
|
+
*/
|
|
1297
|
+
username?: string | null;
|
|
1298
|
+
};
|
|
1299
|
+
export declare type UserHostingsParams = {
|
|
1300
|
+
/**
|
|
1301
|
+
* Starting index for pagination (default: 0)
|
|
1302
|
+
*/
|
|
1303
|
+
start?: number;
|
|
1304
|
+
/**
|
|
1305
|
+
* Maximum number of items to return. If not provided, returns all items from start index
|
|
1306
|
+
*/
|
|
1307
|
+
limit?: number;
|
|
1308
|
+
};
|
|
1033
1309
|
export declare type SiteAddonWpsolution400 = {
|
|
1034
1310
|
error?: string;
|
|
1035
1311
|
};
|
|
@@ -1055,10 +1331,6 @@ export declare type SitesVersion200 = {
|
|
|
1055
1331
|
latest?: string;
|
|
1056
1332
|
update?: boolean;
|
|
1057
1333
|
};
|
|
1058
|
-
export declare type SiteUsers200UsersItemMeta = {
|
|
1059
|
-
maestro_web_pro?: string;
|
|
1060
|
-
maestro_wpp_identifier?: string;
|
|
1061
|
-
};
|
|
1062
1334
|
export declare type SiteUsers200UsersItem = {
|
|
1063
1335
|
display_name?: string;
|
|
1064
1336
|
id: number;
|
|
@@ -1073,6 +1345,10 @@ export declare type SiteUsers200UsersItem = {
|
|
|
1073
1345
|
export declare type SiteUsers200 = {
|
|
1074
1346
|
users: SiteUsers200UsersItem[];
|
|
1075
1347
|
};
|
|
1348
|
+
export declare type SiteUsers200UsersItemMeta = {
|
|
1349
|
+
maestro_web_pro?: string;
|
|
1350
|
+
maestro_wpp_identifier?: string;
|
|
1351
|
+
};
|
|
1076
1352
|
export declare type SiteStatus200 = {
|
|
1077
1353
|
/** @nullable */
|
|
1078
1354
|
cloudflare_ready?: boolean | null;
|
|
@@ -1239,6 +1515,42 @@ export declare type SitesSettingsPhpVersions200 = {
|
|
|
1239
1515
|
latest?: string;
|
|
1240
1516
|
versions?: string[];
|
|
1241
1517
|
};
|
|
1518
|
+
export declare type SitesSettingsPhpVersionInheritance200InheritedItem = {
|
|
1519
|
+
/** Docpath of the nested site */
|
|
1520
|
+
docpath: string;
|
|
1521
|
+
/** Docroot of the nested site */
|
|
1522
|
+
docroot?: string;
|
|
1523
|
+
/** Domain of the nested site */
|
|
1524
|
+
domain?: string;
|
|
1525
|
+
/** Home directory of the nested site */
|
|
1526
|
+
homedir?: string;
|
|
1527
|
+
/** Status flag */
|
|
1528
|
+
ok?: number;
|
|
1529
|
+
/** Path of the nested site */
|
|
1530
|
+
path?: string;
|
|
1531
|
+
/** Flag indicating if PHP version is inherited */
|
|
1532
|
+
php_inherited?: number;
|
|
1533
|
+
/** PHP version inherited by the nested site */
|
|
1534
|
+
php_version?: string;
|
|
1535
|
+
/** Type of the nested site */
|
|
1536
|
+
type?: string;
|
|
1537
|
+
/** URL of the nested site */
|
|
1538
|
+
url: string;
|
|
1539
|
+
/** User owning the nested site */
|
|
1540
|
+
user?: string;
|
|
1541
|
+
};
|
|
1542
|
+
export declare type SitesSettingsPhpVersionInheritance200 = {
|
|
1543
|
+
/** List of nested sites inheriting PHP version */
|
|
1544
|
+
inherited: SitesSettingsPhpVersionInheritance200InheritedItem[];
|
|
1545
|
+
/** 1 if successful, 0 otherwise */
|
|
1546
|
+
success: number;
|
|
1547
|
+
};
|
|
1548
|
+
export declare type SitesSettingsPhpVersionInheritanceParams = {
|
|
1549
|
+
/**
|
|
1550
|
+
* Optional user to get the homedir to use as a top level
|
|
1551
|
+
*/
|
|
1552
|
+
user?: string;
|
|
1553
|
+
};
|
|
1242
1554
|
export declare type SitesSettingsPhpVersionUpdate200 = {
|
|
1243
1555
|
success?: number;
|
|
1244
1556
|
};
|
|
@@ -4343,7 +4655,6 @@ export declare type ListCrons200 = {
|
|
|
4343
4655
|
};
|
|
4344
4656
|
export declare type HostingCapabilities200 = {
|
|
4345
4657
|
advanced_hosting?: boolean;
|
|
4346
|
-
cbs_backups?: boolean;
|
|
4347
4658
|
cpanel?: boolean;
|
|
4348
4659
|
is_sitelock_migrated?: boolean;
|
|
4349
4660
|
reset_password?: boolean;
|