@newfold/huapi-js 2.1874.0 → 2.1893.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 +138 -1
- package/src/index.js +93 -1
- package/src/index.msw.d.ts +9 -1
- package/src/index.msw.js +51 -3
- package/src/index.schemas.d.ts +384 -168
- package/src/index.schemas.js +25 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200 } 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
|
/**
|
|
@@ -850,6 +850,143 @@ export declare function useBackupMeta<TData = Awaited<ReturnType<typeof backupMe
|
|
|
850
850
|
}): UseQueryResult<TData, TError> & {
|
|
851
851
|
queryKey: QueryKey;
|
|
852
852
|
};
|
|
853
|
+
/**
|
|
854
|
+
* HAL get_site_backup_pref: schedule, retention, and status for a site.
|
|
855
|
+
* @summary Get site backup preference
|
|
856
|
+
*/
|
|
857
|
+
export declare const backupSettings: (addonId: number, siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupSettings200>>;
|
|
858
|
+
export declare const getBackupSettingsQueryKey: (addonId: number, siteId: number) => readonly [`/v1/addons/${number}/backup/sites/${number}/settings`];
|
|
859
|
+
export declare const getBackupSettingsQueryOptions: <TData = AxiosResponse<BackupSettings200, any>, TError = AxiosError<unknown, any>>(addonId: number, siteId: number, options?: {
|
|
860
|
+
query?: Partial<UseQueryOptions<AxiosResponse<BackupSettings200, any>, TError, TData, QueryKey>> | undefined;
|
|
861
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
862
|
+
} | undefined) => UseQueryOptions<AxiosResponse<BackupSettings200, any>, TError, TData, QueryKey> & {
|
|
863
|
+
queryKey: QueryKey;
|
|
864
|
+
};
|
|
865
|
+
export declare type BackupSettingsQueryResult = NonNullable<Awaited<ReturnType<typeof backupSettings>>>;
|
|
866
|
+
export declare type BackupSettingsQueryError = AxiosError<unknown>;
|
|
867
|
+
export declare function useBackupSettings<TData = Awaited<ReturnType<typeof backupSettings>>, TError = AxiosError<unknown>>(addonId: number, siteId: number, options: {
|
|
868
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof backupSettings>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof backupSettings>>, TError, TData>, 'initialData'>;
|
|
869
|
+
axios?: AxiosRequestConfig;
|
|
870
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
871
|
+
queryKey: QueryKey;
|
|
872
|
+
};
|
|
873
|
+
export declare function useBackupSettings<TData = Awaited<ReturnType<typeof backupSettings>>, TError = AxiosError<unknown>>(addonId: number, siteId: number, options?: {
|
|
874
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof backupSettings>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof backupSettings>>, TError, TData>, 'initialData'>;
|
|
875
|
+
axios?: AxiosRequestConfig;
|
|
876
|
+
}): UseQueryResult<TData, TError> & {
|
|
877
|
+
queryKey: QueryKey;
|
|
878
|
+
};
|
|
879
|
+
export declare function useBackupSettings<TData = Awaited<ReturnType<typeof backupSettings>>, TError = AxiosError<unknown>>(addonId: number, siteId: number, options?: {
|
|
880
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof backupSettings>>, TError, TData>>;
|
|
881
|
+
axios?: AxiosRequestConfig;
|
|
882
|
+
}): UseQueryResult<TData, TError> & {
|
|
883
|
+
queryKey: QueryKey;
|
|
884
|
+
};
|
|
885
|
+
/**
|
|
886
|
+
* HAL backup_pref_create
|
|
887
|
+
* @summary Create site backup preference
|
|
888
|
+
*/
|
|
889
|
+
export declare const backupSettingsCreate: (addonId: number, siteId: number, backupSettingsCreateBody: BackupSettingsCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupSettingsCreate200>>;
|
|
890
|
+
export declare const getBackupSettingsCreateMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
891
|
+
mutation?: UseMutationOptions<AxiosResponse<BackupSettingsCreate200, any>, TError, {
|
|
892
|
+
addonId: number;
|
|
893
|
+
siteId: number;
|
|
894
|
+
data: BackupSettingsCreateBody;
|
|
895
|
+
}, TContext> | undefined;
|
|
896
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
897
|
+
} | undefined) => UseMutationOptions<AxiosResponse<BackupSettingsCreate200, any>, TError, {
|
|
898
|
+
addonId: number;
|
|
899
|
+
siteId: number;
|
|
900
|
+
data: BackupSettingsCreateBody;
|
|
901
|
+
}, TContext>;
|
|
902
|
+
export declare type BackupSettingsCreateMutationResult = NonNullable<Awaited<ReturnType<typeof backupSettingsCreate>>>;
|
|
903
|
+
export declare type BackupSettingsCreateMutationBody = BackupSettingsCreateBody;
|
|
904
|
+
export declare type BackupSettingsCreateMutationError = AxiosError<unknown>;
|
|
905
|
+
/**
|
|
906
|
+
* @summary Create site backup preference
|
|
907
|
+
*/
|
|
908
|
+
export declare const useBackupSettingsCreate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
909
|
+
mutation?: UseMutationOptions<AxiosResponse<BackupSettingsCreate200, any>, TError, {
|
|
910
|
+
addonId: number;
|
|
911
|
+
siteId: number;
|
|
912
|
+
data: BackupSettingsCreateBody;
|
|
913
|
+
}, TContext> | undefined;
|
|
914
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
915
|
+
} | undefined) => UseMutationResult<AxiosResponse<BackupSettingsCreate200, any>, TError, {
|
|
916
|
+
addonId: number;
|
|
917
|
+
siteId: number;
|
|
918
|
+
data: BackupSettingsCreateBody;
|
|
919
|
+
}, TContext>;
|
|
920
|
+
/**
|
|
921
|
+
* HAL backup_pref_update
|
|
922
|
+
* @summary Update site backup preference
|
|
923
|
+
*/
|
|
924
|
+
export declare const backupSettingsUpdate: (addonId: number, siteId: number, backupSettingsUpdateBody: BackupSettingsUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupSettingsUpdate200>>;
|
|
925
|
+
export declare const getBackupSettingsUpdateMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
926
|
+
mutation?: UseMutationOptions<AxiosResponse<BackupSettingsUpdate200, any>, TError, {
|
|
927
|
+
addonId: number;
|
|
928
|
+
siteId: number;
|
|
929
|
+
data: BackupSettingsUpdateBody;
|
|
930
|
+
}, TContext> | undefined;
|
|
931
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
932
|
+
} | undefined) => UseMutationOptions<AxiosResponse<BackupSettingsUpdate200, any>, TError, {
|
|
933
|
+
addonId: number;
|
|
934
|
+
siteId: number;
|
|
935
|
+
data: BackupSettingsUpdateBody;
|
|
936
|
+
}, TContext>;
|
|
937
|
+
export declare type BackupSettingsUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof backupSettingsUpdate>>>;
|
|
938
|
+
export declare type BackupSettingsUpdateMutationBody = BackupSettingsUpdateBody;
|
|
939
|
+
export declare type BackupSettingsUpdateMutationError = AxiosError<unknown>;
|
|
940
|
+
/**
|
|
941
|
+
* @summary Update site backup preference
|
|
942
|
+
*/
|
|
943
|
+
export declare const useBackupSettingsUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
944
|
+
mutation?: UseMutationOptions<AxiosResponse<BackupSettingsUpdate200, any>, TError, {
|
|
945
|
+
addonId: number;
|
|
946
|
+
siteId: number;
|
|
947
|
+
data: BackupSettingsUpdateBody;
|
|
948
|
+
}, TContext> | undefined;
|
|
949
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
950
|
+
} | undefined) => UseMutationResult<AxiosResponse<BackupSettingsUpdate200, any>, TError, {
|
|
951
|
+
addonId: number;
|
|
952
|
+
siteId: number;
|
|
953
|
+
data: BackupSettingsUpdateBody;
|
|
954
|
+
}, TContext>;
|
|
955
|
+
/**
|
|
956
|
+
* HAL backup_pref_set_status — toggles scheduled backup (enable/disable); response status is active or paused.
|
|
957
|
+
* @summary Enable or disable site backup preference
|
|
958
|
+
*/
|
|
959
|
+
export declare const backupPrefSetStatus: (addonId: number, siteId: number, backupPrefSetStatusBody: BackupPrefSetStatusBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupPrefSetStatus200>>;
|
|
960
|
+
export declare const getBackupPrefSetStatusMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
961
|
+
mutation?: UseMutationOptions<AxiosResponse<BackupPrefSetStatus200, any>, TError, {
|
|
962
|
+
addonId: number;
|
|
963
|
+
siteId: number;
|
|
964
|
+
data: BackupPrefSetStatusBody;
|
|
965
|
+
}, TContext> | undefined;
|
|
966
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
967
|
+
} | undefined) => UseMutationOptions<AxiosResponse<BackupPrefSetStatus200, any>, TError, {
|
|
968
|
+
addonId: number;
|
|
969
|
+
siteId: number;
|
|
970
|
+
data: BackupPrefSetStatusBody;
|
|
971
|
+
}, TContext>;
|
|
972
|
+
export declare type BackupPrefSetStatusMutationResult = NonNullable<Awaited<ReturnType<typeof backupPrefSetStatus>>>;
|
|
973
|
+
export declare type BackupPrefSetStatusMutationBody = BackupPrefSetStatusBody;
|
|
974
|
+
export declare type BackupPrefSetStatusMutationError = AxiosError<unknown>;
|
|
975
|
+
/**
|
|
976
|
+
* @summary Enable or disable site backup preference
|
|
977
|
+
*/
|
|
978
|
+
export declare const useBackupPrefSetStatus: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
979
|
+
mutation?: UseMutationOptions<AxiosResponse<BackupPrefSetStatus200, any>, TError, {
|
|
980
|
+
addonId: number;
|
|
981
|
+
siteId: number;
|
|
982
|
+
data: BackupPrefSetStatusBody;
|
|
983
|
+
}, TContext> | undefined;
|
|
984
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
985
|
+
} | undefined) => UseMutationResult<AxiosResponse<BackupPrefSetStatus200, any>, TError, {
|
|
986
|
+
addonId: number;
|
|
987
|
+
siteId: number;
|
|
988
|
+
data: BackupPrefSetStatusBody;
|
|
989
|
+
}, TContext>;
|
|
853
990
|
/**
|
|
854
991
|
* Decom and delete cloudflare basic addon
|
|
855
992
|
* @summary Uninstall cloudflare basic addon
|
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.1893.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -669,6 +669,98 @@ export function useBackupMeta(addonId, params, options) {
|
|
|
669
669
|
query.queryKey = queryOptions.queryKey;
|
|
670
670
|
return query;
|
|
671
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
* HAL get_site_backup_pref: schedule, retention, and status for a site.
|
|
674
|
+
* @summary Get site backup preference
|
|
675
|
+
*/
|
|
676
|
+
export const backupSettings = (addonId, siteId, options) => {
|
|
677
|
+
return axios.get(`/v1/addons/${addonId}/backup/sites/${siteId}/settings`, options);
|
|
678
|
+
};
|
|
679
|
+
export const getBackupSettingsQueryKey = (addonId, siteId) => {
|
|
680
|
+
return [`/v1/addons/${addonId}/backup/sites/${siteId}/settings`];
|
|
681
|
+
};
|
|
682
|
+
export const getBackupSettingsQueryOptions = (addonId, siteId, options) => {
|
|
683
|
+
var _a;
|
|
684
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
685
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getBackupSettingsQueryKey(addonId, siteId);
|
|
686
|
+
const queryFn = ({ signal }) => backupSettings(addonId, siteId, Object.assign({ signal }, axiosOptions));
|
|
687
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId && siteId) }, queryOptions);
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* @summary Get site backup preference
|
|
691
|
+
*/
|
|
692
|
+
export function useBackupSettings(addonId, siteId, options) {
|
|
693
|
+
const queryOptions = getBackupSettingsQueryOptions(addonId, siteId, options);
|
|
694
|
+
const query = useQuery(queryOptions);
|
|
695
|
+
query.queryKey = queryOptions.queryKey;
|
|
696
|
+
return query;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* HAL backup_pref_create
|
|
700
|
+
* @summary Create site backup preference
|
|
701
|
+
*/
|
|
702
|
+
export const backupSettingsCreate = (addonId, siteId, backupSettingsCreateBody, options) => {
|
|
703
|
+
return axios.post(`/v1/addons/${addonId}/backup/sites/${siteId}/settings`, backupSettingsCreateBody, options);
|
|
704
|
+
};
|
|
705
|
+
export const getBackupSettingsCreateMutationOptions = (options) => {
|
|
706
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
707
|
+
const mutationFn = (props) => {
|
|
708
|
+
const { addonId, siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
709
|
+
return backupSettingsCreate(addonId, siteId, data, axiosOptions);
|
|
710
|
+
};
|
|
711
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
* @summary Create site backup preference
|
|
715
|
+
*/
|
|
716
|
+
export const useBackupSettingsCreate = (options) => {
|
|
717
|
+
const mutationOptions = getBackupSettingsCreateMutationOptions(options);
|
|
718
|
+
return useMutation(mutationOptions);
|
|
719
|
+
};
|
|
720
|
+
/**
|
|
721
|
+
* HAL backup_pref_update
|
|
722
|
+
* @summary Update site backup preference
|
|
723
|
+
*/
|
|
724
|
+
export const backupSettingsUpdate = (addonId, siteId, backupSettingsUpdateBody, options) => {
|
|
725
|
+
return axios.put(`/v1/addons/${addonId}/backup/sites/${siteId}/settings`, backupSettingsUpdateBody, options);
|
|
726
|
+
};
|
|
727
|
+
export const getBackupSettingsUpdateMutationOptions = (options) => {
|
|
728
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
729
|
+
const mutationFn = (props) => {
|
|
730
|
+
const { addonId, siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
731
|
+
return backupSettingsUpdate(addonId, siteId, data, axiosOptions);
|
|
732
|
+
};
|
|
733
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
734
|
+
};
|
|
735
|
+
/**
|
|
736
|
+
* @summary Update site backup preference
|
|
737
|
+
*/
|
|
738
|
+
export const useBackupSettingsUpdate = (options) => {
|
|
739
|
+
const mutationOptions = getBackupSettingsUpdateMutationOptions(options);
|
|
740
|
+
return useMutation(mutationOptions);
|
|
741
|
+
};
|
|
742
|
+
/**
|
|
743
|
+
* HAL backup_pref_set_status — toggles scheduled backup (enable/disable); response status is active or paused.
|
|
744
|
+
* @summary Enable or disable site backup preference
|
|
745
|
+
*/
|
|
746
|
+
export const backupPrefSetStatus = (addonId, siteId, backupPrefSetStatusBody, options) => {
|
|
747
|
+
return axios.put(`/v1/addons/${addonId}/backup/sites/${siteId}/settings/status`, backupPrefSetStatusBody, options);
|
|
748
|
+
};
|
|
749
|
+
export const getBackupPrefSetStatusMutationOptions = (options) => {
|
|
750
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
751
|
+
const mutationFn = (props) => {
|
|
752
|
+
const { addonId, siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
753
|
+
return backupPrefSetStatus(addonId, siteId, data, axiosOptions);
|
|
754
|
+
};
|
|
755
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
756
|
+
};
|
|
757
|
+
/**
|
|
758
|
+
* @summary Enable or disable site backup preference
|
|
759
|
+
*/
|
|
760
|
+
export const useBackupPrefSetStatus = (options) => {
|
|
761
|
+
const mutationOptions = getBackupPrefSetStatusMutationOptions(options);
|
|
762
|
+
return useMutation(mutationOptions);
|
|
763
|
+
};
|
|
672
764
|
/**
|
|
673
765
|
* Decom and delete cloudflare basic addon
|
|
674
766
|
* @summary Uninstall cloudflare basic addon
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } 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;
|
|
@@ -27,6 +27,10 @@ export declare const getBackupInitiateResponseMock: (overrideResponse?: Partial<
|
|
|
27
27
|
export declare const getBackupStatusResponseMock: (overrideResponse?: Partial<BackupStatus200>) => BackupStatus200;
|
|
28
28
|
export declare const getBackupListResponseMock: (overrideResponse?: Partial<BackupList200>) => BackupList200;
|
|
29
29
|
export declare const getBackupMetaResponseMock: (overrideResponse?: Partial<BackupMeta200>) => BackupMeta200;
|
|
30
|
+
export declare const getBackupSettingsResponseMock: (overrideResponse?: Partial<BackupSettings200>) => BackupSettings200;
|
|
31
|
+
export declare const getBackupSettingsCreateResponseMock: (overrideResponse?: Partial<BackupSettingsCreate200>) => BackupSettingsCreate200;
|
|
32
|
+
export declare const getBackupSettingsUpdateResponseMock: (overrideResponse?: Partial<BackupSettingsUpdate200>) => BackupSettingsUpdate200;
|
|
33
|
+
export declare const getBackupPrefSetStatusResponseMock: (overrideResponse?: Partial<BackupPrefSetStatus200>) => BackupPrefSetStatus200;
|
|
30
34
|
export declare const getAddonsCloudflareResponseMock: (overrideResponse?: Partial<AddonsCloudflare200>) => AddonsCloudflare200;
|
|
31
35
|
export declare const getAddonsCloudflareExternalNsCheckResponseMock: (overrideResponse?: Partial<AddonsCloudflareExternalNsCheck200>) => AddonsCloudflareExternalNsCheck200;
|
|
32
36
|
export declare const getAddonsInfoResponseMock: (overrideResponse?: Partial<AddonsInfo200>) => AddonsInfo200;
|
|
@@ -328,6 +332,10 @@ export declare const getBackupInitiateMockHandler: (overrideResponse?: BackupIni
|
|
|
328
332
|
export declare const getBackupStatusMockHandler: (overrideResponse?: BackupStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupStatus200> | BackupStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
329
333
|
export declare const getBackupListMockHandler: (overrideResponse?: BackupList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupList200> | BackupList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
330
334
|
export declare const getBackupMetaMockHandler: (overrideResponse?: BackupMeta200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupMeta200> | BackupMeta200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
335
|
+
export declare const getBackupSettingsMockHandler: (overrideResponse?: BackupSettings200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupSettings200> | BackupSettings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
336
|
+
export declare const getBackupSettingsCreateMockHandler: (overrideResponse?: BackupSettingsCreate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupSettingsCreate200> | BackupSettingsCreate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
337
|
+
export declare const getBackupSettingsUpdateMockHandler: (overrideResponse?: BackupSettingsUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<BackupSettingsUpdate200> | BackupSettingsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
338
|
+
export declare const getBackupPrefSetStatusMockHandler: (overrideResponse?: BackupPrefSetStatus200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<BackupPrefSetStatus200> | BackupPrefSetStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
331
339
|
export declare const getAddonsCloudflareMockHandler: (overrideResponse?: AddonsCloudflare200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<AddonsCloudflare200> | AddonsCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
332
340
|
export declare const getAddonsCloudflareExternalNsCheckMockHandler: (overrideResponse?: AddonsCloudflareExternalNsCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsCloudflareExternalNsCheck200> | AddonsCloudflareExternalNsCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
333
341
|
export declare const getAddonsInfoMockHandler: (overrideResponse?: AddonsInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsInfo200> | AddonsInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
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.1893.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -36,6 +36,10 @@ export const getBackupInitiateResponseMock = (overrideResponse = {}) => (Object.
|
|
|
36
36
|
export const getBackupStatusResponseMock = (overrideResponse = {}) => (Object.assign({ download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), message: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
37
37
|
export const getBackupListResponseMock = (overrideResponse = {}) => (Object.assign({ home: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_status: faker.helpers.arrayElement([{ download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]), time_created: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
38
38
|
export const getBackupMetaResponseMock = (overrideResponse = {}) => (Object.assign({ account: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_event_processing: faker.helpers.arrayElement([{ action: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), client_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), internal_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), snapshot_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), cbs_last_restore_timestamp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), site: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ snapshot_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_restore_consent_info: faker.helpers.arrayElement([{ backup_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current_state_backup_download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current_state_backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), internal_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), restore_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]) }, undefined]) }, overrideResponse));
|
|
39
|
+
export const getBackupSettingsResponseMock = (overrideResponse = {}) => (Object.assign({ backup_scope_config: faker.helpers.arrayElement([{}, undefined]), backup_subscription_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), backup_time_local: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), frequency: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), next_run_at_utc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), notifications: faker.helpers.arrayElement([{ failed_backups: faker.helpers.arrayElement([1]), general_notifications: faker.helpers.arrayElement([1]), storage_limit: faker.helpers.arrayElement([1]), successful_backups: faker.helpers.arrayElement([1]) }, undefined]), notify_enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), notify_policy: faker.helpers.arrayElement([{}, undefined]), provider_resource_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), retention_days: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), schedule_day: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), timezone: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
40
|
+
export const getBackupSettingsCreateResponseMock = (overrideResponse = {}) => (Object.assign({ preference_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), site_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
41
|
+
export const getBackupSettingsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ site_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
42
|
+
export const getBackupPrefSetStatusResponseMock = (overrideResponse = {}) => (Object.assign({ site_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
39
43
|
export const getAddonsCloudflareResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
40
44
|
export const getAddonsCloudflareExternalNsCheckResponseMock = (overrideResponse = {}) => (Object.assign({ base: faker.helpers.arrayElement([{ detected_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), matched: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), cdn_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), domain_ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), is_external: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), need_records: faker.helpers.arrayElement([{ content: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), server_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), server_ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), www: faker.helpers.arrayElement([{ detected_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), matched: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]) }, overrideResponse));
|
|
41
45
|
export const getAddonsInfoResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -71,7 +75,7 @@ export const getHostingAdvancedDnsResponseMock = (overrideResponse = {}) => (Obj
|
|
|
71
75
|
export const getHostingAdvancedDnsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
72
76
|
export const getHostingAdvancedDomainServicesCheckResponseMock = (overrideResponse = {}) => (Object.assign({ configure_domain_services: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), managed_cpanel_user_exists: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
73
77
|
export const getHostingAdvancedDomainServicesResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
74
|
-
export const getHostingAdvancedImagesResponseMock = (overrideResponse = {}) => (Object.assign({ images: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), arch_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), links: faker.helpers.arrayElement([{ community: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), doc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), forums: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.word.sample(), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) })) }, overrideResponse));
|
|
78
|
+
export const getHostingAdvancedImagesResponseMock = (overrideResponse = {}) => (Object.assign({ images: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), arch_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), links: faker.helpers.arrayElement([{ community: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), doc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), forums: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), manage_link: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_cpus: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_disk: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_ram: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), readme: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.word.sample(), undefined]), title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) })) }, overrideResponse));
|
|
75
79
|
export const getHostingAdvancedServerResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), hostname: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([{ other_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), primary_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
76
80
|
export const getHostingAdvancedServerStatusResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
77
81
|
export const getHostingAdvancedPasswordResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
@@ -193,7 +197,7 @@ export const getSshKeyResponseMock = (overrideResponse = {}) => (Object.assign({
|
|
|
193
197
|
export const getSshKeyGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), private_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
194
198
|
export const getSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
195
199
|
export const getHostingVisitorsResponseMock = (overrideResponse = {}) => (Object.assign({ daily: faker.helpers.arrayElement([{ data: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), date: faker.helpers.arrayElement([faker.word.sample(), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), total: faker.helpers.arrayElement([{ total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, undefined]), is_linked_domain: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), linked_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]) }, overrideResponse));
|
|
196
|
-
export const getPublicImagesResponseMock = (overrideResponse = {}) => (Object.assign({ limit: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), n_rows: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), page: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), arch_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), links: faker.helpers.arrayElement([{ community: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), doc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), forums: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), manage_link: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
200
|
+
export const getPublicImagesResponseMock = (overrideResponse = {}) => (Object.assign({ limit: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), n_rows: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), page: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), arch_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), links: faker.helpers.arrayElement([{ community: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), doc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), forums: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), manage_link: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_cpus: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_disk: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_ram: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), readme: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
197
201
|
export const getSitesInfoResponseMock = (overrideResponse = {}) => (Object.assign({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_multi_site: faker.helpers.arrayElement([{ canonicalize_aliases: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), enable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, undefined]) }, overrideResponse));
|
|
198
202
|
export const getSiteUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
|
|
199
203
|
export const getSiteResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.datatype.boolean() }, overrideResponse));
|
|
@@ -608,6 +612,46 @@ export const getBackupMetaMockHandler = (overrideResponse) => {
|
|
|
608
612
|
});
|
|
609
613
|
}));
|
|
610
614
|
};
|
|
615
|
+
export const getBackupSettingsMockHandler = (overrideResponse) => {
|
|
616
|
+
return http.get('*/v1/addons/:addonId/backup/sites/:siteId/settings', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
617
|
+
yield delay(0);
|
|
618
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
619
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
620
|
+
: getBackupSettingsResponseMock()), { status: 200,
|
|
621
|
+
headers: { 'Content-Type': 'application/json' }
|
|
622
|
+
});
|
|
623
|
+
}));
|
|
624
|
+
};
|
|
625
|
+
export const getBackupSettingsCreateMockHandler = (overrideResponse) => {
|
|
626
|
+
return http.post('*/v1/addons/:addonId/backup/sites/:siteId/settings', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
627
|
+
yield delay(0);
|
|
628
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
629
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
630
|
+
: getBackupSettingsCreateResponseMock()), { status: 200,
|
|
631
|
+
headers: { 'Content-Type': 'application/json' }
|
|
632
|
+
});
|
|
633
|
+
}));
|
|
634
|
+
};
|
|
635
|
+
export const getBackupSettingsUpdateMockHandler = (overrideResponse) => {
|
|
636
|
+
return http.put('*/v1/addons/:addonId/backup/sites/:siteId/settings', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
637
|
+
yield delay(0);
|
|
638
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
639
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
640
|
+
: getBackupSettingsUpdateResponseMock()), { status: 200,
|
|
641
|
+
headers: { 'Content-Type': 'application/json' }
|
|
642
|
+
});
|
|
643
|
+
}));
|
|
644
|
+
};
|
|
645
|
+
export const getBackupPrefSetStatusMockHandler = (overrideResponse) => {
|
|
646
|
+
return http.put('*/v1/addons/:addonId/backup/sites/:siteId/settings/status', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
647
|
+
yield delay(0);
|
|
648
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
649
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
650
|
+
: getBackupPrefSetStatusResponseMock()), { status: 200,
|
|
651
|
+
headers: { 'Content-Type': 'application/json' }
|
|
652
|
+
});
|
|
653
|
+
}));
|
|
654
|
+
};
|
|
611
655
|
export const getAddonsCloudflareMockHandler = (overrideResponse) => {
|
|
612
656
|
return http.delete('*/v1/addons/:addonId/cloudflare', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
613
657
|
yield delay(0);
|
|
@@ -3396,6 +3440,10 @@ export const getHostingUAPIMock = () => [
|
|
|
3396
3440
|
getBackupStatusMockHandler(),
|
|
3397
3441
|
getBackupListMockHandler(),
|
|
3398
3442
|
getBackupMetaMockHandler(),
|
|
3443
|
+
getBackupSettingsMockHandler(),
|
|
3444
|
+
getBackupSettingsCreateMockHandler(),
|
|
3445
|
+
getBackupSettingsUpdateMockHandler(),
|
|
3446
|
+
getBackupPrefSetStatusMockHandler(),
|
|
3399
3447
|
getAddonsCloudflareMockHandler(),
|
|
3400
3448
|
getAddonsCloudflareExternalNsCheckMockHandler(),
|
|
3401
3449
|
getAddonsInfoMockHandler(),
|
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.1893.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -1290,10 +1290,6 @@ export declare type UserHostingOverviewParams = {
|
|
|
1290
1290
|
*/
|
|
1291
1291
|
limit?: number;
|
|
1292
1292
|
};
|
|
1293
|
-
export declare type UserHosting200 = {
|
|
1294
|
-
/** Information for the paginated hosting accounts */
|
|
1295
|
-
rows?: UserHosting200RowsItem[];
|
|
1296
|
-
};
|
|
1297
1293
|
/**
|
|
1298
1294
|
* Usage statistics for staging sites
|
|
1299
1295
|
* @nullable
|
|
@@ -1315,6 +1311,70 @@ export declare type UserHosting200RowsItemUsedStage = {
|
|
|
1315
1311
|
*/
|
|
1316
1312
|
workers?: number | null;
|
|
1317
1313
|
} | null;
|
|
1314
|
+
export declare type UserHosting200RowsItem = {
|
|
1315
|
+
/** Additional information about the account */
|
|
1316
|
+
account_info?: UserHosting200RowsItemAccountInfo;
|
|
1317
|
+
/** HAL Account back_reference, used to link to the product instance */
|
|
1318
|
+
back_reference?: string;
|
|
1319
|
+
/**
|
|
1320
|
+
* Information from the billing system about this hosting account
|
|
1321
|
+
* @nullable
|
|
1322
|
+
*/
|
|
1323
|
+
billing?: UserHosting200RowsItemBilling;
|
|
1324
|
+
/**
|
|
1325
|
+
* Capability sites associated with the account
|
|
1326
|
+
* @nullable
|
|
1327
|
+
*/
|
|
1328
|
+
capability_sites?: string | null;
|
|
1329
|
+
/**
|
|
1330
|
+
* Feature set name ex: hosting_40s
|
|
1331
|
+
* @nullable
|
|
1332
|
+
*/
|
|
1333
|
+
feature_set?: string | null;
|
|
1334
|
+
/** Whether the product associated with this hosting account has panel mail (True) or not (False) */
|
|
1335
|
+
has_panel_mail?: boolean;
|
|
1336
|
+
/** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
|
|
1337
|
+
is_upgradeable?: boolean;
|
|
1338
|
+
/**
|
|
1339
|
+
* Account limits
|
|
1340
|
+
* @nullable
|
|
1341
|
+
*/
|
|
1342
|
+
limit?: UserHosting200RowsItemLimit;
|
|
1343
|
+
/**
|
|
1344
|
+
* Remote limits for the account
|
|
1345
|
+
* @nullable
|
|
1346
|
+
*/
|
|
1347
|
+
limit_remote?: UserHosting200RowsItemLimitRemote;
|
|
1348
|
+
/**
|
|
1349
|
+
* Package name
|
|
1350
|
+
* @nullable
|
|
1351
|
+
*/
|
|
1352
|
+
package?: string | null;
|
|
1353
|
+
/**
|
|
1354
|
+
* Control panel type
|
|
1355
|
+
* @nullable
|
|
1356
|
+
*/
|
|
1357
|
+
panel?: string | null;
|
|
1358
|
+
/**
|
|
1359
|
+
* Number of sites
|
|
1360
|
+
* @nullable
|
|
1361
|
+
*/
|
|
1362
|
+
sites?: number | null;
|
|
1363
|
+
/**
|
|
1364
|
+
* Usage statistics for non-staging sites
|
|
1365
|
+
* @nullable
|
|
1366
|
+
*/
|
|
1367
|
+
used?: UserHosting200RowsItemUsed;
|
|
1368
|
+
/**
|
|
1369
|
+
* Usage statistics for staging sites
|
|
1370
|
+
* @nullable
|
|
1371
|
+
*/
|
|
1372
|
+
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1373
|
+
};
|
|
1374
|
+
export declare type UserHosting200 = {
|
|
1375
|
+
/** Information for the paginated hosting accounts */
|
|
1376
|
+
rows?: UserHosting200RowsItem[];
|
|
1377
|
+
};
|
|
1318
1378
|
/**
|
|
1319
1379
|
* Usage statistics for non-staging sites
|
|
1320
1380
|
* @nullable
|
|
@@ -1429,66 +1489,6 @@ export declare type UserHosting200RowsItemBilling = {
|
|
|
1429
1489
|
*/
|
|
1430
1490
|
prod_name?: string | null;
|
|
1431
1491
|
} | null;
|
|
1432
|
-
export declare type UserHosting200RowsItem = {
|
|
1433
|
-
/** Additional information about the account */
|
|
1434
|
-
account_info?: UserHosting200RowsItemAccountInfo;
|
|
1435
|
-
/** HAL Account back_reference, used to link to the product instance */
|
|
1436
|
-
back_reference?: string;
|
|
1437
|
-
/**
|
|
1438
|
-
* Information from the billing system about this hosting account
|
|
1439
|
-
* @nullable
|
|
1440
|
-
*/
|
|
1441
|
-
billing?: UserHosting200RowsItemBilling;
|
|
1442
|
-
/**
|
|
1443
|
-
* Capability sites associated with the account
|
|
1444
|
-
* @nullable
|
|
1445
|
-
*/
|
|
1446
|
-
capability_sites?: string | null;
|
|
1447
|
-
/**
|
|
1448
|
-
* Feature set name ex: hosting_40s
|
|
1449
|
-
* @nullable
|
|
1450
|
-
*/
|
|
1451
|
-
feature_set?: string | null;
|
|
1452
|
-
/** Whether the product associated with this hosting account has panel mail (True) or not (False) */
|
|
1453
|
-
has_panel_mail?: boolean;
|
|
1454
|
-
/** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
|
|
1455
|
-
is_upgradeable?: boolean;
|
|
1456
|
-
/**
|
|
1457
|
-
* Account limits
|
|
1458
|
-
* @nullable
|
|
1459
|
-
*/
|
|
1460
|
-
limit?: UserHosting200RowsItemLimit;
|
|
1461
|
-
/**
|
|
1462
|
-
* Remote limits for the account
|
|
1463
|
-
* @nullable
|
|
1464
|
-
*/
|
|
1465
|
-
limit_remote?: UserHosting200RowsItemLimitRemote;
|
|
1466
|
-
/**
|
|
1467
|
-
* Package name
|
|
1468
|
-
* @nullable
|
|
1469
|
-
*/
|
|
1470
|
-
package?: string | null;
|
|
1471
|
-
/**
|
|
1472
|
-
* Control panel type
|
|
1473
|
-
* @nullable
|
|
1474
|
-
*/
|
|
1475
|
-
panel?: string | null;
|
|
1476
|
-
/**
|
|
1477
|
-
* Number of sites
|
|
1478
|
-
* @nullable
|
|
1479
|
-
*/
|
|
1480
|
-
sites?: number | null;
|
|
1481
|
-
/**
|
|
1482
|
-
* Usage statistics for non-staging sites
|
|
1483
|
-
* @nullable
|
|
1484
|
-
*/
|
|
1485
|
-
used?: UserHosting200RowsItemUsed;
|
|
1486
|
-
/**
|
|
1487
|
-
* Usage statistics for staging sites
|
|
1488
|
-
* @nullable
|
|
1489
|
-
*/
|
|
1490
|
-
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1491
|
-
};
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Region information for the account
|
|
1494
1494
|
* @nullable
|
|
@@ -2364,6 +2364,18 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
|
2364
2364
|
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
2365
2365
|
timestamp?: number;
|
|
2366
2366
|
};
|
|
2367
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
2368
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2369
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2370
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2371
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2372
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2373
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2374
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2375
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2376
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2377
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2378
|
+
};
|
|
2367
2379
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
2368
2380
|
[key: string]: number;
|
|
2369
2381
|
};
|
|
@@ -2378,18 +2390,6 @@ export declare type SitesMetricDimensions200DimensionsPageIsCachedItem = {
|
|
|
2378
2390
|
dimension?: SitesMetricDimensions200DimensionsPageIsCachedItemDimension;
|
|
2379
2391
|
timestamp?: number;
|
|
2380
2392
|
};
|
|
2381
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
2382
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2383
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2384
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2385
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2386
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2387
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2388
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2389
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2390
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2391
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2392
|
-
};
|
|
2393
2393
|
export declare type SitesMetricDimensions200DimensionsHttpVersionItemDimension = {
|
|
2394
2394
|
[key: string]: number;
|
|
2395
2395
|
};
|
|
@@ -2940,56 +2940,6 @@ export declare type SitesInfo200Staging = {
|
|
|
2940
2940
|
/** A list of staging sites of the current site */
|
|
2941
2941
|
sites?: number[];
|
|
2942
2942
|
} | null;
|
|
2943
|
-
export declare type SitesInfo200ResourcesStorage = {
|
|
2944
|
-
/** @nullable */
|
|
2945
|
-
available?: number | null;
|
|
2946
|
-
/** @nullable */
|
|
2947
|
-
total?: number | null;
|
|
2948
|
-
unit?: string;
|
|
2949
|
-
/** @nullable */
|
|
2950
|
-
used?: number | null;
|
|
2951
|
-
};
|
|
2952
|
-
export declare type SitesInfo200Resources = {
|
|
2953
|
-
storage?: SitesInfo200ResourcesStorage;
|
|
2954
|
-
/** @nullable */
|
|
2955
|
-
workers?: number | null;
|
|
2956
|
-
};
|
|
2957
|
-
/**
|
|
2958
|
-
* @nullable
|
|
2959
|
-
*/
|
|
2960
|
-
export declare type SitesInfo200PendingUrlData = {
|
|
2961
|
-
/**
|
|
2962
|
-
* The root domain name
|
|
2963
|
-
* @nullable
|
|
2964
|
-
*/
|
|
2965
|
-
base_domain?: string | null;
|
|
2966
|
-
/**
|
|
2967
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
2968
|
-
* @nullable
|
|
2969
|
-
*/
|
|
2970
|
-
domain?: string | null;
|
|
2971
|
-
/**
|
|
2972
|
-
* The current pending_url's HAL Domain ID
|
|
2973
|
-
* @nullable
|
|
2974
|
-
*/
|
|
2975
|
-
domain_id?: number | null;
|
|
2976
|
-
/** @nullable */
|
|
2977
|
-
error?: string | null;
|
|
2978
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
2979
|
-
is_temp?: boolean;
|
|
2980
|
-
/**
|
|
2981
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
2982
|
-
* @nullable
|
|
2983
|
-
*/
|
|
2984
|
-
job_failed?: boolean | null;
|
|
2985
|
-
/** @nullable */
|
|
2986
|
-
stage?: string | null;
|
|
2987
|
-
/**
|
|
2988
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
2989
|
-
* @nullable
|
|
2990
|
-
*/
|
|
2991
|
-
wp_session?: string | null;
|
|
2992
|
-
} | null;
|
|
2993
2943
|
/**
|
|
2994
2944
|
* @nullable
|
|
2995
2945
|
*/
|
|
@@ -3088,6 +3038,56 @@ export declare type SitesInfo200 = {
|
|
|
3088
3038
|
/** @nullable */
|
|
3089
3039
|
wp_multi_site?: SitesInfo200WpMultiSite;
|
|
3090
3040
|
};
|
|
3041
|
+
export declare type SitesInfo200ResourcesStorage = {
|
|
3042
|
+
/** @nullable */
|
|
3043
|
+
available?: number | null;
|
|
3044
|
+
/** @nullable */
|
|
3045
|
+
total?: number | null;
|
|
3046
|
+
unit?: string;
|
|
3047
|
+
/** @nullable */
|
|
3048
|
+
used?: number | null;
|
|
3049
|
+
};
|
|
3050
|
+
export declare type SitesInfo200Resources = {
|
|
3051
|
+
storage?: SitesInfo200ResourcesStorage;
|
|
3052
|
+
/** @nullable */
|
|
3053
|
+
workers?: number | null;
|
|
3054
|
+
};
|
|
3055
|
+
/**
|
|
3056
|
+
* @nullable
|
|
3057
|
+
*/
|
|
3058
|
+
export declare type SitesInfo200PendingUrlData = {
|
|
3059
|
+
/**
|
|
3060
|
+
* The root domain name
|
|
3061
|
+
* @nullable
|
|
3062
|
+
*/
|
|
3063
|
+
base_domain?: string | null;
|
|
3064
|
+
/**
|
|
3065
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
3066
|
+
* @nullable
|
|
3067
|
+
*/
|
|
3068
|
+
domain?: string | null;
|
|
3069
|
+
/**
|
|
3070
|
+
* The current pending_url's HAL Domain ID
|
|
3071
|
+
* @nullable
|
|
3072
|
+
*/
|
|
3073
|
+
domain_id?: number | null;
|
|
3074
|
+
/** @nullable */
|
|
3075
|
+
error?: string | null;
|
|
3076
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
3077
|
+
is_temp?: boolean;
|
|
3078
|
+
/**
|
|
3079
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
3080
|
+
* @nullable
|
|
3081
|
+
*/
|
|
3082
|
+
job_failed?: boolean | null;
|
|
3083
|
+
/** @nullable */
|
|
3084
|
+
stage?: string | null;
|
|
3085
|
+
/**
|
|
3086
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
3087
|
+
* @nullable
|
|
3088
|
+
*/
|
|
3089
|
+
wp_session?: string | null;
|
|
3090
|
+
} | null;
|
|
3091
3091
|
/**
|
|
3092
3092
|
* Links
|
|
3093
3093
|
* @nullable
|
|
@@ -3173,6 +3173,21 @@ export declare type PublicImages200RowsItem = {
|
|
|
3173
3173
|
* @nullable
|
|
3174
3174
|
*/
|
|
3175
3175
|
manage_link?: string | null;
|
|
3176
|
+
/**
|
|
3177
|
+
* Minimum cpus required to build on this image
|
|
3178
|
+
* @nullable
|
|
3179
|
+
*/
|
|
3180
|
+
min_cpus?: string | null;
|
|
3181
|
+
/**
|
|
3182
|
+
* Minimum disk space (in Gb) required to build on this image
|
|
3183
|
+
* @nullable
|
|
3184
|
+
*/
|
|
3185
|
+
min_disk?: string | null;
|
|
3186
|
+
/**
|
|
3187
|
+
* Minimum ram (in Gb) required to build on this image
|
|
3188
|
+
* @nullable
|
|
3189
|
+
*/
|
|
3190
|
+
min_ram?: string | null;
|
|
3176
3191
|
/** Image Name */
|
|
3177
3192
|
name?: string;
|
|
3178
3193
|
/**
|
|
@@ -3185,6 +3200,8 @@ export declare type PublicImages200RowsItem = {
|
|
|
3185
3200
|
* @nullable
|
|
3186
3201
|
*/
|
|
3187
3202
|
os_version?: string | null;
|
|
3203
|
+
/** The readme associated with the image */
|
|
3204
|
+
readme?: string;
|
|
3188
3205
|
/**
|
|
3189
3206
|
* Image Software
|
|
3190
3207
|
* @nullable
|
|
@@ -3492,6 +3509,10 @@ export declare type HostingShellToggleBody = {
|
|
|
3492
3509
|
/** boolean flag to enable or disable hosting shell */
|
|
3493
3510
|
enabled: boolean;
|
|
3494
3511
|
};
|
|
3512
|
+
export declare type HostingServerHits200ServerHitsLastNDaysItem = {
|
|
3513
|
+
hits: number;
|
|
3514
|
+
name: string;
|
|
3515
|
+
};
|
|
3495
3516
|
export declare type HostingServerHits200ServerHits = {
|
|
3496
3517
|
last_n_days: HostingServerHits200ServerHitsLastNDaysItem[];
|
|
3497
3518
|
total_hits: number;
|
|
@@ -3499,10 +3520,6 @@ export declare type HostingServerHits200ServerHits = {
|
|
|
3499
3520
|
export declare type HostingServerHits200 = {
|
|
3500
3521
|
server_hits: HostingServerHits200ServerHits;
|
|
3501
3522
|
};
|
|
3502
|
-
export declare type HostingServerHits200ServerHitsLastNDaysItem = {
|
|
3503
|
-
hits: number;
|
|
3504
|
-
name: string;
|
|
3505
|
-
};
|
|
3506
3523
|
export declare type HostingServerHitsParams = {
|
|
3507
3524
|
/**
|
|
3508
3525
|
* The source of the traffic (http, https, combined)
|
|
@@ -3566,6 +3583,9 @@ export declare type HostingRedirects200Item = {
|
|
|
3566
3583
|
url?: string;
|
|
3567
3584
|
wildcard?: boolean;
|
|
3568
3585
|
};
|
|
3586
|
+
export declare type ProductLicenseDetails200 = {
|
|
3587
|
+
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
3588
|
+
};
|
|
3569
3589
|
export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
|
|
3570
3590
|
expirationDate?: string;
|
|
3571
3591
|
prodInstId?: string;
|
|
@@ -3579,9 +3599,6 @@ export declare type ProductLicenseDetails200Wpsolution = {
|
|
|
3579
3599
|
creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
|
|
3580
3600
|
total?: number;
|
|
3581
3601
|
};
|
|
3582
|
-
export declare type ProductLicenseDetails200 = {
|
|
3583
|
-
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
3584
|
-
};
|
|
3585
3602
|
export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
|
|
3586
3603
|
export declare const ProductLicenseDetailsProductName: {
|
|
3587
3604
|
readonly wpsolution: "wpsolution";
|
|
@@ -4537,12 +4554,6 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4537
4554
|
/** list of rules to be applied to the filter */
|
|
4538
4555
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4539
4556
|
};
|
|
4540
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4541
|
-
/** The number of filters */
|
|
4542
|
-
count?: number;
|
|
4543
|
-
/** List of filters */
|
|
4544
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4545
|
-
};
|
|
4546
4557
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4547
4558
|
match?: FilterRuleMatch;
|
|
4548
4559
|
opt?: FilterRuleOpt;
|
|
@@ -4573,6 +4584,12 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4573
4584
|
/** Whether the filter is unescaped */
|
|
4574
4585
|
unescaped?: boolean;
|
|
4575
4586
|
};
|
|
4587
|
+
export declare type HostingEmailFiltersList200 = {
|
|
4588
|
+
/** The number of filters */
|
|
4589
|
+
count?: number;
|
|
4590
|
+
/** List of filters */
|
|
4591
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4592
|
+
};
|
|
4576
4593
|
export declare type HostingEmailFiltersListParams = {
|
|
4577
4594
|
/**
|
|
4578
4595
|
* The email account address to query filters by
|
|
@@ -4749,10 +4766,6 @@ export declare type HostingEmailUpdateBody = {
|
|
|
4749
4766
|
/** The password for the email */
|
|
4750
4767
|
password?: string;
|
|
4751
4768
|
};
|
|
4752
|
-
export declare type HostingEmailList200 = {
|
|
4753
|
-
/** List of email resources */
|
|
4754
|
-
rows?: HostingEmailList200RowsItem[];
|
|
4755
|
-
};
|
|
4756
4769
|
/**
|
|
4757
4770
|
* List of suspensions that affect the entire user account
|
|
4758
4771
|
* @nullable
|
|
@@ -4842,6 +4855,10 @@ export declare type HostingEmailList200RowsItem = {
|
|
|
4842
4855
|
*/
|
|
4843
4856
|
utf8_folders?: boolean | null;
|
|
4844
4857
|
};
|
|
4858
|
+
export declare type HostingEmailList200 = {
|
|
4859
|
+
/** List of email resources */
|
|
4860
|
+
rows?: HostingEmailList200RowsItem[];
|
|
4861
|
+
};
|
|
4845
4862
|
export declare type HostingEmailDelete200 = {
|
|
4846
4863
|
[key: string]: unknown;
|
|
4847
4864
|
};
|
|
@@ -5511,6 +5528,11 @@ export declare type HostingAdvancedImages200ImagesItem = {
|
|
|
5511
5528
|
current?: number | null;
|
|
5512
5529
|
/** The date and time the image was added */
|
|
5513
5530
|
date_added?: string;
|
|
5531
|
+
/**
|
|
5532
|
+
* Image Description
|
|
5533
|
+
* @nullable
|
|
5534
|
+
*/
|
|
5535
|
+
description?: string | null;
|
|
5514
5536
|
/**
|
|
5515
5537
|
* Whether this image is the default for docker site installations; If this = 1, it is an image that can be used when installing a Docker app
|
|
5516
5538
|
* @nullable
|
|
@@ -5528,14 +5550,46 @@ export declare type HostingAdvancedImages200ImagesItem = {
|
|
|
5528
5550
|
* @nullable
|
|
5529
5551
|
*/
|
|
5530
5552
|
lts?: number | null;
|
|
5553
|
+
/**
|
|
5554
|
+
* Manage Link
|
|
5555
|
+
* @nullable
|
|
5556
|
+
*/
|
|
5557
|
+
manage_link?: string | null;
|
|
5558
|
+
/**
|
|
5559
|
+
* Minimum cpus required to build on this image
|
|
5560
|
+
* @nullable
|
|
5561
|
+
*/
|
|
5562
|
+
min_cpus?: string | null;
|
|
5563
|
+
/**
|
|
5564
|
+
* Minimum disk space (in Gb) required to build on this image
|
|
5565
|
+
* @nullable
|
|
5566
|
+
*/
|
|
5567
|
+
min_disk?: string | null;
|
|
5568
|
+
/**
|
|
5569
|
+
* Minimum ram (in Gb) required to build on this image
|
|
5570
|
+
* @nullable
|
|
5571
|
+
*/
|
|
5572
|
+
min_ram?: string | null;
|
|
5531
5573
|
/** The full image name */
|
|
5532
5574
|
name?: string;
|
|
5533
5575
|
/** The name of the operating system included on the image */
|
|
5534
5576
|
os_name?: string;
|
|
5535
5577
|
/** The version of the operating system included on the image */
|
|
5536
5578
|
os_version?: string;
|
|
5579
|
+
/** The readme associated with the image */
|
|
5580
|
+
readme?: string;
|
|
5537
5581
|
/** The software included on the image */
|
|
5538
5582
|
software?: string;
|
|
5583
|
+
/**
|
|
5584
|
+
* Image Title
|
|
5585
|
+
* @nullable
|
|
5586
|
+
*/
|
|
5587
|
+
title?: string | null;
|
|
5588
|
+
/**
|
|
5589
|
+
* Image Type
|
|
5590
|
+
* @nullable
|
|
5591
|
+
*/
|
|
5592
|
+
type?: string | null;
|
|
5539
5593
|
/**
|
|
5540
5594
|
* Whether this image can be rebuilt to without a docker site
|
|
5541
5595
|
* @nullable
|
|
@@ -5554,6 +5608,10 @@ export declare type HostingAdvancedImagesParams = {
|
|
|
5554
5608
|
* Maximum number of items to return. If not provided, returns all items from start index
|
|
5555
5609
|
*/
|
|
5556
5610
|
limit?: number;
|
|
5611
|
+
/**
|
|
5612
|
+
* Which image to return information about
|
|
5613
|
+
*/
|
|
5614
|
+
image_id?: number;
|
|
5557
5615
|
};
|
|
5558
5616
|
export declare type HostingAdvancedDomainServices200 = {
|
|
5559
5617
|
success?: number;
|
|
@@ -5679,18 +5737,6 @@ export declare type HostingAccount200ResourcesStorage = {
|
|
|
5679
5737
|
/** @nullable */
|
|
5680
5738
|
used?: number | null;
|
|
5681
5739
|
};
|
|
5682
|
-
export declare type HostingAccount200ResourcesStaging = {
|
|
5683
|
-
storage?: HostingAccount200ResourcesStagingStorage;
|
|
5684
|
-
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
5685
|
-
};
|
|
5686
|
-
/**
|
|
5687
|
-
* @nullable
|
|
5688
|
-
*/
|
|
5689
|
-
export declare type HostingAccount200Resources = {
|
|
5690
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
5691
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
5692
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
5693
|
-
} | null;
|
|
5694
5740
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
5695
5741
|
/** @nullable */
|
|
5696
5742
|
available?: number | null;
|
|
@@ -5708,6 +5754,18 @@ export declare type HostingAccount200ResourcesStagingStorage = {
|
|
|
5708
5754
|
/** @nullable */
|
|
5709
5755
|
used?: number | null;
|
|
5710
5756
|
};
|
|
5757
|
+
export declare type HostingAccount200ResourcesStaging = {
|
|
5758
|
+
storage?: HostingAccount200ResourcesStagingStorage;
|
|
5759
|
+
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
5760
|
+
};
|
|
5761
|
+
/**
|
|
5762
|
+
* @nullable
|
|
5763
|
+
*/
|
|
5764
|
+
export declare type HostingAccount200Resources = {
|
|
5765
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
5766
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
5767
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
5768
|
+
} | null;
|
|
5711
5769
|
export declare type HostingAccount200Billing = {
|
|
5712
5770
|
prod_code?: string;
|
|
5713
5771
|
product_name?: string;
|
|
@@ -6247,6 +6305,119 @@ export declare type AddonsCloudflareExternalNsCheckParams = {
|
|
|
6247
6305
|
export declare type AddonsCloudflare200 = {
|
|
6248
6306
|
status?: string;
|
|
6249
6307
|
};
|
|
6308
|
+
export declare type BackupPrefSetStatus200 = {
|
|
6309
|
+
site_id?: number;
|
|
6310
|
+
status?: string;
|
|
6311
|
+
success?: number;
|
|
6312
|
+
};
|
|
6313
|
+
/**
|
|
6314
|
+
* enable or disable scheduled backups for the site
|
|
6315
|
+
*/
|
|
6316
|
+
export declare type BackupPrefSetStatusBodyStatus = typeof BackupPrefSetStatusBodyStatus[keyof typeof BackupPrefSetStatusBodyStatus];
|
|
6317
|
+
export declare const BackupPrefSetStatusBodyStatus: {
|
|
6318
|
+
readonly enable: "enable";
|
|
6319
|
+
readonly disable: "disable";
|
|
6320
|
+
};
|
|
6321
|
+
export declare type BackupPrefSetStatusBody = {
|
|
6322
|
+
/** enable or disable scheduled backups for the site */
|
|
6323
|
+
status: BackupPrefSetStatusBodyStatus;
|
|
6324
|
+
};
|
|
6325
|
+
export declare type BackupSettingsUpdate200 = {
|
|
6326
|
+
site_id?: number;
|
|
6327
|
+
success?: number;
|
|
6328
|
+
};
|
|
6329
|
+
export declare type BackupSettingsUpdateBody = {
|
|
6330
|
+
backup_timezone?: string;
|
|
6331
|
+
frequency?: string;
|
|
6332
|
+
notifications?: BackupNotificationsEmail;
|
|
6333
|
+
retention_days?: string;
|
|
6334
|
+
/**
|
|
6335
|
+
* Optional. For weekly: Monday = 1, Tuesday = 2, etc. For monthly: day of the month. Omit or null when frequency is daily.
|
|
6336
|
+
* @nullable
|
|
6337
|
+
*/
|
|
6338
|
+
schedule_day?: string | null;
|
|
6339
|
+
start_hours?: string;
|
|
6340
|
+
start_mins?: string;
|
|
6341
|
+
};
|
|
6342
|
+
export declare type BackupSettingsCreate200 = {
|
|
6343
|
+
preference_id?: number;
|
|
6344
|
+
site_id?: number;
|
|
6345
|
+
success?: number;
|
|
6346
|
+
};
|
|
6347
|
+
export declare type BackupSettingsCreateBody = {
|
|
6348
|
+
/**
|
|
6349
|
+
* IANA timezone (e.g. America/New_York) passed to HAL backup_pref_create.
|
|
6350
|
+
* @nullable
|
|
6351
|
+
*/
|
|
6352
|
+
backup_timezone?: string | null;
|
|
6353
|
+
/** @nullable */
|
|
6354
|
+
frequency?: string | null;
|
|
6355
|
+
notifications?: BackupNotificationsEmail;
|
|
6356
|
+
retention_days: string;
|
|
6357
|
+
/**
|
|
6358
|
+
* Optional. For weekly: Monday = 1, Tuesday = 2, etc. For monthly: day of the month. When frequency is daily, HUAPI sends null for HAL.
|
|
6359
|
+
* @nullable
|
|
6360
|
+
*/
|
|
6361
|
+
schedule_day?: string | null;
|
|
6362
|
+
start_hours: string;
|
|
6363
|
+
start_mins: string;
|
|
6364
|
+
};
|
|
6365
|
+
/**
|
|
6366
|
+
* @nullable
|
|
6367
|
+
*/
|
|
6368
|
+
export declare type BackupSettings200NotifyPolicy = {
|
|
6369
|
+
[key: string]: unknown;
|
|
6370
|
+
} | null;
|
|
6371
|
+
/**
|
|
6372
|
+
* Email notification flags (0 = off, 1 = on).
|
|
6373
|
+
* @nullable
|
|
6374
|
+
*/
|
|
6375
|
+
export declare type BackupSettings200Notifications = BackupNotificationsEmail | null;
|
|
6376
|
+
/**
|
|
6377
|
+
* @nullable
|
|
6378
|
+
*/
|
|
6379
|
+
export declare type BackupSettings200BackupScopeConfig = {
|
|
6380
|
+
[key: string]: unknown;
|
|
6381
|
+
} | null;
|
|
6382
|
+
export declare type BackupSettings200 = {
|
|
6383
|
+
/** @nullable */
|
|
6384
|
+
backup_scope_config?: BackupSettings200BackupScopeConfig;
|
|
6385
|
+
/** @nullable */
|
|
6386
|
+
backup_subscription_id?: string | null;
|
|
6387
|
+
/** @nullable */
|
|
6388
|
+
backup_time_local?: string | null;
|
|
6389
|
+
/** @nullable */
|
|
6390
|
+
frequency?: string | null;
|
|
6391
|
+
/** @nullable */
|
|
6392
|
+
id?: number | null;
|
|
6393
|
+
/** @nullable */
|
|
6394
|
+
next_run_at_utc?: string | null;
|
|
6395
|
+
/**
|
|
6396
|
+
* Email notification flags (0 = off, 1 = on).
|
|
6397
|
+
* @nullable
|
|
6398
|
+
*/
|
|
6399
|
+
notifications?: BackupSettings200Notifications;
|
|
6400
|
+
/** @nullable */
|
|
6401
|
+
notify_enabled?: boolean | null;
|
|
6402
|
+
/** @nullable */
|
|
6403
|
+
notify_policy?: BackupSettings200NotifyPolicy;
|
|
6404
|
+
/** @nullable */
|
|
6405
|
+
provider_resource_id?: string | null;
|
|
6406
|
+
/** @nullable */
|
|
6407
|
+
retention_days?: number | null;
|
|
6408
|
+
/**
|
|
6409
|
+
* Scheduled day label from HAL (e.g. '14th' for monthly). If HAL sends 'undef', HUAPI normalizes it to null.
|
|
6410
|
+
* @nullable
|
|
6411
|
+
*/
|
|
6412
|
+
schedule_day?: string | null;
|
|
6413
|
+
/**
|
|
6414
|
+
* active, paused, suspended, site_deleted
|
|
6415
|
+
* @nullable
|
|
6416
|
+
*/
|
|
6417
|
+
status?: string | null;
|
|
6418
|
+
/** @nullable */
|
|
6419
|
+
timezone?: string | null;
|
|
6420
|
+
};
|
|
6250
6421
|
export declare type BackupMeta200 = {
|
|
6251
6422
|
account?: BackupMeta200Account;
|
|
6252
6423
|
site?: BackupMeta200Site;
|
|
@@ -6523,6 +6694,12 @@ export declare type CodeguardBackupCreateBody = {
|
|
|
6523
6694
|
/** The id of the website the given database is associated with. */
|
|
6524
6695
|
website_id?: number;
|
|
6525
6696
|
};
|
|
6697
|
+
export declare type CodeguardBackupList200BackupsItemDatabaseBackupsItem = {
|
|
6698
|
+
commit_id?: string;
|
|
6699
|
+
event_time?: string;
|
|
6700
|
+
id?: number;
|
|
6701
|
+
recommended?: boolean;
|
|
6702
|
+
};
|
|
6526
6703
|
export declare type CodeguardBackupList200BackupsItem = {
|
|
6527
6704
|
database_backups?: CodeguardBackupList200BackupsItemDatabaseBackupsItem[];
|
|
6528
6705
|
event_time?: string;
|
|
@@ -6531,12 +6708,6 @@ export declare type CodeguardBackupList200BackupsItem = {
|
|
|
6531
6708
|
export declare type CodeguardBackupList200 = {
|
|
6532
6709
|
backups?: CodeguardBackupList200BackupsItem[];
|
|
6533
6710
|
};
|
|
6534
|
-
export declare type CodeguardBackupList200BackupsItemDatabaseBackupsItem = {
|
|
6535
|
-
commit_id?: string;
|
|
6536
|
-
event_time?: string;
|
|
6537
|
-
id?: number;
|
|
6538
|
-
recommended?: boolean;
|
|
6539
|
-
};
|
|
6540
6711
|
export declare type CodeguardBackupListParams = {
|
|
6541
6712
|
website_id: number;
|
|
6542
6713
|
};
|
|
@@ -6663,12 +6834,6 @@ export declare type AccountHostingListParams = {
|
|
|
6663
6834
|
*/
|
|
6664
6835
|
server_type?: string[];
|
|
6665
6836
|
};
|
|
6666
|
-
export declare type AccountFeatures200 = {
|
|
6667
|
-
/** Feature information for the paginated product instances */
|
|
6668
|
-
rows?: AccountFeatures200RowsItem[];
|
|
6669
|
-
/** Total number of product instance IDs available to that account */
|
|
6670
|
-
total_count?: number;
|
|
6671
|
-
};
|
|
6672
6837
|
/**
|
|
6673
6838
|
* Usage statistics
|
|
6674
6839
|
* @nullable
|
|
@@ -6929,6 +7094,12 @@ export declare type AccountFeatures200RowsItem = {
|
|
|
6929
7094
|
*/
|
|
6930
7095
|
used?: AccountFeatures200RowsItemUsed;
|
|
6931
7096
|
};
|
|
7097
|
+
export declare type AccountFeatures200 = {
|
|
7098
|
+
/** Feature information for the paginated product instances */
|
|
7099
|
+
rows?: AccountFeatures200RowsItem[];
|
|
7100
|
+
/** Total number of product instance IDs available to that account */
|
|
7101
|
+
total_count?: number;
|
|
7102
|
+
};
|
|
6932
7103
|
export declare type AccountFeaturesParams = {
|
|
6933
7104
|
/**
|
|
6934
7105
|
* Starting index for pagination (default: 0)
|
|
@@ -6991,6 +7162,51 @@ export declare type AccountEventListParams = {
|
|
|
6991
7162
|
*/
|
|
6992
7163
|
date_last?: string;
|
|
6993
7164
|
};
|
|
7165
|
+
/**
|
|
7166
|
+
* Notify on successful backups
|
|
7167
|
+
*/
|
|
7168
|
+
export declare type BackupNotificationsEmailSuccessfulBackups = typeof BackupNotificationsEmailSuccessfulBackups[keyof typeof BackupNotificationsEmailSuccessfulBackups];
|
|
7169
|
+
export declare const BackupNotificationsEmailSuccessfulBackups: {
|
|
7170
|
+
readonly NUMBER_0: 0;
|
|
7171
|
+
readonly NUMBER_1: 1;
|
|
7172
|
+
};
|
|
7173
|
+
/**
|
|
7174
|
+
* Notify when approaching storage limit
|
|
7175
|
+
*/
|
|
7176
|
+
export declare type BackupNotificationsEmailStorageLimit = typeof BackupNotificationsEmailStorageLimit[keyof typeof BackupNotificationsEmailStorageLimit];
|
|
7177
|
+
export declare const BackupNotificationsEmailStorageLimit: {
|
|
7178
|
+
readonly NUMBER_0: 0;
|
|
7179
|
+
readonly NUMBER_1: 1;
|
|
7180
|
+
};
|
|
7181
|
+
/**
|
|
7182
|
+
* General backup email notices
|
|
7183
|
+
*/
|
|
7184
|
+
export declare type BackupNotificationsEmailGeneralNotifications = typeof BackupNotificationsEmailGeneralNotifications[keyof typeof BackupNotificationsEmailGeneralNotifications];
|
|
7185
|
+
export declare const BackupNotificationsEmailGeneralNotifications: {
|
|
7186
|
+
readonly NUMBER_0: 0;
|
|
7187
|
+
readonly NUMBER_1: 1;
|
|
7188
|
+
};
|
|
7189
|
+
/**
|
|
7190
|
+
* Notify on failed backups
|
|
7191
|
+
*/
|
|
7192
|
+
export declare type BackupNotificationsEmailFailedBackups = typeof BackupNotificationsEmailFailedBackups[keyof typeof BackupNotificationsEmailFailedBackups];
|
|
7193
|
+
export declare const BackupNotificationsEmailFailedBackups: {
|
|
7194
|
+
readonly NUMBER_0: 0;
|
|
7195
|
+
readonly NUMBER_1: 1;
|
|
7196
|
+
};
|
|
7197
|
+
/**
|
|
7198
|
+
* Email notification
|
|
7199
|
+
*/
|
|
7200
|
+
export interface BackupNotificationsEmail {
|
|
7201
|
+
/** Notify on failed backups */
|
|
7202
|
+
failed_backups: BackupNotificationsEmailFailedBackups;
|
|
7203
|
+
/** General backup email notices */
|
|
7204
|
+
general_notifications: BackupNotificationsEmailGeneralNotifications;
|
|
7205
|
+
/** Notify when approaching storage limit */
|
|
7206
|
+
storage_limit: BackupNotificationsEmailStorageLimit;
|
|
7207
|
+
/** Notify on successful backups */
|
|
7208
|
+
successful_backups: BackupNotificationsEmailSuccessfulBackups;
|
|
7209
|
+
}
|
|
6994
7210
|
/**
|
|
6995
7211
|
* Which character set to use for the autorespond email content
|
|
6996
7212
|
*/
|
package/src/index.schemas.js
CHANGED
|
@@ -353,6 +353,11 @@ export const AccessLogsType = {
|
|
|
353
353
|
all: 'all',
|
|
354
354
|
};
|
|
355
355
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
356
|
+
export const BackupPrefSetStatusBodyStatus = {
|
|
357
|
+
enable: 'enable',
|
|
358
|
+
disable: 'disable',
|
|
359
|
+
};
|
|
360
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
356
361
|
export const BackupListBackupType = {
|
|
357
362
|
full: 'full',
|
|
358
363
|
home: 'home',
|
|
@@ -365,6 +370,26 @@ export const BackupInitiateBodyBackupType = {
|
|
|
365
370
|
full: 'full',
|
|
366
371
|
};
|
|
367
372
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
373
|
+
export const BackupNotificationsEmailSuccessfulBackups = {
|
|
374
|
+
NUMBER_0: 0,
|
|
375
|
+
NUMBER_1: 1,
|
|
376
|
+
};
|
|
377
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
378
|
+
export const BackupNotificationsEmailStorageLimit = {
|
|
379
|
+
NUMBER_0: 0,
|
|
380
|
+
NUMBER_1: 1,
|
|
381
|
+
};
|
|
382
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
383
|
+
export const BackupNotificationsEmailGeneralNotifications = {
|
|
384
|
+
NUMBER_0: 0,
|
|
385
|
+
NUMBER_1: 1,
|
|
386
|
+
};
|
|
387
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
388
|
+
export const BackupNotificationsEmailFailedBackups = {
|
|
389
|
+
NUMBER_0: 0,
|
|
390
|
+
NUMBER_1: 1,
|
|
391
|
+
};
|
|
392
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
368
393
|
export const AutoresponderCharset = {
|
|
369
394
|
'ansi_x3110-1983': 'ansi_x3.110-1983',
|
|
370
395
|
'ansi_x34-1968': 'ansi_x3.4-1968',
|