@newfold/huapi-js 2.1587.0 → 2.1617.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 +32 -1
- package/src/index.js +23 -1
- package/src/index.msw.d.ts +3 -1
- package/src/index.msw.js +15 -3
- package/src/index.schemas.d.ts +269 -215
- package/src/index.schemas.js +7 -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, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHostings200, UserHostingsParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHostings200, UserHostingsParams, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -8570,6 +8570,37 @@ export declare const useBackupCreateV3: <TError = AxiosError<unknown, any>, TCon
|
|
|
8570
8570
|
addonId: number;
|
|
8571
8571
|
data: BackupCreateV3Body;
|
|
8572
8572
|
}, TContext>;
|
|
8573
|
+
/**
|
|
8574
|
+
* Add a site to the current hosting.
|
|
8575
|
+
* @summary sites add
|
|
8576
|
+
*/
|
|
8577
|
+
export declare const hostingSiteAddV3: (hostingId: string, hostingSiteAddV3Body: HostingSiteAddV3Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSiteAddV3200>>;
|
|
8578
|
+
export declare const getHostingSiteAddV3MutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
8579
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingSiteAddV3200, any>, TError, {
|
|
8580
|
+
hostingId: string;
|
|
8581
|
+
data: HostingSiteAddV3Body;
|
|
8582
|
+
}, TContext> | undefined;
|
|
8583
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
8584
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingSiteAddV3200, any>, TError, {
|
|
8585
|
+
hostingId: string;
|
|
8586
|
+
data: HostingSiteAddV3Body;
|
|
8587
|
+
}, TContext>;
|
|
8588
|
+
export declare type HostingSiteAddV3MutationResult = NonNullable<Awaited<ReturnType<typeof hostingSiteAddV3>>>;
|
|
8589
|
+
export declare type HostingSiteAddV3MutationBody = HostingSiteAddV3Body;
|
|
8590
|
+
export declare type HostingSiteAddV3MutationError = AxiosError<unknown>;
|
|
8591
|
+
/**
|
|
8592
|
+
* @summary sites add
|
|
8593
|
+
*/
|
|
8594
|
+
export declare const useHostingSiteAddV3: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
8595
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingSiteAddV3200, any>, TError, {
|
|
8596
|
+
hostingId: string;
|
|
8597
|
+
data: HostingSiteAddV3Body;
|
|
8598
|
+
}, TContext> | undefined;
|
|
8599
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
8600
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingSiteAddV3200, any>, TError, {
|
|
8601
|
+
hostingId: string;
|
|
8602
|
+
data: HostingSiteAddV3Body;
|
|
8603
|
+
}, TContext>;
|
|
8573
8604
|
/**
|
|
8574
8605
|
* Import public ssh key
|
|
8575
8606
|
* @summary Import ssh key
|
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.1617.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -6621,6 +6621,28 @@ export const useBackupCreateV3 = (options) => {
|
|
|
6621
6621
|
const mutationOptions = getBackupCreateV3MutationOptions(options);
|
|
6622
6622
|
return useMutation(mutationOptions);
|
|
6623
6623
|
};
|
|
6624
|
+
/**
|
|
6625
|
+
* Add a site to the current hosting.
|
|
6626
|
+
* @summary sites add
|
|
6627
|
+
*/
|
|
6628
|
+
export const hostingSiteAddV3 = (hostingId, hostingSiteAddV3Body, options) => {
|
|
6629
|
+
return axios.post(`/v3/hosting/${hostingId}/sites`, hostingSiteAddV3Body, options);
|
|
6630
|
+
};
|
|
6631
|
+
export const getHostingSiteAddV3MutationOptions = (options) => {
|
|
6632
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
6633
|
+
const mutationFn = (props) => {
|
|
6634
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
6635
|
+
return hostingSiteAddV3(hostingId, data, axiosOptions);
|
|
6636
|
+
};
|
|
6637
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
6638
|
+
};
|
|
6639
|
+
/**
|
|
6640
|
+
* @summary sites add
|
|
6641
|
+
*/
|
|
6642
|
+
export const useHostingSiteAddV3 = (options) => {
|
|
6643
|
+
const mutationOptions = getHostingSiteAddV3MutationOptions(options);
|
|
6644
|
+
return useMutation(mutationOptions);
|
|
6645
|
+
};
|
|
6624
6646
|
/**
|
|
6625
6647
|
* Import public ssh key
|
|
6626
6648
|
* @summary Import ssh key
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHostings200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHostings200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -270,6 +270,7 @@ export declare const getSitesSecuritySitelockV2ResponseMock: (overrideResponse?:
|
|
|
270
270
|
export declare const getSitesSshUserListV2ResponseMock: (overrideResponse?: Partial<SitesSshUserListV2200>) => SitesSshUserListV2200;
|
|
271
271
|
export declare const getSiteUsersV2ResponseMock: (overrideResponse?: Partial<SiteUsersV2200>) => SiteUsersV2200;
|
|
272
272
|
export declare const getBackupCreateV3ResponseMock: (overrideResponse?: Partial<BackupCreateV3200>) => BackupCreateV3200;
|
|
273
|
+
export declare const getHostingSiteAddV3ResponseMock: (overrideResponse?: Partial<HostingSiteAddV3200>) => HostingSiteAddV3200;
|
|
273
274
|
export declare const getSshKeyImportV3ResponseMock: (overrideResponse?: Partial<SshKeyImportV3200>) => SshKeyImportV3200;
|
|
274
275
|
export declare const getSshKeyListV3ResponseMock: (overrideResponse?: Partial<SshKeyListV3200>) => SshKeyListV3200;
|
|
275
276
|
export declare const getSitesListV3ResponseMock: (overrideResponse?: Partial<SitesListV3200>) => SitesListV3200;
|
|
@@ -546,6 +547,7 @@ export declare const getSitesSecuritySitelockV2MockHandler: (overrideResponse?:
|
|
|
546
547
|
export declare const getSitesSshUserListV2MockHandler: (overrideResponse?: SitesSshUserListV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSshUserListV2200> | SitesSshUserListV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
547
548
|
export declare const getSiteUsersV2MockHandler: (overrideResponse?: SiteUsersV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SiteUsersV2200> | SiteUsersV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
548
549
|
export declare const getBackupCreateV3MockHandler: (overrideResponse?: BackupCreateV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<BackupCreateV3200> | BackupCreateV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
550
|
+
export declare const getHostingSiteAddV3MockHandler: (overrideResponse?: HostingSiteAddV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingSiteAddV3200> | HostingSiteAddV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
549
551
|
export declare const getSshKeyImportV3MockHandler: (overrideResponse?: SshKeyImportV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SshKeyImportV3200> | SshKeyImportV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
550
552
|
export declare const getSshKeyListV3MockHandler: (overrideResponse?: SshKeyListV3200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SshKeyListV3200> | SshKeyListV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
551
553
|
export declare const getSitesListV3MockHandler: (overrideResponse?: SitesListV3200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesListV3200> | SitesListV3200) | 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.1617.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -40,7 +40,7 @@ export const getAddonsCloudflareResponseMock = (overrideResponse = {}) => (Objec
|
|
|
40
40
|
export const getAddonsInfoResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
41
41
|
export const getAddonsJetpackValidateResponseMock = (overrideResponse = {}) => (Object.assign({ is_connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
42
42
|
export const getAddonsSpamexpertsSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
43
|
-
export const getAddonsSyncResponseMock = (overrideResponse = {}) => (Object.assign({
|
|
43
|
+
export const getAddonsSyncResponseMock = (overrideResponse = {}) => (Object.assign({ previous_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
44
44
|
export const getWebzaiSsoResponseMock = (overrideResponse = {}) => (Object.assign({ sso: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
45
45
|
export const getWeeblySsoResponseMock = (overrideResponse = {}) => (Object.assign({ sso: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
46
46
|
export const getDomainInfoResponseMock = (overrideResponse = {}) => (Object.assign({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), authoritative: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), autogen_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing_account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), billing_status: 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]), date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), dns_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), docroot: faker.helpers.arrayElement([faker.word.sample(), null]), domain: faker.word.sample(), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), hosting_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), id: faker.number.int({ min: undefined, max: undefined }), is_internal: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), nameservers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), product_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), setup_progress: faker.helpers.arrayElement([{ validate_cdn: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_cdn_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_dns: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_auto_repair: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_ssl: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_ssl_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_ssl_error_table: faker.helpers.arrayElement([{}, undefined]) }, undefined]), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_prod_inst_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_tier: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), third_party_dns: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), type: faker.word.sample() }, overrideResponse));
|
|
@@ -281,7 +281,7 @@ export const getUserHostingsResponseMock = (overrideResponse = {}) => (Object.as
|
|
|
281
281
|
export const getAddonsSitelockSsoV2ResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
282
282
|
export const getBackupCreateV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
283
283
|
export const getBackupDownloadV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
284
|
-
export const getBackupListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ backups: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_creation_time: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), schedule_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
284
|
+
export const getBackupListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ backups: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_creation_time: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), dc_location: faker.helpers.arrayElement([faker.word.sample(), undefined]), schedule_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), timezone: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
285
285
|
export const getBackupRestoreV2ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
286
286
|
export const getBackupStatusV2ResponseMock = (overrideResponse = {}) => (Object.assign({ backup_download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
287
287
|
export const getDbListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ databases: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), sitename: faker.helpers.arrayElement([faker.word.sample(), undefined]), sizemib: faker.helpers.arrayElement([faker.word.sample(), undefined]), usercount: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), userlist: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ db: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) })), undefined]) }, overrideResponse));
|
|
@@ -303,6 +303,7 @@ export const getSitesSecuritySitelockV2ResponseMock = (overrideResponse = {}) =>
|
|
|
303
303
|
export const getSitesSshUserListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ users: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ installed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_active: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), public_key_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
304
304
|
export const getSiteUsersV2ResponseMock = (overrideResponse = {}) => (Object.assign({ total_users: faker.number.int({ min: undefined, max: undefined }), users: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ display_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.number.int({ min: undefined, max: undefined }), meta: faker.helpers.arrayElement([{ maestro_web_pro: faker.helpers.arrayElement([faker.word.sample(), undefined]), maestro_wpp_identifier: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), post_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), role: faker.word.sample(), user_email: faker.word.sample(), user_id: faker.number.int({ min: undefined, max: undefined }), user_login: faker.word.sample(), user_nicename: faker.word.sample() })) }, overrideResponse));
|
|
305
305
|
export const getBackupCreateV3ResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
306
|
+
export const getHostingSiteAddV3ResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
306
307
|
export const getSshKeyImportV3ResponseMock = (overrideResponse = {}) => (Object.assign({ public_key_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
307
308
|
export const getSshKeyListV3ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ authorize: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), mtime: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
308
309
|
export const getSitesListV3ResponseMock = (overrideResponse = {}) => (Object.assign({ items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ 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]), domain_ptrs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({})), 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.word.sample(), 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.helpers.arrayElement([faker.word.sample(), null]), 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.helpers.arrayElement([faker.word.sample(), null]), 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]) })), undefined]), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), page: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), rows: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -3027,6 +3028,16 @@ export const getBackupCreateV3MockHandler = (overrideResponse) => {
|
|
|
3027
3028
|
});
|
|
3028
3029
|
}));
|
|
3029
3030
|
};
|
|
3031
|
+
export const getHostingSiteAddV3MockHandler = (overrideResponse) => {
|
|
3032
|
+
return http.post('*/v3/hosting/:hostingId/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3033
|
+
yield delay(0);
|
|
3034
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
3035
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
3036
|
+
: getHostingSiteAddV3ResponseMock()), { status: 200,
|
|
3037
|
+
headers: { 'Content-Type': 'application/json' }
|
|
3038
|
+
});
|
|
3039
|
+
}));
|
|
3040
|
+
};
|
|
3030
3041
|
export const getSshKeyImportV3MockHandler = (overrideResponse) => {
|
|
3031
3042
|
return http.post('*/v3/hosting/:hostingId/ssh/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3032
3043
|
yield delay(0);
|
|
@@ -3340,6 +3351,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3340
3351
|
getSitesSshUserListV2MockHandler(),
|
|
3341
3352
|
getSiteUsersV2MockHandler(),
|
|
3342
3353
|
getBackupCreateV3MockHandler(),
|
|
3354
|
+
getHostingSiteAddV3MockHandler(),
|
|
3343
3355
|
getSshKeyImportV3MockHandler(),
|
|
3344
3356
|
getSshKeyListV3MockHandler(),
|
|
3345
3357
|
getSitesListV3MockHandler(),
|
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.1617.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -55,6 +55,57 @@ export declare type SshKeyImportV3Body = {
|
|
|
55
55
|
/** The entity that initiated the GAP call */
|
|
56
56
|
source?: string;
|
|
57
57
|
};
|
|
58
|
+
export declare type HostingSiteAddV3200 = {
|
|
59
|
+
id?: number;
|
|
60
|
+
status?: string;
|
|
61
|
+
url?: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Datacenter to host site in.
|
|
65
|
+
*/
|
|
66
|
+
export declare type HostingSiteAddV3BodyDatacenter = typeof HostingSiteAddV3BodyDatacenter[keyof typeof HostingSiteAddV3BodyDatacenter];
|
|
67
|
+
export declare const HostingSiteAddV3BodyDatacenter: {
|
|
68
|
+
readonly 'Amsterdam,_Netherlands': "Amsterdam, Netherlands";
|
|
69
|
+
readonly 'Ashburn,_Virginia': "Ashburn, Virginia";
|
|
70
|
+
readonly 'Dallas,_Texas': "Dallas, Texas";
|
|
71
|
+
readonly 'Los_Angeles,_California': "Los Angeles, California";
|
|
72
|
+
};
|
|
73
|
+
export declare type HostingSiteAddV3Body = {
|
|
74
|
+
/** Admin email for the site user */
|
|
75
|
+
admin_email?: string;
|
|
76
|
+
/** Admin user for the site */
|
|
77
|
+
admin_user?: string;
|
|
78
|
+
/** HAL site id to clone */
|
|
79
|
+
clone_site_id?: number;
|
|
80
|
+
/** Datacenter to host site in. */
|
|
81
|
+
datacenter?: HostingSiteAddV3BodyDatacenter;
|
|
82
|
+
/** Disk space in GiB */
|
|
83
|
+
disk_limit_gib?: number;
|
|
84
|
+
/** domain for the site to be added */
|
|
85
|
+
domain?: string;
|
|
86
|
+
/** flag that causes the domain vhost to be forced to the new docroot */
|
|
87
|
+
force_vhost?: boolean;
|
|
88
|
+
/** toggle between wordpress/lightweight for non-existent static file */
|
|
89
|
+
handler_404?: boolean;
|
|
90
|
+
/** Migrate an existing wordpress site */
|
|
91
|
+
migration_id?: string;
|
|
92
|
+
/** When provided, parent_site_id will be set in the new site's meta to indicate it's a child (staging) site of the parent. */
|
|
93
|
+
parent_site_id?: number;
|
|
94
|
+
/** Installation Path */
|
|
95
|
+
path?: string;
|
|
96
|
+
/** Skip domain pointer order */
|
|
97
|
+
skip_pointer?: boolean;
|
|
98
|
+
/** flag indicating whether this site is for a self serve wp migration or not */
|
|
99
|
+
ss_wp_mig?: boolean;
|
|
100
|
+
/** Site Subtype for Docker application */
|
|
101
|
+
subtype?: string;
|
|
102
|
+
/** title of the site to be added */
|
|
103
|
+
title?: string;
|
|
104
|
+
/** Site type */
|
|
105
|
+
type: string;
|
|
106
|
+
/** Number of PHP workers */
|
|
107
|
+
workers?: number;
|
|
108
|
+
};
|
|
58
109
|
export declare type BackupCreateV3200 = {
|
|
59
110
|
message?: string;
|
|
60
111
|
tracking_id?: number;
|
|
@@ -160,12 +211,6 @@ export declare type SiteMalwareStatusV2200 = {
|
|
|
160
211
|
*/
|
|
161
212
|
scanner_state?: string | null;
|
|
162
213
|
};
|
|
163
|
-
export declare type SitesDomainsV2200 = {
|
|
164
|
-
domains: SitesDomainsV2200DomainsItem[];
|
|
165
|
-
limit?: number;
|
|
166
|
-
page?: number;
|
|
167
|
-
total?: number;
|
|
168
|
-
};
|
|
169
214
|
/**
|
|
170
215
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
171
216
|
* @nullable
|
|
@@ -285,9 +330,26 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
285
330
|
third_party_dns?: boolean | null;
|
|
286
331
|
type: string;
|
|
287
332
|
};
|
|
333
|
+
export declare type SitesDomainsV2200 = {
|
|
334
|
+
domains: SitesDomainsV2200DomainsItem[];
|
|
335
|
+
limit?: number;
|
|
336
|
+
page?: number;
|
|
337
|
+
total?: number;
|
|
338
|
+
};
|
|
288
339
|
export declare type SitesDomainsV2Params = {
|
|
289
340
|
scan?: boolean;
|
|
290
341
|
};
|
|
342
|
+
export declare type SitesListV2200 = {
|
|
343
|
+
items?: SitesListV2200ItemsItem[];
|
|
344
|
+
/** page size */
|
|
345
|
+
limit?: number;
|
|
346
|
+
/** current page number */
|
|
347
|
+
page?: number;
|
|
348
|
+
/** total number of pages */
|
|
349
|
+
pages?: number;
|
|
350
|
+
/** total number of sites returned */
|
|
351
|
+
total?: number;
|
|
352
|
+
};
|
|
291
353
|
/**
|
|
292
354
|
* @nullable
|
|
293
355
|
*/
|
|
@@ -450,17 +512,6 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
450
512
|
*/
|
|
451
513
|
version_ptr?: string | null;
|
|
452
514
|
};
|
|
453
|
-
export declare type SitesListV2200 = {
|
|
454
|
-
items?: SitesListV2200ItemsItem[];
|
|
455
|
-
/** page size */
|
|
456
|
-
limit?: number;
|
|
457
|
-
/** current page number */
|
|
458
|
-
page?: number;
|
|
459
|
-
/** total number of pages */
|
|
460
|
-
pages?: number;
|
|
461
|
-
/** total number of sites returned */
|
|
462
|
-
total?: number;
|
|
463
|
-
};
|
|
464
515
|
export declare type SshKeyV2200 = {
|
|
465
516
|
deleted?: number;
|
|
466
517
|
key_name?: string;
|
|
@@ -562,6 +613,30 @@ export declare type HostingSitesV2200UsedSitesDetails = {
|
|
|
562
613
|
/** Count of sites that are in pending statuses i.e. pending_create pending_reset pending_delete etc */
|
|
563
614
|
sites_pending?: number;
|
|
564
615
|
};
|
|
616
|
+
export declare type HostingSitesV2200 = {
|
|
617
|
+
/**
|
|
618
|
+
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
619
|
+
* @nullable
|
|
620
|
+
*/
|
|
621
|
+
available_sites?: number | null;
|
|
622
|
+
items?: HostingSitesV2200ItemsItem[];
|
|
623
|
+
/** page size */
|
|
624
|
+
limit?: number;
|
|
625
|
+
/**
|
|
626
|
+
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
627
|
+
* @nullable
|
|
628
|
+
*/
|
|
629
|
+
max_sites?: number | null;
|
|
630
|
+
/** current page number */
|
|
631
|
+
page?: number;
|
|
632
|
+
/** total number of pages */
|
|
633
|
+
pages?: number;
|
|
634
|
+
/** total number of sites returned */
|
|
635
|
+
total?: number;
|
|
636
|
+
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
637
|
+
used_sites?: number;
|
|
638
|
+
used_sites_details?: HostingSitesV2200UsedSitesDetails;
|
|
639
|
+
};
|
|
565
640
|
/**
|
|
566
641
|
* @nullable
|
|
567
642
|
*/
|
|
@@ -589,6 +664,63 @@ export declare type HostingSitesV2200ItemsItemStaging = {
|
|
|
589
664
|
/** A list of staging sites of the current site */
|
|
590
665
|
sites?: number[];
|
|
591
666
|
} | null;
|
|
667
|
+
export declare type HostingSitesV2200ItemsItemResourcesStorage = {
|
|
668
|
+
/** @nullable */
|
|
669
|
+
available?: number | null;
|
|
670
|
+
/** @nullable */
|
|
671
|
+
total?: number | null;
|
|
672
|
+
unit?: string;
|
|
673
|
+
/** @nullable */
|
|
674
|
+
used?: number | null;
|
|
675
|
+
};
|
|
676
|
+
export declare type HostingSitesV2200ItemsItemResources = {
|
|
677
|
+
storage?: HostingSitesV2200ItemsItemResourcesStorage;
|
|
678
|
+
/** @nullable */
|
|
679
|
+
workers?: number | null;
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* @nullable
|
|
683
|
+
*/
|
|
684
|
+
export declare type HostingSitesV2200ItemsItemPendingUrlData = {
|
|
685
|
+
/**
|
|
686
|
+
* The root domain name
|
|
687
|
+
* @nullable
|
|
688
|
+
*/
|
|
689
|
+
base_domain?: string | null;
|
|
690
|
+
/**
|
|
691
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
692
|
+
* @nullable
|
|
693
|
+
*/
|
|
694
|
+
domain?: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* The current pending_url's HAL Domain ID
|
|
697
|
+
* @nullable
|
|
698
|
+
*/
|
|
699
|
+
domain_id?: number | null;
|
|
700
|
+
/** @nullable */
|
|
701
|
+
error?: string | null;
|
|
702
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
703
|
+
is_temp?: boolean;
|
|
704
|
+
/**
|
|
705
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
706
|
+
* @nullable
|
|
707
|
+
*/
|
|
708
|
+
job_failed?: boolean | null;
|
|
709
|
+
/** @nullable */
|
|
710
|
+
stage?: string | null;
|
|
711
|
+
/**
|
|
712
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
713
|
+
* @nullable
|
|
714
|
+
*/
|
|
715
|
+
wp_session?: string | null;
|
|
716
|
+
} | null;
|
|
717
|
+
/**
|
|
718
|
+
* Job ids for the site
|
|
719
|
+
* @nullable
|
|
720
|
+
*/
|
|
721
|
+
export declare type HostingSitesV2200ItemsItemJobs = {
|
|
722
|
+
[key: string]: unknown;
|
|
723
|
+
} | null;
|
|
592
724
|
export declare type HostingSitesV2200ItemsItem = {
|
|
593
725
|
/** @nullable */
|
|
594
726
|
account_back_ref?: string | null;
|
|
@@ -667,87 +799,6 @@ export declare type HostingSitesV2200ItemsItem = {
|
|
|
667
799
|
*/
|
|
668
800
|
version_ptr?: string | null;
|
|
669
801
|
};
|
|
670
|
-
export declare type HostingSitesV2200 = {
|
|
671
|
-
/**
|
|
672
|
-
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
673
|
-
* @nullable
|
|
674
|
-
*/
|
|
675
|
-
available_sites?: number | null;
|
|
676
|
-
items?: HostingSitesV2200ItemsItem[];
|
|
677
|
-
/** page size */
|
|
678
|
-
limit?: number;
|
|
679
|
-
/**
|
|
680
|
-
* Maximum number of sites the customer can have. Null means 'unlimited'.
|
|
681
|
-
* @nullable
|
|
682
|
-
*/
|
|
683
|
-
max_sites?: number | null;
|
|
684
|
-
/** current page number */
|
|
685
|
-
page?: number;
|
|
686
|
-
/** total number of pages */
|
|
687
|
-
pages?: number;
|
|
688
|
-
/** total number of sites returned */
|
|
689
|
-
total?: number;
|
|
690
|
-
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
691
|
-
used_sites?: number;
|
|
692
|
-
used_sites_details?: HostingSitesV2200UsedSitesDetails;
|
|
693
|
-
};
|
|
694
|
-
export declare type HostingSitesV2200ItemsItemResourcesStorage = {
|
|
695
|
-
/** @nullable */
|
|
696
|
-
available?: number | null;
|
|
697
|
-
/** @nullable */
|
|
698
|
-
total?: number | null;
|
|
699
|
-
unit?: string;
|
|
700
|
-
/** @nullable */
|
|
701
|
-
used?: number | null;
|
|
702
|
-
};
|
|
703
|
-
export declare type HostingSitesV2200ItemsItemResources = {
|
|
704
|
-
storage?: HostingSitesV2200ItemsItemResourcesStorage;
|
|
705
|
-
/** @nullable */
|
|
706
|
-
workers?: number | null;
|
|
707
|
-
};
|
|
708
|
-
/**
|
|
709
|
-
* @nullable
|
|
710
|
-
*/
|
|
711
|
-
export declare type HostingSitesV2200ItemsItemPendingUrlData = {
|
|
712
|
-
/**
|
|
713
|
-
* The root domain name
|
|
714
|
-
* @nullable
|
|
715
|
-
*/
|
|
716
|
-
base_domain?: string | null;
|
|
717
|
-
/**
|
|
718
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
719
|
-
* @nullable
|
|
720
|
-
*/
|
|
721
|
-
domain?: string | null;
|
|
722
|
-
/**
|
|
723
|
-
* The current pending_url's HAL Domain ID
|
|
724
|
-
* @nullable
|
|
725
|
-
*/
|
|
726
|
-
domain_id?: number | null;
|
|
727
|
-
/** @nullable */
|
|
728
|
-
error?: string | null;
|
|
729
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
730
|
-
is_temp?: boolean;
|
|
731
|
-
/**
|
|
732
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
733
|
-
* @nullable
|
|
734
|
-
*/
|
|
735
|
-
job_failed?: boolean | null;
|
|
736
|
-
/** @nullable */
|
|
737
|
-
stage?: string | null;
|
|
738
|
-
/**
|
|
739
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
740
|
-
* @nullable
|
|
741
|
-
*/
|
|
742
|
-
wp_session?: string | null;
|
|
743
|
-
} | null;
|
|
744
|
-
/**
|
|
745
|
-
* Job ids for the site
|
|
746
|
-
* @nullable
|
|
747
|
-
*/
|
|
748
|
-
export declare type HostingSitesV2200ItemsItemJobs = {
|
|
749
|
-
[key: string]: unknown;
|
|
750
|
-
} | null;
|
|
751
802
|
export declare type HostingSitesV2Params = {
|
|
752
803
|
limit?: number;
|
|
753
804
|
page?: number;
|
|
@@ -989,7 +1040,9 @@ export declare type BackupListV2200BackupsItem = {
|
|
|
989
1040
|
backup_id?: string;
|
|
990
1041
|
/** @nullable */
|
|
991
1042
|
databases?: string[] | null;
|
|
1043
|
+
dc_location?: string;
|
|
992
1044
|
schedule_type?: string;
|
|
1045
|
+
timezone?: string;
|
|
993
1046
|
type?: string;
|
|
994
1047
|
};
|
|
995
1048
|
export declare type BackupListV2200 = {
|
|
@@ -1030,6 +1083,12 @@ export declare type AddonsSitelockSsoV2Params = {
|
|
|
1030
1083
|
*/
|
|
1031
1084
|
source?: string;
|
|
1032
1085
|
};
|
|
1086
|
+
export declare type UserHostings200 = {
|
|
1087
|
+
/** Feature information for the paginated product instances */
|
|
1088
|
+
rows?: UserHostings200RowsItem[];
|
|
1089
|
+
/** Total number of product instance IDs available to that account */
|
|
1090
|
+
total_count?: number;
|
|
1091
|
+
};
|
|
1033
1092
|
/**
|
|
1034
1093
|
* Usage statistics
|
|
1035
1094
|
* @nullable
|
|
@@ -1093,73 +1152,6 @@ export declare type UserHostings200RowsItemLimit = {
|
|
|
1093
1152
|
*/
|
|
1094
1153
|
workers?: number | null;
|
|
1095
1154
|
} | null;
|
|
1096
|
-
/**
|
|
1097
|
-
* Feature details from HAL account_feature_info_list
|
|
1098
|
-
*/
|
|
1099
|
-
export declare type UserHostings200RowsItem = {
|
|
1100
|
-
/**
|
|
1101
|
-
* Product auto-renew flag
|
|
1102
|
-
* @nullable
|
|
1103
|
-
*/
|
|
1104
|
-
auto_renew_flag?: boolean | null;
|
|
1105
|
-
/** HAL Account back_reference, used to link to the product instance */
|
|
1106
|
-
back_reference?: string;
|
|
1107
|
-
/**
|
|
1108
|
-
* Product expiration date
|
|
1109
|
-
* @nullable
|
|
1110
|
-
*/
|
|
1111
|
-
expiration_date?: string | null;
|
|
1112
|
-
/** Feature set name ex: hosting_40s */
|
|
1113
|
-
feature_set?: string;
|
|
1114
|
-
/** Additional information about the account */
|
|
1115
|
-
info?: UserHostings200RowsItemInfo;
|
|
1116
|
-
/**
|
|
1117
|
-
* Account limits
|
|
1118
|
-
* @nullable
|
|
1119
|
-
*/
|
|
1120
|
-
limit?: UserHostings200RowsItemLimit;
|
|
1121
|
-
/**
|
|
1122
|
-
* Remote limits for the account
|
|
1123
|
-
* @nullable
|
|
1124
|
-
*/
|
|
1125
|
-
limit_remote?: UserHostings200RowsItemLimitRemote;
|
|
1126
|
-
/**
|
|
1127
|
-
* Package name
|
|
1128
|
-
* @nullable
|
|
1129
|
-
*/
|
|
1130
|
-
package?: string | null;
|
|
1131
|
-
/**
|
|
1132
|
-
* Control panel type
|
|
1133
|
-
* @nullable
|
|
1134
|
-
*/
|
|
1135
|
-
panel?: string | null;
|
|
1136
|
-
/**
|
|
1137
|
-
* Product code
|
|
1138
|
-
* @nullable
|
|
1139
|
-
*/
|
|
1140
|
-
prod_code?: string | null;
|
|
1141
|
-
/**
|
|
1142
|
-
* Product name
|
|
1143
|
-
* @nullable
|
|
1144
|
-
*/
|
|
1145
|
-
prod_name?: string | null;
|
|
1146
|
-
/**
|
|
1147
|
-
* Number of sites
|
|
1148
|
-
* @nullable
|
|
1149
|
-
*/
|
|
1150
|
-
sites?: number | null;
|
|
1151
|
-
/**
|
|
1152
|
-
* Usage statistics
|
|
1153
|
-
* @nullable
|
|
1154
|
-
*/
|
|
1155
|
-
used?: UserHostings200RowsItemUsed;
|
|
1156
|
-
};
|
|
1157
|
-
export declare type UserHostings200 = {
|
|
1158
|
-
/** Feature information for the paginated product instances */
|
|
1159
|
-
rows?: UserHostings200RowsItem[];
|
|
1160
|
-
/** Total number of product instance IDs available to that account */
|
|
1161
|
-
total_count?: number;
|
|
1162
|
-
};
|
|
1163
1155
|
/**
|
|
1164
1156
|
* Region information for the account
|
|
1165
1157
|
* @nullable
|
|
@@ -1296,6 +1288,67 @@ export declare type UserHostings200RowsItemInfo = {
|
|
|
1296
1288
|
*/
|
|
1297
1289
|
username?: string | null;
|
|
1298
1290
|
};
|
|
1291
|
+
/**
|
|
1292
|
+
* Feature details from HAL account_feature_info_list
|
|
1293
|
+
*/
|
|
1294
|
+
export declare type UserHostings200RowsItem = {
|
|
1295
|
+
/**
|
|
1296
|
+
* Product auto-renew flag
|
|
1297
|
+
* @nullable
|
|
1298
|
+
*/
|
|
1299
|
+
auto_renew_flag?: boolean | null;
|
|
1300
|
+
/** HAL Account back_reference, used to link to the product instance */
|
|
1301
|
+
back_reference?: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* Product expiration date
|
|
1304
|
+
* @nullable
|
|
1305
|
+
*/
|
|
1306
|
+
expiration_date?: string | null;
|
|
1307
|
+
/** Feature set name ex: hosting_40s */
|
|
1308
|
+
feature_set?: string;
|
|
1309
|
+
/** Additional information about the account */
|
|
1310
|
+
info?: UserHostings200RowsItemInfo;
|
|
1311
|
+
/**
|
|
1312
|
+
* Account limits
|
|
1313
|
+
* @nullable
|
|
1314
|
+
*/
|
|
1315
|
+
limit?: UserHostings200RowsItemLimit;
|
|
1316
|
+
/**
|
|
1317
|
+
* Remote limits for the account
|
|
1318
|
+
* @nullable
|
|
1319
|
+
*/
|
|
1320
|
+
limit_remote?: UserHostings200RowsItemLimitRemote;
|
|
1321
|
+
/**
|
|
1322
|
+
* Package name
|
|
1323
|
+
* @nullable
|
|
1324
|
+
*/
|
|
1325
|
+
package?: string | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Control panel type
|
|
1328
|
+
* @nullable
|
|
1329
|
+
*/
|
|
1330
|
+
panel?: string | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* Product code
|
|
1333
|
+
* @nullable
|
|
1334
|
+
*/
|
|
1335
|
+
prod_code?: string | null;
|
|
1336
|
+
/**
|
|
1337
|
+
* Product name
|
|
1338
|
+
* @nullable
|
|
1339
|
+
*/
|
|
1340
|
+
prod_name?: string | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* Number of sites
|
|
1343
|
+
* @nullable
|
|
1344
|
+
*/
|
|
1345
|
+
sites?: number | null;
|
|
1346
|
+
/**
|
|
1347
|
+
* Usage statistics
|
|
1348
|
+
* @nullable
|
|
1349
|
+
*/
|
|
1350
|
+
used?: UserHostings200RowsItemUsed;
|
|
1351
|
+
};
|
|
1299
1352
|
export declare type UserHostingsParams = {
|
|
1300
1353
|
/**
|
|
1301
1354
|
* Starting index for pagination (default: 0)
|
|
@@ -1331,6 +1384,10 @@ export declare type SitesVersion200 = {
|
|
|
1331
1384
|
latest?: string;
|
|
1332
1385
|
update?: boolean;
|
|
1333
1386
|
};
|
|
1387
|
+
export declare type SiteUsers200UsersItemMeta = {
|
|
1388
|
+
maestro_web_pro?: string;
|
|
1389
|
+
maestro_wpp_identifier?: string;
|
|
1390
|
+
};
|
|
1334
1391
|
export declare type SiteUsers200UsersItem = {
|
|
1335
1392
|
display_name?: string;
|
|
1336
1393
|
id: number;
|
|
@@ -1345,10 +1402,6 @@ export declare type SiteUsers200UsersItem = {
|
|
|
1345
1402
|
export declare type SiteUsers200 = {
|
|
1346
1403
|
users: SiteUsers200UsersItem[];
|
|
1347
1404
|
};
|
|
1348
|
-
export declare type SiteUsers200UsersItemMeta = {
|
|
1349
|
-
maestro_web_pro?: string;
|
|
1350
|
-
maestro_wpp_identifier?: string;
|
|
1351
|
-
};
|
|
1352
1405
|
export declare type SiteStatus200 = {
|
|
1353
1406
|
/** @nullable */
|
|
1354
1407
|
cloudflare_ready?: boolean | null;
|
|
@@ -1683,6 +1736,9 @@ export declare type SiteQualityMetrics200Audits = {
|
|
|
1683
1736
|
export declare type SiteQualityMetrics200AspectScores = {
|
|
1684
1737
|
performance?: number;
|
|
1685
1738
|
};
|
|
1739
|
+
export declare type SiteQualityMetrics200AspectDetails = {
|
|
1740
|
+
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
1741
|
+
};
|
|
1686
1742
|
export declare type SiteQualityMetrics200 = {
|
|
1687
1743
|
aspect_details: SiteQualityMetrics200AspectDetails;
|
|
1688
1744
|
aspect_scores: SiteQualityMetrics200AspectScores;
|
|
@@ -1713,9 +1769,6 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
|
|
|
1713
1769
|
'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
|
|
1714
1770
|
'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
|
|
1715
1771
|
};
|
|
1716
|
-
export declare type SiteQualityMetrics200AspectDetails = {
|
|
1717
|
-
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
1718
|
-
};
|
|
1719
1772
|
export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
|
|
1720
1773
|
export declare const SiteQualityMetricsStrategy: {
|
|
1721
1774
|
readonly MOBILE: "MOBILE";
|
|
@@ -1851,18 +1904,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
|
1851
1904
|
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
1852
1905
|
timestamp?: number;
|
|
1853
1906
|
};
|
|
1854
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
1855
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1856
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1857
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1858
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1859
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1860
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1861
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1862
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1863
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1864
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1865
|
-
};
|
|
1866
1907
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
1867
1908
|
[key: string]: number;
|
|
1868
1909
|
};
|
|
@@ -1905,6 +1946,18 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
1905
1946
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
1906
1947
|
timestamp?: number;
|
|
1907
1948
|
};
|
|
1949
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
1950
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1951
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1952
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1953
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1954
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1955
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1956
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1957
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1958
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1959
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1960
|
+
};
|
|
1908
1961
|
export declare type SitesMetricDimensionsParams = {
|
|
1909
1962
|
start?: string;
|
|
1910
1963
|
end?: string;
|
|
@@ -3828,14 +3881,6 @@ export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
|
3828
3881
|
*/
|
|
3829
3882
|
val?: string | null;
|
|
3830
3883
|
};
|
|
3831
|
-
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
3832
|
-
action?: FilterAction;
|
|
3833
|
-
/**
|
|
3834
|
-
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
3835
|
-
* @nullable
|
|
3836
|
-
*/
|
|
3837
|
-
dest?: string | null;
|
|
3838
|
-
};
|
|
3839
3884
|
export declare type HostingEmailFiltersList200FiltersItem = {
|
|
3840
3885
|
/** Where the email will be forwarded to */
|
|
3841
3886
|
actions?: HostingEmailFiltersList200FiltersItemActionsItem[];
|
|
@@ -3854,6 +3899,14 @@ export declare type HostingEmailFiltersList200 = {
|
|
|
3854
3899
|
/** List of filters */
|
|
3855
3900
|
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
3856
3901
|
};
|
|
3902
|
+
export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
|
|
3903
|
+
action?: FilterAction;
|
|
3904
|
+
/**
|
|
3905
|
+
* The destination for the action (e.g., folder name, email address, script path, etc)
|
|
3906
|
+
* @nullable
|
|
3907
|
+
*/
|
|
3908
|
+
dest?: string | null;
|
|
3909
|
+
};
|
|
3857
3910
|
export declare type HostingEmailFiltersListParams = {
|
|
3858
3911
|
/**
|
|
3859
3912
|
* The email account address to query filters by
|
|
@@ -4030,10 +4083,6 @@ export declare type HostingEmailUpdateBody = {
|
|
|
4030
4083
|
/** The password for the email */
|
|
4031
4084
|
password?: string;
|
|
4032
4085
|
};
|
|
4033
|
-
export declare type HostingEmailList200 = {
|
|
4034
|
-
/** List of email resources */
|
|
4035
|
-
rows?: HostingEmailList200RowsItem[];
|
|
4036
|
-
};
|
|
4037
4086
|
/**
|
|
4038
4087
|
* List of suspensions that affect the entire user account
|
|
4039
4088
|
* @nullable
|
|
@@ -4123,6 +4172,10 @@ export declare type HostingEmailList200RowsItem = {
|
|
|
4123
4172
|
*/
|
|
4124
4173
|
utf8_folders?: boolean | null;
|
|
4125
4174
|
};
|
|
4175
|
+
export declare type HostingEmailList200 = {
|
|
4176
|
+
/** List of email resources */
|
|
4177
|
+
rows?: HostingEmailList200RowsItem[];
|
|
4178
|
+
};
|
|
4126
4179
|
export declare type HostingEmailDelete200 = {
|
|
4127
4180
|
[key: string]: unknown;
|
|
4128
4181
|
};
|
|
@@ -4818,6 +4871,23 @@ export declare type ActivityLog200 = {
|
|
|
4818
4871
|
export declare type ActivityLogParams = {
|
|
4819
4872
|
days?: number;
|
|
4820
4873
|
};
|
|
4874
|
+
export declare type HostingAccount200ResourcesWorkers = {
|
|
4875
|
+
/** @nullable */
|
|
4876
|
+
available?: number | null;
|
|
4877
|
+
/** @nullable */
|
|
4878
|
+
total?: number | null;
|
|
4879
|
+
/** @nullable */
|
|
4880
|
+
used?: number | null;
|
|
4881
|
+
};
|
|
4882
|
+
export declare type HostingAccount200ResourcesStorage = {
|
|
4883
|
+
/** @nullable */
|
|
4884
|
+
available?: number | null;
|
|
4885
|
+
/** @nullable */
|
|
4886
|
+
total?: number | null;
|
|
4887
|
+
unit?: string;
|
|
4888
|
+
/** @nullable */
|
|
4889
|
+
used?: number | null;
|
|
4890
|
+
};
|
|
4821
4891
|
/**
|
|
4822
4892
|
* @nullable
|
|
4823
4893
|
*/
|
|
@@ -4844,23 +4914,6 @@ export declare type HostingAccount200 = {
|
|
|
4844
4914
|
type?: string;
|
|
4845
4915
|
username?: string;
|
|
4846
4916
|
};
|
|
4847
|
-
export declare type HostingAccount200ResourcesWorkers = {
|
|
4848
|
-
/** @nullable */
|
|
4849
|
-
available?: number | null;
|
|
4850
|
-
/** @nullable */
|
|
4851
|
-
total?: number | null;
|
|
4852
|
-
/** @nullable */
|
|
4853
|
-
used?: number | null;
|
|
4854
|
-
};
|
|
4855
|
-
export declare type HostingAccount200ResourcesStorage = {
|
|
4856
|
-
/** @nullable */
|
|
4857
|
-
available?: number | null;
|
|
4858
|
-
/** @nullable */
|
|
4859
|
-
total?: number | null;
|
|
4860
|
-
unit?: string;
|
|
4861
|
-
/** @nullable */
|
|
4862
|
-
used?: number | null;
|
|
4863
|
-
};
|
|
4864
4917
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
4865
4918
|
/** @nullable */
|
|
4866
4919
|
available?: number | null;
|
|
@@ -5312,7 +5365,8 @@ export declare type WebzaiSso200 = {
|
|
|
5312
5365
|
sso?: string;
|
|
5313
5366
|
};
|
|
5314
5367
|
export declare type AddonsSync200 = {
|
|
5315
|
-
|
|
5368
|
+
previous_status?: string;
|
|
5369
|
+
status?: string;
|
|
5316
5370
|
};
|
|
5317
5371
|
export declare type AddonsSpamexpertsSso200 = {
|
|
5318
5372
|
url?: string;
|
package/src/index.schemas.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2
|
+
export const HostingSiteAddV3BodyDatacenter = {
|
|
3
|
+
'Amsterdam,_Netherlands': 'Amsterdam, Netherlands',
|
|
4
|
+
'Ashburn,_Virginia': 'Ashburn, Virginia',
|
|
5
|
+
'Dallas,_Texas': 'Dallas, Texas',
|
|
6
|
+
'Los_Angeles,_California': 'Los Angeles, California',
|
|
7
|
+
};
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2
9
|
export const BackupCreateV3BodyBackupType = {
|
|
3
10
|
home: 'home',
|
|
4
11
|
db: 'db',
|