@newfold/huapi-js 2.1905.0 → 2.1907.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 +44 -12
- package/src/index.js +27 -1
- package/src/index.msw.d.ts +5 -2
- package/src/index.msw.js +19 -6
- package/src/index.schemas.d.ts +309 -197
- package/src/index.schemas.js +16 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -1598,6 +1598,38 @@ export declare function useWeeblySso<TData = Awaited<ReturnType<typeof weeblySso
|
|
|
1598
1598
|
}): UseQueryResult<TData, TError> & {
|
|
1599
1599
|
queryKey: QueryKey;
|
|
1600
1600
|
};
|
|
1601
|
+
/**
|
|
1602
|
+
* Returns a list of workflows for the addon
|
|
1603
|
+
* @summary addon workflow list
|
|
1604
|
+
*/
|
|
1605
|
+
export declare const addonsWorkflows: (addonId: string, params?: AddonsWorkflowsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsWorkflows200>>;
|
|
1606
|
+
export declare const getAddonsWorkflowsQueryKey: (addonId: string, params?: AddonsWorkflowsParams) => readonly [`/v1/addons/${string}/workflows`, ...AddonsWorkflowsParams[]];
|
|
1607
|
+
export declare const getAddonsWorkflowsQueryOptions: <TData = AxiosResponse<AddonsWorkflows200, any>, TError = AxiosError<unknown, any>>(addonId: string, params?: AddonsWorkflowsParams, options?: {
|
|
1608
|
+
query?: Partial<UseQueryOptions<AxiosResponse<AddonsWorkflows200, any>, TError, TData, QueryKey>> | undefined;
|
|
1609
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1610
|
+
} | undefined) => UseQueryOptions<AxiosResponse<AddonsWorkflows200, any>, TError, TData, QueryKey> & {
|
|
1611
|
+
queryKey: QueryKey;
|
|
1612
|
+
};
|
|
1613
|
+
export declare type AddonsWorkflowsQueryResult = NonNullable<Awaited<ReturnType<typeof addonsWorkflows>>>;
|
|
1614
|
+
export declare type AddonsWorkflowsQueryError = AxiosError<unknown>;
|
|
1615
|
+
export declare function useAddonsWorkflows<TData = Awaited<ReturnType<typeof addonsWorkflows>>, TError = AxiosError<unknown>>(addonId: string, params: undefined | AddonsWorkflowsParams, options: {
|
|
1616
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsWorkflows>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof addonsWorkflows>>, TError, TData>, 'initialData'>;
|
|
1617
|
+
axios?: AxiosRequestConfig;
|
|
1618
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
1619
|
+
queryKey: QueryKey;
|
|
1620
|
+
};
|
|
1621
|
+
export declare function useAddonsWorkflows<TData = Awaited<ReturnType<typeof addonsWorkflows>>, TError = AxiosError<unknown>>(addonId: string, params?: AddonsWorkflowsParams, options?: {
|
|
1622
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsWorkflows>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof addonsWorkflows>>, TError, TData>, 'initialData'>;
|
|
1623
|
+
axios?: AxiosRequestConfig;
|
|
1624
|
+
}): UseQueryResult<TData, TError> & {
|
|
1625
|
+
queryKey: QueryKey;
|
|
1626
|
+
};
|
|
1627
|
+
export declare function useAddonsWorkflows<TData = Awaited<ReturnType<typeof addonsWorkflows>>, TError = AxiosError<unknown>>(addonId: string, params?: AddonsWorkflowsParams, options?: {
|
|
1628
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsWorkflows>>, TError, TData>>;
|
|
1629
|
+
axios?: AxiosRequestConfig;
|
|
1630
|
+
}): UseQueryResult<TData, TError> & {
|
|
1631
|
+
queryKey: QueryKey;
|
|
1632
|
+
};
|
|
1601
1633
|
/**
|
|
1602
1634
|
* Get domain info
|
|
1603
1635
|
* @summary domain info
|
|
@@ -6546,13 +6578,13 @@ export declare const useBackupsJetpackBackup: <TError = AxiosError<void, any>, T
|
|
|
6546
6578
|
* Adds the site to the Xcitium account
|
|
6547
6579
|
* @summary Add site to xcitium
|
|
6548
6580
|
*/
|
|
6549
|
-
export declare const sitesBackupsXcitium: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
6581
|
+
export declare const sitesBackupsXcitium: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesBackupsXcitium200>>;
|
|
6550
6582
|
export declare const getSitesBackupsXcitiumMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6551
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
6583
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesBackupsXcitium200, any>, TError, {
|
|
6552
6584
|
siteId: number;
|
|
6553
6585
|
}, TContext> | undefined;
|
|
6554
6586
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
6555
|
-
} | undefined) => UseMutationOptions<AxiosResponse<
|
|
6587
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SitesBackupsXcitium200, any>, TError, {
|
|
6556
6588
|
siteId: number;
|
|
6557
6589
|
}, TContext>;
|
|
6558
6590
|
export declare type SitesBackupsXcitiumMutationResult = NonNullable<Awaited<ReturnType<typeof sitesBackupsXcitium>>>;
|
|
@@ -6561,11 +6593,11 @@ export declare type SitesBackupsXcitiumMutationError = AxiosError<unknown>;
|
|
|
6561
6593
|
* @summary Add site to xcitium
|
|
6562
6594
|
*/
|
|
6563
6595
|
export declare const useSitesBackupsXcitium: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6564
|
-
mutation?: UseMutationOptions<AxiosResponse<
|
|
6596
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesBackupsXcitium200, any>, TError, {
|
|
6565
6597
|
siteId: number;
|
|
6566
6598
|
}, TContext> | undefined;
|
|
6567
6599
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
6568
|
-
} | undefined) => UseMutationResult<AxiosResponse<
|
|
6600
|
+
} | undefined) => UseMutationResult<AxiosResponse<SitesBackupsXcitium200, any>, TError, {
|
|
6569
6601
|
siteId: number;
|
|
6570
6602
|
}, TContext>;
|
|
6571
6603
|
/**
|
|
@@ -9045,7 +9077,7 @@ export declare const useBackupCreateV2: <TError = AxiosError<unknown, any>, TCon
|
|
|
9045
9077
|
* @summary Backup download
|
|
9046
9078
|
*/
|
|
9047
9079
|
export declare const backupDownloadV2: (addonId: number, backupDownloadV2Body: BackupDownloadV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupDownloadV2200>>;
|
|
9048
|
-
export declare const getBackupDownloadV2MutationOptions: <TError = AxiosError<
|
|
9080
|
+
export declare const getBackupDownloadV2MutationOptions: <TError = AxiosError<BackupDownloadV2409 | BackupDownloadV2404 | BackupDownloadV2403 | BackupDownloadV2400, any>, TContext = unknown>(options?: {
|
|
9049
9081
|
mutation?: UseMutationOptions<AxiosResponse<BackupDownloadV2200, any>, TError, {
|
|
9050
9082
|
addonId: number;
|
|
9051
9083
|
data: BackupDownloadV2Body;
|
|
@@ -9057,11 +9089,11 @@ export declare const getBackupDownloadV2MutationOptions: <TError = AxiosError<un
|
|
|
9057
9089
|
}, TContext>;
|
|
9058
9090
|
export declare type BackupDownloadV2MutationResult = NonNullable<Awaited<ReturnType<typeof backupDownloadV2>>>;
|
|
9059
9091
|
export declare type BackupDownloadV2MutationBody = BackupDownloadV2Body;
|
|
9060
|
-
export declare type BackupDownloadV2MutationError = AxiosError<
|
|
9092
|
+
export declare type BackupDownloadV2MutationError = AxiosError<BackupDownloadV2400 | BackupDownloadV2403 | BackupDownloadV2404 | BackupDownloadV2409>;
|
|
9061
9093
|
/**
|
|
9062
9094
|
* @summary Backup download
|
|
9063
9095
|
*/
|
|
9064
|
-
export declare const useBackupDownloadV2: <TError = AxiosError<
|
|
9096
|
+
export declare const useBackupDownloadV2: <TError = AxiosError<BackupDownloadV2409 | BackupDownloadV2404 | BackupDownloadV2403 | BackupDownloadV2400, any>, TContext = unknown>(options?: {
|
|
9065
9097
|
mutation?: UseMutationOptions<AxiosResponse<BackupDownloadV2200, any>, TError, {
|
|
9066
9098
|
addonId: number;
|
|
9067
9099
|
data: BackupDownloadV2Body;
|
|
@@ -9780,7 +9812,7 @@ export declare const useBackupCreateV3: <TError = AxiosError<unknown, any>, TCon
|
|
|
9780
9812
|
* @summary Backup restore
|
|
9781
9813
|
*/
|
|
9782
9814
|
export declare const backupRestoreV3: (addonId: number, backupRestoreV3Body: BackupRestoreV3Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupRestoreV3200>>;
|
|
9783
|
-
export declare const getBackupRestoreV3MutationOptions: <TError = AxiosError<
|
|
9815
|
+
export declare const getBackupRestoreV3MutationOptions: <TError = AxiosError<BackupRestoreV3409 | BackupRestoreV3404 | BackupRestoreV3403 | BackupRestoreV3400, any>, TContext = unknown>(options?: {
|
|
9784
9816
|
mutation?: UseMutationOptions<AxiosResponse<BackupRestoreV3200, any>, TError, {
|
|
9785
9817
|
addonId: number;
|
|
9786
9818
|
data: BackupRestoreV3Body;
|
|
@@ -9792,11 +9824,11 @@ export declare const getBackupRestoreV3MutationOptions: <TError = AxiosError<unk
|
|
|
9792
9824
|
}, TContext>;
|
|
9793
9825
|
export declare type BackupRestoreV3MutationResult = NonNullable<Awaited<ReturnType<typeof backupRestoreV3>>>;
|
|
9794
9826
|
export declare type BackupRestoreV3MutationBody = BackupRestoreV3Body;
|
|
9795
|
-
export declare type BackupRestoreV3MutationError = AxiosError<
|
|
9827
|
+
export declare type BackupRestoreV3MutationError = AxiosError<BackupRestoreV3400 | BackupRestoreV3403 | BackupRestoreV3404 | BackupRestoreV3409>;
|
|
9796
9828
|
/**
|
|
9797
9829
|
* @summary Backup restore
|
|
9798
9830
|
*/
|
|
9799
|
-
export declare const useBackupRestoreV3: <TError = AxiosError<
|
|
9831
|
+
export declare const useBackupRestoreV3: <TError = AxiosError<BackupRestoreV3409 | BackupRestoreV3404 | BackupRestoreV3403 | BackupRestoreV3400, any>, TContext = unknown>(options?: {
|
|
9800
9832
|
mutation?: UseMutationOptions<AxiosResponse<BackupRestoreV3200, any>, TError, {
|
|
9801
9833
|
addonId: number;
|
|
9802
9834
|
data: BackupRestoreV3Body;
|
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.1907.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -1243,6 +1243,32 @@ export function useWeeblySso(addonId, options) {
|
|
|
1243
1243
|
query.queryKey = queryOptions.queryKey;
|
|
1244
1244
|
return query;
|
|
1245
1245
|
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Returns a list of workflows for the addon
|
|
1248
|
+
* @summary addon workflow list
|
|
1249
|
+
*/
|
|
1250
|
+
export const addonsWorkflows = (addonId, params, options) => {
|
|
1251
|
+
return axios.get(`/v1/addons/${addonId}/workflows`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
1252
|
+
};
|
|
1253
|
+
export const getAddonsWorkflowsQueryKey = (addonId, params) => {
|
|
1254
|
+
return [`/v1/addons/${addonId}/workflows`, ...(params ? [params] : [])];
|
|
1255
|
+
};
|
|
1256
|
+
export const getAddonsWorkflowsQueryOptions = (addonId, params, options) => {
|
|
1257
|
+
var _a;
|
|
1258
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1259
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAddonsWorkflowsQueryKey(addonId, params);
|
|
1260
|
+
const queryFn = ({ signal }) => addonsWorkflows(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
1261
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
1262
|
+
};
|
|
1263
|
+
/**
|
|
1264
|
+
* @summary addon workflow list
|
|
1265
|
+
*/
|
|
1266
|
+
export function useAddonsWorkflows(addonId, params, options) {
|
|
1267
|
+
const queryOptions = getAddonsWorkflowsQueryOptions(addonId, params, options);
|
|
1268
|
+
const query = useQuery(queryOptions);
|
|
1269
|
+
query.queryKey = queryOptions.queryKey;
|
|
1270
|
+
return query;
|
|
1271
|
+
}
|
|
1246
1272
|
/**
|
|
1247
1273
|
* Get domain info
|
|
1248
1274
|
* @summary domain info
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -50,6 +50,7 @@ export declare const getAddonsSpamexpertsSsoResponseMock: (overrideResponse?: Pa
|
|
|
50
50
|
export declare const getAddonsSyncResponseMock: (overrideResponse?: Partial<AddonsSync200>) => AddonsSync200;
|
|
51
51
|
export declare const getWebzaiSsoResponseMock: (overrideResponse?: Partial<WebzaiSso200>) => WebzaiSso200;
|
|
52
52
|
export declare const getWeeblySsoResponseMock: (overrideResponse?: Partial<WeeblySso200>) => WeeblySso200;
|
|
53
|
+
export declare const getAddonsWorkflowsResponseMock: (overrideResponse?: Partial<AddonsWorkflows200>) => AddonsWorkflows200;
|
|
53
54
|
export declare const getDomainInfoResponseMock: (overrideResponse?: Partial<DomainInfo200>) => DomainInfo200;
|
|
54
55
|
export declare const getDomainCertsResponseMock: (overrideResponse?: Partial<DomainCerts200>) => DomainCerts200;
|
|
55
56
|
export declare const getDomainCertInstallResponseMock: (overrideResponse?: Partial<DomainCertInstall200>) => DomainCertInstall200;
|
|
@@ -208,6 +209,7 @@ export declare const getSitesBackupsCodeguardResponseMock: (overrideResponse?: P
|
|
|
208
209
|
export declare const getSitesBackupsDetailsResponseMock: (overrideResponse?: Partial<SitesBackupsDetails200>) => SitesBackupsDetails200;
|
|
209
210
|
export declare const getJetpackBackupStatusResponseMock: (overrideResponse?: Partial<JetpackBackupStatus200>) => JetpackBackupStatus200;
|
|
210
211
|
export declare const getBackupsJetpackBackupResponseMock: () => BackupsJetpackBackup200;
|
|
212
|
+
export declare const getSitesBackupsXcitiumResponseMock: (overrideResponse?: Partial<SitesBackupsXcitium200>) => SitesBackupsXcitium200;
|
|
211
213
|
export declare const getSiteAddonCloudflareResponseMock: (overrideResponse?: Partial<SiteAddonCloudflare200>) => SiteAddonCloudflare200;
|
|
212
214
|
export declare const getSitesDatabaseInfoResponseMock: (overrideResponse?: Partial<SitesDatabaseInfo200>) => SitesDatabaseInfo200;
|
|
213
215
|
export declare const getSitesDatabasePasswordsyncResponseMock: (overrideResponse?: Partial<SitesDatabasePasswordsync200>) => SitesDatabasePasswordsync200;
|
|
@@ -365,6 +367,7 @@ export declare const getAddonsSpamexpertsSsoMockHandler: (overrideResponse?: Add
|
|
|
365
367
|
export declare const getAddonsSyncMockHandler: (overrideResponse?: AddonsSync200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSync200> | AddonsSync200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
366
368
|
export declare const getWebzaiSsoMockHandler: (overrideResponse?: WebzaiSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebzaiSso200> | WebzaiSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
367
369
|
export declare const getWeeblySsoMockHandler: (overrideResponse?: WeeblySso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WeeblySso200> | WeeblySso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
370
|
+
export declare const getAddonsWorkflowsMockHandler: (overrideResponse?: AddonsWorkflows200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsWorkflows200> | AddonsWorkflows200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
368
371
|
export declare const getDomainInfoMockHandler: (overrideResponse?: DomainInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainInfo200> | DomainInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
369
372
|
export declare const getDomainCertsMockHandler: (overrideResponse?: DomainCerts200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainCerts200> | DomainCerts200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
370
373
|
export declare const getDomainCertInstallMockHandler: (overrideResponse?: DomainCertInstall200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainCertInstall200> | DomainCertInstall200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -523,7 +526,7 @@ export declare const getSitesBackupsCodeguardMockHandler: (overrideResponse?: Si
|
|
|
523
526
|
export declare const getSitesBackupsDetailsMockHandler: (overrideResponse?: SitesBackupsDetails200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesBackupsDetails200> | SitesBackupsDetails200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
524
527
|
export declare const getJetpackBackupStatusMockHandler: (overrideResponse?: JetpackBackupStatus200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<JetpackBackupStatus200> | JetpackBackupStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
525
528
|
export declare const getBackupsJetpackBackupMockHandler: (overrideResponse?: BackupsJetpackBackup200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<BackupsJetpackBackup200> | BackupsJetpackBackup200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
526
|
-
export declare const getSitesBackupsXcitiumMockHandler: (overrideResponse?:
|
|
529
|
+
export declare const getSitesBackupsXcitiumMockHandler: (overrideResponse?: SitesBackupsXcitium200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesBackupsXcitium200> | SitesBackupsXcitium200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
527
530
|
export declare const getSiteAddonCloudflareMockHandler: (overrideResponse?: SiteAddonCloudflare200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SiteAddonCloudflare200> | SiteAddonCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
528
531
|
export declare const getSitesDatabaseInfoMockHandler: (overrideResponse?: SitesDatabaseInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesDatabaseInfo200> | SitesDatabaseInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
529
532
|
export declare const getSitesDatabasePasswordsyncMockHandler: (overrideResponse?: SitesDatabasePasswordsync200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SitesDatabasePasswordsync200> | SitesDatabasePasswordsync200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
package/src/index.msw.js
CHANGED
|
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
|
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Hosting UAPI
|
|
6
6
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
7
|
-
* OpenAPI spec version: 1.
|
|
7
|
+
* OpenAPI spec version: 1.1907.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -36,7 +36,7 @@ export const getXcitiumBackupListResponseMock = (overrideResponse = {}) => (Obje
|
|
|
36
36
|
export const getXcitiumBackupCreateResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), website_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
37
37
|
export const getXcitiumBackupDownloadResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), website_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
38
38
|
export const getXcitiumBackupRestoreResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), website_success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
39
|
-
export const getXcitiumPlanInfoResponseMock = (overrideResponse = {}) => (Object.assign({ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), seat_count: faker.helpers.arrayElement([faker.word.sample(), undefined]), seat_limit: faker.helpers.arrayElement([faker.word.sample(), undefined]), seats: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), size: faker.helpers.arrayElement([faker.word.sample(), undefined]), size_limit: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
39
|
+
export const getXcitiumPlanInfoResponseMock = (overrideResponse = {}) => (Object.assign({ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), seat_count: faker.helpers.arrayElement([faker.word.sample(), undefined]), seat_limit: faker.helpers.arrayElement([faker.word.sample(), undefined]), seats: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), cms_database_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), db_used_gib: faker.helpers.arrayElement([faker.word.sample(), undefined]), dir_path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), fs_used_gib: faker.helpers.arrayElement([faker.word.sample(), undefined]), site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), size: faker.helpers.arrayElement([faker.word.sample(), undefined]), size_limit: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
40
40
|
export const getXcitiumSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
41
41
|
export const getBackupInitiateResponseMock = (overrideResponse = {}) => (Object.assign({ message: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
42
42
|
export const getBackupStatusResponseMock = (overrideResponse = {}) => (Object.assign({ download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), message: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -59,6 +59,7 @@ export const getAddonsSpamexpertsSsoResponseMock = (overrideResponse = {}) => (O
|
|
|
59
59
|
export const getAddonsSyncResponseMock = (overrideResponse = {}) => (Object.assign({ previous_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
60
60
|
export const getWebzaiSsoResponseMock = (overrideResponse = {}) => (Object.assign({ sso: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
61
61
|
export const getWeeblySsoResponseMock = (overrideResponse = {}) => (Object.assign({ sso: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
62
|
+
export const getAddonsWorkflowsResponseMock = (overrideResponse = {}) => (Object.assign({ workflows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ is_completed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), step: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), workflow_id: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
62
63
|
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]), jobs: faker.helpers.arrayElement([{}, 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(), used_entri: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, overrideResponse));
|
|
63
64
|
export const getDomainCertsResponseMock = (overrideResponse = {}) => (Object.assign({ certs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ cert_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), expires_on: faker.helpers.arrayElement([faker.word.sample(), undefined]), issued_on: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
64
65
|
export const getDomainCertInstallResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
@@ -221,6 +222,7 @@ export const getSitesBackupsCodeguardResponseMock = (overrideResponse = {}) => (
|
|
|
221
222
|
export const getSitesBackupsDetailsResponseMock = (overrideResponse = {}) => (Object.assign({ codeguard: faker.helpers.arrayElement([{ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), database_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), seats_available: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), seats_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), jetpack: faker.helpers.arrayElement([{ addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), can_purchase: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_addon: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_plugin: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), last_backup_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), next_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), plugin_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), xcitium: faker.helpers.arrayElement([{ activated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), database_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), disabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), over_quota: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), seats_available: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), seats_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]) }, overrideResponse));
|
|
222
223
|
export const getJetpackBackupStatusResponseMock = (overrideResponse = {}) => (Object.assign({ addon_back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), can_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_addon: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), has_active_plugin: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), next_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_upgrade: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), plan_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), plugin_exists: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
223
224
|
export const getBackupsJetpackBackupResponseMock = () => ({});
|
|
225
|
+
export const getSitesBackupsXcitiumResponseMock = (overrideResponse = {}) => (Object.assign({ workflow_id: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
224
226
|
export const getSiteAddonCloudflareResponseMock = (overrideResponse = {}) => (Object.assign({ addon_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
225
227
|
export const getSitesDatabaseInfoResponseMock = (overrideResponse = {}) => (Object.assign({ charset: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), collation: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
226
228
|
export const getSitesDatabasePasswordsyncResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
@@ -852,6 +854,16 @@ export const getWeeblySsoMockHandler = (overrideResponse) => {
|
|
|
852
854
|
});
|
|
853
855
|
}));
|
|
854
856
|
};
|
|
857
|
+
export const getAddonsWorkflowsMockHandler = (overrideResponse) => {
|
|
858
|
+
return http.get('*/v1/addons/:addonId/workflows', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
859
|
+
yield delay(0);
|
|
860
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
861
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
862
|
+
: getAddonsWorkflowsResponseMock()), { status: 200,
|
|
863
|
+
headers: { 'Content-Type': 'application/json' }
|
|
864
|
+
});
|
|
865
|
+
}));
|
|
866
|
+
};
|
|
855
867
|
export const getDomainInfoMockHandler = (overrideResponse) => {
|
|
856
868
|
return http.get('*/v1/domains/:domainId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
857
869
|
yield delay(0);
|
|
@@ -2435,10 +2447,10 @@ export const getBackupsJetpackBackupMockHandler = (overrideResponse) => {
|
|
|
2435
2447
|
export const getSitesBackupsXcitiumMockHandler = (overrideResponse) => {
|
|
2436
2448
|
return http.post('*/v1/sites/:siteId/backups/xcitium', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2437
2449
|
yield delay(0);
|
|
2438
|
-
|
|
2439
|
-
yield overrideResponse(info)
|
|
2440
|
-
|
|
2441
|
-
|
|
2450
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2451
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2452
|
+
: getSitesBackupsXcitiumResponseMock()), { status: 200,
|
|
2453
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2442
2454
|
});
|
|
2443
2455
|
}));
|
|
2444
2456
|
};
|
|
@@ -3583,6 +3595,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3583
3595
|
getAddonsSyncMockHandler(),
|
|
3584
3596
|
getWebzaiSsoMockHandler(),
|
|
3585
3597
|
getWeeblySsoMockHandler(),
|
|
3598
|
+
getAddonsWorkflowsMockHandler(),
|
|
3586
3599
|
getDomainInfoMockHandler(),
|
|
3587
3600
|
getDomainCertsMockHandler(),
|
|
3588
3601
|
getDomainCertInstallMockHandler(),
|
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.1907.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -163,6 +163,22 @@ export declare type BackupListV3Params = {
|
|
|
163
163
|
page?: number;
|
|
164
164
|
limit?: number;
|
|
165
165
|
};
|
|
166
|
+
export declare type BackupRestoreV3409 = {
|
|
167
|
+
/** Customer error code */
|
|
168
|
+
error?: string;
|
|
169
|
+
};
|
|
170
|
+
export declare type BackupRestoreV3404 = {
|
|
171
|
+
/** Customer error code */
|
|
172
|
+
error?: string;
|
|
173
|
+
};
|
|
174
|
+
export declare type BackupRestoreV3403 = {
|
|
175
|
+
/** Customer error code */
|
|
176
|
+
error?: string;
|
|
177
|
+
};
|
|
178
|
+
export declare type BackupRestoreV3400 = {
|
|
179
|
+
/** Customer error code */
|
|
180
|
+
error?: string;
|
|
181
|
+
};
|
|
166
182
|
export declare type BackupRestoreV3200 = {
|
|
167
183
|
message?: string;
|
|
168
184
|
tracking_id?: number;
|
|
@@ -175,6 +191,14 @@ export declare const BackupRestoreV3BodyUserConsent: {
|
|
|
175
191
|
readonly NUMBER_0: 0;
|
|
176
192
|
readonly NUMBER_1: 1;
|
|
177
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
* Plan type used to route the request to free or premium HAL actions.
|
|
196
|
+
*/
|
|
197
|
+
export declare type BackupRestoreV3BodyPlanType = typeof BackupRestoreV3BodyPlanType[keyof typeof BackupRestoreV3BodyPlanType];
|
|
198
|
+
export declare const BackupRestoreV3BodyPlanType: {
|
|
199
|
+
readonly free: "free";
|
|
200
|
+
readonly premium: "premium";
|
|
201
|
+
};
|
|
178
202
|
/**
|
|
179
203
|
* Backup type
|
|
180
204
|
*/
|
|
@@ -196,17 +220,22 @@ export declare type BackupRestoreV3Body = {
|
|
|
196
220
|
/** Backup Volume store ID to restore from */
|
|
197
221
|
backup_id: string;
|
|
198
222
|
/** Create realtime backup before restoration (0/1) */
|
|
199
|
-
backup_pre_restore
|
|
223
|
+
backup_pre_restore?: BackupRestoreV3BodyBackupPreRestore;
|
|
200
224
|
/** Backup type */
|
|
201
225
|
backup_type?: BackupRestoreV3BodyBackupType;
|
|
202
|
-
/**
|
|
203
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Databases to backup/restore (when applicable)
|
|
228
|
+
* @nullable
|
|
229
|
+
*/
|
|
230
|
+
databases?: string[] | null;
|
|
231
|
+
/** Plan type used to route the request to free or premium HAL actions. */
|
|
232
|
+
plan_type: BackupRestoreV3BodyPlanType;
|
|
204
233
|
/** Site id */
|
|
205
234
|
site_id: number;
|
|
206
235
|
/** Snapshot date (epoch) */
|
|
207
236
|
snapshot_date: number;
|
|
208
237
|
/** User consent to restore (0/1) */
|
|
209
|
-
user_consent
|
|
238
|
+
user_consent?: BackupRestoreV3BodyUserConsent;
|
|
210
239
|
};
|
|
211
240
|
export declare type BackupCreateV3200 = {
|
|
212
241
|
message?: string;
|
|
@@ -313,12 +342,6 @@ export declare type SiteMalwareStatusV2200 = {
|
|
|
313
342
|
*/
|
|
314
343
|
scanner_state?: string | null;
|
|
315
344
|
};
|
|
316
|
-
export declare type SitesDomainsV2200 = {
|
|
317
|
-
domains: SitesDomainsV2200DomainsItem[];
|
|
318
|
-
limit?: number;
|
|
319
|
-
page?: number;
|
|
320
|
-
total?: number;
|
|
321
|
-
};
|
|
322
345
|
/**
|
|
323
346
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
324
347
|
* @nullable
|
|
@@ -376,13 +399,6 @@ export declare type SitesDomainsV2200DomainsItemSetupProgress = {
|
|
|
376
399
|
*/
|
|
377
400
|
validate_ssl_error_table?: SitesDomainsV2200DomainsItemSetupProgressValidateSslErrorTable;
|
|
378
401
|
} | null;
|
|
379
|
-
/**
|
|
380
|
-
* Job ids and names currently running on the domain
|
|
381
|
-
* @nullable
|
|
382
|
-
*/
|
|
383
|
-
export declare type SitesDomainsV2200DomainsItemJobs = {
|
|
384
|
-
[key: string]: unknown;
|
|
385
|
-
} | null;
|
|
386
402
|
export declare type SitesDomainsV2200DomainsItem = {
|
|
387
403
|
/** @nullable */
|
|
388
404
|
account_back_ref?: string | null;
|
|
@@ -455,9 +471,33 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
455
471
|
*/
|
|
456
472
|
used_entri?: number | null;
|
|
457
473
|
};
|
|
474
|
+
export declare type SitesDomainsV2200 = {
|
|
475
|
+
domains: SitesDomainsV2200DomainsItem[];
|
|
476
|
+
limit?: number;
|
|
477
|
+
page?: number;
|
|
478
|
+
total?: number;
|
|
479
|
+
};
|
|
480
|
+
/**
|
|
481
|
+
* Job ids and names currently running on the domain
|
|
482
|
+
* @nullable
|
|
483
|
+
*/
|
|
484
|
+
export declare type SitesDomainsV2200DomainsItemJobs = {
|
|
485
|
+
[key: string]: unknown;
|
|
486
|
+
} | null;
|
|
458
487
|
export declare type SitesDomainsV2Params = {
|
|
459
488
|
scan?: boolean;
|
|
460
489
|
};
|
|
490
|
+
export declare type SitesListV2200 = {
|
|
491
|
+
items?: SitesListV2200ItemsItem[];
|
|
492
|
+
/** page size */
|
|
493
|
+
limit?: number;
|
|
494
|
+
/** current page number */
|
|
495
|
+
page?: number;
|
|
496
|
+
/** total number of pages */
|
|
497
|
+
pages?: number;
|
|
498
|
+
/** total number of sites returned */
|
|
499
|
+
total?: number;
|
|
500
|
+
};
|
|
461
501
|
/**
|
|
462
502
|
* @nullable
|
|
463
503
|
*/
|
|
@@ -485,6 +525,63 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
485
525
|
/** A list of staging sites of the current site */
|
|
486
526
|
sites?: number[];
|
|
487
527
|
} | null;
|
|
528
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
529
|
+
/** @nullable */
|
|
530
|
+
available?: number | null;
|
|
531
|
+
/** @nullable */
|
|
532
|
+
total?: number | null;
|
|
533
|
+
unit?: string;
|
|
534
|
+
/** @nullable */
|
|
535
|
+
used?: number | null;
|
|
536
|
+
};
|
|
537
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
538
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
539
|
+
/** @nullable */
|
|
540
|
+
workers?: number | null;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* @nullable
|
|
544
|
+
*/
|
|
545
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
546
|
+
/**
|
|
547
|
+
* The root domain name
|
|
548
|
+
* @nullable
|
|
549
|
+
*/
|
|
550
|
+
base_domain?: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
553
|
+
* @nullable
|
|
554
|
+
*/
|
|
555
|
+
domain?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* The current pending_url's HAL Domain ID
|
|
558
|
+
* @nullable
|
|
559
|
+
*/
|
|
560
|
+
domain_id?: number | null;
|
|
561
|
+
/** @nullable */
|
|
562
|
+
error?: string | null;
|
|
563
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
564
|
+
is_temp?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
567
|
+
* @nullable
|
|
568
|
+
*/
|
|
569
|
+
job_failed?: boolean | null;
|
|
570
|
+
/** @nullable */
|
|
571
|
+
stage?: string | null;
|
|
572
|
+
/**
|
|
573
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
574
|
+
* @nullable
|
|
575
|
+
*/
|
|
576
|
+
wp_session?: string | null;
|
|
577
|
+
} | null;
|
|
578
|
+
/**
|
|
579
|
+
* Job ids for the site
|
|
580
|
+
* @nullable
|
|
581
|
+
*/
|
|
582
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
583
|
+
[key: string]: unknown;
|
|
584
|
+
} | null;
|
|
488
585
|
export declare type SitesListV2200ItemsItem = {
|
|
489
586
|
/** @nullable */
|
|
490
587
|
account_back_ref?: string | null;
|
|
@@ -563,74 +660,6 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
563
660
|
*/
|
|
564
661
|
version_ptr?: string | null;
|
|
565
662
|
};
|
|
566
|
-
export declare type SitesListV2200 = {
|
|
567
|
-
items?: SitesListV2200ItemsItem[];
|
|
568
|
-
/** page size */
|
|
569
|
-
limit?: number;
|
|
570
|
-
/** current page number */
|
|
571
|
-
page?: number;
|
|
572
|
-
/** total number of pages */
|
|
573
|
-
pages?: number;
|
|
574
|
-
/** total number of sites returned */
|
|
575
|
-
total?: number;
|
|
576
|
-
};
|
|
577
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
578
|
-
/** @nullable */
|
|
579
|
-
available?: number | null;
|
|
580
|
-
/** @nullable */
|
|
581
|
-
total?: number | null;
|
|
582
|
-
unit?: string;
|
|
583
|
-
/** @nullable */
|
|
584
|
-
used?: number | null;
|
|
585
|
-
};
|
|
586
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
587
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
588
|
-
/** @nullable */
|
|
589
|
-
workers?: number | null;
|
|
590
|
-
};
|
|
591
|
-
/**
|
|
592
|
-
* @nullable
|
|
593
|
-
*/
|
|
594
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
595
|
-
/**
|
|
596
|
-
* The root domain name
|
|
597
|
-
* @nullable
|
|
598
|
-
*/
|
|
599
|
-
base_domain?: string | null;
|
|
600
|
-
/**
|
|
601
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
602
|
-
* @nullable
|
|
603
|
-
*/
|
|
604
|
-
domain?: string | null;
|
|
605
|
-
/**
|
|
606
|
-
* The current pending_url's HAL Domain ID
|
|
607
|
-
* @nullable
|
|
608
|
-
*/
|
|
609
|
-
domain_id?: number | null;
|
|
610
|
-
/** @nullable */
|
|
611
|
-
error?: string | null;
|
|
612
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
613
|
-
is_temp?: boolean;
|
|
614
|
-
/**
|
|
615
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
616
|
-
* @nullable
|
|
617
|
-
*/
|
|
618
|
-
job_failed?: boolean | null;
|
|
619
|
-
/** @nullable */
|
|
620
|
-
stage?: string | null;
|
|
621
|
-
/**
|
|
622
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
623
|
-
* @nullable
|
|
624
|
-
*/
|
|
625
|
-
wp_session?: string | null;
|
|
626
|
-
} | null;
|
|
627
|
-
/**
|
|
628
|
-
* Job ids for the site
|
|
629
|
-
* @nullable
|
|
630
|
-
*/
|
|
631
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
632
|
-
[key: string]: unknown;
|
|
633
|
-
} | null;
|
|
634
663
|
export declare type SshKeyV2200 = {
|
|
635
664
|
deleted?: number;
|
|
636
665
|
key_name?: string;
|
|
@@ -1254,20 +1283,59 @@ export declare type BackupListV2200BackupsItem = {
|
|
|
1254
1283
|
export declare type BackupListV2200 = {
|
|
1255
1284
|
backups?: BackupListV2200BackupsItem[];
|
|
1256
1285
|
};
|
|
1286
|
+
export declare type BackupDownloadV2409 = {
|
|
1287
|
+
/** Customer error code */
|
|
1288
|
+
error?: string;
|
|
1289
|
+
};
|
|
1290
|
+
export declare type BackupDownloadV2404 = {
|
|
1291
|
+
/** Customer error code */
|
|
1292
|
+
error?: string;
|
|
1293
|
+
};
|
|
1294
|
+
export declare type BackupDownloadV2403 = {
|
|
1295
|
+
/** Customer error code */
|
|
1296
|
+
error?: string;
|
|
1297
|
+
};
|
|
1298
|
+
export declare type BackupDownloadV2400 = {
|
|
1299
|
+
/** Customer error code */
|
|
1300
|
+
error?: string;
|
|
1301
|
+
};
|
|
1257
1302
|
export declare type BackupDownloadV2200 = {
|
|
1258
1303
|
message?: string;
|
|
1259
1304
|
tracking_id?: number;
|
|
1260
1305
|
};
|
|
1306
|
+
/**
|
|
1307
|
+
* Plan type used to route the request to free or premium HAL actions.
|
|
1308
|
+
*/
|
|
1309
|
+
export declare type BackupDownloadV2BodyPlanType = typeof BackupDownloadV2BodyPlanType[keyof typeof BackupDownloadV2BodyPlanType];
|
|
1310
|
+
export declare const BackupDownloadV2BodyPlanType: {
|
|
1311
|
+
readonly free: "free";
|
|
1312
|
+
readonly premium: "premium";
|
|
1313
|
+
};
|
|
1314
|
+
/**
|
|
1315
|
+
* Type of the backup
|
|
1316
|
+
*/
|
|
1317
|
+
export declare type BackupDownloadV2BodyBackupType = typeof BackupDownloadV2BodyBackupType[keyof typeof BackupDownloadV2BodyBackupType];
|
|
1318
|
+
export declare const BackupDownloadV2BodyBackupType: {
|
|
1319
|
+
readonly home: "home";
|
|
1320
|
+
readonly db: "db";
|
|
1321
|
+
readonly home_db: "home_db";
|
|
1322
|
+
};
|
|
1261
1323
|
export declare type BackupDownloadV2Body = {
|
|
1262
1324
|
/** Backup Volume store ID to get the backup */
|
|
1263
1325
|
backup_id: string;
|
|
1264
1326
|
/** Type of the backup */
|
|
1265
|
-
backup_type?:
|
|
1266
|
-
|
|
1327
|
+
backup_type?: BackupDownloadV2BodyBackupType;
|
|
1328
|
+
/** @nullable */
|
|
1329
|
+
dbs?: string[] | null;
|
|
1330
|
+
/** Plan type used to route the request to free or premium HAL actions. */
|
|
1331
|
+
plan_type: BackupDownloadV2BodyPlanType;
|
|
1267
1332
|
/** Site id */
|
|
1268
|
-
site_id
|
|
1269
|
-
/**
|
|
1270
|
-
|
|
1333
|
+
site_id: number;
|
|
1334
|
+
/**
|
|
1335
|
+
* Snapshot date
|
|
1336
|
+
* @nullable
|
|
1337
|
+
*/
|
|
1338
|
+
snapshot_date?: number | null;
|
|
1271
1339
|
};
|
|
1272
1340
|
export declare type BackupCreateV2200 = {
|
|
1273
1341
|
message?: string;
|
|
@@ -1340,10 +1408,6 @@ export declare type UserHostingOverviewParams = {
|
|
|
1340
1408
|
*/
|
|
1341
1409
|
limit?: number;
|
|
1342
1410
|
};
|
|
1343
|
-
export declare type UserHosting200 = {
|
|
1344
|
-
/** Information for the paginated hosting accounts */
|
|
1345
|
-
rows?: UserHosting200RowsItem[];
|
|
1346
|
-
};
|
|
1347
1411
|
/**
|
|
1348
1412
|
* Usage statistics for staging sites
|
|
1349
1413
|
* @nullable
|
|
@@ -1539,6 +1603,10 @@ export declare type UserHosting200RowsItem = {
|
|
|
1539
1603
|
*/
|
|
1540
1604
|
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1541
1605
|
};
|
|
1606
|
+
export declare type UserHosting200 = {
|
|
1607
|
+
/** Information for the paginated hosting accounts */
|
|
1608
|
+
rows?: UserHosting200RowsItem[];
|
|
1609
|
+
};
|
|
1542
1610
|
/**
|
|
1543
1611
|
* Region information for the account
|
|
1544
1612
|
* @nullable
|
|
@@ -2379,13 +2447,6 @@ export declare type SitePendingDomainDelete200 = {
|
|
|
2379
2447
|
export declare type SitesOnboardingSteps200 = {
|
|
2380
2448
|
steps?: SiteOnboardingStepModel[];
|
|
2381
2449
|
};
|
|
2382
|
-
export declare type SitesMetricDimensions200 = {
|
|
2383
|
-
date_end?: string;
|
|
2384
|
-
date_start?: string;
|
|
2385
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2386
|
-
elapsed?: number;
|
|
2387
|
-
metric?: string;
|
|
2388
|
-
};
|
|
2389
2450
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
2390
2451
|
[key: string]: number;
|
|
2391
2452
|
};
|
|
@@ -2393,6 +2454,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
|
2393
2454
|
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
2394
2455
|
timestamp?: number;
|
|
2395
2456
|
};
|
|
2457
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
2458
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2459
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2460
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2461
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2462
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2463
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2464
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2465
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2466
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2467
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2468
|
+
};
|
|
2469
|
+
export declare type SitesMetricDimensions200 = {
|
|
2470
|
+
date_end?: string;
|
|
2471
|
+
date_start?: string;
|
|
2472
|
+
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2473
|
+
elapsed?: number;
|
|
2474
|
+
metric?: string;
|
|
2475
|
+
};
|
|
2396
2476
|
export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
|
|
2397
2477
|
[key: string]: number;
|
|
2398
2478
|
};
|
|
@@ -2414,18 +2494,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
|
2414
2494
|
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
2415
2495
|
timestamp?: number;
|
|
2416
2496
|
};
|
|
2417
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
2418
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2419
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2420
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2421
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2422
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2423
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2424
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2425
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2426
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2427
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2428
|
-
};
|
|
2429
2497
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
2430
2498
|
[key: string]: number;
|
|
2431
2499
|
};
|
|
@@ -2773,6 +2841,10 @@ export declare type SiteAddonCloudflare400 = {
|
|
|
2773
2841
|
export declare type SiteAddonCloudflare200 = {
|
|
2774
2842
|
addon_id?: number;
|
|
2775
2843
|
};
|
|
2844
|
+
export declare type SitesBackupsXcitium200 = {
|
|
2845
|
+
/** Id of the backgrounded task that can be polled against */
|
|
2846
|
+
workflow_id?: string;
|
|
2847
|
+
};
|
|
2776
2848
|
export declare type BackupsJetpackBackup200 = {
|
|
2777
2849
|
[key: string]: unknown;
|
|
2778
2850
|
};
|
|
@@ -2900,10 +2972,6 @@ export declare type SitesAtomicMetrics200Views = {
|
|
|
2900
2972
|
last_n_days?: SitesAtomicMetrics200ViewsLastNDaysItem[];
|
|
2901
2973
|
total_hits?: number;
|
|
2902
2974
|
};
|
|
2903
|
-
export declare type SitesAtomicMetrics200 = {
|
|
2904
|
-
raw?: SitesAtomicMetrics200Raw;
|
|
2905
|
-
views?: SitesAtomicMetrics200Views;
|
|
2906
|
-
};
|
|
2907
2975
|
export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
|
|
2908
2976
|
[key: string]: string | number | number;
|
|
2909
2977
|
};
|
|
@@ -2921,6 +2989,10 @@ export declare type SitesAtomicMetrics200Raw = {
|
|
|
2921
2989
|
periods?: SitesAtomicMetrics200RawPeriodsItem[];
|
|
2922
2990
|
resolution?: number;
|
|
2923
2991
|
};
|
|
2992
|
+
export declare type SitesAtomicMetrics200 = {
|
|
2993
|
+
raw?: SitesAtomicMetrics200Raw;
|
|
2994
|
+
views?: SitesAtomicMetrics200Views;
|
|
2995
|
+
};
|
|
2924
2996
|
export declare type SitesAtomicMetricsParams = {
|
|
2925
2997
|
metric?: string[];
|
|
2926
2998
|
dimension?: string[];
|
|
@@ -3013,6 +3085,71 @@ export declare type SitesInfo200Staging = {
|
|
|
3013
3085
|
/** A list of staging sites of the current site */
|
|
3014
3086
|
sites?: number[];
|
|
3015
3087
|
} | null;
|
|
3088
|
+
export declare type SitesInfo200ResourcesStorage = {
|
|
3089
|
+
/** @nullable */
|
|
3090
|
+
available?: number | null;
|
|
3091
|
+
/** @nullable */
|
|
3092
|
+
total?: number | null;
|
|
3093
|
+
unit?: string;
|
|
3094
|
+
/** @nullable */
|
|
3095
|
+
used?: number | null;
|
|
3096
|
+
};
|
|
3097
|
+
export declare type SitesInfo200Resources = {
|
|
3098
|
+
storage?: SitesInfo200ResourcesStorage;
|
|
3099
|
+
/** @nullable */
|
|
3100
|
+
workers?: number | null;
|
|
3101
|
+
};
|
|
3102
|
+
/**
|
|
3103
|
+
* @nullable
|
|
3104
|
+
*/
|
|
3105
|
+
export declare type SitesInfo200PendingUrlData = {
|
|
3106
|
+
/**
|
|
3107
|
+
* The root domain name
|
|
3108
|
+
* @nullable
|
|
3109
|
+
*/
|
|
3110
|
+
base_domain?: string | null;
|
|
3111
|
+
/**
|
|
3112
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
3113
|
+
* @nullable
|
|
3114
|
+
*/
|
|
3115
|
+
domain?: string | null;
|
|
3116
|
+
/**
|
|
3117
|
+
* The current pending_url's HAL Domain ID
|
|
3118
|
+
* @nullable
|
|
3119
|
+
*/
|
|
3120
|
+
domain_id?: number | null;
|
|
3121
|
+
/** @nullable */
|
|
3122
|
+
error?: string | null;
|
|
3123
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
3124
|
+
is_temp?: boolean;
|
|
3125
|
+
/**
|
|
3126
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
3127
|
+
* @nullable
|
|
3128
|
+
*/
|
|
3129
|
+
job_failed?: boolean | null;
|
|
3130
|
+
/** @nullable */
|
|
3131
|
+
stage?: string | null;
|
|
3132
|
+
/**
|
|
3133
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
3134
|
+
* @nullable
|
|
3135
|
+
*/
|
|
3136
|
+
wp_session?: string | null;
|
|
3137
|
+
} | null;
|
|
3138
|
+
/**
|
|
3139
|
+
* @nullable
|
|
3140
|
+
*/
|
|
3141
|
+
export declare type SitesInfo200Pagespeed = {
|
|
3142
|
+
lastrun?: string;
|
|
3143
|
+
performance?: string;
|
|
3144
|
+
strategy?: string;
|
|
3145
|
+
} | null;
|
|
3146
|
+
/**
|
|
3147
|
+
* Job ids for the site
|
|
3148
|
+
* @nullable
|
|
3149
|
+
*/
|
|
3150
|
+
export declare type SitesInfo200Jobs = {
|
|
3151
|
+
[key: string]: unknown;
|
|
3152
|
+
} | null;
|
|
3016
3153
|
export declare type SitesInfo200 = {
|
|
3017
3154
|
/** @nullable */
|
|
3018
3155
|
account_back_ref?: string | null;
|
|
@@ -3101,71 +3238,6 @@ export declare type SitesInfo200 = {
|
|
|
3101
3238
|
/** @nullable */
|
|
3102
3239
|
wp_multi_site?: SitesInfo200WpMultiSite;
|
|
3103
3240
|
};
|
|
3104
|
-
export declare type SitesInfo200ResourcesStorage = {
|
|
3105
|
-
/** @nullable */
|
|
3106
|
-
available?: number | null;
|
|
3107
|
-
/** @nullable */
|
|
3108
|
-
total?: number | null;
|
|
3109
|
-
unit?: string;
|
|
3110
|
-
/** @nullable */
|
|
3111
|
-
used?: number | null;
|
|
3112
|
-
};
|
|
3113
|
-
export declare type SitesInfo200Resources = {
|
|
3114
|
-
storage?: SitesInfo200ResourcesStorage;
|
|
3115
|
-
/** @nullable */
|
|
3116
|
-
workers?: number | null;
|
|
3117
|
-
};
|
|
3118
|
-
/**
|
|
3119
|
-
* @nullable
|
|
3120
|
-
*/
|
|
3121
|
-
export declare type SitesInfo200PendingUrlData = {
|
|
3122
|
-
/**
|
|
3123
|
-
* The root domain name
|
|
3124
|
-
* @nullable
|
|
3125
|
-
*/
|
|
3126
|
-
base_domain?: string | null;
|
|
3127
|
-
/**
|
|
3128
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
3129
|
-
* @nullable
|
|
3130
|
-
*/
|
|
3131
|
-
domain?: string | null;
|
|
3132
|
-
/**
|
|
3133
|
-
* The current pending_url's HAL Domain ID
|
|
3134
|
-
* @nullable
|
|
3135
|
-
*/
|
|
3136
|
-
domain_id?: number | null;
|
|
3137
|
-
/** @nullable */
|
|
3138
|
-
error?: string | null;
|
|
3139
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
3140
|
-
is_temp?: boolean;
|
|
3141
|
-
/**
|
|
3142
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
3143
|
-
* @nullable
|
|
3144
|
-
*/
|
|
3145
|
-
job_failed?: boolean | null;
|
|
3146
|
-
/** @nullable */
|
|
3147
|
-
stage?: string | null;
|
|
3148
|
-
/**
|
|
3149
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
3150
|
-
* @nullable
|
|
3151
|
-
*/
|
|
3152
|
-
wp_session?: string | null;
|
|
3153
|
-
} | null;
|
|
3154
|
-
/**
|
|
3155
|
-
* @nullable
|
|
3156
|
-
*/
|
|
3157
|
-
export declare type SitesInfo200Pagespeed = {
|
|
3158
|
-
lastrun?: string;
|
|
3159
|
-
performance?: string;
|
|
3160
|
-
strategy?: string;
|
|
3161
|
-
} | null;
|
|
3162
|
-
/**
|
|
3163
|
-
* Job ids for the site
|
|
3164
|
-
* @nullable
|
|
3165
|
-
*/
|
|
3166
|
-
export declare type SitesInfo200Jobs = {
|
|
3167
|
-
[key: string]: unknown;
|
|
3168
|
-
} | null;
|
|
3169
3241
|
/**
|
|
3170
3242
|
* Links
|
|
3171
3243
|
* @nullable
|
|
@@ -4632,6 +4704,12 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4632
4704
|
/** list of rules to be applied to the filter */
|
|
4633
4705
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4634
4706
|
};
|
|
4707
|
+
export declare type HostingEmailFiltersList200 = {
|
|
4708
|
+
/** The number of filters */
|
|
4709
|
+
count?: number;
|
|
4710
|
+
/** List of filters */
|
|
4711
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4712
|
+
};
|
|
4635
4713
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4636
4714
|
match?: FilterRuleMatch;
|
|
4637
4715
|
opt?: FilterRuleOpt;
|
|
@@ -4662,12 +4740,6 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4662
4740
|
/** Whether the filter is unescaped */
|
|
4663
4741
|
unescaped?: boolean;
|
|
4664
4742
|
};
|
|
4665
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4666
|
-
/** The number of filters */
|
|
4667
|
-
count?: number;
|
|
4668
|
-
/** List of filters */
|
|
4669
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4670
|
-
};
|
|
4671
4743
|
export declare type HostingEmailFiltersListParams = {
|
|
4672
4744
|
/**
|
|
4673
4745
|
* The email account address to query filters by
|
|
@@ -6290,6 +6362,15 @@ export declare type DomainInfo200 = {
|
|
|
6290
6362
|
*/
|
|
6291
6363
|
used_entri?: number | null;
|
|
6292
6364
|
};
|
|
6365
|
+
export declare type AddonsWorkflows200 = {
|
|
6366
|
+
workflows?: AddonWorkflowListItem[];
|
|
6367
|
+
};
|
|
6368
|
+
export declare type AddonsWorkflowsParams = {
|
|
6369
|
+
/**
|
|
6370
|
+
* An optional id to query for a specific workflow
|
|
6371
|
+
*/
|
|
6372
|
+
workflow_id?: string;
|
|
6373
|
+
};
|
|
6293
6374
|
export declare type WeeblySso200 = {
|
|
6294
6375
|
sso?: string;
|
|
6295
6376
|
};
|
|
@@ -6556,6 +6637,10 @@ export declare type BackupCreateOndemandV1Body = {
|
|
|
6556
6637
|
/** Whether to include a link to the backup tarball */
|
|
6557
6638
|
include_backup_tar_link?: BackupCreateOndemandV1BodyIncludeBackupTarLink;
|
|
6558
6639
|
};
|
|
6640
|
+
export declare type BackupMeta200 = {
|
|
6641
|
+
account?: BackupMeta200Account;
|
|
6642
|
+
site?: BackupMeta200Site;
|
|
6643
|
+
};
|
|
6559
6644
|
/**
|
|
6560
6645
|
* @nullable
|
|
6561
6646
|
*/
|
|
@@ -6589,10 +6674,6 @@ export declare type BackupMeta200Site = {
|
|
|
6589
6674
|
/** @nullable */
|
|
6590
6675
|
cbs_restore_consent_info?: BackupMeta200SiteCbsRestoreConsentInfo;
|
|
6591
6676
|
};
|
|
6592
|
-
export declare type BackupMeta200 = {
|
|
6593
|
-
account?: BackupMeta200Account;
|
|
6594
|
-
site?: BackupMeta200Site;
|
|
6595
|
-
};
|
|
6596
6677
|
/**
|
|
6597
6678
|
* @nullable
|
|
6598
6679
|
*/
|
|
@@ -6633,9 +6714,6 @@ export declare type BackupMeta200Account = {
|
|
|
6633
6714
|
export declare type BackupMetaParams = {
|
|
6634
6715
|
site_id?: number;
|
|
6635
6716
|
};
|
|
6636
|
-
export declare type BackupList200 = {
|
|
6637
|
-
home?: BackupList200HomeItem[];
|
|
6638
|
-
};
|
|
6639
6717
|
export declare type BackupList200HomeItemBackupStatus = {
|
|
6640
6718
|
/** @nullable */
|
|
6641
6719
|
download_url?: string | null;
|
|
@@ -6647,6 +6725,9 @@ export declare type BackupList200HomeItem = {
|
|
|
6647
6725
|
backup_status?: BackupList200HomeItemBackupStatus;
|
|
6648
6726
|
time_created?: string;
|
|
6649
6727
|
};
|
|
6728
|
+
export declare type BackupList200 = {
|
|
6729
|
+
home?: BackupList200HomeItem[];
|
|
6730
|
+
};
|
|
6650
6731
|
export declare type BackupListBackupType = typeof BackupListBackupType[keyof typeof BackupListBackupType];
|
|
6651
6732
|
export declare const BackupListBackupType: {
|
|
6652
6733
|
readonly full: "full";
|
|
@@ -6692,13 +6773,32 @@ export declare type XcitiumSso200 = {
|
|
|
6692
6773
|
export declare type XcitiumPlanInfo200SeatsItem = {
|
|
6693
6774
|
/** Whether this site can create or can download xcitium backups */
|
|
6694
6775
|
activated?: boolean;
|
|
6776
|
+
/**
|
|
6777
|
+
* Name of the site's database
|
|
6778
|
+
* @nullable
|
|
6779
|
+
*/
|
|
6780
|
+
cms_database_name?: string | null;
|
|
6781
|
+
/** Amount of disk space the database backup is using */
|
|
6782
|
+
db_used_gib?: string;
|
|
6783
|
+
/**
|
|
6784
|
+
* Path to the site's files
|
|
6785
|
+
* @nullable
|
|
6786
|
+
*/
|
|
6787
|
+
dir_path?: string | null;
|
|
6788
|
+
/** Amount of disk space the file system backup is using */
|
|
6789
|
+
fs_used_gib?: string;
|
|
6790
|
+
/**
|
|
6791
|
+
* The HAL site id
|
|
6792
|
+
* @nullable
|
|
6793
|
+
*/
|
|
6794
|
+
site_id?: string | null;
|
|
6695
6795
|
/**
|
|
6696
6796
|
* Site url for this xcitium backup
|
|
6697
6797
|
* @nullable
|
|
6698
6798
|
*/
|
|
6699
6799
|
url?: string | null;
|
|
6700
6800
|
/**
|
|
6701
|
-
* The xcitium identifier for this
|
|
6801
|
+
* The xcitium identifier for this site
|
|
6702
6802
|
* @nullable
|
|
6703
6803
|
*/
|
|
6704
6804
|
website_id?: string | null;
|
|
@@ -7399,6 +7499,18 @@ export declare type AccountEventListParams = {
|
|
|
7399
7499
|
*/
|
|
7400
7500
|
date_last?: string;
|
|
7401
7501
|
};
|
|
7502
|
+
export interface AddonWorkflowListItem {
|
|
7503
|
+
/** Whether the workflow has completed all stages */
|
|
7504
|
+
is_completed?: boolean;
|
|
7505
|
+
/** The name of the workflow */
|
|
7506
|
+
name?: string;
|
|
7507
|
+
/** The most recent active step of the workflow */
|
|
7508
|
+
step?: string;
|
|
7509
|
+
/** The addon type associated with the workflow */
|
|
7510
|
+
type?: string;
|
|
7511
|
+
/** The id of the workflow */
|
|
7512
|
+
workflow_id?: string;
|
|
7513
|
+
}
|
|
7402
7514
|
/**
|
|
7403
7515
|
* Notify on successful backups
|
|
7404
7516
|
*/
|
package/src/index.schemas.js
CHANGED
|
@@ -11,6 +11,11 @@ export const BackupRestoreV3BodyUserConsent = {
|
|
|
11
11
|
NUMBER_1: 1,
|
|
12
12
|
};
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
14
|
+
export const BackupRestoreV3BodyPlanType = {
|
|
15
|
+
free: 'free',
|
|
16
|
+
premium: 'premium',
|
|
17
|
+
};
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
14
19
|
export const BackupRestoreV3BodyBackupType = {
|
|
15
20
|
home: 'home',
|
|
16
21
|
db: 'db',
|
|
@@ -49,6 +54,17 @@ export const HostingDomainsV2TypesItem = {
|
|
|
49
54
|
unassigned: 'unassigned',
|
|
50
55
|
};
|
|
51
56
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
57
|
+
export const BackupDownloadV2BodyPlanType = {
|
|
58
|
+
free: 'free',
|
|
59
|
+
premium: 'premium',
|
|
60
|
+
};
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
62
|
+
export const BackupDownloadV2BodyBackupType = {
|
|
63
|
+
home: 'home',
|
|
64
|
+
db: 'db',
|
|
65
|
+
home_db: 'home_db',
|
|
66
|
+
};
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
52
68
|
export const SiteAddonWpsolutionBodySubtype = {
|
|
53
69
|
creator: 'creator',
|
|
54
70
|
commerce: 'commerce',
|